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

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.
@@ -1,15 +1,15 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-trigger-dev). Do not edit.
2
- import * as S from "@distilled.cloud/core/schema";
3
1
  import * as API from "@distilled.cloud/core/api";
4
2
  import * as C from "@distilled.cloud/core/category";
5
- import * as T from "../traits.ts";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-trigger-dev). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema";
5
+ import { UnknownTriggerDevError } from "../errors.ts";
6
6
  import {
7
7
  TriggerDevProtocol,
8
8
  type TriggerDevOpError,
9
9
  type TriggerDevOpContext,
10
10
  } from "../protocol.ts";
11
- import { UnknownTriggerDevError } from "../errors.ts";
12
11
  import * as Retry from "../retry.ts";
12
+ import * as T from "../traits.ts";
13
13
 
14
14
  export type { TriggerDevOpError, TriggerDevOpContext };
15
15
 
@@ -56,13 +56,7 @@ export interface ActivateScheduleV1Request {
56
56
  export const ActivateScheduleV1Request = /*@__PURE__*/ S.suspend(() =>
57
57
  S.Struct({
58
58
  schedule_id: S.String.pipe(T.Label()),
59
- }).pipe(
60
- T.Http({
61
- method: "POST",
62
- uri: "/api/v1/schedules/{schedule_id}/activate",
63
- code: 200,
64
- }),
65
- ),
59
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules/{schedule_id}/activate", code: 200 })),
66
60
  ).annotate({
67
61
  identifier: "ActivateScheduleV1Request",
68
62
  }) as any as S.Schema<ActivateScheduleV1Request>;
@@ -83,9 +77,27 @@ export const ScheduleObjectGenerator = /*@__PURE__*/ S.suspend(() =>
83
77
  expression: S.optional(S.String),
84
78
  description: S.optional(S.String),
85
79
  }),
80
+ ).annotate({ identifier: "ScheduleObjectGenerator" }) as any as S.Schema<ScheduleObjectGenerator>;
81
+
82
+ /** Why the minimum window is applied. */
83
+ export type ScheduleObjectAppliedSchedulePolicyReason = "free_schedule";
84
+ export const ScheduleObjectAppliedSchedulePolicyReason = S.String;
85
+
86
+ /** 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. */
87
+ export interface ScheduleObjectAppliedSchedulePolicy {
88
+ /** The minimum window, in seconds, applied on top of the configured window. */
89
+ minimumWindowSeconds?: number;
90
+ /** Why the minimum window is applied. */
91
+ reason?: ScheduleObjectAppliedSchedulePolicyReason;
92
+ }
93
+ export const ScheduleObjectAppliedSchedulePolicy = /*@__PURE__*/ S.suspend(() =>
94
+ S.Struct({
95
+ minimumWindowSeconds: S.optional(S.Number),
96
+ reason: S.optional(ScheduleObjectAppliedSchedulePolicyReason),
97
+ }),
86
98
  ).annotate({
87
- identifier: "ScheduleObjectGenerator",
88
- }) as any as S.Schema<ScheduleObjectGenerator>;
99
+ identifier: "ScheduleObjectAppliedSchedulePolicy",
100
+ }) as any as S.Schema<ScheduleObjectAppliedSchedulePolicy>;
89
101
 
90
102
  export interface ScheduleEnvironment {
91
103
  id?: string;
@@ -98,9 +110,7 @@ export const ScheduleEnvironment = /*@__PURE__*/ S.suspend(() =>
98
110
  type: S.optional(S.String),
99
111
  userName: S.optional(S.String),
100
112
  }),
101
- ).annotate({
102
- identifier: "ScheduleEnvironment",
103
- }) as any as S.Schema<ScheduleEnvironment>;
113
+ ).annotate({ identifier: "ScheduleEnvironment" }) as any as S.Schema<ScheduleEnvironment>;
104
114
 
105
115
  export type ScheduleObjectEnvironmentsList = Array<ScheduleEnvironment>;
106
116
  export const ScheduleObjectEnvironmentsList = /*@__PURE__*/ S.Array(
@@ -125,6 +135,8 @@ export interface ScheduleObject {
125
135
  timezone?: string;
126
136
  /** The next time the schedule will run */
127
137
  nextRun?: string;
138
+ /** 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. */
139
+ appliedSchedulePolicy?: ScheduleObjectAppliedSchedulePolicy;
128
140
  environments?: ScheduleObjectEnvironmentsList;
129
141
  }
130
142
  export const ScheduleObject = /*@__PURE__*/ S.suspend(() =>
@@ -138,6 +150,7 @@ export const ScheduleObject = /*@__PURE__*/ S.suspend(() =>
138
150
  generator: S.optional(ScheduleObjectGenerator),
139
151
  timezone: S.optional(S.String),
140
152
  nextRun: S.optional(S.String),
153
+ appliedSchedulePolicy: S.optional(ScheduleObjectAppliedSchedulePolicy),
141
154
  environments: S.optional(ScheduleObjectEnvironmentsList),
142
155
  }),
143
156
  ).annotate({ identifier: "ScheduleObject" }) as any as S.Schema<ScheduleObject>;
@@ -160,12 +173,8 @@ export const AddRunTagsV1Request = /*@__PURE__*/ S.suspend(() =>
160
173
  S.Struct({
161
174
  runId: S.String.pipe(T.Label()),
162
175
  tags: RunTags,
163
- }).pipe(
164
- T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/tags", code: 200 }),
165
- ),
166
- ).annotate({
167
- identifier: "AddRunTagsV1Request",
168
- }) as any as S.Schema<AddRunTagsV1Request>;
176
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/tags", code: 200 })),
177
+ ).annotate({ identifier: "AddRunTagsV1Request" }) as any as S.Schema<AddRunTagsV1Request>;
169
178
 
170
179
  export interface AddRunTagsV1Response {
171
180
  message?: string;
@@ -174,9 +183,7 @@ export const AddRunTagsV1Response = /*@__PURE__*/ S.suspend(() =>
174
183
  S.Struct({
175
184
  message: S.optional(S.String),
176
185
  }),
177
- ).annotate({
178
- identifier: "AddRunTagsV1Response",
179
- }) as any as S.Schema<AddRunTagsV1Response>;
186
+ ).annotate({ identifier: "AddRunTagsV1Response" }) as any as S.Schema<AddRunTagsV1Response>;
180
187
 
181
188
  export interface BulkAbortActionV1Request {
182
189
  /** The ID of a bulk action, starts with `bulk_`. */
@@ -185,16 +192,8 @@ export interface BulkAbortActionV1Request {
185
192
  export const BulkAbortActionV1Request = /*@__PURE__*/ S.suspend(() =>
186
193
  S.Struct({
187
194
  bulkActionId: S.String.pipe(T.Label()),
188
- }).pipe(
189
- T.Http({
190
- method: "POST",
191
- uri: "/api/v1/bulk-actions/{bulkActionId}/abort",
192
- code: 200,
193
- }),
194
- ),
195
- ).annotate({
196
- identifier: "BulkAbortActionV1Request",
197
- }) as any as S.Schema<BulkAbortActionV1Request>;
195
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/bulk-actions/{bulkActionId}/abort", code: 200 })),
196
+ ).annotate({ identifier: "BulkAbortActionV1Request" }) as any as S.Schema<BulkAbortActionV1Request>;
198
197
 
199
198
  export interface AbortBulkActionResponse {
200
199
  id: string;
@@ -203,9 +202,7 @@ export const AbortBulkActionResponse = /*@__PURE__*/ S.suspend(() =>
203
202
  S.Struct({
204
203
  id: S.String,
205
204
  }),
206
- ).annotate({
207
- identifier: "AbortBulkActionResponse",
208
- }) as any as S.Schema<AbortBulkActionResponse>;
205
+ ).annotate({ identifier: "AbortBulkActionResponse" }) as any as S.Schema<AbortBulkActionResponse>;
209
206
 
210
207
  export interface CancelRunV1Request {
211
208
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
@@ -214,12 +211,8 @@ export interface CancelRunV1Request {
214
211
  export const CancelRunV1Request = /*@__PURE__*/ S.suspend(() =>
215
212
  S.Struct({
216
213
  runId: S.String.pipe(T.Label()),
217
- }).pipe(
218
- T.Http({ method: "POST", uri: "/api/v2/runs/{runId}/cancel", code: 200 }),
219
- ),
220
- ).annotate({
221
- identifier: "CancelRunV1Request",
222
- }) as any as S.Schema<CancelRunV1Request>;
214
+ }).pipe(T.Http({ method: "POST", uri: "/api/v2/runs/{runId}/cancel", code: 200 })),
215
+ ).annotate({ identifier: "CancelRunV1Request" }) as any as S.Schema<CancelRunV1Request>;
223
216
 
224
217
  export interface CancelRunV1Response {
225
218
  /** The ID of the run that was canceled. */
@@ -229,9 +222,7 @@ export const CancelRunV1Response = /*@__PURE__*/ S.suspend(() =>
229
222
  S.Struct({
230
223
  id: S.optional(S.String),
231
224
  }),
232
- ).annotate({
233
- identifier: "CancelRunV1Response",
234
- }) as any as S.Schema<CancelRunV1Response>;
225
+ ).annotate({ identifier: "CancelRunV1Response" }) as any as S.Schema<CancelRunV1Response>;
235
226
 
236
227
  export interface CloseSessionV1Request {
237
228
  /** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
@@ -243,21 +234,11 @@ export const CloseSessionV1Request = /*@__PURE__*/ S.suspend(() =>
243
234
  S.Struct({
244
235
  session: S.String.pipe(T.Label()),
245
236
  reason: S.optional(S.String),
246
- }).pipe(
247
- T.Http({
248
- method: "POST",
249
- uri: "/api/v1/sessions/{session}/close",
250
- code: 200,
251
- }),
252
- ),
253
- ).annotate({
254
- identifier: "CloseSessionV1Request",
255
- }) as any as S.Schema<CloseSessionV1Request>;
237
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions/{session}/close", code: 200 })),
238
+ ).annotate({ identifier: "CloseSessionV1Request" }) as any as S.Schema<CloseSessionV1Request>;
256
239
 
257
240
  /** Base payload passed to every run this session triggers. For `chat.agent` this carries `{ chatId, ...clientData }`. */
258
- export type SessionTriggerConfigBasePayloadMap = {
259
- [key: string]: unknown | undefined;
260
- };
241
+ export type SessionTriggerConfigBasePayloadMap = { [key: string]: unknown | undefined };
261
242
  export const SessionTriggerConfigBasePayloadMap = /*@__PURE__*/ S.Record(
262
243
  S.String,
263
244
  S.Unknown,
@@ -302,9 +283,7 @@ export const SessionTriggerConfig = /*@__PURE__*/ S.suspend(() =>
302
283
  region: S.optional(S.String),
303
284
  idleTimeoutInSeconds: S.optional(S.Number),
304
285
  }),
305
- ).annotate({
306
- identifier: "SessionTriggerConfig",
307
- }) as any as S.Schema<SessionTriggerConfig>;
286
+ ).annotate({ identifier: "SessionTriggerConfig" }) as any as S.Schema<SessionTriggerConfig>;
308
287
 
309
288
  /** Tags on the session row. */
310
289
  export type SessionObjectTagsList = Array<string>;
@@ -369,18 +348,17 @@ export interface CompleteWaitpointTokenCallbackV1Request {
369
348
  /** The HMAC hash that authenticates the request. This is embedded in the `url` returned when creating the token — do not construct it manually. */
370
349
  callbackHash: string;
371
350
  }
372
- export const CompleteWaitpointTokenCallbackV1Request = /*@__PURE__*/ S.suspend(
373
- () =>
374
- S.Struct({
375
- waitpointId: S.String.pipe(T.Label()),
376
- callbackHash: S.String.pipe(T.Label()),
377
- }).pipe(
378
- T.Http({
379
- method: "POST",
380
- uri: "/api/v1/waitpoints/tokens/{waitpointId}/callback/{callbackHash}",
381
- code: 200,
382
- }),
383
- ),
351
+ export const CompleteWaitpointTokenCallbackV1Request = /*@__PURE__*/ S.suspend(() =>
352
+ S.Struct({
353
+ waitpointId: S.String.pipe(T.Label()),
354
+ callbackHash: S.String.pipe(T.Label()),
355
+ }).pipe(
356
+ T.Http({
357
+ method: "POST",
358
+ uri: "/api/v1/waitpoints/tokens/{waitpointId}/callback/{callbackHash}",
359
+ code: 200,
360
+ }),
361
+ ),
384
362
  ).annotate({
385
363
  identifier: "CompleteWaitpointTokenCallbackV1Request",
386
364
  }) as any as S.Schema<CompleteWaitpointTokenCallbackV1Request>;
@@ -408,11 +386,7 @@ export const CompleteWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() =>
408
386
  waitpointId: S.String.pipe(T.Label()),
409
387
  data: S.optional(S.Unknown),
410
388
  }).pipe(
411
- T.Http({
412
- method: "POST",
413
- uri: "/api/v1/waitpoints/tokens/{waitpointId}/complete",
414
- code: 200,
415
- }),
389
+ T.Http({ method: "POST", uri: "/api/v1/waitpoints/tokens/{waitpointId}/complete", code: 200 }),
416
390
  ),
417
391
  ).annotate({
418
392
  identifier: "CompleteWaitpointTokenV1Request",
@@ -456,11 +430,8 @@ export const BulkActionFilterStatusCase1List = /*@__PURE__*/ S.Array(
456
430
  BulkActionFilterStatusCase1Item,
457
431
  ) as any as S.Schema<BulkActionFilterStatusCase1List>;
458
432
 
459
- export type BulkActionFilterStatus =
460
- | BulkActionFilterStatusCase0
461
- | BulkActionFilterStatusCase1List;
462
- export const BulkActionFilterStatus =
463
- S.Unknown as any as S.Schema<BulkActionFilterStatus>;
433
+ export type BulkActionFilterStatus = BulkActionFilterStatusCase0 | BulkActionFilterStatusCase1List;
434
+ export const BulkActionFilterStatus = S.Unknown as any as S.Schema<BulkActionFilterStatus>;
464
435
 
465
436
  export type BulkActionFilterTaskIdentifierCase1List = Array<string>;
466
437
  export const BulkActionFilterTaskIdentifierCase1List = /*@__PURE__*/ S.Array(
@@ -468,9 +439,7 @@ export const BulkActionFilterTaskIdentifierCase1List = /*@__PURE__*/ S.Array(
468
439
  ) as any as S.Schema<BulkActionFilterTaskIdentifierCase1List>;
469
440
 
470
441
  /** The identifier of the task that was run. */
471
- export type BulkActionFilterTaskIdentifier =
472
- | string
473
- | BulkActionFilterTaskIdentifierCase1List;
442
+ export type BulkActionFilterTaskIdentifier = string | BulkActionFilterTaskIdentifierCase1List;
474
443
  export const BulkActionFilterTaskIdentifier =
475
444
  S.Unknown as any as S.Schema<BulkActionFilterTaskIdentifier>;
476
445
 
@@ -481,18 +450,15 @@ export const BulkActionFilterVersionCase1List = /*@__PURE__*/ S.Array(
481
450
 
482
451
  /** The worker version that executed the run. */
483
452
  export type BulkActionFilterVersion = string | BulkActionFilterVersionCase1List;
484
- export const BulkActionFilterVersion =
485
- S.Unknown as any as S.Schema<BulkActionFilterVersion>;
453
+ export const BulkActionFilterVersion = S.Unknown as any as S.Schema<BulkActionFilterVersion>;
486
454
 
487
455
  /** Start of the time range as an ISO date string or Unix timestamp in milliseconds. */
488
456
  export type BulkActionFilterFrom = string | number;
489
- export const BulkActionFilterFrom =
490
- S.Unknown as any as S.Schema<BulkActionFilterFrom>;
457
+ export const BulkActionFilterFrom = S.Unknown as any as S.Schema<BulkActionFilterFrom>;
491
458
 
492
459
  /** End of the time range as an ISO date string or Unix timestamp in milliseconds. */
493
460
  export type BulkActionFilterTo = string | number;
494
- export const BulkActionFilterTo =
495
- S.Unknown as any as S.Schema<BulkActionFilterTo>;
461
+ export const BulkActionFilterTo = S.Unknown as any as S.Schema<BulkActionFilterTo>;
496
462
 
497
463
  export type BulkActionFilterTagCase1List = Array<string>;
498
464
  export const BulkActionFilterTagCase1List = /*@__PURE__*/ S.Array(
@@ -501,8 +467,7 @@ export const BulkActionFilterTagCase1List = /*@__PURE__*/ S.Array(
501
467
 
502
468
  /** Select runs with one or more tags. */
503
469
  export type BulkActionFilterTag = string | BulkActionFilterTagCase1List;
504
- export const BulkActionFilterTag =
505
- S.Unknown as any as S.Schema<BulkActionFilterTag>;
470
+ export const BulkActionFilterTag = S.Unknown as any as S.Schema<BulkActionFilterTag>;
506
471
 
507
472
  export type QueueTypeNameType = "task" | "custom";
508
473
  export const QueueTypeNameType = S.String;
@@ -523,11 +488,8 @@ export const BulkActionFilterQueueCase1List = /*@__PURE__*/ S.Array(
523
488
  QueueTypeName,
524
489
  ) as any as S.Schema<BulkActionFilterQueueCase1List>;
525
490
 
526
- export type BulkActionFilterQueue =
527
- | QueueTypeName
528
- | BulkActionFilterQueueCase1List;
529
- export const BulkActionFilterQueue =
530
- S.Unknown as any as S.Schema<BulkActionFilterQueue>;
491
+ export type BulkActionFilterQueue = QueueTypeName | BulkActionFilterQueueCase1List;
492
+ export const BulkActionFilterQueue = S.Unknown as any as S.Schema<BulkActionFilterQueue>;
531
493
 
532
494
  export type BulkActionFilterMachineCase1List = Array<string>;
533
495
  export const BulkActionFilterMachineCase1List = /*@__PURE__*/ S.Array(
@@ -536,8 +498,7 @@ export const BulkActionFilterMachineCase1List = /*@__PURE__*/ S.Array(
536
498
 
537
499
  /** Select runs by machine preset. */
538
500
  export type BulkActionFilterMachine = string | BulkActionFilterMachineCase1List;
539
- export const BulkActionFilterMachine =
540
- S.Unknown as any as S.Schema<BulkActionFilterMachine>;
501
+ export const BulkActionFilterMachine = S.Unknown as any as S.Schema<BulkActionFilterMachine>;
541
502
 
542
503
  export type BulkActionFilterRegionCase1List = Array<string>;
543
504
  export const BulkActionFilterRegionCase1List = /*@__PURE__*/ S.Array(
@@ -546,8 +507,7 @@ export const BulkActionFilterRegionCase1List = /*@__PURE__*/ S.Array(
546
507
 
547
508
  /** Select runs by region. */
548
509
  export type BulkActionFilterRegion = string | BulkActionFilterRegionCase1List;
549
- export const BulkActionFilterRegion =
550
- S.Unknown as any as S.Schema<BulkActionFilterRegion>;
510
+ export const BulkActionFilterRegion = S.Unknown as any as S.Schema<BulkActionFilterRegion>;
551
511
 
552
512
  /** 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. */
553
513
  export interface BulkActionFilter {
@@ -595,9 +555,7 @@ export const BulkActionFilter = /*@__PURE__*/ S.suspend(() =>
595
555
  machine: S.optional(BulkActionFilterMachine),
596
556
  region: S.optional(BulkActionFilterRegion),
597
557
  }),
598
- ).annotate({
599
- identifier: "BulkActionFilter",
600
- }) as any as S.Schema<BulkActionFilter>;
558
+ ).annotate({ identifier: "BulkActionFilter" }) as any as S.Schema<BulkActionFilter>;
601
559
 
602
560
  export interface CreateBulkActionRequestBodyCase0 {
603
561
  action: CreateBulkActionRequestBodyCase0Action;
@@ -704,9 +662,7 @@ export const CreateBulkActionV1Request = /*@__PURE__*/ S.suspend(() =>
704
662
  }) as any as S.Schema<CreateBulkActionV1Request>;
705
663
 
706
664
  export interface CreateBulkActionV1Response {}
707
- export const CreateBulkActionV1Response = /*@__PURE__*/ S.suspend(() =>
708
- S.Struct({}),
709
- ).annotate({
665
+ export const CreateBulkActionV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
710
666
  identifier: "CreateBulkActionV1Response",
711
667
  }) as any as S.Schema<CreateBulkActionV1Response>;
712
668
 
@@ -728,11 +684,7 @@ export const CreateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() =>
728
684
  name: S.String,
729
685
  value: S.String,
730
686
  }).pipe(
731
- T.Http({
732
- method: "POST",
733
- uri: "/api/v1/projects/{projectRef}/envvars/{env}",
734
- code: 200,
735
- }),
687
+ T.Http({ method: "POST", uri: "/api/v1/projects/{projectRef}/envvars/{env}", code: 200 }),
736
688
  ),
737
689
  ).annotate({
738
690
  identifier: "CreateProjectEnvvarV1Request",
@@ -745,9 +697,7 @@ export const SucceedResponse = /*@__PURE__*/ S.suspend(() =>
745
697
  S.Struct({
746
698
  success: S.Boolean,
747
699
  }),
748
- ).annotate({
749
- identifier: "SucceedResponse",
750
- }) as any as S.Schema<SucceedResponse>;
700
+ ).annotate({ identifier: "SucceedResponse" }) as any as S.Schema<SucceedResponse>;
751
701
 
752
702
  export interface CreateScheduleV1Request {
753
703
  task: string;
@@ -765,9 +715,7 @@ export const CreateScheduleV1Request = /*@__PURE__*/ S.suspend(() =>
765
715
  externalId: S.optional(S.String),
766
716
  timezone: S.optional(S.String),
767
717
  }).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules", code: 200 })),
768
- ).annotate({
769
- identifier: "CreateScheduleV1Request",
770
- }) as any as S.Schema<CreateScheduleV1Request>;
718
+ ).annotate({ identifier: "CreateScheduleV1Request" }) as any as S.Schema<CreateScheduleV1Request>;
771
719
 
772
720
  /** Up to 10 tags on the session row, for dashboard filtering. */
773
721
  export type CreateSessionV1RequestTagsList = Array<string>;
@@ -776,9 +724,7 @@ export const CreateSessionV1RequestTagsList = /*@__PURE__*/ S.Array(
776
724
  ) as any as S.Schema<CreateSessionV1RequestTagsList>;
777
725
 
778
726
  /** Arbitrary JSON metadata. */
779
- export type CreateSessionV1RequestMetadataMap = {
780
- [key: string]: unknown | undefined;
781
- };
727
+ export type CreateSessionV1RequestMetadataMap = { [key: string]: unknown | undefined };
782
728
  export const CreateSessionV1RequestMetadataMap = /*@__PURE__*/ S.Record(
783
729
  S.String,
784
730
  S.Unknown,
@@ -809,9 +755,7 @@ export const CreateSessionV1Request = /*@__PURE__*/ S.suspend(() =>
809
755
  metadata: S.optional(CreateSessionV1RequestMetadataMap),
810
756
  expiresAt: S.optional(S.String),
811
757
  }).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions", code: 200 })),
812
- ).annotate({
813
- identifier: "CreateSessionV1Request",
814
- }) as any as S.Schema<CreateSessionV1Request>;
758
+ ).annotate({ identifier: "CreateSessionV1Request" }) as any as S.Schema<CreateSessionV1Request>;
815
759
 
816
760
  /** Tags on the session row. */
817
761
  export type CreateSessionV1ResponseTagsList = Array<string>;
@@ -820,9 +764,7 @@ export const CreateSessionV1ResponseTagsList = /*@__PURE__*/ S.Array(
820
764
  ) as any as S.Schema<CreateSessionV1ResponseTagsList>;
821
765
 
822
766
  /** Arbitrary JSON metadata, or `null` if unset. */
823
- export type CreateSessionV1ResponseMetadataMap = {
824
- [key: string]: unknown | undefined;
825
- };
767
+ export type CreateSessionV1ResponseMetadataMap = { [key: string]: unknown | undefined };
826
768
  export const CreateSessionV1ResponseMetadataMap = /*@__PURE__*/ S.Record(
827
769
  S.String,
828
770
  S.Unknown,
@@ -878,9 +820,7 @@ export const CreateSessionV1Response = /*@__PURE__*/ S.suspend(() =>
878
820
  publicAccessToken: S.String,
879
821
  isCached: S.Boolean,
880
822
  }),
881
- ).annotate({
882
- identifier: "CreateSessionV1Response",
883
- }) as any as S.Schema<CreateSessionV1Response>;
823
+ ).annotate({ identifier: "CreateSessionV1Response" }) as any as S.Schema<CreateSessionV1Response>;
884
824
 
