@trigger.dev/core 4.4.4 → 4.4.5
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/dist/commonjs/v3/errors.d.ts +6 -0
- package/dist/commonjs/v3/errors.js +72 -11
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
- package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/commonjs/v3/otel/utils.js +30 -5
- package/dist/commonjs/v3/otel/utils.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +3 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +17 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +2 -0
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +12 -0
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js +1 -1
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +880 -10
- package/dist/commonjs/v3/schemas/api.js +205 -1
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +5 -0
- package/dist/commonjs/v3/schemas/common.d.ts +26 -0
- package/dist/commonjs/v3/schemas/common.js +2 -0
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +146 -0
- package/dist/commonjs/v3/schemas/query.d.ts +2 -2
- package/dist/commonjs/v3/schemas/runEngine.d.ts +12 -0
- package/dist/commonjs/v3/schemas/runEngine.js +1 -0
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +22 -0
- package/dist/commonjs/v3/schemas/schemas.js +1 -0
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/semanticInternalAttributes.d.ts +1 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js +1 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/commonjs/v3/taskContext/index.js +1 -0
- package/dist/commonjs/v3/taskContext/index.js.map +1 -1
- package/dist/commonjs/v3/tracer.js +1 -4
- package/dist/commonjs/v3/tracer.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/errors.d.ts +6 -0
- package/dist/esm/v3/errors.js +70 -11
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
- package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
- package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/esm/v3/otel/utils.js +30 -5
- package/dist/esm/v3/otel/utils.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +3 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +17 -0
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +2 -0
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +12 -0
- package/dist/esm/v3/runtime/sharedRuntimeManager.js +1 -1
- package/dist/esm/v3/runtime/sharedRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +880 -10
- package/dist/esm/v3/schemas/api.js +203 -0
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/checkpoints.d.ts +5 -0
- package/dist/esm/v3/schemas/common.d.ts +26 -0
- package/dist/esm/v3/schemas/common.js +2 -0
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +146 -0
- package/dist/esm/v3/schemas/query.d.ts +2 -2
- package/dist/esm/v3/schemas/runEngine.d.ts +12 -0
- package/dist/esm/v3/schemas/runEngine.js +1 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +22 -0
- package/dist/esm/v3/schemas/schemas.js +1 -0
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/semanticInternalAttributes.d.ts +1 -0
- package/dist/esm/v3/semanticInternalAttributes.js +1 -0
- package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/esm/v3/taskContext/index.js +1 -0
- package/dist/esm/v3/taskContext/index.js.map +1 -1
- package/dist/esm/v3/tracer.js +2 -5
- package/dist/esm/v3/tracer.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -3998,6 +3998,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3998
3998
|
id: z.ZodString;
|
|
3999
3999
|
friendlyId: z.ZodString;
|
|
4000
4000
|
isTest: z.ZodBoolean;
|
|
4001
|
+
isReplay: z.ZodDefault<z.ZodBoolean>;
|
|
4001
4002
|
machine: z.ZodObject<{
|
|
4002
4003
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
4003
4004
|
cpu: z.ZodNumber;
|
|
@@ -4036,6 +4037,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4036
4037
|
}, "strip", z.ZodTypeAny, {
|
|
4037
4038
|
id: string;
|
|
4038
4039
|
isTest: boolean;
|
|
4040
|
+
isReplay: boolean;
|
|
4039
4041
|
machine: {
|
|
4040
4042
|
cpu: number;
|
|
4041
4043
|
memory: number;
|
|
@@ -4065,6 +4067,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4065
4067
|
friendlyId: string;
|
|
4066
4068
|
attemptNumber: number;
|
|
4067
4069
|
masterQueue: string;
|
|
4070
|
+
isReplay?: boolean | undefined;
|
|
4068
4071
|
annotations?: {
|
|
4069
4072
|
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4070
4073
|
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
@@ -4113,6 +4116,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4113
4116
|
run: {
|
|
4114
4117
|
id: string;
|
|
4115
4118
|
isTest: boolean;
|
|
4119
|
+
isReplay: boolean;
|
|
4116
4120
|
machine: {
|
|
4117
4121
|
cpu: number;
|
|
4118
4122
|
memory: number;
|
|
@@ -4211,6 +4215,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4211
4215
|
friendlyId: string;
|
|
4212
4216
|
attemptNumber: number;
|
|
4213
4217
|
masterQueue: string;
|
|
4218
|
+
isReplay?: boolean | undefined;
|
|
4214
4219
|
annotations?: {
|
|
4215
4220
|
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4216
4221
|
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
@@ -4291,6 +4296,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4291
4296
|
run: {
|
|
4292
4297
|
id: string;
|
|
4293
4298
|
isTest: boolean;
|
|
4299
|
+
isReplay: boolean;
|
|
4294
4300
|
machine: {
|
|
4295
4301
|
cpu: number;
|
|
4296
4302
|
memory: number;
|
|
@@ -4391,6 +4397,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
4391
4397
|
friendlyId: string;
|
|
4392
4398
|
attemptNumber: number;
|
|
4393
4399
|
masterQueue: string;
|
|
4400
|
+
isReplay?: boolean | undefined;
|
|
4394
4401
|
annotations?: {
|
|
4395
4402
|
triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
|
|
4396
4403
|
triggerAction: "trigger" | (string & {}) | "replay" | "test";
|
|
@@ -7058,6 +7065,54 @@ export declare const CreateInputStreamWaitpointResponseBody: z.ZodObject<{
|
|
|
7058
7065
|
waitpointId: string;
|
|
7059
7066
|
}>;
|
|
7060
7067
|
export type CreateInputStreamWaitpointResponseBody = z.infer<typeof CreateInputStreamWaitpointResponseBody>;
|
|
7068
|
+
/**
|
|
7069
|
+
* Create a run-scoped waitpoint that completes when the next record lands on
|
|
7070
|
+
* a Session channel (`.in` or `.out`). Mirrors `CreateInputStreamWaitpointRequestBody`
|
|
7071
|
+
* but keyed by `{sessionId, io}` instead of `{runId, streamId}`. The run is
|
|
7072
|
+
* still the thing being suspended — Session only supplies the trigger source.
|
|
7073
|
+
*/
|
|
7074
|
+
export declare const CreateSessionStreamWaitpointRequestBody: z.ZodObject<{
|
|
7075
|
+
/** Session friendlyId (`session_*`) or user-supplied externalId. */
|
|
7076
|
+
session: z.ZodString;
|
|
7077
|
+
io: z.ZodEnum<["out", "in"]>;
|
|
7078
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
7079
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
7080
|
+
idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
|
|
7081
|
+
tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7082
|
+
/**
|
|
7083
|
+
* Last S2 sequence number the client has seen on this session channel.
|
|
7084
|
+
* Used to catch data that arrived before `.wait()` was called.
|
|
7085
|
+
*/
|
|
7086
|
+
lastSeqNum: z.ZodOptional<z.ZodNumber>;
|
|
7087
|
+
}, "strip", z.ZodTypeAny, {
|
|
7088
|
+
session: string;
|
|
7089
|
+
io: "in" | "out";
|
|
7090
|
+
tags?: string | string[] | undefined;
|
|
7091
|
+
idempotencyKey?: string | undefined;
|
|
7092
|
+
idempotencyKeyTTL?: string | undefined;
|
|
7093
|
+
timeout?: string | undefined;
|
|
7094
|
+
lastSeqNum?: number | undefined;
|
|
7095
|
+
}, {
|
|
7096
|
+
session: string;
|
|
7097
|
+
io: "in" | "out";
|
|
7098
|
+
tags?: string | string[] | undefined;
|
|
7099
|
+
idempotencyKey?: string | undefined;
|
|
7100
|
+
idempotencyKeyTTL?: string | undefined;
|
|
7101
|
+
timeout?: string | undefined;
|
|
7102
|
+
lastSeqNum?: number | undefined;
|
|
7103
|
+
}>;
|
|
7104
|
+
export type CreateSessionStreamWaitpointRequestBody = z.infer<typeof CreateSessionStreamWaitpointRequestBody>;
|
|
7105
|
+
export declare const CreateSessionStreamWaitpointResponseBody: z.ZodObject<{
|
|
7106
|
+
waitpointId: z.ZodString;
|
|
7107
|
+
isCached: z.ZodBoolean;
|
|
7108
|
+
}, "strip", z.ZodTypeAny, {
|
|
7109
|
+
isCached: boolean;
|
|
7110
|
+
waitpointId: string;
|
|
7111
|
+
}, {
|
|
7112
|
+
isCached: boolean;
|
|
7113
|
+
waitpointId: string;
|
|
7114
|
+
}>;
|
|
7115
|
+
export type CreateSessionStreamWaitpointResponseBody = z.infer<typeof CreateSessionStreamWaitpointResponseBody>;
|
|
7061
7116
|
export declare const waitpointTokenStatuses: readonly ["WAITING", "COMPLETED", "TIMED_OUT"];
|
|
7062
7117
|
export declare const WaitpointTokenStatus: z.ZodEnum<["WAITING", "COMPLETED", "TIMED_OUT"]>;
|
|
7063
7118
|
export type WaitpointTokenStatus = z.infer<typeof WaitpointTokenStatus>;
|
|
@@ -7185,6 +7240,821 @@ export declare const CompleteWaitpointTokenRequestBody: z.ZodObject<{
|
|
|
7185
7240
|
data?: any;
|
|
7186
7241
|
}>;
|
|
7187
7242
|
export type CompleteWaitpointTokenRequestBody = z.infer<typeof CompleteWaitpointTokenRequestBody>;
|
|
7243
|
+
/**
|
|
7244
|
+
* Trigger config persisted on a Session. Drives every run the session
|
|
7245
|
+
* schedules — `basePayload` is the customer's wire payload (for
|
|
7246
|
+
* chat.agent: `{ chatId, ...clientData }`), runtime fields like
|
|
7247
|
+
* `trigger: "preload" | "trigger"` are merged on top per-call by the
|
|
7248
|
+
* server's trigger machinery.
|
|
7249
|
+
*/
|
|
7250
|
+
export declare const SessionTriggerConfig: z.ZodObject<{
|
|
7251
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7252
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7253
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7254
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7255
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7256
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7257
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7258
|
+
}, "strip", z.ZodTypeAny, {
|
|
7259
|
+
basePayload: Record<string, unknown>;
|
|
7260
|
+
tags?: string[] | undefined;
|
|
7261
|
+
maxAttempts?: number | undefined;
|
|
7262
|
+
queue?: string | undefined;
|
|
7263
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7264
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7265
|
+
}, {
|
|
7266
|
+
basePayload: Record<string, unknown>;
|
|
7267
|
+
tags?: string[] | undefined;
|
|
7268
|
+
maxAttempts?: number | undefined;
|
|
7269
|
+
queue?: string | undefined;
|
|
7270
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7271
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7272
|
+
}>;
|
|
7273
|
+
export type SessionTriggerConfig = z.infer<typeof SessionTriggerConfig>;
|
|
7274
|
+
/**
|
|
7275
|
+
* Request body for `POST /api/v1/sessions`. Creates a Session and
|
|
7276
|
+
* triggers its first run. Sessions are task-bound: `taskIdentifier` and
|
|
7277
|
+
* `triggerConfig` are required, and re-runs scheduled by the server
|
|
7278
|
+
* (after run termination, after `end-and-continue`) reuse the same
|
|
7279
|
+
* config.
|
|
7280
|
+
*/
|
|
7281
|
+
export declare const CreateSessionRequestBody: z.ZodObject<{
|
|
7282
|
+
/** Plain string discriminator — e.g. `"chat.agent"`. Not validated against an enum on the server. */
|
|
7283
|
+
type: z.ZodString;
|
|
7284
|
+
/** User-supplied idempotency key. Unique per environment. Empty strings are rejected. */
|
|
7285
|
+
externalId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7286
|
+
/** Task this session triggers runs against. Required. */
|
|
7287
|
+
taskIdentifier: z.ZodString;
|
|
7288
|
+
/** Trigger config used for every run scheduled by this session. */
|
|
7289
|
+
triggerConfig: z.ZodObject<{
|
|
7290
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7291
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7292
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7293
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7294
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7295
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7296
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7297
|
+
}, "strip", z.ZodTypeAny, {
|
|
7298
|
+
basePayload: Record<string, unknown>;
|
|
7299
|
+
tags?: string[] | undefined;
|
|
7300
|
+
maxAttempts?: number | undefined;
|
|
7301
|
+
queue?: string | undefined;
|
|
7302
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7303
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7304
|
+
}, {
|
|
7305
|
+
basePayload: Record<string, unknown>;
|
|
7306
|
+
tags?: string[] | undefined;
|
|
7307
|
+
maxAttempts?: number | undefined;
|
|
7308
|
+
queue?: string | undefined;
|
|
7309
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7310
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7311
|
+
}>;
|
|
7312
|
+
/** Up to 10 tags for dashboard filtering. */
|
|
7313
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7314
|
+
/** Arbitrary JSON metadata. */
|
|
7315
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7316
|
+
/** Absolute expiry timestamp for retention. */
|
|
7317
|
+
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
7318
|
+
}, "strip", z.ZodTypeAny, {
|
|
7319
|
+
type: string;
|
|
7320
|
+
taskIdentifier: string;
|
|
7321
|
+
triggerConfig: {
|
|
7322
|
+
basePayload: Record<string, unknown>;
|
|
7323
|
+
tags?: string[] | undefined;
|
|
7324
|
+
maxAttempts?: number | undefined;
|
|
7325
|
+
queue?: string | undefined;
|
|
7326
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7327
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7328
|
+
};
|
|
7329
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7330
|
+
tags?: string[] | undefined;
|
|
7331
|
+
externalId?: string | undefined;
|
|
7332
|
+
expiresAt?: Date | undefined;
|
|
7333
|
+
}, {
|
|
7334
|
+
type: string;
|
|
7335
|
+
taskIdentifier: string;
|
|
7336
|
+
triggerConfig: {
|
|
7337
|
+
basePayload: Record<string, unknown>;
|
|
7338
|
+
tags?: string[] | undefined;
|
|
7339
|
+
maxAttempts?: number | undefined;
|
|
7340
|
+
queue?: string | undefined;
|
|
7341
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7342
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7343
|
+
};
|
|
7344
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7345
|
+
tags?: string[] | undefined;
|
|
7346
|
+
externalId?: string | undefined;
|
|
7347
|
+
expiresAt?: Date | undefined;
|
|
7348
|
+
}>;
|
|
7349
|
+
export type CreateSessionRequestBody = z.infer<typeof CreateSessionRequestBody>;
|
|
7350
|
+
export declare const SessionItem: z.ZodObject<{
|
|
7351
|
+
id: z.ZodString;
|
|
7352
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7353
|
+
type: z.ZodString;
|
|
7354
|
+
taskIdentifier: z.ZodString;
|
|
7355
|
+
/**
|
|
7356
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7357
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7358
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7359
|
+
*/
|
|
7360
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7361
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7362
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7363
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7364
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7365
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7366
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7367
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7368
|
+
}, "strip", z.ZodTypeAny, {
|
|
7369
|
+
basePayload: Record<string, unknown>;
|
|
7370
|
+
tags?: string[] | undefined;
|
|
7371
|
+
maxAttempts?: number | undefined;
|
|
7372
|
+
queue?: string | undefined;
|
|
7373
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7374
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7375
|
+
}, {
|
|
7376
|
+
basePayload: Record<string, unknown>;
|
|
7377
|
+
tags?: string[] | undefined;
|
|
7378
|
+
maxAttempts?: number | undefined;
|
|
7379
|
+
queue?: string | undefined;
|
|
7380
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7381
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7382
|
+
}>>;
|
|
7383
|
+
/**
|
|
7384
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7385
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7386
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7387
|
+
* from the underlying cuid before returning.
|
|
7388
|
+
*/
|
|
7389
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7390
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7391
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7392
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7393
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7394
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7395
|
+
createdAt: z.ZodDate;
|
|
7396
|
+
updatedAt: z.ZodDate;
|
|
7397
|
+
}, "strip", z.ZodTypeAny, {
|
|
7398
|
+
type: string;
|
|
7399
|
+
metadata: Record<string, unknown> | null;
|
|
7400
|
+
id: string;
|
|
7401
|
+
tags: string[];
|
|
7402
|
+
createdAt: Date;
|
|
7403
|
+
taskIdentifier: string;
|
|
7404
|
+
externalId: string | null;
|
|
7405
|
+
updatedAt: Date;
|
|
7406
|
+
expiresAt: Date | null;
|
|
7407
|
+
closedAt: Date | null;
|
|
7408
|
+
closedReason: string | null;
|
|
7409
|
+
triggerConfig?: {
|
|
7410
|
+
basePayload: Record<string, unknown>;
|
|
7411
|
+
tags?: string[] | undefined;
|
|
7412
|
+
maxAttempts?: number | undefined;
|
|
7413
|
+
queue?: string | undefined;
|
|
7414
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7415
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7416
|
+
} | undefined;
|
|
7417
|
+
currentRunId?: string | null | undefined;
|
|
7418
|
+
}, {
|
|
7419
|
+
type: string;
|
|
7420
|
+
metadata: Record<string, unknown> | null;
|
|
7421
|
+
id: string;
|
|
7422
|
+
tags: string[];
|
|
7423
|
+
createdAt: Date;
|
|
7424
|
+
taskIdentifier: string;
|
|
7425
|
+
externalId: string | null;
|
|
7426
|
+
updatedAt: Date;
|
|
7427
|
+
expiresAt: Date | null;
|
|
7428
|
+
closedAt: Date | null;
|
|
7429
|
+
closedReason: string | null;
|
|
7430
|
+
triggerConfig?: {
|
|
7431
|
+
basePayload: Record<string, unknown>;
|
|
7432
|
+
tags?: string[] | undefined;
|
|
7433
|
+
maxAttempts?: number | undefined;
|
|
7434
|
+
queue?: string | undefined;
|
|
7435
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7436
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7437
|
+
} | undefined;
|
|
7438
|
+
currentRunId?: string | null | undefined;
|
|
7439
|
+
}>;
|
|
7440
|
+
export type SessionItem = z.infer<typeof SessionItem>;
|
|
7441
|
+
export declare const CreatedSessionResponseBody: z.ZodObject<{
|
|
7442
|
+
id: z.ZodString;
|
|
7443
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7444
|
+
type: z.ZodString;
|
|
7445
|
+
taskIdentifier: z.ZodString;
|
|
7446
|
+
/**
|
|
7447
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7448
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7449
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7450
|
+
*/
|
|
7451
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7452
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7453
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7454
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7455
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7456
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7457
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7458
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7459
|
+
}, "strip", z.ZodTypeAny, {
|
|
7460
|
+
basePayload: Record<string, unknown>;
|
|
7461
|
+
tags?: string[] | undefined;
|
|
7462
|
+
maxAttempts?: number | undefined;
|
|
7463
|
+
queue?: string | undefined;
|
|
7464
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7465
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7466
|
+
}, {
|
|
7467
|
+
basePayload: Record<string, unknown>;
|
|
7468
|
+
tags?: string[] | undefined;
|
|
7469
|
+
maxAttempts?: number | undefined;
|
|
7470
|
+
queue?: string | undefined;
|
|
7471
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7472
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7473
|
+
}>>;
|
|
7474
|
+
/**
|
|
7475
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7476
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7477
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7478
|
+
* from the underlying cuid before returning.
|
|
7479
|
+
*/
|
|
7480
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7481
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7482
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7483
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7484
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7485
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7486
|
+
createdAt: z.ZodDate;
|
|
7487
|
+
updatedAt: z.ZodDate;
|
|
7488
|
+
} & {
|
|
7489
|
+
/** Friendly id of the first run triggered alongside session create. */
|
|
7490
|
+
runId: z.ZodString;
|
|
7491
|
+
/** Session-scoped public access token: `read:sessions:{ext} + write:sessions:{ext}`. */
|
|
7492
|
+
publicAccessToken: z.ZodString;
|
|
7493
|
+
/** True if the session existed already (idempotent upsert), false if newly created. */
|
|
7494
|
+
isCached: z.ZodBoolean;
|
|
7495
|
+
}, "strip", z.ZodTypeAny, {
|
|
7496
|
+
type: string;
|
|
7497
|
+
metadata: Record<string, unknown> | null;
|
|
7498
|
+
id: string;
|
|
7499
|
+
tags: string[];
|
|
7500
|
+
createdAt: Date;
|
|
7501
|
+
taskIdentifier: string;
|
|
7502
|
+
externalId: string | null;
|
|
7503
|
+
updatedAt: Date;
|
|
7504
|
+
runId: string;
|
|
7505
|
+
isCached: boolean;
|
|
7506
|
+
expiresAt: Date | null;
|
|
7507
|
+
closedAt: Date | null;
|
|
7508
|
+
closedReason: string | null;
|
|
7509
|
+
publicAccessToken: string;
|
|
7510
|
+
triggerConfig?: {
|
|
7511
|
+
basePayload: Record<string, unknown>;
|
|
7512
|
+
tags?: string[] | undefined;
|
|
7513
|
+
maxAttempts?: number | undefined;
|
|
7514
|
+
queue?: string | undefined;
|
|
7515
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7516
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7517
|
+
} | undefined;
|
|
7518
|
+
currentRunId?: string | null | undefined;
|
|
7519
|
+
}, {
|
|
7520
|
+
type: string;
|
|
7521
|
+
metadata: Record<string, unknown> | null;
|
|
7522
|
+
id: string;
|
|
7523
|
+
tags: string[];
|
|
7524
|
+
createdAt: Date;
|
|
7525
|
+
taskIdentifier: string;
|
|
7526
|
+
externalId: string | null;
|
|
7527
|
+
updatedAt: Date;
|
|
7528
|
+
runId: string;
|
|
7529
|
+
isCached: boolean;
|
|
7530
|
+
expiresAt: Date | null;
|
|
7531
|
+
closedAt: Date | null;
|
|
7532
|
+
closedReason: string | null;
|
|
7533
|
+
publicAccessToken: string;
|
|
7534
|
+
triggerConfig?: {
|
|
7535
|
+
basePayload: Record<string, unknown>;
|
|
7536
|
+
tags?: string[] | undefined;
|
|
7537
|
+
maxAttempts?: number | undefined;
|
|
7538
|
+
queue?: string | undefined;
|
|
7539
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7540
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7541
|
+
} | undefined;
|
|
7542
|
+
currentRunId?: string | null | undefined;
|
|
7543
|
+
}>;
|
|
7544
|
+
export type CreatedSessionResponseBody = z.infer<typeof CreatedSessionResponseBody>;
|
|
7545
|
+
export declare const RetrieveSessionResponseBody: z.ZodObject<{
|
|
7546
|
+
id: z.ZodString;
|
|
7547
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7548
|
+
type: z.ZodString;
|
|
7549
|
+
taskIdentifier: z.ZodString;
|
|
7550
|
+
/**
|
|
7551
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7552
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7553
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7554
|
+
*/
|
|
7555
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7556
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7557
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7558
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7559
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7560
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7561
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7562
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7563
|
+
}, "strip", z.ZodTypeAny, {
|
|
7564
|
+
basePayload: Record<string, unknown>;
|
|
7565
|
+
tags?: string[] | undefined;
|
|
7566
|
+
maxAttempts?: number | undefined;
|
|
7567
|
+
queue?: string | undefined;
|
|
7568
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7569
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7570
|
+
}, {
|
|
7571
|
+
basePayload: Record<string, unknown>;
|
|
7572
|
+
tags?: string[] | undefined;
|
|
7573
|
+
maxAttempts?: number | undefined;
|
|
7574
|
+
queue?: string | undefined;
|
|
7575
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7576
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7577
|
+
}>>;
|
|
7578
|
+
/**
|
|
7579
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7580
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7581
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7582
|
+
* from the underlying cuid before returning.
|
|
7583
|
+
*/
|
|
7584
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7585
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7586
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7587
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7588
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7589
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7590
|
+
createdAt: z.ZodDate;
|
|
7591
|
+
updatedAt: z.ZodDate;
|
|
7592
|
+
}, "strip", z.ZodTypeAny, {
|
|
7593
|
+
type: string;
|
|
7594
|
+
metadata: Record<string, unknown> | null;
|
|
7595
|
+
id: string;
|
|
7596
|
+
tags: string[];
|
|
7597
|
+
createdAt: Date;
|
|
7598
|
+
taskIdentifier: string;
|
|
7599
|
+
externalId: string | null;
|
|
7600
|
+
updatedAt: Date;
|
|
7601
|
+
expiresAt: Date | null;
|
|
7602
|
+
closedAt: Date | null;
|
|
7603
|
+
closedReason: string | null;
|
|
7604
|
+
triggerConfig?: {
|
|
7605
|
+
basePayload: Record<string, unknown>;
|
|
7606
|
+
tags?: string[] | undefined;
|
|
7607
|
+
maxAttempts?: number | undefined;
|
|
7608
|
+
queue?: string | undefined;
|
|
7609
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7610
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7611
|
+
} | undefined;
|
|
7612
|
+
currentRunId?: string | null | undefined;
|
|
7613
|
+
}, {
|
|
7614
|
+
type: string;
|
|
7615
|
+
metadata: Record<string, unknown> | null;
|
|
7616
|
+
id: string;
|
|
7617
|
+
tags: string[];
|
|
7618
|
+
createdAt: Date;
|
|
7619
|
+
taskIdentifier: string;
|
|
7620
|
+
externalId: string | null;
|
|
7621
|
+
updatedAt: Date;
|
|
7622
|
+
expiresAt: Date | null;
|
|
7623
|
+
closedAt: Date | null;
|
|
7624
|
+
closedReason: string | null;
|
|
7625
|
+
triggerConfig?: {
|
|
7626
|
+
basePayload: Record<string, unknown>;
|
|
7627
|
+
tags?: string[] | undefined;
|
|
7628
|
+
maxAttempts?: number | undefined;
|
|
7629
|
+
queue?: string | undefined;
|
|
7630
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7631
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7632
|
+
} | undefined;
|
|
7633
|
+
currentRunId?: string | null | undefined;
|
|
7634
|
+
}>;
|
|
7635
|
+
export type RetrieveSessionResponseBody = z.infer<typeof RetrieveSessionResponseBody>;
|
|
7636
|
+
/**
|
|
7637
|
+
* Body for `POST /api/v1/sessions/:session/end-and-continue`. Used by the
|
|
7638
|
+
* running agent to request a clean handoff to a fresh run on the latest
|
|
7639
|
+
* deployed version (typical use case: `chat.requestUpgrade`). The
|
|
7640
|
+
* server triggers a new run, atomically swaps `currentRunId`, and the
|
|
7641
|
+
* caller exits.
|
|
7642
|
+
*/
|
|
7643
|
+
export declare const EndAndContinueSessionRequestBody: z.ZodObject<{
|
|
7644
|
+
/** The friendlyId of the run requesting the handoff. */
|
|
7645
|
+
callingRunId: z.ZodString;
|
|
7646
|
+
/** Free-form label for the SessionRun audit row. e.g. `"upgrade"`. */
|
|
7647
|
+
reason: z.ZodString;
|
|
7648
|
+
}, "strip", z.ZodTypeAny, {
|
|
7649
|
+
reason: string;
|
|
7650
|
+
callingRunId: string;
|
|
7651
|
+
}, {
|
|
7652
|
+
reason: string;
|
|
7653
|
+
callingRunId: string;
|
|
7654
|
+
}>;
|
|
7655
|
+
export type EndAndContinueSessionRequestBody = z.infer<typeof EndAndContinueSessionRequestBody>;
|
|
7656
|
+
export declare const EndAndContinueSessionResponseBody: z.ZodObject<{
|
|
7657
|
+
/** friendlyId of the run that has taken over the session. */
|
|
7658
|
+
runId: z.ZodString;
|
|
7659
|
+
/**
|
|
7660
|
+
* False when the swap was preempted (a different run was already
|
|
7661
|
+
* running by the time we tried to claim). The caller should treat
|
|
7662
|
+
* this as "someone else moved on" — exit cleanly without expecting
|
|
7663
|
+
* to drive the next run.
|
|
7664
|
+
*/
|
|
7665
|
+
swapped: z.ZodBoolean;
|
|
7666
|
+
}, "strip", z.ZodTypeAny, {
|
|
7667
|
+
runId: string;
|
|
7668
|
+
swapped: boolean;
|
|
7669
|
+
}, {
|
|
7670
|
+
runId: string;
|
|
7671
|
+
swapped: boolean;
|
|
7672
|
+
}>;
|
|
7673
|
+
export type EndAndContinueSessionResponseBody = z.infer<typeof EndAndContinueSessionResponseBody>;
|
|
7674
|
+
export declare const UpdateSessionRequestBody: z.ZodObject<{
|
|
7675
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7676
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
7677
|
+
externalId: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<null>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
7678
|
+
}, "strip", z.ZodTypeAny, {
|
|
7679
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
7680
|
+
tags?: string[] | undefined;
|
|
7681
|
+
externalId?: string | null | undefined;
|
|
7682
|
+
}, {
|
|
7683
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
7684
|
+
tags?: string[] | undefined;
|
|
7685
|
+
externalId?: string | null | undefined;
|
|
7686
|
+
}>;
|
|
7687
|
+
export type UpdateSessionRequestBody = z.infer<typeof UpdateSessionRequestBody>;
|
|
7688
|
+
export declare const CloseSessionRequestBody: z.ZodObject<{
|
|
7689
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7690
|
+
}, "strip", z.ZodTypeAny, {
|
|
7691
|
+
reason?: string | undefined;
|
|
7692
|
+
}, {
|
|
7693
|
+
reason?: string | undefined;
|
|
7694
|
+
}>;
|
|
7695
|
+
export type CloseSessionRequestBody = z.infer<typeof CloseSessionRequestBody>;
|
|
7696
|
+
export declare const SessionStatus: z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>;
|
|
7697
|
+
export type SessionStatus = z.infer<typeof SessionStatus>;
|
|
7698
|
+
/**
|
|
7699
|
+
* Server-side validation schema for `GET /api/v1/sessions`. Follows the same
|
|
7700
|
+
* cursor-pagination convention as runs/waitpoints (`page[size]`,
|
|
7701
|
+
* `page[after]`, `page[before]`) and uses the `filter[*]` prefix for
|
|
7702
|
+
* narrowing fields — both produced automatically by `zodfetchCursorPage`
|
|
7703
|
+
* and the matching client-side search-query helper.
|
|
7704
|
+
*/
|
|
7705
|
+
export declare const ListSessionsQueryParams: z.ZodEffects<z.ZodObject<{
|
|
7706
|
+
"page[size]": z.ZodDefault<z.ZodNumber>;
|
|
7707
|
+
"page[after]": z.ZodOptional<z.ZodString>;
|
|
7708
|
+
"page[before]": z.ZodOptional<z.ZodString>;
|
|
7709
|
+
"filter[type]": z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7710
|
+
"filter[tags]": z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7711
|
+
"filter[taskIdentifier]": z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7712
|
+
"filter[externalId]": z.ZodOptional<z.ZodString>;
|
|
7713
|
+
"filter[status]": z.ZodOptional<z.ZodUnion<[z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, z.ZodArray<z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, "many">]>>;
|
|
7714
|
+
"filter[createdAt][period]": z.ZodOptional<z.ZodString>;
|
|
7715
|
+
"filter[createdAt][from]": z.ZodOptional<z.ZodNumber>;
|
|
7716
|
+
"filter[createdAt][to]": z.ZodOptional<z.ZodNumber>;
|
|
7717
|
+
}, "strip", z.ZodTypeAny, {
|
|
7718
|
+
"page[size]": number;
|
|
7719
|
+
"page[after]"?: string | undefined;
|
|
7720
|
+
"page[before]"?: string | undefined;
|
|
7721
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7722
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7723
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7724
|
+
"filter[externalId]"?: string | undefined;
|
|
7725
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7726
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7727
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7728
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7729
|
+
}, {
|
|
7730
|
+
"page[size]"?: number | undefined;
|
|
7731
|
+
"page[after]"?: string | undefined;
|
|
7732
|
+
"page[before]"?: string | undefined;
|
|
7733
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7734
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7735
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7736
|
+
"filter[externalId]"?: string | undefined;
|
|
7737
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7738
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7739
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7740
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7741
|
+
}>, {
|
|
7742
|
+
"page[size]": number;
|
|
7743
|
+
"page[after]"?: string | undefined;
|
|
7744
|
+
"page[before]"?: string | undefined;
|
|
7745
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7746
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7747
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7748
|
+
"filter[externalId]"?: string | undefined;
|
|
7749
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7750
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7751
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7752
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7753
|
+
}, {
|
|
7754
|
+
"page[size]"?: number | undefined;
|
|
7755
|
+
"page[after]"?: string | undefined;
|
|
7756
|
+
"page[before]"?: string | undefined;
|
|
7757
|
+
"filter[type]"?: string | string[] | undefined;
|
|
7758
|
+
"filter[tags]"?: string | string[] | undefined;
|
|
7759
|
+
"filter[taskIdentifier]"?: string | string[] | undefined;
|
|
7760
|
+
"filter[externalId]"?: string | undefined;
|
|
7761
|
+
"filter[status]"?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7762
|
+
"filter[createdAt][period]"?: string | undefined;
|
|
7763
|
+
"filter[createdAt][from]"?: number | undefined;
|
|
7764
|
+
"filter[createdAt][to]"?: number | undefined;
|
|
7765
|
+
}>;
|
|
7766
|
+
export type ListSessionsQueryParams = z.infer<typeof ListSessionsQueryParams>;
|
|
7767
|
+
/**
|
|
7768
|
+
* Client-facing list options — flattened shape that
|
|
7769
|
+
* {@link ApiClient.listSessions} converts into the `filter[*]` / `page[*]`
|
|
7770
|
+
* query string before sending.
|
|
7771
|
+
*/
|
|
7772
|
+
export declare const ListSessionsOptions: z.ZodObject<{
|
|
7773
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7774
|
+
after: z.ZodOptional<z.ZodString>;
|
|
7775
|
+
before: z.ZodOptional<z.ZodString>;
|
|
7776
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7777
|
+
tag: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7778
|
+
taskIdentifier: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7779
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
7780
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, z.ZodArray<z.ZodEnum<["ACTIVE", "CLOSED", "EXPIRED"]>, "many">]>>;
|
|
7781
|
+
period: z.ZodOptional<z.ZodString>;
|
|
7782
|
+
from: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodDate]>>;
|
|
7783
|
+
to: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodDate]>>;
|
|
7784
|
+
}, "strip", z.ZodTypeAny, {
|
|
7785
|
+
type?: string | string[] | undefined;
|
|
7786
|
+
status?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7787
|
+
taskIdentifier?: string | string[] | undefined;
|
|
7788
|
+
externalId?: string | undefined;
|
|
7789
|
+
limit?: number | undefined;
|
|
7790
|
+
after?: string | undefined;
|
|
7791
|
+
before?: string | undefined;
|
|
7792
|
+
tag?: string | string[] | undefined;
|
|
7793
|
+
period?: string | undefined;
|
|
7794
|
+
from?: number | Date | undefined;
|
|
7795
|
+
to?: number | Date | undefined;
|
|
7796
|
+
}, {
|
|
7797
|
+
type?: string | string[] | undefined;
|
|
7798
|
+
status?: "EXPIRED" | "ACTIVE" | "CLOSED" | ("EXPIRED" | "ACTIVE" | "CLOSED")[] | undefined;
|
|
7799
|
+
taskIdentifier?: string | string[] | undefined;
|
|
7800
|
+
externalId?: string | undefined;
|
|
7801
|
+
limit?: number | undefined;
|
|
7802
|
+
after?: string | undefined;
|
|
7803
|
+
before?: string | undefined;
|
|
7804
|
+
tag?: string | string[] | undefined;
|
|
7805
|
+
period?: string | undefined;
|
|
7806
|
+
from?: number | Date | undefined;
|
|
7807
|
+
to?: number | Date | undefined;
|
|
7808
|
+
}>;
|
|
7809
|
+
export type ListSessionsOptions = z.infer<typeof ListSessionsOptions>;
|
|
7810
|
+
export declare const ListedSessionItem: z.ZodObject<{
|
|
7811
|
+
id: z.ZodString;
|
|
7812
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7813
|
+
type: z.ZodString;
|
|
7814
|
+
taskIdentifier: z.ZodString;
|
|
7815
|
+
/**
|
|
7816
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7817
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7818
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7819
|
+
*/
|
|
7820
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7821
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7822
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7823
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7824
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7825
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7826
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7827
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7828
|
+
}, "strip", z.ZodTypeAny, {
|
|
7829
|
+
basePayload: Record<string, unknown>;
|
|
7830
|
+
tags?: string[] | undefined;
|
|
7831
|
+
maxAttempts?: number | undefined;
|
|
7832
|
+
queue?: string | undefined;
|
|
7833
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7834
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7835
|
+
}, {
|
|
7836
|
+
basePayload: Record<string, unknown>;
|
|
7837
|
+
tags?: string[] | undefined;
|
|
7838
|
+
maxAttempts?: number | undefined;
|
|
7839
|
+
queue?: string | undefined;
|
|
7840
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7841
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7842
|
+
}>>;
|
|
7843
|
+
/**
|
|
7844
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7845
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7846
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7847
|
+
* from the underlying cuid before returning.
|
|
7848
|
+
*/
|
|
7849
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7850
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7851
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7852
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7853
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7854
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7855
|
+
createdAt: z.ZodDate;
|
|
7856
|
+
updatedAt: z.ZodDate;
|
|
7857
|
+
}, "strip", z.ZodTypeAny, {
|
|
7858
|
+
type: string;
|
|
7859
|
+
metadata: Record<string, unknown> | null;
|
|
7860
|
+
id: string;
|
|
7861
|
+
tags: string[];
|
|
7862
|
+
createdAt: Date;
|
|
7863
|
+
taskIdentifier: string;
|
|
7864
|
+
externalId: string | null;
|
|
7865
|
+
updatedAt: Date;
|
|
7866
|
+
expiresAt: Date | null;
|
|
7867
|
+
closedAt: Date | null;
|
|
7868
|
+
closedReason: string | null;
|
|
7869
|
+
triggerConfig?: {
|
|
7870
|
+
basePayload: Record<string, unknown>;
|
|
7871
|
+
tags?: string[] | undefined;
|
|
7872
|
+
maxAttempts?: number | undefined;
|
|
7873
|
+
queue?: string | undefined;
|
|
7874
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7875
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7876
|
+
} | undefined;
|
|
7877
|
+
currentRunId?: string | null | undefined;
|
|
7878
|
+
}, {
|
|
7879
|
+
type: string;
|
|
7880
|
+
metadata: Record<string, unknown> | null;
|
|
7881
|
+
id: string;
|
|
7882
|
+
tags: string[];
|
|
7883
|
+
createdAt: Date;
|
|
7884
|
+
taskIdentifier: string;
|
|
7885
|
+
externalId: string | null;
|
|
7886
|
+
updatedAt: Date;
|
|
7887
|
+
expiresAt: Date | null;
|
|
7888
|
+
closedAt: Date | null;
|
|
7889
|
+
closedReason: string | null;
|
|
7890
|
+
triggerConfig?: {
|
|
7891
|
+
basePayload: Record<string, unknown>;
|
|
7892
|
+
tags?: string[] | undefined;
|
|
7893
|
+
maxAttempts?: number | undefined;
|
|
7894
|
+
queue?: string | undefined;
|
|
7895
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7896
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7897
|
+
} | undefined;
|
|
7898
|
+
currentRunId?: string | null | undefined;
|
|
7899
|
+
}>;
|
|
7900
|
+
export type ListedSessionItem = z.infer<typeof ListedSessionItem>;
|
|
7901
|
+
export declare const ListSessionsResponseBody: z.ZodObject<{
|
|
7902
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7903
|
+
id: z.ZodString;
|
|
7904
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
7905
|
+
type: z.ZodString;
|
|
7906
|
+
taskIdentifier: z.ZodString;
|
|
7907
|
+
/**
|
|
7908
|
+
* Optional on the wire because some surfaces (the list endpoint backed
|
|
7909
|
+
* by ClickHouse, list-page rendering) don't carry triggerConfig.
|
|
7910
|
+
* Always populated on `POST /sessions` and `GET /sessions/:id`.
|
|
7911
|
+
*/
|
|
7912
|
+
triggerConfig: z.ZodOptional<z.ZodObject<{
|
|
7913
|
+
basePayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7914
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
7915
|
+
queue: z.ZodOptional<z.ZodString>;
|
|
7916
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7917
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7918
|
+
/** Convenience field surfaced to chat.agent via the wire payload. */
|
|
7919
|
+
idleTimeoutInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7920
|
+
}, "strip", z.ZodTypeAny, {
|
|
7921
|
+
basePayload: Record<string, unknown>;
|
|
7922
|
+
tags?: string[] | undefined;
|
|
7923
|
+
maxAttempts?: number | undefined;
|
|
7924
|
+
queue?: string | undefined;
|
|
7925
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7926
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7927
|
+
}, {
|
|
7928
|
+
basePayload: Record<string, unknown>;
|
|
7929
|
+
tags?: string[] | undefined;
|
|
7930
|
+
maxAttempts?: number | undefined;
|
|
7931
|
+
queue?: string | undefined;
|
|
7932
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7933
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7934
|
+
}>>;
|
|
7935
|
+
/**
|
|
7936
|
+
* Friendly id of the live run for this session, if any. Optional on
|
|
7937
|
+
* the wire — list surfaces may not include it. Routes that emit
|
|
7938
|
+
* `SessionItem` are responsible for resolving the friendly form
|
|
7939
|
+
* from the underlying cuid before returning.
|
|
7940
|
+
*/
|
|
7941
|
+
currentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7942
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
7943
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7944
|
+
closedAt: z.ZodNullable<z.ZodDate>;
|
|
7945
|
+
closedReason: z.ZodNullable<z.ZodString>;
|
|
7946
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
7947
|
+
createdAt: z.ZodDate;
|
|
7948
|
+
updatedAt: z.ZodDate;
|
|
7949
|
+
}, "strip", z.ZodTypeAny, {
|
|
7950
|
+
type: string;
|
|
7951
|
+
metadata: Record<string, unknown> | null;
|
|
7952
|
+
id: string;
|
|
7953
|
+
tags: string[];
|
|
7954
|
+
createdAt: Date;
|
|
7955
|
+
taskIdentifier: string;
|
|
7956
|
+
externalId: string | null;
|
|
7957
|
+
updatedAt: Date;
|
|
7958
|
+
expiresAt: Date | null;
|
|
7959
|
+
closedAt: Date | null;
|
|
7960
|
+
closedReason: string | null;
|
|
7961
|
+
triggerConfig?: {
|
|
7962
|
+
basePayload: Record<string, unknown>;
|
|
7963
|
+
tags?: string[] | undefined;
|
|
7964
|
+
maxAttempts?: number | undefined;
|
|
7965
|
+
queue?: string | undefined;
|
|
7966
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7967
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7968
|
+
} | undefined;
|
|
7969
|
+
currentRunId?: string | null | undefined;
|
|
7970
|
+
}, {
|
|
7971
|
+
type: string;
|
|
7972
|
+
metadata: Record<string, unknown> | null;
|
|
7973
|
+
id: string;
|
|
7974
|
+
tags: string[];
|
|
7975
|
+
createdAt: Date;
|
|
7976
|
+
taskIdentifier: string;
|
|
7977
|
+
externalId: string | null;
|
|
7978
|
+
updatedAt: Date;
|
|
7979
|
+
expiresAt: Date | null;
|
|
7980
|
+
closedAt: Date | null;
|
|
7981
|
+
closedReason: string | null;
|
|
7982
|
+
triggerConfig?: {
|
|
7983
|
+
basePayload: Record<string, unknown>;
|
|
7984
|
+
tags?: string[] | undefined;
|
|
7985
|
+
maxAttempts?: number | undefined;
|
|
7986
|
+
queue?: string | undefined;
|
|
7987
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
7988
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
7989
|
+
} | undefined;
|
|
7990
|
+
currentRunId?: string | null | undefined;
|
|
7991
|
+
}>, "many">;
|
|
7992
|
+
pagination: z.ZodObject<{
|
|
7993
|
+
next: z.ZodOptional<z.ZodString>;
|
|
7994
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
7995
|
+
}, "strip", z.ZodTypeAny, {
|
|
7996
|
+
next?: string | undefined;
|
|
7997
|
+
previous?: string | undefined;
|
|
7998
|
+
}, {
|
|
7999
|
+
next?: string | undefined;
|
|
8000
|
+
previous?: string | undefined;
|
|
8001
|
+
}>;
|
|
8002
|
+
}, "strip", z.ZodTypeAny, {
|
|
8003
|
+
data: {
|
|
8004
|
+
type: string;
|
|
8005
|
+
metadata: Record<string, unknown> | null;
|
|
8006
|
+
id: string;
|
|
8007
|
+
tags: string[];
|
|
8008
|
+
createdAt: Date;
|
|
8009
|
+
taskIdentifier: string;
|
|
8010
|
+
externalId: string | null;
|
|
8011
|
+
updatedAt: Date;
|
|
8012
|
+
expiresAt: Date | null;
|
|
8013
|
+
closedAt: Date | null;
|
|
8014
|
+
closedReason: string | null;
|
|
8015
|
+
triggerConfig?: {
|
|
8016
|
+
basePayload: Record<string, unknown>;
|
|
8017
|
+
tags?: string[] | undefined;
|
|
8018
|
+
maxAttempts?: number | undefined;
|
|
8019
|
+
queue?: string | undefined;
|
|
8020
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
8021
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
8022
|
+
} | undefined;
|
|
8023
|
+
currentRunId?: string | null | undefined;
|
|
8024
|
+
}[];
|
|
8025
|
+
pagination: {
|
|
8026
|
+
next?: string | undefined;
|
|
8027
|
+
previous?: string | undefined;
|
|
8028
|
+
};
|
|
8029
|
+
}, {
|
|
8030
|
+
data: {
|
|
8031
|
+
type: string;
|
|
8032
|
+
metadata: Record<string, unknown> | null;
|
|
8033
|
+
id: string;
|
|
8034
|
+
tags: string[];
|
|
8035
|
+
createdAt: Date;
|
|
8036
|
+
taskIdentifier: string;
|
|
8037
|
+
externalId: string | null;
|
|
8038
|
+
updatedAt: Date;
|
|
8039
|
+
expiresAt: Date | null;
|
|
8040
|
+
closedAt: Date | null;
|
|
8041
|
+
closedReason: string | null;
|
|
8042
|
+
triggerConfig?: {
|
|
8043
|
+
basePayload: Record<string, unknown>;
|
|
8044
|
+
tags?: string[] | undefined;
|
|
8045
|
+
maxAttempts?: number | undefined;
|
|
8046
|
+
queue?: string | undefined;
|
|
8047
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
8048
|
+
idleTimeoutInSeconds?: number | undefined;
|
|
8049
|
+
} | undefined;
|
|
8050
|
+
currentRunId?: string | null | undefined;
|
|
8051
|
+
}[];
|
|
8052
|
+
pagination: {
|
|
8053
|
+
next?: string | undefined;
|
|
8054
|
+
previous?: string | undefined;
|
|
8055
|
+
};
|
|
8056
|
+
}>;
|
|
8057
|
+
export type ListSessionsResponseBody = z.infer<typeof ListSessionsResponseBody>;
|
|
7188
8058
|
export declare const CompleteWaitpointTokenResponseBody: z.ZodObject<{
|
|
7189
8059
|
success: z.ZodLiteral<true>;
|
|
7190
8060
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7276,17 +8146,17 @@ export declare const ApiDeploymentListOptions: z.ZodObject<{
|
|
|
7276
8146
|
}, "strip", z.ZodTypeAny, {
|
|
7277
8147
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
7278
8148
|
limit?: number | undefined;
|
|
7279
|
-
|
|
8149
|
+
period?: string | undefined;
|
|
7280
8150
|
from?: string | undefined;
|
|
7281
8151
|
to?: string | undefined;
|
|
7282
|
-
|
|
8152
|
+
cursor?: string | undefined;
|
|
7283
8153
|
}, {
|
|
7284
8154
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
7285
8155
|
limit?: number | undefined;
|
|
7286
|
-
|
|
8156
|
+
period?: string | undefined;
|
|
7287
8157
|
from?: string | undefined;
|
|
7288
8158
|
to?: string | undefined;
|
|
7289
|
-
|
|
8159
|
+
cursor?: string | undefined;
|
|
7290
8160
|
}>;
|
|
7291
8161
|
export type ApiDeploymentListOptions = z.infer<typeof ApiDeploymentListOptions>;
|
|
7292
8162
|
export declare const ApiDeploymentListSearchParams: z.ZodObject<{
|
|
@@ -7298,18 +8168,18 @@ export declare const ApiDeploymentListSearchParams: z.ZodObject<{
|
|
|
7298
8168
|
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
7299
8169
|
}, "strip", z.ZodTypeAny, {
|
|
7300
8170
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
8171
|
+
"page[size]"?: number | undefined;
|
|
8172
|
+
"page[after]"?: string | undefined;
|
|
8173
|
+
period?: string | undefined;
|
|
7301
8174
|
from?: string | undefined;
|
|
7302
8175
|
to?: string | undefined;
|
|
7303
|
-
period?: string | undefined;
|
|
7304
|
-
"page[after]"?: string | undefined;
|
|
7305
|
-
"page[size]"?: number | undefined;
|
|
7306
8176
|
}, {
|
|
7307
8177
|
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
8178
|
+
"page[size]"?: number | undefined;
|
|
8179
|
+
"page[after]"?: string | undefined;
|
|
8180
|
+
period?: string | undefined;
|
|
7308
8181
|
from?: string | undefined;
|
|
7309
8182
|
to?: string | undefined;
|
|
7310
|
-
period?: string | undefined;
|
|
7311
|
-
"page[after]"?: string | undefined;
|
|
7312
|
-
"page[size]"?: number | undefined;
|
|
7313
8183
|
}>;
|
|
7314
8184
|
export type ApiDeploymentListSearchParams = z.infer<typeof ApiDeploymentListSearchParams>;
|
|
7315
8185
|
export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|