@soat/sdk 0.4.18 → 0.5.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.js CHANGED
@@ -33,7 +33,6 @@ var index_exports = {};
33
33
  __export(index_exports, {
34
34
  Actors: () => Actors,
35
35
  AgentTools: () => AgentTools,
36
- AgentTraces: () => AgentTraces,
37
36
  Agents: () => Agents,
38
37
  AiProviders: () => AiProviders,
39
38
  ApiKeys: () => ApiKeys,
@@ -41,12 +40,15 @@ __export(index_exports, {
41
40
  Conversations: () => Conversations,
42
41
  Documents: () => Documents,
43
42
  Files: () => Files,
43
+ Knowledge: () => Knowledge,
44
44
  Memories: () => Memories,
45
+ MemoryEntries: () => MemoryEntries,
45
46
  Policies: () => Policies,
46
47
  Projects: () => Projects,
47
48
  Secrets: () => Secrets,
48
49
  Sessions: () => Sessions,
49
50
  SoatClient: () => SoatClient,
51
+ Traces: () => Traces,
50
52
  Users: () => Users,
51
53
  Webhooks: () => Webhooks,
52
54
  createClient: () => createClient,
@@ -1088,33 +1090,6 @@ var AgentTools = class {
1088
1090
  });
1089
1091
  }
1090
1092
  };
1091
- var AgentTraces = class {
1092
- static {
1093
- __name(this, "AgentTraces");
1094
- }
1095
- /**
1096
- * List agent traces
1097
- *
1098
- * Returns all traces for the project.
1099
- */
1100
- static listAgentTraces(options) {
1101
- return (options?.client ?? client).get({
1102
- url: "/api/v1/agents/traces",
1103
- ...options
1104
- });
1105
- }
1106
- /**
1107
- * Get a trace
1108
- *
1109
- * Returns a single trace by ID.
1110
- */
1111
- static getAgentTrace(options) {
1112
- return (options.client ?? client).get({
1113
- url: "/api/v1/agents/traces/{trace_id}",
1114
- ...options
1115
- });
1116
- }
1117
- };
1118
1093
  var Agents = class {
1119
1094
  static {
1120
1095
  __name(this, "Agents");
@@ -1756,21 +1731,6 @@ var Documents = class {
1756
1731
  }
1757
1732
  });
1758
1733
  }
1759
- /**
1760
- * Semantic search over documents
1761
- *
1762
- * Searches documents using semantic search, file paths, or document IDs. At least one of search, paths, or document_ids must be provided. Returns results ordered by similarity score.
1763
- */
1764
- static searchDocuments(options) {
1765
- return (options.client ?? client).post({
1766
- url: "/api/v1/documents/search",
1767
- ...options,
1768
- headers: {
1769
- "Content-Type": "application/json",
1770
- ...options.headers
1771
- }
1772
- });
1773
- }
1774
1734
  };
1775
1735
  var Files = class {
1776
1736
  static {
@@ -1934,6 +1894,26 @@ var Files = class {
1934
1894
  });
1935
1895
  }
1936
1896
  };
1897
+ var Knowledge = class {
1898
+ static {
1899
+ __name(this, "Knowledge");
1900
+ }
1901
+ /**
1902
+ * Search knowledge
1903
+ *
1904
+ * Searches across documents and memory entries using semantic search, file paths, document IDs, or memory IDs/tags. At least one of `query`, `document_paths`, `document_ids`, `memory_ids`, or `memory_tags` must be provided.
1905
+ */
1906
+ static searchKnowledge(options) {
1907
+ return (options.client ?? client).post({
1908
+ url: "/api/v1/knowledge/search",
1909
+ ...options,
1910
+ headers: {
1911
+ "Content-Type": "application/json",
1912
+ ...options.headers
1913
+ }
1914
+ });
1915
+ }
1916
+ };
1937
1917
  var Memories = class {
1938
1918
  static {
1939
1919
  __name(this, "Memories");
@@ -2001,14 +1981,67 @@ var Memories = class {
2001
1981
  }
2002
1982
  });
2003
1983
  }