885
825
  export type CreateWaitpointTokenV1RequestTagsCase1List = Array<string>;
886
826
  export const CreateWaitpointTokenV1RequestTagsCase1List = /*@__PURE__*/ S.Array(
@@ -888,9 +828,7 @@ export const CreateWaitpointTokenV1RequestTagsCase1List = /*@__PURE__*/ S.Array(
888
828
  ) as any as S.Schema<CreateWaitpointTokenV1RequestTagsCase1List>;
889
829
 
890
830
  /** 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`. */
891
- export type CreateWaitpointTokenV1RequestTags =
892
- | string
893
- | CreateWaitpointTokenV1RequestTagsCase1List;
831
+ export type CreateWaitpointTokenV1RequestTags = string | CreateWaitpointTokenV1RequestTagsCase1List;
894
832
  export const CreateWaitpointTokenV1RequestTags =
895
833
  S.Unknown as any as S.Schema<CreateWaitpointTokenV1RequestTags>;
896
834
 
@@ -910,9 +848,7 @@ export const CreateWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() =>
910
848
  idempotencyKeyTTL: S.optional(S.String),
911
849
  timeout: S.optional(S.String),
912
850
  tags: S.optional(CreateWaitpointTokenV1RequestTags),
913
- }).pipe(
914
- T.Http({ method: "POST", uri: "/api/v1/waitpoints/tokens", code: 200 }),
915
- ),
851
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/waitpoints/tokens", code: 200 })),
916
852
  ).annotate({
917
853
  identifier: "CreateWaitpointTokenV1Request",
918
854
  }) as any as S.Schema<CreateWaitpointTokenV1Request>;
@@ -942,13 +878,7 @@ export interface DeactivateScheduleV1Request {
942
878
  export const DeactivateScheduleV1Request = /*@__PURE__*/ S.suspend(() =>
943
879
  S.Struct({
944
880
  schedule_id: S.String.pipe(T.Label()),
945
- }).pipe(
946
- T.Http({
947
- method: "POST",
948
- uri: "/api/v1/schedules/{schedule_id}/deactivate",
949
- code: 200,
950
- }),
951
- ),
881
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules/{schedule_id}/deactivate", code: 200 })),
952
882
  ).annotate({
953
883
  identifier: "DeactivateScheduleV1Request",
954
884
  }) as any as S.Schema<DeactivateScheduleV1Request>;
@@ -987,29 +917,16 @@ export interface DeleteScheduleV1Request {
987
917
  export const DeleteScheduleV1Request = /*@__PURE__*/ S.suspend(() =>
988
918
  S.Struct({
989
919
  schedule_id: S.String.pipe(T.Label()),
990
- }).pipe(
991
- T.Http({
992
- method: "DELETE",
993
- uri: "/api/v1/schedules/{schedule_id}",
994
- code: 200,
995
- }),
996
- ),
997
- ).annotate({
998
- identifier: "DeleteScheduleV1Request",
999
- }) as any as S.Schema<DeleteScheduleV1Request>;
920
+ }).pipe(T.Http({ method: "DELETE", uri: "/api/v1/schedules/{schedule_id}", code: 200 })),
921
+ ).annotate({ identifier: "DeleteScheduleV1Request" }) as any as S.Schema<DeleteScheduleV1Request>;
1000
922
 
1001
923
  export interface DeleteScheduleV1Response {}
1002
- export const DeleteScheduleV1Response = /*@__PURE__*/ S.suspend(() =>
1003
- S.Struct({}),
1004
- ).annotate({
924
+ export const DeleteScheduleV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1005
925
  identifier: "DeleteScheduleV1Response",
1006
926
  }) as any as S.Schema<DeleteScheduleV1Response>;
1007
927
 
1008
928
  /** The scope of data to query - environment (default), project, or organization */
1009
- export type ExecuteQueryV1RequestScope =
1010
- | "environment"
1011
- | "project"
1012
- | "organization";
929
+ export type ExecuteQueryV1RequestScope = "environment" | "project" | "organization";
1013
930
  export const ExecuteQueryV1RequestScope = S.String;
1014
931
 
1015
932
  /** Response format - "json" returns structured data (default), "csv" returns CSV string */
@@ -1039,9 +956,7 @@ export const ExecuteQueryV1Request = /*@__PURE__*/ S.suspend(() =>
1039
956
  to: S.optional(S.NullOr(S.String)),
1040
957
  format: S.optional(ExecuteQueryV1RequestFormat),
1041
958
  }).pipe(T.Http({ method: "POST", uri: "/api/v1/query", code: 200 })),
1042
- ).annotate({
1043
- identifier: "ExecuteQueryV1Request",
1044
- }) as any as S.Schema<ExecuteQueryV1Request>;
959
+ ).annotate({ identifier: "ExecuteQueryV1Request" }) as any as S.Schema<ExecuteQueryV1Request>;
1045
960
 
1046
961
  export type ExecuteQueryResponseCase0Format = "json";
1047
962
  export const ExecuteQueryResponseCase0Format = S.String;
@@ -1085,18 +1000,13 @@ export const ExecuteQueryResponseCase1 = /*@__PURE__*/ S.suspend(() =>
1085
1000
  identifier: "ExecuteQueryResponseCase1",
1086
1001
  }) as any as S.Schema<ExecuteQueryResponseCase1>;
1087
1002
 
1088
- export type ExecuteQueryResponse =
1089
- | ExecuteQueryResponseCase0
1090
- | ExecuteQueryResponseCase1;
1091
- export const ExecuteQueryResponse =
1092
- S.Unknown as any as S.Schema<ExecuteQueryResponse>;
1003
+ export type ExecuteQueryResponse = ExecuteQueryResponseCase0 | ExecuteQueryResponseCase1;
1004
+ export const ExecuteQueryResponse = S.Unknown as any as S.Schema<ExecuteQueryResponse>;
1093
1005
 
1094
1006
  export type ExecuteQueryV1Response = ExecuteQueryResponse;
1095
1007
  export const ExecuteQueryV1Response = /*@__PURE__*/ S.suspend(() =>
1096
1008
  ExecuteQueryResponse.pipe(T.RawResponseRoot()),
1097
- ).annotate({
1098
- identifier: "ExecuteQueryV1Response",
1099
- }) as any as S.Schema<ExecuteQueryV1Response>;
1009
+ ).annotate({ identifier: "ExecuteQueryV1Response" }) as any as S.Schema<ExecuteQueryV1Response>;
1100
1010
 
1101
1011
  export interface GetBatchResultsV1Request {
1102
1012
  /** The ID of the batch, starts with `batch_`. */
@@ -1105,26 +1015,17 @@ export interface GetBatchResultsV1Request {
1105
1015
  export const GetBatchResultsV1Request = /*@__PURE__*/ S.suspend(() =>
1106
1016
  S.Struct({
1107
1017
  batchId: S.String.pipe(T.Label()),
1108
- }).pipe(
1109
- T.Http({
1110
- method: "GET",
1111
- uri: "/api/v1/batches/{batchId}/results",
1112
- code: 200,
1113
- }),
1114
- ),
1115
- ).annotate({
1116
- identifier: "GetBatchResultsV1Request",
1117
- }) as any as S.Schema<GetBatchResultsV1Request>;
1018
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}/results", code: 200 })),
1019
+ ).annotate({ identifier: "GetBatchResultsV1Request" }) as any as S.Schema<GetBatchResultsV1Request>;
1118
1020
 
1119
1021
  export interface GetBatchResultsV1ResponseItemsItemUsage {
1120
1022
  /** Duration of the run in milliseconds. */
1121
1023
  durationMs?: number;
1122
1024
  }
1123
- export const GetBatchResultsV1ResponseItemsItemUsage = /*@__PURE__*/ S.suspend(
1124
- () =>
1125
- S.Struct({
1126
- durationMs: S.optional(S.Number),
1127
- }),
1025
+ export const GetBatchResultsV1ResponseItemsItemUsage = /*@__PURE__*/ S.suspend(() =>
1026
+ S.Struct({
1027
+ durationMs: S.optional(S.Number),
1028
+ }),
1128
1029
  ).annotate({
1129
1030
  identifier: "GetBatchResultsV1ResponseItemsItemUsage",
1130
1031
  }) as any as S.Schema<GetBatchResultsV1ResponseItemsItemUsage>;
@@ -1159,8 +1060,7 @@ export const GetBatchResultsV1ResponseItemsItem = /*@__PURE__*/ S.suspend(() =>
1159
1060
  }) as any as S.Schema<GetBatchResultsV1ResponseItemsItem>;
1160
1061
 
1161
1062
  /** Execution results for each run in the batch. */
1162
- export type GetBatchResultsV1ResponseItemsList =
1163
- Array<GetBatchResultsV1ResponseItemsItem>;
1063
+ export type GetBatchResultsV1ResponseItemsList = Array<GetBatchResultsV1ResponseItemsItem>;
1164
1064
  export const GetBatchResultsV1ResponseItemsList = /*@__PURE__*/ S.Array(
1165
1065
  GetBatchResultsV1ResponseItemsItem,
1166
1066
  ) as any as S.Schema<GetBatchResultsV1ResponseItemsList>;
@@ -1187,12 +1087,8 @@ export interface GetBatchV1Request {
1187
1087
  export const GetBatchV1Request = /*@__PURE__*/ S.suspend(() =>
1188
1088
  S.Struct({
1189
1089
  batchId: S.String.pipe(T.Label()),
1190
- }).pipe(
1191
- T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}", code: 200 }),
1192
- ),
1193
- ).annotate({
1194
- identifier: "GetBatchV1Request",
1195
- }) as any as S.Schema<GetBatchV1Request>;
1090
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}", code: 200 })),
1091
+ ).annotate({ identifier: "GetBatchV1Request" }) as any as S.Schema<GetBatchV1Request>;
1196
1092
 
1197
1093
  /** The current status of the batch. */
1198
1094
  export type GetBatchV1ResponseStatus =
@@ -1269,9 +1165,7 @@ export const GetBatchV1Response = /*@__PURE__*/ S.suspend(() =>
1269
1165
  failedRunCount: S.optional(S.NullOr(S.Number)),
1270
1166
  errors: S.optional(S.NullOr(GetBatchV1ResponseErrorsList)),
1271
1167
  }),
1272
- ).annotate({
1273
- identifier: "GetBatchV1Response",
1274
- }) as any as S.Schema<GetBatchV1Response>;
1168
+ ).annotate({ identifier: "GetBatchV1Response" }) as any as S.Schema<GetBatchV1Response>;
1275
1169
 
1276
1170
  export interface GetBulkActionV1Request {
1277
1171
  /** The ID of a bulk action, starts with `bulk_`. */
@@ -1280,16 +1174,8 @@ export interface GetBulkActionV1Request {
1280
1174
  export const GetBulkActionV1Request = /*@__PURE__*/ S.suspend(() =>
1281
1175
  S.Struct({
1282
1176
  bulkActionId: S.String.pipe(T.Label()),
1283
- }).pipe(
1284
- T.Http({
1285
- method: "GET",
1286
- uri: "/api/v1/bulk-actions/{bulkActionId}",
1287
- code: 200,
1288
- }),
1289
- ),
1290
- ).annotate({
1291
- identifier: "GetBulkActionV1Request",
1292
- }) as any as S.Schema<GetBulkActionV1Request>;
1177
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions/{bulkActionId}", code: 200 })),
1178
+ ).annotate({ identifier: "GetBulkActionV1Request" }) as any as S.Schema<GetBulkActionV1Request>;
1293
1179
 
1294
1180
  export type BulkActionObjectType = "CANCEL" | "REPLAY";
1295
1181
  export const BulkActionObjectType = S.String;
@@ -1311,9 +1197,7 @@ export const BulkActionObjectCounts = /*@__PURE__*/ S.suspend(() =>
1311
1197
  success: S.Number,
1312
1198
  failure: S.Number,
1313
1199
  }),
1314
- ).annotate({
1315
- identifier: "BulkActionObjectCounts",
1316
- }) as any as S.Schema<BulkActionObjectCounts>;
1200
+ ).annotate({ identifier: "BulkActionObjectCounts" }) as any as S.Schema<BulkActionObjectCounts>;
1317
1201
 
1318
1202
  export interface BulkActionObject {
1319
1203
  /** The bulk action ID, prefixed with `bulk_`. */
@@ -1336,9 +1220,91 @@ export const BulkActionObject = /*@__PURE__*/ S.suspend(() =>
1336
1220
  createdAt: S.String,
1337
1221
  completedAt: S.optional(S.String),
1338
1222
  }),
1223
+ ).annotate({ identifier: "BulkActionObject" }) as any as S.Schema<BulkActionObject>;
1224
+
1225
+ export interface GetConcurrencyLimitV1Request {
1226
+ /** The limit's name, as declared with `concurrencyLimit()` */
1227
+ name: string;
1228
+ }
1229
+ export const GetConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() =>
1230
+ S.Struct({
1231
+ name: S.String.pipe(T.Label()),
1232
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/concurrency-limits/{name}", code: 200 })),
1339
1233
  ).annotate({
1340
- identifier: "BulkActionObject",
1341
- }) as any as S.Schema<BulkActionObject>;
1234
+ identifier: "GetConcurrencyLimitV1Request",
1235
+ }) as any as S.Schema<GetConcurrencyLimitV1Request>;
1236
+
1237
+ /** Caps each concurrencyKey pool; runs without a key share one pool */
1238
+ export interface ConcurrencyLimitObjectPerKey {
1239
+ /** Enforced right now (null = no per-key bound). Enforcement clamps it to the environment concurrency limit at admit time. */
1240
+ current?: number | null;
1241
+ /** The declared value an override reverts to on reset */
1242
+ base?: number | null;
1243
+ /** The overridden value, when an override is active */
1244
+ override?: number | null;
1245
+ /** When the override was applied */
1246
+ overriddenAt?: string | null;
1247
+ }
1248
+ export const ConcurrencyLimitObjectPerKey = /*@__PURE__*/ S.suspend(() =>
1249
+ S.Struct({
1250
+ current: S.optional(S.NullOr(S.Number)),
1251
+ base: S.optional(S.NullOr(S.Number)),
1252
+ override: S.optional(S.NullOr(S.Number)),
1253
+ overriddenAt: S.optional(S.NullOr(S.String)),
1254
+ }),
1255
+ ).annotate({
1256
+ identifier: "ConcurrencyLimitObjectPerKey",
1257
+ }) as any as S.Schema<ConcurrencyLimitObjectPerKey>;
1258
+
1259
+ /** Caps every run holding this limit, keys or not */
1260
+ export interface ConcurrencyLimitObjectTotal {
1261
+ /** Enforced right now (null = no total bound). Enforcement clamps it to the environment concurrency limit at admit time. */
1262
+ current?: number | null;
1263
+ /** The declared value an override reverts to on reset */
1264
+ base?: number | null;
1265
+ /** The overridden value, when an override is active */
1266
+ override?: number | null;
1267
+ /** When the override was applied */
1268
+ overriddenAt?: string | null;
1269
+ }
1270
+ export const ConcurrencyLimitObjectTotal = /*@__PURE__*/ S.suspend(() =>
1271
+ S.Struct({
1272
+ current: S.optional(S.NullOr(S.Number)),
1273
+ base: S.optional(S.NullOr(S.Number)),
1274
+ override: S.optional(S.NullOr(S.Number)),
1275
+ overriddenAt: S.optional(S.NullOr(S.String)),
1276
+ }),
1277
+ ).annotate({
1278
+ identifier: "ConcurrencyLimitObjectTotal",
1279
+ }) as any as S.Schema<ConcurrencyLimitObjectTotal>;
1280
+
1281
+ export interface ConcurrencyLimitObject {
1282
+ /** The limit's id, starting with `climit_` */
1283
+ id: string;
1284
+ /** The limit's name, as declared with `concurrencyLimit()` */
1285
+ name: string;
1286
+ /** Caps each concurrencyKey pool; runs without a key share one pool */
1287
+ perKey: ConcurrencyLimitObjectPerKey;
1288
+ /** Caps every run holding this limit, keys or not */
1289
+ total: ConcurrencyLimitObjectTotal;
1290
+ /** Runs executing that hold this limit */
1291
+ running: number;
1292
+ /** Runs that are queued and must clear this limit to execute */
1293
+ queued: number;
1294
+ /** Whether the limit is paused. A paused limit admits no runs until resumed; its configured bounds are kept. */
1295
+ paused?: boolean;
1296
+ }
1297
+ export const ConcurrencyLimitObject = /*@__PURE__*/ S.suspend(() =>
1298
+ S.Struct({
1299
+ id: S.String,
1300
+ name: S.String,
1301
+ perKey: ConcurrencyLimitObjectPerKey,
1302
+ total: ConcurrencyLimitObjectTotal,
1303
+ running: S.Number,
1304
+ queued: S.Number,
1305
+ paused: S.optional(S.Boolean),
1306
+ }),
1307
+ ).annotate({ identifier: "ConcurrencyLimitObject" }) as any as S.Schema<ConcurrencyLimitObject>;
1342
1308
 
