@reminix/sdk 0.9.0 → 0.10.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 (58) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +6 -6
  3. package/client.d.mts +5 -11
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +5 -11
  6. package/client.d.ts.map +1 -1
  7. package/client.js +0 -6
  8. package/client.js.map +1 -1
  9. package/client.mjs +0 -6
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agents.d.mts +35 -69
  13. package/resources/agents.d.mts.map +1 -1
  14. package/resources/agents.d.ts +35 -69
  15. package/resources/agents.d.ts.map +1 -1
  16. package/resources/index.d.mts +2 -4
  17. package/resources/index.d.mts.map +1 -1
  18. package/resources/index.d.ts +2 -4
  19. package/resources/index.d.ts.map +1 -1
  20. package/resources/index.js +1 -5
  21. package/resources/index.js.map +1 -1
  22. package/resources/index.mjs +0 -2
  23. package/resources/index.mjs.map +1 -1
  24. package/resources/projects.d.mts +15 -5
  25. package/resources/projects.d.mts.map +1 -1
  26. package/resources/projects.d.ts +15 -5
  27. package/resources/projects.d.ts.map +1 -1
  28. package/src/client.ts +5 -13
  29. package/src/resources/agents.ts +41 -80
  30. package/src/resources/index.ts +2 -3
  31. package/src/resources/projects.ts +17 -5
  32. package/src/version.ts +1 -1
  33. package/version.d.mts +1 -1
  34. package/version.d.mts.map +1 -1
  35. package/version.d.ts +1 -1
  36. package/version.d.ts.map +1 -1
  37. package/version.js +1 -1
  38. package/version.js.map +1 -1
  39. package/version.mjs +1 -1
  40. package/version.mjs.map +1 -1
  41. package/resources/deployments.d.mts +0 -4
  42. package/resources/deployments.d.mts.map +0 -1
  43. package/resources/deployments.d.ts +0 -4
  44. package/resources/deployments.d.ts.map +0 -1
  45. package/resources/deployments.js +0 -9
  46. package/resources/deployments.js.map +0 -1
  47. package/resources/deployments.mjs +0 -5
  48. package/resources/deployments.mjs.map +0 -1
  49. package/resources/secrets.d.mts +0 -4
  50. package/resources/secrets.d.mts.map +0 -1
  51. package/resources/secrets.d.ts +0 -4
  52. package/resources/secrets.d.ts.map +0 -1
  53. package/resources/secrets.js +0 -9
  54. package/resources/secrets.js.map +0 -1
  55. package/resources/secrets.mjs +0 -5
  56. package/resources/secrets.mjs.map +0 -1
  57. package/src/resources/deployments.ts +0 -5
  58. package/src/resources/secrets.ts +0 -5
@@ -85,6 +85,38 @@ export declare class Agents extends APIResource {
85
85
  invoke(name: string, body: AgentInvokeParamsStreaming, options?: RequestOptions): APIPromise<Stream<StreamChunk>>;
86
86
  invoke(name: string, body: AgentInvokeParamsBase, options?: RequestOptions): APIPromise<Stream<StreamChunk> | AgentInvokeResponse>;
87
87
  }
88
+ export interface ChatMessage {
89
+ /**
90
+ * Message content. Can be string, array (multimodal), or object (tool).
91
+ */
92
+ content: string | Array<ChatMessage.MultimodalContent> | {
93
+ [key: string]: unknown;
94
+ };
95
+ /**
96
+ * Message role
97
+ */
98
+ role: 'system' | 'user' | 'assistant' | 'tool';
99
+ /**
100
+ * Tool name (required when role is "tool")
101
+ */
102
+ name?: string;
103
+ /**
104
+ * Tool call ID (for tool role)
105
+ */
106
+ tool_call_id?: string;
107
+ }
108
+ export declare namespace ChatMessage {
109
+ interface MultimodalContent {
110
+ type: 'text' | 'image_url';
111
+ image_url?: MultimodalContent.ImageURL;
112
+ text?: string;
113
+ }
114
+ namespace MultimodalContent {
115
+ interface ImageURL {
116
+ url: string;
117
+ }
118
+ }
119
+ }
88
120
  /**
89
121
  * Optional request context passed to the agent handler.
90
122
  */
