@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 CHANGED
@@ -2627,7 +2627,7 @@ var Knowledge = class {
2627
2627
  /**
2628
2628
  * Search knowledge
2629
2629
  *
2630
- * Searches across documents and memory entries using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.
2630
+ * 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.
2631
2631
  */
2632
2632
  static searchKnowledge(options) {
2633
2633
  return (options.client ?? client).post({
@@ -2644,10 +2644,10 @@ var Memories = class {
2644
2644
  /**
2645
2645
  * List memories
2646
2646
  *
2647
- * Returns a list of memory configurations for a project
2647
+ * Returns all memories in a memory store
2648
2648
  */
2649
2649
  static listMemories(options) {
2650
- return (options?.client ?? client).get({
2650
+ return (options.client ?? client).get({
2651
2651
  url: "/api/v1/memories",
2652
2652
  ...options
2653
2653
  });
@@ -2655,7 +2655,7 @@ var Memories = class {
2655
2655
  /**
2656
2656
  * Create a memory
2657
2657
  *
2658
- * Creates a new memory configuration in a project
2658
+ * 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.
2659
2659
  */
2660
2660
  static createMemory(options) {
2661
2661
  return (options.client ?? client).post({
@@ -2670,7 +2670,7 @@ var Memories = class {
2670
2670
  /**
2671
2671
  * Delete a memory
2672
2672
  *
2673
- * Deletes a memory configuration
2673
+ * Deletes a memory
2674
2674
  */
2675
2675
  static deleteMemory(options) {
2676
2676
  return (options.client ?? client).delete({
@@ -2681,7 +2681,7 @@ var Memories = class {
2681
2681
  /**
2682
2682
  * Get a memory
2683
2683
  *
2684
- * Returns a single memory configuration by ID
2684
+ * Returns a single memory by ID
2685
2685
  */
2686
2686
  static getMemory(options) {
2687
2687
  return (options.client ?? client).get({
@@ -2692,7 +2692,7 @@ var Memories = class {
2692
2692
  /**
2693
2693
  * Update a memory
2694
2694
  *
2695
- * Updates an existing memory configuration
2695
+ * Updates an existing memory. Regenerates the embedding if content changes.
2696
2696
  */
2697
2697
  static updateMemory(options) {
2698
2698
  return (options.client ?? client).put({
@@ -2746,26 +2746,26 @@ var Memories = class {
2746
2746
  });
2747
2747
  }
2748
2748
  };
2749
- var MemoryEntries = class {
2749
+ var MemoryStores = class {
2750
2750
  /**
2751
- * List memory entries
2751
+ * List memory stores
2752
2752
  *
2753
- * Returns all entries in a memory container
2753
+ * Returns a list of memory store configurations for a project
2754
2754
  */
2755
- static listMemoryEntries(options) {
2756
- return (options.client ?? client).get({
2757
- url: "/api/v1/memory-entries",
2755
+ static listMemoryStores(options) {
2756
+ return (options?.client ?? client).get({
2757
+ url: "/api/v1/memory-stores",
2758
2758
  ...options
2759
2759
  });
2760
2760
  }
2761
2761
  /**
2762
- * Create a memory entry
2762
+ * Create a memory store
2763
2763
  *
2764
- * Creates a new entry in the specified memory container. Automatically generates an embedding for semantic search, and skips the write when an existing entry is a near-duplicate (see `duplicate_threshold`). A merely similar fact is stored as its own entry: this path has no agent context and therefore no model to consolidate two facts into one.
2764
+ * Creates a new memory store configuration in a project
2765
2765
  */
2766
- static createMemoryEntry(options) {
2766
+ static createMemoryStore(options) {
2767
2767
  return (options.client ?? client).post({
2768
- url: "/api/v1/memory-entries",
2768
+ url: "/api/v1/memory-stores",
2769
2769
  ...options,
2770
2770
  headers: {
2771
2771
  "Content-Type": "application/json",
@@ -2774,35 +2774,35 @@ var MemoryEntries = class {
2774
2774
  });
2775
2775
  }
2776
2776
  /**
2777
- * Delete a memory entry
2777
+ * Delete a memory store
2778
2778
  *
2779
- * Deletes a memory entry
2779
+ * Deletes a memory store configuration
2780
2780
  */
2781
- static deleteMemoryEntry(options) {
2781
+ static deleteMemoryStore(options) {
2782
2782
  return (options.client ?? client).delete({
2783
- url: "/api/v1/memory-entries/{entry_id}",
2783
+ url: "/api/v1/memory-stores/{memory_store_id}",
2784
2784
  ...options
2785
2785
  });
2786
2786
  }
2787
2787
  /**
2788
- * Get a memory entry
2788
+ * Get a memory store
2789
2789
  *
2790
- * Returns a single memory entry by ID
2790
+ * Returns a single memory store configuration by ID
2791
2791
  */
2792
- static getMemoryEntry(options) {
2792
+ static getMemoryStore(options) {
2793
2793
  return (options.client ?? client).get({
2794
- url: "/api/v1/memory-entries/{entry_id}",
2794
+ url: "/api/v1/memory-stores/{memory_store_id}",
2795
2795
  ...options
2796
2796
  });
2797
2797
  }
2798
2798
  /**
2799
- * Update a memory entry
2799
+ * Update a memory store
2800
2800
  *
2801
- * Updates an existing memory entry. Regenerates the embedding if content changes.
2801
+ * Updates an existing memory store configuration
2802
2802
  */
2803
- static updateMemoryEntry(options) {
2803
+ static updateMemoryStore(options) {
2804
2804
  return (options.client ?? client).put({
2805
- url: "/api/v1/memory-entries/{entry_id}",
2805
+ url: "/api/v1/memory-stores/{memory_store_id}",
2806
2806
  ...options,
2807
2807
  headers: {
2808
2808
  "Content-Type": "application/json",
@@ -2811,24 +2811,24 @@ var MemoryEntries = class {
2811
2811
  });
2812
2812
  }
2813
2813
  /**
2814
- * Get memory entry tags
2814
+ * Get memory store tags
2815
2815
  *
2816
- * Returns all tags attached to the memory entry
2816
+ * Returns all tags attached to the memory store
2817
2817
  */
2818
- static getMemoryEntryTags(options) {
2818
+ static getMemoryStoreTags(options) {
2819
2819
  return (options.client ?? client).get({
2820
- url: "/api/v1/memory-entries/{entry_id}/tags",
2820
+ url: "/api/v1/memory-stores/{memory_store_id}/tags",
2821
2821
  ...options
2822
2822
  });
2823
2823
  }
2824
2824
  /**
2825
- * Merge memory entry tags
2825
+ * Merge memory store tags
2826
2826
  *
2827
- * Merges provided tags into the memory entry's existing tags (existing tags are preserved unless overridden)
2827
+ * Merges provided tags into the memory store's existing tags (existing tags are preserved unless overridden)
2828
2828
  */
2829
- static mergeMemoryEntryTags(options) {
2829
+ static mergeMemoryStoreTags(options) {
2830
2830
  return (options.client ?? client).patch({
2831
- url: "/api/v1/memory-entries/{entry_id}/tags",
2831
+ url: "/api/v1/memory-stores/{memory_store_id}/tags",
2832
2832
  ...options,
2833
2833
  headers: {
2834
2834
  "Content-Type": "application/json",
@@ -2837,13 +2837,13 @@ var MemoryEntries = class {
2837
2837
  });
2838
2838
  }
2839
2839
  /**
2840
- * Replace memory entry tags
2840
+ * Replace memory store tags
2841
2841
  *
2842
- * Replaces all tags on the memory entry with the provided tags (not merged)
2842
+ * Replaces all tags on the memory store with the provided tags (not merged)
2843
2843
  */
2844
- static replaceMemoryEntryTags(options) {
2844
+ static replaceMemoryStoreTags(options) {
2845
2845
  return (options.client ?? client).put({
2846
- url: "/api/v1/memory-entries/{entry_id}/tags",
2846
+ url: "/api/v1/memory-stores/{memory_store_id}/tags",
2847
2847
  ...options,
2848
2848
  headers: {
2849
2849
  "Content-Type": "application/json",
@@ -3255,7 +3255,7 @@ var Projects = class {
3255
3255
  *
3256
3256
  * 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.
3257
3257
  *
3258
- * 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, memories, 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
+ * 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.
3259
3259
  *
3260
3260
  */
3261
3261
  static deleteProject(options) {
@@ -3336,7 +3336,7 @@ var Quotas = class {
3336
3336
  *
3337
3337
  * 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.
3338
3338
  *
3339
- * `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-entry create — with `409 QUOTA_STORAGE_EXCEEDED` and no `Retry-After`, since no window reset clears a footprint.
3339
+ * `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.
3340
3340
  */
3341
3341
  static createQuota(options) {
3342
3342
  return (options.client ?? client).post({
@@ -4538,7 +4538,7 @@ var SoatClient = class {
4538
4538
  ingestionRules;
4539
4539
  knowledge;
4540
4540
  memories;
4541
- memoryEntries;
4541
+ memoryStores;
4542
4542
  modelRoutes;
4543
4543
  orchestrations;
4544
4544
  policies;
@@ -4585,7 +4585,7 @@ var SoatClient = class {
4585
4585
  this.ingestionRules = bindResource(IngestionRules, httpClient);
4586
4586
  this.knowledge = bindResource(Knowledge, httpClient);
4587
4587
  this.memories = bindResource(Memories, httpClient);
4588
- this.memoryEntries = bindResource(MemoryEntries, httpClient);
4588
+ this.memoryStores = bindResource(MemoryStores, httpClient);
4589
4589
  this.modelRoutes = bindResource(ModelRoutes, httpClient);
4590
4590
  this.orchestrations = bindResource(Orchestrations, httpClient);
4591
4591
  this.policies = bindResource(Policies, httpClient);
@@ -4626,7 +4626,7 @@ exports.Guardrails = Guardrails;
4626
4626
  exports.IngestionRules = IngestionRules;
4627
4627
  exports.Knowledge = Knowledge;
4628
4628
  exports.Memories = Memories;
4629
- exports.MemoryEntries = MemoryEntries;
4629
+ exports.MemoryStores = MemoryStores;
4630
4630
  exports.ModelRoutes = ModelRoutes;
4631
4631
  exports.Orchestrations = Orchestrations;
4632
4632
  exports.Policies = Policies;