1343
1309
  export interface GetDeploymentV1Request {
1344
1310
  /** The deployment ID. */
@@ -1347,16 +1313,8 @@ export interface GetDeploymentV1Request {
1347
1313
  export const GetDeploymentV1Request = /*@__PURE__*/ S.suspend(() =>
1348
1314
  S.Struct({
1349
1315
  deploymentId: S.String.pipe(T.Label()),
1350
- }).pipe(
1351
- T.Http({
1352
- method: "GET",
1353
- uri: "/api/v1/deployments/{deploymentId}",
1354
- code: 200,
1355
- }),
1356
- ),
1357
- ).annotate({
1358
- identifier: "GetDeploymentV1Request",
1359
- }) as any as S.Schema<GetDeploymentV1Request>;
1316
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments/{deploymentId}", code: 200 })),
1317
+ ).annotate({ identifier: "GetDeploymentV1Request" }) as any as S.Schema<GetDeploymentV1Request>;
1360
1318
 
1361
1319
  /** The current status of the deployment */
1362
1320
  export type GetDeploymentV1ResponseStatus =
@@ -1376,20 +1334,18 @@ export interface GetDeploymentV1ResponseWorkerTasksItem {
1376
1334
  filePath?: string;
1377
1335
  exportName?: string;
1378
1336
  }
1379
- export const GetDeploymentV1ResponseWorkerTasksItem = /*@__PURE__*/ S.suspend(
1380
- () =>
1381
- S.Struct({
1382
- id: S.optional(S.String),
1383
- slug: S.optional(S.String),
1384
- filePath: S.optional(S.String),
1385
- exportName: S.optional(S.String),
1386
- }),
1337
+ export const GetDeploymentV1ResponseWorkerTasksItem = /*@__PURE__*/ S.suspend(() =>
1338
+ S.Struct({
1339
+ id: S.optional(S.String),
1340
+ slug: S.optional(S.String),
1341
+ filePath: S.optional(S.String),
1342
+ exportName: S.optional(S.String),
1343
+ }),
1387
1344
  ).annotate({
1388
1345
  identifier: "GetDeploymentV1ResponseWorkerTasksItem",
1389
1346
  }) as any as S.Schema<GetDeploymentV1ResponseWorkerTasksItem>;
1390
1347
 
1391
- export type GetDeploymentV1ResponseWorkerTasksList =
1392
- Array<GetDeploymentV1ResponseWorkerTasksItem>;
1348
+ export type GetDeploymentV1ResponseWorkerTasksList = Array<GetDeploymentV1ResponseWorkerTasksItem>;
1393
1349
  export const GetDeploymentV1ResponseWorkerTasksList = /*@__PURE__*/ S.Array(
1394
1350
  GetDeploymentV1ResponseWorkerTasksItem,
1395
1351
  ) as any as S.Schema<GetDeploymentV1ResponseWorkerTasksList>;
@@ -1425,6 +1381,8 @@ export interface GetDeploymentV1Response {
1425
1381
  imageReference?: string | null;
1426
1382
  /** Platform of the deployment image */
1427
1383
  imagePlatform?: string;
1384
+ /** 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 */
1385
+ externalId?: string;
1428
1386
  /** External build data if applicable */
1429
1387
  externalBuildData?: unknown | null;
1430
1388
  /** Error data if the deployment failed */
@@ -1441,13 +1399,12 @@ export const GetDeploymentV1Response = /*@__PURE__*/ S.suspend(() =>
1441
1399
  version: S.optional(S.String),
1442
1400
  imageReference: S.optional(S.NullOr(S.String)),
1443
1401
  imagePlatform: S.optional(S.String),
1402
+ externalId: S.optional(S.String),
1444
1403
  externalBuildData: S.optional(S.NullOr(S.Unknown)),
1445
1404
  errorData: S.optional(S.NullOr(S.Unknown)),
1446
1405
  worker: S.optional(S.NullOr(GetDeploymentV1ResponseWorker)),
1447
1406
  }),
1448
- ).annotate({
1449
- identifier: "GetDeploymentV1Response",
1450
- }) as any as S.Schema<GetDeploymentV1Response>;
1407
+ ).annotate({ identifier: "GetDeploymentV1Response" }) as any as S.Schema<GetDeploymentV1Response>;
1451
1408
 
1452
1409
  export interface GetErrorV1Request {
1453
1410
  /** The ID of an error group, starts with `error_`. */
@@ -1456,12 +1413,8 @@ export interface GetErrorV1Request {
1456
1413
  export const GetErrorV1Request = /*@__PURE__*/ S.suspend(() =>
1457
1414
  S.Struct({
1458
1415
  errorId: S.String.pipe(T.Label()),
1459
- }).pipe(
1460
- T.Http({ method: "GET", uri: "/api/v1/errors/{errorId}", code: 200 }),
1461
- ),
1462
- ).annotate({
1463
- identifier: "GetErrorV1Request",
1464
- }) as any as S.Schema<GetErrorV1Request>;
1416
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/errors/{errorId}", code: 200 })),
1417
+ ).annotate({ identifier: "GetErrorV1Request" }) as any as S.Schema<GetErrorV1Request>;
1465
1418
 
1466
1419
  /** The most recent worker versions the error has occurred in (up to five) */
1467
1420
  export type ErrorObjectAffectedVersionsList = Array<string>;
@@ -1527,9 +1480,7 @@ export const ErrorObject = /*@__PURE__*/ S.suspend(() =>
1527
1480
 
1528
1481
  export interface GetLatestDeploymentV1Request {}
1529
1482
  export const GetLatestDeploymentV1Request = /*@__PURE__*/ S.suspend(() =>
1530
- S.Struct({}).pipe(
1531
- T.Http({ method: "GET", uri: "/api/v1/deployments/latest", code: 200 }),
1532
- ),
1483
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments/latest", code: 200 })),
1533
1484
  ).annotate({
1534
1485
  identifier: "GetLatestDeploymentV1Request",
1535
1486
  }) as any as S.Schema<GetLatestDeploymentV1Request>;
@@ -1593,17 +1544,14 @@ export const GetProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() =>
1593
1544
  env: GetProjectEnvvarV1RequestEnv.pipe(T.Label()),
1594
1545
  name: S.String.pipe(T.Label()),
1595
1546
  }).pipe(
1596
- T.Http({
1597
- method: "GET",
1598
- uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}",
1599
- code: 200,
1600
- }),
1547
+ T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}", code: 200 }),
1601
1548
  ),
1602
1549
  ).annotate({
1603
1550
  identifier: "GetProjectEnvvarV1Request",
1604
1551
  }) as any as S.Schema<GetProjectEnvvarV1Request>;
1605
1552
 
1606
1553
  export interface EnvVarValue {
1554
+ /** The value to store. An empty string is valid and is stored as-is, not treated as a deletion. */
1607
1555
  value: string;
1608
1556
  }
1609
1557
  export const EnvVarValue = /*@__PURE__*/ S.suspend(() =>
@@ -1614,20 +1562,14 @@ export const EnvVarValue = /*@__PURE__*/ S.suspend(() =>
1614
1562
 
1615
1563
  export interface GetQuerySchemaV1Request {}
1616
1564
  export const GetQuerySchemaV1Request = /*@__PURE__*/ S.suspend(() =>
1617
- S.Struct({}).pipe(
1618
- T.Http({ method: "GET", uri: "/api/v1/query/schema", code: 200 }),
1619
- ),
1620
- ).annotate({
1621
- identifier: "GetQuerySchemaV1Request",
1622
- }) as any as S.Schema<GetQuerySchemaV1Request>;
1565
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/query/schema", code: 200 })),
1566
+ ).annotate({ identifier: "GetQuerySchemaV1Request" }) as any as S.Schema<GetQuerySchemaV1Request>;
1623
1567
 
1624
1568
  /** Allowed values for enum-like columns */
1625
- export type GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList =
1626
- Array<string>;
1627
- export const GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList =
1628
- /*@__PURE__*/ S.Array(
1629
- S.String,
1630
- ) as any as S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList>;
1569
+ export type GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList = Array<string>;
1570
+ export const GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList = /*@__PURE__*/ S.Array(
1571
+ S.String,
1572
+ ) as any as S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList>;
1631
1573
 
1632
1574
  export interface GetQuerySchemaV1ResponseTablesItemColumnsItem {
1633
1575
  /** Column name */
@@ -1643,28 +1585,24 @@ export interface GetQuerySchemaV1ResponseTablesItemColumnsItem {
1643
1585
  /** Whether this is a core column included in default queries */
1644
1586
  coreColumn?: boolean;
1645
1587
  }
1646
- export const GetQuerySchemaV1ResponseTablesItemColumnsItem =
1647
- /*@__PURE__*/ S.suspend(() =>
1648
- S.Struct({
1649
- name: S.optional(S.String),
1650
- type: S.optional(S.String),
1651
- description: S.optional(S.String),
1652
- example: S.optional(S.String),
1653
- allowedValues: S.optional(
1654
- GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList,
1655
- ),
1656
- coreColumn: S.optional(S.Boolean),
1657
- }),
1658
- ).annotate({
1659
- identifier: "GetQuerySchemaV1ResponseTablesItemColumnsItem",
1660
- }) as any as S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
1588
+ export const GetQuerySchemaV1ResponseTablesItemColumnsItem = /*@__PURE__*/ S.suspend(() =>
1589
+ S.Struct({
1590
+ name: S.optional(S.String),
1591
+ type: S.optional(S.String),
1592
+ description: S.optional(S.String),
1593
+ example: S.optional(S.String),
1594
+ allowedValues: S.optional(GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList),
1595
+ coreColumn: S.optional(S.Boolean),
1596
+ }),
1597
+ ).annotate({
1598
+ identifier: "GetQuerySchemaV1ResponseTablesItemColumnsItem",
1599
+ }) as any as S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
1661
1600
 
1662
1601
  export type GetQuerySchemaV1ResponseTablesItemColumnsList =
1663
1602
  Array<GetQuerySchemaV1ResponseTablesItemColumnsItem>;
1664
- export const GetQuerySchemaV1ResponseTablesItemColumnsList =
1665
- /*@__PURE__*/ S.Array(
1666
- GetQuerySchemaV1ResponseTablesItemColumnsItem,
1667
- ) as any as S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsList>;
1603
+ export const GetQuerySchemaV1ResponseTablesItemColumnsList = /*@__PURE__*/ S.Array(
1604
+ GetQuerySchemaV1ResponseTablesItemColumnsItem,
1605
+ ) as any as S.Schema<GetQuerySchemaV1ResponseTablesItemColumnsList>;
1668
1606
 
1669
1607
  export interface GetQuerySchemaV1ResponseTablesItem {
1670
1608
  /** Table name used in TRQL queries */
@@ -1686,8 +1624,7 @@ export const GetQuerySchemaV1ResponseTablesItem = /*@__PURE__*/ S.suspend(() =>
1686
1624
  identifier: "GetQuerySchemaV1ResponseTablesItem",
1687
1625
  }) as any as S.Schema<GetQuerySchemaV1ResponseTablesItem>;
1688
1626
 
1689
- export type GetQuerySchemaV1ResponseTablesList =
1690
- Array<GetQuerySchemaV1ResponseTablesItem>;
1627
+ export type GetQuerySchemaV1ResponseTablesList = Array<GetQuerySchemaV1ResponseTablesItem>;
1691
1628
  export const GetQuerySchemaV1ResponseTablesList = /*@__PURE__*/ S.Array(
1692
1629
  GetQuerySchemaV1ResponseTablesItem,
1693
1630
  ) as any as S.Schema<GetQuerySchemaV1ResponseTablesList>;
@@ -1699,9 +1636,7 @@ export const GetQuerySchemaV1Response = /*@__PURE__*/ S.suspend(() =>
1699
1636
  S.Struct({
1700
1637
  tables: S.optional(GetQuerySchemaV1ResponseTablesList),
1701
1638
  }),
1702
- ).annotate({
1703
- identifier: "GetQuerySchemaV1Response",
1704
- }) as any as S.Schema<GetQuerySchemaV1Response>;
1639
+ ).annotate({ identifier: "GetQuerySchemaV1Response" }) as any as S.Schema<GetQuerySchemaV1Response>;
1705
1640
 
1706
1641
  export type GetQueueV1RequestType = "id" | "task" | "custom";
1707
1642
  export const GetQueueV1RequestType = S.String;
@@ -1716,18 +1651,18 @@ export const GetQueueV1Request = /*@__PURE__*/ S.suspend(() =>
1716
1651
  S.Struct({
1717
1652
  queueParam: S.String.pipe(T.Label()),
1718
1653
  type: S.optional(GetQueueV1RequestType.pipe(T.Query())),
1719
- }).pipe(
1720
- T.Http({ method: "GET", uri: "/api/v1/queues/{queueParam}", code: 200 }),
1721
- ),
1722
- ).annotate({
1723
- identifier: "GetQueueV1Request",
1724
- }) as any as S.Schema<GetQueueV1Request>;
1654
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/queues/{queueParam}", code: 200 })),
1655
+ ).annotate({ identifier: "GetQueueV1Request" }) as any as S.Schema<GetQueueV1Request>;
1725
1656
 
1726
1657
  /** The type of queue: - `task`: Created automatically for each task - `custom`: Created explicitly in your code using `queue()` */
1727
1658
  export type QueueObjectType = "task" | "custom";
1728
1659
  export const QueueObjectType = S.String;
1729
1660
 
1730
- /** Detailed concurrency information */
1661
+ /** 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. */
1662
+ export type QueueObjectVersion = "V1" | "V2";
1663
+ export const QueueObjectVersion = S.String;
1664
+
1665
+ /** Detailed concurrency information. V1 queues only. */
1731
1666
  export interface QueueObjectConcurrency {
1732
1667
  /** The effective/current concurrency limit */
1733
1668
  current?: number | null;
@@ -1748,9 +1683,7 @@ export const QueueObjectConcurrency = /*@__PURE__*/ S.suspend(() =>
1748
1683
  overriddenAt: S.optional(S.NullOr(S.String)),
1749
1684
  overriddenBy: S.optional(S.NullOr(S.String)),
1750
1685
  }),
1751
- ).annotate({
1752
- identifier: "QueueObjectConcurrency",
1753
- }) as any as S.Schema<QueueObjectConcurrency>;
1686
+ ).annotate({ identifier: "QueueObjectConcurrency" }) as any as S.Schema<QueueObjectConcurrency>;
1754
1687
 
1755
1688
  export interface QueueObject {
1756
1689
  /** The queue ID, e.g., `queue_1234` */
@@ -1759,15 +1692,17 @@ export interface QueueObject {
1759
1692
  name: string;
1760
1693
  /** The type of queue: - `task`: Created automatically for each task - `custom`: Created explicitly in your code using `queue()` */
1761
1694
  type: QueueObjectType;
1695
+ /** 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. */
1696
+ version: QueueObjectVersion;
1762
1697
  /** The number of runs currently executing */
1763
1698
  running: number;
1764
1699
  /** The number of runs currently queued */
1765
1700
  queued: number;
1766
1701
  /** Whether the queue is paused. When paused, no new runs will start. */
1767
1702
  paused: boolean;
1768
- /** The current concurrency limit of the queue */
1703
+ /** The queue's own concurrency limit. Meaningful on V1 queues; always null on V2 queues. */
1769
1704
  concurrencyLimit?: number | null;
1770
- /** Detailed concurrency information */
1705
+ /** Detailed concurrency information. V1 queues only. */
1771
1706
  concurrency?: QueueObjectConcurrency;
1772
1707
  }
1773
1708
  export const QueueObject = /*@__PURE__*/ S.suspend(() =>
@@ -1775,6 +1710,7 @@ export const QueueObject = /*@__PURE__*/ S.suspend(() =>
1775
1710
  id: S.String,
1776
1711
  name: S.String,
1777
1712
  type: QueueObjectType,
1713
+ version: QueueObjectVersion,
1778
1714
  running: S.Number,
1779
1715
  queued: S.Number,
1780
1716
  paused: S.Boolean,
@@ -1790,12 +1726,8 @@ export interface GetRunEventsV1Request {
1790
1726
  export const GetRunEventsV1Request = /*@__PURE__*/ S.suspend(() =>
1791
1727
  S.Struct({
1792
1728
  runId: S.String.pipe(T.Label()),
1793
- }).pipe(
1794
- T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/events", code: 200 }),
1795
- ),
1796
- ).annotate({
1797
- identifier: "GetRunEventsV1Request",
1798
- }) as any as S.Schema<GetRunEventsV1Request>;
1729
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/events", code: 200 })),
1730
+ ).annotate({ identifier: "GetRunEventsV1Request" }) as any as S.Schema<GetRunEventsV1Request>;
1799
1731
 
1800
1732
  /** The log level of the event. */
1801
1733
  export type GetRunEventsV1ResponseEventsItemLevel =
@@ -1827,16 +1759,15 @@ export interface GetRunEventsV1ResponseEventsItemEventsItem {
1827
1759
  /** Event-specific properties. */
1828
1760
  properties?: unknown;
1829
1761
  }
1830
- export const GetRunEventsV1ResponseEventsItemEventsItem =
1831
- /*@__PURE__*/ S.suspend(() =>
1832
- S.Struct({
1833
- name: S.optional(S.String),
1834
- time: S.optional(S.String),
1835
- properties: S.optional(S.Unknown),
1836
- }),
1837
- ).annotate({
1838
- identifier: "GetRunEventsV1ResponseEventsItemEventsItem",
1839
- }) as any as S.Schema<GetRunEventsV1ResponseEventsItemEventsItem>;
1762
+ export const GetRunEventsV1ResponseEventsItemEventsItem = /*@__PURE__*/ S.suspend(() =>
1763
+ S.Struct({
1764
+ name: S.optional(S.String),
1765
+ time: S.optional(S.String),
1766
+ properties: S.optional(S.Unknown),
1767
+ }),
1768
+ ).annotate({
1769
+ identifier: "GetRunEventsV1ResponseEventsItemEventsItem",
1770
+ }) as any as S.Schema<GetRunEventsV1ResponseEventsItemEventsItem>;
1840
1771
 
1841
1772
  /** Span events (e.g. exceptions, cancellations) that occurred during this event. */
1842
1773
  export type GetRunEventsV1ResponseEventsItemEventsList =
@@ -1853,15 +1784,14 @@ export interface GetRunEventsV1ResponseEventsItemStyleAccessory {
1853
1784
  text?: string;
1854
1785
  style?: GetRunEventsV1ResponseEventsItemStyleAccessoryStyle;
1855
1786
  }
1856
- export const GetRunEventsV1ResponseEventsItemStyleAccessory =
1857
- /*@__PURE__*/ S.suspend(() =>
1858
- S.Struct({
1859
- text: S.optional(S.String),
1860
- style: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessoryStyle),
1861
- }),
1862
- ).annotate({
1863
- identifier: "GetRunEventsV1ResponseEventsItemStyleAccessory",
1864
- }) as any as S.Schema<GetRunEventsV1ResponseEventsItemStyleAccessory>;
1787
+ export const GetRunEventsV1ResponseEventsItemStyleAccessory = /*@__PURE__*/ S.suspend(() =>
1788
+ S.Struct({
1789
+ text: S.optional(S.String),
1790
+ style: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessoryStyle),
1791
+ }),
1792
+ ).annotate({
1793
+ identifier: "GetRunEventsV1ResponseEventsItemStyleAccessory",
1794
+ }) as any as S.Schema<GetRunEventsV1ResponseEventsItemStyleAccessory>;
1865
1795
 
1866
1796
  /** Display style metadata for the event. */
1867
1797
  export interface GetRunEventsV1ResponseEventsItemStyle {
@@ -1872,13 +1802,12 @@ export interface GetRunEventsV1ResponseEventsItemStyle {
1872
1802
  /** Accessory display element. */
1873
1803
  accessory?: GetRunEventsV1ResponseEventsItemStyleAccessory;
1874
1804
  }
1875
- export const GetRunEventsV1ResponseEventsItemStyle = /*@__PURE__*/ S.suspend(
1876
- () =>
1877
- S.Struct({
1878
- icon: S.optional(S.String),
1879
- variant: S.optional(S.String),
1880
- accessory: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessory),
1881
- }),
1805
+ export const GetRunEventsV1ResponseEventsItemStyle = /*@__PURE__*/ S.suspend(() =>
1806
+ S.Struct({
1807
+ icon: S.optional(S.String),
1808
+ variant: S.optional(S.String),
1809
+ accessory: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessory),
1810
+ }),
1882
1811
  ).annotate({
1883
1812
  identifier: "GetRunEventsV1ResponseEventsItemStyle",
1884
1813
  }) as any as S.Schema<GetRunEventsV1ResponseEventsItemStyle>;
@@ -1937,8 +1866,7 @@ export const GetRunEventsV1ResponseEventsItem = /*@__PURE__*/ S.suspend(() =>
1937
1866
  identifier: "GetRunEventsV1ResponseEventsItem",
1938
1867
  }) as any as S.Schema<GetRunEventsV1ResponseEventsItem>;
