implement osis actor
This commit is contained in:
15
examples/scripts/access.rhai
Normal file
15
examples/scripts/access.rhai
Normal file
@@ -0,0 +1,15 @@
|
||||
// heromodels/examples/access/access.rhai
|
||||
|
||||
print("--- Testing Access Rhai Module ---");
|
||||
|
||||
// --- Image ---
|
||||
print("\n1. Creating and saving an access...");
|
||||
let new_access = new_access()
|
||||
.object_id(1)
|
||||
.circle_public_key("some_pk")
|
||||
.group_id(1)
|
||||
.contact_id(1)
|
||||
.expires_at(1735689600) // Future timestamp
|
||||
.save_access();
|
||||
|
||||
print("Access saved with ID: " + new_access.id);
|
Reference in New Issue
Block a user