@nylorun/core 0.4.0-beta → 0.6.0-beta
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 +57 -0
- package/README.md +1 -1
- package/dist/compatibility.d.ts +54 -1
- package/dist/compatibility.js +191 -1
- package/dist/contracts.d.ts +554 -19
- package/dist/contracts.js +463 -29
- package/dist/define.d.ts +4 -0
- package/dist/define.js +2 -0
- package/dist/definition/sandbox-tools.js +1 -1
- package/dist/definition/variant.d.ts +7 -0
- package/dist/definition/variant.js +87 -0
- package/dist/definition/workflow/build.d.ts +38 -0
- package/dist/definition/workflow/build.js +62 -0
- package/dist/definition/workflow/chain.d.ts +49 -0
- package/dist/definition/workflow/chain.js +41 -0
- package/dist/definition/workflow/diagnostics.d.ts +14 -0
- package/dist/definition/workflow/diagnostics.js +38 -0
- package/dist/definition/workflow/index.d.ts +18 -0
- package/dist/definition/workflow/index.js +10 -0
- package/dist/definition/workflow/loop.d.ts +54 -0
- package/dist/definition/workflow/loop.js +102 -0
- package/dist/definition/workflow/map.d.ts +17 -0
- package/dist/definition/workflow/map.js +46 -0
- package/dist/definition/workflow/parallel.d.ts +19 -0
- package/dist/definition/workflow/parallel.js +37 -0
- package/dist/definition/workflow/patch.d.ts +11 -0
- package/dist/definition/workflow/patch.js +45 -0
- package/dist/definition/workflow/runnable.d.ts +40 -0
- package/dist/definition/workflow/runnable.js +251 -0
- package/dist/definition/workflow/slot.d.ts +23 -0
- package/dist/definition/workflow/slot.js +16 -0
- package/dist/definition/workflow/switch.d.ts +26 -0
- package/dist/definition/workflow/switch.js +66 -0
- package/dist/definition/workflow/types.d.ts +25 -0
- package/dist/definition/workflow/types.js +7 -0
- package/dist/definition/workflow/verdict.d.ts +20 -0
- package/dist/definition/workflow/verdict.js +25 -0
- package/dist/index.d.ts +1 -0
- package/dist/types/observe.d.ts +64 -0
- package/dist/types/workflow.d.ts +106 -0
- package/dist/types/workflow.js +1 -0
- package/dist/utils/hash.d.ts +3 -2
- package/dist/utils/hash.js +4 -4
- package/package.json +2 -2
package/dist/contracts.d.ts
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
/** Public wire contracts only. Never import checkpoint or engine modules here. */
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { AgentManifest } from "./types/manifest.js";
|
|
4
|
+
import type { JsonValue } from "./types/shared.js";
|
|
5
|
+
import type { WorkflowManifest } from "./types/workflow.js";
|
|
4
6
|
export type { AgentManifest } from "./types/manifest.js";
|
|
5
|
-
export
|
|
7
|
+
export type { WorkflowManifest } from "./types/workflow.js";
|
|
8
|
+
export { PROTOCOL_VERSION, ERROR_CODES } from "./compatibility.js";
|
|
9
|
+
export type { ErrorCode } from "./compatibility.js";
|
|
6
10
|
export declare const RequestIdSchema: z.ZodString;
|
|
7
11
|
export declare const IdempotencyKeySchema: z.ZodString;
|
|
8
12
|
export declare const AgentManifestSchema: z.ZodType<AgentManifest>;
|
|
13
|
+
/** Workflow definition document. `kind: "workflow"`; a missing `kind` is never a workflow. */
|
|
14
|
+
export declare const WorkflowManifestSchema: z.ZodType<WorkflowManifest>;
|
|
15
|
+
/** Registry document: agent (no `kind`, or legacy) or workflow (`kind: "workflow"`). */
|
|
16
|
+
export declare const DefinitionDocumentSchema: z.ZodUnion<readonly [z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>, z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>]>;
|
|
17
|
+
export type DefinitionDocument = AgentManifest | WorkflowManifest;
|
|
9
18
|
export declare const PutAgentRequestSchema: z.ZodObject<{
|
|
10
19
|
requestId: z.ZodString;
|
|
11
|
-
manifest: z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown
|
|
20
|
+
manifest: z.ZodUnion<readonly [z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>, z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>]>;
|
|
12
21
|
implementationVersion: z.ZodString;
|
|
13
22
|
pluginRoots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
23
|
}, z.core.$strict>;
|
|
@@ -28,6 +37,9 @@ export declare const PutSessionRequestSchema: z.ZodObject<{
|
|
|
28
37
|
serverName: z.ZodString;
|
|
29
38
|
credentialId: z.ZodString;
|
|
30
39
|
}, z.core.$strict>>>;
|
|
40
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
session: z.ZodString;
|
|
42
|
+
}, z.core.$strict>>;
|
|
31
43
|
}, z.core.$strict>;
|
|
32
44
|
export type PutSessionRequest = z.infer<typeof PutSessionRequestSchema>;
|
|
33
45
|
export declare const CreateVaultRequestSchema: z.ZodObject<{
|
|
@@ -144,12 +156,20 @@ export interface CredentialInfo {
|
|
|
144
156
|
readonly createdAt: string;
|
|
145
157
|
readonly rotatedAt?: string;
|
|
146
158
|
}
|
|
147
|
-
|
|
159
|
+
/** Exactly one of `content` or `data`. Optional `manifest` for per-turn agent patches. */
|
|
160
|
+
export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
148
161
|
requestId: z.ZodString;
|
|
149
162
|
idempotencyKey: z.ZodString;
|
|
150
163
|
type: z.ZodLiteral<"message">;
|
|
164
|
+
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
151
165
|
content: z.ZodString;
|
|
152
|
-
}, z.core.$strict
|
|
166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
167
|
+
requestId: z.ZodString;
|
|
168
|
+
idempotencyKey: z.ZodString;
|
|
169
|
+
type: z.ZodLiteral<"message">;
|
|
170
|
+
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
171
|
+
data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
172
|
+
}, z.core.$strict>]>;
|
|
153
173
|
export declare const ActionOutcomeSchema: z.ZodObject<{
|
|
154
174
|
value: z.ZodUnknown;
|
|
155
175
|
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -167,12 +187,19 @@ export declare const ActionResultCommandSchema: z.ZodObject<{
|
|
|
167
187
|
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
168
188
|
}, z.core.$strict>;
|
|
169
189
|
}, z.core.$strict>;
|
|
170
|
-
export declare const SessionCommandSchema: z.
|
|
190
|
+
export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
171
191
|
requestId: z.ZodString;
|
|
172
192
|
idempotencyKey: z.ZodString;
|
|
173
193
|
type: z.ZodLiteral<"message">;
|
|
194
|
+
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
174
195
|
content: z.ZodString;
|
|
175
196
|
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
requestId: z.ZodString;
|
|
198
|
+
idempotencyKey: z.ZodString;
|
|
199
|
+
type: z.ZodLiteral<"message">;
|
|
200
|
+
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
201
|
+
data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
202
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
176
203
|
requestId: z.ZodString;
|
|
177
204
|
idempotencyKey: z.ZodString;
|
|
178
205
|
type: z.ZodLiteral<"approve">;
|
|
@@ -200,13 +227,20 @@ export declare const SessionCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
200
227
|
value: z.ZodUnknown;
|
|
201
228
|
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
202
229
|
}, z.core.$strict>;
|
|
203
|
-
}, z.core.$strict>]
|
|
204
|
-
export declare const SessionEventBodySchema: z.
|
|
230
|
+
}, z.core.$strict>]>;
|
|
231
|
+
export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
205
232
|
requestId: z.ZodString;
|
|
206
233
|
idempotencyKey: z.ZodString;
|
|
207
234
|
type: z.ZodLiteral<"message">;
|
|
235
|
+
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
208
236
|
content: z.ZodString;
|
|
209
237
|
}, z.core.$strict>, z.ZodObject<{
|
|
238
|
+
requestId: z.ZodString;
|
|
239
|
+
idempotencyKey: z.ZodString;
|
|
240
|
+
type: z.ZodLiteral<"message">;
|
|
241
|
+
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
242
|
+
data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
243
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
210
244
|
requestId: z.ZodString;
|
|
211
245
|
idempotencyKey: z.ZodString;
|
|
212
246
|
type: z.ZodLiteral<"approve">;
|
|
@@ -234,13 +268,14 @@ export declare const SessionEventBodySchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
234
268
|
value: z.ZodUnknown;
|
|
235
269
|
statePatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
236
270
|
}, z.core.$strict>;
|
|
237
|
-
}, z.core.$strict>]
|
|
271
|
+
}, z.core.$strict>]>;
|
|
238
272
|
export type SessionCommand = z.infer<typeof SessionCommandSchema>;
|
|
239
273
|
export type SessionEventBody = SessionCommand;
|
|
240
274
|
export type MessageEventBody = z.infer<typeof MessageEventBodySchema>;
|
|
241
275
|
export declare const LiveEventSchema: z.ZodObject<{
|
|
242
276
|
eventId: z.ZodString;
|
|
243
277
|
sessionId: z.ZodString;
|
|
278
|
+
tenantId: z.ZodString;
|
|
244
279
|
turnId: z.ZodNullable<z.ZodString>;
|
|
245
280
|
cursor: z.ZodString;
|
|
246
281
|
createdAt: z.ZodString;
|
|
@@ -252,6 +287,7 @@ export declare const SessionItemsResponseSchema: z.ZodObject<{
|
|
|
252
287
|
items: z.ZodArray<z.ZodObject<{
|
|
253
288
|
eventId: z.ZodString;
|
|
254
289
|
sessionId: z.ZodString;
|
|
290
|
+
tenantId: z.ZodString;
|
|
255
291
|
turnId: z.ZodNullable<z.ZodString>;
|
|
256
292
|
cursor: z.ZodString;
|
|
257
293
|
createdAt: z.ZodString;
|
|
@@ -270,8 +306,19 @@ export declare const AcceptedResponseSchema: z.ZodObject<{
|
|
|
270
306
|
export type AcceptedResponse = z.infer<typeof AcceptedResponseSchema>;
|
|
271
307
|
export declare const RejectedResponseSchema: z.ZodObject<{
|
|
272
308
|
status: z.ZodLiteral<"rejected">;
|
|
273
|
-
code: z.
|
|
309
|
+
code: z.ZodEnum<{
|
|
310
|
+
active_work: "active_work";
|
|
311
|
+
connection_missing: "connection_missing";
|
|
312
|
+
host_rejected: "host_rejected";
|
|
313
|
+
incompatible_host: "incompatible_host";
|
|
314
|
+
not_found: "not_found";
|
|
315
|
+
origin_rejected: "origin_rejected";
|
|
316
|
+
protocol_unsupported: "protocol_unsupported";
|
|
317
|
+
tenant_conflict: "tenant_conflict";
|
|
318
|
+
unsupported_media_type: "unsupported_media_type";
|
|
319
|
+
}>;
|
|
274
320
|
message: z.ZodString;
|
|
321
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
275
322
|
activeTurnId: z.ZodOptional<z.ZodString>;
|
|
276
323
|
requestId: z.ZodOptional<z.ZodString>;
|
|
277
324
|
}, z.core.$strip>;
|
|
@@ -295,7 +342,7 @@ export declare const ActionHookSchema: z.ZodObject<{
|
|
|
295
342
|
capabilityIds: z.ZodArray<z.ZodString>;
|
|
296
343
|
}, z.core.$strict>;
|
|
297
344
|
export type ActionHook = z.infer<typeof ActionHookSchema>;
|
|
298
|
-
export declare const ActionSchema: z.
|
|
345
|
+
export declare const ActionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
299
346
|
actionId: z.ZodString;
|
|
300
347
|
sessionId: z.ZodString;
|
|
301
348
|
turnId: z.ZodString;
|
|
@@ -324,7 +371,36 @@ export declare const ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
324
371
|
toolName: z.ZodString;
|
|
325
372
|
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
326
373
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
327
|
-
}, z.core.$
|
|
374
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
375
|
+
actionId: z.ZodString;
|
|
376
|
+
sessionId: z.ZodString;
|
|
377
|
+
turnId: z.ZodString;
|
|
378
|
+
agentId: z.ZodString;
|
|
379
|
+
manifestHash: z.ZodString;
|
|
380
|
+
implementationVersion: z.ZodString;
|
|
381
|
+
input: z.ZodUnknown;
|
|
382
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
383
|
+
status: z.ZodEnum<{
|
|
384
|
+
cancelled: "cancelled";
|
|
385
|
+
claimed: "claimed";
|
|
386
|
+
completed: "completed";
|
|
387
|
+
pending: "pending";
|
|
388
|
+
uncertain: "uncertain";
|
|
389
|
+
}>;
|
|
390
|
+
generation: z.ZodNumber;
|
|
391
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
392
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
393
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
id: z.ZodString;
|
|
395
|
+
path: z.ZodString;
|
|
396
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, z.core.$strict>>;
|
|
398
|
+
kind: z.ZodLiteral<"tool">;
|
|
399
|
+
path: z.ZodString;
|
|
400
|
+
key: z.ZodString;
|
|
401
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
402
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
403
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
328
404
|
actionId: z.ZodString;
|
|
329
405
|
sessionId: z.ZodString;
|
|
330
406
|
turnId: z.ZodString;
|
|
@@ -360,7 +436,61 @@ export declare const ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
360
436
|
}>;
|
|
361
437
|
capabilityIds: z.ZodArray<z.ZodString>;
|
|
362
438
|
}, z.core.$strict>;
|
|
363
|
-
}, z.core.$
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
actionId: z.ZodString;
|
|
441
|
+
sessionId: z.ZodString;
|
|
442
|
+
turnId: z.ZodString;
|
|
443
|
+
agentId: z.ZodString;
|
|
444
|
+
manifestHash: z.ZodString;
|
|
445
|
+
implementationVersion: z.ZodString;
|
|
446
|
+
input: z.ZodUnknown;
|
|
447
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
448
|
+
status: z.ZodEnum<{
|
|
449
|
+
cancelled: "cancelled";
|
|
450
|
+
claimed: "claimed";
|
|
451
|
+
completed: "completed";
|
|
452
|
+
pending: "pending";
|
|
453
|
+
uncertain: "uncertain";
|
|
454
|
+
}>;
|
|
455
|
+
generation: z.ZodNumber;
|
|
456
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
457
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
458
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
id: z.ZodString;
|
|
460
|
+
path: z.ZodString;
|
|
461
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
462
|
+
}, z.core.$strict>>;
|
|
463
|
+
kind: z.ZodLiteral<"fn">;
|
|
464
|
+
path: z.ZodString;
|
|
465
|
+
key: z.ZodString;
|
|
466
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
467
|
+
actionId: z.ZodString;
|
|
468
|
+
sessionId: z.ZodString;
|
|
469
|
+
turnId: z.ZodString;
|
|
470
|
+
agentId: z.ZodString;
|
|
471
|
+
manifestHash: z.ZodString;
|
|
472
|
+
implementationVersion: z.ZodString;
|
|
473
|
+
input: z.ZodUnknown;
|
|
474
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
475
|
+
status: z.ZodEnum<{
|
|
476
|
+
cancelled: "cancelled";
|
|
477
|
+
claimed: "claimed";
|
|
478
|
+
completed: "completed";
|
|
479
|
+
pending: "pending";
|
|
480
|
+
uncertain: "uncertain";
|
|
481
|
+
}>;
|
|
482
|
+
generation: z.ZodNumber;
|
|
483
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
484
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
485
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
486
|
+
id: z.ZodString;
|
|
487
|
+
path: z.ZodString;
|
|
488
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strict>>;
|
|
490
|
+
kind: z.ZodLiteral<"verify">;
|
|
491
|
+
path: z.ZodString;
|
|
492
|
+
key: z.ZodString;
|
|
493
|
+
}, z.core.$strict>]>;
|
|
364
494
|
export type Action = z.infer<typeof ActionSchema>;
|
|
365
495
|
export declare const ActionClaimRequestSchema: z.ZodObject<{
|
|
366
496
|
requestId: z.ZodString;
|
|
@@ -372,7 +502,7 @@ export declare const ActionHeartbeatRequestSchema: z.ZodObject<{
|
|
|
372
502
|
generation: z.ZodNumber;
|
|
373
503
|
}, z.core.$strict>;
|
|
374
504
|
export declare const ActionClaimResponseSchema: z.ZodObject<{
|
|
375
|
-
action: z.
|
|
505
|
+
action: z.ZodUnion<readonly [z.ZodObject<{
|
|
376
506
|
actionId: z.ZodString;
|
|
377
507
|
sessionId: z.ZodString;
|
|
378
508
|
turnId: z.ZodString;
|
|
@@ -401,7 +531,36 @@ export declare const ActionClaimResponseSchema: z.ZodObject<{
|
|
|
401
531
|
toolName: z.ZodString;
|
|
402
532
|
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
403
533
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
404
|
-
}, z.core.$
|
|
534
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
535
|
+
actionId: z.ZodString;
|
|
536
|
+
sessionId: z.ZodString;
|
|
537
|
+
turnId: z.ZodString;
|
|
538
|
+
agentId: z.ZodString;
|
|
539
|
+
manifestHash: z.ZodString;
|
|
540
|
+
implementationVersion: z.ZodString;
|
|
541
|
+
input: z.ZodUnknown;
|
|
542
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
543
|
+
status: z.ZodEnum<{
|
|
544
|
+
cancelled: "cancelled";
|
|
545
|
+
claimed: "claimed";
|
|
546
|
+
completed: "completed";
|
|
547
|
+
pending: "pending";
|
|
548
|
+
uncertain: "uncertain";
|
|
549
|
+
}>;
|
|
550
|
+
generation: z.ZodNumber;
|
|
551
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
552
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
553
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
path: z.ZodString;
|
|
556
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
557
|
+
}, z.core.$strict>>;
|
|
558
|
+
kind: z.ZodLiteral<"tool">;
|
|
559
|
+
path: z.ZodString;
|
|
560
|
+
key: z.ZodString;
|
|
561
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
562
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
563
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
405
564
|
actionId: z.ZodString;
|
|
406
565
|
sessionId: z.ZodString;
|
|
407
566
|
turnId: z.ZodString;
|
|
@@ -437,7 +596,61 @@ export declare const ActionClaimResponseSchema: z.ZodObject<{
|
|
|
437
596
|
}>;
|
|
438
597
|
capabilityIds: z.ZodArray<z.ZodString>;
|
|
439
598
|
}, z.core.$strict>;
|
|
440
|
-
}, z.core.$
|
|
599
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
600
|
+
actionId: z.ZodString;
|
|
601
|
+
sessionId: z.ZodString;
|
|
602
|
+
turnId: z.ZodString;
|
|
603
|
+
agentId: z.ZodString;
|
|
604
|
+
manifestHash: z.ZodString;
|
|
605
|
+
implementationVersion: z.ZodString;
|
|
606
|
+
input: z.ZodUnknown;
|
|
607
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
608
|
+
status: z.ZodEnum<{
|
|
609
|
+
cancelled: "cancelled";
|
|
610
|
+
claimed: "claimed";
|
|
611
|
+
completed: "completed";
|
|
612
|
+
pending: "pending";
|
|
613
|
+
uncertain: "uncertain";
|
|
614
|
+
}>;
|
|
615
|
+
generation: z.ZodNumber;
|
|
616
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
617
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
618
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
path: z.ZodString;
|
|
621
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
622
|
+
}, z.core.$strict>>;
|
|
623
|
+
kind: z.ZodLiteral<"fn">;
|
|
624
|
+
path: z.ZodString;
|
|
625
|
+
key: z.ZodString;
|
|
626
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
627
|
+
actionId: z.ZodString;
|
|
628
|
+
sessionId: z.ZodString;
|
|
629
|
+
turnId: z.ZodString;
|
|
630
|
+
agentId: z.ZodString;
|
|
631
|
+
manifestHash: z.ZodString;
|
|
632
|
+
implementationVersion: z.ZodString;
|
|
633
|
+
input: z.ZodUnknown;
|
|
634
|
+
context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
635
|
+
status: z.ZodEnum<{
|
|
636
|
+
cancelled: "cancelled";
|
|
637
|
+
claimed: "claimed";
|
|
638
|
+
completed: "completed";
|
|
639
|
+
pending: "pending";
|
|
640
|
+
uncertain: "uncertain";
|
|
641
|
+
}>;
|
|
642
|
+
generation: z.ZodNumber;
|
|
643
|
+
claimId: z.ZodNullable<z.ZodString>;
|
|
644
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
645
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
646
|
+
id: z.ZodString;
|
|
647
|
+
path: z.ZodString;
|
|
648
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
649
|
+
}, z.core.$strict>>;
|
|
650
|
+
kind: z.ZodLiteral<"verify">;
|
|
651
|
+
path: z.ZodString;
|
|
652
|
+
key: z.ZodString;
|
|
653
|
+
}, z.core.$strict>]>;
|
|
441
654
|
claimId: z.ZodString;
|
|
442
655
|
generation: z.ZodNumber;
|
|
443
656
|
leaseExpiresAt: z.ZodString;
|
|
@@ -470,6 +683,7 @@ export declare const RegisterExecutorsResponseSchema: z.ZodObject<{
|
|
|
470
683
|
agentId: z.ZodString;
|
|
471
684
|
implementationVersion: z.ZodString;
|
|
472
685
|
rotated: z.ZodBoolean;
|
|
686
|
+
replacedBy: z.ZodOptional<z.ZodLiteral<"different-credential">>;
|
|
473
687
|
}, z.core.$strip>>;
|
|
474
688
|
}, z.core.$strip>;
|
|
475
689
|
export declare const ExecutorSummarySchema: z.ZodObject<{
|
|
@@ -491,13 +705,24 @@ export declare const ListExecutorsResponseSchema: z.ZodObject<{
|
|
|
491
705
|
export type ExecutorRegistration = z.infer<typeof ExecutorRegistrationSchema>;
|
|
492
706
|
export type RegisterExecutorsResponse = z.infer<typeof RegisterExecutorsResponseSchema>;
|
|
493
707
|
export type ExecutorSummary = z.infer<typeof ExecutorSummarySchema>;
|
|
708
|
+
export declare const ProtocolRangeSchema: z.ZodObject<{
|
|
709
|
+
min: z.ZodNumber;
|
|
710
|
+
max: z.ZodNumber;
|
|
711
|
+
features: z.ZodArray<z.ZodString>;
|
|
712
|
+
}, z.core.$strict>;
|
|
494
713
|
export declare const HealthResponseSchema: z.ZodObject<{
|
|
495
714
|
status: z.ZodLiteral<"ok">;
|
|
496
715
|
service: z.ZodString;
|
|
497
|
-
version: z.
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
716
|
+
version: z.ZodString;
|
|
717
|
+
protocol: z.ZodObject<{
|
|
718
|
+
min: z.ZodNumber;
|
|
719
|
+
max: z.ZodNumber;
|
|
720
|
+
features: z.ZodArray<z.ZodString>;
|
|
721
|
+
}, z.core.$strict>;
|
|
722
|
+
coreVersion: z.ZodString;
|
|
723
|
+
hostId: z.ZodString;
|
|
724
|
+
pid: z.ZodNumber;
|
|
725
|
+
}, z.core.$strict>;
|
|
501
726
|
export declare const ReadyResponseSchema: z.ZodObject<{
|
|
502
727
|
status: z.ZodEnum<{
|
|
503
728
|
not_ready: "not_ready";
|
|
@@ -508,3 +733,313 @@ export declare const ReadyResponseSchema: z.ZodObject<{
|
|
|
508
733
|
}, z.core.$strip>;
|
|
509
734
|
export type HealthResponse = z.infer<typeof HealthResponseSchema>;
|
|
510
735
|
export type ReadyResponse = z.infer<typeof ReadyResponseSchema>;
|
|
736
|
+
export declare const ProtocolRejectedResponseSchema: z.ZodObject<{
|
|
737
|
+
status: z.ZodLiteral<"rejected">;
|
|
738
|
+
code: z.ZodLiteral<"protocol_unsupported">;
|
|
739
|
+
protocol: z.ZodObject<{
|
|
740
|
+
min: z.ZodNumber;
|
|
741
|
+
max: z.ZodNumber;
|
|
742
|
+
features: z.ZodArray<z.ZodString>;
|
|
743
|
+
}, z.core.$strict>;
|
|
744
|
+
}, z.core.$strict>;
|
|
745
|
+
export type ProtocolRejectedResponse = z.infer<typeof ProtocolRejectedResponseSchema>;
|
|
746
|
+
export declare const TenantEnvelopeSchema: z.ZodObject<{
|
|
747
|
+
id: z.ZodString;
|
|
748
|
+
name: z.ZodString;
|
|
749
|
+
createdAt: z.ZodString;
|
|
750
|
+
updatedAt: z.ZodString;
|
|
751
|
+
schemaVersion: z.ZodNumber;
|
|
752
|
+
}, z.core.$strict>;
|
|
753
|
+
export type TenantEnvelope = z.infer<typeof TenantEnvelopeSchema>;
|
|
754
|
+
export declare const CreateTenantRequestSchema: z.ZodObject<{
|
|
755
|
+
tenantId: z.ZodString;
|
|
756
|
+
name: z.ZodString;
|
|
757
|
+
principalId: z.ZodString;
|
|
758
|
+
credentialHash: z.ZodString;
|
|
759
|
+
idempotencyKey: z.ZodString;
|
|
760
|
+
studioCredentialHash: z.ZodOptional<z.ZodString>;
|
|
761
|
+
}, z.core.$strict>;
|
|
762
|
+
export type CreateTenantRequest = z.infer<typeof CreateTenantRequestSchema>;
|
|
763
|
+
export declare const AdminTenantSchema: z.ZodObject<{
|
|
764
|
+
id: z.ZodString;
|
|
765
|
+
name: z.ZodNullable<z.ZodString>;
|
|
766
|
+
state: z.ZodEnum<{
|
|
767
|
+
open: "open";
|
|
768
|
+
quarantined: "quarantined";
|
|
769
|
+
}>;
|
|
770
|
+
envelope: z.ZodNullable<z.ZodObject<{
|
|
771
|
+
id: z.ZodString;
|
|
772
|
+
name: z.ZodString;
|
|
773
|
+
createdAt: z.ZodString;
|
|
774
|
+
updatedAt: z.ZodString;
|
|
775
|
+
schemaVersion: z.ZodNumber;
|
|
776
|
+
}, z.core.$strict>>;
|
|
777
|
+
}, z.core.$strict>;
|
|
778
|
+
export type AdminTenant = z.infer<typeof AdminTenantSchema>;
|
|
779
|
+
export declare const QuarantineSchema: z.ZodObject<{
|
|
780
|
+
code: z.ZodEnum<{
|
|
781
|
+
corrupt: "corrupt";
|
|
782
|
+
"envelope-invalid": "envelope-invalid";
|
|
783
|
+
"kek-missing": "kek-missing";
|
|
784
|
+
"migration-failed": "migration-failed";
|
|
785
|
+
"open-failed": "open-failed";
|
|
786
|
+
"open-timeout": "open-timeout";
|
|
787
|
+
"schema-too-new": "schema-too-new";
|
|
788
|
+
}>;
|
|
789
|
+
message: z.ZodString;
|
|
790
|
+
repair: z.ZodString;
|
|
791
|
+
}, z.core.$strict>;
|
|
792
|
+
export type QuarantineInfo = z.infer<typeof QuarantineSchema>;
|
|
793
|
+
export declare const AdminTenantStatusSchema: z.ZodObject<{
|
|
794
|
+
id: z.ZodString;
|
|
795
|
+
name: z.ZodNullable<z.ZodString>;
|
|
796
|
+
state: z.ZodEnum<{
|
|
797
|
+
open: "open";
|
|
798
|
+
quarantined: "quarantined";
|
|
799
|
+
}>;
|
|
800
|
+
envelope: z.ZodNullable<z.ZodObject<{
|
|
801
|
+
id: z.ZodString;
|
|
802
|
+
name: z.ZodString;
|
|
803
|
+
createdAt: z.ZodString;
|
|
804
|
+
updatedAt: z.ZodString;
|
|
805
|
+
schemaVersion: z.ZodNumber;
|
|
806
|
+
}, z.core.$strict>>;
|
|
807
|
+
quarantine: z.ZodOptional<z.ZodObject<{
|
|
808
|
+
code: z.ZodEnum<{
|
|
809
|
+
corrupt: "corrupt";
|
|
810
|
+
"envelope-invalid": "envelope-invalid";
|
|
811
|
+
"kek-missing": "kek-missing";
|
|
812
|
+
"migration-failed": "migration-failed";
|
|
813
|
+
"open-failed": "open-failed";
|
|
814
|
+
"open-timeout": "open-timeout";
|
|
815
|
+
"schema-too-new": "schema-too-new";
|
|
816
|
+
}>;
|
|
817
|
+
message: z.ZodString;
|
|
818
|
+
repair: z.ZodString;
|
|
819
|
+
}, z.core.$strict>>;
|
|
820
|
+
}, z.core.$strict>;
|
|
821
|
+
export type AdminTenantStatus = z.infer<typeof AdminTenantStatusSchema>;
|
|
822
|
+
export declare const HostAggregateSchema: z.ZodObject<{
|
|
823
|
+
runningSessions: z.ZodNumber;
|
|
824
|
+
connectedExecutors: z.ZodNumber;
|
|
825
|
+
pendingActions: z.ZodNumber;
|
|
826
|
+
uncertainEffects: z.ZodNumber;
|
|
827
|
+
outboxDepth: z.ZodOptional<z.ZodNumber>;
|
|
828
|
+
relayLagMs: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
}, z.core.$strict>;
|
|
830
|
+
export type HostAggregate = z.infer<typeof HostAggregateSchema>;
|
|
831
|
+
export declare const AdminHostStatusSchema: z.ZodObject<{
|
|
832
|
+
hostId: z.ZodString;
|
|
833
|
+
url: z.ZodString;
|
|
834
|
+
pid: z.ZodNumber;
|
|
835
|
+
version: z.ZodString;
|
|
836
|
+
protocol: z.ZodObject<{
|
|
837
|
+
min: z.ZodNumber;
|
|
838
|
+
max: z.ZodNumber;
|
|
839
|
+
features: z.ZodArray<z.ZodString>;
|
|
840
|
+
}, z.core.$strict>;
|
|
841
|
+
tenants: z.ZodArray<z.ZodObject<{
|
|
842
|
+
id: z.ZodString;
|
|
843
|
+
name: z.ZodNullable<z.ZodString>;
|
|
844
|
+
state: z.ZodEnum<{
|
|
845
|
+
open: "open";
|
|
846
|
+
quarantined: "quarantined";
|
|
847
|
+
}>;
|
|
848
|
+
envelope: z.ZodNullable<z.ZodObject<{
|
|
849
|
+
id: z.ZodString;
|
|
850
|
+
name: z.ZodString;
|
|
851
|
+
createdAt: z.ZodString;
|
|
852
|
+
updatedAt: z.ZodString;
|
|
853
|
+
schemaVersion: z.ZodNumber;
|
|
854
|
+
}, z.core.$strict>>;
|
|
855
|
+
}, z.core.$strict>>;
|
|
856
|
+
aggregate: z.ZodObject<{
|
|
857
|
+
runningSessions: z.ZodNumber;
|
|
858
|
+
connectedExecutors: z.ZodNumber;
|
|
859
|
+
pendingActions: z.ZodNumber;
|
|
860
|
+
uncertainEffects: z.ZodNumber;
|
|
861
|
+
outboxDepth: z.ZodOptional<z.ZodNumber>;
|
|
862
|
+
relayLagMs: z.ZodOptional<z.ZodNumber>;
|
|
863
|
+
}, z.core.$strict>;
|
|
864
|
+
}, z.core.$strict>;
|
|
865
|
+
export type AdminHostStatus = z.infer<typeof AdminHostStatusSchema>;
|
|
866
|
+
/** Shared Admin API status (D§4.1). OSS fills `host`; Cloud omits it. */
|
|
867
|
+
export declare const AdminStatusSchema: z.ZodObject<{
|
|
868
|
+
service: z.ZodString;
|
|
869
|
+
version: z.ZodString;
|
|
870
|
+
protocol: z.ZodObject<{
|
|
871
|
+
min: z.ZodNumber;
|
|
872
|
+
max: z.ZodNumber;
|
|
873
|
+
features: z.ZodArray<z.ZodString>;
|
|
874
|
+
}, z.core.$strict>;
|
|
875
|
+
tenants: z.ZodArray<z.ZodObject<{
|
|
876
|
+
id: z.ZodString;
|
|
877
|
+
name: z.ZodNullable<z.ZodString>;
|
|
878
|
+
state: z.ZodEnum<{
|
|
879
|
+
open: "open";
|
|
880
|
+
quarantined: "quarantined";
|
|
881
|
+
}>;
|
|
882
|
+
envelope: z.ZodNullable<z.ZodObject<{
|
|
883
|
+
id: z.ZodString;
|
|
884
|
+
name: z.ZodString;
|
|
885
|
+
createdAt: z.ZodString;
|
|
886
|
+
updatedAt: z.ZodString;
|
|
887
|
+
schemaVersion: z.ZodNumber;
|
|
888
|
+
}, z.core.$strict>>;
|
|
889
|
+
}, z.core.$strict>>;
|
|
890
|
+
aggregate: z.ZodObject<{
|
|
891
|
+
runningSessions: z.ZodNumber;
|
|
892
|
+
connectedExecutors: z.ZodNumber;
|
|
893
|
+
pendingActions: z.ZodNumber;
|
|
894
|
+
uncertainEffects: z.ZodNumber;
|
|
895
|
+
outboxDepth: z.ZodOptional<z.ZodNumber>;
|
|
896
|
+
relayLagMs: z.ZodOptional<z.ZodNumber>;
|
|
897
|
+
}, z.core.$strict>;
|
|
898
|
+
host: z.ZodOptional<z.ZodObject<{
|
|
899
|
+
hostId: z.ZodString;
|
|
900
|
+
url: z.ZodString;
|
|
901
|
+
pid: z.ZodNumber;
|
|
902
|
+
}, z.core.$strict>>;
|
|
903
|
+
}, z.core.$strict>;
|
|
904
|
+
export type AdminStatus = z.infer<typeof AdminStatusSchema>;
|
|
905
|
+
export declare const ProjectLinkFileSchema: z.ZodObject<{
|
|
906
|
+
format: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
907
|
+
hostUrl: z.ZodString;
|
|
908
|
+
hostId: z.ZodString;
|
|
909
|
+
tenantId: z.ZodString;
|
|
910
|
+
}, z.core.$loose>;
|
|
911
|
+
export type ProjectLinkFile = z.infer<typeof ProjectLinkFileSchema>;
|
|
912
|
+
export declare const ProjectCredentialsFileSchema: z.ZodObject<{
|
|
913
|
+
format: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
914
|
+
applicationKey: z.ZodString;
|
|
915
|
+
principalId: z.ZodString;
|
|
916
|
+
}, z.core.$loose>;
|
|
917
|
+
export type ProjectCredentialsFile = z.infer<typeof ProjectCredentialsFileSchema>;
|
|
918
|
+
export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
919
|
+
configured: z.ZodLiteral<false>;
|
|
920
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
921
|
+
configured: z.ZodLiteral<true>;
|
|
922
|
+
provider: z.ZodString;
|
|
923
|
+
model: z.ZodString;
|
|
924
|
+
authType: z.ZodEnum<{
|
|
925
|
+
api_key: "api_key";
|
|
926
|
+
oauth: "oauth";
|
|
927
|
+
}>;
|
|
928
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
929
|
+
}, z.core.$strict>]>;
|
|
930
|
+
export declare const TenantStatusSchema: z.ZodObject<{
|
|
931
|
+
tenant: z.ZodObject<{
|
|
932
|
+
id: z.ZodString;
|
|
933
|
+
name: z.ZodString;
|
|
934
|
+
createdAt: z.ZodString;
|
|
935
|
+
updatedAt: z.ZodString;
|
|
936
|
+
schemaVersion: z.ZodNumber;
|
|
937
|
+
}, z.core.$strict>;
|
|
938
|
+
path: z.ZodString;
|
|
939
|
+
checks: z.ZodObject<{
|
|
940
|
+
store: z.ZodBoolean;
|
|
941
|
+
scheduler: z.ZodBoolean;
|
|
942
|
+
model: z.ZodBoolean;
|
|
943
|
+
executors: z.ZodBoolean;
|
|
944
|
+
schema: z.ZodBoolean;
|
|
945
|
+
}, z.core.$strict>;
|
|
946
|
+
model: z.ZodUnion<readonly [z.ZodObject<{
|
|
947
|
+
configured: z.ZodLiteral<false>;
|
|
948
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
949
|
+
configured: z.ZodLiteral<true>;
|
|
950
|
+
provider: z.ZodString;
|
|
951
|
+
model: z.ZodString;
|
|
952
|
+
authType: z.ZodEnum<{
|
|
953
|
+
api_key: "api_key";
|
|
954
|
+
oauth: "oauth";
|
|
955
|
+
}>;
|
|
956
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
957
|
+
}, z.core.$strict>]>;
|
|
958
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
959
|
+
agentId: z.ZodString;
|
|
960
|
+
registered: z.ZodBoolean;
|
|
961
|
+
connected: z.ZodBoolean;
|
|
962
|
+
}, z.core.$strict>>;
|
|
963
|
+
counts: z.ZodObject<{
|
|
964
|
+
sessions: z.ZodNumber;
|
|
965
|
+
runningSessions: z.ZodNumber;
|
|
966
|
+
pendingActions: z.ZodNumber;
|
|
967
|
+
uncertainEffects: z.ZodNumber;
|
|
968
|
+
}, z.core.$strict>;
|
|
969
|
+
sandbox: z.ZodObject<{
|
|
970
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
971
|
+
retained: z.ZodNumber;
|
|
972
|
+
}, z.core.$strict>;
|
|
973
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
974
|
+
stuckInvocations: z.ZodArray<z.ZodObject<{
|
|
975
|
+
id: z.ZodString;
|
|
976
|
+
status: z.ZodString;
|
|
977
|
+
service: z.ZodString;
|
|
978
|
+
handler: z.ZodString;
|
|
979
|
+
key: z.ZodString;
|
|
980
|
+
retryCount: z.ZodNumber;
|
|
981
|
+
lastFailure: z.ZodOptional<z.ZodString>;
|
|
982
|
+
modifiedAt: z.ZodOptional<z.ZodString>;
|
|
983
|
+
}, z.core.$strict>>;
|
|
984
|
+
error: z.ZodOptional<z.ZodString>;
|
|
985
|
+
}, z.core.$strict>>;
|
|
986
|
+
streams: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
reachable: z.ZodBoolean;
|
|
988
|
+
basin: z.ZodObject<{
|
|
989
|
+
ready: z.ZodBoolean;
|
|
990
|
+
failures: z.ZodNumber;
|
|
991
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
992
|
+
}, z.core.$strict>;
|
|
993
|
+
outbox: z.ZodObject<{
|
|
994
|
+
depth: z.ZodNumber;
|
|
995
|
+
oldestAgeMs: z.ZodNullable<z.ZodNumber>;
|
|
996
|
+
}, z.core.$strict>;
|
|
997
|
+
relayLagMs: z.ZodNumber;
|
|
998
|
+
collectionPending: z.ZodBoolean;
|
|
999
|
+
}, z.core.$strict>>;
|
|
1000
|
+
}, z.core.$strict>;
|
|
1001
|
+
export type TenantStatus = z.infer<typeof TenantStatusSchema>;
|
|
1002
|
+
export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
1003
|
+
requestId: z.ZodString;
|
|
1004
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
1005
|
+
backend: z.ZodEnum<{
|
|
1006
|
+
auto: "auto";
|
|
1007
|
+
virtual: "virtual";
|
|
1008
|
+
}>;
|
|
1009
|
+
}, z.core.$strict>>;
|
|
1010
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
1011
|
+
provider: z.ZodString;
|
|
1012
|
+
model: z.ZodString;
|
|
1013
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1015
|
+
type: z.ZodLiteral<"api_key">;
|
|
1016
|
+
key: z.ZodString;
|
|
1017
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1018
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1019
|
+
type: z.ZodLiteral<"oauth">;
|
|
1020
|
+
refresh: z.ZodString;
|
|
1021
|
+
access: z.ZodString;
|
|
1022
|
+
expires: z.ZodNumber;
|
|
1023
|
+
}, z.core.$loose>], "type">;
|
|
1024
|
+
}, z.core.$strict>>;
|
|
1025
|
+
fixtureModel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1026
|
+
}, z.core.$strict>;
|
|
1027
|
+
export type SeedTenantConfigRequest = z.infer<typeof SeedTenantConfigRequestSchema>;
|
|
1028
|
+
export declare const SeedTenantConfigResponseSchema: z.ZodObject<{
|
|
1029
|
+
applied: z.ZodArray<z.ZodString>;
|
|
1030
|
+
kept: z.ZodArray<z.ZodString>;
|
|
1031
|
+
}, z.core.$strict>;
|
|
1032
|
+
export type SeedTenantConfigResponse = z.infer<typeof SeedTenantConfigResponseSchema>;
|
|
1033
|
+
export declare const ResetTenantRequestSchema: z.ZodObject<{
|
|
1034
|
+
requestId: z.ZodString;
|
|
1035
|
+
scope: z.ZodEnum<{
|
|
1036
|
+
all: "all";
|
|
1037
|
+
sandboxes: "sandboxes";
|
|
1038
|
+
sessions: "sessions";
|
|
1039
|
+
}>;
|
|
1040
|
+
activeWork: z.ZodEnum<{
|
|
1041
|
+
cancel: "cancel";
|
|
1042
|
+
drain: "drain";
|
|
1043
|
+
}>;
|
|
1044
|
+
}, z.core.$strict>;
|
|
1045
|
+
export type ResetTenantRequest = z.infer<typeof ResetTenantRequestSchema>;
|