1939
1868
 
1940
- export type GetRunEventsV1ResponseEventsList =
1941
- Array<GetRunEventsV1ResponseEventsItem>;
1869
+ export type GetRunEventsV1ResponseEventsList = Array<GetRunEventsV1ResponseEventsItem>;
1942
1870
  export const GetRunEventsV1ResponseEventsList = /*@__PURE__*/ S.Array(
1943
1871
  GetRunEventsV1ResponseEventsItem,
1944
1872
  ) as any as S.Schema<GetRunEventsV1ResponseEventsList>;
@@ -1950,9 +1878,7 @@ export const GetRunEventsV1Response = /*@__PURE__*/ S.suspend(() =>
1950
1878
  S.Struct({
1951
1879
  events: S.optional(GetRunEventsV1ResponseEventsList),
1952
1880
  }),
1953
- ).annotate({
1954
- identifier: "GetRunEventsV1Response",
1955
- }) as any as S.Schema<GetRunEventsV1Response>;
1881
+ ).annotate({ identifier: "GetRunEventsV1Response" }) as any as S.Schema<GetRunEventsV1Response>;
1956
1882
 
1957
1883
  export interface GetRunResultV1Request {
1958
1884
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
@@ -1961,18 +1887,12 @@ export interface GetRunResultV1Request {
1961
1887
  export const GetRunResultV1Request = /*@__PURE__*/ S.suspend(() =>
1962
1888
  S.Struct({
1963
1889
  runId: S.String.pipe(T.Label()),
1964
- }).pipe(
1965
- T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/result", code: 200 }),
1966
- ),
1967
- ).annotate({
1968
- identifier: "GetRunResultV1Request",
1969
- }) as any as S.Schema<GetRunResultV1Request>;
1890
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/result", code: 200 })),
1891
+ ).annotate({ identifier: "GetRunResultV1Request" }) as any as S.Schema<GetRunResultV1Request>;
1970
1892
 
1971
1893
  /** Execution usage stats. */
1972
- export type GetRunResultV1ResponseUsage =
1973
- GetBatchResultsV1ResponseItemsItemUsage;
1974
- export const GetRunResultV1ResponseUsage =
1975
- GetBatchResultsV1ResponseItemsItemUsage;
1894
+ export type GetRunResultV1ResponseUsage = GetBatchResultsV1ResponseItemsItemUsage;
1895
+ export const GetRunResultV1ResponseUsage = GetBatchResultsV1ResponseItemsItemUsage;
1976
1896
 
1977
1897
  export interface GetRunResultV1Response {
1978
1898
  /** Whether the run completed successfully. */
@@ -2000,9 +1920,7 @@ export const GetRunResultV1Response = /*@__PURE__*/ S.suspend(() =>
2000
1920
  usage: S.optional(GetBatchResultsV1ResponseItemsItemUsage),
2001
1921
  taskIdentifier: S.optional(S.String),
2002
1922
  }),
2003
- ).annotate({
2004
- identifier: "GetRunResultV1Response",
2005
- }) as any as S.Schema<GetRunResultV1Response>;
1923
+ ).annotate({ identifier: "GetRunResultV1Response" }) as any as S.Schema<GetRunResultV1Response>;
2006
1924
 
2007
1925
  export interface GetRunTraceV1Request {
2008
1926
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
@@ -2011,30 +1929,17 @@ export interface GetRunTraceV1Request {
2011
1929
  export const GetRunTraceV1Request = /*@__PURE__*/ S.suspend(() =>
2012
1930
  S.Struct({
2013
1931
  runId: S.String.pipe(T.Label()),
2014
- }).pipe(
2015
- T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/trace", code: 200 }),
2016
- ),
2017
- ).annotate({
2018
- identifier: "GetRunTraceV1Request",
2019
- }) as any as S.Schema<GetRunTraceV1Request>;
1932
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/trace", code: 200 })),
1933
+ ).annotate({ identifier: "GetRunTraceV1Request" }) as any as S.Schema<GetRunTraceV1Request>;
2020
1934
 
2021
- export type SpanDetailedSummaryDataLevel =
2022
- | "TRACE"
2023
- | "DEBUG"
2024
- | "LOG"
2025
- | "INFO"
2026
- | "WARN"
2027
- | "ERROR";
1935
+ export type SpanDetailedSummaryDataLevel = "TRACE" | "DEBUG" | "LOG" | "INFO" | "WARN" | "ERROR";
2028
1936
  export const SpanDetailedSummaryDataLevel = S.String;
2029
1937
 
2030
- export type SpanDetailedSummaryDataEventsItem =
2031
- GetRunEventsV1ResponseEventsItemEventsItem;
2032
- export const SpanDetailedSummaryDataEventsItem =
2033
- GetRunEventsV1ResponseEventsItemEventsItem;
1938
+ export type SpanDetailedSummaryDataEventsItem = GetRunEventsV1ResponseEventsItemEventsItem;
1939
+ export const SpanDetailedSummaryDataEventsItem = GetRunEventsV1ResponseEventsItemEventsItem;
2034
1940
 
2035
1941
  /** Span events (e.g. exceptions, cancellations) that occurred during this span. */
2036
- export type SpanDetailedSummaryDataEventsList =
2037
- Array<GetRunEventsV1ResponseEventsItemEventsItem>;
1942
+ export type SpanDetailedSummaryDataEventsList = Array<GetRunEventsV1ResponseEventsItemEventsItem>;
2038
1943
  export const SpanDetailedSummaryDataEventsList = /*@__PURE__*/ S.Array(
2039
1944
  GetRunEventsV1ResponseEventsItemEventsItem,
2040
1945
  ) as any as S.Schema<SpanDetailedSummaryDataEventsList>;
@@ -2072,9 +1977,7 @@ export const SpanDetailedSummaryData = /*@__PURE__*/ S.suspend(() =>
2072
1977
  properties: S.optional(S.Unknown),
2073
1978
  events: S.optional(SpanDetailedSummaryDataEventsList),
2074
1979
  }),
2075
- ).annotate({
2076
- identifier: "SpanDetailedSummaryData",
2077
- }) as any as S.Schema<SpanDetailedSummaryData>;
1980
+ ).annotate({ identifier: "SpanDetailedSummaryData" }) as any as S.Schema<SpanDetailedSummaryData>;
2078
1981
 
2079
1982
  /** Nested child spans. Each child has the same structure as the parent span. */
2080
1983
  export type SpanDetailedSummaryChildrenList = Array<SpanDetailedSummary>;
@@ -2101,9 +2004,7 @@ export const SpanDetailedSummary = /*@__PURE__*/ S.suspend(() =>
2101
2004
  data: S.optional(SpanDetailedSummaryData),
2102
2005
  children: S.optional(SpanDetailedSummaryChildrenList),
2103
2006
  }),
2104
- ).annotate({
2105
- identifier: "SpanDetailedSummary",
2106
- }) as any as S.Schema<SpanDetailedSummary>;
2007
+ ).annotate({ identifier: "SpanDetailedSummary" }) as any as S.Schema<SpanDetailedSummary>;
2107
2008
 
2108
2009
  export interface GetRunTraceV1ResponseTrace {
2109
2010
  /** The OTel trace ID. */
@@ -2127,9 +2028,7 @@ export const GetRunTraceV1Response = /*@__PURE__*/ S.suspend(() =>
2127
2028
  S.Struct({
2128
2029
  trace: S.optional(GetRunTraceV1ResponseTrace),
2129
2030
  }),
2130
- ).annotate({
2131
- identifier: "GetRunTraceV1Response",
2132
- }) as any as S.Schema<GetRunTraceV1Response>;
2031
+ ).annotate({ identifier: "GetRunTraceV1Response" }) as any as S.Schema<GetRunTraceV1Response>;
2133
2032
 
2134
2033
  export interface GetRunV1Request {
2135
2034
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
@@ -2139,9 +2038,7 @@ export const GetRunV1Request = /*@__PURE__*/ S.suspend(() =>
2139
2038
  S.Struct({
2140
2039
  runId: S.String.pipe(T.Label()),
2141
2040
  }).pipe(T.Http({ method: "GET", uri: "/api/v3/runs/{runId}", code: 200 })),
2142
- ).annotate({
2143
- identifier: "GetRunV1Request",
2144
- }) as any as S.Schema<GetRunV1Request>;
2041
+ ).annotate({ identifier: "GetRunV1Request" }) as any as S.Schema<GetRunV1Request>;
2145
2042
 
2146
2043
  /** The status of the run */
2147
2044
  export type GetRunV1ResponseStatus =
@@ -2268,9 +2165,7 @@ export const CommonRunObject = /*@__PURE__*/ S.suspend(() =>
2268
2165
  batchId: S.optional(S.String),
2269
2166
  triggerFunction: S.optional(CommonRunObjectTriggerFunction),
2270
2167
  }),
2271
- ).annotate({
2272
- identifier: "CommonRunObject",
2273
- }) as any as S.Schema<CommonRunObject>;
2168
+ ).annotate({ identifier: "CommonRunObject" }) as any as S.Schema<CommonRunObject>;
2274
2169
 
2275
2170
  /** The immediate children of the run. Will be omitted if the run has no children */
2276
2171
  export type GetRunV1ResponseRelatedRunsChildrenList = Array<CommonRunObject>;
@@ -2333,9 +2228,7 @@ export const GetRunV1ResponseSchedule = /*@__PURE__*/ S.suspend(() =>
2333
2228
  deduplicationKey: S.optional(S.String),
2334
2229
  generator: GetRunV1ResponseScheduleGenerator,
2335
2230
  }),
2336
- ).annotate({
2337
- identifier: "GetRunV1ResponseSchedule",
2338
- }) as any as S.Schema<GetRunV1ResponseSchedule>;
2231
+ ).annotate({ identifier: "GetRunV1ResponseSchedule" }) as any as S.Schema<GetRunV1ResponseSchedule>;
2339
2232
 
2340
2233
  export type GetRunV1ResponseAttemptsItemStatus =
2341
2234
  | "PENDING"
@@ -2357,9 +2250,7 @@ export const SerializedError = /*@__PURE__*/ S.suspend(() =>
2357
2250
  name: S.optional(S.String),
2358
2251
  stackTrace: S.optional(S.String),
2359
2252
  }),
2360
- ).annotate({
2361
- identifier: "SerializedError",
2362
- }) as any as S.Schema<SerializedError>;
2253
+ ).annotate({ identifier: "SerializedError" }) as any as S.Schema<SerializedError>;
2363
2254
 
2364
2255
  export interface GetRunV1ResponseAttemptsItem {
2365
2256
  /** The unique ID of the attempt, prefixed with `attempt_` */
@@ -2474,9 +2365,7 @@ export const GetRunV1Response = /*@__PURE__*/ S.suspend(() =>
2474
2365
  schedule: S.optional(GetRunV1ResponseSchedule),
2475
2366
  attempts: GetRunV1ResponseAttemptsList,
2476
2367
  }),
2477
- ).annotate({
2478
- identifier: "GetRunV1Response",
2479
- }) as any as S.Schema<GetRunV1Response>;
2368
+ ).annotate({ identifier: "GetRunV1Response" }) as any as S.Schema<GetRunV1Response>;
2480
2369
 
2481
2370
  export interface GetScheduleV1Request {
2482
2371
  /** The ID of the schedule. */
@@ -2485,16 +2374,8 @@ export interface GetScheduleV1Request {
2485
2374
  export const GetScheduleV1Request = /*@__PURE__*/ S.suspend(() =>
2486
2375
  S.Struct({
2487
2376
  schedule_id: S.String.pipe(T.Label()),
2488
- }).pipe(
2489
- T.Http({
2490
- method: "GET",
2491
- uri: "/api/v1/schedules/{schedule_id}",
2492
- code: 200,
2493
- }),
2494
- ),
2495
- ).annotate({
2496
- identifier: "GetScheduleV1Request",
2497
- }) as any as S.Schema<GetScheduleV1Request>;
2377
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules/{schedule_id}", code: 200 })),
2378
+ ).annotate({ identifier: "GetScheduleV1Request" }) as any as S.Schema<GetScheduleV1Request>;
2498
2379
 
2499
2380
  export interface GetSessionV1Request {
2500
2381
  /** The session's friendly ID (`session_…`) or your `externalId`. The server disambiguates by the `session_` prefix. */
@@ -2503,12 +2384,8 @@ export interface GetSessionV1Request {
2503
2384
  export const GetSessionV1Request = /*@__PURE__*/ S.suspend(() =>
2504
2385
  S.Struct({
2505
2386
  session: S.String.pipe(T.Label()),
2506
- }).pipe(
2507
- T.Http({ method: "GET", uri: "/api/v1/sessions/{session}", code: 200 }),
2508
- ),
2509
- ).annotate({
2510
- identifier: "GetSessionV1Request",
2511
- }) as any as S.Schema<GetSessionV1Request>;
2387
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions/{session}", code: 200 })),
2388
+ ).annotate({ identifier: "GetSessionV1Request" }) as any as S.Schema<GetSessionV1Request>;
2512
2389
 
2513
2390
  export interface GetTimezonesV1Request {
2514
2391
  /** Defaults to false. Whether to include UTC in the results or not. */
@@ -2518,9 +2395,7 @@ export const GetTimezonesV1Request = /*@__PURE__*/ S.suspend(() =>
2518
2395
  S.Struct({
2519
2396
  excludeUtc: S.optional(S.Boolean.pipe(T.Query())),
2520
2397
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/timezones", code: 200 })),
2521
- ).annotate({
2522
- identifier: "GetTimezonesV1Request",
2523
- }) as any as S.Schema<GetTimezonesV1Request>;
2398
+ ).annotate({ identifier: "GetTimezonesV1Request" }) as any as S.Schema<GetTimezonesV1Request>;
2524
2399
 
2525
2400
  export type GetTimezonesResultTimezonesList = Array<string>;
2526
2401
  export const GetTimezonesResultTimezonesList = /*@__PURE__*/ S.Array(
@@ -2534,9 +2409,7 @@ export const GetTimezonesResult = /*@__PURE__*/ S.suspend(() =>
2534
2409
  S.Struct({
2535
2410
  timezones: S.optional(GetTimezonesResultTimezonesList),
2536
2411
  }),
2537
- ).annotate({
2538
- identifier: "GetTimezonesResult",
2539
- }) as any as S.Schema<GetTimezonesResult>;
2412
+ ).annotate({ identifier: "GetTimezonesResult" }) as any as S.Schema<GetTimezonesResult>;
2540
2413
 
2541
2414
  export interface GetWaitpointTokenV1Request {
2542
2415
  /** The ID of the waitpoint token. */
@@ -2545,13 +2418,7 @@ export interface GetWaitpointTokenV1Request {
2545
2418
  export const GetWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() =>
2546
2419
  S.Struct({
2547
2420
  waitpointId: S.String.pipe(T.Label()),
2548
- }).pipe(
2549
- T.Http({
2550
- method: "GET",
2551
- uri: "/api/v1/waitpoints/tokens/{waitpointId}",
2552
- code: 200,
2553
- }),
2554
- ),
2421
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/waitpoints/tokens/{waitpointId}", code: 200 })),
2555
2422
  ).annotate({
2556
2423
  identifier: "GetWaitpointTokenV1Request",
2557
2424
  }) as any as S.Schema<GetWaitpointTokenV1Request>;
@@ -2607,9 +2474,7 @@ export const WaitpointTokenObject = /*@__PURE__*/ S.suspend(() =>
2607
2474
  tags: WaitpointTokenObjectTagsList,
2608
2475
  createdAt: S.String,
2609
2476
  }),
2610
- ).annotate({
2611
- identifier: "WaitpointTokenObject",
2612
- }) as any as S.Schema<WaitpointTokenObject>;
2477
+ ).annotate({ identifier: "WaitpointTokenObject" }) as any as S.Schema<WaitpointTokenObject>;
2613
2478
 
2614
2479
  export interface IgnoreErrorV1Request {
2615
2480
  /** The ID of an error group, starts with `error_`. */
@@ -2630,16 +2495,8 @@ export const IgnoreErrorV1Request = /*@__PURE__*/ S.suspend(() =>
2630
2495
  occurrenceRate: S.optional(S.Number),
2631
2496
  totalOccurrences: S.optional(S.Number),
2632
2497
  reason: S.optional(S.String),
2633
- }).pipe(
2634
- T.Http({
2635
- method: "POST",
2636
- uri: "/api/v1/errors/{errorId}/ignore",
2637
- code: 200,
2638
- }),
2639
- ),
2640
- ).annotate({
2641
- identifier: "IgnoreErrorV1Request",
2642
- }) as any as S.Schema<IgnoreErrorV1Request>;
2498
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/ignore", code: 200 })),
2499
+ ).annotate({ identifier: "IgnoreErrorV1Request" }) as any as S.Schema<IgnoreErrorV1Request>;
2643
2500
 
