@akumi/sdk 0.7.2 → 0.7.4

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
@@ -20,7 +20,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- AgentsResource: () => AgentsResource,
24
23
  Akumi: () => Akumi,
25
24
  AkumiError: () => AkumiError,
26
25
  ApiError: () => ApiError,
@@ -222,41 +221,6 @@ function safeJsonParse(text) {
222
221
  }
223
222
  }
224
223
 
225
- // src/resources/agents.ts
226
- var AgentsResource = class {
227
- constructor(transport) {
228
- this.transport = transport;
229
- }
230
- transport;
231
- async v1AgentsIndex() {
232
- return this.transport.request("GET", "/agents", null, null);
233
- }
234
- async v1AgentsStore(params = {}) {
235
- return this.transport.request("POST", "/agents", null, params);
236
- }
237
- async v1AgentsRunsShow(run) {
238
- return this.transport.request("GET", `/agents/runs/${run}`, null, null);
239
- }
240
- async v1AgentsShow(agent) {
241
- return this.transport.request("GET", `/agents/${agent}`, null, null);
242
- }
243
- async v1AgentsUpdate(agent, params = {}) {
244
- return this.transport.request("PATCH", `/agents/${agent}`, null, params);
245
- }
246
- async v1AgentsVersionsIndex(agent) {
247
- return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
248
- }
249
- async v1AgentsVersionsStore(agent, params = {}) {
250
- return this.transport.request("POST", `/agents/${agent}/versions`, null, params);
251
- }
252
- async v1AgentsVersionsShow(agent, version) {
253
- return this.transport.request("GET", `/agents/${agent}/versions/${version}`, null, null);
254
- }
255
- async v1AgentsRunsStore(agent, params = {}) {
256
- return this.transport.request("POST", `/agents/${agent}/runs`, null, params);
257
- }
258
- };
259
-
260
224
  // src/resources/auditLog.ts
