@soat/sdk 0.49.1 → 0.50.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/dist/index.cjs +46 -46
- package/dist/index.d.cts +269 -266
- package/dist/index.d.mts +269 -266
- package/dist/index.mjs +46 -46
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2626,7 +2626,7 @@ var Knowledge = class {
|
|
|
2626
2626
|
/**
|
|
2627
2627
|
* Search knowledge
|
|
2628
2628
|
*
|
|
2629
|
-
* Searches across documents and
|
|
2629
|
+
* Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.
|
|
2630
2630
|
*/
|
|
2631
2631
|
static searchKnowledge(options) {
|
|
2632
2632
|
return (options.client ?? client).post({
|
|
@@ -2643,10 +2643,10 @@ var Memories = class {
|
|
|
2643
2643
|
/**
|
|
2644
2644
|
* List memories
|
|
2645
2645
|
*
|
|
2646
|
-
* Returns
|
|
2646
|
+
* Returns all memories in a memory store
|
|
2647
2647
|
*/
|
|
2648
2648
|
static listMemories(options) {
|
|
2649
|
-
return (options
|
|
2649
|
+
return (options.client ?? client).get({
|
|
2650
2650
|
url: "/api/v1/memories",
|
|
2651
2651
|
...options
|
|
2652
2652
|
});
|
|
@@ -2654,7 +2654,7 @@ var Memories = class {
|
|
|
2654
2654
|
/**
|
|
2655
2655
|
* Create a memory
|
|
2656
2656
|
*
|
|
2657
|
-
* Creates a new memory
|
|
2657
|
+
* Creates a new memory in the specified memory store. Automatically generates an embedding for semantic search, and skips the write when an existing memory is a near-duplicate (see `duplicate_threshold`). A merely similar fact is stored as its own memory: this path has no agent context and therefore no model to consolidate two facts into one.
|
|
2658
2658
|
*/
|
|
2659
2659
|
static createMemory(options) {
|
|
2660
2660
|
return (options.client ?? client).post({
|
|
@@ -2669,7 +2669,7 @@ var Memories = class {
|
|
|
2669
2669
|
/**
|
|
2670
2670
|
* Delete a memory
|
|
2671
2671
|
*
|
|
2672
|
-
* Deletes a memory
|
|
2672
|
+
* Deletes a memory
|
|
2673
2673
|
*/
|
|
2674
2674
|
static deleteMemory(options) {
|
|
2675
2675
|
return (options.client ?? client).delete({
|
|
@@ -2680,7 +2680,7 @@ var Memories = class {
|
|
|
2680
2680
|
/**
|
|
2681
2681
|
* Get a memory
|
|
2682
2682
|
*
|
|
2683
|
-
* Returns a single memory
|
|
2683
|
+
* Returns a single memory by ID
|
|
2684
2684
|
*/
|
|
2685
2685
|
static getMemory(options) {
|
|
2686
2686
|
return (options.client ?? client).get({
|
|
@@ -2691,7 +2691,7 @@ var Memories = class {
|
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Update a memory
|
|
2693
2693
|
*
|
|
2694
|
-
* Updates an existing memory
|
|
2694
|
+
* Updates an existing memory. Regenerates the embedding if content changes.
|
|
2695
2695
|
*/
|
|
2696
2696
|
static updateMemory(options) {
|
|
2697
2697
|
return (options.client ?? client).put({
|
|
@@ -2745,26 +2745,26 @@ var Memories = class {
|
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
2747
|
};
|
|
2748
|
-
var
|
|
2748
|
+
var MemoryStores = class {
|
|
2749
2749
|
/**
|
|
2750
|
-
* List memory
|
|
2750
|
+
* List memory stores
|
|
2751
2751
|
*
|
|
2752
|
-
* Returns
|
|
2752
|
+
* Returns a list of memory store configurations for a project
|
|
2753
2753
|
*/
|
|
2754
|
-
static
|
|
2755
|
-
return (options
|
|
2756
|
-
url: "/api/v1/memory-
|
|
2754
|
+
static listMemoryStores(options) {
|
|
2755
|
+
return (options?.client ?? client).get({
|
|
2756
|
+
url: "/api/v1/memory-stores",
|
|
2757
2757
|
...options
|
|
2758
2758
|
});
|
|
2759
2759
|
}
|
|
2760
2760
|
/**
|
|
2761
|
-
* Create a memory
|
|
2761
|
+
* Create a memory store
|
|
2762
2762
|
*
|
|
2763
|
-
* Creates a new
|
|
2763
|
+
* Creates a new memory store configuration in a project
|
|
2764
2764
|
*/
|
|
2765
|
-
static
|
|
2765
|
+
static createMemoryStore(options) {
|
|
2766
2766
|
return (options.client ?? client).post({
|
|
2767
|
-
url: "/api/v1/memory-
|
|
2767
|
+
url: "/api/v1/memory-stores",
|
|
2768
2768
|
...options,
|
|
2769
2769
|
headers: {
|
|
2770
2770
|
"Content-Type": "application/json",
|
|
@@ -2773,35 +2773,35 @@ var MemoryEntries = class {
|
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
2775
|
/**
|
|
2776
|
-
* Delete a memory
|
|
2776
|
+
* Delete a memory store
|
|
2777
2777
|
*
|
|
2778
|
-
* Deletes a memory
|
|
2778
|
+
* Deletes a memory store configuration
|
|
2779
2779
|
*/
|
|
2780
|
-
static
|
|
2780
|
+
static deleteMemoryStore(options) {
|
|
2781
2781
|
return (options.client ?? client).delete({
|
|
2782
|
-
url: "/api/v1/memory-
|
|
2782
|
+
url: "/api/v1/memory-stores/{memory_store_id}",
|
|
2783
2783
|
...options
|
|
2784
2784
|
});
|
|
2785
2785
|
}
|
|
2786
2786
|
/**
|
|
2787
|
-
* Get a memory
|
|
2787
|
+
* Get a memory store
|
|
2788
2788
|
*
|
|
2789
|
-
* Returns a single memory
|
|
2789
|
+
* Returns a single memory store configuration by ID
|
|
2790
2790
|
*/
|
|
2791
|
-
static
|
|
2791
|
+
static getMemoryStore(options) {
|
|
2792
2792
|
return (options.client ?? client).get({
|
|
2793
|
-
url: "/api/v1/memory-
|
|
2793
|
+
url: "/api/v1/memory-stores/{memory_store_id}",
|
|
2794
2794
|
...options
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
/**
|
|
2798
|
-
* Update a memory
|
|
2798
|
+
* Update a memory store
|
|
2799
2799
|
*
|
|
2800
|
-
* Updates an existing memory
|
|
2800
|
+
* Updates an existing memory store configuration
|
|
2801
2801
|
*/
|
|
2802
|
-
static
|
|
2802
|
+
static updateMemoryStore(options) {
|
|
2803
2803
|
return (options.client ?? client).put({
|
|
2804
|
-
url: "/api/v1/memory-
|
|
2804
|
+
url: "/api/v1/memory-stores/{memory_store_id}",
|
|
2805
2805
|
...options,
|
|
2806
2806
|
headers: {
|
|
2807
2807
|
"Content-Type": "application/json",
|
|
@@ -2810,24 +2810,24 @@ var MemoryEntries = class {
|
|
|
2810
2810
|
});
|
|
2811
2811
|
}
|
|
2812
2812
|
/**
|
|
2813
|
-
* Get memory
|
|
2813
|
+
* Get memory store tags
|
|
2814
2814
|
*
|
|
2815
|
-
* Returns all tags attached to the memory
|
|
2815
|
+
* Returns all tags attached to the memory store
|
|
2816
2816
|
*/
|
|
2817
|
-
static
|
|
2817
|
+
static getMemoryStoreTags(options) {
|
|
2818
2818
|
return (options.client ?? client).get({
|
|
2819
|
-
url: "/api/v1/memory-
|
|
2819
|
+
url: "/api/v1/memory-stores/{memory_store_id}/tags",
|
|
2820
2820
|
...options
|
|
2821
2821
|
});
|
|
2822
2822
|
}
|
|
2823
2823
|
/**
|
|
2824
|
-
* Merge memory
|
|
2824
|
+
* Merge memory store tags
|
|
2825
2825
|
*
|
|
2826
|
-
* Merges provided tags into the memory
|
|
2826
|
+
* Merges provided tags into the memory store's existing tags (existing tags are preserved unless overridden)
|
|
2827
2827
|
*/
|
|
2828
|
-
static
|
|
2828
|
+
static mergeMemoryStoreTags(options) {
|
|
2829
2829
|
return (options.client ?? client).patch({
|
|
2830
|
-
url: "/api/v1/memory-
|
|
2830
|
+
url: "/api/v1/memory-stores/{memory_store_id}/tags",
|
|
2831
2831
|
...options,
|
|
2832
2832
|
headers: {
|
|
2833
2833
|
"Content-Type": "application/json",
|
|
@@ -2836,13 +2836,13 @@ var MemoryEntries = class {
|
|
|
2836
2836
|
});
|
|
2837
2837
|
}
|
|
2838
2838
|
/**
|
|
2839
|
-
* Replace memory
|
|
2839
|
+
* Replace memory store tags
|
|
2840
2840
|
*
|
|
2841
|
-
* Replaces all tags on the memory
|
|
2841
|
+
* Replaces all tags on the memory store with the provided tags (not merged)
|
|
2842
2842
|
*/
|
|
2843
|
-
static
|
|
2843
|
+
static replaceMemoryStoreTags(options) {
|
|
2844
2844
|
return (options.client ?? client).put({
|
|
2845
|
-
url: "/api/v1/memory-
|
|
2845
|
+
url: "/api/v1/memory-stores/{memory_store_id}/tags",
|
|
2846
2846
|
...options,
|
|
2847
2847
|
headers: {
|
|
2848
2848
|
"Content-Type": "application/json",
|
|
@@ -3254,7 +3254,7 @@ var Projects = class {
|
|
|
3254
3254
|
*
|
|
3255
3255
|
* Deletes a project. Requires admin role. Fails with `409` if the project has any dependent resource, unless `force=true` is passed, in which case those resources are deleted along with the project.
|
|
3256
3256
|
*
|
|
3257
|
-
* Every project-scoped resource counts: agents, ai providers, model routes, tools, ingestion rules, actors, chats, conversations, sessions, generations, traces, datasets, evals, workflows, tasks, triggers, orchestrations and their runs, formations,
|
|
3257
|
+
* Every project-scoped resource counts: agents, ai providers, model routes, tools, ingestion rules, actors, chats, conversations, sessions, generations, traces, datasets, evals, workflows, tasks, triggers, orchestrations and their runs, formations, memory stores, secrets, files, guardrails, quotas, usage history — and the activity, approval, exception and guardrail-evaluation records a project accumulates while it runs. Audit log entries are the one exception: they outlive the project, keeping their record with `project_id` cleared.
|
|
3258
3258
|
*
|
|
3259
3259
|
*/
|
|
3260
3260
|
static deleteProject(options) {
|
|
@@ -3335,7 +3335,7 @@ var Quotas = class {
|
|
|
3335
3335
|
*
|
|
3336
3336
|
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`; `storage_bytes` is valid for `scope: project` only. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.
|
|
3337
3337
|
*
|
|
3338
|
-
* `storage_bytes` caps a stored total rather than a windowed one, so it takes `window: current` and every other metric refuses that value (400 either way). It is enforced at the corpus write paths — file upload and create, document create, document ingest and re-ingest, memory
|
|
3338
|
+
* `storage_bytes` caps a stored total rather than a windowed one, so it takes `window: current` and every other metric refuses that value (400 either way). It is enforced at the corpus write paths — file upload and create, document create, document ingest and re-ingest, memory create — with `409 QUOTA_STORAGE_EXCEEDED` and no `Retry-After`, since no window reset clears a footprint.
|
|
3339
3339
|
*/
|
|
3340
3340
|
static createQuota(options) {
|
|
3341
3341
|
return (options.client ?? client).post({
|
|
@@ -4537,7 +4537,7 @@ var SoatClient = class {
|
|
|
4537
4537
|
ingestionRules;
|
|
4538
4538
|
knowledge;
|
|
4539
4539
|
memories;
|
|
4540
|
-
|
|
4540
|
+
memoryStores;
|
|
4541
4541
|
modelRoutes;
|
|
4542
4542
|
orchestrations;
|
|
4543
4543
|
policies;
|
|
@@ -4584,7 +4584,7 @@ var SoatClient = class {
|
|
|
4584
4584
|
this.ingestionRules = bindResource(IngestionRules, httpClient);
|
|
4585
4585
|
this.knowledge = bindResource(Knowledge, httpClient);
|
|
4586
4586
|
this.memories = bindResource(Memories, httpClient);
|
|
4587
|
-
this.
|
|
4587
|
+
this.memoryStores = bindResource(MemoryStores, httpClient);
|
|
4588
4588
|
this.modelRoutes = bindResource(ModelRoutes, httpClient);
|
|
4589
4589
|
this.orchestrations = bindResource(Orchestrations, httpClient);
|
|
4590
4590
|
this.policies = bindResource(Policies, httpClient);
|
|
@@ -4603,4 +4603,4 @@ var SoatClient = class {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
};
|
|
4605
4605
|
//#endregion
|
|
4606
|
-
export { Activity, Actors, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, AuditLog, Chains, Chats, Conversations, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, Memories,
|
|
4606
|
+
export { Activity, Actors, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, AuditLog, Chains, Chats, Conversations, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, Memories, MemoryStores, ModelRoutes, Orchestrations, Policies, Projects, Quotas, Secrets, Sessions, SoatClient, Tasks, Tools, Traces, Triggers, Usage, Users, Webhooks, Workflows, createClient, createConfig };
|