2644
2501
  export interface ListBulkActionsV1RequestPage {
2645
2502
  /** Number of bulk actions per page. Maximum is 100. */
@@ -2667,9 +2524,7 @@ export const ListBulkActionsV1Request = /*@__PURE__*/ S.suspend(() =>
2667
2524
  S.Struct({
2668
2525
  page: S.optional(ListBulkActionsV1RequestPage.pipe(T.Query())),
2669
2526
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions", code: 200 })),
2670
- ).annotate({
2671
- identifier: "ListBulkActionsV1Request",
2672
- }) as any as S.Schema<ListBulkActionsV1Request>;
2527
+ ).annotate({ identifier: "ListBulkActionsV1Request" }) as any as S.Schema<ListBulkActionsV1Request>;
2673
2528
 
2674
2529
  export type ListBulkActionsResultDataList = Array<BulkActionObject>;
2675
2530
  export const ListBulkActionsResultDataList = /*@__PURE__*/ S.Array(
@@ -2700,24 +2555,61 @@ export const ListBulkActionsResult = /*@__PURE__*/ S.suspend(() =>
2700
2555
  data: ListBulkActionsResultDataList,
2701
2556
  pagination: ListBulkActionsResultPagination,
2702
2557
  }),
2558
+ ).annotate({ identifier: "ListBulkActionsResult" }) as any as S.Schema<ListBulkActionsResult>;
2559
+
2560
+ export interface ListConcurrencyLimitsV1Request {
2561
+ page?: number;
2562
+ perPage?: number;
2563
+ }
2564
+ export const ListConcurrencyLimitsV1Request = /*@__PURE__*/ S.suspend(() =>
2565
+ S.Struct({
2566
+ page: S.optional(S.Number.pipe(T.Query())),
2567
+ perPage: S.optional(S.Number.pipe(T.Query())),
2568
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/concurrency-limits", code: 200 })),
2569
+ ).annotate({
2570
+ identifier: "ListConcurrencyLimitsV1Request",
2571
+ }) as any as S.Schema<ListConcurrencyLimitsV1Request>;
2572
+
2573
+ export type ListConcurrencyLimitsV1ResponseDataList = Array<ConcurrencyLimitObject>;
2574
+ export const ListConcurrencyLimitsV1ResponseDataList = /*@__PURE__*/ S.Array(
2575
+ ConcurrencyLimitObject,
2576
+ ) as any as S.Schema<ListConcurrencyLimitsV1ResponseDataList>;
2577
+
2578
+ export interface ListConcurrencyLimitsV1ResponsePagination {
2579
+ currentPage?: number;
2580
+ totalPages?: number;
2581
+ count?: number;
2582
+ }
2583
+ export const ListConcurrencyLimitsV1ResponsePagination = /*@__PURE__*/ S.suspend(() =>
2584
+ S.Struct({
2585
+ currentPage: S.optional(S.Number),
2586
+ totalPages: S.optional(S.Number),
2587
+ count: S.optional(S.Number),
2588
+ }),
2589
+ ).annotate({
2590
+ identifier: "ListConcurrencyLimitsV1ResponsePagination",
2591
+ }) as any as S.Schema<ListConcurrencyLimitsV1ResponsePagination>;
2592
+
2593
+ export interface ListConcurrencyLimitsV1Response {
2594
+ data?: ListConcurrencyLimitsV1ResponseDataList;
2595
+ pagination?: ListConcurrencyLimitsV1ResponsePagination;
2596
+ }
2597
+ export const ListConcurrencyLimitsV1Response = /*@__PURE__*/ S.suspend(() =>
2598
+ S.Struct({
2599
+ data: S.optional(ListConcurrencyLimitsV1ResponseDataList),
2600
+ pagination: S.optional(ListConcurrencyLimitsV1ResponsePagination),
2601
+ }),
2703
2602
  ).annotate({
2704
- identifier: "ListBulkActionsResult",
2705
- }) as any as S.Schema<ListBulkActionsResult>;
2603
+ identifier: "ListConcurrencyLimitsV1Response",
2604
+ }) as any as S.Schema<ListConcurrencyLimitsV1Response>;
2706
2605
 
2707
2606
  export interface ListDashboardsV1Request {}
2708
2607
  export const ListDashboardsV1Request = /*@__PURE__*/ S.suspend(() =>
2709
- S.Struct({}).pipe(
2710
- T.Http({ method: "GET", uri: "/api/v1/query/dashboards", code: 200 }),
2711
- ),
2712
- ).annotate({
2713
- identifier: "ListDashboardsV1Request",
2714
- }) as any as S.Schema<ListDashboardsV1Request>;
2608
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/query/dashboards", code: 200 })),
2609
+ ).annotate({ identifier: "ListDashboardsV1Request" }) as any as S.Schema<ListDashboardsV1Request>;
2715
2610
 
2716
2611
  /** Widget display type */
2717
- export type ListDashboardsV1ResponseDashboardsItemWidgetsItemType =
2718
- | "bignumber"
2719
- | "chart"
2720
- | "table";
2612
+ export type ListDashboardsV1ResponseDashboardsItemWidgetsItemType = "bignumber" | "chart" | "table";
2721
2613
  export const ListDashboardsV1ResponseDashboardsItemWidgetsItemType = S.String;
2722
2614
 
2723
2615
  export interface ListDashboardsV1ResponseDashboardsItemWidgetsItem {
@@ -2730,24 +2622,22 @@ export interface ListDashboardsV1ResponseDashboardsItemWidgetsItem {
2730
2622
  /** Widget display type */
2731
2623
  type?: ListDashboardsV1ResponseDashboardsItemWidgetsItemType;
2732
2624
  }
2733
- export const ListDashboardsV1ResponseDashboardsItemWidgetsItem =
2734
- /*@__PURE__*/ S.suspend(() =>
2735
- S.Struct({
2736
- id: S.optional(S.String),
2737
- title: S.optional(S.String),
2738
- query: S.optional(S.String),
2739
- type: S.optional(ListDashboardsV1ResponseDashboardsItemWidgetsItemType),
2740
- }),
2741
- ).annotate({
2742
- identifier: "ListDashboardsV1ResponseDashboardsItemWidgetsItem",
2743
- }) as any as S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
2625
+ export const ListDashboardsV1ResponseDashboardsItemWidgetsItem = /*@__PURE__*/ S.suspend(() =>
2626
+ S.Struct({
2627
+ id: S.optional(S.String),
2628
+ title: S.optional(S.String),
2629
+ query: S.optional(S.String),
2630
+ type: S.optional(ListDashboardsV1ResponseDashboardsItemWidgetsItemType),
2631
+ }),
2632
+ ).annotate({
2633
+ identifier: "ListDashboardsV1ResponseDashboardsItemWidgetsItem",
2634
+ }) as any as S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
2744
2635
 
2745
2636
  export type ListDashboardsV1ResponseDashboardsItemWidgetsList =
2746
2637
  Array<ListDashboardsV1ResponseDashboardsItemWidgetsItem>;
2747
- export const ListDashboardsV1ResponseDashboardsItemWidgetsList =
2748
- /*@__PURE__*/ S.Array(
2749
- ListDashboardsV1ResponseDashboardsItemWidgetsItem,
2750
- ) as any as S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsList>;
2638
+ export const ListDashboardsV1ResponseDashboardsItemWidgetsList = /*@__PURE__*/ S.Array(
2639
+ ListDashboardsV1ResponseDashboardsItemWidgetsItem,
2640
+ ) as any as S.Schema<ListDashboardsV1ResponseDashboardsItemWidgetsList>;
2751
2641
 
2752
2642
  export interface ListDashboardsV1ResponseDashboardsItem {
2753
2643
  /** Dashboard identifier (e.g. "overview", "llm") */
@@ -2756,19 +2646,17 @@ export interface ListDashboardsV1ResponseDashboardsItem {
2756
2646
  title?: string;
2757
2647
  widgets?: ListDashboardsV1ResponseDashboardsItemWidgetsList;
2758
2648
  }
2759
- export const ListDashboardsV1ResponseDashboardsItem = /*@__PURE__*/ S.suspend(
2760
- () =>
2761
- S.Struct({
2762
- key: S.optional(S.String),
2763
- title: S.optional(S.String),
2764
- widgets: S.optional(ListDashboardsV1ResponseDashboardsItemWidgetsList),
2765
- }),
2649
+ export const ListDashboardsV1ResponseDashboardsItem = /*@__PURE__*/ S.suspend(() =>
2650
+ S.Struct({
2651
+ key: S.optional(S.String),
2652
+ title: S.optional(S.String),
2653
+ widgets: S.optional(ListDashboardsV1ResponseDashboardsItemWidgetsList),
2654
+ }),
2766
2655
  ).annotate({
2767
2656
  identifier: "ListDashboardsV1ResponseDashboardsItem",
2768
2657
  }) as any as S.Schema<ListDashboardsV1ResponseDashboardsItem>;
2769
2658
 
2770
- export type ListDashboardsV1ResponseDashboardsList =
2771
- Array<ListDashboardsV1ResponseDashboardsItem>;
2659
+ export type ListDashboardsV1ResponseDashboardsList = Array<ListDashboardsV1ResponseDashboardsItem>;
2772
2660
  export const ListDashboardsV1ResponseDashboardsList = /*@__PURE__*/ S.Array(
2773
2661
  ListDashboardsV1ResponseDashboardsItem,
2774
2662
  ) as any as S.Schema<ListDashboardsV1ResponseDashboardsList>;
@@ -2780,9 +2668,7 @@ export const ListDashboardsV1Response = /*@__PURE__*/ S.suspend(() =>
2780
2668
  S.Struct({
2781
2669
  dashboards: S.optional(ListDashboardsV1ResponseDashboardsList),
2782
2670
  }),
2783
- ).annotate({
2784
- identifier: "ListDashboardsV1Response",
2785
- }) as any as S.Schema<ListDashboardsV1Response>;
2671
+ ).annotate({ identifier: "ListDashboardsV1Response" }) as any as S.Schema<ListDashboardsV1Response>;
2786
2672
 
2787
2673
  export type ListDeploymentsV1RequestStatus =
2788
2674
  | "PENDING"
@@ -2817,9 +2703,7 @@ export const ListDeploymentsV1Request = /*@__PURE__*/ S.suspend(() =>
2817
2703
  from: S.optional(S.String.pipe(T.Query())),
2818
2704
  to: S.optional(S.String.pipe(T.Query())),
2819
2705
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments", code: 200 })),
2820
- ).annotate({
2821
- identifier: "ListDeploymentsV1Request",
2822
- }) as any as S.Schema<ListDeploymentsV1Request>;
2706
+ ).annotate({ identifier: "ListDeploymentsV1Request" }) as any as S.Schema<ListDeploymentsV1Request>;
2823
2707
 
2824
2708
  /** The current status of the deployment */
2825
2709
  export type ListDeploymentsV1ResponseDataItemStatus =
@@ -2853,6 +2737,8 @@ export interface ListDeploymentsV1ResponseDataItem {
2853
2737
  git?: unknown | null;
2854
2738
  /** Error data if the deployment failed */
2855
2739
  error?: unknown | null;
2740
+ /** 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 */
2741
+ externalId?: string;
2856
2742
  }
2857
2743
  export const ListDeploymentsV1ResponseDataItem = /*@__PURE__*/ S.suspend(() =>
2858
2744
  S.Struct({
@@ -2866,13 +2752,13 @@ export const ListDeploymentsV1ResponseDataItem = /*@__PURE__*/ S.suspend(() =>
2866
2752
  deployedAt: S.optional(S.NullOr(S.String)),
2867
2753
  git: S.optional(S.NullOr(S.Unknown)),
2868
2754
  error: S.optional(S.NullOr(S.Unknown)),
2755
+ externalId: S.optional(S.String),
2869
2756
  }),
2870
2757
  ).annotate({
2871
2758
  identifier: "ListDeploymentsV1ResponseDataItem",
2872
2759
  }) as any as S.Schema<ListDeploymentsV1ResponseDataItem>;
2873
2760
 
2874
- export type ListDeploymentsV1ResponseDataList =
2875
- Array<ListDeploymentsV1ResponseDataItem>;
2761
+ export type ListDeploymentsV1ResponseDataList = Array<ListDeploymentsV1ResponseDataItem>;
2876
2762
  export const ListDeploymentsV1ResponseDataList = /*@__PURE__*/ S.Array(
2877
2763
  ListDeploymentsV1ResponseDataItem,
2878
2764
  ) as any as S.Schema<ListDeploymentsV1ResponseDataList>;
@@ -2916,9 +2802,7 @@ export const ListErrorsV1RequestPage = /*@__PURE__*/ S.suspend(() =>
2916
2802
  after: S.optional(S.String),
2917
2803
  before: S.optional(S.String),
2918
2804
  }),
2919
- ).annotate({
2920
- identifier: "ListErrorsV1RequestPage",
2921
- }) as any as S.Schema<ListErrorsV1RequestPage>;
2805
+ ).annotate({ identifier: "ListErrorsV1RequestPage" }) as any as S.Schema<ListErrorsV1RequestPage>;
2922
2806
 
2923
2807
  /** The identifier of the task the error belongs to */
2924
2808
  export type ErrorsFilterTaskIdentifierList = Array<string>;
@@ -2936,9 +2820,7 @@ export type ErrorsFilterStatusItem = "unresolved" | "resolved" | "ignored";
2936
2820
  export const ErrorsFilterStatusItem = S.String;
2937
2821
 
2938
2822
  /** The lifecycle status of the error group */
2939
- export type ErrorsFilterStatusList = Array<
2940
- ErrorsFilterStatusItem | (string & {})
2941
- >;
2823
+ export type ErrorsFilterStatusList = Array<ErrorsFilterStatusItem | (string & {})>;
2942
2824
  export const ErrorsFilterStatusList = /*@__PURE__*/ S.Array(
2943
2825
  ErrorsFilterStatusItem,
2944
2826
  ) as any as S.Schema<ErrorsFilterStatusList>;
@@ -2982,9 +2864,7 @@ export const ListErrorsV1Request = /*@__PURE__*/ S.suspend(() =>
2982
2864
  page: S.optional(ListErrorsV1RequestPage.pipe(T.Query())),
2983
2865
  filter: S.optional(ErrorsFilter.pipe(T.Query())),
2984
2866
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/errors", code: 200 })),
2985
- ).annotate({
2986
- identifier: "ListErrorsV1Request",
2987
- }) as any as S.Schema<ListErrorsV1Request>;
2867
+ ).annotate({ identifier: "ListErrorsV1Request" }) as any as S.Schema<ListErrorsV1Request>;
2988
2868
 
2989
2869
  export type ErrorListItemStatus = "unresolved" | "resolved" | "ignored";
2990
2870
  export const ErrorListItemStatus = S.String;
@@ -3055,9 +2935,7 @@ export const ListErrorsResult = /*@__PURE__*/ S.suspend(() =>
3055
2935
  data: S.optional(ListErrorsResultDataList),
3056
2936
  pagination: S.optional(ListErrorsResultPagination),
3057
2937
  }),
3058
- ).annotate({
3059
- identifier: "ListErrorsResult",
3060
- }) as any as S.Schema<ListErrorsResult>;
2938
+ ).annotate({ identifier: "ListErrorsResult" }) as any as S.Schema<ListErrorsResult>;
3061
2939
 
3062
2940
  export type ListProjectEnvvarsV1RequestEnv = "dev" | "staging" | "prod";
3063
2941
  export const ListProjectEnvvarsV1RequestEnv = S.String;
@@ -3072,13 +2950,7 @@ export const ListProjectEnvvarsV1Request = /*@__PURE__*/ S.suspend(() =>
3072
2950
  S.Struct({
3073
2951
  projectRef: S.String.pipe(T.Label()),
3074
2952
  env: ListProjectEnvvarsV1RequestEnv.pipe(T.Label()),
3075
- }).pipe(
3076
- T.Http({
3077
- method: "GET",
3078
- uri: "/api/v1/projects/{projectRef}/envvars/{env}",
3079
- code: 200,
3080
- }),
3081
- ),
2953
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/envvars/{env}", code: 200 })),
3082
2954
  ).annotate({
3083
2955
  identifier: "ListProjectEnvvarsV1Request",
3084
2956
  }) as any as S.Schema<ListProjectEnvvarsV1Request>;
@@ -3132,13 +3004,12 @@ export interface ListProjectRunsV1RequestFilterCreatedAt {
3132
3004
  /** The period to filter the runs by */
3133
3005
  period?: string;
3134
3006
  }
3135
- export const ListProjectRunsV1RequestFilterCreatedAt = /*@__PURE__*/ S.suspend(
3136
- () =>
3137
- S.Struct({
3138
- from: S.optional(S.String),
3139
- to: S.optional(S.String),
3140
- period: S.optional(S.String),
3141
- }),
3007
+ export const ListProjectRunsV1RequestFilterCreatedAt = /*@__PURE__*/ S.suspend(() =>
3008
+ S.Struct({
3009
+ from: S.optional(S.String),
3010
+ to: S.optional(S.String),
3011
+ period: S.optional(S.String),
3012
+ }),
3142
3013
  ).annotate({
3143
3014
  identifier: "ListProjectRunsV1RequestFilterCreatedAt",
3144
3015
  }) as any as S.Schema<ListProjectRunsV1RequestFilterCreatedAt>;
@@ -3167,10 +3038,9 @@ export const ListProjectRunsV1RequestFilterStatusList = /*@__PURE__*/ S.Array(
3167
3038
 
3168
3039
  /** The identifier of the task that was run */
3169
3040
  export type ListProjectRunsV1RequestFilterTaskIdentifierList = Array<string>;
3170
- export const ListProjectRunsV1RequestFilterTaskIdentifierList =
3171
- /*@__PURE__*/ S.Array(
3172
- S.String,
3173
- ) as any as S.Schema<ListProjectRunsV1RequestFilterTaskIdentifierList>;
3041
+ export const ListProjectRunsV1RequestFilterTaskIdentifierList = /*@__PURE__*/ S.Array(
3042
+ S.String,
3043
+ ) as any as S.Schema<ListProjectRunsV1RequestFilterTaskIdentifierList>;
3174
3044
 
3175
3045
  /** The version of the worker that executed the run */
3176
3046
  export type ListProjectRunsV1RequestFilterVersionList = Array<string>;
@@ -3218,9 +3088,7 @@ export const ListProjectRunsV1RequestFilter = /*@__PURE__*/ S.suspend(() =>
3218
3088
  S.Struct({
3219
3089
  createdAt: S.optional(ListProjectRunsV1RequestFilterCreatedAt),
3220
3090
  status: S.optional(ListProjectRunsV1RequestFilterStatusList),
3221
- taskIdentifier: S.optional(
3222
- ListProjectRunsV1RequestFilterTaskIdentifierList,
3223
- ),
3091
+ taskIdentifier: S.optional(ListProjectRunsV1RequestFilterTaskIdentifierList),
3224
3092
  version: S.optional(ListProjectRunsV1RequestFilterVersionList),
3225
3093
  bulkAction: S.optional(S.String),
3226
3094
  schedule: S.optional(S.String),
@@ -3246,16 +3114,8 @@ export const ListProjectRunsV1Request = /*@__PURE__*/ S.suspend(() =>
3246
3114
  projectRef: S.String.pipe(T.Label()),
3247
3115
  page: S.optional(ListProjectRunsV1RequestPage.pipe(T.Query())),
3248
3116
  filter: S.optional(ListProjectRunsV1RequestFilter.pipe(T.Query())),
3249
- }).pipe(
3250
- T.Http({
3251
- method: "GET",
3252
- uri: "/api/v1/projects/{projectRef}/runs",
3253
- code: 200,
3254
- }),
3255
- ),
3256
- ).annotate({
3257
- identifier: "ListProjectRunsV1Request",
3258
- }) as any as S.Schema<ListProjectRunsV1Request>;
3117
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/runs", code: 200 })),
3118
+ ).annotate({ identifier: "ListProjectRunsV1Request" }) as any as S.Schema<ListProjectRunsV1Request>;
3259
3119
 
3260
3120
  /** The status of the run */
3261
3121
  export type ListRunItemStatus =
@@ -3369,9 +3229,7 @@ export const ListRunsResultPagination = /*@__PURE__*/ S.suspend(() =>
3369
3229
  next: S.optional(S.String),
3370
3230
  previous: S.optional(S.String),
3371
3231
  }),
3372
- ).annotate({
3373
- identifier: "ListRunsResultPagination",
3374
- }) as any as S.Schema<ListRunsResultPagination>;
3232
+ ).annotate({ identifier: "ListRunsResultPagination" }) as any as S.Schema<ListRunsResultPagination>;
3375
3233
 
3376
3234
  export interface ListRunsResult {
3377
3235
  data?: ListRunsResultDataList;
@@ -3395,9 +3253,7 @@ export const ListQueuesV1Request = /*@__PURE__*/ S.suspend(() =>
3395
3253
  page: S.optional(S.Number.pipe(T.Query())),
3396
3254
  perPage: S.optional(S.Number.pipe(T.Query())),
3397
3255
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/queues", code: 200 })),
3398
- ).annotate({
3399
- identifier: "ListQueuesV1Request",
3400
- }) as any as S.Schema<ListQueuesV1Request>;
3256
+ ).annotate({ identifier: "ListQueuesV1Request" }) as any as S.Schema<ListQueuesV1Request>;
3401
3257
 
3402
3258
  /** An array of queue objects */
3403
3259
  export type ListQueuesResultDataList = Array<QueueObject>;
@@ -3433,16 +3289,13 @@ export const ListQueuesResult = /*@__PURE__*/ S.suspend(() =>
3433
3289
  data: ListQueuesResultDataList,
3434
3290
  pagination: ListQueuesResultPagination,
3435
3291
  }),
3436
- ).annotate({
3437
- identifier: "ListQueuesResult",
3438
- }) as any as S.Schema<ListQueuesResult>;
3292
+ ).annotate({ identifier: "ListQueuesResult" }) as any as S.Schema<ListQueuesResult>;
3439
3293
 
3440
3294
  export type ListRunsV1RequestPage = ListProjectRunsV1RequestPage;
3441
3295
  export const ListRunsV1RequestPage = ListProjectRunsV1RequestPage;
3442
3296
 
3443
3297
  export type CommonRunsFilterCreatedAt = ListProjectRunsV1RequestFilterCreatedAt;
3444
- export const CommonRunsFilterCreatedAt =
3445
- ListProjectRunsV1RequestFilterCreatedAt;
3298
+ export const CommonRunsFilterCreatedAt = ListProjectRunsV1RequestFilterCreatedAt;
3446
3299
 
3447
3300
  /** The status of the run */
3448
3301
  export type CommonRunsFilterStatusItem =
@@ -3459,9 +3312,7 @@ export type CommonRunsFilterStatusItem =
3459
3312
  | "SYSTEM_FAILURE";
3460
3313
  export const CommonRunsFilterStatusItem = S.String;
3461
3314
 
3462
- export type CommonRunsFilterStatusList = Array<
3463
- CommonRunsFilterStatusItem | (string & {})
3464
- >;
3315
+ export type CommonRunsFilterStatusList = Array<CommonRunsFilterStatusItem | (string & {})>;
3465
3316
  export const CommonRunsFilterStatusList = /*@__PURE__*/ S.Array(
3466
3317
  CommonRunsFilterStatusItem,
3467
3318
  ) as any as S.Schema<CommonRunsFilterStatusList>;
@@ -3514,9 +3365,7 @@ export const CommonRunsFilter = /*@__PURE__*/ S.suspend(() =>
3514
3365
  tag: S.optional(CommonRunsFilterTagList),
3515
3366
  error: S.optional(S.String),
3516
3367
  }),
3517
- ).annotate({
3518
- identifier: "CommonRunsFilter",
3519
- }) as any as S.Schema<CommonRunsFilter>;
3368
+ ).annotate({ identifier: "CommonRunsFilter" }) as any as S.Schema<CommonRunsFilter>;
3520
3369
 
3521
3370
  export interface ListRunsV1Request {
3522
3371
  /** 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`. */
@@ -3529,9 +3378,7 @@ export const ListRunsV1Request = /*@__PURE__*/ S.suspend(() =>
3529
3378
  page: S.optional(ListProjectRunsV1RequestPage.pipe(T.Query())),
3530
3379
  filter: S.optional(CommonRunsFilter.pipe(T.Query())),
3531
3380
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/runs", code: 200 })),
3532
- ).annotate({
3533
- identifier: "ListRunsV1Request",
3534
- }) as any as S.Schema<ListRunsV1Request>;
3381
+ ).annotate({ identifier: "ListRunsV1Request" }) as any as S.Schema<ListRunsV1Request>;
3535
3382
 
3536
3383
  export interface ListSchedulesV1Request {
3537
3384
  /** Page number of the schedule listing */
@@ -3544,42 +3391,26 @@ export const ListSchedulesV1Request = /*@__PURE__*/ S.suspend(() =>
3544
3391
  page: S.optional(S.Number.pipe(T.Query())),
3545
3392
  perPage: S.optional(S.Number.pipe(T.Query())),
3546
3393
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules", code: 200 })),
3547
- ).annotate({
3548
- identifier: "ListSchedulesV1Request",
3549
- }) as any as S.Schema<ListSchedulesV1Request>;
3394
+ ).annotate({ identifier: "ListSchedulesV1Request" }) as any as S.Schema<ListSchedulesV1Request>;
3550
3395
 
3551
3396
  export type ListSchedulesResultDataList = Array<ScheduleObject>;
3552
3397
  export const ListSchedulesResultDataList = /*@__PURE__*/ S.Array(
3553
3398
  ScheduleObject,
3554
3399
  ) as any as S.Schema<ListSchedulesResultDataList>;
3555
3400
 
3556
- export interface ListSchedulesResultPagination {
3557
- currentPage?: number;
3558
- totalPages?: number;
3559
- count?: number;
3560
- }
3561
- export const ListSchedulesResultPagination = /*@__PURE__*/ S.suspend(() =>
3562
- S.Struct({
3563
- currentPage: S.optional(S.Number),
3564
- totalPages: S.optional(S.Number),
3565
- count: S.optional(S.Number),
3566
- }),
3567
- ).annotate({
3568
- identifier: "ListSchedulesResultPagination",
3569
- }) as any as S.Schema<ListSchedulesResultPagination>;
3401
+ export type ListSchedulesResultPagination = ListConcurrencyLimitsV1ResponsePagination;
3402
+ export const ListSchedulesResultPagination = ListConcurrencyLimitsV1ResponsePagination;
3570
3403
 
3571
3404
  export interface ListSchedulesResult {
3572
3405
  data?: ListSchedulesResultDataList;
3573
- pagination?: ListSchedulesResultPagination;
3406
+ pagination?: ListConcurrencyLimitsV1ResponsePagination;
3574
3407
  }
3575
3408
  export const ListSchedulesResult = /*@__PURE__*/ S.suspend(() =>
3576
3409
  S.Struct({
3577
3410
  data: S.optional(ListSchedulesResultDataList),
3578
- pagination: S.optional(ListSchedulesResultPagination),
3411
+ pagination: S.optional(ListConcurrencyLimitsV1ResponsePagination),
3579
3412
  }),
3580
- ).annotate({
3581
- identifier: "ListSchedulesResult",
3582
- }) as any as S.Schema<ListSchedulesResult>;
3413
+ ).annotate({ identifier: "ListSchedulesResult" }) as any as S.Schema<ListSchedulesResult>;
3583
3414
 
3584
3415
  export interface ListSessionsV1RequestPage {
3585
3416
  /** Number of sessions per page. Maximum is 100. */
@@ -3621,9 +3452,7 @@ export type SessionsFilterStatusItem = "ACTIVE" | "CLOSED" | "EXPIRED";
3621
3452
  export const SessionsFilterStatusItem = S.String;
3622
3453
 
3623
3454
  /** The lifecycle status(es) to filter by. */
3624
- export type SessionsFilterStatusList = Array<
3625
- SessionsFilterStatusItem | (string & {})
3626
- >;
3455
+ export type SessionsFilterStatusList = Array<SessionsFilterStatusItem | (string & {})>;
3627
3456
  export const SessionsFilterStatusList = /*@__PURE__*/ S.Array(
3628
3457
  SessionsFilterStatusItem,
3629
3458
  ) as any as S.Schema<SessionsFilterStatusList>;
@@ -3642,9 +3471,7 @@ export const SessionsFilterCreatedAt = /*@__PURE__*/ S.suspend(() =>
3642
3471
  to: S.optional(S.String),
3643
3472
  period: S.optional(S.String),
3644
3473
  }),
3645
- ).annotate({
3646
- identifier: "SessionsFilterCreatedAt",
3647
- }) as any as S.Schema<SessionsFilterCreatedAt>;
3474
+ ).annotate({ identifier: "SessionsFilterCreatedAt" }) as any as S.Schema<SessionsFilterCreatedAt>;
3648
3475
 
3649
3476
  export interface SessionsFilter {
3650
3477
  /** The session type(s) to filter by. */
@@ -3681,9 +3508,7 @@ export const ListSessionsV1Request = /*@__PURE__*/ S.suspend(() =>
3681
3508
  page: S.optional(ListSessionsV1RequestPage.pipe(T.Query())),
3682
3509
  filter: S.optional(SessionsFilter.pipe(T.Query())),
3683
3510
  }).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions", code: 200 })),
3684
- ).annotate({
3685
- identifier: "ListSessionsV1Request",
3686
- }) as any as S.Schema<ListSessionsV1Request>;
3511
+ ).annotate({ identifier: "ListSessionsV1Request" }) as any as S.Schema<ListSessionsV1Request>;
3687
3512
 
3688
3513
  export type ListSessionsResultDataList = Array<SessionObject>;
3689
3514
  export const ListSessionsResultDataList = /*@__PURE__*/ S.Array(
@@ -3714,9 +3539,7 @@ export const ListSessionsResult = /*@__PURE__*/ S.suspend(() =>
3714
3539
  data: S.optional(ListSessionsResultDataList),
3715
3540
  pagination: S.optional(ListSessionsResultPagination),
3716
3541
  }),
3717
- ).annotate({
3718
- identifier: "ListSessionsResult",
3719
- }) as any as S.Schema<ListSessionsResult>;
3542
+ ).annotate({ identifier: "ListSessionsResult" }) as any as S.Schema<ListSessionsResult>;
3720
3543
 
3721
3544
  export interface ListWaitpointTokensV1Request {
3722
3545
  /** Number of tokens to return per page (1–100). */
@@ -3744,22 +3567,12 @@ export const ListWaitpointTokensV1Request = /*@__PURE__*/ S.suspend(() =>
3744
3567
  page_after_: S.optional(S.String.pipe(T.Query("page[after]"))),
3745
3568
  page_before_: S.optional(S.String.pipe(T.Query("page[before]"))),
3746
3569
  filter_status_: S.optional(S.String.pipe(T.Query("filter[status]"))),
3747
- filter_idempotencyKey_: S.optional(
3748
- S.String.pipe(T.Query("filter[idempotencyKey]")),
3749
- ),
3570
+ filter_idempotencyKey_: S.optional(S.String.pipe(T.Query("filter[idempotencyKey]"))),
3750
3571
  filter_tags_: S.optional(S.String.pipe(T.Query("filter[tags]"))),
3751
- filter_createdAt__period_: S.optional(
3752
- S.String.pipe(T.Query("filter[createdAt][period]")),
3753
- ),
3754
- filter_createdAt__from_: S.optional(
3755
- S.String.pipe(T.Query("filter[createdAt][from]")),
3756
- ),
3757
- filter_createdAt__to_: S.optional(
3758
- S.String.pipe(T.Query("filter[createdAt][to]")),
3759
- ),
3760
- }).pipe(
3761
- T.Http({ method: "GET", uri: "/api/v1/waitpoints/tokens", code: 200 }),
3762
- ),
3572
+ filter_createdAt__period_: S.optional(S.String.pipe(T.Query("filter[createdAt][period]"))),
3573
+ filter_createdAt__from_: S.optional(S.String.pipe(T.Query("filter[createdAt][from]"))),
3574
+ filter_createdAt__to_: S.optional(S.String.pipe(T.Query("filter[createdAt][to]"))),
3575
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/waitpoints/tokens", code: 200 })),
3763
3576
  ).annotate({
3764
3577
  identifier: "ListWaitpointTokensV1Request",
3765
3578
  }) as any as S.Schema<ListWaitpointTokensV1Request>;
@@ -3799,6 +3612,24 @@ export const ListWaitpointTokensResult = /*@__PURE__*/ S.suspend(() =>
3799
3612
  identifier: "ListWaitpointTokensResult",
3800
3613
  }) as any as S.Schema<ListWaitpointTokensResult>;
3801
3614
 
3615
+ export interface OverrideConcurrencyLimitV1Request {
3616
+ /** The limit's name */
3617
+ name: string;
3618
+ /** Caps each concurrencyKey pool; runs without a key share one pool. May not exceed the environment concurrency limit. */
3619
+ perKey?: number;
3620
+ /** Caps every run holding this limit, keys or not. May not exceed the environment concurrency limit. */
3621
+ total?: number;
3622
+ }
3623
+ export const OverrideConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() =>
3624
+ S.Struct({
3625
+ name: S.String.pipe(T.Label()),
3626
+ perKey: S.optional(S.Number),
3627
+ total: S.optional(S.Number),
3628
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/concurrency-limits/{name}/override", code: 200 })),
3629
+ ).annotate({
3630
+ identifier: "OverrideConcurrencyLimitV1Request",
3631
+ }) as any as S.Schema<OverrideConcurrencyLimitV1Request>;
3632
+
3802
3633
  /** 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 */
3803
3634
  export type OverrideQueueConcurrencyV1RequestType = "id" | "task" | "custom";
3804
3635
  export const OverrideQueueConcurrencyV1RequestType = S.String;
@@ -3817,16 +3648,31 @@ export const OverrideQueueConcurrencyV1Request = /*@__PURE__*/ S.suspend(() =>
3817
3648
  type: S.optional(OverrideQueueConcurrencyV1RequestType),
3818
3649
  concurrencyLimit: S.Number,
3819
3650
  }).pipe(
3820
- T.Http({
3821
- method: "POST",
3822
- uri: "/api/v1/queues/{queueParam}/concurrency/override",
3823
- code: 200,
3824
- }),
3651
+ T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/concurrency/override", code: 200 }),
3825
3652
  ),
3826
3653
  ).annotate({
3827
3654
  identifier: "OverrideQueueConcurrencyV1Request",
3828
3655
  }) as any as S.Schema<OverrideQueueConcurrencyV1Request>;
3829
3656
 
3657
+ /** Whether to pause or resume the limit */
3658
+ export type PauseConcurrencyLimitV1RequestAction = "pause" | "resume";
3659
+ export const PauseConcurrencyLimitV1RequestAction = S.String;
3660
+
3661
+ export interface PauseConcurrencyLimitV1Request {
3662
+ /** The limit's name */
3663
+ name: string;
3664
+ /** Whether to pause or resume the limit */
3665
+ action: PauseConcurrencyLimitV1RequestAction | (string & {});
3666
+ }
3667
+ export const PauseConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() =>
3668
+ S.Struct({
3669
+ name: S.String.pipe(T.Label()),
3670
+ action: PauseConcurrencyLimitV1RequestAction,
3671
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/concurrency-limits/{name}/pause", code: 200 })),
3672
+ ).annotate({
3673
+ identifier: "PauseConcurrencyLimitV1Request",
3674
+ }) as any as S.Schema<PauseConcurrencyLimitV1Request>;
3675
+
3830
3676
  /** 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 */
3831
3677
  export type PauseQueueV1RequestType = "id" | "task" | "custom";
3832
3678
  export const PauseQueueV1RequestType = S.String;
@@ -3848,16 +3694,8 @@ export const PauseQueueV1Request = /*@__PURE__*/ S.suspend(() =>
3848
3694
  queueParam: S.String.pipe(T.Label()),
3849
3695
  type: S.optional(PauseQueueV1RequestType),
3850
3696
  action: PauseQueueV1RequestAction,
3851
- }).pipe(
3852
- T.Http({
3853
- method: "POST",
3854
- uri: "/api/v1/queues/{queueParam}/pause",
3855
- code: 200,
3856
- }),
3857
- ),
3858
- ).annotate({
3859
- identifier: "PauseQueueV1Request",
3860
- }) as any as S.Schema<PauseQueueV1Request>;
3697
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/pause", code: 200 })),
3698
+ ).annotate({ identifier: "PauseQueueV1Request" }) as any as S.Schema<PauseQueueV1Request>;
3861
3699
 
3862
3700
  export interface PromoteDeploymentV1Request {
3863
3701
  /** The deployment version to promote (e.g., "20250228.1"). */
@@ -3866,13 +3704,7 @@ export interface PromoteDeploymentV1Request {
3866
3704
  export const PromoteDeploymentV1Request = /*@__PURE__*/ S.suspend(() =>
3867
3705
  S.Struct({
3868
3706
  version: S.String.pipe(T.Label()),
3869
- }).pipe(
3870
- T.Http({
3871
- method: "POST",
3872
- uri: "/api/v1/deployments/{version}/promote",
3873
- code: 200,
3874
- }),
3875
- ),
3707
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/deployments/{version}/promote", code: 200 })),
3876
3708
  ).annotate({
3877
3709
  identifier: "PromoteDeploymentV1Request",
3878
3710
  }) as any as S.Schema<PromoteDeploymentV1Request>;
@@ -3895,6 +3727,18 @@ export const PromoteDeploymentV1Response = /*@__PURE__*/ S.suspend(() =>
3895
3727
  identifier: "PromoteDeploymentV1Response",
3896
3728
  }) as any as S.Schema<PromoteDeploymentV1Response>;
3897
3729
 
3730
+ export interface ResetConcurrencyLimitV1Request {
3731
+ /** The limit's name */
3732
+ name: string;
3733
+ }
3734
+ export const ResetConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() =>
3735
+ S.Struct({
3736
+ name: S.String.pipe(T.Label()),
3737
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/concurrency-limits/{name}/reset", code: 200 })),
3738
+ ).annotate({
3739
+ identifier: "ResetConcurrencyLimitV1Request",
3740
+ }) as any as S.Schema<ResetConcurrencyLimitV1Request>;
3741
+
3898
3742
  /** 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 */
3899
3743
  export type ResetQueueConcurrencyV1RequestType = "id" | "task" | "custom";
3900
3744
  export const ResetQueueConcurrencyV1RequestType = S.String;
@@ -3910,11 +3754,7 @@ export const ResetQueueConcurrencyV1Request = /*@__PURE__*/ S.suspend(() =>
3910
3754
  queueParam: S.String.pipe(T.Label()),
3911
3755
  type: S.optional(ResetQueueConcurrencyV1RequestType),
3912
3756
  }).pipe(
3913
- T.Http({
3914
- method: "POST",
3915
- uri: "/api/v1/queues/{queueParam}/concurrency/reset",
3916
- code: 200,
3917
- }),
3757
+ T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/concurrency/reset", code: 200 }),
3918
3758
  ),
3919
3759
  ).annotate({
3920
3760
  identifier: "ResetQueueConcurrencyV1Request",
@@ -3930,16 +3770,8 @@ export const ResolveErrorV1Request = /*@__PURE__*/ S.suspend(() =>
3930
3770
  S.Struct({
3931
3771
  errorId: S.String.pipe(T.Label()),
3932
3772
  resolvedInVersion: S.optional(S.String),
3933
- }).pipe(
3934
- T.Http({
3935
- method: "POST",
3936
- uri: "/api/v1/errors/{errorId}/resolve",
3937
- code: 200,
3938
- }),
3939
- ),
3940
- ).annotate({
3941
- identifier: "ResolveErrorV1Request",
3942
- }) as any as S.Schema<ResolveErrorV1Request>;
3773
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/resolve", code: 200 })),
3774
+ ).annotate({ identifier: "ResolveErrorV1Request" }) as any as S.Schema<ResolveErrorV1Request>;
3943
3775
 
3944
3776
  export interface RunReplayV1Request {
3945
3777
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
@@ -3948,12 +3780,8 @@ export interface RunReplayV1Request {
3948
3780
  export const RunReplayV1Request = /*@__PURE__*/ S.suspend(() =>
3949
3781
  S.Struct({
3950
3782
  runId: S.String.pipe(T.Label()),
3951
- }).pipe(
3952
- T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/replay", code: 200 }),
3953
- ),
3954
- ).annotate({
3955
- identifier: "RunReplayV1Request",
3956
- }) as any as S.Schema<RunReplayV1Request>;
3783
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/replay", code: 200 })),
3784
+ ).annotate({ identifier: "RunReplayV1Request" }) as any as S.Schema<RunReplayV1Request>;
3957
3785
 
3958
3786
  export interface RunReplayV1Response {
3959
3787
  /** The ID of the new run. */
@@ -3963,9 +3791,7 @@ export const RunReplayV1Response = /*@__PURE__*/ S.suspend(() =>
3963
3791
  S.Struct({
3964
3792
  id: S.optional(S.String),
3965
3793
  }),
3966
- ).annotate({
3967
- identifier: "RunReplayV1Response",
3968
- }) as any as S.Schema<RunReplayV1Response>;
3794
+ ).annotate({ identifier: "RunReplayV1Response" }) as any as S.Schema<RunReplayV1Response>;
3969
3795
 
3970
3796
  export interface RunRescheduleV1Request {
3971
3797
  /** The ID of an run, starts with `run_`. The run ID will be returned when you trigger a run on a task. */
@@ -3976,16 +3802,8 @@ export const RunRescheduleV1Request = /*@__PURE__*/ S.suspend(() =>
3976
3802
  S.Struct({
3977
3803
  runId: S.String.pipe(T.Label()),
3978
3804
  delay: S.optional(S.String),
3979
- }).pipe(
3980
- T.Http({
3981
- method: "POST",
3982
- uri: "/api/v1/runs/{runId}/reschedule",
3983
- code: 200,
3984
- }),
3985
- ),
3986
- ).annotate({
3987
- identifier: "RunRescheduleV1Request",
3988
- }) as any as S.Schema<RunRescheduleV1Request>;
3805
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/reschedule", code: 200 })),
3806
+ ).annotate({ identifier: "RunRescheduleV1Request" }) as any as S.Schema<RunRescheduleV1Request>;
3989
3807
 
3990
3808
  /** The status of the run */
3991
3809
  export type RunRescheduleV1ResponseStatus =
@@ -4018,12 +3836,10 @@ export type RunRescheduleV1ResponseTriggerFunction =
4018
3836
  export const RunRescheduleV1ResponseTriggerFunction = S.String;
4019
3837
 
4020
3838
  /** The immediate children of the run. Will be omitted if the run has no children */
4021
- export type RunRescheduleV1ResponseRelatedRunsChildrenList =
4022
- Array<CommonRunObject>;
4023
- export const RunRescheduleV1ResponseRelatedRunsChildrenList =
4024
- /*@__PURE__*/ S.Array(
4025
- CommonRunObject,
4026
- ) as any as S.Schema<RunRescheduleV1ResponseRelatedRunsChildrenList>;
3839
+ export type RunRescheduleV1ResponseRelatedRunsChildrenList = Array<CommonRunObject>;
3840
+ export const RunRescheduleV1ResponseRelatedRunsChildrenList = /*@__PURE__*/ S.Array(
3841
+ CommonRunObject,
3842
+ ) as any as S.Schema<RunRescheduleV1ResponseRelatedRunsChildrenList>;
4027
3843
 
4028
3844
  export interface RunRescheduleV1ResponseRelatedRuns {
4029
3845
  /** The root run of the run hierarchy. Will be omitted if the run is the root run */
@@ -4053,13 +3869,12 @@ export interface RunRescheduleV1ResponseScheduleGenerator {
4053
3869
  /** The description of the generator in plain english */
4054
3870
  description?: string;
4055
3871
  }
4056
- export const RunRescheduleV1ResponseScheduleGenerator = /*@__PURE__*/ S.suspend(
4057
- () =>
4058
- S.Struct({
4059
- type: S.optional(RunRescheduleV1ResponseScheduleGeneratorType),
4060
- expression: S.optional(S.String),
4061
- description: S.optional(S.String),
4062
- }),
3872
+ export const RunRescheduleV1ResponseScheduleGenerator = /*@__PURE__*/ S.suspend(() =>
3873
+ S.Struct({
3874
+ type: S.optional(RunRescheduleV1ResponseScheduleGeneratorType),
3875
+ expression: S.optional(S.String),
3876
+ description: S.optional(S.String),
3877
+ }),
4063
3878
  ).annotate({
4064
3879
  identifier: "RunRescheduleV1ResponseScheduleGenerator",
4065
3880
  }) as any as S.Schema<RunRescheduleV1ResponseScheduleGenerator>;
@@ -4118,8 +3933,7 @@ export const RunRescheduleV1ResponseAttemptsItem = /*@__PURE__*/ S.suspend(() =>
4118
3933
  identifier: "RunRescheduleV1ResponseAttemptsItem",
4119
3934
  }) as any as S.Schema<RunRescheduleV1ResponseAttemptsItem>;
4120
3935
 
4121
- export type RunRescheduleV1ResponseAttemptsList =
4122
- Array<RunRescheduleV1ResponseAttemptsItem>;
3936
+ export type RunRescheduleV1ResponseAttemptsList = Array<RunRescheduleV1ResponseAttemptsItem>;
4123
3937
  export const RunRescheduleV1ResponseAttemptsList = /*@__PURE__*/ S.Array(
4124
3938
  RunRescheduleV1ResponseAttemptsItem,
4125
3939
  ) as any as S.Schema<RunRescheduleV1ResponseAttemptsList>;
@@ -4208,9 +4022,7 @@ export const RunRescheduleV1Response = /*@__PURE__*/ S.suspend(() =>
4208
4022
  schedule: S.optional(RunRescheduleV1ResponseSchedule),
4209
4023
  attempts: RunRescheduleV1ResponseAttemptsList,
4210
4024
  }),
4211
- ).annotate({
4212
- identifier: "RunRescheduleV1Response",
4213
- }) as any as S.Schema<RunRescheduleV1Response>;
4025
+ ).annotate({ identifier: "RunRescheduleV1Response" }) as any as S.Schema<RunRescheduleV1Response>;
4214
4026
 
4215
4027
  export interface QueueOptions {
4216
4028
  /** You can define a shared queue and then pass the name in to your task. */
@@ -4276,19 +4088,16 @@ export const TriggerTaskRequestBody = /*@__PURE__*/ S.suspend(() =>
4276
4088
  context: S.optional(S.Unknown),
4277
4089
  options: S.optional(TriggerTaskRequestBodyOptions),
4278
4090
  }),
4279
- ).annotate({
4280
- identifier: "TriggerTaskRequestBody",
4281
- }) as any as S.Schema<TriggerTaskRequestBody>;
4091
+ ).annotate({ identifier: "TriggerTaskRequestBody" }) as any as S.Schema<TriggerTaskRequestBody>;
4282
4092
 
4283
4093
  /** An array of payloads to trigger the task with (max 1,000 items). */
4284
- export type TriggerBatchTaskByIdV1RequestItemsList =
4285
- Array<TriggerTaskRequestBody>;
4094
+ export type TriggerBatchTaskByIdV1RequestItemsList = Array<TriggerTaskRequestBody>;
4286
4095
  export const TriggerBatchTaskByIdV1RequestItemsList = /*@__PURE__*/ S.Array(
4287
4096
  TriggerTaskRequestBody,
4288
4097
  ) as any as S.Schema<TriggerBatchTaskByIdV1RequestItemsList>;
4289
4098
 
4290
4099
  export interface TriggerBatchTaskByIdV1Request {
4291
- /** The id of a task */
4100
+ /** 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`). */
4292
4101
  taskIdentifier: string;
4293
4102
  /** An array of payloads to trigger the task with (max 1,000 items). */
4294
4103
  items: TriggerBatchTaskByIdV1RequestItemsList;
@@ -4297,13 +4106,7 @@ export const TriggerBatchTaskByIdV1Request = /*@__PURE__*/ S.suspend(() =>
4297
4106
  S.Struct({
4298
4107
  taskIdentifier: S.String.pipe(T.Label()),
4299
4108
  items: TriggerBatchTaskByIdV1RequestItemsList,
4300
- }).pipe(
4301
- T.Http({
4302
- method: "POST",
4303
- uri: "/api/v1/tasks/{taskIdentifier}/batch",
4304
- code: 200,
4305
- }),
4306
- ),
4109
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/{taskIdentifier}/batch", code: 200 })),
4307
4110
  ).annotate({
4308
4111
  identifier: "TriggerBatchTaskByIdV1Request",
4309
4112
  }) as any as S.Schema<TriggerBatchTaskByIdV1Request>;
@@ -4325,9 +4128,7 @@ export const BatchTriggerTaskResponse = /*@__PURE__*/ S.suspend(() =>
4325
4128
  batchId: S.String,
4326
4129
  runs: BatchTriggerTaskResponseRunsList,
4327
4130
  }),
4328
- ).annotate({
4329
- identifier: "BatchTriggerTaskResponse",
4330
- }) as any as S.Schema<BatchTriggerTaskResponse>;
4131
+ ).annotate({ identifier: "BatchTriggerTaskResponse" }) as any as S.Schema<BatchTriggerTaskResponse>;
4331
4132
 
4332
4133
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
4333
4134
  export type BatchTriggerTaskRequestBodyItemOptionsMachine =
@@ -4353,17 +4154,16 @@ export interface BatchTriggerTaskRequestBodyItemOptions {
4353
4154
  /** The machine preset to use for this run. This will override the task's machine preset and any defaults. */
4354
4155
  machine?: BatchTriggerTaskRequestBodyItemOptionsMachine | (string & {});
4355
4156
  }
4356
- export const BatchTriggerTaskRequestBodyItemOptions = /*@__PURE__*/ S.suspend(
4357
- () =>
4358
- S.Struct({
4359
- queue: S.optional(QueueOptions),
4360
- concurrencyKey: S.optional(S.String),
4361
- idempotencyKey: S.optional(S.String),
4362
- ttl: S.optional(S.Unknown),
4363
- delay: S.optional(S.String),
4364
- tags: S.optional(RunTags),
4365
- machine: S.optional(BatchTriggerTaskRequestBodyItemOptionsMachine),
4366
- }),
4157
+ export const BatchTriggerTaskRequestBodyItemOptions = /*@__PURE__*/ S.suspend(() =>
4158
+ S.Struct({
4159
+ queue: S.optional(QueueOptions),
4160
+ concurrencyKey: S.optional(S.String),
4161
+ idempotencyKey: S.optional(S.String),
4162
+ ttl: S.optional(S.Unknown),
4163
+ delay: S.optional(S.String),
4164
+ tags: S.optional(RunTags),
4165
+ machine: S.optional(BatchTriggerTaskRequestBodyItemOptionsMachine),
4166
+ }),
4367
4167
  ).annotate({
4368
4168
  identifier: "BatchTriggerTaskRequestBodyItemOptions",
4369
4169
  }) as any as S.Schema<BatchTriggerTaskRequestBodyItemOptions>;
@@ -4389,8 +4189,7 @@ export const BatchTriggerTaskRequestBodyItem = /*@__PURE__*/ S.suspend(() =>
4389
4189
  }) as any as S.Schema<BatchTriggerTaskRequestBodyItem>;
4390
4190
 
4391
4191
  /** An array of payloads to trigger the task with */
4392
- export type TriggerBatchTaskV1RequestItemsList =
4393
- Array<BatchTriggerTaskRequestBodyItem>;
4192
+ export type TriggerBatchTaskV1RequestItemsList = Array<BatchTriggerTaskRequestBodyItem>;
4394
4193
  export const TriggerBatchTaskV1RequestItemsList = /*@__PURE__*/ S.Array(
4395
4194
  BatchTriggerTaskRequestBodyItem,
4396
4195
  ) as any as S.Schema<TriggerBatchTaskV1RequestItemsList>;
@@ -4446,7 +4245,7 @@ export const TriggerTaskV1RequestOptions = /*@__PURE__*/ S.suspend(() =>
4446
4245
  }) as any as S.Schema<TriggerTaskV1RequestOptions>;
4447
4246
 
4448
4247
  export interface TriggerTaskV1Request {
4449
- /** The id of a task */
4248
+ /** 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`). */
4450
4249
  taskIdentifier: string;
4451
4250
  /** The payload can include any valid JSON */
4452
4251
  payload?: unknown;
@@ -4460,16 +4259,8 @@ export const TriggerTaskV1Request = /*@__PURE__*/ S.suspend(() =>
4460
4259
  payload: S.optional(S.Unknown),
4461
4260
  context: S.optional(S.Unknown),
4462
4261
  options: S.optional(TriggerTaskV1RequestOptions),
4463
- }).pipe(
4464
- T.Http({
4465
- method: "POST",
4466
- uri: "/api/v1/tasks/{taskIdentifier}/trigger",
4467
- code: 200,
4468
- }),
4469
- ),
4470
- ).annotate({
4471
- identifier: "TriggerTaskV1Request",
4472
- }) as any as S.Schema<TriggerTaskV1Request>;
4262
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/{taskIdentifier}/trigger", code: 200 })),
4263
+ ).annotate({ identifier: "TriggerTaskV1Request" }) as any as S.Schema<TriggerTaskV1Request>;
4473
4264
 
4474
4265
  export interface TriggerTaskResponse {
4475
4266
  /** The ID of the run that was triggered. */
@@ -4479,9 +4270,7 @@ export const TriggerTaskResponse = /*@__PURE__*/ S.suspend(() =>
4479
4270
  S.Struct({
4480
4271
  id: S.optional(S.String),
4481
4272
  }),
4482
- ).annotate({
4483
- identifier: "TriggerTaskResponse",
4484
- }) as any as S.Schema<TriggerTaskResponse>;
4273
+ ).annotate({ identifier: "TriggerTaskResponse" }) as any as S.Schema<TriggerTaskResponse>;
4485
4274
 
4486
4275
  export interface UnresolveErrorV1Request {
4487
4276
  /** The ID of an error group, starts with `error_`. */
@@ -4490,16 +4279,8 @@ export interface UnresolveErrorV1Request {
4490
4279
  export const UnresolveErrorV1Request = /*@__PURE__*/ S.suspend(() =>
4491
4280
  S.Struct({
4492
4281
  errorId: S.String.pipe(T.Label()),
4493
- }).pipe(
4494
- T.Http({
4495
- method: "POST",
4496
- uri: "/api/v1/errors/{errorId}/unresolve",
4497
- code: 200,
4498
- }),
4499
- ),
4500
- ).annotate({
4501
- identifier: "UnresolveErrorV1Request",
4502
- }) as any as S.Schema<UnresolveErrorV1Request>;
4282
+ }).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/unresolve", code: 200 })),
4283
+ ).annotate({ identifier: "UnresolveErrorV1Request" }) as any as S.Schema<UnresolveErrorV1Request>;
4503
4284
 
4504
4285
  export type UpdateProjectEnvvarV1RequestEnv = "dev" | "staging" | "prod";
4505
4286
  export const UpdateProjectEnvvarV1RequestEnv = S.String;
@@ -4511,6 +4292,7 @@ export interface UpdateProjectEnvvarV1Request {
4511
4292
  env: UpdateProjectEnvvarV1RequestEnv | (string & {});
4512
4293
  /** The name of the environment variable. */
4513
4294
  name: string;
4295
+ /** The value to store. An empty string is valid and is stored as-is, not treated as a deletion. */
4514
4296
  value: string;
4515
4297
  }
4516
4298
  export const UpdateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() =>
@@ -4520,11 +4302,7 @@ export const UpdateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() =>
4520
4302
  name: S.String.pipe(T.Label()),
4521
4303
  value: S.String,
4522
4304
  }).pipe(
4523
- T.Http({
4524
- method: "PUT",
4525
- uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}",
4526
- code: 200,
4527
- }),
4305
+ T.Http({ method: "PUT", uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}", code: 200 }),
4528
4306
  ),
4529
4307
  ).annotate({
4530
4308
  identifier: "UpdateProjectEnvvarV1Request",
@@ -4540,9 +4318,7 @@ export const UpdateRunMetadataV1Request = /*@__PURE__*/ S.suspend(() =>
4540
4318
  S.Struct({
4541
4319
  runId: S.String.pipe(T.Label()),
4542
4320
  metadata: S.optional(S.Unknown),
4543
- }).pipe(
4544
- T.Http({ method: "PUT", uri: "/api/v1/runs/{runId}/metadata", code: 200 }),
4545
- ),
4321
+ }).pipe(T.Http({ method: "PUT", uri: "/api/v1/runs/{runId}/metadata", code: 200 })),
4546
4322
  ).annotate({
4547
4323
  identifier: "UpdateRunMetadataV1Request",
4548
4324
  }) as any as S.Schema<UpdateRunMetadataV1Request>;
@@ -4575,16 +4351,8 @@ export const UpdateScheduleV1Request = /*@__PURE__*/ S.suspend(() =>
4575
4351
  cron: S.String,
4576
4352
  externalId: S.optional(S.String),
4577
4353
  timezone: S.optional(S.String),
4578
- }).pipe(
4579
- T.Http({
4580
- method: "PUT",
4581
- uri: "/api/v1/schedules/{schedule_id}",
4582
- code: 200,
4583
- }),
4584
- ),
4585
- ).annotate({
4586
- identifier: "UpdateScheduleV1Request",
4587
- }) as any as S.Schema<UpdateScheduleV1Request>;
4354
+ }).pipe(T.Http({ method: "PUT", uri: "/api/v1/schedules/{schedule_id}", code: 200 })),
4355
+ ).annotate({ identifier: "UpdateScheduleV1Request" }) as any as S.Schema<UpdateScheduleV1Request>;
4588
4356
 
4589
4357
  /** Replaces the tags on the session row. */
4590
4358
  export type UpdateSessionV1RequestTagsList = Array<string>;
@@ -4593,9 +4361,7 @@ export const UpdateSessionV1RequestTagsList = /*@__PURE__*/ S.Array(
4593
4361
  ) as any as S.Schema<UpdateSessionV1RequestTagsList>;
4594
4362
 
4595
4363
  /** Replaces the metadata. Pass `null` to clear it. */
4596
- export type UpdateSessionV1RequestMetadataMap = {
4597
- [key: string]: unknown | undefined;
4598
- };
4364
+ export type UpdateSessionV1RequestMetadataMap = { [key: string]: unknown | undefined };
4599
4365
  export const UpdateSessionV1RequestMetadataMap = /*@__PURE__*/ S.Record(
4600
4366
  S.String,
4601
4367
  S.Unknown,
@@ -4617,12 +4383,8 @@ export const UpdateSessionV1Request = /*@__PURE__*/ S.suspend(() =>
4617
4383
  tags: S.optional(UpdateSessionV1RequestTagsList),
4618
4384
  metadata: S.optional(S.NullOr(UpdateSessionV1RequestMetadataMap)),
4619
4385
  externalId: S.optional(S.NullOr(S.String)),
4620
- }).pipe(
4621
- T.Http({ method: "PATCH", uri: "/api/v1/sessions/{session}", code: 200 }),
4622
- ),
4623
- ).annotate({
4624
- identifier: "UpdateSessionV1Request",
4625
- }) as any as S.Schema<UpdateSessionV1Request>;
4386
+ }).pipe(T.Http({ method: "PATCH", uri: "/api/v1/sessions/{session}", code: 200 })),
4387
+ ).annotate({ identifier: "UpdateSessionV1Request" }) as any as S.Schema<UpdateSessionV1Request>;
4626
4388
 
4627
4389
  export type UploadProjectEnvvarsV1RequestEnv = "dev" | "staging" | "prod";
4628
4390
  export const UploadProjectEnvvarsV1RequestEnv = S.String;
@@ -4673,10 +4435,7 @@ export const activateScheduleV1: API.OperationMethod<
4673
4435
  retry: Retry.Retry,
4674
4436
  }));
4675
4437
 
4676
- export type AddRunTagsV1Error =
4677
- | BadRequest
4678
- | UnprocessableEntity
4679
- | TriggerDevOpError;
4438
+ export type AddRunTagsV1Error = BadRequest | UnprocessableEntity | TriggerDevOpError;
4680
4439
  /** Add tags to a run Adds one or more tags to a run. Runs can have a maximum of 10 tags. Duplicate tags are ignored. */
4681
4440
  export const addRunTagsV1: API.OperationMethod<
4682
4441
  AddRunTagsV1Request,
@@ -4736,9 +4495,7 @@ export const closeSessionV1: API.OperationMethod<
4736
4495
  retry: Retry.Retry,
4737
4496
  }));
4738
4497
 
4739
- export type CompleteWaitpointTokenCallbackV1Error =
4740
- | NotFound
4741
- | TriggerDevOpError;
4498
+ export type CompleteWaitpointTokenCallbackV1Error = NotFound | TriggerDevOpError;
4742
4499
  /** 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`. */
4743
4500
  export const completeWaitpointTokenCallbackV1: API.OperationMethod<
4744
4501
  CompleteWaitpointTokenCallbackV1Request,
@@ -4768,10 +4525,7 @@ export const completeWaitpointTokenV1: API.OperationMethod<
4768
4525
  retry: Retry.Retry,
4769
4526
  }));
4770
4527
 
4771
- export type CreateBulkActionV1Error =
4772
- | BadRequest
4773
- | UnprocessableEntity
4774
- | TriggerDevOpError;
4528
+ export type CreateBulkActionV1Error = BadRequest | UnprocessableEntity | TriggerDevOpError;
4775
4529
  /** Create bulk action Create an asynchronous bulk action to cancel or replay runs selected by run IDs or filters. */
4776
4530
  export const createBulkActionV1: API.OperationMethod<
4777
4531
  CreateBulkActionV1Request,
@@ -4786,10 +4540,7 @@ export const createBulkActionV1: API.OperationMethod<
4786
4540
  retry: Retry.Retry,
4787
4541
  }));
4788
4542
 
4789
- export type CreateProjectEnvvarV1Error =
4790
- | BadRequest
4791
- | NotFound
4792
- | TriggerDevOpError;
4543
+ export type CreateProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
4793
4544
  /** Create environment variable Create a new environment variable for a specific project and environment. */
4794
4545
  export const createProjectEnvvarV1: API.OperationMethod<
4795
4546
  CreateProjectEnvvarV1Request,
@@ -4804,10 +4555,7 @@ export const createProjectEnvvarV1: API.OperationMethod<
4804
4555
  retry: Retry.Retry,
4805
4556
  }));
4806
4557
 
4807
- export type CreateScheduleV1Error =
4808
- | BadRequest
4809
- | UnprocessableEntity
4810
- | TriggerDevOpError;
4558
+ export type CreateScheduleV1Error = BadRequest | UnprocessableEntity | TriggerDevOpError;
4811
4559
  /** Create a schedule Create a new `IMPERATIVE` schedule based on the specified options. */
4812
4560
  export const createScheduleV1: API.OperationMethod<
4813
4561
  CreateScheduleV1Request,
@@ -4822,10 +4570,7 @@ export const createScheduleV1: API.OperationMethod<
4822
4570
  retry: Retry.Retry,
4823
4571
  }));
4824
4572
 
4825
- export type CreateSessionV1Error =
4826
- | Conflict
4827
- | UnprocessableEntity
4828
- | TriggerDevOpError;
4573
+ export type CreateSessionV1Error = Conflict | UnprocessableEntity | TriggerDevOpError;
4829
4574
  /** Create a session Create a Session and trigger its first run in one atomic call. A Session is the durable identity for a bi-directional stream of records (the `.in` and `.out` channels) that survives across the runs processing it. Idempotent on `externalId` within an environment. Calling create again with an `externalId` that already maps to an open session returns the existing session with `isCached: true` and `201` becomes `200`. Reusing an `externalId` whose session is already closed or expired returns `409`. Authorize with a secret key, or a public token carrying `write:sessions` for the session you are creating. */
4830
4575
  export const createSessionV1: API.OperationMethod<
4831
4576
  CreateSessionV1Request,
@@ -4840,9 +4585,7 @@ export const createSessionV1: API.OperationMethod<
4840
4585
  retry: Retry.Retry,
4841
4586
  }));
4842
4587
 
4843
- export type CreateWaitpointTokenV1Error =
4844
- | UnprocessableEntity
4845
- | TriggerDevOpError;
4588
+ export type CreateWaitpointTokenV1Error = UnprocessableEntity | TriggerDevOpError;
4846
4589
  /** Create a waitpoint token Creates a new waitpoint token that can be used to pause a run until an external event completes it. The token includes a `url` which can be called via HTTP POST to complete the waitpoint. Use the token ID with `wait.forToken()` inside a task to pause execution until the token is completed. */
4847
4590
  export const createWaitpointTokenV1: API.OperationMethod<
4848
4591
  CreateWaitpointTokenV1Request,
@@ -4872,10 +4615,7 @@ export const deactivateScheduleV1: API.OperationMethod<
4872
4615
  retry: Retry.Retry,
4873
4616
  }));
4874
4617
 
4875
- export type DeleteProjectEnvvarV1Error =
4876
- | BadRequest
4877
- | NotFound
4878
- | TriggerDevOpError;
4618
+ export type DeleteProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
4879
4619
  /** Delete environment variable Delete a specific environment variable for a specific project and environment. */
4880
4620
  export const deleteProjectEnvvarV1: API.OperationMethod<
4881
4621
  DeleteProjectEnvvarV1Request,
@@ -4965,6 +4705,21 @@ export const getBulkActionV1: API.OperationMethod<
4965
4705
  retry: Retry.Retry,
4966
4706
  }));
4967
4707
 
4708
+ export type GetConcurrencyLimitV1Error = NotFound | TriggerDevOpError;
4709
+ /** Retrieve concurrency limit Retrieve a concurrency limit by name, with its bounds and live running and queued counts. */
4710
+ export const getConcurrencyLimitV1: API.OperationMethod<
4711
+ GetConcurrencyLimitV1Request,
4712
+ ConcurrencyLimitObject,
4713
+ GetConcurrencyLimitV1Error,
4714
+ TriggerDevOpContext
4715
+ > = /*@__PURE__*/ API.make(() => ({
4716
+ input: GetConcurrencyLimitV1Request,
4717
+ output: ConcurrencyLimitObject,
4718
+ errors: [NotFound, UnknownTriggerDevError],
4719
+ protocol: TriggerDevProtocol,
4720
+ retry: Retry.Retry,
4721
+ }));
4722
+
4968
4723
  export type GetDeploymentV1Error = NotFound | TriggerDevOpError;
4969
4724
  /** Get deployment Retrieve information about a specific deployment by its ID. */
4970
4725
  export const getDeploymentV1: API.OperationMethod<
@@ -5205,6 +4960,21 @@ export const listBulkActionsV1: API.OperationMethod<
5205
4960
  retry: Retry.Retry,
5206
4961
  }));
5207
4962
 
4963
+ export type ListConcurrencyLimitsV1Error = TriggerDevOpError;
4964
+ /** List concurrency limits List the environment's declared concurrency limits (anonymous inline limits appear under their derived `task/<task-id>` names), with each limit's bounds and its live running and queued counts. Results are ordered by the underlying row name, so named limits sort before `task/`-derived inline limits. */
4965
+ export const listConcurrencyLimitsV1: API.OperationMethod<
4966
+ ListConcurrencyLimitsV1Request,
4967
+ ListConcurrencyLimitsV1Response,
4968
+ ListConcurrencyLimitsV1Error,
4969
+ TriggerDevOpContext
4970
+ > = /*@__PURE__*/ API.make(() => ({
4971
+ input: ListConcurrencyLimitsV1Request,
4972
+ output: ListConcurrencyLimitsV1Response,
4973
+ errors: [UnknownTriggerDevError],
4974
+ protocol: TriggerDevProtocol,
4975
+ retry: Retry.Retry,
4976
+ }));
4977
+
5208
4978
  export type ListDashboardsV1Error = TriggerDevOpError;
5209
4979
  /** List built-in dashboards List available built-in dashboards with their widgets. Each dashboard contains pre-built TRQL queries for common metrics like run success rates, costs, and LLM usage. */
5210
4980
  export const listDashboardsV1: API.OperationMethod<
@@ -5250,10 +5020,7 @@ export const listErrorsV1: API.OperationMethod<
5250
5020
  retry: Retry.Retry,
5251
5021
  }));
5252
5022
 
5253
- export type ListProjectEnvvarsV1Error =
5254
- | BadRequest
5255
- | NotFound
5256
- | TriggerDevOpError;
5023
+ export type ListProjectEnvvarsV1Error = BadRequest | NotFound | TriggerDevOpError;
5257
5024
  /** List environment variables List all environment variables for a specific project and environment. */
5258
5025
  export const listProjectEnvvarsV1: API.OperationMethod<
5259
5026
  ListProjectEnvvarsV1Request,
@@ -5343,9 +5110,7 @@ export const listSessionsV1: API.OperationMethod<
5343
5110
  retry: Retry.Retry,
5344
5111
  }));
5345
5112
 
5346
- export type ListWaitpointTokensV1Error =
5347
- | UnprocessableEntity
5348
- | TriggerDevOpError;
5113
+ export type ListWaitpointTokensV1Error = UnprocessableEntity | TriggerDevOpError;
5349
5114
  /** List waitpoint tokens Returns a paginated list of waitpoint tokens for the current environment. Results are ordered by creation date, newest first. Use cursor-based pagination with `page[after]` and `page[before]` to navigate pages. */
5350
5115
  export const listWaitpointTokensV1: API.OperationMethod<
5351
5116
  ListWaitpointTokensV1Request,
@@ -5360,10 +5125,22 @@ export const listWaitpointTokensV1: API.OperationMethod<
5360
5125
  retry: Retry.Retry,
5361
5126
  }));
5362
5127
 
5363
- export type OverrideQueueConcurrencyV1Error =
5364
- | BadRequest
5365
- | NotFound
5366
- | TriggerDevOpError;
5128
+ export type OverrideConcurrencyLimitV1Error = BadRequest | NotFound | Conflict | TriggerDevOpError;
5129
+ /** Override concurrency limit Override a concurrency limit's bounds. Only the given fields change; the declared values are kept and restored by reset. To stop runs holding a limit, prefer the pause endpoint (it keeps the configured bounds); overriding `total` to `0` also blocks every run holding the limit. */
5130
+ export const overrideConcurrencyLimitV1: API.OperationMethod<
5131
+ OverrideConcurrencyLimitV1Request,
5132
+ ConcurrencyLimitObject,
5133
+ OverrideConcurrencyLimitV1Error,
5134
+ TriggerDevOpContext
5135
+ > = /*@__PURE__*/ API.make(() => ({
5136
+ input: OverrideConcurrencyLimitV1Request,
5137
+ output: ConcurrencyLimitObject,
5138
+ errors: [BadRequest, NotFound, Conflict, UnknownTriggerDevError],
5139
+ protocol: TriggerDevProtocol,
5140
+ retry: Retry.Retry,
5141
+ }));
5142
+
5143
+ export type OverrideQueueConcurrencyV1Error = BadRequest | NotFound | TriggerDevOpError;
5367
5144
  /** Override queue concurrency limit Override the concurrency limit of a queue. This is useful for temporarily scaling up or down based on demand. */
5368
5145
  export const overrideQueueConcurrencyV1: API.OperationMethod<
5369
5146
  OverrideQueueConcurrencyV1Request,
@@ -5378,6 +5155,21 @@ export const overrideQueueConcurrencyV1: API.OperationMethod<
5378
5155
  retry: Retry.Retry,
5379
5156
  }));
5380
5157
 
5158
+ export type PauseConcurrencyLimitV1Error = BadRequest | NotFound | Conflict | TriggerDevOpError;
5159
+ /** Pause or resume a concurrency limit Pause a concurrency limit to prevent runs holding it from starting, or resume a paused limit. Runs that are currently executing will continue to completion, and the limit's configured bounds are kept. */
5160
+ export const pauseConcurrencyLimitV1: API.OperationMethod<
5161
+ PauseConcurrencyLimitV1Request,
5162
+ ConcurrencyLimitObject,
5163
+ PauseConcurrencyLimitV1Error,
5164
+ TriggerDevOpContext
5165
+ > = /*@__PURE__*/ API.make(() => ({
5166
+ input: PauseConcurrencyLimitV1Request,
5167
+ output: ConcurrencyLimitObject,
5168
+ errors: [BadRequest, NotFound, Conflict, UnknownTriggerDevError],
5169
+ protocol: TriggerDevProtocol,
5170
+ retry: Retry.Retry,
5171
+ }));
5172
+
5381
5173
  export type PauseQueueV1Error = BadRequest | NotFound | TriggerDevOpError;
5382
5174
  /** Pause or resume a queue Pause a queue to prevent new runs from starting, or resume a paused queue. Runs that are currently executing will continue to completion. */
5383
5175
  export const pauseQueueV1: API.OperationMethod<
@@ -5393,10 +5185,7 @@ export const pauseQueueV1: API.OperationMethod<
5393
5185
  retry: Retry.Retry,
5394
5186
  }));
5395
5187
 
5396
- export type PromoteDeploymentV1Error =
5397
- | BadRequest
5398
- | NotFound
5399
- | TriggerDevOpError;
5188
+ export type PromoteDeploymentV1Error = BadRequest | NotFound | TriggerDevOpError;
5400
5189
  /** Promote deployment Promote a previously deployed version to be the current version for the environment. This makes the specified version active for new task runs. */
5401
5190
  export const promoteDeploymentV1: API.OperationMethod<
5402
5191
  PromoteDeploymentV1Request,
@@ -5411,10 +5200,22 @@ export const promoteDeploymentV1: API.OperationMethod<
5411
5200
  retry: Retry.Retry,
5412
5201
  }));
5413
5202
 
5414
- export type ResetQueueConcurrencyV1Error =
5415
- | BadRequest
5416
- | NotFound
5417
- | TriggerDevOpError;
5203
+ export type ResetConcurrencyLimitV1Error = BadRequest | NotFound | Conflict | TriggerDevOpError;
5204
+ /** Reset concurrency limit Reset a concurrency limit back to the values declared in your code, clearing any override. */
5205
+ export const resetConcurrencyLimitV1: API.OperationMethod<
5206
+ ResetConcurrencyLimitV1Request,
5207
+ ConcurrencyLimitObject,
5208
+ ResetConcurrencyLimitV1Error,
5209
+ TriggerDevOpContext
5210
+ > = /*@__PURE__*/ API.make(() => ({
5211
+ input: ResetConcurrencyLimitV1Request,
5212
+ output: ConcurrencyLimitObject,
5213
+ errors: [BadRequest, NotFound, Conflict, UnknownTriggerDevError],
5214
+ protocol: TriggerDevProtocol,
5215
+ retry: Retry.Retry,
5216
+ }));
5217
+
5218
+ export type ResetQueueConcurrencyV1Error = BadRequest | NotFound | TriggerDevOpError;
5418
5219
  /** Reset queue concurrency limit Reset the concurrency limit of a queue back to its base value defined in code. */
5419
5220
  export const resetQueueConcurrencyV1: API.OperationMethod<
5420
5221
  ResetQueueConcurrencyV1Request,
@@ -5474,10 +5275,7 @@ export const runRescheduleV1: API.OperationMethod<
5474
5275
  retry: Retry.Retry,
5475
5276
  }));
5476
5277
 
5477
- export type TriggerBatchTaskByIdV1Error =
5478
- | BadRequest
5479
- | NotFound
5480
- | TriggerDevOpError;
5278
+ export type TriggerBatchTaskByIdV1Error = BadRequest | NotFound | TriggerDevOpError;
5481
5279
  /** Batch trigger a specific task Batch trigger a specific task with up to 1,000 payloads. All items in the batch run the same task. */
5482
5280
  export const triggerBatchTaskByIdV1: API.OperationMethod<
5483
5281
  TriggerBatchTaskByIdV1Request,
@@ -5537,10 +5335,7 @@ export const unresolveErrorV1: API.OperationMethod<
5537
5335
  retry: Retry.Retry,
5538
5336
  }));
5539
5337
 
5540
- export type UpdateProjectEnvvarV1Error =
5541
- | BadRequest
5542
- | NotFound
5543
- | TriggerDevOpError;
5338
+ export type UpdateProjectEnvvarV1Error = BadRequest | NotFound | TriggerDevOpError;
5544
5339
  /** Update environment variable Update a specific environment variable for a specific project and environment. */
5545
5340
  export const updateProjectEnvvarV1: API.OperationMethod<
5546
5341
  UpdateProjectEnvvarV1Request,
@@ -5555,10 +5350,7 @@ export const updateProjectEnvvarV1: API.OperationMethod<
5555
5350
  retry: Retry.Retry,
5556
5351
  }));
5557
5352
 
5558
- export type UpdateRunMetadataV1Error =
5559
- | BadRequest
5560
- | NotFound
5561
- | TriggerDevOpError;
5353
+ export type UpdateRunMetadataV1Error = BadRequest | NotFound | TriggerDevOpError;
5562
5354
  /** Update run metadata Update the metadata of a run. */
5563
5355
  export const updateRunMetadataV1: API.OperationMethod<
5564
5356
  UpdateRunMetadataV1Request,
@@ -5573,11 +5365,7 @@ export const updateRunMetadataV1: API.OperationMethod<
5573
5365
  retry: Retry.Retry,
5574
5366
  }));
5575
5367
 
5576
- export type UpdateScheduleV1Error =
5577
- | BadRequest
5578
- | NotFound
5579
- | UnprocessableEntity
5580
- | TriggerDevOpError;
5368
+ export type UpdateScheduleV1Error = BadRequest | NotFound | UnprocessableEntity | TriggerDevOpError;
5581
5369
  /** 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()`. */
5582
5370
  export const updateScheduleV1: API.OperationMethod<
5583
5371
  UpdateScheduleV1Request,
@@ -5592,10 +5380,7 @@ export const updateScheduleV1: API.OperationMethod<
5592
5380
  retry: Retry.Retry,
5593
5381
  }));
5594
5382
 
5595
- export type UpdateSessionV1Error =
5596
- | NotFound
5597
- | UnprocessableEntity
5598
- | TriggerDevOpError;
5383
+ export type UpdateSessionV1Error = NotFound | UnprocessableEntity | TriggerDevOpError;
5599
5384
  /** 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. */
5600
5385
  export const updateSessionV1: API.OperationMethod<
5601
5386
  UpdateSessionV1Request,
@@ -5610,10 +5395,7 @@ export const updateSessionV1: API.OperationMethod<
5610
5395
  retry: Retry.Retry,
5611
5396
  }));
5612
5397
 
5613
- export type UploadProjectEnvvarsV1Error =
5614
- | BadRequest
5615
- | NotFound
5616
- | TriggerDevOpError;
5398
+ export type UploadProjectEnvvarsV1Error = BadRequest | NotFound | TriggerDevOpError;
5617
5399
  /** Upload environment variables Upload mulitple environment variables for a specific project and environment. */
5618
5400
  export const uploadProjectEnvvarsV1: API.OperationMethod<
5619
5401
  UploadProjectEnvvarsV1Request,