261
225
  var AuditLogResource = class {
262
226
  constructor(transport) {
@@ -374,7 +338,6 @@ var ScoresResource = class {
374
338
  // src/client.ts
375
339
  var Akumi = class _Akumi {
376
340
  transport;
377
- agents;
378
341
  auditLog;
379
342
  chatCompletions;
380
343
  embeddings;
@@ -383,7 +346,6 @@ var Akumi = class _Akumi {
383
346
  scores;
384
347
  constructor(config) {
385
348
  this.transport = new Transport(config);
386
- this.agents = new AgentsResource(this.transport);
387
349
  this.auditLog = new AuditLogResource(this.transport);
388
350
  this.chatCompletions = new ChatCompletionsResource(this.transport);
389
351
  this.embeddings = new EmbeddingsResource(this.transport);
@@ -397,7 +359,6 @@ var Akumi = class _Akumi {
397
359
  };
398
360
  // Annotate the CommonJS export names for ESM import in node:
399
361
  0 && (module.exports = {
400
- AgentsResource,
401
362
  Akumi,
402
363
  AkumiError,
403
364
  ApiError,
package/dist/index.d.cts CHANGED
@@ -18,20 +18,6 @@ declare class Transport {
18
18
  private dispatch;
19
19
  }
20
20
 
21
- declare class AgentsResource {
22
- private readonly transport;
23
- constructor(transport: Transport);
24
- v1AgentsIndex(): Promise<Record<string, unknown>>;
25
- v1AgentsStore(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
26
- v1AgentsRunsShow(run: string): Promise<Record<string, unknown>>;
27
- v1AgentsShow(agent: string): Promise<Record<string, unknown>>;
28
- v1AgentsUpdate(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
29
- v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
30
- v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
31
- v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
32
- v1AgentsRunsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
33
- }
34
-
35
21
  declare class AuditLogResource {
36
22
  private readonly transport;
37
23
  constructor(transport: Transport);
@@ -86,7 +72,6 @@ declare class ScoresResource {
86
72
 
87
73
  declare class Akumi {
88
74
  private readonly transport;
89
- readonly agents: AgentsResource;
90
75
  readonly auditLog: AuditLogResource;
91
76
  readonly chatCompletions: ChatCompletionsResource;
92
77
  readonly embeddings: EmbeddingsResource;
@@ -199,4 +184,4 @@ interface StoreScoreRequest {
199
184
  comment?: string | null;
200
185
  }
201
186
 
202
- 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 };
187
+ export { 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
@@ -18,20 +18,6 @@ declare class Transport {
18
18
  private dispatch;
19
19
  }
20
20
 
21
- declare class AgentsResource {
22
- private readonly transport;
23
- constructor(transport: Transport);
24
- v1AgentsIndex(): Promise<Record<string, unknown>>;
25
- v1AgentsStore(params?: Record<string, unknown>): Promise<Record<string, unknown>>;
26
- v1AgentsRunsShow(run: string): Promise<Record<string, unknown>>;
27
- v1AgentsShow(agent: string): Promise<Record<string, unknown>>;
28
- v1AgentsUpdate(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
29
- v1AgentsVersionsIndex(agent: string): Promise<Record<string, unknown>>;
30
- v1AgentsVersionsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
31
- v1AgentsVersionsShow(agent: string, version: string): Promise<Record<string, unknown>>;
32
- v1AgentsRunsStore(agent: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
33
- }
34
-
35
21
  declare class AuditLogResource {
36
22
  private readonly transport;
37
23
  constructor(transport: Transport);
@@ -86,7 +72,6 @@ declare class ScoresResource {
86
72
 
87
73
  declare class Akumi {
88
74
  private readonly transport;
89
- readonly agents: AgentsResource;
90
75
  readonly auditLog: AuditLogResource;
91
76
  readonly chatCompletions: ChatCompletionsResource;
92
77
  readonly embeddings: EmbeddingsResource;
@@ -199,4 +184,4 @@ interface StoreScoreRequest {
199
184
  comment?: string | null;
200
185
  }
201
186
 
202
- 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 };
187
+ export { 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
@@ -184,41 +184,6 @@ function safeJsonParse(text) {
184
184
  }
185
185
  }
186
186
 
187
- // src/resources/agents.ts
188
- var AgentsResource = class {
189
- constructor(transport) {
190
- this.transport = transport;
191
- }
192
- transport;
193
- async v1AgentsIndex() {
194
- return this.transport.request("GET", "/agents", null, null);
195
- }
196
- async v1AgentsStore(params = {}) {
197
- return this.transport.request("POST", "/agents", null, params);
198
- }
199
- async v1AgentsRunsShow(run) {
200
- return this.transport.request("GET", `/agents/runs/${run}`, null, null);
201
- }
202
- async v1AgentsShow(agent) {
203
- return this.transport.request("GET", `/agents/${agent}`, null, null);
204
- }
205
- async v1AgentsUpdate(agent, params = {}) {
206
- return this.transport.request("PATCH", `/agents/${agent}`, null, params);
207
- }
208
- async v1AgentsVersionsIndex(agent) {
209
- return this.transport.request("GET", `/agents/${agent}/versions`, null, null);
210
- }
211
- async v1AgentsVersionsStore(agent, params = {}) {
212
- return this.transport.request("POST", `/agents/${agent}/versions`, null, params);
213
- }
214
- async v1AgentsVersionsShow(agent, version) {
215
- return this.transport.request("GET", `/agents/${agent}/versions/${version}`, null, null);
216
- }
217
- async v1AgentsRunsStore(agent, params = {}) {
218
- return this.transport.request("POST", `/agents/${agent}/runs`, null, params);
219
- }
220
- };
221
-
222
187
  // src/resources/auditLog.ts
223
188
  var AuditLogResource = class {
224
189
  constructor(transport) {
@@ -336,7 +301,6 @@ var ScoresResource = class {
336
301
  // src/client.ts
337
302
  var Akumi = class _Akumi {
338
303
  transport;
339
- agents;
340
304
  auditLog;
341
305
  chatCompletions;
342
306
  embeddings;
@@ -345,7 +309,6 @@ var Akumi = class _Akumi {
345
309
  scores;
346
310
  constructor(config) {
347
311
  this.transport = new Transport(config);
348
- this.agents = new AgentsResource(this.transport);
349
312
  this.auditLog = new AuditLogResource(this.transport);
350
313
  this.chatCompletions = new ChatCompletionsResource(this.transport);
351
314
  this.embeddings = new EmbeddingsResource(this.transport);
@@ -358,7 +321,6 @@ var Akumi = class _Akumi {
358
321
  }
359
322
  };
360
323
  export {
361
- AgentsResource,
362
324
  Akumi,
363
325
  AkumiError,
364
326
  ApiError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akumi/sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "Official TypeScript SDK for the Akumi EU-sovereign inference API.",
5
5
  "license": "MIT",
6
6
  "type": "module",