@reminix/cli 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/agents.d.ts +6 -0
- package/dist/commands/agents.d.ts.map +1 -0
- package/dist/commands/agents.js +195 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/login.d.ts +6 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +65 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +6 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +15 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/projects.d.ts +6 -0
- package/dist/commands/projects.d.ts.map +1 -0
- package/dist/commands/projects.js +104 -0
- package/dist/commands/projects.js.map +1 -0
- package/dist/commands/version.d.ts +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/commands/whoami.d.ts +6 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +21 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/api-client.d.ts +25 -0
- package/dist/lib/api-client.d.ts.map +1 -0
- package/dist/lib/api-client.js +52 -0
- package/dist/lib/api-client.js.map +1 -0
- package/dist/lib/api-types.d.ts +518 -0
- package/dist/lib/api-types.d.ts.map +1 -0
- package/dist/lib/api-types.js +6 -0
- package/dist/lib/api-types.js.map +1 -0
- package/dist/lib/auth-server.d.ts +21 -0
- package/dist/lib/auth-server.d.ts.map +1 -0
- package/dist/lib/auth-server.js +234 -0
- package/dist/lib/auth-server.js.map +1 -0
- package/dist/lib/credentials.d.ts +32 -0
- package/dist/lib/credentials.d.ts.map +1 -0
- package/dist/lib/credentials.js +86 -0
- package/dist/lib/credentials.js.map +1 -0
- package/package.json +8 -4
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/projects": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List projects
|
|
15
|
+
* @description List all projects accessible to the current authentication.
|
|
16
|
+
*
|
|
17
|
+
* The projects returned depend on the authentication method:
|
|
18
|
+
* - **Project API Key**: Returns only the project associated with the API key
|
|
19
|
+
* - **Organization-scoped PAT**: Returns all projects in that organization
|
|
20
|
+
* - **Full-access PAT**: Returns all projects across all organizations the user is a member of
|
|
21
|
+
*
|
|
22
|
+
* Each project includes its organization information for easy grouping and display.
|
|
23
|
+
*/
|
|
24
|
+
get: operations["listProjects"];
|
|
25
|
+
put?: never;
|
|
26
|
+
post?: never;
|
|
27
|
+
delete?: never;
|
|
28
|
+
options?: never;
|
|
29
|
+
head?: never;
|
|
30
|
+
patch?: never;
|
|
31
|
+
trace?: never;
|
|
32
|
+
};
|
|
33
|
+
"/projects/current": {
|
|
34
|
+
parameters: {
|
|
35
|
+
query?: never;
|
|
36
|
+
header?: never;
|
|
37
|
+
path?: never;
|
|
38
|
+
cookie?: never;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Get current project
|
|
42
|
+
* @description Returns the project associated with the API key or X-Project header.
|
|
43
|
+
*
|
|
44
|
+
* The project contains metadata about your organization's configuration, including:
|
|
45
|
+
* - Project ID and organization ID
|
|
46
|
+
* - Project name and slug
|
|
47
|
+
* - Organization details
|
|
48
|
+
* - Creation and update timestamps
|
|
49
|
+
*
|
|
50
|
+
* This endpoint is useful for verifying your API key is valid and retrieving project details.
|
|
51
|
+
*/
|
|
52
|
+
get: operations["getCurrentProject"];
|
|
53
|
+
put?: never;
|
|
54
|
+
post?: never;
|
|
55
|
+
delete?: never;
|
|
56
|
+
options?: never;
|
|
57
|
+
head?: never;
|
|
58
|
+
patch?: never;
|
|
59
|
+
trace?: never;
|
|
60
|
+
};
|
|
61
|
+
"/agents/{name}/invoke": {
|
|
62
|
+
parameters: {
|
|
63
|
+
query?: never;
|
|
64
|
+
header?: never;
|
|
65
|
+
path?: never;
|
|
66
|
+
cookie?: never;
|
|
67
|
+
};
|
|
68
|
+
get?: never;
|
|
69
|
+
put?: never;
|
|
70
|
+
/**
|
|
71
|
+
* Invoke an agent
|
|
72
|
+
* @description Execute a one-shot task with an agent. This endpoint is designed for task-oriented operations
|
|
73
|
+
* where you provide input and receive a complete output.
|
|
74
|
+
*
|
|
75
|
+
* **Timeout:** Agent invocations have a 60-second timeout. If the agent takes longer to respond,
|
|
76
|
+
* you will receive a 504 Gateway Timeout error. For long-running tasks, consider using streaming
|
|
77
|
+
* mode which does not have the same timeout constraints.
|
|
78
|
+
*
|
|
79
|
+
* **Idempotency:** For non-streaming requests, send an `Idempotency-Key` header with a unique value
|
|
80
|
+
* (e.g., UUID) to ensure duplicate requests return the same response. Keys are valid for 24 hours.
|
|
81
|
+
* Streaming responses are not cached.
|
|
82
|
+
*
|
|
83
|
+
* **Use cases:**
|
|
84
|
+
* - Data analysis and processing
|
|
85
|
+
* - Content generation (with streaming for long outputs)
|
|
86
|
+
* - One-time operations that don't require conversation history
|
|
87
|
+
* - API-like operations
|
|
88
|
+
*
|
|
89
|
+
* **Streaming:** Set `stream: true` in the request body to receive Server-Sent Events (SSE)
|
|
90
|
+
* stream with incremental chunks. Useful for long-running tasks or real-time progress updates.
|
|
91
|
+
*/
|
|
92
|
+
post: operations["invokeAgent"];
|
|
93
|
+
delete?: never;
|
|
94
|
+
options?: never;
|
|
95
|
+
head?: never;
|
|
96
|
+
patch?: never;
|
|
97
|
+
trace?: never;
|
|
98
|
+
};
|
|
99
|
+
"/agents/{name}/chat": {
|
|
100
|
+
parameters: {
|
|
101
|
+
query?: never;
|
|
102
|
+
header?: never;
|
|
103
|
+
path?: never;
|
|
104
|
+
cookie?: never;
|
|
105
|
+
};
|
|
106
|
+
get?: never;
|
|
107
|
+
put?: never;
|
|
108
|
+
/**
|
|
109
|
+
* Chat with an agent
|
|
110
|
+
* @description Have a conversational interaction with an agent. This endpoint maintains conversation context
|
|
111
|
+
* through the messages array, allowing for multi-turn conversations.
|
|
112
|
+
*
|
|
113
|
+
* **Timeout:** Chat requests have a 60-second timeout. If the agent takes longer to respond,
|
|
114
|
+
* you will receive a 504 Gateway Timeout error. For long-running conversations, consider using
|
|
115
|
+
* streaming mode which does not have the same timeout constraints.
|
|
116
|
+
*
|
|
117
|
+
* **Idempotency:** For non-streaming requests, send an `Idempotency-Key` header with a unique value
|
|
118
|
+
* (e.g., UUID) to ensure duplicate requests return the same response. Keys are valid for 24 hours.
|
|
119
|
+
* Streaming responses are not cached.
|
|
120
|
+
*
|
|
121
|
+
* **Use cases:**
|
|
122
|
+
* - Customer support chatbots
|
|
123
|
+
* - AI assistants with memory
|
|
124
|
+
* - Multi-step question answering
|
|
125
|
+
* - Conversational agents that need context
|
|
126
|
+
*
|
|
127
|
+
* **Message format:** Follows OpenAI-compliant message structure with support for:
|
|
128
|
+
* - `system`, `user`, `assistant`, and `tool` roles
|
|
129
|
+
* - Multimodal content (text + images)
|
|
130
|
+
* - Tool/function calling
|
|
131
|
+
*
|
|
132
|
+
* **Streaming:** Set `stream: true` in the request body to receive Server-Sent Events (SSE)
|
|
133
|
+
* stream with incremental chunks. Perfect for ChatGPT-like real-time chat interfaces.
|
|
134
|
+
*/
|
|
135
|
+
post: operations["chatAgent"];
|
|
136
|
+
delete?: never;
|
|
137
|
+
options?: never;
|
|
138
|
+
head?: never;
|
|
139
|
+
patch?: never;
|
|
140
|
+
trace?: never;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export type webhooks = Record<string, never>;
|
|
144
|
+
export interface components {
|
|
145
|
+
schemas: {
|
|
146
|
+
/** @description Organization that owns this project */
|
|
147
|
+
OrganizationInfo: {
|
|
148
|
+
/** @description Unique identifier for the organization */
|
|
149
|
+
id: string;
|
|
150
|
+
/** @description Human-readable name of the organization */
|
|
151
|
+
name: string;
|
|
152
|
+
/** @description URL-friendly identifier for the organization */
|
|
153
|
+
slug: string;
|
|
154
|
+
};
|
|
155
|
+
ProjectWithOrganization: {
|
|
156
|
+
/** @description Unique identifier for the project */
|
|
157
|
+
id: string;
|
|
158
|
+
/** @description ID of the organization that owns this project */
|
|
159
|
+
organizationId: string;
|
|
160
|
+
/** @description Human-readable name of the project */
|
|
161
|
+
name: string;
|
|
162
|
+
/** @description URL-friendly identifier for the project */
|
|
163
|
+
slug: string;
|
|
164
|
+
/**
|
|
165
|
+
* Format: date-time
|
|
166
|
+
* @description ISO 8601 timestamp when the project was created
|
|
167
|
+
*/
|
|
168
|
+
createdAt: string;
|
|
169
|
+
/**
|
|
170
|
+
* Format: date-time
|
|
171
|
+
* @description ISO 8601 timestamp when the project was last updated
|
|
172
|
+
*/
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
organization: components["schemas"]["OrganizationInfo"];
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* @example {
|
|
178
|
+
* "nextCursor": "eyJpZCI6ImV2dF9hYmMxMjMifQ",
|
|
179
|
+
* "hasMore": true
|
|
180
|
+
* }
|
|
181
|
+
*/
|
|
182
|
+
PaginationCursor: {
|
|
183
|
+
/** @description Cursor for the next page of results. Null if there are no more results. */
|
|
184
|
+
nextCursor: string | null;
|
|
185
|
+
/** @description Whether there are more results available */
|
|
186
|
+
hasMore: boolean;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @example {
|
|
190
|
+
* "error": "Invalid request"
|
|
191
|
+
* }
|
|
192
|
+
*/
|
|
193
|
+
ErrorResponse: {
|
|
194
|
+
/** @description Error message describing what went wrong */
|
|
195
|
+
error: string;
|
|
196
|
+
};
|
|
197
|
+
InvokeResponse: {
|
|
198
|
+
/** @description Output from the agent. Structure depends on agent implementation. */
|
|
199
|
+
output?: unknown;
|
|
200
|
+
};
|
|
201
|
+
StreamChunk: {
|
|
202
|
+
/** @description Text chunk from the stream */
|
|
203
|
+
chunk: string;
|
|
204
|
+
};
|
|
205
|
+
/** @description Optional request context passed to the agent handler. */
|
|
206
|
+
Context: {
|
|
207
|
+
/** @description ID to track multi-turn conversations */
|
|
208
|
+
conversation_id?: string;
|
|
209
|
+
/** @description ID of the user making the request */
|
|
210
|
+
user_id?: string;
|
|
211
|
+
/** @description Additional custom context fields */
|
|
212
|
+
custom?: {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
InvokeRequest: {
|
|
217
|
+
/** @description Input data for the agent. Structure depends on agent implementation. */
|
|
218
|
+
input: {
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* @description Whether to stream the response as SSE.
|
|
223
|
+
* @default false
|
|
224
|
+
*/
|
|
225
|
+
stream: boolean;
|
|
226
|
+
context?: components["schemas"]["Context"];
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* @description Message role
|
|
230
|
+
* @enum {string}
|
|
231
|
+
*/
|
|
232
|
+
ChatMessageRole: "system" | "user" | "assistant" | "tool";
|
|
233
|
+
/** @enum {string} */
|
|
234
|
+
ContentItemType: "text" | "image_url";
|
|
235
|
+
ImageUrl: {
|
|
236
|
+
url: string;
|
|
237
|
+
};
|
|
238
|
+
ContentItem: {
|
|
239
|
+
type: components["schemas"]["ContentItemType"];
|
|
240
|
+
text?: string;
|
|
241
|
+
image_url?: components["schemas"]["ImageUrl"];
|
|
242
|
+
};
|
|
243
|
+
ChatMessage: {
|
|
244
|
+
role: components["schemas"]["ChatMessageRole"];
|
|
245
|
+
/** @description Message content. Can be string, array (multimodal), or object (tool). */
|
|
246
|
+
content: string | components["schemas"]["ContentItem"][] | {
|
|
247
|
+
[key: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
/** @description Tool name (required when role is "tool") */
|
|
250
|
+
name?: string;
|
|
251
|
+
/** @description Tool call ID (for tool role) */
|
|
252
|
+
tool_call_id?: string;
|
|
253
|
+
};
|
|
254
|
+
ChatResponse: {
|
|
255
|
+
/** @description Final assistant response text */
|
|
256
|
+
output: string;
|
|
257
|
+
/** @description Full conversation history including the assistant response */
|
|
258
|
+
messages: components["schemas"]["ChatMessage"][];
|
|
259
|
+
};
|
|
260
|
+
ChatRequest: {
|
|
261
|
+
/** @description Conversation history. Must include at least one message. */
|
|
262
|
+
messages: components["schemas"]["ChatMessage"][];
|
|
263
|
+
/**
|
|
264
|
+
* @description Whether to stream the response as SSE.
|
|
265
|
+
* @default false
|
|
266
|
+
*/
|
|
267
|
+
stream: boolean;
|
|
268
|
+
context?: components["schemas"]["Context"];
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
responses: never;
|
|
272
|
+
parameters: never;
|
|
273
|
+
requestBodies: never;
|
|
274
|
+
headers: never;
|
|
275
|
+
pathItems: never;
|
|
276
|
+
}
|
|
277
|
+
export type $defs = Record<string, never>;
|
|
278
|
+
export interface operations {
|
|
279
|
+
listProjects: {
|
|
280
|
+
parameters: {
|
|
281
|
+
query?: {
|
|
282
|
+
/** @description Maximum number of items to return (1-100, default: 50) */
|
|
283
|
+
limit?: number;
|
|
284
|
+
/** @description Pagination cursor from the previous response */
|
|
285
|
+
cursor?: string;
|
|
286
|
+
};
|
|
287
|
+
header?: never;
|
|
288
|
+
path?: never;
|
|
289
|
+
cookie?: never;
|
|
290
|
+
};
|
|
291
|
+
requestBody?: never;
|
|
292
|
+
responses: {
|
|
293
|
+
/** @description List of projects */
|
|
294
|
+
200: {
|
|
295
|
+
headers: {
|
|
296
|
+
[name: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
content: {
|
|
299
|
+
"application/json": components["schemas"]["PaginationCursor"] & {
|
|
300
|
+
data: components["schemas"]["ProjectWithOrganization"][];
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
/** @description Unauthorized - Invalid or missing API key */
|
|
305
|
+
401: {
|
|
306
|
+
headers: {
|
|
307
|
+
[name: string]: unknown;
|
|
308
|
+
};
|
|
309
|
+
content: {
|
|
310
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
getCurrentProject: {
|
|
316
|
+
parameters: {
|
|
317
|
+
query?: never;
|
|
318
|
+
header?: never;
|
|
319
|
+
path?: never;
|
|
320
|
+
cookie?: never;
|
|
321
|
+
};
|
|
322
|
+
requestBody?: never;
|
|
323
|
+
responses: {
|
|
324
|
+
/** @description Project found */
|
|
325
|
+
200: {
|
|
326
|
+
headers: {
|
|
327
|
+
[name: string]: unknown;
|
|
328
|
+
};
|
|
329
|
+
content: {
|
|
330
|
+
"application/json": components["schemas"]["ProjectWithOrganization"];
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
/** @description Unauthorized - Invalid or missing API key */
|
|
334
|
+
401: {
|
|
335
|
+
headers: {
|
|
336
|
+
[name: string]: unknown;
|
|
337
|
+
};
|
|
338
|
+
content: {
|
|
339
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
/** @description Project not found */
|
|
343
|
+
404: {
|
|
344
|
+
headers: {
|
|
345
|
+
[name: string]: unknown;
|
|
346
|
+
};
|
|
347
|
+
content: {
|
|
348
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
invokeAgent: {
|
|
354
|
+
parameters: {
|
|
355
|
+
query?: never;
|
|
356
|
+
header?: never;
|
|
357
|
+
path: {
|
|
358
|
+
/** @description Unique, URL-safe agent name within the project */
|
|
359
|
+
name: string;
|
|
360
|
+
};
|
|
361
|
+
cookie?: never;
|
|
362
|
+
};
|
|
363
|
+
requestBody?: {
|
|
364
|
+
content: {
|
|
365
|
+
"application/json": components["schemas"]["InvokeRequest"];
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
responses: {
|
|
369
|
+
/** @description Agent invocation successful */
|
|
370
|
+
200: {
|
|
371
|
+
headers: {
|
|
372
|
+
[name: string]: unknown;
|
|
373
|
+
};
|
|
374
|
+
content: {
|
|
375
|
+
"application/json": components["schemas"]["InvokeResponse"];
|
|
376
|
+
"text/event-stream": components["schemas"]["StreamChunk"];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
/** @description Bad Request - Invalid request body */
|
|
380
|
+
400: {
|
|
381
|
+
headers: {
|
|
382
|
+
[name: string]: unknown;
|
|
383
|
+
};
|
|
384
|
+
content: {
|
|
385
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
/** @description Unauthorized - Invalid or missing API key */
|
|
389
|
+
401: {
|
|
390
|
+
headers: {
|
|
391
|
+
[name: string]: unknown;
|
|
392
|
+
};
|
|
393
|
+
content: {
|
|
394
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
/** @description Agent or deployment not found */
|
|
398
|
+
404: {
|
|
399
|
+
headers: {
|
|
400
|
+
[name: string]: unknown;
|
|
401
|
+
};
|
|
402
|
+
content: {
|
|
403
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
/** @description Internal Server Error */
|
|
407
|
+
500: {
|
|
408
|
+
headers: {
|
|
409
|
+
[name: string]: unknown;
|
|
410
|
+
};
|
|
411
|
+
content: {
|
|
412
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
/** @description Bad Gateway - Unable to reach agent machine */
|
|
416
|
+
502: {
|
|
417
|
+
headers: {
|
|
418
|
+
[name: string]: unknown;
|
|
419
|
+
};
|
|
420
|
+
content: {
|
|
421
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
/** @description Gateway Timeout - Agent exceeded the 60-second timeout. Consider using streaming mode for long-running tasks. */
|
|
425
|
+
504: {
|
|
426
|
+
headers: {
|
|
427
|
+
[name: string]: unknown;
|
|
428
|
+
};
|
|
429
|
+
content: {
|
|
430
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
chatAgent: {
|
|
436
|
+
parameters: {
|
|
437
|
+
query?: never;
|
|
438
|
+
header?: never;
|
|
439
|
+
path: {
|
|
440
|
+
/** @description Unique, URL-safe agent name within the project */
|
|
441
|
+
name: string;
|
|
442
|
+
};
|
|
443
|
+
cookie?: never;
|
|
444
|
+
};
|
|
445
|
+
requestBody?: {
|
|
446
|
+
content: {
|
|
447
|
+
"application/json": components["schemas"]["ChatRequest"];
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
responses: {
|
|
451
|
+
/** @description Chat response successful */
|
|
452
|
+
200: {
|
|
453
|
+
headers: {
|
|
454
|
+
[name: string]: unknown;
|
|
455
|
+
};
|
|
456
|
+
content: {
|
|
457
|
+
"application/json": components["schemas"]["ChatResponse"];
|
|
458
|
+
"text/event-stream": components["schemas"]["StreamChunk"];
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
/** @description Bad Request - Invalid request body */
|
|
462
|
+
400: {
|
|
463
|
+
headers: {
|
|
464
|
+
[name: string]: unknown;
|
|
465
|
+
};
|
|
466
|
+
content: {
|
|
467
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
/** @description Unauthorized - Invalid or missing API key */
|
|
471
|
+
401: {
|
|
472
|
+
headers: {
|
|
473
|
+
[name: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
content: {
|
|
476
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
/** @description Agent or deployment not found */
|
|
480
|
+
404: {
|
|
481
|
+
headers: {
|
|
482
|
+
[name: string]: unknown;
|
|
483
|
+
};
|
|
484
|
+
content: {
|
|
485
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
/** @description Internal Server Error */
|
|
489
|
+
500: {
|
|
490
|
+
headers: {
|
|
491
|
+
[name: string]: unknown;
|
|
492
|
+
};
|
|
493
|
+
content: {
|
|
494
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
/** @description Bad Gateway - Unable to reach agent machine */
|
|
498
|
+
502: {
|
|
499
|
+
headers: {
|
|
500
|
+
[name: string]: unknown;
|
|
501
|
+
};
|
|
502
|
+
content: {
|
|
503
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
/** @description Gateway Timeout - Agent exceeded the 60-second timeout. Consider using streaming mode for long-running tasks. */
|
|
507
|
+
504: {
|
|
508
|
+
headers: {
|
|
509
|
+
[name: string]: unknown;
|
|
510
|
+
};
|
|
511
|
+
content: {
|
|
512
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
//# sourceMappingURL=api-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-types.d.ts","sourceRoot":"","sources":["../../src/lib/api-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IAClB,WAAW,EAAE;QACT,UAAU,EAAE;YACR,KAAK,CAAC,EAAE,KAAK,CAAC;YACd,MAAM,CAAC,EAAE,KAAK,CAAC;YACf,IAAI,CAAC,EAAE,KAAK,CAAC;YACb,MAAM,CAAC,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eAAe,CAAC,CAAC;iBAC9D,CAAC;aACL,CAAC;YACF,iDAAiD;YACjD,GAAG,EAAE;gBACD,OAAO,EAAE;oBACL,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;iBAC3B,CAAC;gBACF,OAAO,EAAE;oBACL,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC;iBAC9D,CAAC;aACL,CAAC;YACF,yCAAyC;YACzC,GAAG,EAAE;gBACD,OAAO,EAAE;oBACL,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;iBAC3B,CAAC;gBACF,OAAO,EAAE;oBACL,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC;iBAC9D,CAAC;aACL,CAAC;YACF,+DAA+D;YAC/D,GAAG,EAAE;gBACD,OAAO,EAAE;oBACL,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;iBAC3B,CAAC;gBACF,OAAO,EAAE;oBACL,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC;iBAC9D,CAAC;aACL,CAAC;YACF,iIAAiI;YACjI,GAAG,EAAE;gBACD,OAAO,EAAE;oBACL,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;iBAC3B,CAAC;gBACF,OAAO,EAAE;oBACL,kBAAkB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC;iBAC9D,CAAC;aACL,CAAC;SACL,CAAC;KACL,CAAC;CACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-types.js","sourceRoot":"","sources":["../../src/lib/api-types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result from the auth callback
|
|
3
|
+
*/
|
|
4
|
+
export interface AuthCallbackResult {
|
|
5
|
+
token: string;
|
|
6
|
+
state: string;
|
|
7
|
+
email: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Start the auth server and return both the port and the result promise
|
|
11
|
+
* This allows the caller to get the port immediately and wait for the result separately
|
|
12
|
+
*/
|
|
13
|
+
export declare function createAuthServer(expectedState: string, timeoutMs?: number): Promise<{
|
|
14
|
+
port: number;
|
|
15
|
+
waitForCallback: () => Promise<AuthCallbackResult>;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Generate a random state string for CSRF protection
|
|
19
|
+
*/
|
|
20
|
+
export declare function generateState(): string;
|
|
21
|
+
//# sourceMappingURL=auth-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-server.d.ts","sourceRoot":"","sources":["../../src/lib/auth-server.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AA+ID;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,EACrB,SAAS,GAAE,MAAsB,GAChC,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAAE,CAAC,CA0F/E;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAItC"}
|