@distilled.cloud/trigger-dev 1.0.0-rc.15 → 1.0.0-rc.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -37
  8. package/lib/errors.d.ts +15 -15
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -26
  11. package/lib/index.d.ts +1 -1
  12. package/lib/index.js +1 -20
  13. package/lib/index.lazy.js +9 -0
  14. package/lib/{index.js.map → index.lazy.js.map} +1 -1
  15. package/lib/pagination.d.ts +1 -1
  16. package/lib/pagination.js +1 -8
  17. package/lib/protocol.d.ts.map +1 -1
  18. package/lib/protocol.js +1 -40
  19. package/lib/retry.d.ts +1 -1
  20. package/lib/retry.d.ts.map +1 -1
  21. package/lib/retry.js +1 -32
  22. package/lib/services/index.js +0 -2
  23. package/lib/services/trigger-dev.d.ts +22 -360
  24. package/lib/services/trigger-dev.d.ts.map +1 -1
  25. package/lib/services/trigger-dev.js +100 -1973
  26. package/lib/services/trigger-dev.js.map +1 -1
  27. package/lib/services.lazy/index.js +3 -0
  28. package/lib/services.lazy/trigger-dev.js +4 -0
  29. package/lib/traits.d.ts +1 -1
  30. package/lib/traits.js +1 -11
  31. package/package.json +9 -7
  32. package/src/credentials.ts +7 -6
  33. package/src/errors.ts +12 -16
  34. package/src/index.ts +2 -2
  35. package/src/pagination.ts +1 -1
  36. package/src/protocol.ts +19 -20
  37. package/src/retry.ts +6 -4
  38. package/src/services/trigger-dev.ts +1982 -2437
  39. package/src/traits.ts +1 -1
  40. package/lib/credentials.js.map +0 -1
  41. package/lib/errors.js.map +0 -1
  42. package/lib/pagination.js.map +0 -1
  43. package/lib/protocol.js.map +0 -1
  44. package/lib/retry.js.map +0 -1
  45. package/lib/services/index.js.map +0 -1
  46. package/lib/traits.js.map +0 -1
@@ -1,41 +1,41 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
3
  import { type TriggerDevOpError, type TriggerDevOpContext } from "../protocol.ts";
4
4
  export type { TriggerDevOpError, TriggerDevOpContext };
5
- declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
5
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
6
  readonly code: any;
7
7
  readonly message: any;
8
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
8
+ }> & (new (...args: any[]) => {
9
9
  "@distilled.cloud/error/categories": {
10
10
  BadRequestError: true;
11
11
  };
12
12
  });
13
13
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
14
14
  }
15
- declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
15
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
16
16
  readonly code: any;
17
17
  readonly message: any;
18
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
18
+ }> & (new (...args: any[]) => {
19
19
  "@distilled.cloud/error/categories": {
20
20
  ConflictError: true;
21
21
  };
22
22
  });
23
23
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
24
24
  }
25
- declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
25
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
26
26
  readonly code: any;
27
27
  readonly message: any;
28
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
28
+ }> & (new (...args: any[]) => {
29
29
  "@distilled.cloud/error/categories": {
30
30
  BadRequestError: true;
31
31
  };
32
32
  });
33
33
  export declare class NotFound extends /*@__PURE__*/ NotFound_base {
34
34
  }
35
- declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
35
+ declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
36
36
  readonly code: any;
37
37
  readonly message: any;