@@ -114,46 +146,12 @@ export interface AgentChatResponse {
114
146
  /**
115
147
  * Full conversation history including the assistant response
116
148
  */
117
- messages: Array<AgentChatResponse.Message>;
149
+ messages: Array<ChatMessage>;
118
150
  /**
119
151
  * Final assistant response text
120
152
  */
121
153
  output: string;
122
154
  }
123
- export declare namespace AgentChatResponse {
124
- interface Message {
125
- /**
126
- * Message content. Can be string, array (multimodal), or object (tool).
127
- */
128
- content: string | Array<Message.UnionMember1> | {
129
- [key: string]: unknown;
130
- };
131
- /**
132
- * Message role
133
- */
134
- role: 'system' | 'user' | 'assistant' | 'tool';
135
- /**
136
- * Tool name (required when role is "tool")
137
- */
138
- name?: string;
139
- /**
140
- * Tool call ID (for tool role)
141
- */
142
- tool_call_id?: string;
143
- }
144
- namespace Message {
145
- interface UnionMember1 {
146
- type: 'text' | 'image_url';
147
- image_url?: UnionMember1.ImageURL;
148
- text?: string;
149
- }
150
- namespace UnionMember1 {
151
- interface ImageURL {
152
- url: string;
153
- }
154
- }
155
- }
156
- }
157
155
  export interface AgentInvokeResponse {
158
156
  /**
159
157
  * Output from the agent. Structure depends on agent implementation.
@@ -165,7 +163,7 @@ export interface AgentChatParamsBase {
165
163
  /**
166
164
  * Conversation history. Must include at least one message.
167
165
  */
168
- messages: Array<AgentChatParams.Message>;
166
+ messages: Array<ChatMessage>;
169
167
  /**
170
168
  * Optional request context passed to the agent handler.
171
169
  */
@@ -176,38 +174,6 @@ export interface AgentChatParamsBase {
176
174
  stream?: boolean;
177
175
  }
178
176
  export declare namespace AgentChatParams {
179
- interface Message {
180
- /**
181
- * Message content. Can be string, array (multimodal), or object (tool).
182
- */
183
- content: string | Array<Message.UnionMember1> | {
184
- [key: string]: unknown;
185
- };
186
- /**
187
- * Message role
188
- */
189
- role: 'system' | 'user' | 'assistant' | 'tool';
190
- /**
191
- * Tool name (required when role is "tool")
192
- */
193
- name?: string;
194
- /**
195
- * Tool call ID (for tool role)
196
- */
197
- tool_call_id?: string;
198
- }
199
- namespace Message {
200
- interface UnionMember1 {
201
- type: 'text' | 'image_url';
202
- image_url?: UnionMember1.ImageURL;
203
- text?: string;
204
- }
205
- namespace UnionMember1 {
206
- interface ImageURL {
207
- url: string;
208
- }
209
- }
210
- }
211
177
  type AgentChatParamsNonStreaming = AgentsAPI.AgentChatParamsNonStreaming;
212
178
  type AgentChatParamsStreaming = AgentsAPI.AgentChatParamsStreaming;
213
179
  }
@@ -257,6 +223,6 @@ export interface AgentInvokeParamsStreaming extends AgentInvokeParamsBase {
257
223
  stream: true;
258
224
  }
259
225
  export declare namespace Agents {
260
- export { type Context as Context, type StreamChunk as StreamChunk, type AgentChatResponse as AgentChatResponse, type AgentInvokeResponse as AgentInvokeResponse, type AgentChatParams as AgentChatParams, type AgentChatParamsNonStreaming as AgentChatParamsNonStreaming, type AgentChatParamsStreaming as AgentChatParamsStreaming, type AgentInvokeParams as AgentInvokeParams, type AgentInvokeParamsNonStreaming as AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming as AgentInvokeParamsStreaming, };
226
+ export { type ChatMessage as ChatMessage, type Context as Context, type StreamChunk as StreamChunk, type AgentChatResponse as AgentChatResponse, type AgentInvokeResponse as AgentInvokeResponse, type AgentChatParams as AgentChatParams, type AgentChatParamsNonStreaming as AgentChatParamsNonStreaming, type AgentChatParamsStreaming as AgentChatParamsStreaming, type AgentInvokeParams as AgentInvokeParams, type AgentInvokeParamsNonStreaming as AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming as AgentInvokeParamsStreaming, };
261
227
  }
262
228
  //# sourceMappingURL=agents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAChC,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,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A0B,CAAC;CAC/E;AAED,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,6 +1,4 @@
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 ChatMessage, type Context, type StreamChunk, type AgentChatResponse, type AgentInvokeResponse, type AgentChatParams, type AgentChatParamsNonStreaming, type AgentChatParamsStreaming, type AgentInvokeParams, type AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming, } 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 { Projects, type PaginationCursor, type Project } from "./projects.mjs";
6
4
  //# 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,WAAW,EAChB,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,QAAQ,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE"}
