@akumi/sdk 0.7.1 → 0.7.3

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
@@ -243,6 +243,9 @@ var AgentsResource = class {
243
243
  async v1AgentsUpdate(agent, params = {}) {
244
244
  return this.transport.request("PATCH", `/agents/${agent}`, null, params);
245
245
  }
246
+ async v1AgentsCopy(agent, params = {}) {
247
+ return this.transport.request("POST", `/agents/${agent}/copy`, null, params);
248
+ }
246
249
  async v1AgentsVersionsIndex(agent) {
247
250
  return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
248
251
  }
@@ -302,18 +305,6 @@ var MemoryResource = class {
302
305
  this.transport = transport;
303
306
  }
304
307
  transport;
305
- async listThreads(query = {}) {
306
- return this.transport.request("GET", "/memory/threads", query, null);
307
- }
308
- async createThread() {
309
- return this.transport.request("POST", "/memory/threads", null, null);
310
- }
311
- async getThread(thread) {
312
- return this.transport.request("GET", `/memory/threads/${thread}`, null, null);
313
- }
314
- async deleteThread(thread) {
315
- return this.transport.request("DELETE", `/memory/threads/${thread}`, null, null);
316
- }
317
308
  async search(params = {}) {
318
309
  return this.transport.request("POST", "/memory/search", null, params);
319
310
  }
package/dist/index.d.cts CHANGED
@@ -26,6 +26,7 @@ declare class AgentsResource {
26
26
  v1AgentsRunsShow(run: string): Promise<Record<string, unknown>>;
27
27
  v1AgentsShow(agent: string): Promise<Record<string, unknown>>;
28
28
  v1AgentsUpdate(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
29
+ v1AgentsCopy(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
29
30
  v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
30
31
  v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
31
32
  v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
@@ -55,10 +56,6 @@ declare class EmbeddingsResource {
55
56
  declare class MemoryResource {
56
57
  private readonly transport;
57
58
  constructor(transport: Transport);
58
- listThreads(query?: Record<string, unknown>): Promise<Record<string, unknown>>;
59
- createThread(): Promise<Record<string, unknown>>;
60
- getThread(thread: string): Promise<Record<string, unknown>>;
61
- deleteThread(thread: string): Promise<Record<string, unknown>>;
62
59
  search(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
63
60
  listFacts(query?: Record<string, unknown>): Promise<Record<string, unknown>>;
64
61
  rememberFact(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
@@ -203,10 +200,4 @@ interface StoreScoreRequest {
203
200
  comment?: string | null;
204
201
  }
205
202
 
206
- interface ThreadMessageViewModel {
207
- }
208
-
209
- interface ThreadViewModel {
210
- }
211
-
212
- export { AgentsResource, Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest, type ThreadMessageViewModel, type ThreadViewModel };
203
+ export { AgentsResource, Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest };
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ declare class AgentsResource {
26
26
  v1AgentsRunsShow(run: string): Promise<Record<string, unknown>>;
27
27
  v1AgentsShow(agent: string): Promise<Record<string, unknown>>;
28
28
  v1AgentsUpdate(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
29
+ v1AgentsCopy(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
29
30
  v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
30
31
  v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
31
32
  v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
@@ -55,10 +56,6 @@ declare class EmbeddingsResource {
55
56
  declare class MemoryResource {
56
57
  private readonly transport;
57
58
  constructor(transport: Transport);
58
- listThreads(query?: Record<string, unknown>): Promise<Record<string, unknown>>;
59
- createThread(): Promise<Record<string, unknown>>;
60
- getThread(thread: string): Promise<Record<string, unknown>>;
61
- deleteThread(thread: string): Promise<Record<string, unknown>>;
62
59
  search(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
63
60
  listFacts(query?: Record<string, unknown>): Promise<Record<string, unknown>>;
64
61
  rememberFact(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
@@ -203,10 +200,4 @@ interface StoreScoreRequest {
203
200
  comment?: string | null;
204
201
  }
205
202
 
206
- interface ThreadMessageViewModel {
207
- }
208
-
209
- interface ThreadViewModel {
210
- }
211
-
212
- export { AgentsResource, Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest, type ThreadMessageViewModel, type ThreadViewModel };
203
+ export { AgentsResource, Akumi, AkumiError, ApiError, type AuditLogApiResource, AuditLogResource, AuthenticationError, type ChatCompletionsRequest, ChatCompletionsResource, type ClientConfig, type EmbeddingsRequest, EmbeddingsResource, type IngestDocumentRequest, InvalidRequestError, MemoryResource, ModelsResource, type PiiLanguage, RateLimitError, type RememberFactRequest, ScoresResource, type SearchRequest, type StoreCollectionRequest, type StoreScoreRequest };
package/dist/index.js CHANGED
@@ -205,6 +205,9 @@ var AgentsResource = class {
205
205
  async v1AgentsUpdate(agent, params = {}) {
206
206
  return this.transport.request("PATCH", `/agents/${agent}`, null, params);
207
207
  }
208
+ async v1AgentsCopy(agent, params = {}) {
209
+ return this.transport.request("POST", `/agents/${agent}/copy`, null, params);
210
+ }
208
211
  async v1AgentsVersionsIndex(agent) {
209
212
  return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
210
213
  }
@@ -264,18 +267,6 @@ var MemoryResource = class {
264
267
  this.transport = transport;
265
268
  }
266
269
  transport;
267
- async listThreads(query = {}) {
268
- return this.transport.request("GET", "/memory/threads", query, null);
269
- }
270
- async createThread() {
271
- return this.transport.request("POST", "/memory/threads", null, null);
272
- }
273
- async getThread(thread) {
274
- return this.transport.request("GET", `/memory/threads/${thread}`, null, null);
275
- }
276
- async deleteThread(thread) {
277
- return this.transport.request("DELETE", `/memory/threads/${thread}`, null, null);
278
- }
279
270
  async search(params = {}) {
280
271
  return this.transport.request("POST", "/memory/search", null, params);
281
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akumi/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Official TypeScript SDK for the Akumi EU-sovereign inference API.",
5
5
  "license": "MIT",
6
6
  "type": "module",