@reminix/sdk 0.9.0 → 0.11.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +53 -6
  3. package/client.d.mts +20 -11
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +20 -11
  6. package/client.d.ts.map +1 -1
  7. package/client.js +18 -6
  8. package/client.js.map +1 -1
  9. package/client.mjs +18 -6
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +57 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +57 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +108 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +102 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/agents.d.mts +273 -148
  37. package/resources/agents.d.mts.map +1 -1
  38. package/resources/agents.d.ts +273 -148
  39. package/resources/agents.d.ts.map +1 -1
  40. package/resources/agents.js +29 -3
  41. package/resources/agents.js.map +1 -1
  42. package/resources/agents.mjs +29 -3
  43. package/resources/agents.mjs.map +1 -1
  44. package/resources/conversations.d.mts +107 -0
  45. package/resources/conversations.d.mts.map +1 -0
  46. package/resources/conversations.d.ts +107 -0
  47. package/resources/conversations.d.ts.map +1 -0
  48. package/resources/conversations.js +41 -0
  49. package/resources/conversations.js.map +1 -0
  50. package/resources/conversations.mjs +37 -0
  51. package/resources/conversations.mjs.map +1 -0
  52. package/resources/execution-logs.d.mts +93 -0
  53. package/resources/execution-logs.d.mts.map +1 -0
  54. package/resources/execution-logs.d.ts +93 -0
  55. package/resources/execution-logs.d.ts.map +1 -0
  56. package/resources/execution-logs.js +33 -0
  57. package/resources/execution-logs.js.map +1 -0
  58. package/resources/execution-logs.mjs +29 -0
  59. package/resources/execution-logs.mjs.map +1 -0
  60. package/resources/index.d.mts +5 -4
  61. package/resources/index.d.mts.map +1 -1
  62. package/resources/index.d.ts +5 -4
  63. package/resources/index.d.ts.map +1 -1
  64. package/resources/index.js +7 -5
  65. package/resources/index.js.map +1 -1
  66. package/resources/index.mjs +3 -2
  67. package/resources/index.mjs.map +1 -1
  68. package/resources/projects.d.mts +5 -5
  69. package/resources/projects.d.mts.map +1 -1
  70. package/resources/projects.d.ts +5 -5
  71. package/resources/projects.d.ts.map +1 -1
  72. package/resources/tools.d.mts +152 -0
  73. package/resources/tools.d.mts.map +1 -0
  74. package/resources/tools.d.ts +152 -0
  75. package/resources/tools.d.ts.map +1 -0
  76. package/resources/tools.js +59 -0
  77. package/resources/tools.js.map +1 -0
  78. package/resources/tools.mjs +55 -0
  79. package/resources/tools.mjs.map +1 -0
  80. package/src/client.ts +96 -22
  81. package/src/core/pagination.ts +165 -0
  82. package/src/index.ts +1 -0
  83. package/src/pagination.ts +2 -0
  84. package/src/resources/agents.ts +336 -165
  85. package/src/resources/conversations.ts +146 -0
  86. package/src/resources/execution-logs.ts +125 -0
  87. package/src/resources/index.ts +31 -8
  88. package/src/resources/projects.ts +5 -5
  89. package/src/resources/tools.ts +192 -0
  90. package/src/version.ts +1 -1
  91. package/version.d.mts +1 -1
  92. package/version.d.mts.map +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.d.ts.map +1 -1
  95. package/version.js +1 -1
  96. package/version.js.map +1 -1
  97. package/version.mjs +1 -1
  98. package/version.mjs.map +1 -1
  99. package/resources/deployments.d.mts +0 -4
  100. package/resources/deployments.d.mts.map +0 -1
  101. package/resources/deployments.d.ts +0 -4
  102. package/resources/deployments.d.ts.map +0 -1
  103. package/resources/deployments.js +0 -9
  104. package/resources/deployments.js.map +0 -1
  105. package/resources/deployments.mjs +0 -5
  106. package/resources/deployments.mjs.map +0 -1
  107. package/resources/secrets.d.mts +0 -4
  108. package/resources/secrets.d.mts.map +0 -1
  109. package/resources/secrets.d.ts +0 -4
  110. package/resources/secrets.d.ts.map +0 -1
  111. package/resources/secrets.js +0 -9
  112. package/resources/secrets.js.map +0 -1
  113. package/resources/secrets.mjs +0 -5
  114. package/resources/secrets.mjs.map +0 -1
  115. package/src/resources/deployments.ts +0 -5
  116. package/src/resources/secrets.ts +0 -5
@@ -1,7 +1,33 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
3
4
  import { path } from "../internal/utils/path.mjs";
4
5
  export class Agents extends APIResource {
6
+ /**
7
+ * Get details of a specific agent by name.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const agent = await client.agents.retrieve('x');
12
+ * ```
13
+ */
14
+ retrieve(name, options) {
15
+ return this._client.get(path `/agents/${name}`, options);
16
+ }
17
+ /**
18
+ * List all agents in the project with optional filtering by type and status.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * // Automatically fetches more pages as needed.
23
+ * for await (const agent of client.agents.list()) {
24
+ * // ...
25
+ * }
26
+ * ```
27
+ */
28
+ list(query = {}, options) {
29
+ return this._client.getAPIList('/agents', (Cursor), { query, ...options });
30
+ }
5
31
  chat(name, body, options) {
6
32
  return this._client.post(path `/agents/${name}/chat`, {
7
33
  body,
@@ -9,11 +35,11 @@ export class Agents extends APIResource {
9
35
  stream: body.stream ?? false,
10
36
  });
11
37
  }
12
- invoke(name, body, options) {
13
- return this._client.post(path `/agents/${name}/invoke`, {
38
+ execute(name, body = {}, options) {
39
+ return this._client.post(path `/agents/${name}/execute`, {
14
40
  body,
15
41
  ...options,
16
- stream: body.stream ?? false,
42
+ stream: body?.stream ?? false,
17
43
  });
18
44
  }
19
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAwDrC,IAAI,CACF,IAAY,EACZ,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,IAAI,OAAO,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAoE,CAAC;IACxE,CAAC;IAmDD,MAAM,CACJ,IAAY,EACZ,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,IAAI,SAAS,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAsE,CAAC;IAC1E,CAAC;CACF"}
1
+ {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,MAAM,EAAkC;OAG1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,MAAa,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IA0CD,IAAI,CACF,IAAY,EACZ,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,IAAI,OAAO,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAoE,CAAC;IACxE,CAAC;IA2CD,OAAO,CACL,IAAY,EACZ,OAAuC,EAAE,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,IAAI,UAAU,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK;SAC9B,CAAuE,CAAC;IAC3E,CAAC;CACF"}
@@ -0,0 +1,107 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class Conversations extends APIResource {
6
+ /**
7
+ * Get details of a specific conversation including all messages.
8
+ */
9
+ retrieve(id: string, options?: RequestOptions): APIPromise<ConversationRetrieveResponse>;
10
+ /**
11
+ * List conversations for the project with optional filtering.
12
+ *
13
+ * Conversations store chat history between users and agents. Use filters to narrow
14
+ * down results by agent name or identity fields.
15
+ *
16
+ * **Filters:**
17
+ *
18
+ * - `agent_name`: Filter by agent name
19
+ * - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
20
+ */
21
+ list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationsCursor, Conversation>;
22
+ /**
23
+ * Delete a conversation and all its messages. This action cannot be undone.
24
+ */
25
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
26
+ }
27
+ export type ConversationsCursor = Cursor<Conversation>;
28
+ export interface Conversation {
29
+ /**
30
+ * Unique conversation ID
31
+ */
32
+ id: string;
33
+ /**
34
+ * Agent name
35
+ */
36
+ agentName: string;
37
+ /**
38
+ * When the conversation was created
39
+ */
40
+ createdAt: string;
41
+ /**
42
+ * Identity fields for conversation scoping
43
+ */
44
+ identity: {
45
+ [key: string]: unknown;
46
+ };
47
+ /**
48
+ * Project ID
49
+ */
50
+ projectId: string;
51
+ /**
52
+ * When the conversation was last updated
53
+ */
54
+ updatedAt: string;
55
+ }
56
+ export interface ConversationRetrieveResponse extends Conversation {
57
+ /**
58
+ * Conversation messages
59
+ */
60
+ messages: Array<ConversationRetrieveResponse.Message>;
61
+ }
62
+ export declare namespace ConversationRetrieveResponse {
63
+ interface Message {
64
+ /**
65
+ * Unique message ID
66
+ */
67
+ id: string;
68
+ /**
69
+ * Message content
70
+ */
71
+ content: string | null;
72
+ /**
73
+ * Conversation ID
74
+ */
75
+ conversationId: string;
76
+ /**
77
+ * When the message was created
78
+ */
79
+ createdAt: string;
80
+ /**
81
+ * Tool name (for tool messages)
82
+ */
83
+ name: string | null;
84
+ /**
85
+ * Message role
86
+ */
87
+ role: 'system' | 'user' | 'assistant' | 'tool';
88
+ /**
89
+ * Tool call ID (for tool messages)
90
+ */
91
+ toolCallId: string | null;
92
+ /**
93
+ * Tool calls (for assistant messages)
94
+ */
95
+ toolCalls?: unknown;
96
+ }
97
+ }
98
+ export interface ConversationListParams extends CursorParams {
99
+ /**
100
+ * Filter by agent name
101
+ */
102
+ agent_name?: string;
103
+ }
104
+ export declare namespace Conversations {
105
+ export { type Conversation as Conversation, type ConversationRetrieveResponse as ConversationRetrieveResponse, type ConversationsCursor as ConversationsCursor, type ConversationListParams as ConversationListParams, };
106
+ }
107
+ //# sourceMappingURL=conversations.d.mts.map
@@ -0,0 +1 @@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X;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB;;WAEG;QACH,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;QAE/C;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,107 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Conversations extends APIResource {
6
+ /**
7
+ * Get details of a specific conversation including all messages.
8
+ */
9
+ retrieve(id: string, options?: RequestOptions): APIPromise<ConversationRetrieveResponse>;
10
+ /**
11
+ * List conversations for the project with optional filtering.
12
+ *
13
+ * Conversations store chat history between users and agents. Use filters to narrow
14
+ * down results by agent name or identity fields.
15
+ *
16
+ * **Filters:**
17
+ *
18
+ * - `agent_name`: Filter by agent name
19
+ * - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
20
+ */
21
+ list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationsCursor, Conversation>;
22
+ /**
23
+ * Delete a conversation and all its messages. This action cannot be undone.
24
+ */
25
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
26
+ }
27
+ export type ConversationsCursor = Cursor<Conversation>;
28
+ export interface Conversation {
29
+ /**
30
+ * Unique conversation ID
31
+ */
32
+ id: string;
33
+ /**
34
+ * Agent name
35
+ */
36
+ agentName: string;
37
+ /**
38
+ * When the conversation was created
39
+ */
40
+ createdAt: string;
41
+ /**
42
+ * Identity fields for conversation scoping
43
+ */
44
+ identity: {
45
+ [key: string]: unknown;
46
+ };
47
+ /**
48
+ * Project ID
49
+ */
50
+ projectId: string;
51
+ /**
52
+ * When the conversation was last updated
53
+ */
54
+ updatedAt: string;
55
+ }
56
+ export interface ConversationRetrieveResponse extends Conversation {
57
+ /**
58
+ * Conversation messages
59
+ */
60
+ messages: Array<ConversationRetrieveResponse.Message>;
61
+ }
62
+ export declare namespace ConversationRetrieveResponse {
63
+ interface Message {
64
+ /**
65
+ * Unique message ID
66
+ */
67
+ id: string;
68
+ /**
69
+ * Message content
70
+ */
71
+ content: string | null;
72
+ /**
73
+ * Conversation ID
74
+ */
75
+ conversationId: string;
76
+ /**
77
+ * When the message was created
78
+ */
79
+ createdAt: string;
80
+ /**
81
+ * Tool name (for tool messages)
82
+ */
83
+ name: string | null;
84
+ /**
85
+ * Message role
86
+ */
87
+ role: 'system' | 'user' | 'assistant' | 'tool';
88
+ /**
89
+ * Tool call ID (for tool messages)
90
+ */
91
+ toolCallId: string | null;
92
+ /**
93
+ * Tool calls (for assistant messages)
94
+ */
95
+ toolCalls?: unknown;
96
+ }
97
+ }
98
+ export interface ConversationListParams extends CursorParams {
99
+ /**
100
+ * Filter by agent name
101
+ */
102
+ agent_name?: string;
103
+ }
104
+ export declare namespace Conversations {
105
+ export { type Conversation as Conversation, type ConversationRetrieveResponse as ConversationRetrieveResponse, type ConversationsCursor as ConversationsCursor, type ConversationListParams as ConversationListParams, };
106
+ }
107
+ //# sourceMappingURL=conversations.d.ts.map
@@ -0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CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB;;WAEG;QACH,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;QAE/C;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Conversations = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const headers_1 = require("../internal/headers.js");
8
+ const path_1 = require("../internal/utils/path.js");
9
+ class Conversations extends resource_1.APIResource {
10
+ /**
11
+ * Get details of a specific conversation including all messages.
12
+ */
13
+ retrieve(id, options) {
14
+ return this._client.get((0, path_1.path) `/conversations/${id}`, options);
15
+ }
16
+ /**
17
+ * List conversations for the project with optional filtering.
18
+ *
19
+ * Conversations store chat history between users and agents. Use filters to narrow
20
+ * down results by agent name or identity fields.
21
+ *
22
+ * **Filters:**
23
+ *
24
+ * - `agent_name`: Filter by agent name
25
+ * - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
26
+ */
27
+ list(query = {}, options) {
28
+ return this._client.getAPIList('/conversations', (pagination_1.Cursor), { query, ...options });
29
+ }
30
+ /**
31
+ * Delete a conversation and all its messages. This action cannot be undone.
32
+ */
33
+ delete(id, options) {
34
+ return this._client.delete((0, path_1.path) `/conversations/${id}`, {
35
+ ...options,
36
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
37
+ });
38
+ }
39
+ }
40
+ exports.Conversations = Conversations;
41
+ //# sourceMappingURL=conversations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.js","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAC5E,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnCD,sCAmCC"}
@@ -0,0 +1,37 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
4
+ import { buildHeaders } from "../internal/headers.mjs";
5
+ import { path } from "../internal/utils/path.mjs";
6
+ export class Conversations extends APIResource {
7
+ /**
8
+ * Get details of a specific conversation including all messages.
9
+ */
10
+ retrieve(id, options) {
11
+ return this._client.get(path `/conversations/${id}`, options);
12
+ }
13
+ /**
14
+ * List conversations for the project with optional filtering.
15
+ *
16
+ * Conversations store chat history between users and agents. Use filters to narrow
17
+ * down results by agent name or identity fields.
18
+ *
19
+ * **Filters:**
20
+ *
21
+ * - `agent_name`: Filter by agent name
22
+ * - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
23
+ */
24
+ list(query = {}, options) {
25
+ return this._client.getAPIList('/conversations', (Cursor), { query, ...options });
26
+ }
27
+ /**
28
+ * Delete a conversation and all its messages. This action cannot be undone.
29
+ */
30
+ delete(id, options) {
31
+ return this._client.delete(path `/conversations/${id}`, {
32
+ ...options,
33
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
34
+ });
35
+ }
36
+ }
37
+ //# sourceMappingURL=conversations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAC1C,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,MAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,93 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class ExecutionLogs extends APIResource {
6
+ /**
7
+ * Get details of a specific execution log by ID.
8
+ */
9
+ retrieve(id: string, options?: RequestOptions): APIPromise<ExecutionLog>;
10
+ /**
11
+ * List execution logs for the project with optional filtering.
12
+ *
13
+ * Execution logs track all agent invocations, chats, and tool executions. Use
14
+ * filters to narrow down results by type, source, name, or status.
15
+ *
16
+ * **Filters:**
17
+ *
18
+ * - `type`: Filter by execution type (agent_execute, tool_execute)
19
+ * - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
20
+ * - `name`: Filter by agent or tool name
21
+ * - `status`: Filter by result status (success, error, timeout)
22
+ */
23
+ list(query?: ExecutionLogListParams | null | undefined, options?: RequestOptions): PagePromise<ExecutionLogsCursor, ExecutionLog>;
24
+ }
25
+ export type ExecutionLogsCursor = Cursor<ExecutionLog>;
26
+ export interface ExecutionLog {
27
+ /**
28
+ * Unique execution log ID
29
+ */
30
+ id: string;
31
+ /**
32
+ * When the execution occurred
33
+ */
34
+ createdAt: string;
35
+ /**
36
+ * Execution duration in milliseconds
37
+ */
38
+ durationMs: number | null;
39
+ /**
40
+ * Error message (null for success)
41
+ */
42
+ error: string | null;
43
+ /**
44
+ * Agent or tool name
45
+ */
46
+ name: string;
47
+ /**
48
+ * Project ID
49
+ */
50
+ projectId: string;
51
+ /**
52
+ * Where the request originated
53
+ */
54
+ source: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
55
+ /**
56
+ * Execution result status
57
+ */
58
+ status: 'success' | 'error' | 'timeout';
59
+ /**
60
+ * Type of execution
61
+ */
62
+ type: 'agent_execute' | 'agent_chat' | 'tool_execute';
63
+ /**
64
+ * Input parameters
65
+ */
66
+ input?: unknown;
67
+ /**
68
+ * Output from execution (null for errors)
69
+ */
70
+ output?: unknown;
71
+ }
72
+ export interface ExecutionLogListParams extends CursorParams {
73
+ /**
74
+ * Filter by agent or tool name
75
+ */
76
+ name?: string;
77
+ /**
78
+ * Filter by request source
79
+ */
80
+ source?: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
81
+ /**
82
+ * Filter by execution status
83
+ */
84
+ status?: 'success' | 'error' | 'timeout';
85
+ /**
86
+ * Filter by execution type
87
+ */
88
+ type?: 'agent_execute' | 'agent_chat' | 'tool_execute';
89
+ }
90
+ export declare namespace ExecutionLogs {
91
+ export { type ExecutionLog as ExecutionLog, type ExecutionLogsCursor as ExecutionLogsCursor, type ExecutionLogListParams as ExecutionLogListParams, };
92
+ }
93
+ //# sourceMappingURL=execution-logs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-logs.d.mts","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAA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C;IAEzC;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;CACxD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,93 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class ExecutionLogs extends APIResource {
6
+ /**
7
+ * Get details of a specific execution log by ID.
8
+ */
9
+ retrieve(id: string, options?: RequestOptions): APIPromise<ExecutionLog>;
10
+ /**
11
+ * List execution logs for the project with optional filtering.
12
+ *
13
+ * Execution logs track all agent invocations, chats, and tool executions. Use
14
+ * filters to narrow down results by type, source, name, or status.
15
+ *
16
+ * **Filters:**
17
+ *
18
+ * - `type`: Filter by execution type (agent_execute, tool_execute)
19
+ * - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
20
+ * - `name`: Filter by agent or tool name
21
+ * - `status`: Filter by result status (success, error, timeout)
22
+ */
23
+ list(query?: ExecutionLogListParams | null | undefined, options?: RequestOptions): PagePromise<ExecutionLogsCursor, ExecutionLog>;
24
+ }
25
+ export type ExecutionLogsCursor = Cursor<ExecutionLog>;
26
+ export interface ExecutionLog {
27
+ /**
28
+ * Unique execution log ID
29
+ */
30
+ id: string;
31
+ /**
32
+ * When the execution occurred
33
+ */
34
+ createdAt: string;
35
+ /**
36
+ * Execution duration in milliseconds
37
+ */
38
+ durationMs: number | null;
39
+ /**
40
+ * Error message (null for success)
41
+ */
42
+ error: string | null;
43
+ /**
44
+ * Agent or tool name
45
+ */
46
+ name: string;
47
+ /**
48
+ * Project ID
49
+ */
50
+ projectId: string;
51
+ /**
52
+ * Where the request originated
53
+ */
54
+ source: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
55
+ /**
56
+ * Execution result status
57
+ */
58
+ status: 'success' | 'error' | 'timeout';
59
+ /**
60
+ * Type of execution
61
+ */
62
+ type: 'agent_execute' | 'agent_chat' | 'tool_execute';
63
+ /**
64
+ * Input parameters
65
+ */
66
+ input?: unknown;
67
+ /**
68
+ * Output from execution (null for errors)
69
+ */
70
+ output?: unknown;
71
+ }
72
+ export interface ExecutionLogListParams extends CursorParams {
73
+ /**
74
+ * Filter by agent or tool name
75
+ */
76
+ name?: string;
77
+ /**
78
+ * Filter by request source
79
+ */
80
+ source?: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
81
+ /**
82
+ * Filter by execution status
83
+ */
84
+ status?: 'success' | 'error' | 'timeout';
85
+ /**
86
+ * Filter by execution type
87
+ */
88
+ type?: 'agent_execute' | 'agent_chat' | 'tool_execute';
89
+ }
90
+ export declare namespace ExecutionLogs {
91
+ export { type ExecutionLog as ExecutionLog, type ExecutionLogsCursor as ExecutionLogsCursor, type ExecutionLogListParams as ExecutionLogListParams, };
92
+ }
93
+ //# sourceMappingURL=execution-logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-logs.d.ts","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIxE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mBA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}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExecutionLogs = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class ExecutionLogs extends resource_1.APIResource {
9
+ /**
10
+ * Get details of a specific execution log by ID.
11
+ */
12
+ retrieve(id, options) {
13
+ return this._client.get((0, path_1.path) `/execution-logs/${id}`, options);
14
+ }
15
+ /**
16
+ * List execution logs for the project with optional filtering.
17
+ *
18
+ * Execution logs track all agent invocations, chats, and tool executions. Use
19
+ * filters to narrow down results by type, source, name, or status.
20
+ *
21
+ * **Filters:**
22
+ *
23
+ * - `type`: Filter by execution type (agent_execute, tool_execute)
24
+ * - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
25
+ * - `name`: Filter by agent or tool name
26
+ * - `status`: Filter by result status (success, error, timeout)
27
+ */
28
+ list(query = {}, options) {
29
+ return this._client.getAPIList('/execution-logs', (pagination_1.Cursor), { query, ...options });
30
+ }
31
+ }
32
+ exports.ExecutionLogs = ExecutionLogs;
33
+ //# sourceMappingURL=execution-logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-logs.js","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AA3BD,sCA2BC"}
@@ -0,0 +1,29 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class ExecutionLogs extends APIResource {
6
+ /**
7
+ * Get details of a specific execution log by ID.
8
+ */
9
+ retrieve(id, options) {
10
+ return this._client.get(path `/execution-logs/${id}`, options);
11
+ }
12
+ /**
13
+ * List execution logs for the project with optional filtering.
14
+ *
15
+ * Execution logs track all agent invocations, chats, and tool executions. Use
16
+ * filters to narrow down results by type, source, name, or status.
17
+ *
18
+ * **Filters:**
19
+ *
20
+ * - `type`: Filter by execution type (agent_execute, tool_execute)
21
+ * - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
22
+ * - `name`: Filter by agent or tool name
23
+ * - `status`: Filter by result status (success, error, timeout)
24
+ */
25
+ list(query = {}, options) {
26
+ return this._client.getAPIList('/execution-logs', (Cursor), { query, ...options });
27
+ }
28
+ }
29
+ //# sourceMappingURL=execution-logs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-logs.mjs","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,MAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
@@ -1,6 +1,7 @@
1
- export { Agents, type Context, type StreamChunk, type AgentChatResponse, type AgentInvokeResponse, type AgentChatParams, type AgentChatParamsNonStreaming, type AgentChatParamsStreaming, type AgentInvokeParams, type AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming, } from "./agents.mjs";
1
+ export { Agents, type Agent, type AgentConfig, type ChatMessage, type StreamChunk, type AgentChatResponse, type AgentExecuteResponse, type AgentListParams, type AgentChatParams, type AgentChatParamsNonStreaming, type AgentChatParamsStreaming, type AgentExecuteParams, type AgentExecuteParamsNonStreaming, type AgentExecuteParamsStreaming, type AgentsCursor, } from "./agents.mjs";
2
2
  export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from "./client-tokens.mjs";
3
- export { Deployments } from "./deployments.mjs";
4
- export { Projects, type ProjectRetrieveCurrentResponse } from "./projects.mjs";
5
- export { Secrets } from "./secrets.mjs";
3
+ export { Conversations, type Conversation, type ConversationRetrieveResponse, type ConversationListParams, type ConversationsCursor, } from "./conversations.mjs";
4
+ export { ExecutionLogs, type ExecutionLog, type ExecutionLogListParams, type ExecutionLogsCursor, } from "./execution-logs.mjs";
5
+ export { Projects, type Project } from "./projects.mjs";
6
+ export { Tools, type Tool, type ToolExecuteResponse, type ToolListParams, type ToolExecuteParams, type ToolsCursor, } from "./tools.mjs";
6
7
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,GAChC;OACM,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EAAE,WAAW,EAAE;OACf,EAAE,QAAQ,EAAE,KAAK,8BAA8B,EAAE;OACjD,EAAE,OAAO,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,YAAY,GAClB;OACM,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE;OAC1B,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB"}