1984
+ };
1985
+ var MemoryEntries = class {
1986
+ static {
1987
+ __name(this, "MemoryEntries");
1988
+ }
1989
+ /**
1990
+ * List memory entries
1991
+ *
1992
+ * Returns all entries in a memory container
1993
+ */
1994
+ static listMemoryEntries(options) {
1995
+ return (options.client ?? client).get({
1996
+ url: "/api/v1/memories/{memory_id}/entries",
1997
+ ...options
1998
+ });
1999
+ }
2004
2000
  /**
2005
- * Search memory documents
2001
+ * Create a memory entry
2006
2002
  *
2007
- * Runs a document search using the memory's stored configuration, with optional field overrides in the request body
2003
+ * Creates a new entry in the specified memory container. Automatically generates an embedding for semantic search.
2008
2004
  */
2009
- static searchMemory(options) {
2005
+ static createMemoryEntry(options) {
2010
2006
  return (options.client ?? client).post({
2011
- url: "/api/v1/memories/{memory_id}/search",
2007
+ url: "/api/v1/memories/{memory_id}/entries",
2008
+ ...options,
2009
+ headers: {
2010
+ "Content-Type": "application/json",
2011
+ ...options.headers
2012
+ }
2013
+ });
2014
+ }
2015
+ /**
2016
+ * Delete a memory entry
2017
+ *
2018
+ * Deletes a memory entry
2019
+ */
2020
+ static deleteMemoryEntry(options) {
2021
+ return (options.client ?? client).delete({
2022
+ url: "/api/v1/memories/{memory_id}/entries/{entry_id}",
2023
+ ...options
2024
+ });
2025
+ }
2026
+ /**
2027
+ * Get a memory entry
2028
+ *
2029
+ * Returns a single memory entry by ID
2030
+ */
2031
+ static getMemoryEntry(options) {
2032
+ return (options.client ?? client).get({
2033
+ url: "/api/v1/memories/{memory_id}/entries/{entry_id}",
2034
+ ...options
2035
+ });
2036
+ }
2037
+ /**
2038
+ * Update a memory entry
2039
+ *
2040
+ * Updates an existing memory entry. Regenerates the embedding if content changes.
2041
+ */
2042
+ static updateMemoryEntry(options) {
2043
+ return (options.client ?? client).put({
2044
+ url: "/api/v1/memories/{memory_id}/entries/{entry_id}",
2012
2045
  ...options,
2013
2046
  headers: {
2014
2047
  "Content-Type": "application/json",
@@ -2365,6 +2398,45 @@ var Sessions = class {
2365
2398
  });
2366
2399
  }
2367
2400
  };
2401
+ var Traces = class {
2402
+ static {
2403
+ __name(this, "Traces");
2404
+ }
2405
+ /**
2406
+ * List traces
2407
+ *
2408
+ * Returns a paginated list of execution traces for the project.
2409
+ */
2410
+ static listTraces(options) {
2411
+ return (options?.client ?? client).get({
2412
+ url: "/api/v1/traces",
2413
+ ...options
2414
+ });
2415
+ }
2416
+ /**
2417
+ * Get a trace
2418
+ *
2419
+ * Returns a single trace by ID.
2420
+ */
2421
+ static getTrace(options) {
2422
+ return (options.client ?? client).get({
2423
+ url: "/api/v1/traces/{trace_id}",
2424
+ ...options
2425
+ });
2426
+ }
2427
+ /**
2428
+ * Get trace tree
2429
+ *
2430
+ * Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace.
2431
+ *
2432
+ */
2433
+ static getTraceTree(options) {
2434
+ return (options.client ?? client).get({
2435
+ url: "/api/v1/traces/{trace_id}/tree",
2436
+ ...options
2437
+ });
2438
+ }
2439
+ };
2368
2440
  var Users = class {
2369
2441
  static {
2370
2442
  __name(this, "Users");
@@ -2599,7 +2671,6 @@ var SoatClient = class {
2599
2671
  }
2600
2672
  actors;
2601
2673
  agentTools;
2602
- agentTraces;
2603
2674
  agents;
2604
2675
  aiProviders;
2605
2676
  apiKeys;
@@ -2611,6 +2682,7 @@ var SoatClient = class {
2611
2682
  projects;
2612
2683
  secrets;
2613
2684
  sessions;
2685
+ traces;
2614
2686
  users;
2615
2687
  webhooks;
2616
2688
  constructor({
@@ -2630,7 +2702,6 @@ var SoatClient = class {
2630
2702
  }));
2631
2703
  this.actors = bindResource(Actors, httpClient);
2632
2704
  this.agentTools = bindResource(AgentTools, httpClient);
2633
- this.agentTraces = bindResource(AgentTraces, httpClient);
2634
2705
  this.agents = bindResource(Agents, httpClient);
2635
2706
  this.aiProviders = bindResource(AiProviders, httpClient);
2636
2707
  this.apiKeys = bindResource(ApiKeys, httpClient);
@@ -2642,6 +2713,7 @@ var SoatClient = class {
2642
2713
  this.projects = bindResource(Projects, httpClient);
2643
2714
  this.secrets = bindResource(Secrets, httpClient);
2644
2715
  this.sessions = bindResource(Sessions, httpClient);
2716
+ this.traces = bindResource(Traces, httpClient);
2645
2717
  this.users = bindResource(Users, httpClient);
2646
2718
  this.webhooks = bindResource(Webhooks, httpClient);
2647
2719
  }
@@ -2650,7 +2722,6 @@ var SoatClient = class {
2650
2722
  0 && (module.exports = {
2651
2723
  Actors,
2652
2724
  AgentTools,
2653
- AgentTraces,
2654
2725
  Agents,
2655
2726
  AiProviders,
2656
2727
  ApiKeys,
@@ -2658,12 +2729,15 @@ var SoatClient = class {
2658
2729
  Conversations,
2659
2730
  Documents,
2660
2731
  Files,
2732
+ Knowledge,
2661
2733
  Memories,
2734
+ MemoryEntries,
2662
2735
  Policies,
2663
2736
  Projects,
2664
2737
  Secrets,
2665
2738
  Sessions,
2666
2739
  SoatClient,
2740
+ Traces,
2667
2741
  Users,
2668
2742
  Webhooks,
2669
2743
  createClient,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.4.18",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",