@@ -1,6 +1,4 @@
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.js";
1
+ export { Agents, type ChatMessage, type Context, type StreamChunk, type AgentChatResponse, type AgentInvokeResponse, type AgentChatParams, type AgentChatParamsNonStreaming, type AgentChatParamsStreaming, type AgentInvokeParams, type AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming, } from "./agents.js";
2
2
  export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from "./client-tokens.js";
3
- export { Deployments } from "./deployments.js";
4
- export { Projects, type ProjectRetrieveCurrentResponse } from "./projects.js";
5
- export { Secrets } from "./secrets.js";
3
+ export { Projects, type PaginationCursor, type Project } from "./projects.js";
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","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.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,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,QAAQ,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE"}
@@ -1,15 +1,11 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Secrets = exports.Projects = exports.Deployments = exports.ClientTokens = exports.Agents = void 0;
4
+ exports.Projects = exports.ClientTokens = exports.Agents = void 0;
5
5
  var agents_1 = require("./agents.js");
6
6
  Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
7
7
  var client_tokens_1 = require("./client-tokens.js");
8
8
  Object.defineProperty(exports, "ClientTokens", { enumerable: true, get: function () { return client_tokens_1.ClientTokens; } });
9
- var deployments_1 = require("./deployments.js");
10
- Object.defineProperty(exports, "Deployments", { enumerable: true, get: function () { return deployments_1.Deployments; } });
11
9
  var projects_1 = require("./projects.js");
12
10
  Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
13
- var secrets_1 = require("./secrets.js");
14
- Object.defineProperty(exports, "Secrets", { enumerable: true, get: function () { return secrets_1.Secrets; } });
15
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAYkB;AAXhB,gGAAA,MAAM,OAAA;AAYR,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,gDAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,0CAA2E;AAAlE,oGAAA,QAAQ,OAAA;AACjB,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAakB;AAZhB,gGAAA,MAAM,OAAA;AAaR,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,0CAA2E;AAAlE,oGAAA,QAAQ,OAAA"}
@@ -1,7 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Agents, } from "./agents.mjs";
3
3
  export { ClientTokens } from "./client-tokens.mjs";
4
- export { Deployments } from "./deployments.mjs";
5
4
  export { Projects } from "./projects.mjs";
