Moment Savor
@mgreten/moment-savorv2026.06.06.2
01README
Interact with the Moment Savor family memory app via its V1 REST API. Syncs memories, API tokens, and family membership to swamp resources for CEL queries. Supports full CRUD for memories, API token lifecycle (create/revoke/rotate), family member management, and sending invitations. Authenticate with a Bearer token from https://momentsavor.app/api_tokens.
02Models
@mgreten/moment-savorv2026.06.06.2moment_savor_api.ts
fn sync()
Fetch current memories, tokens, and family members from the API and store as resources for CEL queries
fn createMemory(title?: string, notes?: string, transcript?: string, location_name?: string, pinned?: boolean, tags?: array)
Create a new memory
| Argument | Type | Description |
|---|---|---|
| title? | string | Title of the memory |
| notes? | string | Free-form notes or description |
| transcript? | string | Text transcript |
| location_name? | string | Location name |
| pinned? | boolean | Whether to pin this memory |
| tags? | array | Tags for the memory |
fn updateMemory(id: string, title?: string, notes?: string, recorded_at?: string, visibility?: enum, pinned?: boolean, tags?: array)
Update an existing memory's title, notes, visibility, pinned state, tags, or recorded_at
| Argument | Type | Description |
|---|---|---|
| id | string | Memory UUID |
| title? | string | |
| notes? | string | |
| recorded_at? | string | ISO 8601 datetime |
| visibility? | enum | |
| pinned? | boolean | |
| tags? | array |
fn deleteMemory(id: string)
Permanently delete a memory
| Argument | Type | Description |
|---|---|---|
| id | string | Memory UUID to delete |
fn createToken(name: string)
Create a new API token. The raw token value is stored in the issued-token resource — read it immediately as it cannot be recovered later.
| Argument | Type | Description |
|---|---|---|
| name | string | Display name for the token |
fn revokeToken(id: string)
Permanently revoke an API token by ID
| Argument | Type | Description |
|---|---|---|
| id | string | API token UUID to revoke |
fn rotateToken(id: string)
Rotate an existing API token, generating a new secret. The new raw token value is stored in the issued-token resource.
| Argument | Type | Description |
|---|---|---|
| id | string | API token UUID to rotate |
fn updateMemberRole(id: string)
Update a family member's role. Requires an owner or admin token. Only owners can assign the owner role.
| Argument | Type | Description |
|---|---|---|
| id | string | Family membership UUID |
fn removeMember(id: string)
Remove a family member. Requires an owner or admin token. Cannot remove yourself.
| Argument | Type | Description |
|---|---|---|
| id | string | Family membership UUID to remove |
fn sendInvitation(email: string)
Send a family invitation email. Requires a read_write token. Only owners can invite with the owner role.
| Argument | Type | Description |
|---|---|---|
| string | Email address to invite |
Resources
memories(infinite)— Snapshot of all memories for the authenticated family, optionally filtered by search query
tokens(infinite)— Snapshot of active API tokens visible to the authenticated user
family-members(infinite)— Snapshot of current family membership
issued-token(infinite)— The most recently created or rotated API token, including the raw token value
03Previous Versions
2026.06.06.1Jun 7, 2026
04Stats
A
100 / 100
Downloads
0
Archive size
9.6 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels