@agent-os-sdk/client 0.9.9 → 0.9.11

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.
Files changed (62) hide show
  1. package/dist/client/AgentOsClient.d.ts +2 -0
  2. package/dist/client/AgentOsClient.d.ts.map +1 -1
  3. package/dist/client/AgentOsClient.js +4 -0
  4. package/dist/client/HttpRequestBuilder.d.ts +1 -0
  5. package/dist/client/HttpRequestBuilder.d.ts.map +1 -1
  6. package/dist/client/HttpRequestBuilder.js +6 -2
  7. package/dist/client/auth.d.ts +4 -0
  8. package/dist/client/auth.d.ts.map +1 -1
  9. package/dist/client/raw.d.ts +13 -0
  10. package/dist/client/raw.d.ts.map +1 -1
  11. package/dist/client/raw.js +68 -4
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -0
  15. package/dist/modules/agents.d.ts +29 -0
  16. package/dist/modules/agents.d.ts.map +1 -1
  17. package/dist/modules/agents.js +23 -0
  18. package/dist/modules/builder.d.ts +0 -4
  19. package/dist/modules/builder.d.ts.map +1 -1
  20. package/dist/modules/files.d.ts +34 -13
  21. package/dist/modules/files.d.ts.map +1 -1
  22. package/dist/modules/files.js +86 -19
  23. package/dist/modules/graphs.d.ts +1 -1
  24. package/dist/modules/graphs.d.ts.map +1 -1
  25. package/dist/modules/members.d.ts +0 -6
  26. package/dist/modules/members.d.ts.map +1 -1
  27. package/dist/modules/members.js +0 -6
  28. package/dist/modules/observability.d.ts +19 -0
  29. package/dist/modules/observability.d.ts.map +1 -0
  30. package/dist/modules/observability.js +14 -0
  31. package/dist/modules/runs.d.ts +2 -0
  32. package/dist/modules/runs.d.ts.map +1 -1
  33. package/dist/modules/runs.js +2 -2
  34. package/dist/modules/threads.js +2 -2
  35. package/dist/modules/vectorStores.d.ts +6 -3
  36. package/dist/modules/vectorStores.d.ts.map +1 -1
  37. package/dist/modules/vectorStores.js +86 -14
  38. package/dist/modules/workspaces.d.ts +35 -0
  39. package/dist/modules/workspaces.d.ts.map +1 -1
  40. package/dist/modules/workspaces.js +41 -0
  41. package/package.json +50 -51
  42. package/src/client/AgentOsClient.ts +4 -0
  43. package/src/client/HttpRequestBuilder.ts +7 -2
  44. package/src/client/auth.ts +4 -0
  45. package/src/client/raw.ts +93 -5
  46. package/src/index.ts +1 -0
  47. package/src/modules/agents.ts +52 -0
  48. package/src/modules/builder.ts +0 -7
  49. package/src/modules/files.ts +125 -29
  50. package/src/modules/graphs.ts +1 -1
  51. package/src/modules/members.ts +0 -7
  52. package/src/modules/observability.ts +28 -0
  53. package/src/modules/runs.ts +4 -2
  54. package/src/modules/threads.ts +2 -2
  55. package/src/modules/vectorStores.ts +115 -18
  56. package/src/modules/workspaces.ts +64 -0
  57. package/dist/modules/dlq.d.ts +0 -81
  58. package/dist/modules/dlq.d.ts.map +0 -1
  59. package/dist/modules/dlq.js +0 -66
  60. package/dist/modules/mcp.d.ts +0 -39
  61. package/dist/modules/mcp.d.ts.map +0 -1
  62. package/dist/modules/mcp.js +0 -38