6
- export { Secrets } from "./secrets.mjs";
7
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAWP;OACM,EAAE,YAAY,EAAgE;OAC9E,EAAE,WAAW,EAAE;OACf,EAAE,QAAQ,EAAuC;OACjD,EAAE,OAAO,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAYP;OACM,EAAE,YAAY,EAAgE;OAC9E,EAAE,QAAQ,EAAuC"}
@@ -16,9 +16,19 @@ export declare class Projects extends APIResource {
16
16
  * This endpoint is useful for verifying your API key is valid and retrieving
17
17
  * project details.
18
18
  */
19
- retrieveCurrent(options?: RequestOptions): APIPromise<ProjectRetrieveCurrentResponse>;
19
+ retrieveCurrent(options?: RequestOptions): APIPromise<Project>;
20
20
  }
21
- export interface ProjectRetrieveCurrentResponse {
21
+ export interface PaginationCursor {
22
+ /**
23
+ * Whether there are more results available
24
+ */
25
+ hasMore: boolean;
26
+ /**
27
+ * Cursor for the next page of results. Null if there are no more results.
28
+ */
29
+ nextCursor: string | null;
30
+ }
31
+ export interface Project {
22
32
  /**
23
33
  * Unique identifier for the project
24
34
  */
@@ -34,7 +44,7 @@ export interface ProjectRetrieveCurrentResponse {
34
44
  /**
35
45
  * Organization that owns this project
36
46
  */
37
- organization: ProjectRetrieveCurrentResponse.Organization;
47
+ organization: Project.Organization;
38
48
  /**
39
49
  * ID of the organization that owns this project
40
50
  */
@@ -48,7 +58,7 @@ export interface ProjectRetrieveCurrentResponse {
48
58
  */
49
59
  updatedAt: string;
50
60
  }
51
- export declare namespace ProjectRetrieveCurrentResponse {
61
+ export declare namespace Project {
52
62
  /**
53
63
  * Organization that owns this project
54
64
  */
@@ -68,6 +78,6 @@ export declare namespace ProjectRetrieveCurrentResponse {
68
78
  }
69
79
  }
70
80
  export declare namespace Projects {
71
- export { type ProjectRetrieveCurrentResponse as ProjectRetrieveCurrentResponse };
81
+ export { type PaginationCursor as PaginationCursor, type Project as Project };
72
82
  }
73
83
  //# sourceMappingURL=projects.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projects.d.mts","sourceRoot":"","sources":["../src/resources/projects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;CAGtF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,8BAA8B,CAAC,YAAY,CAAC;IAE1D;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;OAEG;IACH,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,8BAA8B,IAAI,8BAA8B,EAAE,CAAC;CAClF"}
1
+ {"version":3,"file":"projects.d.mts","sourceRoot":"","sources":["../src/resources/projects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAG/D;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;IAEnC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,OAAO,CAAC;IACvB;;OAEG;IACH,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,CAAC;CAC/E"}
@@ -16,9 +16,19 @@ export declare class Projects extends APIResource {
16
16
  * This endpoint is useful for verifying your API key is valid and retrieving
17
17
  * project details.
18
18
  */
19
- retrieveCurrent(options?: RequestOptions): APIPromise<ProjectRetrieveCurrentResponse>;
19
+ retrieveCurrent(options?: RequestOptions): APIPromise<Project>;
20
20
  }
21
- export interface ProjectRetrieveCurrentResponse {
21
+ export interface PaginationCursor {
22
+ /**
23
+ * Whether there are more results available
24
+ */
25
+ hasMore: boolean;
26
+ /**
27
+ * Cursor for the next page of results. Null if there are no more results.
28
+ */
29
+ nextCursor: string | null;
30
+ }
31
+ export interface Project {
22
32
  /**
23
33
  * Unique identifier for the project
24
34
  */
@@ -34,7 +44,7 @@ export interface ProjectRetrieveCurrentResponse {
34
44
  /**
35
45
  * Organization that owns this project
36
46
  */
37
- organization: ProjectRetrieveCurrentResponse.Organization;
47
+ organization: Project.Organization;
38
48
  /**
39
49
  * ID of the organization that owns this project
40
50
  */
@@ -48,7 +58,7 @@ export interface ProjectRetrieveCurrentResponse {
48
58
  */
49
59
  updatedAt: string;
50
60
  }
51
- export declare namespace ProjectRetrieveCurrentResponse {
61
+ export declare namespace Project {
52
62
  /**
53
63
  * Organization that owns this project
54
64
  */
@@ -68,6 +78,6 @@ export declare namespace ProjectRetrieveCurrentResponse {
68
78
  }
69
79
  }
70
80
  export declare namespace Projects {
71
- export { type ProjectRetrieveCurrentResponse as ProjectRetrieveCurrentResponse };
81
+ export { type PaginationCursor as PaginationCursor, type Project as Project };
72
82
  }
73
83
  //# sourceMappingURL=projects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../src/resources/projects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;CAGtF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG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B;AAED,yBAAiB,OAAO,CAAC;IACvB;;OAEG;IACH,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,OAAO,IAAI,OAAO,EAAE,CAAC;CAC/E"}
package/src/client.ts CHANGED
@@ -26,13 +26,12 @@ import {
26
26
  AgentInvokeParamsStreaming,
27
27
  AgentInvokeResponse,
28
28
  Agents,
29
+ ChatMessage,
29
30
  Context,
30
31
  StreamChunk,
31
32
  } from './resources/agents';
32
33
  import { ClientTokenCreateParams, ClientTokenCreateResponse, ClientTokens } from './resources/client-tokens';
33
- import { Deployments } from './resources/deployments';
34
- import { ProjectRetrieveCurrentResponse, Projects } from './resources/projects';
35
- import { Secrets } from './resources/secrets';
34
+ import { PaginationCursor, Project, Projects } from './resources/projects';
36
35
  import { type Fetch } from './internal/builtin-types';
37
36
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
38
37
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -48,7 +47,7 @@ import { isEmptyObj } from './internal/utils/values';
48
47
 
49
48
  export interface ClientOptions {
50
49
  /**
51
- * Project API key or Personal Access Token (PAT). When using PAT, include X-Project header.
50
+ * API Key or Personal Access Token (PAT). When using PAT, include X-Project header.
52
51
  */
53
52
  apiKey?: string | undefined;
54
53
 
@@ -732,24 +731,21 @@ export class Reminix {
732
731
 
733
732
  projects: API.Projects = new API.Projects(this);
734
733
  agents: API.Agents = new API.Agents(this);
735
- secrets: API.Secrets = new API.Secrets(this);
736
- deployments: API.Deployments = new API.Deployments(this);
737
734
  clientTokens: API.ClientTokens = new API.ClientTokens(this);
738
735
  }
739
736
 
740
737
  Reminix.Projects = Projects;
741
738
  Reminix.Agents = Agents;
742
- Reminix.Secrets = Secrets;
743
- Reminix.Deployments = Deployments;
744
739
  Reminix.ClientTokens = ClientTokens;
745
740
 
746
741
  export declare namespace Reminix {
747
742
  export type RequestOptions = Opts.RequestOptions;
748
743
 
749
- export { Projects as Projects, type ProjectRetrieveCurrentResponse as ProjectRetrieveCurrentResponse };
744
+ export { Projects as Projects, type PaginationCursor as PaginationCursor, type Project as Project };
750
745
 
751
746
  export {
752
747
  Agents as Agents,
748
+ type ChatMessage as ChatMessage,
753
749
  type Context as Context,
754
750
  type StreamChunk as StreamChunk,
755
751
  type AgentChatResponse as AgentChatResponse,
@@ -762,10 +758,6 @@ export declare namespace Reminix {
762
758
  type AgentInvokeParamsStreaming as AgentInvokeParamsStreaming,
763
759
  };
764
760
 
765
- export { Secrets as Secrets };
766
-
767
- export { Deployments as Deployments };
768
-
769
761
  export {
770
762
  ClientTokens as ClientTokens,
771
763
  type ClientTokenCreateResponse as ClientTokenCreateResponse,
@@ -137,6 +137,44 @@ export class Agents extends APIResource {
137
137
  }
138
138
  }
139
139
 
140
+ export interface ChatMessage {
141
+ /**
142
+ * Message content. Can be string, array (multimodal), or object (tool).
143
+ */
144
+ content: string | Array<ChatMessage.MultimodalContent> | { [key: string]: unknown };
145
+
146
+ /**
147
+ * Message role
148
+ */
149
+ role: 'system' | 'user' | 'assistant' | 'tool';
150
+
151
+ /**
152
+ * Tool name (required when role is "tool")
153
+ */
154
+ name?: string;
155
+
156
+ /**
157
+ * Tool call ID (for tool role)
158
+ */
159
+ tool_call_id?: string;
160
+ }
161
+
162
+ export namespace ChatMessage {
163
+ export interface MultimodalContent {
164
+ type: 'text' | 'image_url';
165
+
166
+ image_url?: MultimodalContent.ImageURL;
167
+
168
+ text?: string;
169
+ }
170
+
171
+ export namespace MultimodalContent {
172
+ export interface ImageURL {
173
+ url: string;
174
+ }
175
+ }
176
+ }
177
+
140
178
  /**
141
179
  * Optional request context passed to the agent handler.
142
180
  */
@@ -168,7 +206,7 @@ export interface AgentChatResponse {
168
206
  /**
169
207
  * Full conversation history including the assistant response
170
208
  */
171
- messages: Array<AgentChatResponse.Message>;
209
+ messages: Array<ChatMessage>;
172
210
 
173
211
  /**
174
212
  * Final assistant response text
@@ -176,46 +214,6 @@ export interface AgentChatResponse {
176
214
  output: string;
177
215
  }
178
216
 
179
- export namespace AgentChatResponse {
180
- export interface Message {
181
- /**
182
- * Message content. Can be string, array (multimodal), or object (tool).
183
- */
184
- content: string | Array<Message.UnionMember1> | { [key: string]: unknown };
185
-
186
- /**
187
- * Message role
188
- */
189
- role: 'system' | 'user' | 'assistant' | 'tool';
190
-
191
- /**
192
- * Tool name (required when role is "tool")
193
- */
194
- name?: string;
195
-
196
- /**
197
- * Tool call ID (for tool role)
198
- */
199
- tool_call_id?: string;
200
- }
201
-
202
- export namespace Message {
203
- export interface UnionMember1 {
204
- type: 'text' | 'image_url';
205
-
206
- image_url?: UnionMember1.ImageURL;
207
-
208
- text?: string;
209
- }
210
-
211
- export namespace UnionMember1 {
212
- export interface ImageURL {
213
- url: string;
214
- }
215
- }
216
- }
217
- }
218
-
219
217
  export interface AgentInvokeResponse {
220
218
  /**
221
219
  * Output from the agent. Structure depends on agent implementation.
@@ -229,7 +227,7 @@ export interface AgentChatParamsBase {
229
227
  /**
230
228
  * Conversation history. Must include at least one message.
231
229
  */
232
- messages: Array<AgentChatParams.Message>;
230
+ messages: Array<ChatMessage>;
233
231
 
234
232
  /**
235
233
  * Optional request context passed to the agent handler.
@@ -243,44 +241,6 @@ export interface AgentChatParamsBase {
243
241
  }
244
242
 
245
243
  export namespace AgentChatParams {
246
- export interface Message {
247
- /**
248
- * Message content. Can be string, array (multimodal), or object (tool).
249
- */
250
- content: string | Array<Message.UnionMember1> | { [key: string]: unknown };
251
-
252
- /**
253
- * Message role
254
- */
255
- role: 'system' | 'user' | 'assistant' | 'tool';
256
-
257
- /**
258
- * Tool name (required when role is "tool")
259
- */
260
- name?: string;
261
-
262
- /**
263
- * Tool call ID (for tool role)
264
- */
265
- tool_call_id?: string;
266
- }
267
-
268
- export namespace Message {
269
- export interface UnionMember1 {
270
- type: 'text' | 'image_url';
271
-
272
- image_url?: UnionMember1.ImageURL;
273
-
274
- text?: string;
275
- }
276
-
277
- export namespace UnionMember1 {
278
- export interface ImageURL {
279
- url: string;
280
- }
281
- }
282
- }
283
-
284
244
  export type AgentChatParamsNonStreaming = AgentsAPI.AgentChatParamsNonStreaming;
285
245
  export type AgentChatParamsStreaming = AgentsAPI.AgentChatParamsStreaming;
286
246
  }
@@ -339,6 +299,7 @@ export interface AgentInvokeParamsStreaming extends AgentInvokeParamsBase {
339
299
 
340
300
  export declare namespace Agents {
341
301
  export {
302
+ type ChatMessage as ChatMessage,
342
303
  type Context as Context,
343
304
  type StreamChunk as StreamChunk,
344
305
  type AgentChatResponse as AgentChatResponse,
@@ -2,6 +2,7 @@
2
2
 
3
3
  export {
4
4
  Agents,
5
+ type ChatMessage,
5
6
  type Context,
6
7
  type StreamChunk,
7
8
  type AgentChatResponse,
@@ -14,6 +15,4 @@ export {
14
15
  type AgentInvokeParamsStreaming,
15
16
  } from './agents';
16
17
  export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from './client-tokens';
17
- export { Deployments } from './deployments';
18
- export { Projects, type ProjectRetrieveCurrentResponse } from './projects';
19
- export { Secrets } from './secrets';
18
+ export { Projects, type PaginationCursor, type Project } from './projects';
@@ -19,12 +19,24 @@ export class Projects extends APIResource {
19
19
  * This endpoint is useful for verifying your API key is valid and retrieving
20
20
  * project details.
21
21
  */
22
- retrieveCurrent(options?: RequestOptions): APIPromise<ProjectRetrieveCurrentResponse> {
22
+ retrieveCurrent(options?: RequestOptions): APIPromise<Project> {
23
23
  return this._client.get('/projects/current', options);
24
24
  }
25
25
  }
26
26
 
27
- export interface ProjectRetrieveCurrentResponse {
27
+ export interface PaginationCursor {
28
+ /**
29
+ * Whether there are more results available
30
+ */
31
+ hasMore: boolean;
32
+
33
+ /**
34
+ * Cursor for the next page of results. Null if there are no more results.
35
+ */
36
+ nextCursor: string | null;
37
+ }
38
+
39
+ export interface Project {
28
40
  /**
29
41
  * Unique identifier for the project
30
42
  */
@@ -43,7 +55,7 @@ export interface ProjectRetrieveCurrentResponse {
43
55
  /**
44
56
  * Organization that owns this project
45
57
  */
46
- organization: ProjectRetrieveCurrentResponse.Organization;
58
+ organization: Project.Organization;
47
59
 
48
60
  /**
49
61
  * ID of the organization that owns this project
@@ -61,7 +73,7 @@ export interface ProjectRetrieveCurrentResponse {
61
73
  updatedAt: string;
62
74
  }
63
75
 
64
- export namespace ProjectRetrieveCurrentResponse {
76
+ export namespace Project {
65
77
  /**
66
78
  * Organization that owns this project
67
79
  */
@@ -84,5 +96,5 @@ export namespace ProjectRetrieveCurrentResponse {
84
96
  }
85
97
 
86
98
  export declare namespace Projects {
87
- export { type ProjectRetrieveCurrentResponse as ProjectRetrieveCurrentResponse };
99
+ export { type PaginationCursor as PaginationCursor, type Project as Project };
88
100
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.9.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map