@redis-iris/agent-memory 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -20
- package/dist/commonjs/funcs/get-session-memory.d.ts +1 -1
- package/dist/commonjs/funcs/get-session-memory.d.ts.map +1 -1
- package/dist/commonjs/funcs/get-session-memory.js +8 -3
- package/dist/commonjs/funcs/get-session-memory.js.map +1 -1
- package/dist/commonjs/funcs/list-sessions.d.ts +1 -1
- package/dist/commonjs/funcs/list-sessions.d.ts.map +1 -1
- package/dist/commonjs/funcs/list-sessions.js +7 -3
- package/dist/commonjs/funcs/list-sessions.js.map +1 -1
- package/dist/commonjs/funcs/store-health.d.ts +16 -0
- package/dist/commonjs/funcs/store-health.d.ts.map +1 -0
- package/dist/commonjs/funcs/store-health.js +114 -0
- package/dist/commonjs/funcs/store-health.js.map +1 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.d.ts +15 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.js +132 -0
- package/dist/commonjs/funcs/update-long-term-memory-fields.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/http.d.ts +1 -1
- package/dist/commonjs/lib/http.d.ts.map +1 -1
- package/dist/commonjs/lib/http.js +1 -1
- package/dist/commonjs/lib/http.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +5 -4
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +6 -7
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/add-session-event-request-content.d.ts +9 -0
- package/dist/commonjs/models/add-session-event-request-content.d.ts.map +1 -1
- package/dist/commonjs/models/add-session-event-request-content.js +1 -0
- package/dist/commonjs/models/add-session-event-request-content.js.map +1 -1
- package/dist/commonjs/models/attribute-filter-clause.d.ts +63 -0
- package/dist/commonjs/models/attribute-filter-clause.d.ts.map +1 -0
- package/dist/commonjs/models/attribute-filter-clause.js +85 -0
- package/dist/commonjs/models/attribute-filter-clause.js.map +1 -0
- package/dist/commonjs/models/create-memory-record.d.ts +14 -6
- package/dist/commonjs/models/create-memory-record.d.ts.map +1 -1
- package/dist/commonjs/models/create-memory-record.js +3 -3
- package/dist/commonjs/models/create-memory-record.js.map +1 -1
- package/dist/commonjs/models/get-long-term-memory-response-content.d.ts +9 -4
- package/dist/commonjs/models/get-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/commonjs/models/get-long-term-memory-response-content.js +2 -2
- package/dist/commonjs/models/get-long-term-memory-response-content.js.map +1 -1
- package/dist/commonjs/models/get-session-memory-response-content.d.ts +14 -1
- package/dist/commonjs/models/get-session-memory-response-content.d.ts.map +1 -1
- package/dist/commonjs/models/get-session-memory-response-content.js +3 -0
- package/dist/commonjs/models/get-session-memory-response-content.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +6 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/long-term-memory-filter.d.ts +21 -5
- package/dist/commonjs/models/long-term-memory-filter.d.ts.map +1 -1
- package/dist/commonjs/models/long-term-memory-filter.js +2 -0
- package/dist/commonjs/models/long-term-memory-filter.js.map +1 -1
- package/dist/commonjs/models/memory-record.d.ts +9 -4
- package/dist/commonjs/models/memory-record.d.ts.map +1 -1
- package/dist/commonjs/models/memory-record.js +2 -2
- package/dist/commonjs/models/memory-record.js.map +1 -1
- package/dist/commonjs/models/memory-type-filter.d.ts +1 -1
- package/dist/commonjs/models/namespace-filter.d.ts +7 -1
- package/dist/commonjs/models/namespace-filter.d.ts.map +1 -1
- package/dist/commonjs/models/namespace-filter.js.map +1 -1
- package/dist/commonjs/models/operations/get-session-memory.d.ts +5 -0
- package/dist/commonjs/models/operations/get-session-memory.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-session-memory.js +1 -0
- package/dist/commonjs/models/operations/get-session-memory.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-sessions.d.ts +10 -0
- package/dist/commonjs/models/operations/list-sessions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-sessions.js +2 -0
- package/dist/commonjs/models/operations/list-sessions.js.map +1 -1
- package/dist/commonjs/models/operations/store-health.d.ts +11 -0
- package/dist/commonjs/models/operations/store-health.d.ts.map +1 -0
- package/dist/commonjs/models/operations/store-health.js +48 -0
- package/dist/commonjs/models/operations/store-health.js.map +1 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.d.ts +21 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.js +52 -0
- package/dist/commonjs/models/operations/update-long-term-memory-fields.js.map +1 -0
- package/dist/commonjs/models/owner-id-filter.d.ts +1 -1
- package/dist/commonjs/models/session-id-filter.d.ts +1 -1
- package/dist/commonjs/models/session-summary.d.ts +40 -0
- package/dist/commonjs/models/session-summary.d.ts.map +1 -0
- package/dist/commonjs/models/session-summary.js +56 -0
- package/dist/commonjs/models/session-summary.js.map +1 -0
- package/dist/commonjs/models/store-health-feature.d.ts +17 -0
- package/dist/commonjs/models/store-health-feature.d.ts.map +1 -0
- package/dist/commonjs/models/store-health-feature.js +52 -0
- package/dist/commonjs/models/store-health-feature.js.map +1 -0
- package/dist/commonjs/models/store-health-response-content.d.ts +21 -0
- package/dist/commonjs/models/store-health-response-content.d.ts.map +1 -0
- package/dist/commonjs/models/store-health-response-content.js +54 -0
- package/dist/commonjs/models/store-health-response-content.js.map +1 -0
- package/dist/commonjs/models/store-health-status.d.ts +17 -0
- package/dist/commonjs/models/store-health-status.d.ts.map +1 -0
- package/dist/commonjs/models/{memory-type.js → store-health-status.js} +9 -11
- package/dist/commonjs/models/store-health-status.js.map +1 -0
- package/dist/commonjs/models/topics-filter.d.ts +1 -1
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.d.ts +41 -0
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.d.ts.map +1 -0
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.js +53 -0
- package/dist/commonjs/models/update-long-term-memory-fields-request-content.js.map +1 -0
- package/dist/commonjs/models/update-long-term-memory-request-content.d.ts +7 -4
- package/dist/commonjs/models/update-long-term-memory-request-content.d.ts.map +1 -1
- package/dist/commonjs/models/update-long-term-memory-request-content.js +1 -2
- package/dist/commonjs/models/update-long-term-memory-request-content.js.map +1 -1
- package/dist/commonjs/models/update-long-term-memory-response-content.d.ts +9 -4
- package/dist/commonjs/models/update-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/commonjs/models/update-long-term-memory-response-content.js +2 -2
- package/dist/commonjs/models/update-long-term-memory-response-content.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +11 -2
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +18 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/get-session-memory.d.ts +1 -1
- package/dist/esm/funcs/get-session-memory.d.ts.map +1 -1
- package/dist/esm/funcs/get-session-memory.js +9 -4
- package/dist/esm/funcs/get-session-memory.js.map +1 -1
- package/dist/esm/funcs/list-sessions.d.ts +1 -1
- package/dist/esm/funcs/list-sessions.d.ts.map +1 -1
- package/dist/esm/funcs/list-sessions.js +7 -3
- package/dist/esm/funcs/list-sessions.js.map +1 -1
- package/dist/esm/funcs/store-health.d.ts +16 -0
- package/dist/esm/funcs/store-health.d.ts.map +1 -0
- package/dist/esm/funcs/store-health.js +78 -0
- package/dist/esm/funcs/store-health.js.map +1 -0
- package/dist/esm/funcs/update-long-term-memory-fields.d.ts +15 -0
- package/dist/esm/funcs/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/esm/funcs/update-long-term-memory-fields.js +96 -0
- package/dist/esm/funcs/update-long-term-memory-fields.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/http.d.ts +1 -1
- package/dist/esm/lib/http.d.ts.map +1 -1
- package/dist/esm/lib/http.js +1 -1
- package/dist/esm/lib/http.js.map +1 -1
- package/dist/esm/lib/security.d.ts +5 -4
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +4 -6
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/add-session-event-request-content.d.ts +9 -0
- package/dist/esm/models/add-session-event-request-content.d.ts.map +1 -1
- package/dist/esm/models/add-session-event-request-content.js +1 -0
- package/dist/esm/models/add-session-event-request-content.js.map +1 -1
- package/dist/esm/models/attribute-filter-clause.d.ts +63 -0
- package/dist/esm/models/attribute-filter-clause.d.ts.map +1 -0
- package/dist/esm/models/attribute-filter-clause.js +44 -0
- package/dist/esm/models/attribute-filter-clause.js.map +1 -0
- package/dist/esm/models/create-memory-record.d.ts +14 -6
- package/dist/esm/models/create-memory-record.d.ts.map +1 -1
- package/dist/esm/models/create-memory-record.js +3 -3
- package/dist/esm/models/create-memory-record.js.map +1 -1
- package/dist/esm/models/get-long-term-memory-response-content.d.ts +9 -4
- package/dist/esm/models/get-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/esm/models/get-long-term-memory-response-content.js +2 -2
- package/dist/esm/models/get-long-term-memory-response-content.js.map +1 -1
- package/dist/esm/models/get-session-memory-response-content.d.ts +14 -1
- package/dist/esm/models/get-session-memory-response-content.d.ts.map +1 -1
- package/dist/esm/models/get-session-memory-response-content.js +3 -0
- package/dist/esm/models/get-session-memory-response-content.js.map +1 -1
- package/dist/esm/models/index.d.ts +6 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/long-term-memory-filter.d.ts +21 -5
- package/dist/esm/models/long-term-memory-filter.d.ts.map +1 -1
- package/dist/esm/models/long-term-memory-filter.js +2 -0
- package/dist/esm/models/long-term-memory-filter.js.map +1 -1
- package/dist/esm/models/memory-record.d.ts +9 -4
- package/dist/esm/models/memory-record.d.ts.map +1 -1
- package/dist/esm/models/memory-record.js +2 -2
- package/dist/esm/models/memory-record.js.map +1 -1
- package/dist/esm/models/memory-type-filter.d.ts +1 -1
- package/dist/esm/models/namespace-filter.d.ts +7 -1
- package/dist/esm/models/namespace-filter.d.ts.map +1 -1
- package/dist/esm/models/namespace-filter.js.map +1 -1
- package/dist/esm/models/operations/get-session-memory.d.ts +5 -0
- package/dist/esm/models/operations/get-session-memory.d.ts.map +1 -1
- package/dist/esm/models/operations/get-session-memory.js +1 -0
- package/dist/esm/models/operations/get-session-memory.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-sessions.d.ts +10 -0
- package/dist/esm/models/operations/list-sessions.d.ts.map +1 -1
- package/dist/esm/models/operations/list-sessions.js +2 -0
- package/dist/esm/models/operations/list-sessions.js.map +1 -1
- package/dist/esm/models/operations/store-health.d.ts +11 -0
- package/dist/esm/models/operations/store-health.d.ts.map +1 -0
- package/dist/esm/models/operations/store-health.js +11 -0
- package/dist/esm/models/operations/store-health.js.map +1 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.d.ts +21 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.d.ts.map +1 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.js +15 -0
- package/dist/esm/models/operations/update-long-term-memory-fields.js.map +1 -0
- package/dist/esm/models/owner-id-filter.d.ts +1 -1
- package/dist/esm/models/session-id-filter.d.ts +1 -1
- package/dist/esm/models/session-summary.d.ts +40 -0
- package/dist/esm/models/session-summary.d.ts.map +1 -0
- package/dist/esm/models/session-summary.js +19 -0
- package/dist/esm/models/session-summary.js.map +1 -0
- package/dist/esm/models/store-health-feature.d.ts +17 -0
- package/dist/esm/models/store-health-feature.d.ts.map +1 -0
- package/dist/esm/models/store-health-feature.js +15 -0
- package/dist/esm/models/store-health-feature.js.map +1 -0
- package/dist/esm/models/store-health-response-content.d.ts +21 -0
- package/dist/esm/models/store-health-response-content.d.ts.map +1 -0
- package/dist/esm/models/store-health-response-content.js +17 -0
- package/dist/esm/models/store-health-response-content.js.map +1 -0
- package/dist/esm/models/store-health-status.d.ts +17 -0
- package/dist/esm/models/store-health-status.d.ts.map +1 -0
- package/dist/esm/models/store-health-status.js +16 -0
- package/dist/esm/models/store-health-status.js.map +1 -0
- package/dist/esm/models/topics-filter.d.ts +1 -1
- package/dist/esm/models/update-long-term-memory-fields-request-content.d.ts +41 -0
- package/dist/esm/models/update-long-term-memory-fields-request-content.d.ts.map +1 -0
- package/dist/esm/models/update-long-term-memory-fields-request-content.js +16 -0
- package/dist/esm/models/update-long-term-memory-fields-request-content.js.map +1 -0
- package/dist/esm/models/update-long-term-memory-request-content.d.ts +7 -4
- package/dist/esm/models/update-long-term-memory-request-content.d.ts.map +1 -1
- package/dist/esm/models/update-long-term-memory-request-content.js +1 -2
- package/dist/esm/models/update-long-term-memory-request-content.js.map +1 -1
- package/dist/esm/models/update-long-term-memory-response-content.d.ts +9 -4
- package/dist/esm/models/update-long-term-memory-response-content.d.ts.map +1 -1
- package/dist/esm/models/update-long-term-memory-response-content.js +2 -2
- package/dist/esm/models/update-long-term-memory-response-content.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +11 -2
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +18 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/get-session-memory.ts +10 -1
- package/src/funcs/list-sessions.ts +10 -0
- package/src/funcs/store-health.ts +194 -0
- package/src/funcs/update-long-term-memory-fields.ts +220 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/models/add-session-event-request-content.ts +10 -0
- package/src/models/attribute-filter-clause.ts +135 -0
- package/src/models/create-memory-record.ts +13 -8
- package/src/models/get-long-term-memory-response-content.ts +9 -5
- package/src/models/get-session-memory-response-content.ts +19 -1
- package/src/models/index.ts +6 -1
- package/src/models/long-term-memory-filter.ts +22 -5
- package/src/models/memory-record.ts +9 -5
- package/src/models/memory-type-filter.ts +1 -1
- package/src/models/namespace-filter.ts +7 -1
- package/src/models/operations/get-session-memory.ts +6 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/list-sessions.ts +12 -0
- package/src/models/operations/store-health.ts +30 -0
- package/src/models/operations/update-long-term-memory-fields.ts +45 -0
- package/src/models/owner-id-filter.ts +1 -1
- package/src/models/session-id-filter.ts +1 -1
- package/src/models/session-summary.ts +67 -0
- package/src/models/store-health-feature.ts +42 -0
- package/src/models/store-health-response-content.ts +48 -0
- package/src/models/store-health-status.ts +28 -0
- package/src/models/topics-filter.ts +1 -1
- package/src/models/update-long-term-memory-fields-request-content.ts +63 -0
- package/src/models/update-long-term-memory-request-content.ts +8 -5
- package/src/models/update-long-term-memory-response-content.ts +9 -5
- package/src/sdk/sdk.ts +39 -0
- package/dist/commonjs/models/memory-type.d.ts +0 -19
- package/dist/commonjs/models/memory-type.d.ts.map +0 -1
- package/dist/commonjs/models/memory-type.js.map +0 -1
- package/dist/esm/models/memory-type.d.ts +0 -19
- package/dist/esm/models/memory-type.d.ts.map +0 -1
- package/dist/esm/models/memory-type.js +0 -18
- package/dist/esm/models/memory-type.js.map +0 -1
- package/src/models/memory-type.ts +0 -34
package/README.md
CHANGED
|
@@ -8,11 +8,9 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
|
|
|
8
8
|
<!-- Start Summary [summary] -->
|
|
9
9
|
## Summary
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Redis Agent Memory API: API for storing, retrieving, and searching Redis Agent Memory session memory and long-term memory.
|
|
12
12
|
|
|
13
|
-
Authentication
|
|
14
|
-
- Cloud deployments require `Authorization: Bearer <store-api-key>`, where the store API key is obtained from [Redis Cloud Agent Memory](https://cloud.redis.io/#/agent-memory).
|
|
15
|
-
- On-prem deployments run with authentication disabled.
|
|
13
|
+
Authentication depends on your deployment. Use the credential issued for your Agent Memory service or store. For self-managed deployments, see the self-managed Agent Memory guide for authentication options.
|
|
16
14
|
<!-- End Summary [summary] -->
|
|
17
15
|
|
|
18
16
|
<!-- Start Table of Contents [toc] -->
|
|
@@ -222,11 +220,13 @@ run();
|
|
|
222
220
|
### [AgentMemory SDK](docs/sdks/agentmemory/README.md)
|
|
223
221
|
|
|
224
222
|
* [health](docs/sdks/agentmemory/README.md#health) - Return information about the operational status of the service.
|
|
223
|
+
* [storeHealth](docs/sdks/agentmemory/README.md#storehealth) - Returns read-only health for applicable store-scoped RAM features.
|
|
225
224
|
* [bulkDeleteLongTermMemories](docs/sdks/agentmemory/README.md#bulkdeletelongtermmemories) - Deletes long-term memories in bulk by their IDs.
|
|
226
225
|
* [bulkCreateLongTermMemories](docs/sdks/agentmemory/README.md#bulkcreatelongtermmemories) - Creates long-term memories in bulk.
|
|
227
226
|
* [searchLongTermMemory](docs/sdks/agentmemory/README.md#searchlongtermmemory) - Runs a semantic search on long-term memory with filtering options.
|
|
228
227
|
* [getLongTermMemory](docs/sdks/agentmemory/README.md#getlongtermmemory) - Returns a long-term memory by its ID.
|
|
229
228
|
* [updateLongTermMemory](docs/sdks/agentmemory/README.md#updatelongtermmemory) - Partially updates a long-term memory by its ID.
|
|
229
|
+
* [updateLongTermMemoryFields](docs/sdks/agentmemory/README.md#updatelongtermmemoryfields) - Atomically updates a custom-typed long-term memory's text and/or attributes, scoped to the caller's bound memory type. Used by the custom-extraction worker.
|
|
230
230
|
* [listSessions](docs/sdks/agentmemory/README.md#listsessions) - Returns a paginated list of session IDs for a store.
|
|
231
231
|
* [addSessionEvent](docs/sdks/agentmemory/README.md#addsessionevent) - Appends a single event to a session. Creates the session if it does not exist. If sessionId is omitted, the server generates one.
|
|
232
232
|
* [deleteSessionMemory](docs/sdks/agentmemory/README.md#deletesessionmemory) - Deletes the session memory for a session.
|
|
@@ -263,7 +263,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
263
263
|
- [`health`](docs/sdks/agentmemory/README.md#health) - Return information about the operational status of the service.
|
|
264
264
|
- [`listSessions`](docs/sdks/agentmemory/README.md#listsessions) - Returns a paginated list of session IDs for a store.
|
|
265
265
|
- [`searchLongTermMemory`](docs/sdks/agentmemory/README.md#searchlongtermmemory) - Runs a semantic search on long-term memory with filtering options.
|
|
266
|
+
- [`storeHealth`](docs/sdks/agentmemory/README.md#storehealth) - Returns read-only health for applicable store-scoped RAM features.
|
|
266
267
|
- [`updateLongTermMemory`](docs/sdks/agentmemory/README.md#updatelongtermmemory) - Partially updates a long-term memory by its ID.
|
|
268
|
+
- [`updateLongTermMemoryFields`](docs/sdks/agentmemory/README.md#updatelongtermmemoryfields) - Atomically updates a custom-typed long-term memory's text and/or attributes, scoped to the caller's bound memory type. Used by the custom-extraction worker.
|
|
267
269
|
|
|
268
270
|
</details>
|
|
269
271
|
<!-- End Standalone functions [standalone-funcs] -->
|
|
@@ -273,7 +275,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
273
275
|
|
|
274
276
|
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
|
|
275
277
|
|
|
276
|
-
For example, you can set `storeId` to `"<id>"` at SDK initialization and then you do not have to pass the same value on calls to operations like `
|
|
278
|
+
For example, you can set `storeId` to `"<id>"` at SDK initialization and then you do not have to pass the same value on calls to operations like `storeHealth`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
|
277
279
|
|
|
278
280
|
|
|
279
281
|
### Available Globals
|
|
@@ -297,13 +299,7 @@ const agentMemory = new AgentMemory({
|
|
|
297
299
|
});
|
|
298
300
|
|
|
299
301
|
async function run() {
|
|
300
|
-
const result = await agentMemory.
|
|
301
|
-
memoryIds: [
|
|
302
|
-
"<value 1>",
|
|
303
|
-
"<value 2>",
|
|
304
|
-
"<value 3>",
|
|
305
|
-
],
|
|
306
|
-
});
|
|
302
|
+
const result = await agentMemory.storeHealth();
|
|
307
303
|
|
|
308
304
|
console.log(result);
|
|
309
305
|
}
|
|
@@ -405,13 +401,7 @@ const agentMemory = new AgentMemory({
|
|
|
405
401
|
|
|
406
402
|
async function run() {
|
|
407
403
|
try {
|
|
408
|
-
const result = await agentMemory.
|
|
409
|
-
memoryIds: [
|
|
410
|
-
"<value 1>",
|
|
411
|
-
"<value 2>",
|
|
412
|
-
"<value 3>",
|
|
413
|
-
],
|
|
414
|
-
});
|
|
404
|
+
const result = await agentMemory.storeHealth();
|
|
415
405
|
|
|
416
406
|
console.log(result);
|
|
417
407
|
} catch (error) {
|
|
@@ -446,10 +436,10 @@ run();
|
|
|
446
436
|
* [`ForbiddenErrorResponseContent`](./src/models/errors/forbidden-error-response-content.ts): The caller is authenticated but not allowed to access the requested resource. Status code `403`. *
|
|
447
437
|
* [`NotFoundErrorResponseContent`](./src/models/errors/not-found-error-response-content.ts): The requested resource does not exist. Status code `404`. *
|
|
448
438
|
* [`TimeoutErrorResponseContent`](./src/models/errors/timeout-error-response-content.ts): The request timed out before the service could complete it. Status code `408`. *
|
|
449
|
-
* [`PayloadTooLargeErrorResponseContent`](./src/models/errors/payload-too-large-error-response-content.ts): The request payload exceeds the maximum supported size. Status code `413`. *
|
|
450
439
|
* [`FailedDependencyErrorResponseContent`](./src/models/errors/failed-dependency-error-response-content.ts): A dependent resource required to process the request is unavailable or unhealthy. Status code `424`. *
|
|
451
440
|
* [`TooManyRequestsErrorResponseContent`](./src/models/errors/too-many-requests-error-response-content.ts): The service rejected the request because rate limits were exceeded. Status code `429`. *
|
|
452
441
|
* [`UnexpectedErrorResponseContent`](./src/models/errors/unexpected-error-response-content.ts): The service failed with an unexpected internal error. Status code `500`. *
|
|
442
|
+
* [`PayloadTooLargeErrorResponseContent`](./src/models/errors/payload-too-large-error-response-content.ts): The request payload exceeds the maximum supported size. Status code `413`. *
|
|
453
443
|
|
|
454
444
|
<details><summary>Less common errors (6)</summary>
|
|
455
445
|
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Returns the session memory for a session.
|
|
13
13
|
*/
|
|
14
|
-
export declare function getSessionMemory(client: AgentMemoryCore, sessionId: string, options?: RequestOptions): APIPromise<Result<models.GetSessionMemoryResponseContent, errors.BadRequestErrorResponseContent | errors.AuthenticationErrorResponseContent | errors.ForbiddenErrorResponseContent | errors.NotFoundErrorResponseContent | errors.TimeoutErrorResponseContent | errors.PayloadTooLargeErrorResponseContent | errors.FailedDependencyErrorResponseContent | errors.TooManyRequestsErrorResponseContent | errors.UnexpectedErrorResponseContent | AgentMemoryError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
export declare function getSessionMemory(client: AgentMemoryCore, sessionId: string, includeSummarisedEvents?: boolean | undefined, options?: RequestOptions): APIPromise<Result<models.GetSessionMemoryResponseContent, errors.BadRequestErrorResponseContent | errors.AuthenticationErrorResponseContent | errors.ForbiddenErrorResponseContent | errors.NotFoundErrorResponseContent | errors.TimeoutErrorResponseContent | errors.PayloadTooLargeErrorResponseContent | errors.FailedDependencyErrorResponseContent | errors.TooManyRequestsErrorResponseContent | errors.UnexpectedErrorResponseContent | AgentMemoryError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
15
|
//# sourceMappingURL=get-session-memory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-session-memory.d.ts","sourceRoot":"","sources":["../../../src/funcs/get-session-memory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,+BAA+B,EACpC,MAAM,CAAC,8BAA8B,GACrC,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,6BAA6B,GACpC,MAAM,CAAC,4BAA4B,GACnC,MAAM,CAAC,2BAA2B,GAClC,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,8BAA8B,GACrC,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,
|
|
1
|
+
{"version":3,"file":"get-session-memory.d.ts","sourceRoot":"","sources":["../../../src/funcs/get-session-memory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,EACjB,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,+BAA+B,EACpC,MAAM,CAAC,8BAA8B,GACrC,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,6BAA6B,GACpC,MAAM,CAAC,4BAA4B,GACnC,MAAM,CAAC,2BAA2B,GAClC,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,8BAA8B,GACrC,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
|
|
@@ -52,12 +52,13 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
/**
|
|
53
53
|
* Returns the session memory for a session.
|
|
54
54
|
*/
|
|
55
|
-
function getSessionMemory(client, sessionId, options) {
|
|
56
|
-
return new async_js_1.APIPromise($do(client, sessionId, options));
|
|
55
|
+
function getSessionMemory(client, sessionId, includeSummarisedEvents, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, sessionId, includeSummarisedEvents, options));
|
|
57
57
|
}
|
|
58
|
-
async function $do(client, sessionId, options) {
|
|
58
|
+
async function $do(client, sessionId, includeSummarisedEvents, options) {
|
|
59
59
|
const input = {
|
|
60
60
|
sessionId: sessionId,
|
|
61
|
+
includeSummarisedEvents: includeSummarisedEvents,
|
|
61
62
|
};
|
|
62
63
|
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.GetSessionMemoryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63
64
|
if (!parsed.ok) {
|
|
@@ -76,6 +77,9 @@ async function $do(client, sessionId, options) {
|
|
|
76
77
|
}),
|
|
77
78
|
};
|
|
78
79
|
const path = (0, url_js_1.pathToFunc)("/v1/stores/{storeId}/session-memory/{sessionId}")(pathParams);
|
|
80
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
81
|
+
"includeSummarisedEvents": payload.includeSummarisedEvents,
|
|
82
|
+
});
|
|
79
83
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
80
84
|
Accept: "application/json",
|
|
81
85
|
}));
|
|
@@ -100,6 +104,7 @@ async function $do(client, sessionId, options) {
|
|
|
100
104
|
baseURL: options?.serverURL,
|
|
101
105
|
path: path,
|
|
102
106
|
headers: headers,
|
|
107
|
+
query: query,
|
|
103
108
|
body: body,
|
|
104
109
|
userAgent: client._options.userAgent,
|
|
105
110
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-session-memory.js","sourceRoot":"","sources":["../../../src/funcs/get-session-memory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,
|
|
1
|
+
{"version":3,"file":"get-session-memory.js","sourceRoot":"","sources":["../../../src/funcs/get-session-memory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAoE;AACpE,4CAAiD;AACjD,MAAY,CAAC,+CAA2B;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,MAAY,MAAM,sDAAkC;AAGpD,MAAY,MAAM,+CAA2B;AAC7C,MAAY,UAAU,0DAAsC;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,0BACE,MAAuB,EACvB,SAAiB,EACjB,uBAA6C,EAC7C,OAAwB,EAsBxB;IACA,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,SAAS,EACT,uBAAuB,EACvB,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAuB,EACvB,SAAiB,EACjB,uBAA6C,EAC7C,OAAwB,EAyBxB;IACA,MAAM,KAAK,GAAuC;QAChD,SAAS,EAAE,SAAS;QACpB,uBAAuB,EAAE,uBAAuB;KACjD,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,sCAAsC,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,G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EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Returns a paginated list of session IDs for a store.
|
|
13
13
|
*/
|
|
14
|
-
export declare function listSessions(client: AgentMemoryCore, limit?: number | undefined, pageToken?: string | undefined, options?: RequestOptions): APIPromise<Result<models.ListSessionsResponseContent, errors.BadRequestErrorResponseContent | errors.AuthenticationErrorResponseContent | errors.ForbiddenErrorResponseContent | errors.NotFoundErrorResponseContent | errors.TimeoutErrorResponseContent | errors.PayloadTooLargeErrorResponseContent | errors.FailedDependencyErrorResponseContent | errors.TooManyRequestsErrorResponseContent | errors.UnexpectedErrorResponseContent | AgentMemoryError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
export declare function listSessions(client: AgentMemoryCore, limit?: number | undefined, pageToken?: string | undefined, filterOwnerId?: string | undefined, includeAll?: boolean | undefined, options?: RequestOptions): APIPromise<Result<models.ListSessionsResponseContent, errors.BadRequestErrorResponseContent | errors.AuthenticationErrorResponseContent | errors.ForbiddenErrorResponseContent | errors.NotFoundErrorResponseContent | errors.TimeoutErrorResponseContent | errors.PayloadTooLargeErrorResponseContent | errors.FailedDependencyErrorResponseContent | errors.TooManyRequestsErrorResponseContent | errors.UnexpectedErrorResponseContent | AgentMemoryError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
15
|
//# sourceMappingURL=list-sessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sessions.d.ts","sourceRoot":"","sources":["../../../src/funcs/list-sessions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OA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
|
|
|
52
52
|
/**
|
|
53
53
|
* Returns a paginated list of session IDs for a store.
|
|
54
54
|
*/
|
|
55
|
-
function listSessions(client, limit, pageToken, options) {
|
|
56
|
-
return new async_js_1.APIPromise($do(client, limit, pageToken, options));
|
|
55
|
+
function listSessions(client, limit, pageToken, filterOwnerId, includeAll, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, limit, pageToken, filterOwnerId, includeAll, options));
|
|
57
57
|
}
|
|
58
|
-
async function $do(client, limit, pageToken, options) {
|
|
58
|
+
async function $do(client, limit, pageToken, filterOwnerId, includeAll, options) {
|
|
59
59
|
const input = {
|
|
60
60
|
limit: limit,
|
|
61
61
|
pageToken: pageToken,
|
|
62
|
+
filterOwnerId: filterOwnerId,
|
|
63
|
+
includeAll: includeAll,
|
|
62
64
|
};
|
|
63
65
|
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.ListSessionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
64
66
|
if (!parsed.ok) {
|
|
@@ -74,6 +76,8 @@ async function $do(client, limit, pageToken, options) {
|
|
|
74
76
|
};
|
|
75
77
|
const path = (0, url_js_1.pathToFunc)("/v1/stores/{storeId}/session-memory")(pathParams);
|
|
76
78
|
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
79
|
+
"filterOwnerId": payload?.filterOwnerId,
|
|
80
|
+
"includeAll": payload?.includeAll,
|
|
77
81
|
"limit": payload?.limit,
|
|
78
82
|
"pageToken": payload?.pageToken,
|
|
79
83
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sessions.js","sourceRoot":"","sources":["../../../src/funcs/list-sessions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAoE;AACpE,4CAAiD;AACjD,MAAY,CAAC,+CAA2B;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,MAAY,MAAM,sDAAkC;AAGpD,MAAY,MAAM,+CAA2B;AAC7C,MAAY,UAAU,0DAAsC;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,sBACE,MAAuB,EACvB,KAA0B,EAC1B,SAA8B,EAC9B,OAAwB,EAsBxB;IACA,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,KAAK,EACL,SAAS,EACT,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAuB,EACvB,KAA0B,EAC1B,SAA8B,EAC9B,OAAwB,EAyBxB;IACA,MAAM,KAAK,GAA+C;QACxD,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"list-sessions.js","sourceRoot":"","sources":["../../../src/funcs/list-sessions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAoE;AACpE,4CAAiD;AACjD,MAAY,CAAC,+CAA2B;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,MAAY,MAAM,sDAAkC;AAGpD,MAAY,MAAM,+CAA2B;AAC7C,MAAY,UAAU,0DAAsC;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,sBACE,MAAuB,EACvB,KAA0B,EAC1B,SAA8B,EAC9B,aAAkC,EAClC,UAAgC,EAChC,OAAwB,EAsBxB;IACA,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,KAAK,EACL,SAAS,EACT,aAAa,EACb,UAAU,EACV,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAuB,EACvB,KAA0B,EAC1B,SAA8B,EAC9B,aAAkC,EAClC,UAAgC,EAChC,OAAwB,EAyBxB;IACA,MAAM,KAAK,GAA+C;QACxD,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,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C,EACxE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4CAA4C,CAAC,EACnE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AgentMemoryCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { AgentMemoryError } from "../models/errors/agent-memory-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* Returns read-only health for applicable store-scoped RAM features.
|
|
14
|
+
*/
|
|
15
|
+
export declare function storeHealth(client: AgentMemoryCore, _request?: operations.StoreHealthRequest | undefined, options?: RequestOptions): APIPromise<Result<models.StoreHealthResponseContent, errors.BadRequestErrorResponseContent | errors.AuthenticationErrorResponseContent | errors.ForbiddenErrorResponseContent | errors.NotFoundErrorResponseContent | errors.TimeoutErrorResponseContent | errors.PayloadTooLargeErrorResponseContent | errors.FailedDependencyErrorResponseContent | errors.TooManyRequestsErrorResponseContent | errors.UnexpectedErrorResponseContent | AgentMemoryError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
16
|
+
//# sourceMappingURL=store-health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-health.d.ts","sourceRoot":"","sources":["../../../src/funcs/store-health.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,0BAA0B,EAC/B,MAAM,CAAC,8BAA8B,GACrC,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,6BAA6B,GACpC,MAAM,CAAC,4BAA4B,GACnC,MAAM,CAAC,2BAA2B,GAClC,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,8BAA8B,GACrC,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
* @generated-id: aa184c888d0a
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.storeHealth = storeHealth;
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
+
const models = __importStar(require("../models/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Returns read-only health for applicable store-scoped RAM features.
|
|
52
|
+
*/
|
|
53
|
+
function storeHealth(client, _request, options) {
|
|
54
|
+
return new async_js_1.APIPromise($do(client, _request, options));
|
|
55
|
+
}
|
|
56
|
+
async function $do(client, _request, options) {
|
|
57
|
+
const pathParams = {
|
|
58
|
+
storeId: (0, encodings_js_1.encodeSimple)("storeId", client._options.storeId, {
|
|
59
|
+
explode: false,
|
|
60
|
+
charEncoding: "percent",
|
|
61
|
+
}),
|
|
62
|
+
};
|
|
63
|
+
const path = (0, url_js_1.pathToFunc)("/v1/stores/{storeId}/health")(pathParams);
|
|
64
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
65
|
+
Accept: "application/json",
|
|
66
|
+
}));
|
|
67
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
68
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
69
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
70
|
+
const context = {
|
|
71
|
+
options: client._options,
|
|
72
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
73
|
+
operationID: "StoreHealth",
|
|
74
|
+
oAuth2Scopes: null,
|
|
75
|
+
resolvedSecurity: requestSecurity,
|
|
76
|
+
securitySource: client._options.apiKey,
|
|
77
|
+
retryConfig: options?.retries
|
|
78
|
+
|| client._options.retryConfig
|
|
79
|
+
|| { strategy: "none" },
|
|
80
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
81
|
+
};
|
|
82
|
+
const requestRes = client._createRequest(context, {
|
|
83
|
+
security: requestSecurity,
|
|
84
|
+
method: "GET",
|
|
85
|
+
baseURL: options?.serverURL,
|
|
86
|
+
path: path,
|
|
87
|
+
headers: headers,
|
|
88
|
+
userAgent: client._options.userAgent,
|
|
89
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
90
|
+
}, options);
|
|
91
|
+
if (!requestRes.ok) {
|
|
92
|
+
return [requestRes, { status: "invalid" }];
|
|
93
|
+
}
|
|
94
|
+
const req = requestRes.value;
|
|
95
|
+
const doResult = await client._do(req, {
|
|
96
|
+
context,
|
|
97
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
98
|
+
retryConfig: context.retryConfig,
|
|
99
|
+
retryCodes: context.retryCodes,
|
|
100
|
+
});
|
|
101
|
+
if (!doResult.ok) {
|
|
102
|
+
return [doResult, { status: "request-error", request: req }];
|
|
103
|
+
}
|
|
104
|
+
const response = doResult.value;
|
|
105
|
+
const responseFields = {
|
|
106
|
+
HttpMeta: { Response: response, Request: req },
|
|
107
|
+
};
|
|
108
|
+
const [result] = await M.match(M.json(200, models.StoreHealthResponseContent$inboundSchema), M.jsonErr(400, errors.BadRequestErrorResponseContent$inboundSchema), M.jsonErr(401, errors.AuthenticationErrorResponseContent$inboundSchema), M.jsonErr(403, errors.ForbiddenErrorResponseContent$inboundSchema), M.jsonErr(404, errors.NotFoundErrorResponseContent$inboundSchema), M.jsonErr(408, errors.TimeoutErrorResponseContent$inboundSchema), M.jsonErr(413, errors.PayloadTooLargeErrorResponseContent$inboundSchema), M.jsonErr(424, errors.FailedDependencyErrorResponseContent$inboundSchema), M.jsonErr(429, errors.TooManyRequestsErrorResponseContent$inboundSchema), M.jsonErr(500, errors.UnexpectedErrorResponseContent$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
109
|
+
if (!result.ok) {
|
|
110
|
+
return [result, { status: "complete", request: req, response }];
|
|
111
|
+
}
|
|
112
|
+
return [result, { status: "complete", request: req, response }];
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=store-health.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-health.js","sourceRoot":"","sources":["../../../src/funcs/store-health.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAAmD;AACnD,4CAAiD;AACjD,MAAY,CAAC,+CAA2B;AACxC,wDAAkD;AAElD,oDAA4E;AAC5E,0CAA2C;AAS3C,MAAY,MAAM,sDAAkC;AAGpD,MAAY,MAAM,+CAA2B;AAE7C,gDAAwD;AAGxD;;GAEG;AACH,qBACE,MAAuB,EACvB,QAAoD,EACpD,OAAwB,EAsBxB;IACA,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,QAAQ,EACR,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAuB,EACvB,QAAoD,EACpD,OAAwB,EAyBxB;IACA,MAAM,UAAU,GAAG;QACjB,OAAO,EAAE,IAAA,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4CAA4C,CAAC,EACnE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,gDAAgD,CAAC,EACvE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2CAA2C,CAAC,EAClE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,0CAA0C,CAAC,EACjE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,yCAAyC,CAAC,EAChE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iDAAiD,CAAC,EACxE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kDAAkD,CAAC,EACzE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iDAAiD,CAAC,EACxE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4CAA4C,CAAC,EACnE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AgentMemoryCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { AgentMemoryError } from "../models/errors/agent-memory-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Atomically updates a custom-typed long-term memory's text and/or attributes, scoped to the caller's bound memory type. Used by the custom-extraction worker.
|
|
13
|
+
*/
|
|
14
|
+
export declare function updateLongTermMemoryFields(client: AgentMemoryCore, memoryId: string, body: models.UpdateLongTermMemoryFieldsRequestContent, options?: RequestOptions): APIPromise<Result<void, errors.BadRequestErrorResponseContent | errors.AuthenticationErrorResponseContent | errors.ForbiddenErrorResponseContent | errors.NotFoundErrorResponseContent | errors.TimeoutErrorResponseContent | errors.FailedDependencyErrorResponseContent | errors.TooManyRequestsErrorResponseContent | errors.UnexpectedErrorResponseContent | AgentMemoryError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
|
+
//# sourceMappingURL=update-long-term-memory-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-long-term-memory-fields.d.ts","sourceRoot":"","sources":["../../../src/funcs/update-long-term-memory-fields.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,wCAAwC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,MAAM,CAAC,8BAA8B,GACrC,MAAM,CAAC,kCAAkC,GACzC,MAAM,CAAC,6BAA6B,GACpC,MAAM,CAAC,4BAA4B,GACnC,MAAM,CAAC,2BAA2B,GAClC,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,mCAAmC,GAC1C,MAAM,CAAC,8BAA8B,GACrC,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
* @generated-id: e08db4fff588
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.updateLongTermMemoryFields = updateLongTermMemoryFields;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
43
|
+
const http_js_1 = require("../lib/http.js");
|
|
44
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
45
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
47
|
+
const security_js_1 = require("../lib/security.js");
|
|
48
|
+
const url_js_1 = require("../lib/url.js");
|
|
49
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
50
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
51
|
+
const async_js_1 = require("../types/async.js");
|
|
52
|
+
/**
|
|
53
|
+
* Atomically updates a custom-typed long-term memory's text and/or attributes, scoped to the caller's bound memory type. Used by the custom-extraction worker.
|
|
54
|
+
*/
|
|
55
|
+
function updateLongTermMemoryFields(client, memoryId, body, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, memoryId, body, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, memoryId, body, options) {
|
|
59
|
+
const input = {
|
|
60
|
+
memoryId: memoryId,
|
|
61
|
+
body: body,
|
|
62
|
+
};
|
|
63
|
+
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.UpdateLongTermMemoryFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
return [parsed, { status: "invalid" }];
|
|
66
|
+
}
|
|
67
|
+
const payload = parsed.value;
|
|
68
|
+
const body$ = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
|
|
69
|
+
const pathParams = {
|
|
70
|
+
memoryId: (0, encodings_js_1.encodeSimple)("memoryId", payload.memoryId, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
storeId: (0, encodings_js_1.encodeSimple)("storeId", client._options.storeId, {
|
|
75
|
+
explode: false,
|
|
76
|
+
charEncoding: "percent",
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
79
|
+
const path = (0, url_js_1.pathToFunc)("/v1/stores/{storeId}/long-term-memory/{memoryId}/fields")(pathParams);
|
|
80
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
81
|
+
"Content-Type": "application/json",
|
|
82
|
+
Accept: "application/json",
|
|
83
|
+
}));
|
|
84
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
85
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
86
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
87
|
+
const context = {
|
|
88
|
+
options: client._options,
|
|
89
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
90
|
+
operationID: "UpdateLongTermMemoryFields",
|
|
91
|
+
oAuth2Scopes: null,
|
|
92
|
+
resolvedSecurity: requestSecurity,
|
|
93
|
+
securitySource: client._options.apiKey,
|
|
94
|
+
retryConfig: options?.retries
|
|
95
|
+
|| client._options.retryConfig
|
|
96
|
+
|| { strategy: "none" },
|
|
97
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
98
|
+
};
|
|
99
|
+
const requestRes = client._createRequest(context, {
|
|
100
|
+
security: requestSecurity,
|
|
101
|
+
method: "PATCH",
|
|
102
|
+
baseURL: options?.serverURL,
|
|
103
|
+
path: path,
|
|
104
|
+
headers: headers,
|
|
105
|
+
body: body$,
|
|
106
|
+
userAgent: client._options.userAgent,
|
|
107
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
108
|
+
}, options);
|
|
109
|
+
if (!requestRes.ok) {
|
|
110
|
+
return [requestRes, { status: "invalid" }];
|
|
111
|
+
}
|
|
112
|
+
const req = requestRes.value;
|
|
113
|
+
const doResult = await client._do(req, {
|
|
114
|
+
context,
|
|
115
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
116
|
+
retryConfig: context.retryConfig,
|
|
117
|
+
retryCodes: context.retryCodes,
|
|
118
|
+
});
|
|
119
|
+
if (!doResult.ok) {
|
|
120
|
+
return [doResult, { status: "request-error", request: req }];
|
|
121
|
+
}
|
|
122
|
+
const response = doResult.value;
|
|
123
|
+
const responseFields = {
|
|
124
|
+
HttpMeta: { Response: response, Request: req },
|
|
125
|
+
};
|
|
126
|
+
const [result] = await M.match(M.nil(200, z.void()), M.jsonErr(400, errors.BadRequestErrorResponseContent$inboundSchema), M.jsonErr(401, errors.AuthenticationErrorResponseContent$inboundSchema), M.jsonErr(403, errors.ForbiddenErrorResponseContent$inboundSchema), M.jsonErr(404, errors.NotFoundErrorResponseContent$inboundSchema), M.jsonErr(408, errors.TimeoutErrorResponseContent$inboundSchema), M.jsonErr(424, errors.FailedDependencyErrorResponseContent$inboundSchema), M.jsonErr(429, errors.TooManyRequestsErrorResponseContent$inboundSchema), M.jsonErr(500, errors.UnexpectedErrorResponseContent$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
127
|
+
if (!result.ok) {
|
|
128
|
+
return [result, { status: "complete", request: req, response }];
|
|
129
|
+
}
|
|
130
|
+
return [result, { status: "complete", request: req, response }];
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=update-long-term-memory-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-long-term-memory-fields.js","sourceRoot":"","sources":["../../../src/funcs/update-long-term-memory-fields.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,MAAY,CAAC,mCAAe;AAE5B,sDAA+D;AAC/D,4CAAiD;AACjD,MAAY,CAAC,+CAA2B;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,MAAY,MAAM,sDAAkC;AAIpD,MAAY,UAAU,0DAAsC;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,oCACE,MAAuB,EACvB,QAAgB,EAChB,IAAqD,EACrD,OAAwB,EAqBxB;IACA,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAuB,EACvB,QAAgB,EAChB,IAAqD,EACrD,OAAwB,EAwBxB;IACA,MAAM,KAAK,GAAiD;QAC1D,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;KACX,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS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CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0.0";
|
|
30
|
-
readonly sdkVersion: "0.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
30
|
+
readonly sdkVersion: "0.2.0";
|
|
31
|
+
readonly genVersion: "2.926.8";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.0 2.926.8 1.0.0 @redis-iris/agent-memory";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -19,8 +19,8 @@ function serverURLFromOptions(options) {
|
|
|
19
19
|
exports.SDK_METADATA = {
|
|
20
20
|
language: "typescript",
|
|
21
21
|
openapiDocVersion: "1.0.0",
|
|
22
|
-
sdkVersion: "0.
|
|
23
|
-
genVersion: "2.
|
|
24
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
22
|
+
sdkVersion: "0.2.0",
|
|
23
|
+
genVersion: "2.926.8",
|
|
24
|
+
userAgent: "speakeasy-sdk/typescript 0.2.0 2.926.8 1.0.0 @redis-iris/agent-memory",
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=config.js.map
|
|
@@ -17,11 +17,11 @@ export type BeforeRequestHook = (req: Request) => Awaitable<Request | void>;
|
|
|
17
17
|
export type RequestErrorHook = (err: unknown, req: Request) => Awaitable<void>;
|
|
18
18
|
export type ResponseHook = (res: Response, req: Request) => Awaitable<void>;
|
|
19
19
|
export declare class HTTPClient {
|
|
20
|
-
private options;
|
|
21
20
|
private fetcher;
|
|
22
21
|
private requestHooks;
|
|
23
22
|
private requestErrorHooks;
|
|
24
23
|
private responseHooks;
|
|
24
|
+
private options;
|
|
25
25
|
constructor(options?: HTTPClientOptions);
|
|
26
26
|
request(request: Request): Promise<Response>;
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/lib/http.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,OAAO,GAAG,CACpB,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,IAAI,CAAC,EAAE,WAAW,KACf,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEvB,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAc1C,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;AAC5E,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC;AAC/E,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,KAAK,SAAS,CAAC,I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ER = (input, init) => {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
class HTTPClient {
|
|
27
|
-
options;
|
|
28
27
|
fetcher;
|
|
29
28
|
requestHooks = [];
|
|
30
29
|
requestErrorHooks = [];
|
|
31
30
|
responseHooks = [];
|
|
31
|
+
options;
|
|
32
32
|
constructor(options = {}) {
|
|
33
33
|
this.options = options;
|
|
34
34
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|