@@ -1,81 +0,0 @@
1
- /**
2
- * DLQ Module - Fully Typed
3
- */
4
- import type { RawClient, APIResponse } from "../client/raw.js";
5
- export interface DlqMessage {
6
- id: string;
7
- workspace_id: string;
8
- message_type: string;
9
- original_run_id?: string;
10
- bundle_id?: string;
11
- error_code?: string;
12
- error_detail?: string;
13
- is_poison: boolean;
14
- retry_count: number;
15
- failed_at: string;
16
- created_at: string;
17
- payload?: unknown;
18
- dead_letter_reason?: string;
19
- attempt_id?: string;
20
- }
21
- export interface DlqListItem {
22
- id: string;
23
- message_type: string;
24
- original_run_id?: string;
25
- bundle_id?: string;
26
- error_code?: string;
27
- error_detail?: string;
28
- is_poison: boolean;
29
- retry_count: number;
30
- failed_at: string;
31
- created_at: string;
32
- }
33
- export interface DlqListResponse {
34
- items: DlqListItem[];
35
- total: number;
36
- skip: number;
37
- take: number;
38
- }
39
- export interface DlqRetryResponse {
40
- retried: boolean;
41
- new_run_id?: string;
42
- retry_count?: number;
43
- removed_from_dlq?: boolean;
44
- message?: string;
45
- error?: string;
46
- }
47
- export interface DlqPurgeResponse {
48
- deleted_count: number;
49
- }
50
- export declare class DlqModule {
51
- private client;
52
- private headers;
53
- constructor(client: RawClient, headers: () => Record<string, string>);
54
- /**
55
- * List DLQ messages.
56
- */
57
- list(params?: {
58
- queue_name?: string;
59
- limit?: number;
60
- offset?: number;
61
- }): Promise<APIResponse<DlqListResponse>>;
62
- /**
63
- * Get a DLQ message by ID.
64
- */
65
- get(messageId: string): Promise<APIResponse<DlqMessage>>;
66
- /**
67
- * Retry a DLQ message.
68
- */
69
- retry(messageId: string): Promise<APIResponse<DlqRetryResponse>>;
70
- /**
71
- * Delete a DLQ message.
72
- */
73
- delete(messageId: string): Promise<APIResponse<void>>;
74
- /**
75
- * Purge DLQ messages.
76
- */
77
- purge(params?: {
78
- queue_name?: string;
79
- }): Promise<APIResponse<DlqPurgeResponse>>;
80
- }
81
- //# sourceMappingURL=dlq.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dlq.d.ts","sourceRoot":"","sources":["../../src/modules/dlq.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,k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C,eAAe,CAAC,CAAC;IAazC;;OAEG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAO9D;;OAEG;IACG,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAOtE;;OAEG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAO3D;;OAEG;IACG,KAAK,CAAC,MAAM,CAAC,EAAE;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAS7C"}
@@ -1,66 +0,0 @@
1
- /**
2
- * DLQ Module - Fully Typed
3
- */
4
- export class DlqModule {
5
- client;
6
- headers;
7
- constructor(client, headers) {
8
- this.client = client;
9
- this.headers = headers;
10
- }
11
- /**
12
- * List DLQ messages.
13
- */
14
- async list(params) {
15
- const queryParams = {};
16
- if (params?.queue_name)
17
- queryParams.messageType = params.queue_name;
18
- if (params?.limit !== undefined)
19
- queryParams.take = params.limit;
20
- if (params?.offset !== undefined)
21
- queryParams.skip = params.offset;
22
- return this.client.GET("/v1/api/runs/dlq", {
23
- params: { query: queryParams },
24
- headers: this.headers(),
25
- });
26
- }
27
- /**
28
- * Get a DLQ message by ID.
29
- */
30
- async get(messageId) {
31
- return this.client.GET("/v1/api/runs/dlq/{id}", {
32
- params: { path: { id: messageId } },
33
- headers: this.headers(),
34
- });
35
- }
36
- /**
37
- * Retry a DLQ message.
38
- */
39
- async retry(messageId) {
40
- return this.client.POST("/v1/api/runs/dlq/{id}/retry", {
41
- params: { path: { id: messageId } },
42
- headers: this.headers(),
43
- });
44
- }
45
- /**
46
- * Delete a DLQ message.
47
- */
48
- async delete(messageId) {
49
- return this.client.DELETE("/v1/api/runs/dlq/{id}", {
50
- params: { path: { id: messageId } },
51
- headers: this.headers(),
52
- });
53
- }
54
- /**
55
- * Purge DLQ messages.
56
- */
57
- async purge(params) {
58
- const queryParams = {};
59
- if (params?.queue_name)
60
- queryParams.messageType = params.queue_name;
61
- return this.client.DELETE("/v1/api/runs/dlq/purge", {
62
- params: { query: queryParams },
63
- headers: this.headers(),
64
- });
65
- }
66
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * MCP Module - Fully Typed (Model Context Protocol)
3
- */
4
- import type { RawClient, APIResponse } from "../client/raw.js";
5
- export interface McpServer {
6
- id: string;
7
- name: string;
8
- url: string;
9
- status: "connected" | "disconnected" | "error";
10
- capabilities?: string[];
11
- created_at: string;
12
- }
13
- export interface McpServerListResponse {
14
- items: McpServer[];
15
- total: number;
16
- }
17
- export interface McpToolCallResult {
18
- success: boolean;
19
- output?: unknown;
20
- error?: string;
21
- }
22
- export declare class McpModule {
23
- private client;
24
- private headers;
25
- constructor(client: RawClient, headers: () => Record<string, string>);
26
- /**
27
- * List MCP servers.
28
- */
29
- listServers(): Promise<APIResponse<McpServerListResponse>>;
30
- /**
31
- * Get an MCP server.
32
- */
33
- getServer(serverId: string): Promise<APIResponse<McpServer>>;
34
- /**
35
- * Call an MCP tool.
36
- */
37
- callTool(serverId: string, toolName: string, args: unknown): Promise<APIResponse<McpToolCallResult>>;
38
- }
39
- //# sourceMappingURL=mcp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/modules/mcp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,GAAG,cAAc,GAAG,OAAO,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,SAAS;IACN,OAAO,CAAC,MAAM;IAAa,OAAO,CAAC,OAAO;gBAAlC,MAAM,EAAE,SAAS,EAAU,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAEpF;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAMhE;;OAEG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAOlE;;OAEG;IACG,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;CAO7G"}
@@ -1,38 +0,0 @@
1
- /**
2
- * MCP Module - Fully Typed (Model Context Protocol)
3
- */
4
- export class McpModule {
5
- client;
6
- headers;
7
- constructor(client, headers) {
8
- this.client = client;
9
- this.headers = headers;
10
- }
11
- /**
12
- * List MCP servers.
13
- */
14
- async listServers() {
15
- return this.client.GET("/v1/api/mcp/servers", {
16
- headers: this.headers(),
17
- });
18
- }
19
- /**
20
- * Get an MCP server.
21
- */
22
- async getServer(serverId) {
23
- return this.client.GET("/v1/api/mcp/servers/{id}", {
24
- params: { path: { id: serverId } },
25
- headers: this.headers(),
26
- });
27
- }
28
- /**
29
- * Call an MCP tool.
30
- */
31
- async callTool(serverId, toolName, args) {
32
- return this.client.POST("/v1/api/mcp/servers/{id}/tools/{toolName}/call", {
33
- params: { path: { id: serverId, toolName } },
34
- body: { arguments: args },
35
- headers: this.headers(),
36
- });
37
- }
38
- }