38
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
38
+ }> & (new (...args: any[]) => {
39
39
  "@distilled.cloud/error/categories": {
40
40
  BadRequestError: true;
41
41
  };
@@ -46,9 +46,7 @@ export interface ActivateScheduleV1Request {
46
46
  /** The ID of the schedule. */
47
47
  schedule_id: string;
48
48
  }
49
- export declare const ActivateScheduleV1Request: S.Schema<ActivateScheduleV1Request>;
50
49
  export type ScheduleObjectGeneratorType = "CRON";
51
- export declare const ScheduleObjectGeneratorType: any;
52
50
  export interface ScheduleObjectGenerator {
53
51
  type?: ScheduleObjectGeneratorType;
54
52
  /** The cron expression used to generate the schedule */
@@ -56,10 +54,8 @@ export interface ScheduleObjectGenerator {
56
54
  /** The description of the generator in plain english */
57
55
  description?: string;
58
56
  }
59
- export declare const ScheduleObjectGenerator: S.Schema<ScheduleObjectGenerator>;
60
57
  /** Why the minimum window is applied. */
61
58
  export type ScheduleObjectAppliedSchedulePolicyReason = "free_schedule";
62
- export declare const ScheduleObjectAppliedSchedulePolicyReason: any;
63
59
  /** Present only when a non-overridable plan policy applies a minimum window to this schedule (for example, a free-plan schedule's minimum run interval). The configured `window` is returned separately and unchanged. */
64
60
  export interface ScheduleObjectAppliedSchedulePolicy {
65
61
  /** The minimum window, in seconds, applied on top of the configured window. */
@@ -67,15 +63,12 @@ export interface ScheduleObjectAppliedSchedulePolicy {
67
63
  /** Why the minimum window is applied. */
68
64
  reason?: ScheduleObjectAppliedSchedulePolicyReason;
69
65
  }
70
- export declare const ScheduleObjectAppliedSchedulePolicy: S.Schema<ScheduleObjectAppliedSchedulePolicy>;
71
66
  export interface ScheduleEnvironment {
72
67
  id?: string;
73
68
  type?: string;
74
69
  userName?: string;
75
70
  }
76
- export declare const ScheduleEnvironment: S.Schema<ScheduleEnvironment>;
77
71
  export type ScheduleObjectEnvironmentsList = Array<ScheduleEnvironment>;
78
- export declare const ScheduleObjectEnvironmentsList: S.Schema<ScheduleObjectEnvironmentsList>;
79
72
  export interface ScheduleObject {
80
73
  /** The unique ID of the schedule, prefixed with 'sched_' */
81
74
  id?: string;
@@ -98,56 +91,44 @@ export interface ScheduleObject {
98
91
  appliedSchedulePolicy?: ScheduleObjectAppliedSchedulePolicy;
99
92
  environments?: ScheduleObjectEnvironmentsList;
100
93
  }
101
- export declare const ScheduleObject: S.Schema<ScheduleObject>;
102
94
  export type RunTagsCase1List = Array<string>;
103
- export declare const RunTagsCase1List: S.Schema<RunTagsCase1List>;
104
95
  /** One or more tags to attach to a run. Runs can have a maximum of 10 tags. */
105
96
  export type RunTags = string | RunTagsCase1List;
106
- export declare const RunTags: S.Schema<RunTags>;
107
97
  export interface AddRunTagsV1Request {
108
98
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
109
99
  runId: string;
110
100
  tags: RunTags;
111
101
  }
112
- export declare const AddRunTagsV1Request: S.Schema<AddRunTagsV1Request>;
113
102
  export interface AddRunTagsV1Response {
114
103
  message?: string;
115
104
  }
116
- export declare const AddRunTagsV1Response: S.Schema<AddRunTagsV1Response>;
117
105
  export interface BulkAbortActionV1Request {
118
106
  /** The ID of a bulk action, starts with `bulk_`. */
119
107
  bulkActionId: string;
120
108
  }
121
- export declare const BulkAbortActionV1Request: S.Schema<BulkAbortActionV1Request>;
122
109
  export interface AbortBulkActionResponse {
123
110
  id: string;
124
111
  }
125
- export declare const AbortBulkActionResponse: S.Schema<AbortBulkActionResponse>;
126
112
  export interface CancelRunV1Request {
127
113
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
128
114
  runId: string;
129
115
  }
130
- export declare const CancelRunV1Request: S.Schema<CancelRunV1Request>;
131
116
  export interface CancelRunV1Response {
132
117
  /** The ID of the run that was canceled. */
133
118
  id?: string;
134
119
  }
135
- export declare const CancelRunV1Response: S.Schema<CancelRunV1Response>;
136
120
  export interface CloseSessionV1Request {
137
- /** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
121
+ /** The session's friendly ID (`session_...`) or your `externalId`. The server disambiguates by the `session_` prefix. */
138
122
  session: string;
139
123
  /** Optional reason recorded on the session row. */
140
124
  reason?: string;
141
125
  }
142
- export declare const CloseSessionV1Request: S.Schema<CloseSessionV1Request>;
143
126
  /** Base payload passed to every run this session triggers. For `chat.agent` this carries `{ chatId, ...clientData }`. */
144
127
  export type SessionTriggerConfigBasePayloadMap = {
145
128
  [key: string]: unknown | undefined;
146
129
  };
147
- export declare const SessionTriggerConfigBasePayloadMap: S.Schema<SessionTriggerConfigBasePayloadMap>;
148
130
  /** Tags applied to every run this session triggers. */
149
131
  export type SessionTriggerConfigTagsList = Array<string>;
150
- export declare const SessionTriggerConfigTagsList: S.Schema<SessionTriggerConfigTagsList>;
151
132
  /** Trigger options applied to every run a session schedules. `basePayload` is the wire payload merged into each run; the remaining fields map onto the standard trigger options. */
152
133
  export interface SessionTriggerConfig {
153
134
  /** Base payload passed to every run this session triggers. For `chat.agent` this carries `{ chatId, ...clientData }`. */
@@ -169,15 +150,12 @@ export interface SessionTriggerConfig {
169
150
  /** Idle timeout surfaced to `chat.agent` via the wire payload. */
170
151
  idleTimeoutInSeconds?: number;
171
152
  }
172
- export declare const SessionTriggerConfig: S.Schema<SessionTriggerConfig>;
173
153
  /** Tags on the session row. */
174
154
  export type SessionObjectTagsList = Array<string>;
175
- export declare const SessionObjectTagsList: S.Schema<SessionObjectTagsList>;
176
155
  /** Arbitrary JSON metadata, or `null` if unset. */
177
156
  export type SessionObjectMetadataMap = {
178
157
  [key: string]: unknown | undefined;
179
158
  };
180
- export declare const SessionObjectMetadataMap: S.Schema<SessionObjectMetadataMap>;
181
159
  /** A session row. */
182
160
  export interface SessionObject {
183
161
  /** The session's friendly ID, prefixed with `session_`. */
@@ -204,78 +182,53 @@ export interface SessionObject {
204
182
  createdAt: string;
205
183
  updatedAt: string;
206
184
  }
207
- export declare const SessionObject: S.Schema<SessionObject>;
208
185
  export interface CompleteWaitpointTokenCallbackV1Request {
209
186
  /** The ID of the waitpoint token. */
210
187
  waitpointId: string;
211
- /** The HMAC hash that authenticates the request. This is embedded in the `url` returned when creating the token — do not construct it manually. */
188
+ /** The HMAC hash that authenticates the request. This is embedded in the `url` returned when creating the token -- do not construct it manually. */
212
189
  callbackHash: string;
213
190
  }
214
- export declare const CompleteWaitpointTokenCallbackV1Request: S.Schema<CompleteWaitpointTokenCallbackV1Request>;
215
191
  export interface CompleteWaitpointTokenResponse {
216
192
  /** Always `true` when the request succeeds. */
217
193
  success: boolean;
218
194
  }
219
- export declare const CompleteWaitpointTokenResponse: S.Schema<CompleteWaitpointTokenResponse>;
220
195
  export interface CompleteWaitpointTokenV1Request {
221
196
  /** The ID of the waitpoint token to complete. */
222
197
  waitpointId: string;
223
198
  /** Any JSON-serializable value to pass back to the run waiting on this token. The data will be returned from `wait.forToken()` as the result payload. */
224
199
  data?: unknown;
225
200
  }
226
- export declare const CompleteWaitpointTokenV1Request: S.Schema<CompleteWaitpointTokenV1Request>;
227
201
  export type CreateBulkActionRequestBodyCase0Action = "cancel";
228
- export declare const CreateBulkActionRequestBodyCase0Action: any;
229
202
  export type BulkActionFilterStatusCase0 = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
230
- export declare const BulkActionFilterStatusCase0: any;
231
203
  export type BulkActionFilterStatusCase1Item = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
232
- export declare const BulkActionFilterStatusCase1Item: any;
233
204
  export type BulkActionFilterStatusCase1List = Array<BulkActionFilterStatusCase1Item | (string & {})>;
234
- export declare const BulkActionFilterStatusCase1List: S.Schema<BulkActionFilterStatusCase1List>;
235
205
  export type BulkActionFilterStatus = BulkActionFilterStatusCase0 | BulkActionFilterStatusCase1List;
236
- export declare const BulkActionFilterStatus: S.Schema<BulkActionFilterStatus>;
237
206
  export type BulkActionFilterTaskIdentifierCase1List = Array<string>;
238
- export declare const BulkActionFilterTaskIdentifierCase1List: S.Schema<BulkActionFilterTaskIdentifierCase1List>;
239
207
  /** The identifier of the task that was run. */
240
208
  export type BulkActionFilterTaskIdentifier = string | BulkActionFilterTaskIdentifierCase1List;
241
- export declare const BulkActionFilterTaskIdentifier: S.Schema<BulkActionFilterTaskIdentifier>;
242
209
  export type BulkActionFilterVersionCase1List = Array<string>;
243
- export declare const BulkActionFilterVersionCase1List: S.Schema<BulkActionFilterVersionCase1List>;
244
210
  /** The worker version that executed the run. */
245
211
  export type BulkActionFilterVersion = string | BulkActionFilterVersionCase1List;
246
- export declare const BulkActionFilterVersion: S.Schema<BulkActionFilterVersion>;
247
212
  /** Start of the time range as an ISO date string or Unix timestamp in milliseconds. */
248
213
  export type BulkActionFilterFrom = string | number;
249
- export declare const BulkActionFilterFrom: S.Schema<BulkActionFilterFrom>;
250
214
  /** End of the time range as an ISO date string or Unix timestamp in milliseconds. */
251
215
  export type BulkActionFilterTo = string | number;
252
- export declare const BulkActionFilterTo: S.Schema<BulkActionFilterTo>;
253
216
  export type BulkActionFilterTagCase1List = Array<string>;
254
- export declare const BulkActionFilterTagCase1List: S.Schema<BulkActionFilterTagCase1List>;
255
217
  /** Select runs with one or more tags. */
256
218
  export type BulkActionFilterTag = string | BulkActionFilterTagCase1List;
257
- export declare const BulkActionFilterTag: S.Schema<BulkActionFilterTag>;
258
219
  export type QueueTypeNameType = "task" | "custom";
259
- export declare const QueueTypeNameType: any;
260
220
  export interface QueueTypeName {
261
221
  type: QueueTypeNameType | (string & {});
262
222
  name: string;
263
223
  }
264
- export declare const QueueTypeName: S.Schema<QueueTypeName>;
265
224
  export type BulkActionFilterQueueCase1List = Array<QueueTypeName>;
266
- export declare const BulkActionFilterQueueCase1List: S.Schema<BulkActionFilterQueueCase1List>;
267
225
  export type BulkActionFilterQueue = QueueTypeName | BulkActionFilterQueueCase1List;
268
- export declare const BulkActionFilterQueue: S.Schema<BulkActionFilterQueue>;
269
226
  export type BulkActionFilterMachineCase1List = Array<string>;
270
- export declare const BulkActionFilterMachineCase1List: S.Schema<BulkActionFilterMachineCase1List>;
271
227
  /** Select runs by machine preset. */
272
228
  export type BulkActionFilterMachine = string | BulkActionFilterMachineCase1List;
273
- export declare const BulkActionFilterMachine: S.Schema<BulkActionFilterMachine>;
274
229
  export type BulkActionFilterRegionCase1List = Array<string>;
275
- export declare const BulkActionFilterRegionCase1List: S.Schema<BulkActionFilterRegionCase1List>;
276
230
  /** Select runs by region. */
277
231
  export type BulkActionFilterRegion = string | BulkActionFilterRegionCase1List;
278
- export declare const BulkActionFilterRegion: S.Schema<BulkActionFilterRegion>;
279
232
  /** Selects runs using SDK-style run-list filter fields, excluding pagination fields. In HTTP requests these fields are sent as JSON body properties, so time fields are top-level (`from`, `to`, `period`) instead of nested under `createdAt`. Provide at least one property. */
280
233
  export interface BulkActionFilter {
281
234
  status?: BulkActionFilterStatus;
@@ -305,25 +258,19 @@ export interface BulkActionFilter {
305
258
  /** Select runs by region. */
306
259
  region?: BulkActionFilterRegion;
307
260
  }
308
- export declare const BulkActionFilter: S.Schema<BulkActionFilter>;
309
261
  export interface CreateBulkActionRequestBodyCase0 {
310
262
  action: CreateBulkActionRequestBodyCase0Action;
311
263
  filter: BulkActionFilter;
312
264
  name?: string;
313
265
  }
314
- export declare const CreateBulkActionRequestBodyCase0: S.Schema<CreateBulkActionRequestBodyCase0>;
315
266
  export type CreateBulkActionRequestBodyCase1Action = "cancel";
316
- export declare const CreateBulkActionRequestBodyCase1Action: any;
317
267
  export type CreateBulkActionRequestBodyCase1RunIdsList = Array<string>;
318
- export declare const CreateBulkActionRequestBodyCase1RunIdsList: S.Schema<CreateBulkActionRequestBodyCase1RunIdsList>;
319
268
  export interface CreateBulkActionRequestBodyCase1 {
320
269
  action: CreateBulkActionRequestBodyCase1Action;
321
270
  runIds: CreateBulkActionRequestBodyCase1RunIdsList;
322
271
  name?: string;
323
272
  }
324
- export declare const CreateBulkActionRequestBodyCase1: S.Schema<CreateBulkActionRequestBodyCase1>;
325
273
  export type CreateBulkActionRequestBodyCase2Action = "replay";
326
- export declare const CreateBulkActionRequestBodyCase2Action: any;
327
274
  export interface CreateBulkActionRequestBodyCase2 {
328
275
  action: CreateBulkActionRequestBodyCase2Action;
329
276
  filter: BulkActionFilter;
@@ -331,11 +278,8 @@ export interface CreateBulkActionRequestBodyCase2 {
331
278
  /** Region identifier to replay runs in. When omitted, each replay keeps the original run's region. */
332
279
  targetRegion?: string;
333
280
  }
334
- export declare const CreateBulkActionRequestBodyCase2: S.Schema<CreateBulkActionRequestBodyCase2>;
335
281
  export type CreateBulkActionRequestBodyCase3Action = "replay";
336
- export declare const CreateBulkActionRequestBodyCase3Action: any;
337
282
  export type CreateBulkActionRequestBodyCase3RunIdsList = Array<string>;
338
- export declare const CreateBulkActionRequestBodyCase3RunIdsList: S.Schema<CreateBulkActionRequestBodyCase3RunIdsList>;
339
283
  export interface CreateBulkActionRequestBodyCase3 {
340
284
  action: CreateBulkActionRequestBodyCase3Action;
341
285
  runIds: CreateBulkActionRequestBodyCase3RunIdsList;
@@ -343,18 +287,13 @@ export interface CreateBulkActionRequestBodyCase3 {
343
287
  /** Region identifier to replay runs in. When omitted, each replay keeps the original run's region. */
344
288
  targetRegion?: string;
345
289
  }
346
- export declare const CreateBulkActionRequestBodyCase3: S.Schema<CreateBulkActionRequestBodyCase3>;
347
290
  export type CreateBulkActionRequestBody = CreateBulkActionRequestBodyCase0 | CreateBulkActionRequestBodyCase1 | CreateBulkActionRequestBodyCase2 | CreateBulkActionRequestBodyCase3;
348
- export declare const CreateBulkActionRequestBody: S.Schema<CreateBulkActionRequestBody>;
349
291
  export interface CreateBulkActionV1Request {
350
292
  body: CreateBulkActionRequestBody;
351
293
  }
352
- export declare const CreateBulkActionV1Request: S.Schema<CreateBulkActionV1Request>;
353
294
  export interface CreateBulkActionV1Response {
354
295
  }
355
- export declare const CreateBulkActionV1Response: S.Schema<CreateBulkActionV1Response>;
356
296
  export type CreateProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
357
- export declare const CreateProjectEnvvarV1RequestEnv: any;
358
297
  export interface CreateProjectEnvvarV1Request {
359
298
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
360
299
  projectRef: string;
@@ -363,11 +302,9 @@ export interface CreateProjectEnvvarV1Request {
363
302
  name: string;
364
303
  value: string;
365
304
  }
366
- export declare const CreateProjectEnvvarV1Request: S.Schema<CreateProjectEnvvarV1Request>;
367
305
  export interface SucceedResponse {
368
306
  success: boolean;
369
307
  }
370
- export declare const SucceedResponse: S.Schema<SucceedResponse>;
371
308
  export interface CreateScheduleV1Request {
372
309
  task: string;
373
310
  cron: string;
@@ -376,15 +313,12 @@ export interface CreateScheduleV1Request {
376
313
  /** Defaults to "UTC". In IANA format ("America/New_York"). If set then it will trigger at the CRON frequency in that timezone and respect daylight savings time. */
377
314
  timezone?: string;
378
315
  }
379
- export declare const CreateScheduleV1Request: S.Schema<CreateScheduleV1Request>;
380
316
  /** Up to 10 tags on the session row, for dashboard filtering. */
381
317
  export type CreateSessionV1RequestTagsList = Array<string>;
382
- export declare const CreateSessionV1RequestTagsList: S.Schema<CreateSessionV1RequestTagsList>;
383
318
  /** Arbitrary JSON metadata. */
384
319
  export type CreateSessionV1RequestMetadataMap = {
385
320
  [key: string]: unknown | undefined;
386
321
  };
387
- export declare const CreateSessionV1RequestMetadataMap: S.Schema<CreateSessionV1RequestMetadataMap>;
388
322
  export interface CreateSessionV1Request {
389
323
  /** Free-form discriminator for the session, e.g. `chat.agent`. Not validated against an enum. */
390
324
  type: string;
@@ -400,15 +334,12 @@ export interface CreateSessionV1Request {
400
334
  /** Absolute expiry timestamp for retention. */
401
335
  expiresAt?: string;
402
336
  }
403
- export declare const CreateSessionV1Request: S.Schema<CreateSessionV1Request>;
404
337
  /** Tags on the session row. */
405
338
  export type CreateSessionV1ResponseTagsList = Array<string>;
406
- export declare const CreateSessionV1ResponseTagsList: S.Schema<CreateSessionV1ResponseTagsList>;
407
339
  /** Arbitrary JSON metadata, or `null` if unset. */
408
340
  export type CreateSessionV1ResponseMetadataMap = {
409
341
  [key: string]: unknown | undefined;
410
342
  };
411
- export declare const CreateSessionV1ResponseMetadataMap: S.Schema<CreateSessionV1ResponseMetadataMap>;
412
343
  export interface CreateSessionV1Response {
413
344
  /** The session's friendly ID, prefixed with `session_`. */
414
345
  id: string;
@@ -440,12 +371,9 @@ export interface CreateSessionV1Response {
440
371
  /** `true` if an open session already existed for this `externalId` (idempotent upsert), `false` if newly created. */
441
372
  isCached: boolean;
442
373
  }
443
- export declare const CreateSessionV1Response: S.Schema<CreateSessionV1Response>;
444
374
  export type CreateWaitpointTokenV1RequestTagsCase1List = Array<string>;
445
- export declare const CreateWaitpointTokenV1RequestTagsCase1List: S.Schema<CreateWaitpointTokenV1RequestTagsCase1List>;
446
375
  /** Tags to attach to the waitpoint. You can set up to 10 tags, each under 128 characters. We recommend namespacing tags with a prefix like `user:1234567` or `org_9876543`. */
447
376
  export type CreateWaitpointTokenV1RequestTags = string | CreateWaitpointTokenV1RequestTagsCase1List;
448
- export declare const CreateWaitpointTokenV1RequestTags: S.Schema<CreateWaitpointTokenV1RequestTags>;
449
377
  export interface CreateWaitpointTokenV1Request {
450
378
  /** An optional idempotency key. If you pass the same key twice before it expires, you will receive the original token back. The returned token may already be completed, in which case `wait.forToken()` will continue immediately. */
451
379
  idempotencyKey?: string;
@@ -456,7 +384,6 @@ export interface CreateWaitpointTokenV1Request {
456
384
  /** Tags to attach to the waitpoint. You can set up to 10 tags, each under 128 characters. We recommend namespacing tags with a prefix like `user:1234567` or `org_9876543`. */
457
385
  tags?: CreateWaitpointTokenV1RequestTags;
458
386
  }
459
- export declare const CreateWaitpointTokenV1Request: S.Schema<CreateWaitpointTokenV1Request>;
460
387
  export interface CreateWaitpointTokenResponse {
461
388
  /** The unique ID of the waitpoint token. */
462
389
  id: string;
@@ -465,14 +392,11 @@ export interface CreateWaitpointTokenResponse {
465
392
  /** An HTTP callback URL. A POST request to this URL (with an optional JSON body) will complete the waitpoint without needing an API key. */
466
393
  url: string;
467
394
  }
468
- export declare const CreateWaitpointTokenResponse: S.Schema<CreateWaitpointTokenResponse>;
469
395
  export interface DeactivateScheduleV1Request {
470
396
  /** The ID of the schedule. */
471
397
  schedule_id: string;
472
398
  }
473
- export declare const DeactivateScheduleV1Request: S.Schema<DeactivateScheduleV1Request>;
474
399
  export type DeleteProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
475
- export declare const DeleteProjectEnvvarV1RequestEnv: any;
476
400
  export interface DeleteProjectEnvvarV1Request {
477
401
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
478
402
  projectRef: string;
@@ -481,21 +405,16 @@ export interface DeleteProjectEnvvarV1Request {
481
405
  /** The name of the environment variable. */
482
406
  name: string;
483
407
  }
484
- export declare const DeleteProjectEnvvarV1Request: S.Schema<DeleteProjectEnvvarV1Request>;
485
408
  export interface DeleteScheduleV1Request {
486
409
  /** The ID of the schedule. */
487
410
  schedule_id: string;
488
411
  }
489
- export declare const DeleteScheduleV1Request: S.Schema<DeleteScheduleV1Request>;
490
412
  export interface DeleteScheduleV1Response {
491
413
  }
492
- export declare const DeleteScheduleV1Response: S.Schema<DeleteScheduleV1Response>;
493
414
  /** The scope of data to query - environment (default), project, or organization */
494
415
  export type ExecuteQueryV1RequestScope = "environment" | "project" | "organization";
495
- export declare const ExecuteQueryV1RequestScope: any;
496
416
  /** Response format - "json" returns structured data (default), "csv" returns CSV string */
497
417
  export type ExecuteQueryV1RequestFormat = "json" | "csv";
498
- export declare const ExecuteQueryV1RequestFormat: any;
499
418
  export interface ExecuteQueryV1Request {
500
419
  /** The TRQL query to execute */
501
420
  query: string;
@@ -510,48 +429,38 @@ export interface ExecuteQueryV1Request {
510
429
  /** Response format - "json" returns structured data (default), "csv" returns CSV string */
511
430
  format?: ExecuteQueryV1RequestFormat | (string & {});
512
431
  }
513
- export declare const ExecuteQueryV1Request: S.Schema<ExecuteQueryV1Request>;
514
432
  export type ExecuteQueryResponseCase0Format = "json";
515
- export declare const ExecuteQueryResponseCase0Format: any;
516
433
  /** Array of result rows */
517
434
  export type ExecuteQueryResponseCase0ResultsList = Array<unknown>;
518
- export declare const ExecuteQueryResponseCase0ResultsList: S.Schema<ExecuteQueryResponseCase0ResultsList>;
519
435
  /** JSON format response */
520
436
  export interface ExecuteQueryResponseCase0 {
521
437
  format?: ExecuteQueryResponseCase0Format;
522
438
  /** Array of result rows */
523
439
  results?: ExecuteQueryResponseCase0ResultsList;
524
440
  }
525
- export declare const ExecuteQueryResponseCase0: S.Schema<ExecuteQueryResponseCase0>;
526
441
  export type ExecuteQueryResponseCase1Format = "csv";
527
- export declare const ExecuteQueryResponseCase1Format: any;
528
442
  /** CSV format response */
529
443
  export interface ExecuteQueryResponseCase1 {
530
444
  format?: ExecuteQueryResponseCase1Format;
531
445
  /** CSV-formatted results */
532
446
  results?: string;
533
447
  }
534
- export declare const ExecuteQueryResponseCase1: S.Schema<ExecuteQueryResponseCase1>;
535
448
  export type ExecuteQueryResponse = ExecuteQueryResponseCase0 | ExecuteQueryResponseCase1;
536
- export declare const ExecuteQueryResponse: S.Schema<ExecuteQueryResponse>;
537
449
  export type ExecuteQueryV1Response = ExecuteQueryResponse;
538
- export declare const ExecuteQueryV1Response: S.Schema<ExecuteQueryV1Response>;
539
450
  export interface GetBatchResultsV1Request {
540
451
  /** The ID of the batch, starts with `batch_`. */
541
452
  batchId: string;
542
453
  }
543
- export declare const GetBatchResultsV1Request: S.Schema<GetBatchResultsV1Request>;
544
454
  export interface GetBatchResultsV1ResponseItemsItemUsage {
545
455
  /** Duration of the run in milliseconds. */
546
456
  durationMs?: number;
547
457
  }
548
- export declare const GetBatchResultsV1ResponseItemsItemUsage: S.Schema<GetBatchResultsV1ResponseItemsItemUsage>;
549
458
  export interface GetBatchResultsV1ResponseItemsItem {
550
459
  /** Whether this run completed successfully. */
551
460
  ok: boolean;
552
461
  /** The run ID. */
553
462
  id: string;
554
- /** The serialized output as a string (present when ok is true). Use outputType to determine how to parse it — for "application/json" use JSON.parse(). */
463
+ /** The serialized output as a string (present when ok is true). Use outputType to determine how to parse it -- for "application/json" use JSON.parse(). */
555
464
  output?: string;
556
465
  /** The content type of the serialized output, e.g. "application/json". */
557
466
  outputType?: string;
@@ -561,28 +470,22 @@ export interface GetBatchResultsV1ResponseItemsItem {
561
470
  /** The task identifier. */
562
471
  taskIdentifier?: string;
563
472
  }
564
- export declare const GetBatchResultsV1ResponseItemsItem: S.Schema<GetBatchResultsV1ResponseItemsItem>;
565
473
  /** Execution results for each run in the batch. */
566
474
  export type GetBatchResultsV1ResponseItemsList = Array<GetBatchResultsV1ResponseItemsItem>;
567
- export declare const GetBatchResultsV1ResponseItemsList: S.Schema<GetBatchResultsV1ResponseItemsList>;
568
475
  export interface GetBatchResultsV1Response {
569
476
  /** The batch ID. */
570
477
  id?: string;
571
478
  /** Execution results for each run in the batch. */
572
479
  items?: GetBatchResultsV1ResponseItemsList;
573
480
  }
574
- export declare const GetBatchResultsV1Response: S.Schema<GetBatchResultsV1Response>;
575
481
  export interface GetBatchV1Request {
576
482
  /** The ID of the batch, starts with `batch_`. */
577
483
  batchId: string;
578
484
  }
579
- export declare const GetBatchV1Request: S.Schema<GetBatchV1Request>;
580
485
  /** The current status of the batch. */
581
486
  export type GetBatchV1ResponseStatus = "PENDING" | "PROCESSING" | "COMPLETED" | "PARTIAL_FAILED" | "ABORTED";
582
- export declare const GetBatchV1ResponseStatus: any;
583
487
  /** Array of run IDs in the batch. */
584
488
  export type GetBatchV1ResponseRunsList = Array<string>;
585
- export declare const GetBatchV1ResponseRunsList: S.Schema<GetBatchV1ResponseRunsList>;
586
489
  export interface GetBatchV1ResponseErrorsItem {
587
490
  /** The index of the failed item. */
588
491
  index?: number;
@@ -593,10 +496,8 @@ export interface GetBatchV1ResponseErrorsItem {
593
496
  /** An optional error code. */
594
497
  errorCode?: string | null;
595
498
  }
596
- export declare const GetBatchV1ResponseErrorsItem: S.Schema<GetBatchV1ResponseErrorsItem>;
597
499
  /** Error details for failed items (present for PARTIAL_FAILED batches). */
598
500
  export type GetBatchV1ResponseErrorsList = Array<GetBatchV1ResponseErrorsItem>;
599
- export declare const GetBatchV1ResponseErrorsList: S.Schema<GetBatchV1ResponseErrorsList>;
600
501
  export interface GetBatchV1Response {
601
502
  /** The batch ID. */
602
503
  id?: string;
@@ -617,16 +518,12 @@ export interface GetBatchV1Response {
617
518
  /** Error details for failed items (present for PARTIAL_FAILED batches). */
618
519
  errors?: GetBatchV1ResponseErrorsList | null;
619
520
  }
620
- export declare const GetBatchV1Response: S.Schema<GetBatchV1Response>;
621
521
  export interface GetBulkActionV1Request {
622
522
  /** The ID of a bulk action, starts with `bulk_`. */
623
523
  bulkActionId: string;
624
524
  }
625
- export declare const GetBulkActionV1Request: S.Schema<GetBulkActionV1Request>;
626
525
  export type BulkActionObjectType = "CANCEL" | "REPLAY";
627
- export declare const BulkActionObjectType: any;
628
526
  export type BulkActionObjectStatus = "PENDING" | "COMPLETED" | "ABORTED";
629
- export declare const BulkActionObjectStatus: any;
630
527
  export interface BulkActionObjectCounts {
631
528
  /** The number of runs selected when the bulk action was created. */
632
529
  total: number;
@@ -635,7 +532,6 @@ export interface BulkActionObjectCounts {
635
532
  /** The number of runs that could not be processed. */
636
533
  failure: number;
637
534
  }
638
- export declare const BulkActionObjectCounts: S.Schema<BulkActionObjectCounts>;
639
535
  export interface BulkActionObject {
640
536
  /** The bulk action ID, prefixed with `bulk_`. */
641
537
  id: string;
@@ -647,12 +543,10 @@ export interface BulkActionObject {
647
543
  createdAt: string;
648
544
  completedAt?: string;
649
545
  }
650
- export declare const BulkActionObject: S.Schema<BulkActionObject>;
651
546
  export interface GetConcurrencyLimitV1Request {
652
547
  /** The limit's name, as declared with `concurrencyLimit()` */
653
548
  name: string;
654
549
  }
655
- export declare const GetConcurrencyLimitV1Request: S.Schema<GetConcurrencyLimitV1Request>;
656
550
  /** Caps each concurrencyKey pool; runs without a key share one pool */
657
551
  export interface ConcurrencyLimitObjectPerKey {
658
552
  /** Enforced right now (null = no per-key bound). Enforcement clamps it to the environment concurrency limit at admit time. */
@@ -664,7 +558,6 @@ export interface ConcurrencyLimitObjectPerKey {
664
558
  /** When the override was applied */
665
559
  overriddenAt?: string | null;
666
560
  }
667
- export declare const ConcurrencyLimitObjectPerKey: S.Schema<ConcurrencyLimitObjectPerKey>;
668
561
  /** Caps every run holding this limit, keys or not */
669
562
  export interface ConcurrencyLimitObjectTotal {
670
563
  /** Enforced right now (null = no total bound). Enforcement clamps it to the environment concurrency limit at admit time. */
@@ -676,7 +569,6 @@ export interface ConcurrencyLimitObjectTotal {
676
569
  /** When the override was applied */
677
570
  overriddenAt?: string | null;
678
571
  }
679
- export declare const ConcurrencyLimitObjectTotal: S.Schema<ConcurrencyLimitObjectTotal>;
680
572
  export interface ConcurrencyLimitObject {
681
573
  /** The limit's id, starting with `climit_` */
682
574
  id: string;
@@ -693,31 +585,25 @@ export interface ConcurrencyLimitObject {
693
585
  /** Whether the limit is paused. A paused limit admits no runs until resumed; its configured bounds are kept. */
694
586
  paused?: boolean;
695
587
  }
696
- export declare const ConcurrencyLimitObject: S.Schema<ConcurrencyLimitObject>;
697
588
  export interface GetDeploymentV1Request {
698
589
  /** The deployment ID. */
699
590
  deploymentId: string;
700
591
  }
701
- export declare const GetDeploymentV1Request: S.Schema<GetDeploymentV1Request>;
702
592
  /** The current status of the deployment */
703
593
  export type GetDeploymentV1ResponseStatus = "PENDING" | "INSTALLING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
704
- export declare const GetDeploymentV1ResponseStatus: any;
705
594
  export interface GetDeploymentV1ResponseWorkerTasksItem {
706
595
  id?: string;
707
596
  slug?: string;
708
597
  filePath?: string;
709
598
  exportName?: string;
710
599
  }
711
- export declare const GetDeploymentV1ResponseWorkerTasksItem: S.Schema<GetDeploymentV1ResponseWorkerTasksItem>;
712
600
  export type GetDeploymentV1ResponseWorkerTasksList = Array<GetDeploymentV1ResponseWorkerTasksItem>;
713
- export declare const GetDeploymentV1ResponseWorkerTasksList: S.Schema<GetDeploymentV1ResponseWorkerTasksList>;
714
601
  /** Worker information if available */
715
602
  export interface GetDeploymentV1ResponseWorker {
716
603
  id?: string;
717
604
  version?: string;
718
605
  tasks?: GetDeploymentV1ResponseWorkerTasksList;
719
606
  }
720
- export declare const GetDeploymentV1ResponseWorker: S.Schema<GetDeploymentV1ResponseWorker>;
721
607
  export interface GetDeploymentV1Response {
722
608
  /** The deployment ID */
723
609
  id?: string;
@@ -742,17 +628,13 @@ export interface GetDeploymentV1Response {
742
628
  /** Worker information if available */
743
629
  worker?: GetDeploymentV1ResponseWorker | null;
744
630
  }
745
- export declare const GetDeploymentV1Response: S.Schema<GetDeploymentV1Response>;
746
631
  export interface GetErrorV1Request {
747
632
  /** The ID of an error group, starts with `error_`. */
748
633
  errorId: string;
749
634
  }
750
- export declare const GetErrorV1Request: S.Schema<GetErrorV1Request>;
751
635
  /** The most recent worker versions the error has occurred in (up to five) */
752
636
  export type ErrorObjectAffectedVersionsList = Array<string>;
753
- export declare const ErrorObjectAffectedVersionsList: S.Schema<ErrorObjectAffectedVersionsList>;
754
637
  export type ErrorObjectStatus = "unresolved" | "resolved" | "ignored";
755
- export declare const ErrorObjectStatus: any;
756
638
  export interface ErrorObject {
757
639
  /** The unique ID of the error group, prefixed with `error_` */
758
640
  id: string;
@@ -782,13 +664,10 @@ export interface ErrorObject {
782
664
  ignoredUntilOccurrenceRate?: number | null;
783
665
  ignoredUntilTotalOccurrences?: number | null;
784
666
  }
785
- export declare const ErrorObject: S.Schema<ErrorObject>;
786
667
  export interface GetLatestDeploymentV1Request {
787
668
  }
788
- export declare const GetLatestDeploymentV1Request: S.Schema<GetLatestDeploymentV1Request>;
789
669
  /** The current status of the deployment */
790
670
  export type GetLatestDeploymentV1ResponseStatus = "PENDING" | "INSTALLING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
791
- export declare const GetLatestDeploymentV1ResponseStatus: any;
792
671
  export interface GetLatestDeploymentV1Response {
793
672
  /** The deployment ID */
794
673
  id?: string;
@@ -805,9 +684,7 @@ export interface GetLatestDeploymentV1Response {
805
684
  /** Error data if the deployment failed */
806
685
  errorData?: unknown | null;
807
686
  }
808
- export declare const GetLatestDeploymentV1Response: S.Schema<GetLatestDeploymentV1Response>;
809
687
  export type GetProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
810
- export declare const GetProjectEnvvarV1RequestEnv: any;
811
688
  export interface GetProjectEnvvarV1Request {
812
689
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
813
690
  projectRef: string;
@@ -816,18 +693,14 @@ export interface GetProjectEnvvarV1Request {
816
693
  /** The name of the environment variable. */
817
694
  name: string;
818
695
  }
819
- export declare const GetProjectEnvvarV1Request: S.Schema<GetProjectEnvvarV1Request>;
820
696
  export interface EnvVarValue {
821
697
  /** The value to store. An empty string is valid and is stored as-is, not treated as a deletion. */
822
698
  value: string;
823
699
  }
824
- export declare const EnvVarValue: S.Schema<EnvVarValue>;
825
700
  export interface GetQuerySchemaV1Request {
826
701
  }
827
- export declare const GetQuerySchemaV1Request: S.Schema<GetQuerySchemaV1Request>;
828
702
  /** Allowed values for enum-like columns */
829
703
  export type GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList = Array<string>;
830
- export declare const GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList: S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList>;
831
704
  export interface GetQuerySchemaV1ResponseTablesItemColumnsItem {
832
705
  /** Column name */
833
706
  name?: string;
@@ -842,9 +715,7 @@ export interface GetQuerySchemaV1ResponseTablesItemColumnsItem {
842
715
  /** Whether this is a core column included in default queries */
843
716
  coreColumn?: boolean;
844
717
  }
845
- export declare const GetQuerySchemaV1ResponseTablesItemColumnsItem: S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
846
718
  export type GetQuerySchemaV1ResponseTablesItemColumnsList = Array<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
847
- export declare const GetQuerySchemaV1ResponseTablesItemColumnsList: S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsList>;
848
719
  export interface GetQuerySchemaV1ResponseTablesItem {
849
720
  /** Table name used in TRQL queries */
850
721
  name?: string;
@@ -854,28 +725,21 @@ export interface GetQuerySchemaV1ResponseTablesItem {
854
725
  timeColumn?: string;
855
726
  columns?: GetQuerySchemaV1ResponseTablesItemColumnsList;
856
727
  }
857
- export declare const GetQuerySchemaV1ResponseTablesItem: S.Schema<GetQuerySchemaV1ResponseTablesItem>;
858
728
  export type GetQuerySchemaV1ResponseTablesList = Array<GetQuerySchemaV1ResponseTablesItem>;
859
- export declare const GetQuerySchemaV1ResponseTablesList: S.Schema<GetQuerySchemaV1ResponseTablesList>;
860
729
  export interface GetQuerySchemaV1Response {
861
730
  tables?: GetQuerySchemaV1ResponseTablesList;
862
731
  }
863
- export declare const GetQuerySchemaV1Response: S.Schema<GetQuerySchemaV1Response>;
864
732
  export type GetQueueV1RequestType = "id" | "task" | "custom";
865
- export declare const GetQueueV1RequestType: any;
866
733
  export interface GetQueueV1Request {
867
734
  /** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` query parameter. */
868
735
  queueParam: string;
869
736
  /** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
870
737
  type?: GetQueueV1RequestType | (string & {});
871
738
  }
872
- export declare const GetQueueV1Request: S.Schema<GetQueueV1Request>;
873
739
  /** The type of queue: - `task`: Created automatically for each task - `custom`: Created explicitly in your code using `queue()` */
874
740
  export type QueueObjectType = "task" | "custom";
875
- export declare const QueueObjectType: any;
876
741
  /** Discriminates the shape: - `V1`: the queue carries its own `concurrencyLimit` (applied per key when runs pass a `concurrencyKey`, to the whole queue when they don't) and its `concurrency` override state - `V2`: the queue is only the line runs wait in; concurrency is declared with the task `concurrency` option and managed through the concurrency-limits endpoints. `concurrencyLimit` is always null and `concurrency` is absent. */
877
742
  export type QueueObjectVersion = "V1" | "V2";
878
- export declare const QueueObjectVersion: any;
879
743
  /** Detailed concurrency information. V1 queues only. */
880
744
  export interface QueueObjectConcurrency {
881
745
  /** The effective/current concurrency limit */
@@ -889,7 +753,6 @@ export interface QueueObjectConcurrency {
889
753
  /** Who overrode the concurrency limit (null if via API) */
890
754
  overriddenBy?: string | null;
891
755
  }
892
- export declare const QueueObjectConcurrency: S.Schema<QueueObjectConcurrency>;
893
756
  export interface QueueObject {
894
757
  /** The queue ID, e.g., `queue_1234` */
895
758
  id: string;
@@ -910,18 +773,14 @@ export interface QueueObject {
910
773
  /** Detailed concurrency information. V1 queues only. */
911
774
  concurrency?: QueueObjectConcurrency;
912
775
  }
913
- export declare const QueueObject: S.Schema<QueueObject>;
914
776
  export interface GetRunEventsV1Request {
915
777
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
916
778
  runId: string;
917
779
  }
918
- export declare const GetRunEventsV1Request: S.Schema<GetRunEventsV1Request>;
919
780
  /** The log level of the event. */
920
781
  export type GetRunEventsV1ResponseEventsItemLevel = "TRACE" | "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR";
921
- export declare const GetRunEventsV1ResponseEventsItemLevel: any;
922
782
  /** The kind of span event. */
923
783
  export type GetRunEventsV1ResponseEventsItemKind = "UNSPECIFIED" | "INTERNAL" | "SERVER" | "CLIENT" | "PRODUCER" | "CONSUMER" | "UNRECOGNIZED" | "LOG";
924
- export declare const GetRunEventsV1ResponseEventsItemKind: any;
925
784
  export interface GetRunEventsV1ResponseEventsItemEventsItem {
926
785
  /** The event name (e.g. "exception", "cancellation", "attempt_failed"). */
927
786
  name?: string;
@@ -930,18 +789,14 @@ export interface GetRunEventsV1ResponseEventsItemEventsItem {
930
789
  /** Event-specific properties. */
931
790
  properties?: unknown;
932
791
  }
933
- export declare const GetRunEventsV1ResponseEventsItemEventsItem: S.Schema<GetRunEventsV1ResponseEventsItemEventsItem>;
934
792
  /** Span events (e.g. exceptions, cancellations) that occurred during this event. */
935
793
  export type GetRunEventsV1ResponseEventsItemEventsList = Array<GetRunEventsV1ResponseEventsItemEventsItem>;
936
- export declare const GetRunEventsV1ResponseEventsItemEventsList: S.Schema<GetRunEventsV1ResponseEventsItemEventsList>;
937
794
  export type GetRunEventsV1ResponseEventsItemStyleAccessoryStyle = "codepath";
938
- export declare const GetRunEventsV1ResponseEventsItemStyleAccessoryStyle: any;
939
795
  /** Accessory display element. */
940
796
  export interface GetRunEventsV1ResponseEventsItemStyleAccessory {
941
797
  text?: string;
942
798
  style?: GetRunEventsV1ResponseEventsItemStyleAccessoryStyle;
943
799
  }
944
- export declare const GetRunEventsV1ResponseEventsItemStyleAccessory: S.Schema<GetRunEventsV1ResponseEventsItemStyleAccessory>;
945
800
  /** Display style metadata for the event. */
946
801
  export interface GetRunEventsV1ResponseEventsItemStyle {
947
802
  /** Icon identifier for display. */
@@ -951,7 +806,6 @@ export interface GetRunEventsV1ResponseEventsItemStyle {
951
806
  /** Accessory display element. */
952
807
  accessory?: GetRunEventsV1ResponseEventsItemStyleAccessory;
953
808
  }
954
- export declare const GetRunEventsV1ResponseEventsItemStyle: S.Schema<GetRunEventsV1ResponseEventsItemStyle>;
955
809
  export interface GetRunEventsV1ResponseEventsItem {
956
810
  /** The span ID of the event. */
957
811
  spanId?: string;
@@ -984,27 +838,22 @@ export interface GetRunEventsV1ResponseEventsItem {
984
838
  /** Display style metadata for the event. */
985
839
  style?: GetRunEventsV1ResponseEventsItemStyle;
986
840
  }
987
- export declare const GetRunEventsV1ResponseEventsItem: S.Schema<GetRunEventsV1ResponseEventsItem>;
988
841
  export type GetRunEventsV1ResponseEventsList = Array<GetRunEventsV1ResponseEventsItem>;
989
- export declare const GetRunEventsV1ResponseEventsList: S.Schema<GetRunEventsV1ResponseEventsList>;
990
842
  export interface GetRunEventsV1Response {
991
843
  events?: GetRunEventsV1ResponseEventsList;
992
844
  }
993
- export declare const GetRunEventsV1Response: S.Schema<GetRunEventsV1Response>;
994
845
  export interface GetRunResultV1Request {
995
846
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
996
847
  runId: string;
997
848
  }
998
- export declare const GetRunResultV1Request: S.Schema<GetRunResultV1Request>;
999
849
  /** Execution usage stats. */
1000
850
  export type GetRunResultV1ResponseUsage = GetBatchResultsV1ResponseItemsItemUsage;
1001
- export declare const GetRunResultV1ResponseUsage: S.Schema<GetBatchResultsV1ResponseItemsItemUsage>;
1002
851
  export interface GetRunResultV1Response {
1003
852
  /** Whether the run completed successfully. */
1004
853
  ok: boolean;
1005
854
  /** The run ID. */
1006
855
  id: string;
1007
- /** The serialized output as a string (present when ok is true). Use outputType to determine how to parse it — for "application/json" use JSON.parse(). */
856
+ /** The serialized output as a string (present when ok is true). Use outputType to determine how to parse it -- for "application/json" use JSON.parse(). */
1008
857
  output?: string;
1009
858
  /** The content type of the serialized output, e.g. "application/json". */
1010
859
  outputType?: string;
@@ -1015,19 +864,14 @@ export interface GetRunResultV1Response {
1015
864
  /** The task identifier. */
1016
865
  taskIdentifier?: string;
1017
866
  }
1018
- export declare const GetRunResultV1Response: S.Schema<GetRunResultV1Response>;
1019
867
  export interface GetRunTraceV1Request {
1020
868
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
1021
869
  runId: string;
1022
870
  }
1023
- export declare const GetRunTraceV1Request: S.Schema<GetRunTraceV1Request>;
1024
871
  export type SpanDetailedSummaryDataLevel = "TRACE" | "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR";
1025
- export declare const SpanDetailedSummaryDataLevel: any;
1026
872
  export type SpanDetailedSummaryDataEventsItem = GetRunEventsV1ResponseEventsItemEventsItem;
1027
- export declare const SpanDetailedSummaryDataEventsItem: S.Schema<GetRunEventsV1ResponseEventsItemEventsItem>;
1028
873
  /** Span events (e.g. exceptions, cancellations) that occurred during this span. */
1029
874
  export type SpanDetailedSummaryDataEventsList = Array<GetRunEventsV1ResponseEventsItemEventsItem>;
1030
- export declare const SpanDetailedSummaryDataEventsList: S.Schema<SpanDetailedSummaryDataEventsList>;
1031
875
  export interface SpanDetailedSummaryData {
1032
876
  /** The span message. */
1033
877
  message?: string;
@@ -1047,10 +891,8 @@ export interface SpanDetailedSummaryData {
1047
891
  /** Span events (e.g. exceptions, cancellations) that occurred during this span. */
1048
892
  events?: SpanDetailedSummaryDataEventsList;
1049
893
  }
1050
- export declare const SpanDetailedSummaryData: S.Schema<SpanDetailedSummaryData>;
1051
894
  /** Nested child spans. Each child has the same structure as the parent span. */
1052
895
  export type SpanDetailedSummaryChildrenList = Array<SpanDetailedSummary>;
1053
- export declare const SpanDetailedSummaryChildrenList: S.Schema<SpanDetailedSummaryChildrenList>;
1054
896
  export interface SpanDetailedSummary {
1055
897
  /** The span ID. */
1056
898
  id?: string;
@@ -1062,41 +904,31 @@ export interface SpanDetailedSummary {
1062
904
  /** Nested child spans. Each child has the same structure as the parent span. */
1063
905
  children?: SpanDetailedSummaryChildrenList;
1064
906
  }
1065
- export declare const SpanDetailedSummary: S.Schema<SpanDetailedSummary>;
1066
907
  export interface GetRunTraceV1ResponseTrace {
1067
908
  /** The OTel trace ID. */
1068
909
  traceId?: string;
1069
910
  /** The requested run's span, with nested descendant spans as `children`. Not necessarily the trace-wide root span. */
1070
911
  rootSpan?: SpanDetailedSummary;
1071
912
  }
1072
- export declare const GetRunTraceV1ResponseTrace: S.Schema<GetRunTraceV1ResponseTrace>;
1073
913
  export interface GetRunTraceV1Response {
1074
914
  trace?: GetRunTraceV1ResponseTrace;
1075
915
  }
1076
- export declare const GetRunTraceV1Response: S.Schema<GetRunTraceV1Response>;
1077
916
  export interface GetRunV1Request {
1078
917
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
1079
918
  runId: string;
1080
919
  }
1081
- export declare const GetRunV1Request: S.Schema<GetRunV1Request>;
1082
920
  /** The status of the run */
1083
921
  export type GetRunV1ResponseStatus = "PENDING_VERSION" | "DELAYED" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
1084
- export declare const GetRunV1ResponseStatus: any;
1085
922
  /** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
1086
923
  export type GetRunV1ResponseTagsList = Array<string>;
1087
- export declare const GetRunV1ResponseTagsList: S.Schema<GetRunV1ResponseTagsList>;
1088
924
  /** The name of the function that triggered the run */
1089
925
  export type GetRunV1ResponseTriggerFunction = "trigger" | "triggerAndWait" | "batchTrigger" | "batchTriggerAndWait";
1090
- export declare const GetRunV1ResponseTriggerFunction: any;
1091
926
  /** The status of the run */
1092
927
  export type CommonRunObjectStatus = "PENDING_VERSION" | "DELAYED" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
1093
- export declare const CommonRunObjectStatus: any;
1094
928
  /** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
1095
929
  export type CommonRunObjectTagsList = Array<string>;
1096
- export declare const CommonRunObjectTagsList: S.Schema<CommonRunObjectTagsList>;
1097
930
  /** The name of the function that triggered the run */
1098
931
  export type CommonRunObjectTriggerFunction = "trigger" | "triggerAndWait" | "batchTrigger" | "batchTriggerAndWait";
1099
- export declare const CommonRunObjectTriggerFunction: any;
1100
932
  export interface CommonRunObject {
1101
933
  /** The unique ID of the run, prefixed with `run_` */
1102
934
  id: string;
@@ -1138,10 +970,8 @@ export interface CommonRunObject {
1138
970
  /** The name of the function that triggered the run */
1139
971
  triggerFunction?: CommonRunObjectTriggerFunction;
1140
972
  }
1141
- export declare const CommonRunObject: S.Schema<CommonRunObject>;
1142
973
  /** The immediate children of the run. Will be omitted if the run has no children */
1143
974
  export type GetRunV1ResponseRelatedRunsChildrenList = Array<CommonRunObject>;
1144
- export declare const GetRunV1ResponseRelatedRunsChildrenList: S.Schema<GetRunV1ResponseRelatedRunsChildrenList>;
1145
975
  export interface GetRunV1ResponseRelatedRuns {
1146
976
  /** The root run of the run hierarchy. Will be omitted if the run is the root run */
1147
977
  root?: CommonRunObject;
@@ -1150,9 +980,7 @@ export interface GetRunV1ResponseRelatedRuns {
1150
980
  /** The immediate children of the run. Will be omitted if the run has no children */
1151
981
  children?: GetRunV1ResponseRelatedRunsChildrenList;
1152
982
  }
1153
- export declare const GetRunV1ResponseRelatedRuns: S.Schema<GetRunV1ResponseRelatedRuns>;
1154
983
  export type GetRunV1ResponseScheduleGeneratorType = "CRON";
1155
- export declare const GetRunV1ResponseScheduleGeneratorType: any;
1156
984
  export interface GetRunV1ResponseScheduleGenerator {
1157
985
  type?: GetRunV1ResponseScheduleGeneratorType;
1158
986
  /** The cron expression used to generate the schedule */
@@ -1160,7 +988,6 @@ export interface GetRunV1ResponseScheduleGenerator {
1160
988
  /** The description of the generator in plain english */
1161
989
  description?: string;
1162
990
  }
1163
- export declare const GetRunV1ResponseScheduleGenerator: S.Schema<GetRunV1ResponseScheduleGenerator>;
1164
991
  /** The schedule that triggered the run. Will be omitted if the run was not triggered by a schedule */
1165
992
  export interface GetRunV1ResponseSchedule {
1166
993
  /** The unique ID of the schedule, prefixed with `sched_` */
@@ -1171,15 +998,12 @@ export interface GetRunV1ResponseSchedule {
1171
998
  deduplicationKey?: string;
1172
999
  generator: GetRunV1ResponseScheduleGenerator;
1173
1000
  }
1174
- export declare const GetRunV1ResponseSchedule: S.Schema<GetRunV1ResponseSchedule>;
1175
1001
  export type GetRunV1ResponseAttemptsItemStatus = "PENDING" | "EXECUTING" | "PAUSED" | "COMPLETED" | "FAILED" | "CANCELED";
1176
- export declare const GetRunV1ResponseAttemptsItemStatus: any;
1177
1002
  export interface SerializedError {
1178
1003
  message: string;
1179
1004
  name?: string;
1180
1005
  stackTrace?: string;
1181
1006
  }
1182
- export declare const SerializedError: S.Schema<SerializedError>;
1183
1007
  export interface GetRunV1ResponseAttemptsItem {
1184
1008
  /** The unique ID of the attempt, prefixed with `attempt_` */
1185
1009
  id: string;
@@ -1190,9 +1014,7 @@ export interface GetRunV1ResponseAttemptsItem {
1190
1014
  startedAt?: string;
1191
1015
  completedAt?: string;
1192
1016
  }
1193
- export declare const GetRunV1ResponseAttemptsItem: S.Schema<GetRunV1ResponseAttemptsItem>;
1194
1017
  export type GetRunV1ResponseAttemptsList = Array<GetRunV1ResponseAttemptsItem>;
1195
- export declare const GetRunV1ResponseAttemptsList: S.Schema<GetRunV1ResponseAttemptsList>;
1196
1018
  export interface GetRunV1Response {
1197
1019
  /** The unique ID of the run, prefixed with `run_` */
1198
1020
  id: string;
@@ -1246,39 +1068,30 @@ export interface GetRunV1Response {
1246
1068
  schedule?: GetRunV1ResponseSchedule;
1247
1069
  attempts: GetRunV1ResponseAttemptsList;
1248
1070
  }
1249
- export declare const GetRunV1Response: S.Schema<GetRunV1Response>;
1250
1071
  export interface GetScheduleV1Request {
1251
1072
  /** The ID of the schedule. */
1252
1073
  schedule_id: string;
1253
1074
  }
1254
- export declare const GetScheduleV1Request: S.Schema<GetScheduleV1Request>;
1255
1075
  export interface GetSessionV1Request {
1256
- /** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
1076
+ /** The session's friendly ID (`session_...`) or your `externalId`. The server disambiguates by the `session_` prefix. */
1257
1077
  session: string;
1258
1078
  }
1259
- export declare const GetSessionV1Request: S.Schema<GetSessionV1Request>;
1260
1079
  export interface GetTimezonesV1Request {
1261
1080
  /** Defaults to false. Whether to include UTC in the results or not. */
1262
1081
  excludeUtc?: boolean;
1263
1082
  }
1264
- export declare const GetTimezonesV1Request: S.Schema<GetTimezonesV1Request>;
1265
1083
  export type GetTimezonesResultTimezonesList = Array<string>;
1266
- export declare const GetTimezonesResultTimezonesList: S.Schema<GetTimezonesResultTimezonesList>;
1267
1084
  export interface GetTimezonesResult {
1268
1085
  timezones?: GetTimezonesResultTimezonesList;
1269
1086
  }
1270
- export declare const GetTimezonesResult: S.Schema<GetTimezonesResult>;
1271
1087
  export interface GetWaitpointTokenV1Request {
1272
1088
  /** The ID of the waitpoint token. */
1273
1089
  waitpointId: string;
1274
1090
  }
1275
- export declare const GetWaitpointTokenV1Request: S.Schema<GetWaitpointTokenV1Request>;
1276
1091
  /** The current status of the waitpoint token. */
1277
1092
  export type WaitpointTokenObjectStatus = "WAITING" | "COMPLETED" | "TIMED_OUT";
1278
- export declare const WaitpointTokenObjectStatus: any;
1279
1093
  /** Tags attached to the waitpoint. */
1280
1094
  export type WaitpointTokenObjectTagsList = Array<string>;
1281
- export declare const WaitpointTokenObjectTagsList: S.Schema<WaitpointTokenObjectTagsList>;
1282
1095
  export interface WaitpointTokenObject {
1283
1096
  /** The unique ID of the waitpoint token. */
1284
1097
  id: string;
@@ -1305,7 +1118,6 @@ export interface WaitpointTokenObject {
1305
1118
  /** When the waitpoint token was created. */
1306
1119
  createdAt: string;
1307
1120
  }
1308
- export declare const WaitpointTokenObject: S.Schema<WaitpointTokenObject>;
1309
1121
  export interface IgnoreErrorV1Request {
1310
1122
  /** The ID of an error group, starts with `error_`. */
1311
1123
  errorId: string;
@@ -1318,7 +1130,6 @@ export interface IgnoreErrorV1Request {
1318
1130
  /** An optional human-readable reason for ignoring the error. */
1319
1131
  reason?: string;
1320
1132
  }
1321
- export declare const IgnoreErrorV1Request: S.Schema<IgnoreErrorV1Request>;
1322
1133
  export interface ListBulkActionsV1RequestPage {
1323
1134
  /** Number of bulk actions per page. Maximum is 100. */
1324
1135
  size?: number;
@@ -1327,50 +1138,39 @@ export interface ListBulkActionsV1RequestPage {
1327
1138
  /** The cursor to start the page before. */
1328
1139
  before?: string;
1329
1140
  }
1330
- export declare const ListBulkActionsV1RequestPage: S.Schema<ListBulkActionsV1RequestPage>;
1331
1141
  export interface ListBulkActionsV1Request {
1332
1142
  /** Use this parameter to paginate bulk actions. Pass `page[after]` or `page[before]` using the cursor returned in the previous response. */
1333
1143
  page?: ListBulkActionsV1RequestPage;
1334
1144
  }
1335
- export declare const ListBulkActionsV1Request: S.Schema<ListBulkActionsV1Request>;
1336
1145
  export type ListBulkActionsResultDataList = Array<BulkActionObject>;
1337
- export declare const ListBulkActionsResultDataList: S.Schema<ListBulkActionsResultDataList>;
1338
1146
  export interface ListBulkActionsResultPagination {
1339
1147
  /** Pass this cursor as `page[after]` to retrieve the next page. */
1340
1148
  next?: string;
1341
1149
  /** Pass this cursor as `page[before]` to retrieve the previous page. */
1342
1150
  previous?: string;
1343
1151
  }
1344
- export declare const ListBulkActionsResultPagination: S.Schema<ListBulkActionsResultPagination>;
1345
1152
  export interface ListBulkActionsResult {
1346
1153
  data: ListBulkActionsResultDataList;
1347
1154
  pagination: ListBulkActionsResultPagination;
1348
1155
  }
1349
- export declare const ListBulkActionsResult: S.Schema<ListBulkActionsResult>;
1350
1156
  export interface ListConcurrencyLimitsV1Request {
1351
1157
  page?: number;
1352
1158
  perPage?: number;
1353
1159
  }
1354
- export declare const ListConcurrencyLimitsV1Request: S.Schema<ListConcurrencyLimitsV1Request>;
1355
1160
  export type ListConcurrencyLimitsV1ResponseDataList = Array<ConcurrencyLimitObject>;
1356
- export declare const ListConcurrencyLimitsV1ResponseDataList: S.Schema<ListConcurrencyLimitsV1ResponseDataList>;
1357
1161
  export interface ListConcurrencyLimitsV1ResponsePagination {
1358
1162
  currentPage?: number;
1359
1163
  totalPages?: number;
1360
1164
  count?: number;
1361
1165
  }
1362
- export declare const ListConcurrencyLimitsV1ResponsePagination: S.Schema<ListConcurrencyLimitsV1ResponsePagination>;
1363
1166
  export interface ListConcurrencyLimitsV1Response {
1364
1167
  data?: ListConcurrencyLimitsV1ResponseDataList;
1365
1168
  pagination?: ListConcurrencyLimitsV1ResponsePagination;
1366
1169
  }
1367
- export declare const ListConcurrencyLimitsV1Response: S.Schema<ListConcurrencyLimitsV1Response>;
1368
1170
  export interface ListDashboardsV1Request {
1369
1171
  }
1370
- export declare const ListDashboardsV1Request: S.Schema<ListDashboardsV1Request>;
1371
1172
  /** Widget display type */
1372
1173
  export type ListDashboardsV1ResponseDashboardsItemWidgetsItemType = "bignumber" | "chart" | "table";
1373
- export declare const ListDashboardsV1ResponseDashboardsItemWidgetsItemType: any;
1374
1174
  export interface ListDashboardsV1ResponseDashboardsItemWidgetsItem {
1375
1175
  /** Widget identifier */
1376
1176
  id?: string;
@@ -1381,9 +1181,7 @@ export interface ListDashboardsV1ResponseDashboardsItemWidgetsItem {
1381
1181
  /** Widget display type */
1382
1182
  type?: ListDashboardsV1ResponseDashboardsItemWidgetsItemType;
1383
1183
  }
1384
- export declare const ListDashboardsV1ResponseDashboardsItemWidgetsItem: S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
1385
1184
  export type ListDashboardsV1ResponseDashboardsItemWidgetsList = Array<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
1386
- export declare const ListDashboardsV1ResponseDashboardsItemWidgetsList: S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsList>;
1387
1185
  export interface ListDashboardsV1ResponseDashboardsItem {
1388
1186
  /** Dashboard identifier (e.g. "overview", "llm") */
1389
1187
  key?: string;
@@ -1391,15 +1189,11 @@ export interface ListDashboardsV1ResponseDashboardsItem {
1391
1189
  title?: string;
1392
1190
  widgets?: ListDashboardsV1ResponseDashboardsItemWidgetsList;
1393
1191
  }
1394
- export declare const ListDashboardsV1ResponseDashboardsItem: S.Schema<ListDashboardsV1ResponseDashboardsItem>;
1395
1192
  export type ListDashboardsV1ResponseDashboardsList = Array<ListDashboardsV1ResponseDashboardsItem>;
1396
- export declare const ListDashboardsV1ResponseDashboardsList: S.Schema<ListDashboardsV1ResponseDashboardsList>;
1397
1193
  export interface ListDashboardsV1Response {
1398
1194
  dashboards?: ListDashboardsV1ResponseDashboardsList;
1399
1195
  }
1400
- export declare const ListDashboardsV1Response: S.Schema<ListDashboardsV1Response>;
1401
1196
  export type ListDeploymentsV1RequestStatus = "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
1402
- export declare const ListDeploymentsV1RequestStatus: any;
1403
1197
  export interface ListDeploymentsV1Request {
1404
1198
  /** The deployment ID to start the search from, to get the next page. */
1405
1199
  page_after_?: string;
@@ -1414,10 +1208,8 @@ export interface ListDeploymentsV1Request {
1414
1208
  /** Filter deployments created on or before this date (ISO 8601). Only applied when `from` is also provided. */
1415
1209
  to?: string;
1416
1210
  }
1417
- export declare const ListDeploymentsV1Request: S.Schema<ListDeploymentsV1Request>;
1418
1211
  /** The current status of the deployment */
1419
1212
  export type ListDeploymentsV1ResponseDataItemStatus = "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "FAILED" | "CANCELED" | "TIMED_OUT";
1420
- export declare const ListDeploymentsV1ResponseDataItemStatus: any;
1421
1213
  export interface ListDeploymentsV1ResponseDataItem {
1422
1214
  /** The deployment ID */
1423
1215
  id?: string;
@@ -1442,19 +1234,15 @@ export interface ListDeploymentsV1ResponseDataItem {
1442
1234
  /** The external deployment id this deployment was deployed under (`--external-id`), used by version skew protection to pin runs. Absent if the deployment was deployed without one */
1443
1235
  externalId?: string;
1444
1236
  }
1445
- export declare const ListDeploymentsV1ResponseDataItem: S.Schema<ListDeploymentsV1ResponseDataItem>;
1446
1237
  export type ListDeploymentsV1ResponseDataList = Array<ListDeploymentsV1ResponseDataItem>;
1447
- export declare const ListDeploymentsV1ResponseDataList: S.Schema<ListDeploymentsV1ResponseDataList>;
1448
1238
  export interface ListDeploymentsV1ResponsePagination {
1449
1239
  /** Cursor for the next page. Pass as `page[after]` to get the next page. Omitted if there are no more results. */
1450
1240
  next?: string;
1451
1241
  }
1452
- export declare const ListDeploymentsV1ResponsePagination: S.Schema<ListDeploymentsV1ResponsePagination>;
1453
1242
  export interface ListDeploymentsV1Response {
1454
1243
  data?: ListDeploymentsV1ResponseDataList;
1455
1244
  pagination?: ListDeploymentsV1ResponsePagination;
1456
1245
  }
1457
- export declare const ListDeploymentsV1Response: S.Schema<ListDeploymentsV1Response>;
1458
1246
  export interface ListErrorsV1RequestPage {
1459
1247
  /** Number of errors per page. Maximum is 100. */
1460
1248
  size?: number;
@@ -1463,18 +1251,13 @@ export interface ListErrorsV1RequestPage {
1463
1251
  /** The ID of the error to start the page before. Sets the pagination direction to backward. */
1464
1252
  before?: string;
1465
1253
  }
1466
- export declare const ListErrorsV1RequestPage: S.Schema<ListErrorsV1RequestPage>;
1467
1254
  /** The identifier of the task the error belongs to */
1468
1255
  export type ErrorsFilterTaskIdentifierList = Array<string>;
1469
- export declare const ErrorsFilterTaskIdentifierList: S.Schema<ErrorsFilterTaskIdentifierList>;
1470
1256
  /** The worker version the error occurred in */
1471
1257
  export type ErrorsFilterVersionList = Array<string>;
1472
- export declare const ErrorsFilterVersionList: S.Schema<ErrorsFilterVersionList>;
1473
1258
  export type ErrorsFilterStatusItem = "unresolved" | "resolved" | "ignored";
1474
- export declare const ErrorsFilterStatusItem: any;
1475
1259
  /** The lifecycle status of the error group */
1476
1260
  export type ErrorsFilterStatusList = Array<ErrorsFilterStatusItem | (string & {})>;
1477
- export declare const ErrorsFilterStatusList: S.Schema<ErrorsFilterStatusList>;
1478
1261
  export interface ErrorsFilter {
1479
1262
  /** The identifier of the task the error belongs to */
1480
1263
  taskIdentifier?: ErrorsFilterTaskIdentifierList;
@@ -1491,16 +1274,13 @@ export interface ErrorsFilter {
1491
1274
  /** A relative time range to count occurrences within */
1492
1275
  period?: string;
1493
1276
  }
1494
- export declare const ErrorsFilter: S.Schema<ErrorsFilter>;
1495
1277
  export interface ListErrorsV1Request {
1496
1278
  /** Paginate the results. Specify the number of errors per page, and the ID of the error to start the page after or before. For object fields like `page`, use the "form" encoding style. For example, to get the next page, use `page[after]=error_1234`. */
1497
1279
  page?: ListErrorsV1RequestPage;
1498
1280
  /** Filter the error groups. Filter by task identifier, version, status, search text, and time range. For array fields, provide multiple values as a comma-separated list. For example, to get unresolved and ignored errors, use `filter[status]=unresolved,ignored`. For the time range, use `filter[period]` (e.g. `filter[period]=7d`) or `filter[from]` / `filter[to]` with ISO timestamps. */
1499
1281
  filter?: ErrorsFilter;
1500
1282
  }
1501
- export declare const ListErrorsV1Request: S.Schema<ListErrorsV1Request>;
1502
1283
  export type ErrorListItemStatus = "unresolved" | "resolved" | "ignored";
1503
- export declare const ErrorListItemStatus: any;
1504
1284
  export interface ErrorListItem {
1505
1285
  /** The unique ID of the error group, prefixed with `error_` */
1506
1286
  id: string;
@@ -1522,39 +1302,30 @@ export interface ErrorListItem {
1522
1302
  resolvedAt?: string | null;
1523
1303
  ignoredUntil?: string | null;
1524
1304
  }
1525
- export declare const ErrorListItem: S.Schema<ErrorListItem>;
1526
1305
  export type ListErrorsResultDataList = Array<ErrorListItem>;
1527
- export declare const ListErrorsResultDataList: S.Schema<ListErrorsResultDataList>;
1528
1306
  export interface ListErrorsResultPagination {
1529
1307
  /** The error ID to start the next page after. Pass it as `page[after]`. */
1530
1308
  next?: string;
1531
1309
  /** The error ID to start the previous page before. Pass it as `page[before]`. */
1532
1310
  previous?: string;
1533
1311
  }
1534
- export declare const ListErrorsResultPagination: S.Schema<ListErrorsResultPagination>;
1535
1312
  export interface ListErrorsResult {
1536
1313
  data?: ListErrorsResultDataList;
1537
1314
  pagination?: ListErrorsResultPagination;
1538
1315
  }
1539
- export declare const ListErrorsResult: S.Schema<ListErrorsResult>;
1540
1316
  export type ListProjectEnvvarsV1RequestEnv = "dev" | "staging" | "prod";
1541
- export declare const ListProjectEnvvarsV1RequestEnv: any;
1542
1317
  export interface ListProjectEnvvarsV1Request {
1543
1318
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
1544
1319
  projectRef: string;
1545
1320
  /** The environment of the project to list variables for. */
1546
1321
  env: ListProjectEnvvarsV1RequestEnv | (string & {});
1547
1322
  }
1548
- export declare const ListProjectEnvvarsV1Request: S.Schema<ListProjectEnvvarsV1Request>;
1549
1323
  export interface EnvVar {
1550
1324
  name: string;
1551
1325
  value: string;
1552
1326
  }
1553
- export declare const EnvVar: S.Schema<EnvVar>;
1554
1327
  export type ListEnvironmentVariablesResponse = Array<EnvVar>;
1555
- export declare const ListEnvironmentVariablesResponse: S.Schema<ListEnvironmentVariablesResponse>;
1556
1328
  export type ListProjectEnvvarsV1Response = ListEnvironmentVariablesResponse;
1557
- export declare const ListProjectEnvvarsV1Response: S.Schema<ListProjectEnvvarsV1Response>;
1558
1329
  export interface ListProjectRunsV1RequestPage {
1559
1330
  /** Number of runs per page. Maximum is 100. */
1560
1331
  size?: number;
@@ -1563,7 +1334,6 @@ export interface ListProjectRunsV1RequestPage {
1563
1334
  /** The ID of the run to start the page before. This will set the direction of the pagination to backward. */
1564
1335
  before?: string;
1565
1336
  }
1566
- export declare const ListProjectRunsV1RequestPage: S.Schema<ListProjectRunsV1RequestPage>;
1567
1337
  export interface ListProjectRunsV1RequestFilterCreatedAt {
1568
1338
  /** The start date to filter the runs by */
1569
1339
  from?: string;
@@ -1572,26 +1342,18 @@ export interface ListProjectRunsV1RequestFilterCreatedAt {
1572
1342
  /** The period to filter the runs by */
1573
1343
  period?: string;
1574
1344
  }
1575
- export declare const ListProjectRunsV1RequestFilterCreatedAt: S.Schema<ListProjectRunsV1RequestFilterCreatedAt>;
1576
1345
  /** The status of the run */
1577
1346
  export type ListProjectRunsV1RequestFilterStatusItem = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
1578
- export declare const ListProjectRunsV1RequestFilterStatusItem: any;
1579
1347
  export type ListProjectRunsV1RequestFilterStatusList = Array<ListProjectRunsV1RequestFilterStatusItem | (string & {})>;
1580
- export declare const ListProjectRunsV1RequestFilterStatusList: S.Schema<ListProjectRunsV1RequestFilterStatusList>;
1581
1348
  /** The identifier of the task that was run */
1582
1349
  export type ListProjectRunsV1RequestFilterTaskIdentifierList = Array<string>;
1583
- export declare const ListProjectRunsV1RequestFilterTaskIdentifierList: S.Schema<ListProjectRunsV1RequestFilterTaskIdentifierList>;
1584
1350
  /** The version of the worker that executed the run */
1585
1351
  export type ListProjectRunsV1RequestFilterVersionList = Array<string>;
1586
- export declare const ListProjectRunsV1RequestFilterVersionList: S.Schema<ListProjectRunsV1RequestFilterVersionList>;
1587
1352
  /** The tags that are attached to the run */
1588
1353
  export type ListProjectRunsV1RequestFilterTagList = Array<string>;
1589
- export declare const ListProjectRunsV1RequestFilterTagList: S.Schema<ListProjectRunsV1RequestFilterTagList>;
1590
1354
  /** The environment of the project */
1591
1355
  export type ListProjectRunsV1RequestFilterEnvItem = "dev" | "staging" | "prod";
1592
- export declare const ListProjectRunsV1RequestFilterEnvItem: any;
1593
1356
  export type ListProjectRunsV1RequestFilterEnvList = Array<ListProjectRunsV1RequestFilterEnvItem | (string & {})>;
1594
- export declare const ListProjectRunsV1RequestFilterEnvList: S.Schema<ListProjectRunsV1RequestFilterEnvList>;
1595
1357
  export interface ListProjectRunsV1RequestFilter {
1596
1358
  createdAt?: ListProjectRunsV1RequestFilterCreatedAt;
1597
1359
  status?: ListProjectRunsV1RequestFilterStatusList;
@@ -1611,7 +1373,6 @@ export interface ListProjectRunsV1RequestFilter {
1611
1373
  error?: string;
1612
1374
  env?: ListProjectRunsV1RequestFilterEnvList;
1613
1375
  }
1614
- export declare const ListProjectRunsV1RequestFilter: S.Schema<ListProjectRunsV1RequestFilter>;
1615
1376
  export interface ListProjectRunsV1Request {
1616
1377
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
1617
1378
  projectRef: string;
@@ -1620,10 +1381,8 @@ export interface ListProjectRunsV1Request {
1620
1381
  /** Use this parameter to filter the runs. You can filter by created at, environment, status, task identifier, and version. For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get QUEUED and EXECUTING runs, you can use `filter[status]=QUEUED,EXECUTING`. For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use `filter[createdAt][period]=1d`. */
1621
1382
  filter?: ListProjectRunsV1RequestFilter;
1622
1383
  }
1623
- export declare const ListProjectRunsV1Request: S.Schema<ListProjectRunsV1Request>;
1624
1384
  /** The status of the run */
1625
1385
  export type ListRunItemStatus = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
1626
- export declare const ListRunItemStatus: any;
1627
1386
  /** The environment of the run */
1628
1387
  export interface ListRunItemEnv {
1629
1388
  /** The unique ID of the environment */
@@ -1633,10 +1392,8 @@ export interface ListRunItemEnv {
1633
1392
  /** If this is a dev environment, the username of the user represented by this environment */
1634
1393
  user?: string;
1635
1394
  }
1636
- export declare const ListRunItemEnv: S.Schema<ListRunItemEnv>;
1637
1395
  /** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
1638
1396
  export type ListRunItemTagsList = Array<string>;
1639
- export declare const ListRunItemTagsList: S.Schema<ListRunItemTagsList>;
1640
1397
  export interface ListRunItem {
1641
1398
  /** The unique ID of the run, prefixed with `run_` */
1642
1399
  id: string;
@@ -1672,31 +1429,25 @@ export interface ListRunItem {
1672
1429
  /** The duration of compute (so far) in milliseconds. This does not include waits. */
1673
1430
  durationMs?: number;
1674
1431
  }
1675
- export declare const ListRunItem: S.Schema<ListRunItem>;
1676
1432
  export type ListRunsResultDataList = Array<ListRunItem>;
1677
- export declare const ListRunsResultDataList: S.Schema<ListRunsResultDataList>;
1678
1433
  export interface ListRunsResultPagination {
1679
1434
  /** The run ID to start the next page after. This should be used as the `page[after]` parameter in the next request. */
1680
1435
  next?: string;
1681
1436
  /** The run ID to start the previous page before. This should be used as the `page[before]` parameter in the next request. */
1682
1437
  previous?: string;
1683
1438
  }
1684
- export declare const ListRunsResultPagination: S.Schema<ListRunsResultPagination>;
1685
1439
  export interface ListRunsResult {
1686
1440
  data?: ListRunsResultDataList;
1687
1441
  pagination?: ListRunsResultPagination;
1688
1442
  }
1689
- export declare const ListRunsResult: S.Schema<ListRunsResult>;
1690
1443
  export interface ListQueuesV1Request {
1691
1444
  /** Page number of the queue listing (1-based) */
1692
1445
  page?: number;
1693
1446
  /** Number of queues per page */
1694
1447
  perPage?: number;
1695
1448
  }
1696
- export declare const ListQueuesV1Request: S.Schema<ListQueuesV1Request>;
1697
1449
  /** An array of queue objects */
1698
1450
  export type ListQueuesResultDataList = Array<QueueObject>;
1699
- export declare const ListQueuesResultDataList: S.Schema<ListQueuesResultDataList>;
1700
1451
  export interface ListQueuesResultPagination {
1701
1452
  /** The current page number */
1702
1453
  currentPage?: number;
@@ -1705,31 +1456,22 @@ export interface ListQueuesResultPagination {
1705
1456
  /** The total number of queues */
1706
1457
  count?: number;
1707
1458
  }
1708
- export declare const ListQueuesResultPagination: S.Schema<ListQueuesResultPagination>;
1709
1459
  export interface ListQueuesResult {
1710
1460
  /** An array of queue objects */
1711
1461
  data: ListQueuesResultDataList;
1712
1462
  pagination: ListQueuesResultPagination;
1713
1463
  }
1714
- export declare const ListQueuesResult: S.Schema<ListQueuesResult>;
1715
1464
  export type ListRunsV1RequestPage = ListProjectRunsV1RequestPage;
1716
- export declare const ListRunsV1RequestPage: S.Schema<ListProjectRunsV1RequestPage>;
1717
1465
  export type CommonRunsFilterCreatedAt = ListProjectRunsV1RequestFilterCreatedAt;
1718
- export declare const CommonRunsFilterCreatedAt: S.Schema<ListProjectRunsV1RequestFilterCreatedAt>;
1719
1466
  /** The status of the run */
1720
1467
  export type CommonRunsFilterStatusItem = "PENDING_VERSION" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
1721
- export declare const CommonRunsFilterStatusItem: any;
1722
1468
  export type CommonRunsFilterStatusList = Array<CommonRunsFilterStatusItem | (string & {})>;
1723
- export declare const CommonRunsFilterStatusList: S.Schema<CommonRunsFilterStatusList>;
1724
1469
  /** The identifier of the task that was run */
1725
1470
  export type CommonRunsFilterTaskIdentifierList = Array<string>;
1726
- export declare const CommonRunsFilterTaskIdentifierList: S.Schema<CommonRunsFilterTaskIdentifierList>;
1727
1471
  /** The version of the worker that executed the run */
1728
1472
  export type CommonRunsFilterVersionList = Array<string>;
1729
- export declare const CommonRunsFilterVersionList: S.Schema<CommonRunsFilterVersionList>;
1730
1473
  /** The tags that are attached to the run */
1731
1474
  export type CommonRunsFilterTagList = Array<string>;
1732
- export declare const CommonRunsFilterTagList: S.Schema<CommonRunsFilterTagList>;
1733
1475
  export interface CommonRunsFilter {
1734
1476
  createdAt?: ListProjectRunsV1RequestFilterCreatedAt;
1735
1477
  status?: CommonRunsFilterStatusList;
@@ -1748,30 +1490,24 @@ export interface CommonRunsFilter {
1748
1490
  /** An error group ID (starts with `error_`). Lists the runs behind that error group. */
1749
1491
  error?: string;
1750
1492
  }
1751
- export declare const CommonRunsFilter: S.Schema<CommonRunsFilter>;
1752
1493
  export interface ListRunsV1Request {
1753
1494
  /** Use this parameter to paginate the results. You can specify the number of runs per page, and the ID of the run to start the page after or before. For object fields like `page`, you should use the "form" encoding style. For example, to get the next page of runs, you can use `page[after]=run_1234`. */
1754
1495
  page?: ListProjectRunsV1RequestPage;
1755
1496
  /** Use this parameter to filter the runs. You can filter by created at, status, task identifier, and version. For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get QUEUED and EXECUTING runs, you can use `filter[status]=QUEUED,EXECUTING`. For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use `filter[createdAt][period]=1d`. */
1756
1497
  filter?: CommonRunsFilter;
1757
1498
  }
1758
- export declare const ListRunsV1Request: S.Schema<ListRunsV1Request>;
1759
1499
  export interface ListSchedulesV1Request {
1760
1500
  /** Page number of the schedule listing */
1761
1501
  page?: number;
1762
1502
  /** Number of schedules per page */
1763
1503
  perPage?: number;
1764
1504
  }
1765
- export declare const ListSchedulesV1Request: S.Schema<ListSchedulesV1Request>;
1766
1505
  export type ListSchedulesResultDataList = Array<ScheduleObject>;
1767
- export declare const ListSchedulesResultDataList: S.Schema<ListSchedulesResultDataList>;
1768
1506
  export type ListSchedulesResultPagination = ListConcurrencyLimitsV1ResponsePagination;
1769
- export declare const ListSchedulesResultPagination: S.Schema<ListConcurrencyLimitsV1ResponsePagination>;
1770
1507
  export interface ListSchedulesResult {
1771
1508
  data?: ListSchedulesResultDataList;
1772
1509
  pagination?: ListConcurrencyLimitsV1ResponsePagination;
1773
1510
  }
1774
- export declare const ListSchedulesResult: S.Schema<ListSchedulesResult>;
1775
1511
  export interface ListSessionsV1RequestPage {
1776
1512
  /** Number of sessions per page. Maximum is 100. */
1777
1513
  size?: number;
@@ -1780,21 +1516,15 @@ export interface ListSessionsV1RequestPage {
1780
1516
  /** The ID of the session to start the page before. Sets the pagination direction to backward. */
1781
1517
  before?: string;
1782
1518
  }
1783
- export declare const ListSessionsV1RequestPage: S.Schema<ListSessionsV1RequestPage>;
1784
1519
  /** The session type(s) to filter by. */
1785
1520
  export type SessionsFilterTypeList = Array<string>;
1786
- export declare const SessionsFilterTypeList: S.Schema<SessionsFilterTypeList>;
1787
1521
  /** The tags to filter by. */
1788
1522
  export type SessionsFilterTagsList = Array<string>;
1789
- export declare const SessionsFilterTagsList: S.Schema<SessionsFilterTagsList>;
1790
1523
  /** The task identifier(s) to filter by. */
1791
1524
  export type SessionsFilterTaskIdentifierList = Array<string>;
1792
- export declare const SessionsFilterTaskIdentifierList: S.Schema<SessionsFilterTaskIdentifierList>;
1793
1525
  export type SessionsFilterStatusItem = "ACTIVE" | "CLOSED" | "EXPIRED";
1794
- export declare const SessionsFilterStatusItem: any;
1795
1526
  /** The lifecycle status(es) to filter by. */
1796
1527
  export type SessionsFilterStatusList = Array<SessionsFilterStatusItem | (string & {})>;
1797
- export declare const SessionsFilterStatusList: S.Schema<SessionsFilterStatusList>;
1798
1528
  export interface SessionsFilterCreatedAt {
1799
1529
  /** The start date to filter the sessions by. */
1800
1530
  from?: string;
@@ -1803,7 +1533,6 @@ export interface SessionsFilterCreatedAt {
1803
1533
  /** The period to filter the sessions by. */
1804
1534
  period?: string;
1805
1535
  }
1806
- export declare const SessionsFilterCreatedAt: S.Schema<SessionsFilterCreatedAt>;
1807
1536
  export interface SessionsFilter {
1808
1537
  /** The session type(s) to filter by. */
1809
1538
  type?: SessionsFilterTypeList;
@@ -1817,30 +1546,25 @@ export interface SessionsFilter {
1817
1546
  status?: SessionsFilterStatusList;
1818
1547
  createdAt?: SessionsFilterCreatedAt;
1819
1548
  }
1820
- export declare const SessionsFilter: S.Schema<SessionsFilter>;
1821
1549
  export interface ListSessionsV1Request {
1822
1550
  /** Paginate the results. Specify the number of sessions per page, and the ID of the session to start the page after or before. For object fields like `page`, use the "form" encoding style. For example, to get the next page, use `page[after]=session_1234`. */
1823
1551
  page?: ListSessionsV1RequestPage;
1824
1552
  /** Use this parameter to filter the sessions. You can filter by type, tags, task identifier, external id, status, and created at. For array fields, you can provide multiple values to filter by using a comma-separated list. For example, to get ACTIVE and CLOSED sessions, you can use `filter[status]=ACTIVE,CLOSED`. For object fields, you should use the "form" encoding style. For example, to filter by the period, you can use `filter[createdAt][period]=1d`. */
1825
1553
  filter?: SessionsFilter;
1826
1554
  }
1827
- export declare const ListSessionsV1Request: S.Schema<ListSessionsV1Request>;
1828
1555
  export type ListSessionsResultDataList = Array<SessionObject>;
1829
- export declare const ListSessionsResultDataList: S.Schema<ListSessionsResultDataList>;
1830
1556
  export interface ListSessionsResultPagination {
1831
1557
  /** The session ID to start the next page after. Pass it as the `page[after]` parameter on the next request. */
1832
1558
  next?: string;
1833
1559
  /** The session ID to start the previous page before. Pass it as the `page[before]` parameter on the next request. */
1834
1560
  previous?: string;
1835
1561
  }
1836
- export declare const ListSessionsResultPagination: S.Schema<ListSessionsResultPagination>;
1837
1562
  export interface ListSessionsResult {
1838
1563
  data?: ListSessionsResultDataList;
1839
1564
  pagination?: ListSessionsResultPagination;
1840
1565
  }
1841
- export declare const ListSessionsResult: S.Schema<ListSessionsResult>;
1842
1566
  export interface ListWaitpointTokensV1Request {
1843
- /** Number of tokens to return per page (1–100). */
1567
+ /** Number of tokens to return per page (1-100). */
1844
1568
  page_size_?: number;
1845
1569
  /** Return tokens after this cursor (from `pagination.next` in a previous response). */
1846
1570
  page_after_?: string;
@@ -1859,23 +1583,19 @@ export interface ListWaitpointTokensV1Request {
1859
1583
  /** Filter tokens created at or before this ISO 8601 timestamp. */
1860
1584
  filter_createdAt__to_?: string;
1861
1585
  }
1862
- export declare const ListWaitpointTokensV1Request: S.Schema<ListWaitpointTokensV1Request>;
1863
1586
  /** An array of waitpoint token objects. */
1864
1587
  export type ListWaitpointTokensResultDataList = Array<WaitpointTokenObject>;
1865
- export declare const ListWaitpointTokensResultDataList: S.Schema<ListWaitpointTokensResultDataList>;
1866
1588
  export interface ListWaitpointTokensResultPagination {
1867
1589
  /** Cursor for the next page. Pass as `page[after]` in the next request. */
1868
1590
  next?: string | null;
1869
1591
  /** Cursor for the previous page. Pass as `page[before]` in the next request. */
1870
1592
  previous?: string | null;
1871
1593
  }
1872
- export declare const ListWaitpointTokensResultPagination: S.Schema<ListWaitpointTokensResultPagination>;
1873
1594
  export interface ListWaitpointTokensResult {
1874
1595
  /** An array of waitpoint token objects. */
1875
1596
  data: ListWaitpointTokensResultDataList;
1876
1597
  pagination: ListWaitpointTokensResultPagination;
1877
1598
  }
1878
- export declare const ListWaitpointTokensResult: S.Schema<ListWaitpointTokensResult>;
1879
1599
  export interface OverrideConcurrencyLimitV1Request {
1880
1600
  /** The limit's name */
1881
1601
  name: string;
@@ -1884,10 +1604,8 @@ export interface OverrideConcurrencyLimitV1Request {
1884
1604
  /** Caps every run holding this limit, keys or not. May not exceed the environment concurrency limit. */
1885
1605
  total?: number;
1886
1606
  }
1887
- export declare const OverrideConcurrencyLimitV1Request: S.Schema<OverrideConcurrencyLimitV1Request>;
1888
1607
  /** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
1889
1608
  export type OverrideQueueConcurrencyV1RequestType = "id" | "task" | "custom";
1890
- export declare const OverrideQueueConcurrencyV1RequestType: any;
1891
1609
  export interface OverrideQueueConcurrencyV1Request {
1892
1610
  /** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` body parameter. */
1893
1611
  queueParam: string;
@@ -1896,23 +1614,18 @@ export interface OverrideQueueConcurrencyV1Request {
1896
1614
  /** The new concurrency limit to set for the queue. It may not exceed your environment's maximum concurrency limit: a higher value is rejected with a 400, not capped to the maximum. */
1897
1615
  concurrencyLimit: number;
1898
1616
  }
1899
- export declare const OverrideQueueConcurrencyV1Request: S.Schema<OverrideQueueConcurrencyV1Request>;
1900
1617
  /** Whether to pause or resume the limit */
1901
1618
  export type PauseConcurrencyLimitV1RequestAction = "pause" | "resume";
1902
- export declare const PauseConcurrencyLimitV1RequestAction: any;
1903
1619
  export interface PauseConcurrencyLimitV1Request {
1904
1620
  /** The limit's name */
1905
1621
  name: string;
1906
1622
  /** Whether to pause or resume the limit */
1907
1623
  action: PauseConcurrencyLimitV1RequestAction | (string & {});
1908
1624
  }
1909
- export declare const PauseConcurrencyLimitV1Request: S.Schema<PauseConcurrencyLimitV1Request>;
1910
1625
  /** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
1911
1626
  export type PauseQueueV1RequestType = "id" | "task" | "custom";
1912
- export declare const PauseQueueV1RequestType: any;
1913
1627
  /** Whether to pause or resume the queue */
1914
1628
  export type PauseQueueV1RequestAction = "pause" | "resume";
1915
- export declare const PauseQueueV1RequestAction: any;
1916
1629
  export interface PauseQueueV1Request {
1917
1630
  /** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` body parameter. */
1918
1631
  queueParam: string;
@@ -1921,12 +1634,10 @@ export interface PauseQueueV1Request {
1921
1634
  /** Whether to pause or resume the queue */
1922
1635
  action: PauseQueueV1RequestAction | (string & {});
1923
1636
  }
1924
- export declare const PauseQueueV1Request: S.Schema<PauseQueueV1Request>;
1925
1637
  export interface PromoteDeploymentV1Request {
1926
1638
  /** The deployment version to promote (e.g., "20250228.1"). */
1927
1639
  version: string;
1928
1640
  }
1929
- export declare const PromoteDeploymentV1Request: S.Schema<PromoteDeploymentV1Request>;
1930
1641
  export interface PromoteDeploymentV1Response {
1931
1642
  /** The deployment ID */
1932
1643
  id?: string;
@@ -1935,57 +1646,45 @@ export interface PromoteDeploymentV1Response {
1935
1646
  /** The short code for the deployment */
1936
1647
  shortCode?: string;
1937
1648
  }
1938
- export declare const PromoteDeploymentV1Response: S.Schema<PromoteDeploymentV1Response>;
1939
1649
  export interface ResetConcurrencyLimitV1Request {
1940
1650
  /** The limit's name */
1941
1651
  name: string;
1942
1652
  }
1943
- export declare const ResetConcurrencyLimitV1Request: S.Schema<ResetConcurrencyLimitV1Request>;
1944
1653
  /** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
1945
1654
  export type ResetQueueConcurrencyV1RequestType = "id" | "task" | "custom";
1946
- export declare const ResetQueueConcurrencyV1RequestType: any;
1947
1655
  export interface ResetQueueConcurrencyV1Request {
1948
1656
  /** The queue ID (e.g., `queue_1234`), or the name of the queue when using the `type` body parameter. */
1949
1657
  queueParam: string;
1950
1658
  /** How to interpret the `queueParam` path parameter: - `id`: Treat as a queue ID (default) - `task`: Treat as a task ID to get the task's default queue - `custom`: Treat as a custom queue name */
1951
1659
  type?: ResetQueueConcurrencyV1RequestType | (string & {});
1952
1660
  }
1953
- export declare const ResetQueueConcurrencyV1Request: S.Schema<ResetQueueConcurrencyV1Request>;
1954
1661
  export interface ResolveErrorV1Request {
1955
1662
  /** The ID of an error group, starts with `error_`. */
1956
1663
  errorId: string;
1957
1664
  /** The worker version the error was resolved in. */
1958
1665
  resolvedInVersion?: string;
1959
1666
  }
1960
- export declare const ResolveErrorV1Request: S.Schema<ResolveErrorV1Request>;
1961
1667
  export interface RunReplayV1Request {
1962
1668
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
1963
1669
  runId: string;
1964
1670
  }
1965
- export declare const RunReplayV1Request: S.Schema<RunReplayV1Request>;
1966
1671
  export interface RunReplayV1Response {
1967
1672
  /** The ID of the new run. */
1968
1673
  id?: string;
1969
1674
  }
1970
- export declare const RunReplayV1Response: S.Schema<RunReplayV1Response>;
1971
1675
  export interface RunRescheduleV1Request {
1972
1676
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
1973
1677
  runId: string;
1974
1678
  delay?: string;
1975
1679
  }
1976
- export declare const RunRescheduleV1Request: S.Schema<RunRescheduleV1Request>;
1977
1680
  /** The status of the run */
1978
1681
  export type RunRescheduleV1ResponseStatus = "PENDING_VERSION" | "DELAYED" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE";
1979
- export declare const RunRescheduleV1ResponseStatus: any;
1980
1682
  /** Tags can be attached to a run to make it easy to find runs (in the dashboard or using SDK functions like `runs.list`) */
1981
1683
  export type RunRescheduleV1ResponseTagsList = Array<string>;
1982
- export declare const RunRescheduleV1ResponseTagsList: S.Schema<RunRescheduleV1ResponseTagsList>;
1983
1684
  /** The name of the function that triggered the run */
1984
1685
  export type RunRescheduleV1ResponseTriggerFunction = "trigger" | "triggerAndWait" | "batchTrigger" | "batchTriggerAndWait";
1985
- export declare const RunRescheduleV1ResponseTriggerFunction: any;
1986
1686
  /** The immediate children of the run. Will be omitted if the run has no children */
1987
1687
  export type RunRescheduleV1ResponseRelatedRunsChildrenList = Array<CommonRunObject>;
1988
- export declare const RunRescheduleV1ResponseRelatedRunsChildrenList: S.Schema<RunRescheduleV1ResponseRelatedRunsChildrenList>;
1989
1688
  export interface RunRescheduleV1ResponseRelatedRuns {
1990
1689
  /** The root run of the run hierarchy. Will be omitted if the run is the root run */
1991
1690
  root?: CommonRunObject;
@@ -1994,9 +1693,7 @@ export interface RunRescheduleV1ResponseRelatedRuns {
1994
1693
  /** The immediate children of the run. Will be omitted if the run has no children */
1995
1694
  children?: RunRescheduleV1ResponseRelatedRunsChildrenList;
1996
1695
  }
1997
- export declare const RunRescheduleV1ResponseRelatedRuns: S.Schema<RunRescheduleV1ResponseRelatedRuns>;
1998
1696
  export type RunRescheduleV1ResponseScheduleGeneratorType = "CRON";
1999
- export declare const RunRescheduleV1ResponseScheduleGeneratorType: any;
2000
1697
  export interface RunRescheduleV1ResponseScheduleGenerator {
2001
1698
  type?: RunRescheduleV1ResponseScheduleGeneratorType;
2002
1699
  /** The cron expression used to generate the schedule */
@@ -2004,7 +1701,6 @@ export interface RunRescheduleV1ResponseScheduleGenerator {
2004
1701
  /** The description of the generator in plain english */
2005
1702
  description?: string;
2006
1703
  }
2007
- export declare const RunRescheduleV1ResponseScheduleGenerator: S.Schema<RunRescheduleV1ResponseScheduleGenerator>;
2008
1704
  /** The schedule that triggered the run. Will be omitted if the run was not triggered by a schedule */
2009
1705
  export interface RunRescheduleV1ResponseSchedule {
2010
1706
  /** The unique ID of the schedule, prefixed with `sched_` */
@@ -2015,9 +1711,7 @@ export interface RunRescheduleV1ResponseSchedule {
2015
1711
  deduplicationKey?: string;
2016
1712
  generator: RunRescheduleV1ResponseScheduleGenerator;
2017
1713
  }
2018
- export declare const RunRescheduleV1ResponseSchedule: S.Schema<RunRescheduleV1ResponseSchedule>;
2019
1714
  export type RunRescheduleV1ResponseAttemptsItemStatus = "PENDING" | "EXECUTING" | "PAUSED" | "COMPLETED" | "FAILED" | "CANCELED";
2020
- export declare const RunRescheduleV1ResponseAttemptsItemStatus: any;
2021
1715
  export interface RunRescheduleV1ResponseAttemptsItem {
2022
1716
  /** The unique ID of the attempt, prefixed with `attempt_` */
2023
1717
  id: string;
@@ -2028,9 +1722,7 @@ export interface RunRescheduleV1ResponseAttemptsItem {
2028
1722
  startedAt?: string;
2029
1723
  completedAt?: string;
2030
1724
  }
2031
- export declare const RunRescheduleV1ResponseAttemptsItem: S.Schema<RunRescheduleV1ResponseAttemptsItem>;
2032
1725
  export type RunRescheduleV1ResponseAttemptsList = Array<RunRescheduleV1ResponseAttemptsItem>;
2033
- export declare const RunRescheduleV1ResponseAttemptsList: S.Schema<RunRescheduleV1ResponseAttemptsList>;
2034
1726
  export interface RunRescheduleV1Response {
2035
1727
  /** The unique ID of the run, prefixed with `run_` */
2036
1728
  id: string;
@@ -2084,17 +1776,14 @@ export interface RunRescheduleV1Response {
2084
1776
  schedule?: RunRescheduleV1ResponseSchedule;
2085
1777
  attempts: RunRescheduleV1ResponseAttemptsList;
2086
1778
  }
2087
- export declare const RunRescheduleV1Response: S.Schema<RunRescheduleV1Response>;
2088
1779
  export interface QueueOptions {
2089
1780
  /** You can define a shared queue and then pass the name in to your task. */
2090
1781
  name?: string;
2091
1782
  /** An optional property that specifies the maximum number of concurrent run executions. If this property is omitted, the task can potentially use up the full concurrency of an environment. */
2092
1783
  concurrencyLimit?: number;
2093
1784
  }
2094
- export declare const QueueOptions: S.Schema<QueueOptions>;
2095
1785
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
2096
1786
  export type TriggerTaskRequestBodyOptionsMachine = "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2097
- export declare const TriggerTaskRequestBodyOptionsMachine: any;
2098
1787
  export interface TriggerTaskRequestBodyOptions {
2099
1788
  queue?: QueueOptions;
2100
1789
  /** Scope the concurrency limit to a specific key. */
@@ -2108,7 +1797,6 @@ export interface TriggerTaskRequestBodyOptions {
2108
1797
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
2109
1798
  machine?: TriggerTaskRequestBodyOptionsMachine | (string & {});
2110
1799
  }
2111
- export declare const TriggerTaskRequestBodyOptions: S.Schema<TriggerTaskRequestBodyOptions>;
2112
1800
  export interface TriggerTaskRequestBody {
2113
1801
  /** The payload can include any valid JSON */
2114
1802
  payload?: unknown;
@@ -2116,30 +1804,24 @@ export interface TriggerTaskRequestBody {
2116
1804
  context?: unknown;
2117
1805
  options?: TriggerTaskRequestBodyOptions;
2118
1806
  }
2119
- export declare const TriggerTaskRequestBody: S.Schema<TriggerTaskRequestBody>;
2120
1807
  /** An array of payloads to trigger the task with (max 1,000 items). */
2121
1808
  export type TriggerBatchTaskByIdV1RequestItemsList = Array<TriggerTaskRequestBody>;
2122
- export declare const TriggerBatchTaskByIdV1RequestItemsList: S.Schema<TriggerBatchTaskByIdV1RequestItemsList>;
2123
1809
  export interface TriggerBatchTaskByIdV1Request {
2124
1810
  /** The id of a task. If the id contains characters that are reserved in a URL path, such as a slash (`/`), percent-encode it when building the request path (e.g. `types/zod` becomes `types%2Fzod`). */
2125
1811
  taskIdentifier: string;
2126
1812
  /** An array of payloads to trigger the task with (max 1,000 items). */
2127
1813
  items: TriggerBatchTaskByIdV1RequestItemsList;
2128
1814
  }
2129
- export declare const TriggerBatchTaskByIdV1Request: S.Schema<TriggerBatchTaskByIdV1Request>;
2130
1815
  /** An array of run IDs that were triggered */
2131
1816
  export type BatchTriggerTaskResponseRunsList = Array<string>;
2132
- export declare const BatchTriggerTaskResponseRunsList: S.Schema<BatchTriggerTaskResponseRunsList>;
2133
1817
  export interface BatchTriggerTaskResponse {
2134
1818
  /** The ID of the batch that was triggered */
2135
1819
  batchId: string;
2136
1820
  /** An array of run IDs that were triggered */
2137
1821
  runs: BatchTriggerTaskResponseRunsList;
2138
1822
  }
2139
- export declare const BatchTriggerTaskResponse: S.Schema<BatchTriggerTaskResponse>;
2140
1823
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
2141
1824
  export type BatchTriggerTaskRequestBodyItemOptionsMachine = "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2142
- export declare const BatchTriggerTaskRequestBodyItemOptionsMachine: any;
2143
1825
  export interface BatchTriggerTaskRequestBodyItemOptions {
2144
1826
  queue?: QueueOptions;
2145
1827
  /** Scope the concurrency limit to a specific key. */
@@ -2153,7 +1835,6 @@ export interface BatchTriggerTaskRequestBodyItemOptions {
2153
1835
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
2154
1836
  machine?: BatchTriggerTaskRequestBodyItemOptionsMachine | (string & {});
2155
1837
  }
2156
- export declare const BatchTriggerTaskRequestBodyItemOptions: S.Schema<BatchTriggerTaskRequestBodyItemOptions>;
2157
1838
  export interface BatchTriggerTaskRequestBodyItem {
2158
1839
  /** The payload can include any valid JSON */
2159
1840
  payload?: unknown;
@@ -2163,18 +1844,14 @@ export interface BatchTriggerTaskRequestBodyItem {
2163
1844
  /** The task identifier to trigger. This is the `id` set in your `task()` functions. */
2164
1845
  task: string;
2165
1846
  }
2166
- export declare const BatchTriggerTaskRequestBodyItem: S.Schema<BatchTriggerTaskRequestBodyItem>;
2167
1847
  /** An array of payloads to trigger the task with */
2168
1848
  export type TriggerBatchTaskV1RequestItemsList = Array<BatchTriggerTaskRequestBodyItem>;
2169
- export declare const TriggerBatchTaskV1RequestItemsList: S.Schema<TriggerBatchTaskV1RequestItemsList>;
2170
1849
  export interface TriggerBatchTaskV1Request {
2171
1850
  /** An array of payloads to trigger the task with */
2172
1851
  items: TriggerBatchTaskV1RequestItemsList;
2173
1852
  }
2174
- export declare const TriggerBatchTaskV1Request: S.Schema<TriggerBatchTaskV1Request>;
2175
1853
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
2176
1854
  export type TriggerTaskV1RequestOptionsMachine = "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2177
- export declare const TriggerTaskV1RequestOptionsMachine: any;
2178
1855
  export interface TriggerTaskV1RequestOptions {
2179
1856
  queue?: QueueOptions;
2180
1857
  /** Scope the concurrency limit to a specific key. */
@@ -2188,7 +1865,6 @@ export interface TriggerTaskV1RequestOptions {
2188
1865
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
2189
1866
  machine?: TriggerTaskV1RequestOptionsMachine | (string & {});
2190
1867
  }
2191
- export declare const TriggerTaskV1RequestOptions: S.Schema<TriggerTaskV1RequestOptions>;
2192
1868
  export interface TriggerTaskV1Request {
2193
1869
  /** The id of a task. If the id contains characters that are reserved in a URL path, such as a slash (`/`), percent-encode it when building the request path (e.g. `types/zod` becomes `types%2Fzod`). */
2194
1870
  taskIdentifier: string;
@@ -2198,19 +1874,15 @@ export interface TriggerTaskV1Request {
2198
1874
  context?: unknown;
2199
1875
  options?: TriggerTaskV1RequestOptions;
2200
1876
  }
2201
- export declare const TriggerTaskV1Request: S.Schema<TriggerTaskV1Request>;
2202
1877
  export interface TriggerTaskResponse {
2203
1878
  /** The ID of the run that was triggered. */
2204
1879
  id?: string;
2205
1880
  }
2206
- export declare const TriggerTaskResponse: S.Schema<TriggerTaskResponse>;
2207
1881
  export interface UnresolveErrorV1Request {
2208
1882
  /** The ID of an error group, starts with `error_`. */
2209
1883
  errorId: string;
2210
1884
  }
2211
- export declare const UnresolveErrorV1Request: S.Schema<UnresolveErrorV1Request>;
2212
1885
  export type UpdateProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
2213
- export declare const UpdateProjectEnvvarV1RequestEnv: any;
2214
1886
  export interface UpdateProjectEnvvarV1Request {
2215
1887
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
2216
1888
  projectRef: string;
@@ -2221,19 +1893,16 @@ export interface UpdateProjectEnvvarV1Request {
2221
1893
  /** The value to store. An empty string is valid and is stored as-is, not treated as a deletion. */
2222
1894
  value: string;
2223
1895
  }
2224
- export declare const UpdateProjectEnvvarV1Request: S.Schema<UpdateProjectEnvvarV1Request>;
2225
1896
  export interface UpdateRunMetadataV1Request {
2226
1897
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
2227
1898
  runId: string;
2228
1899
  /** The new metadata to set on the run. */
2229
1900
  metadata?: unknown;
2230
1901
  }
2231
- export declare const UpdateRunMetadataV1Request: S.Schema<UpdateRunMetadataV1Request>;
2232
1902
  export interface UpdateRunMetadataV1Response {
2233
1903
  /** The updated metadata of the run. */
2234
1904
  metadata?: unknown;
2235
1905
  }
2236
- export declare const UpdateRunMetadataV1Response: S.Schema<UpdateRunMetadataV1Response>;
2237
1906
  export interface UpdateScheduleV1Request {
2238
1907
  /** The ID of the schedule. */
2239
1908
  schedule_id: string;
@@ -2243,17 +1912,14 @@ export interface UpdateScheduleV1Request {
2243
1912
  /** Defaults to "UTC". In IANA format ("America/New_York"). If set then it will trigger at the CRON frequency in that timezone and respect daylight savings time. */
2244
1913
  timezone?: string;
2245
1914
  }
2246
- export declare const UpdateScheduleV1Request: S.Schema<UpdateScheduleV1Request>;
2247
1915
  /** Replaces the tags on the session row. */
2248
1916
  export type UpdateSessionV1RequestTagsList = Array<string>;
2249
- export declare const UpdateSessionV1RequestTagsList: S.Schema<UpdateSessionV1RequestTagsList>;
2250
1917
  /** Replaces the metadata. Pass `null` to clear it. */
2251
1918
  export type UpdateSessionV1RequestMetadataMap = {
2252
1919
  [key: string]: unknown | undefined;
2253
1920
  };
2254
- export declare const UpdateSessionV1RequestMetadataMap: S.Schema<UpdateSessionV1RequestMetadataMap>;
2255
1921
  export interface UpdateSessionV1Request {
2256
- /** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
1922
+ /** The session's friendly ID (`session_...`) or your `externalId`. The server disambiguates by the `session_` prefix. */
2257
1923
  session: string;
2258
1924
  /** Replaces the tags on the session row. */
2259
1925
  tags?: UpdateSessionV1RequestTagsList;
@@ -2262,11 +1928,8 @@ export interface UpdateSessionV1Request {
2262
1928
  /** Read-only after create: cannot be changed or cleared. Sending a value different from the current one (including `null` when one is set) returns `422`; sending the same value is idempotent. */
2263
1929
  externalId?: string | null;
2264
1930
  }
2265
- export declare const UpdateSessionV1Request: S.Schema<UpdateSessionV1Request>;
2266
1931
  export type UploadProjectEnvvarsV1RequestEnv = "dev" | "staging" | "prod";
2267
- export declare const UploadProjectEnvvarsV1RequestEnv: any;
2268
1932
  export type UploadProjectEnvvarsV1RequestVariablesList = Array<EnvVar>;
2269
- export declare const UploadProjectEnvvarsV1RequestVariablesList: S.Schema<UploadProjectEnvvarsV1RequestVariablesList>;
2270
1933
  export interface UploadProjectEnvvarsV1Request {
2271
1934
  /** The external ref of the project. You can find this in the project settings. Starts with `proj_`. */
2272
1935
  projectRef: string;
@@ -2276,7 +1939,6 @@ export interface UploadProjectEnvvarsV1Request {
2276
1939
  /** Whether to override existing variables or not */
2277
1940
  override?: boolean;
2278
1941
  }
2279
- export declare const UploadProjectEnvvarsV1Request: S.Schema<UploadProjectEnvvarsV1Request>;
2280
1942
  export type ActivateScheduleV1Error = NotFound | TriggerDevOpError;
2281
1943
  /** Activate Schedule Activate a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
2282
1944
  export declare const activateScheduleV1: API.OperationMethod<ActivateScheduleV1Request, ScheduleObject, ActivateScheduleV1Error, TriggerDevOpContext>;
@@ -2290,10 +1952,10 @@ export type CancelRunV1Error = BadRequest | NotFound | TriggerDevOpError;
2290
1952
  /** Cancel a run Cancels an in-progress run. If the run is already completed, this will have no effect. */
2291
1953
  export declare const cancelRunV1: API.OperationMethod<CancelRunV1Request, CancelRunV1Response, CancelRunV1Error, TriggerDevOpContext>;
2292
1954
  export type CloseSessionV1Error = NotFound | TriggerDevOpError;
2293
- /** Close a session Close a session. Closing is terminal and idempotent — closing an already-closed session returns the existing row unchanged. A closed session cannot be reopened, and reusing its `externalId` on create returns `409`. Requires a secret key — a session public token cannot close a session. */
1955
+ /** Close a session Close a session. Closing is terminal and idempotent -- closing an already-closed session returns the existing row unchanged. A closed session cannot be reopened, and reusing its `externalId` on create returns `409`. Requires a secret key -- a session public token cannot close a session. */
2294
1956
  export declare const closeSessionV1: API.OperationMethod<CloseSessionV1Request, SessionObject, CloseSessionV1Error, TriggerDevOpContext>;
2295
1957
  export type CompleteWaitpointTokenCallbackV1Error = NotFound | TriggerDevOpError;
2296
- /** Complete a waitpoint token via HTTP callback Completes a waitpoint token using the pre-signed callback URL returned in the `url` field when the token was created. No API key is required — the `callbackHash` in the URL acts as the authentication token. This is designed to be given directly to external services (e.g. as a webhook URL) so they can unblock a waiting run without needing access to your API key. The entire request body is passed as the output data to the waiting run. If the token is already completed, this is a no-op and returns `success: true`. */
1958
+ /** Complete a waitpoint token via HTTP callback Completes a waitpoint token using the pre-signed callback URL returned in the `url` field when the token was created. No API key is required -- the `callbackHash` in the URL acts as the authentication token. This is designed to be given directly to external services (e.g. as a webhook URL) so they can unblock a waiting run without needing access to your API key. The entire request body is passed as the output data to the waiting run. If the token is already completed, this is a no-op and returns `success: true`. */
2297
1959
  export declare const completeWaitpointTokenCallbackV1: API.OperationMethod<CompleteWaitpointTokenCallbackV1Request, CompleteWaitpointTokenResponse, CompleteWaitpointTokenCallbackV1Error, TriggerDevOpContext>;
2298
1960
  export type CompleteWaitpointTokenV1Error = NotFound | TriggerDevOpError;
2299
1961
  /** Complete a waitpoint token Completes a waitpoint token, unblocking any run that is waiting for it via `wait.forToken()`. An optional `data` payload can be passed and will be returned to the waiting run. If the token is already completed, this is a no-op and returns `success: true`. This endpoint accepts both secret API keys and short-lived JWTs (public access tokens), making it safe to call from frontend clients. */
@@ -2326,7 +1988,7 @@ export type ExecuteQueryV1Error = BadRequest | TriggerDevOpError;
2326
1988
  /** Execute a TRQL query Execute a TRQL (Trigger.dev Query Language) query against your run data. TRQL is a SQL-style query language that allows you to analyze runs, calculate metrics, and export data. */
2327
1989
  export declare const executeQueryV1: API.OperationMethod<ExecuteQueryV1Request, ExecuteQueryV1Response, ExecuteQueryV1Error, TriggerDevOpContext>;
2328
1990
  export type GetBatchResultsV1Error = NotFound | TriggerDevOpError;
2329
- /** Retrieve batch results Returns the execution results of all completed runs in a batch. Only finished runs (successful or failed) are included in the items array — runs that are still executing are omitted. Returns 404 if the batch doesn't exist. */
1991
+ /** Retrieve batch results Returns the execution results of all completed runs in a batch. Only finished runs (successful or failed) are included in the items array -- runs that are still executing are omitted. Returns 404 if the batch doesn't exist. */
2330
1992
  export declare const getBatchResultsV1: API.OperationMethod<GetBatchResultsV1Request, GetBatchResultsV1Response, GetBatchResultsV1Error, TriggerDevOpContext>;
2331
1993
  export type GetBatchV1Error = NotFound | TriggerDevOpError;
2332
1994
  /** Retrieve a batch Retrieve a batch by its ID, including its status and the IDs of all runs in the batch. */
@@ -2362,7 +2024,7 @@ export type GetRunResultV1Error = NotFound | TriggerDevOpError;
2362
2024
  /** Retrieve run result Returns the execution result of a completed run. Returns 404 if the run doesn't exist or hasn't finished yet. */
2363
2025
  export declare const getRunResultV1: API.OperationMethod<GetRunResultV1Request, GetRunResultV1Response, GetRunResultV1Error, TriggerDevOpContext>;
2364
2026
  export type GetRunTraceV1Error = NotFound | TriggerDevOpError;
2365
- /** Retrieve run trace Returns the OTel trace subtree for the requested run — the run's span as `rootSpan`, its ancestor chain, and its descendant spans. For child or nested runs in a large trace, this is scoped to that run rather than the trace-wide root. */
2027
+ /** Retrieve run trace Returns the OTel trace subtree for the requested run -- the run's span as `rootSpan`, its ancestor chain, and its descendant spans. For child or nested runs in a large trace, this is scoped to that run rather than the trace-wide root. */
2366
2028
  export declare const getRunTraceV1: API.OperationMethod<GetRunTraceV1Request, GetRunTraceV1Response, GetRunTraceV1Error, TriggerDevOpContext>;
2367
2029
  export type GetRunV1Error = BadRequest | NotFound | TriggerDevOpError;
2368
2030
  /** Retrieve a run Retrieve information about a run, including its status, payload, output, and attempts. If you authenticate with a Public API key, we will omit the payload and output fields for security reasons. */
@@ -2371,7 +2033,7 @@ export type GetScheduleV1Error = NotFound | TriggerDevOpError;
2371
2033
  /** Retrieve Schedule Get a schedule by its ID. */
2372
2034
  export declare const getScheduleV1: API.OperationMethod<GetScheduleV1Request, ScheduleObject, GetScheduleV1Error, TriggerDevOpContext>;
2373
2035
  export type GetSessionV1Error = NotFound | TriggerDevOpError;
2374
- /** Retrieve a session Retrieve a single session by its friendly id (`session_…`) or your `externalId`. The response includes `triggerConfig` and the friendly `currentRunId` of the live run, if any. */
2036
+ /** Retrieve a session Retrieve a single session by its friendly id (`session_...`) or your `externalId`. The response includes `triggerConfig` and the friendly `currentRunId` of the live run, if any. */
2375
2037
  export declare const getSessionV1: API.OperationMethod<GetSessionV1Request, SessionObject, GetSessionV1Error, TriggerDevOpContext>;
2376
2038
  export type GetTimezonesV1Error = TriggerDevOpError;
2377
2039
  /** Get all supported timezones Get all supported timezones that schedule tasks support. */
@@ -2470,7 +2132,7 @@ export type UpdateScheduleV1Error = BadRequest | NotFound | UnprocessableEntity
2470
2132
  /** Update Schedule Update a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
2471
2133
  export declare const updateScheduleV1: API.OperationMethod<UpdateScheduleV1Request, ScheduleObject, UpdateScheduleV1Error, TriggerDevOpContext>;
2472
2134
  export type UpdateSessionV1Error = NotFound | UnprocessableEntity | TriggerDevOpError;
2473
- /** Update a session Update a session's `tags` or `metadata`. Pass `metadata: null` to clear it. Requires a secret key — a session public token cannot update a session. `externalId` is read-only after create: it cannot be changed or cleared. Sending a value different from the current one (including `null` when one is set) returns `422`; sending the same value is accepted as a no-op. */
2135
+ /** Update a session Update a session's `tags` or `metadata`. Pass `metadata: null` to clear it. Requires a secret key -- a session public token cannot update a session. `externalId` is read-only after create: it cannot be changed or cleared. Sending a value different from the current one (including `null` when one is set) returns `422`; sending the same value is accepted as a no-op. */
2474
2136
  export declare const updateSessionV1: API.OperationMethod<UpdateSessionV1Request, SessionObject, UpdateSessionV1Error, TriggerDevOpContext>;
2475
2137
  export type UploadProjectEnvvarsV1Error = BadRequest | NotFound | TriggerDevOpError;
2476
2138
  /** Upload environment variables Upload mulitple environment variables for a specific project and environment. */