@reminix/sdk 0.8.4 → 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.
- package/CHANGELOG.md +19 -0
- package/README.md +6 -6
- package/client.d.mts +8 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -11
- package/client.d.ts.map +1 -1
- package/client.js +3 -6
- package/client.js.map +1 -1
- package/client.mjs +3 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents.d.mts +35 -69
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +35 -69
- package/resources/agents.d.ts.map +1 -1
- package/resources/client-tokens.d.mts +90 -0
- package/resources/client-tokens.d.mts.map +1 -0
- package/resources/client-tokens.d.ts +90 -0
- package/resources/client-tokens.d.ts.map +1 -0
- package/resources/client-tokens.js +65 -0
- package/resources/client-tokens.js.map +1 -0
- package/resources/client-tokens.mjs +61 -0
- package/resources/client-tokens.mjs.map +1 -0
- package/resources/index.d.mts +3 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/projects.d.mts +15 -5
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +15 -5
- package/resources/projects.d.ts.map +1 -1
- package/src/client.ts +13 -12
- package/src/resources/agents.ts +41 -80
- package/src/resources/client-tokens.ts +108 -0
- package/src/resources/index.ts +3 -3
- package/src/resources/projects.ts +17 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/deployments.d.mts +0 -4
- package/resources/deployments.d.mts.map +0 -1
- package/resources/deployments.d.ts +0 -4
- package/resources/deployments.d.ts.map +0 -1
- package/resources/deployments.js +0 -9
- package/resources/deployments.js.map +0 -1
- package/resources/deployments.mjs +0 -5
- package/resources/deployments.mjs.map +0 -1
- package/resources/secrets.d.mts +0 -4
- package/resources/secrets.d.mts.map +0 -1
- package/resources/secrets.d.ts +0 -4
- package/resources/secrets.d.ts.map +0 -1
- package/resources/secrets.js +0 -9
- package/resources/secrets.js.map +0 -1
- package/resources/secrets.mjs +0 -5
- package/resources/secrets.mjs.map +0 -1
- package/src/resources/deployments.ts +0 -5
- package/src/resources/secrets.ts +0 -5
package/resources/projects.d.ts
CHANGED
|
@@ -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<
|
|
19
|
+
retrieveCurrent(options?: RequestOptions): APIPromise<Project>;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
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:
|
|
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
|
|
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
|
|
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,
|
|
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,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"}
|
package/src/client.ts
CHANGED
|
@@ -26,12 +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
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { Secrets } from './resources/secrets';
|
|
33
|
+
import { ClientTokenCreateParams, ClientTokenCreateResponse, ClientTokens } from './resources/client-tokens';
|
|
34
|
+
import { PaginationCursor, Project, Projects } from './resources/projects';
|
|
35
35
|
import { type Fetch } from './internal/builtin-types';
|
|
36
36
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
37
37
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -47,7 +47,7 @@ import { isEmptyObj } from './internal/utils/values';
|
|
|
47
47
|
|
|
48
48
|
export interface ClientOptions {
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* API Key or Personal Access Token (PAT). When using PAT, include X-Project header.
|
|
51
51
|
*/
|
|
52
52
|
apiKey?: string | undefined;
|
|
53
53
|
|
|
@@ -731,22 +731,21 @@ export class Reminix {
|
|
|
731
731
|
|
|
732
732
|
projects: API.Projects = new API.Projects(this);
|
|
733
733
|
agents: API.Agents = new API.Agents(this);
|
|
734
|
-
|
|
735
|
-
deployments: API.Deployments = new API.Deployments(this);
|
|
734
|
+
clientTokens: API.ClientTokens = new API.ClientTokens(this);
|
|
736
735
|
}
|
|
737
736
|
|
|
738
737
|
Reminix.Projects = Projects;
|
|
739
738
|
Reminix.Agents = Agents;
|
|
740
|
-
Reminix.
|
|
741
|
-
Reminix.Deployments = Deployments;
|
|
739
|
+
Reminix.ClientTokens = ClientTokens;
|
|
742
740
|
|
|
743
741
|
export declare namespace Reminix {
|
|
744
742
|
export type RequestOptions = Opts.RequestOptions;
|
|
745
743
|
|
|
746
|
-
export { Projects as Projects, type
|
|
744
|
+
export { Projects as Projects, type PaginationCursor as PaginationCursor, type Project as Project };
|
|
747
745
|
|
|
748
746
|
export {
|
|
749
747
|
Agents as Agents,
|
|
748
|
+
type ChatMessage as ChatMessage,
|
|
750
749
|
type Context as Context,
|
|
751
750
|
type StreamChunk as StreamChunk,
|
|
752
751
|
type AgentChatResponse as AgentChatResponse,
|
|
@@ -759,7 +758,9 @@ export declare namespace Reminix {
|
|
|
759
758
|
type AgentInvokeParamsStreaming as AgentInvokeParamsStreaming,
|
|
760
759
|
};
|
|
761
760
|
|
|
762
|
-
export {
|
|
763
|
-
|
|
764
|
-
|
|
761
|
+
export {
|
|
762
|
+
ClientTokens as ClientTokens,
|
|
763
|
+
type ClientTokenCreateResponse as ClientTokenCreateResponse,
|
|
764
|
+
type ClientTokenCreateParams as ClientTokenCreateParams,
|
|
765
|
+
};
|
|
765
766
|
}
|
package/src/resources/agents.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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,
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class ClientTokens extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a short-lived client token for browser SDK use.
|
|
12
|
+
*
|
|
13
|
+
* **Use case:** Your backend calls this endpoint to generate a token, then passes
|
|
14
|
+
* it to your frontend. The frontend uses the token to make authenticated requests
|
|
15
|
+
* to `/client/*` endpoints.
|
|
16
|
+
*
|
|
17
|
+
* **Context types:**
|
|
18
|
+
*
|
|
19
|
+
* - `context`: Public data accessible to the client via `/client/context`
|
|
20
|
+
* - `serverContext`: Private data only accessible to agents/handlers (never
|
|
21
|
+
* exposed to client)
|
|
22
|
+
*
|
|
23
|
+
* **Security:**
|
|
24
|
+
*
|
|
25
|
+
* - Tokens are short-lived (default 1 hour, max 24 hours)
|
|
26
|
+
* - Both context types are trusted and cannot be tampered with
|
|
27
|
+
* - Store the token securely - it will only be shown once
|
|
28
|
+
*
|
|
29
|
+
* **Example flow:**
|
|
30
|
+
*
|
|
31
|
+
* 1. User logs in to your app
|
|
32
|
+
* 2. Your backend calls `POST /v1/client-tokens` with
|
|
33
|
+
* `{ context: { userId: "user_123" }, serverContext: { internalId: "int_456" } }`
|
|
34
|
+
* 3. Your backend returns the token to your frontend
|
|
35
|
+
* 4. Frontend uses the token to call `/client/*` endpoints
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const clientToken = await client.clientTokens.create({
|
|
40
|
+
* context: { userId: 'user_123', sessionId: 'sess_abc' },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
create(body: ClientTokenCreateParams, options?: RequestOptions): APIPromise<ClientTokenCreateResponse> {
|
|
45
|
+
return this._client.post('/client-tokens', { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Revoke a client token immediately.
|
|
50
|
+
*
|
|
51
|
+
* Once revoked, the token can no longer be used for authentication. This is a soft
|
|
52
|
+
* delete - the token record is kept for audit purposes.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* await client.clientTokens.revoke('x');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
revoke(id: string, options?: RequestOptions): APIPromise<void> {
|
|
60
|
+
return this._client.delete(path`/client-tokens/${id}`, {
|
|
61
|
+
...options,
|
|
62
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ClientTokenCreateResponse {
|
|
68
|
+
/**
|
|
69
|
+
* Token ID for management purposes
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The client token. Store this securely - it will not be shown again.
|
|
75
|
+
*/
|
|
76
|
+
token: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* ISO 8601 timestamp when the token expires
|
|
80
|
+
*/
|
|
81
|
+
expiresAt: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface ClientTokenCreateParams {
|
|
85
|
+
/**
|
|
86
|
+
* Public context accessible to the client via /client/context (e.g., { userId:
|
|
87
|
+
* "...", sessionId: "..." })
|
|
88
|
+
*/
|
|
89
|
+
context: { [key: string]: unknown };
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Private context only accessible to agents/handlers, never exposed to client
|
|
93
|
+
* (e.g., { internalId: "..." })
|
|
94
|
+
*/
|
|
95
|
+
serverContext?: { [key: string]: unknown };
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Time-to-live in seconds. Default: 3600 (1 hour). Max: 86400 (24 hours).
|
|
99
|
+
*/
|
|
100
|
+
ttlSeconds?: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export declare namespace ClientTokens {
|
|
104
|
+
export {
|
|
105
|
+
type ClientTokenCreateResponse as ClientTokenCreateResponse,
|
|
106
|
+
type ClientTokenCreateParams as ClientTokenCreateParams,
|
|
107
|
+
};
|
|
108
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -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,
|
|
@@ -13,6 +14,5 @@ export {
|
|
|
13
14
|
type AgentInvokeParamsNonStreaming,
|
|
14
15
|
type AgentInvokeParamsStreaming,
|
|
15
16
|
} from './agents';
|
|
16
|
-
export {
|
|
17
|
-
export { Projects, type
|
|
18
|
-
export { Secrets } from './secrets';
|
|
17
|
+
export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from './client-tokens';
|
|
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<
|
|
22
|
+
retrieveCurrent(options?: RequestOptions): APIPromise<Project> {
|
|
23
23
|
return this._client.get('/projects/current', options);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export interface
|
|
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:
|
|
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
|
|
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
|
|
99
|
+
export { type PaginationCursor as PaginationCursor, type Project as Project };
|
|
88
100
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
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.
|
|
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,
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.mts","sourceRoot":"","sources":["../src/resources/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,WAAY,SAAQ,WAAW;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../src/resources/deployments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,WAAY,SAAQ,WAAW;CAAG"}
|
package/resources/deployments.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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.Deployments = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Deployments extends resource_1.APIResource {
|
|
7
|
-
}
|
|
8
|
-
exports.Deployments = Deployments;
|
|
9
|
-
//# sourceMappingURL=deployments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../src/resources/deployments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,WAAY,SAAQ,sBAAW;CAAG;AAA/C,kCAA+C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.mjs","sourceRoot":"","sources":["../src/resources/deployments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,WAAY,SAAQ,WAAW;CAAG"}
|
package/resources/secrets.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.mts","sourceRoot":"","sources":["../src/resources/secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
|
package/resources/secrets.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../src/resources/secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,OAAQ,SAAQ,WAAW;CAAG"}
|
package/resources/secrets.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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.Secrets = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Secrets extends resource_1.APIResource {
|
|
7
|
-
}
|
|
8
|
-
exports.Secrets = Secrets;
|
|
9
|
-
//# sourceMappingURL=secrets.js.map
|
package/resources/secrets.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../src/resources/secrets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"}
|
package/resources/secrets.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.mjs","sourceRoot":"","sources":["../src/resources/secrets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"}
|