@distilled.cloud/trigger-dev 1.0.0-rc.13 → 1.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +2 -6
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/trigger-dev.d.ts +136 -13
- package/lib/services/trigger-dev.d.ts.map +1 -1
- package/lib/services/trigger-dev.js +223 -389
- package/lib/services/trigger-dev.js.map +1 -1
- package/package.json +12 -10
- package/src/credentials.ts +9 -12
- package/src/errors.ts +1 -1
- package/src/index.ts +1 -6
- package/src/protocol.ts +23 -29
- package/src/retry.ts +3 -11
- package/src/services/trigger-dev.ts +605 -823
- package/lib/response-validation.test.d.ts +0 -6
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -40
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -56
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
|
|
6
|
-
import
|
|
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";
|
|
7
5
|
import { UnknownTriggerDevError } from "../errors.js";
|
|
6
|
+
import { TriggerDevProtocol, } from "../protocol.js";
|
|
8
7
|
import * as Retry from "../retry.js";
|
|
8
|
+
import * as T from "../traits.js";
|
|
9
9
|
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
10
|
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
11
11
|
code: S.Number,
|
|
@@ -32,11 +32,7 @@ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErro
|
|
|
32
32
|
}
|
|
33
33
|
export const ActivateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
34
34
|
schedule_id: S.String.pipe(T.Label()),
|
|
35
|
-
}).pipe(T.Http({
|
|
36
|
-
method: "POST",
|
|
37
|
-
uri: "/api/v1/schedules/{schedule_id}/activate",
|
|
38
|
-
code: 200,
|
|
39
|
-
}))).annotate({
|
|
35
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules/{schedule_id}/activate", code: 200 }))).annotate({
|
|
40
36
|
identifier: "ActivateScheduleV1Request",
|
|
41
37
|
});
|
|
42
38
|
export const ScheduleObjectGeneratorType = S.String;
|
|
@@ -44,16 +40,19 @@ export const ScheduleObjectGenerator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
44
40
|
type: S.optional(ScheduleObjectGeneratorType),
|
|
45
41
|
expression: S.optional(S.String),
|
|
46
42
|
description: S.optional(S.String),
|
|
43
|
+
})).annotate({ identifier: "ScheduleObjectGenerator" });
|
|
44
|
+
export const ScheduleObjectAppliedSchedulePolicyReason = S.String;
|
|
45
|
+
export const ScheduleObjectAppliedSchedulePolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
+
minimumWindowSeconds: S.optional(S.Number),
|
|
47
|
+
reason: S.optional(ScheduleObjectAppliedSchedulePolicyReason),
|
|
47
48
|
})).annotate({
|
|
48
|
-
identifier: "
|
|
49
|
+
identifier: "ScheduleObjectAppliedSchedulePolicy",
|
|
49
50
|
});
|
|
50
51
|
export const ScheduleEnvironment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
52
|
id: S.optional(S.String),
|
|
52
53
|
type: S.optional(S.String),
|
|
53
54
|
userName: S.optional(S.String),
|
|
54
|
-
})).annotate({
|
|
55
|
-
identifier: "ScheduleEnvironment",
|
|
56
|
-
});
|
|
55
|
+
})).annotate({ identifier: "ScheduleEnvironment" });
|
|
57
56
|
export const ScheduleObjectEnvironmentsList = /*@__PURE__*/ S.Array(ScheduleEnvironment);
|
|
58
57
|
export const ScheduleObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
58
|
id: S.optional(S.String),
|
|
@@ -65,6 +64,7 @@ export const ScheduleObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
65
64
|
generator: S.optional(ScheduleObjectGenerator),
|
|
66
65
|
timezone: S.optional(S.String),
|
|
67
66
|
nextRun: S.optional(S.String),
|
|
67
|
+
appliedSchedulePolicy: S.optional(ScheduleObjectAppliedSchedulePolicy),
|
|
68
68
|
environments: S.optional(ScheduleObjectEnvironmentsList),
|
|
69
69
|
})).annotate({ identifier: "ScheduleObject" });
|
|
70
70
|
export const RunTagsCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -72,48 +72,26 @@ export const RunTags = S.Unknown;
|
|
|
72
72
|
export const AddRunTagsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
73
|
runId: S.String.pipe(T.Label()),
|
|
74
74
|
tags: RunTags,
|
|
75
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/tags", code: 200 }))).annotate({
|
|
76
|
-
identifier: "AddRunTagsV1Request",
|
|
77
|
-
});
|
|
75
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/tags", code: 200 }))).annotate({ identifier: "AddRunTagsV1Request" });
|
|
78
76
|
export const AddRunTagsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
77
|
message: S.optional(S.String),
|
|
80
|
-
})).annotate({
|
|
81
|
-
identifier: "AddRunTagsV1Response",
|
|
82
|
-
});
|
|
78
|
+
})).annotate({ identifier: "AddRunTagsV1Response" });
|
|
83
79
|
export const BulkAbortActionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
80
|
bulkActionId: S.String.pipe(T.Label()),
|
|
85
|
-
}).pipe(T.Http({
|
|
86
|
-
method: "POST",
|
|
87
|
-
uri: "/api/v1/bulk-actions/{bulkActionId}/abort",
|
|
88
|
-
code: 200,
|
|
89
|
-
}))).annotate({
|
|
90
|
-
identifier: "BulkAbortActionV1Request",
|
|
91
|
-
});
|
|
81
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/bulk-actions/{bulkActionId}/abort", code: 200 }))).annotate({ identifier: "BulkAbortActionV1Request" });
|
|
92
82
|
export const AbortBulkActionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
83
|
id: S.String,
|
|
94
|
-
})).annotate({
|
|
95
|
-
identifier: "AbortBulkActionResponse",
|
|
96
|
-
});
|
|
84
|
+
})).annotate({ identifier: "AbortBulkActionResponse" });
|
|
97
85
|
export const CancelRunV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
86
|
runId: S.String.pipe(T.Label()),
|
|
99
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v2/runs/{runId}/cancel", code: 200 }))).annotate({
|
|
100
|
-
identifier: "CancelRunV1Request",
|
|
101
|
-
});
|
|
87
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v2/runs/{runId}/cancel", code: 200 }))).annotate({ identifier: "CancelRunV1Request" });
|
|
102
88
|
export const CancelRunV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
89
|
id: S.optional(S.String),
|
|
104
|
-
})).annotate({
|
|
105
|
-
identifier: "CancelRunV1Response",
|
|
106
|
-
});
|
|
90
|
+
})).annotate({ identifier: "CancelRunV1Response" });
|
|
107
91
|
export const CloseSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
92
|
session: S.String.pipe(T.Label()),
|
|
109
93
|
reason: S.optional(S.String),
|
|
110
|
-
}).pipe(T.Http({
|
|
111
|
-
method: "POST",
|
|
112
|
-
uri: "/api/v1/sessions/{session}/close",
|
|
113
|
-
code: 200,
|
|
114
|
-
}))).annotate({
|
|
115
|
-
identifier: "CloseSessionV1Request",
|
|
116
|
-
});
|
|
94
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions/{session}/close", code: 200 }))).annotate({ identifier: "CloseSessionV1Request" });
|
|
117
95
|
export const SessionTriggerConfigBasePayloadMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
118
96
|
export const SessionTriggerConfigTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
119
97
|
export const SessionTriggerConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -126,9 +104,7 @@ export const SessionTriggerConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
126
104
|
lockToVersion: S.optional(S.String),
|
|
127
105
|
region: S.optional(S.String),
|
|
128
106
|
idleTimeoutInSeconds: S.optional(S.Number),
|
|
129
|
-
})).annotate({
|
|
130
|
-
identifier: "SessionTriggerConfig",
|
|
131
|
-
});
|
|
107
|
+
})).annotate({ identifier: "SessionTriggerConfig" });
|
|
132
108
|
export const SessionObjectTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
133
109
|
export const SessionObjectMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
134
110
|
export const SessionObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -164,11 +140,7 @@ export const CompleteWaitpointTokenResponse = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
164
140
|
export const CompleteWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
165
141
|
waitpointId: S.String.pipe(T.Label()),
|
|
166
142
|
data: S.optional(S.Unknown),
|
|
167
|
-
}).pipe(T.Http({
|
|
168
|
-
method: "POST",
|
|
169
|
-
uri: "/api/v1/waitpoints/tokens/{waitpointId}/complete",
|
|
170
|
-
code: 200,
|
|
171
|
-
}))).annotate({
|
|
143
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/waitpoints/tokens/{waitpointId}/complete", code: 200 }))).annotate({
|
|
172
144
|
identifier: "CompleteWaitpointTokenV1Request",
|
|
173
145
|
});
|
|
174
146
|
export const CreateBulkActionRequestBodyCase0Action = S.String;
|
|
@@ -210,9 +182,7 @@ export const BulkActionFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
210
182
|
queue: S.optional(BulkActionFilterQueue),
|
|
211
183
|
machine: S.optional(BulkActionFilterMachine),
|
|
212
184
|
region: S.optional(BulkActionFilterRegion),
|
|
213
|
-
})).annotate({
|
|
214
|
-
identifier: "BulkActionFilter",
|
|
215
|
-
});
|
|
185
|
+
})).annotate({ identifier: "BulkActionFilter" });
|
|
216
186
|
export const CreateBulkActionRequestBodyCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
187
|
action: CreateBulkActionRequestBodyCase0Action,
|
|
218
188
|
filter: BulkActionFilter,
|
|
@@ -263,27 +233,19 @@ export const CreateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
263
233
|
env: CreateProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
264
234
|
name: S.String,
|
|
265
235
|
value: S.String,
|
|
266
|
-
}).pipe(T.Http({
|
|
267
|
-
method: "POST",
|
|
268
|
-
uri: "/api/v1/projects/{projectRef}/envvars/{env}",
|
|
269
|
-
code: 200,
|
|
270
|
-
}))).annotate({
|
|
236
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/projects/{projectRef}/envvars/{env}", code: 200 }))).annotate({
|
|
271
237
|
identifier: "CreateProjectEnvvarV1Request",
|
|
272
238
|
});
|
|
273
239
|
export const SucceedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
274
240
|
success: S.Boolean,
|
|
275
|
-
})).annotate({
|
|
276
|
-
identifier: "SucceedResponse",
|
|
277
|
-
});
|
|
241
|
+
})).annotate({ identifier: "SucceedResponse" });
|
|
278
242
|
export const CreateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
279
243
|
task: S.String,
|
|
280
244
|
cron: S.String,
|
|
281
245
|
deduplicationKey: S.String,
|
|
282
246
|
externalId: S.optional(S.String),
|
|
283
247
|
timezone: S.optional(S.String),
|
|
284
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules", code: 200 }))).annotate({
|
|
285
|
-
identifier: "CreateScheduleV1Request",
|
|
286
|
-
});
|
|
248
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules", code: 200 }))).annotate({ identifier: "CreateScheduleV1Request" });
|
|
287
249
|
export const CreateSessionV1RequestTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
288
250
|
export const CreateSessionV1RequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
289
251
|
export const CreateSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -294,9 +256,7 @@ export const CreateSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
294
256
|
tags: S.optional(CreateSessionV1RequestTagsList),
|
|
295
257
|
metadata: S.optional(CreateSessionV1RequestMetadataMap),
|
|
296
258
|
expiresAt: S.optional(S.String),
|
|
297
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions", code: 200 }))).annotate({
|
|
298
|
-
identifier: "CreateSessionV1Request",
|
|
299
|
-
});
|
|
259
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions", code: 200 }))).annotate({ identifier: "CreateSessionV1Request" });
|
|
300
260
|
export const CreateSessionV1ResponseTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
301
261
|
export const CreateSessionV1ResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
302
262
|
export const CreateSessionV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -316,9 +276,7 @@ export const CreateSessionV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
316
276
|
runId: S.String,
|
|
317
277
|
publicAccessToken: S.String,
|
|
318
278
|
isCached: S.Boolean,
|
|
319
|
-
})).annotate({
|
|
320
|
-
identifier: "CreateSessionV1Response",
|
|
321
|
-
});
|
|
279
|
+
})).annotate({ identifier: "CreateSessionV1Response" });
|
|
322
280
|
export const CreateWaitpointTokenV1RequestTagsCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
323
281
|
export const CreateWaitpointTokenV1RequestTags = S.Unknown;
|
|
324
282
|
export const CreateWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -338,11 +296,7 @@ export const CreateWaitpointTokenResponse = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
338
296
|
});
|
|
339
297
|
export const DeactivateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
298
|
schedule_id: S.String.pipe(T.Label()),
|
|
341
|
-
}).pipe(T.Http({
|
|
342
|
-
method: "POST",
|
|
343
|
-
uri: "/api/v1/schedules/{schedule_id}/deactivate",
|
|
344
|
-
code: 200,
|
|
345
|
-
}))).annotate({
|
|
299
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules/{schedule_id}/deactivate", code: 200 }))).annotate({
|
|
346
300
|
identifier: "DeactivateScheduleV1Request",
|
|
347
301
|
});
|
|
348
302
|
export const DeleteProjectEnvvarV1RequestEnv = S.String;
|
|
@@ -359,13 +313,7 @@ export const DeleteProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
359
313
|
});
|
|
360
314
|
export const DeleteScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
361
315
|
schedule_id: S.String.pipe(T.Label()),
|
|
362
|
-
}).pipe(T.Http({
|
|
363
|
-
method: "DELETE",
|
|
364
|
-
uri: "/api/v1/schedules/{schedule_id}",
|
|
365
|
-
code: 200,
|
|
366
|
-
}))).annotate({
|
|
367
|
-
identifier: "DeleteScheduleV1Request",
|
|
368
|
-
});
|
|
316
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/api/v1/schedules/{schedule_id}", code: 200 }))).annotate({ identifier: "DeleteScheduleV1Request" });
|
|
369
317
|
export const DeleteScheduleV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
370
318
|
identifier: "DeleteScheduleV1Response",
|
|
371
319
|
});
|
|
@@ -378,9 +326,7 @@ export const ExecuteQueryV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
378
326
|
from: S.optional(S.NullOr(S.String)),
|
|
379
327
|
to: S.optional(S.NullOr(S.String)),
|
|
380
328
|
format: S.optional(ExecuteQueryV1RequestFormat),
|
|
381
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/query", code: 200 }))).annotate({
|
|
382
|
-
identifier: "ExecuteQueryV1Request",
|
|
383
|
-
});
|
|
329
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/query", code: 200 }))).annotate({ identifier: "ExecuteQueryV1Request" });
|
|
384
330
|
export const ExecuteQueryResponseCase0Format = S.String;
|
|
385
331
|
export const ExecuteQueryResponseCase0ResultsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
386
332
|
export const ExecuteQueryResponseCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -397,18 +343,10 @@ export const ExecuteQueryResponseCase1 = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
397
343
|
identifier: "ExecuteQueryResponseCase1",
|
|
398
344
|
});
|
|
399
345
|
export const ExecuteQueryResponse = S.Unknown;
|
|
400
|
-
export const ExecuteQueryV1Response = /*@__PURE__*/ S.suspend(() => ExecuteQueryResponse.pipe(T.RawResponseRoot())).annotate({
|
|
401
|
-
identifier: "ExecuteQueryV1Response",
|
|
402
|
-
});
|
|
346
|
+
export const ExecuteQueryV1Response = /*@__PURE__*/ S.suspend(() => ExecuteQueryResponse.pipe(T.RawResponseRoot())).annotate({ identifier: "ExecuteQueryV1Response" });
|
|
403
347
|
export const GetBatchResultsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
404
348
|
batchId: S.String.pipe(T.Label()),
|
|
405
|
-
}).pipe(T.Http({
|
|
406
|
-
method: "GET",
|
|
407
|
-
uri: "/api/v1/batches/{batchId}/results",
|
|
408
|
-
code: 200,
|
|
409
|
-
}))).annotate({
|
|
410
|
-
identifier: "GetBatchResultsV1Request",
|
|
411
|
-
});
|
|
349
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}/results", code: 200 }))).annotate({ identifier: "GetBatchResultsV1Request" });
|
|
412
350
|
export const GetBatchResultsV1ResponseItemsItemUsage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
413
351
|
durationMs: S.optional(S.Number),
|
|
414
352
|
})).annotate({
|
|
@@ -434,9 +372,7 @@ export const GetBatchResultsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
434
372
|
});
|
|
435
373
|
export const GetBatchV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
436
374
|
batchId: S.String.pipe(T.Label()),
|
|
437
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}", code: 200 }))).annotate({
|
|
438
|
-
identifier: "GetBatchV1Request",
|
|
439
|
-
});
|
|
375
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}", code: 200 }))).annotate({ identifier: "GetBatchV1Request" });
|
|
440
376
|
export const GetBatchV1ResponseStatus = S.String;
|
|
441
377
|
export const GetBatchV1ResponseRunsList = /*@__PURE__*/ S.Array(S.String);
|
|
442
378
|
export const GetBatchV1ResponseErrorsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -459,27 +395,17 @@ export const GetBatchV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
459
395
|
successfulRunCount: S.optional(S.NullOr(S.Number)),
|
|
460
396
|
failedRunCount: S.optional(S.NullOr(S.Number)),
|
|
461
397
|
errors: S.optional(S.NullOr(GetBatchV1ResponseErrorsList)),
|
|
462
|
-
})).annotate({
|
|
463
|
-
identifier: "GetBatchV1Response",
|
|
464
|
-
});
|
|
398
|
+
})).annotate({ identifier: "GetBatchV1Response" });
|
|
465
399
|
export const GetBulkActionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
466
400
|
bulkActionId: S.String.pipe(T.Label()),
|
|
467
|
-
}).pipe(T.Http({
|
|
468
|
-
method: "GET",
|
|
469
|
-
uri: "/api/v1/bulk-actions/{bulkActionId}",
|
|
470
|
-
code: 200,
|
|
471
|
-
}))).annotate({
|
|
472
|
-
identifier: "GetBulkActionV1Request",
|
|
473
|
-
});
|
|
401
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions/{bulkActionId}", code: 200 }))).annotate({ identifier: "GetBulkActionV1Request" });
|
|
474
402
|
export const BulkActionObjectType = S.String;
|
|
475
403
|
export const BulkActionObjectStatus = S.String;
|
|
476
404
|
export const BulkActionObjectCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
477
405
|
total: S.Number,
|
|
478
406
|
success: S.Number,
|
|
479
407
|
failure: S.Number,
|
|
480
|
-
})).annotate({
|
|
481
|
-
identifier: "BulkActionObjectCounts",
|
|
482
|
-
});
|
|
408
|
+
})).annotate({ identifier: "BulkActionObjectCounts" });
|
|
483
409
|
export const BulkActionObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
484
410
|
id: S.String,
|
|
485
411
|
name: S.optional(S.String),
|
|
@@ -488,18 +414,40 @@ export const BulkActionObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
488
414
|
counts: BulkActionObjectCounts,
|
|
489
415
|
createdAt: S.String,
|
|
490
416
|
completedAt: S.optional(S.String),
|
|
417
|
+
})).annotate({ identifier: "BulkActionObject" });
|
|
418
|
+
export const GetConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
419
|
+
name: S.String.pipe(T.Label()),
|
|
420
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/concurrency-limits/{name}", code: 200 }))).annotate({
|
|
421
|
+
identifier: "GetConcurrencyLimitV1Request",
|
|
422
|
+
});
|
|
423
|
+
export const ConcurrencyLimitObjectPerKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
424
|
+
current: S.optional(S.NullOr(S.Number)),
|
|
425
|
+
base: S.optional(S.NullOr(S.Number)),
|
|
426
|
+
override: S.optional(S.NullOr(S.Number)),
|
|
427
|
+
overriddenAt: S.optional(S.NullOr(S.String)),
|
|
491
428
|
})).annotate({
|
|
492
|
-
identifier: "
|
|
429
|
+
identifier: "ConcurrencyLimitObjectPerKey",
|
|
493
430
|
});
|
|
431
|
+
export const ConcurrencyLimitObjectTotal = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
432
|
+
current: S.optional(S.NullOr(S.Number)),
|
|
433
|
+
base: S.optional(S.NullOr(S.Number)),
|
|
434
|
+
override: S.optional(S.NullOr(S.Number)),
|
|
435
|
+
overriddenAt: S.optional(S.NullOr(S.String)),
|
|
436
|
+
})).annotate({
|
|
437
|
+
identifier: "ConcurrencyLimitObjectTotal",
|
|
438
|
+
});
|
|
439
|
+
export const ConcurrencyLimitObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
440
|
+
id: S.String,
|
|
441
|
+
name: S.String,
|
|
442
|
+
perKey: ConcurrencyLimitObjectPerKey,
|
|
443
|
+
total: ConcurrencyLimitObjectTotal,
|
|
444
|
+
running: S.Number,
|
|
445
|
+
queued: S.Number,
|
|
446
|
+
paused: S.optional(S.Boolean),
|
|
447
|
+
})).annotate({ identifier: "ConcurrencyLimitObject" });
|
|
494
448
|
export const GetDeploymentV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
495
449
|
deploymentId: S.String.pipe(T.Label()),
|
|
496
|
-
}).pipe(T.Http({
|
|
497
|
-
method: "GET",
|
|
498
|
-
uri: "/api/v1/deployments/{deploymentId}",
|
|
499
|
-
code: 200,
|
|
500
|
-
}))).annotate({
|
|
501
|
-
identifier: "GetDeploymentV1Request",
|
|
502
|
-
});
|
|
450
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments/{deploymentId}", code: 200 }))).annotate({ identifier: "GetDeploymentV1Request" });
|
|
503
451
|
export const GetDeploymentV1ResponseStatus = S.String;
|
|
504
452
|
export const GetDeploymentV1ResponseWorkerTasksItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
505
453
|
id: S.optional(S.String),
|
|
@@ -525,17 +473,14 @@ export const GetDeploymentV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
525
473
|
version: S.optional(S.String),
|
|
526
474
|
imageReference: S.optional(S.NullOr(S.String)),
|
|
527
475
|
imagePlatform: S.optional(S.String),
|
|
476
|
+
externalId: S.optional(S.String),
|
|
528
477
|
externalBuildData: S.optional(S.NullOr(S.Unknown)),
|
|
529
478
|
errorData: S.optional(S.NullOr(S.Unknown)),
|
|
530
479
|
worker: S.optional(S.NullOr(GetDeploymentV1ResponseWorker)),
|
|
531
|
-
})).annotate({
|
|
532
|
-
identifier: "GetDeploymentV1Response",
|
|
533
|
-
});
|
|
480
|
+
})).annotate({ identifier: "GetDeploymentV1Response" });
|
|
534
481
|
export const GetErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
535
482
|
errorId: S.String.pipe(T.Label()),
|
|
536
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/errors/{errorId}", code: 200 }))).annotate({
|
|
537
|
-
identifier: "GetErrorV1Request",
|
|
538
|
-
});
|
|
483
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/errors/{errorId}", code: 200 }))).annotate({ identifier: "GetErrorV1Request" });
|
|
539
484
|
export const ErrorObjectAffectedVersionsList = /*@__PURE__*/ S.Array(S.String);
|
|
540
485
|
export const ErrorObjectStatus = S.String;
|
|
541
486
|
export const ErrorObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -579,23 +524,15 @@ export const GetProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
579
524
|
projectRef: S.String.pipe(T.Label()),
|
|
580
525
|
env: GetProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
581
526
|
name: S.String.pipe(T.Label()),
|
|
582
|
-
}).pipe(T.Http({
|
|
583
|
-
method: "GET",
|
|
584
|
-
uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}",
|
|
585
|
-
code: 200,
|
|
586
|
-
}))).annotate({
|
|
527
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}", code: 200 }))).annotate({
|
|
587
528
|
identifier: "GetProjectEnvvarV1Request",
|
|
588
529
|
});
|
|
589
530
|
export const EnvVarValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
590
531
|
value: S.String,
|
|
591
532
|
})).annotate({ identifier: "EnvVarValue" });
|
|
592
|
-
export const GetQuerySchemaV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/query/schema", code: 200 }))).annotate({
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
export const GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList =
|
|
596
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
597
|
-
export const GetQuerySchemaV1ResponseTablesItemColumnsItem =
|
|
598
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
533
|
+
export const GetQuerySchemaV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/query/schema", code: 200 }))).annotate({ identifier: "GetQuerySchemaV1Request" });
|
|
534
|
+
export const GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
535
|
+
export const GetQuerySchemaV1ResponseTablesItemColumnsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
599
536
|
name: S.optional(S.String),
|
|
600
537
|
type: S.optional(S.String),
|
|
601
538
|
description: S.optional(S.String),
|
|
@@ -605,8 +542,7 @@ export const GetQuerySchemaV1ResponseTablesItemColumnsItem =
|
|
|
605
542
|
})).annotate({
|
|
606
543
|
identifier: "GetQuerySchemaV1ResponseTablesItemColumnsItem",
|
|
607
544
|
});
|
|
608
|
-
export const GetQuerySchemaV1ResponseTablesItemColumnsList =
|
|
609
|
-
/*@__PURE__*/ S.Array(GetQuerySchemaV1ResponseTablesItemColumnsItem);
|
|
545
|
+
export const GetQuerySchemaV1ResponseTablesItemColumnsList = /*@__PURE__*/ S.Array(GetQuerySchemaV1ResponseTablesItemColumnsItem);
|
|
610
546
|
export const GetQuerySchemaV1ResponseTablesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
611
547
|
name: S.optional(S.String),
|
|
612
548
|
description: S.optional(S.String),
|
|
@@ -618,30 +554,26 @@ export const GetQuerySchemaV1ResponseTablesItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
618
554
|
export const GetQuerySchemaV1ResponseTablesList = /*@__PURE__*/ S.Array(GetQuerySchemaV1ResponseTablesItem);
|
|
619
555
|
export const GetQuerySchemaV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
620
556
|
tables: S.optional(GetQuerySchemaV1ResponseTablesList),
|
|
621
|
-
})).annotate({
|
|
622
|
-
identifier: "GetQuerySchemaV1Response",
|
|
623
|
-
});
|
|
557
|
+
})).annotate({ identifier: "GetQuerySchemaV1Response" });
|
|
624
558
|
export const GetQueueV1RequestType = S.String;
|
|
625
559
|
export const GetQueueV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
626
560
|
queueParam: S.String.pipe(T.Label()),
|
|
627
561
|
type: S.optional(GetQueueV1RequestType.pipe(T.Query())),
|
|
628
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/queues/{queueParam}", code: 200 }))).annotate({
|
|
629
|
-
identifier: "GetQueueV1Request",
|
|
630
|
-
});
|
|
562
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/queues/{queueParam}", code: 200 }))).annotate({ identifier: "GetQueueV1Request" });
|
|
631
563
|
export const QueueObjectType = S.String;
|
|
564
|
+
export const QueueObjectVersion = S.String;
|
|
632
565
|
export const QueueObjectConcurrency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
633
566
|
current: S.optional(S.NullOr(S.Number)),
|
|
634
567
|
base: S.optional(S.NullOr(S.Number)),
|
|
635
568
|
override: S.optional(S.NullOr(S.Number)),
|
|
636
569
|
overriddenAt: S.optional(S.NullOr(S.String)),
|
|
637
570
|
overriddenBy: S.optional(S.NullOr(S.String)),
|
|
638
|
-
})).annotate({
|
|
639
|
-
identifier: "QueueObjectConcurrency",
|
|
640
|
-
});
|
|
571
|
+
})).annotate({ identifier: "QueueObjectConcurrency" });
|
|
641
572
|
export const QueueObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
642
573
|
id: S.String,
|
|
643
574
|
name: S.String,
|
|
644
575
|
type: QueueObjectType,
|
|
576
|
+
version: QueueObjectVersion,
|
|
645
577
|
running: S.Number,
|
|
646
578
|
queued: S.Number,
|
|
647
579
|
paused: S.Boolean,
|
|
@@ -650,13 +582,10 @@ export const QueueObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
650
582
|
})).annotate({ identifier: "QueueObject" });
|
|
651
583
|
export const GetRunEventsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
652
584
|
runId: S.String.pipe(T.Label()),
|
|
653
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/events", code: 200 }))).annotate({
|
|
654
|
-
identifier: "GetRunEventsV1Request",
|
|
655
|
-
});
|
|
585
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/events", code: 200 }))).annotate({ identifier: "GetRunEventsV1Request" });
|
|
656
586
|
export const GetRunEventsV1ResponseEventsItemLevel = S.String;
|
|
657
587
|
export const GetRunEventsV1ResponseEventsItemKind = S.String;
|
|
658
|
-
export const GetRunEventsV1ResponseEventsItemEventsItem =
|
|
659
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
588
|
+
export const GetRunEventsV1ResponseEventsItemEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
660
589
|
name: S.optional(S.String),
|
|
661
590
|
time: S.optional(S.String),
|
|
662
591
|
properties: S.optional(S.Unknown),
|
|
@@ -665,8 +594,7 @@ export const GetRunEventsV1ResponseEventsItemEventsItem =
|
|
|
665
594
|
});
|
|
666
595
|
export const GetRunEventsV1ResponseEventsItemEventsList = /*@__PURE__*/ S.Array(GetRunEventsV1ResponseEventsItemEventsItem);
|
|
667
596
|
export const GetRunEventsV1ResponseEventsItemStyleAccessoryStyle = S.String;
|
|
668
|
-
export const GetRunEventsV1ResponseEventsItemStyleAccessory =
|
|
669
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
597
|
+
export const GetRunEventsV1ResponseEventsItemStyleAccessory = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
670
598
|
text: S.optional(S.String),
|
|
671
599
|
style: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessoryStyle),
|
|
672
600
|
})).annotate({
|
|
@@ -701,14 +629,10 @@ export const GetRunEventsV1ResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.
|
|
|
701
629
|
export const GetRunEventsV1ResponseEventsList = /*@__PURE__*/ S.Array(GetRunEventsV1ResponseEventsItem);
|
|
702
630
|
export const GetRunEventsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
703
631
|
events: S.optional(GetRunEventsV1ResponseEventsList),
|
|
704
|
-
})).annotate({
|
|
705
|
-
identifier: "GetRunEventsV1Response",
|
|
706
|
-
});
|
|
632
|
+
})).annotate({ identifier: "GetRunEventsV1Response" });
|
|
707
633
|
export const GetRunResultV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
708
634
|
runId: S.String.pipe(T.Label()),
|
|
709
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/result", code: 200 }))).annotate({
|
|
710
|
-
identifier: "GetRunResultV1Request",
|
|
711
|
-
});
|
|
635
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/result", code: 200 }))).annotate({ identifier: "GetRunResultV1Request" });
|
|
712
636
|
export const GetRunResultV1ResponseUsage = GetBatchResultsV1ResponseItemsItemUsage;
|
|
713
637
|
export const GetRunResultV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
714
638
|
ok: S.Boolean,
|
|
@@ -718,14 +642,10 @@ export const GetRunResultV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
718
642
|
error: S.optional(S.Unknown),
|
|
719
643
|
usage: S.optional(GetBatchResultsV1ResponseItemsItemUsage),
|
|
720
644
|
taskIdentifier: S.optional(S.String),
|
|
721
|
-
})).annotate({
|
|
722
|
-
identifier: "GetRunResultV1Response",
|
|
723
|
-
});
|
|
645
|
+
})).annotate({ identifier: "GetRunResultV1Response" });
|
|
724
646
|
export const GetRunTraceV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
725
647
|
runId: S.String.pipe(T.Label()),
|
|
726
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/trace", code: 200 }))).annotate({
|
|
727
|
-
identifier: "GetRunTraceV1Request",
|
|
728
|
-
});
|
|
648
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/trace", code: 200 }))).annotate({ identifier: "GetRunTraceV1Request" });
|
|
729
649
|
export const SpanDetailedSummaryDataLevel = S.String;
|
|
730
650
|
export const SpanDetailedSummaryDataEventsItem = GetRunEventsV1ResponseEventsItemEventsItem;
|
|
731
651
|
export const SpanDetailedSummaryDataEventsList = /*@__PURE__*/ S.Array(GetRunEventsV1ResponseEventsItemEventsItem);
|
|
@@ -741,9 +661,7 @@ export const SpanDetailedSummaryData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
741
661
|
attemptNumber: S.optional(S.NullOr(S.Number)),
|
|
742
662
|
properties: S.optional(S.Unknown),
|
|
743
663
|
events: S.optional(SpanDetailedSummaryDataEventsList),
|
|
744
|
-
})).annotate({
|
|
745
|
-
identifier: "SpanDetailedSummaryData",
|
|
746
|
-
});
|
|
664
|
+
})).annotate({ identifier: "SpanDetailedSummaryData" });
|
|
747
665
|
export const SpanDetailedSummaryChildrenList = /*@__PURE__*/ S.Array(S.suspend(() => SpanDetailedSummary));
|
|
748
666
|
export const SpanDetailedSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
749
667
|
id: S.optional(S.String),
|
|
@@ -751,9 +669,7 @@ export const SpanDetailedSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
751
669
|
runId: S.optional(S.String),
|
|
752
670
|
data: S.optional(SpanDetailedSummaryData),
|
|
753
671
|
children: S.optional(SpanDetailedSummaryChildrenList),
|
|
754
|
-
})).annotate({
|
|
755
|
-
identifier: "SpanDetailedSummary",
|
|
756
|
-
});
|
|
672
|
+
})).annotate({ identifier: "SpanDetailedSummary" });
|
|
757
673
|
export const GetRunTraceV1ResponseTrace = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
758
674
|
traceId: S.optional(S.String),
|
|
759
675
|
rootSpan: S.optional(SpanDetailedSummary),
|
|
@@ -762,14 +678,10 @@ export const GetRunTraceV1ResponseTrace = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
762
678
|
});
|
|
763
679
|
export const GetRunTraceV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
764
680
|
trace: S.optional(GetRunTraceV1ResponseTrace),
|
|
765
|
-
})).annotate({
|
|
766
|
-
identifier: "GetRunTraceV1Response",
|
|
767
|
-
});
|
|
681
|
+
})).annotate({ identifier: "GetRunTraceV1Response" });
|
|
768
682
|
export const GetRunV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
769
683
|
runId: S.String.pipe(T.Label()),
|
|
770
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v3/runs/{runId}", code: 200 }))).annotate({
|
|
771
|
-
identifier: "GetRunV1Request",
|
|
772
|
-
});
|
|
684
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v3/runs/{runId}", code: 200 }))).annotate({ identifier: "GetRunV1Request" });
|
|
773
685
|
export const GetRunV1ResponseStatus = S.String;
|
|
774
686
|
export const GetRunV1ResponseTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
775
687
|
export const GetRunV1ResponseTriggerFunction = S.String;
|
|
@@ -798,9 +710,7 @@ export const CommonRunObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
798
710
|
depth: S.optional(S.Number),
|
|
799
711
|
batchId: S.optional(S.String),
|
|
800
712
|
triggerFunction: S.optional(CommonRunObjectTriggerFunction),
|
|
801
|
-
})).annotate({
|
|
802
|
-
identifier: "CommonRunObject",
|
|
803
|
-
});
|
|
713
|
+
})).annotate({ identifier: "CommonRunObject" });
|
|
804
714
|
export const GetRunV1ResponseRelatedRunsChildrenList = /*@__PURE__*/ S.Array(CommonRunObject);
|
|
805
715
|
export const GetRunV1ResponseRelatedRuns = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
806
716
|
root: S.optional(CommonRunObject),
|
|
@@ -822,17 +732,13 @@ export const GetRunV1ResponseSchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
822
732
|
externalId: S.optional(S.String),
|
|
823
733
|
deduplicationKey: S.optional(S.String),
|
|
824
734
|
generator: GetRunV1ResponseScheduleGenerator,
|
|
825
|
-
})).annotate({
|
|
826
|
-
identifier: "GetRunV1ResponseSchedule",
|
|
827
|
-
});
|
|
735
|
+
})).annotate({ identifier: "GetRunV1ResponseSchedule" });
|
|
828
736
|
export const GetRunV1ResponseAttemptsItemStatus = S.String;
|
|
829
737
|
export const SerializedError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
830
738
|
message: S.String,
|
|
831
739
|
name: S.optional(S.String),
|
|
832
740
|
stackTrace: S.optional(S.String),
|
|
833
|
-
})).annotate({
|
|
834
|
-
identifier: "SerializedError",
|
|
835
|
-
});
|
|
741
|
+
})).annotate({ identifier: "SerializedError" });
|
|
836
742
|
export const GetRunV1ResponseAttemptsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
837
743
|
id: S.String,
|
|
838
744
|
status: GetRunV1ResponseAttemptsItemStatus,
|
|
@@ -874,41 +780,23 @@ export const GetRunV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
874
780
|
relatedRuns: S.optional(GetRunV1ResponseRelatedRuns),
|
|
875
781
|
schedule: S.optional(GetRunV1ResponseSchedule),
|
|
876
782
|
attempts: GetRunV1ResponseAttemptsList,
|
|
877
|
-
})).annotate({
|
|
878
|
-
identifier: "GetRunV1Response",
|
|
879
|
-
});
|
|
783
|
+
})).annotate({ identifier: "GetRunV1Response" });
|
|
880
784
|
export const GetScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
881
785
|
schedule_id: S.String.pipe(T.Label()),
|
|
882
|
-
}).pipe(T.Http({
|
|
883
|
-
method: "GET",
|
|
884
|
-
uri: "/api/v1/schedules/{schedule_id}",
|
|
885
|
-
code: 200,
|
|
886
|
-
}))).annotate({
|
|
887
|
-
identifier: "GetScheduleV1Request",
|
|
888
|
-
});
|
|
786
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules/{schedule_id}", code: 200 }))).annotate({ identifier: "GetScheduleV1Request" });
|
|
889
787
|
export const GetSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
890
788
|
session: S.String.pipe(T.Label()),
|
|
891
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions/{session}", code: 200 }))).annotate({
|
|
892
|
-
identifier: "GetSessionV1Request",
|
|
893
|
-
});
|
|
789
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions/{session}", code: 200 }))).annotate({ identifier: "GetSessionV1Request" });
|
|
894
790
|
export const GetTimezonesV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
895
791
|
excludeUtc: S.optional(S.Boolean.pipe(T.Query())),
|
|
896
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/timezones", code: 200 }))).annotate({
|
|
897
|
-
identifier: "GetTimezonesV1Request",
|
|
898
|
-
});
|
|
792
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/timezones", code: 200 }))).annotate({ identifier: "GetTimezonesV1Request" });
|
|
899
793
|
export const GetTimezonesResultTimezonesList = /*@__PURE__*/ S.Array(S.String);
|
|
900
794
|
export const GetTimezonesResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
901
795
|
timezones: S.optional(GetTimezonesResultTimezonesList),
|
|
902
|
-
})).annotate({
|
|
903
|
-
identifier: "GetTimezonesResult",
|
|
904
|
-
});
|
|
796
|
+
})).annotate({ identifier: "GetTimezonesResult" });
|
|
905
797
|
export const GetWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
906
798
|
waitpointId: S.String.pipe(T.Label()),
|
|
907
|
-
}).pipe(T.Http({
|
|
908
|
-
method: "GET",
|
|
909
|
-
uri: "/api/v1/waitpoints/tokens/{waitpointId}",
|
|
910
|
-
code: 200,
|
|
911
|
-
}))).annotate({
|
|
799
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/waitpoints/tokens/{waitpointId}", code: 200 }))).annotate({
|
|
912
800
|
identifier: "GetWaitpointTokenV1Request",
|
|
913
801
|
});
|
|
914
802
|
export const WaitpointTokenObjectStatus = S.String;
|
|
@@ -926,22 +814,14 @@ export const WaitpointTokenObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
926
814
|
outputIsError: S.optional(S.NullOr(S.Boolean)),
|
|
927
815
|
tags: WaitpointTokenObjectTagsList,
|
|
928
816
|
createdAt: S.String,
|
|
929
|
-
})).annotate({
|
|
930
|
-
identifier: "WaitpointTokenObject",
|
|
931
|
-
});
|
|
817
|
+
})).annotate({ identifier: "WaitpointTokenObject" });
|
|
932
818
|
export const IgnoreErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
933
819
|
errorId: S.String.pipe(T.Label()),
|
|
934
820
|
duration: S.optional(S.Number),
|
|
935
821
|
occurrenceRate: S.optional(S.Number),
|
|
936
822
|
totalOccurrences: S.optional(S.Number),
|
|
937
823
|
reason: S.optional(S.String),
|
|
938
|
-
}).pipe(T.Http({
|
|
939
|
-
method: "POST",
|
|
940
|
-
uri: "/api/v1/errors/{errorId}/ignore",
|
|
941
|
-
code: 200,
|
|
942
|
-
}))).annotate({
|
|
943
|
-
identifier: "IgnoreErrorV1Request",
|
|
944
|
-
});
|
|
824
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/ignore", code: 200 }))).annotate({ identifier: "IgnoreErrorV1Request" });
|
|
945
825
|
export const ListBulkActionsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
946
826
|
size: S.optional(S.Number),
|
|
947
827
|
after: S.optional(S.String),
|
|
@@ -951,9 +831,7 @@ export const ListBulkActionsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
951
831
|
});
|
|
952
832
|
export const ListBulkActionsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
953
833
|
page: S.optional(ListBulkActionsV1RequestPage.pipe(T.Query())),
|
|
954
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions", code: 200 }))).annotate({
|
|
955
|
-
identifier: "ListBulkActionsV1Request",
|
|
956
|
-
});
|
|
834
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions", code: 200 }))).annotate({ identifier: "ListBulkActionsV1Request" });
|
|
957
835
|
export const ListBulkActionsResultDataList = /*@__PURE__*/ S.Array(BulkActionObject);
|
|
958
836
|
export const ListBulkActionsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
959
837
|
next: S.optional(S.String),
|
|
@@ -964,15 +842,30 @@ export const ListBulkActionsResultPagination = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
964
842
|
export const ListBulkActionsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
965
843
|
data: ListBulkActionsResultDataList,
|
|
966
844
|
pagination: ListBulkActionsResultPagination,
|
|
845
|
+
})).annotate({ identifier: "ListBulkActionsResult" });
|
|
846
|
+
export const ListConcurrencyLimitsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
847
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
848
|
+
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
849
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/concurrency-limits", code: 200 }))).annotate({
|
|
850
|
+
identifier: "ListConcurrencyLimitsV1Request",
|
|
851
|
+
});
|
|
852
|
+
export const ListConcurrencyLimitsV1ResponseDataList = /*@__PURE__*/ S.Array(ConcurrencyLimitObject);
|
|
853
|
+
export const ListConcurrencyLimitsV1ResponsePagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
854
|
+
currentPage: S.optional(S.Number),
|
|
855
|
+
totalPages: S.optional(S.Number),
|
|
856
|
+
count: S.optional(S.Number),
|
|
967
857
|
})).annotate({
|
|
968
|
-
identifier: "
|
|
858
|
+
identifier: "ListConcurrencyLimitsV1ResponsePagination",
|
|
969
859
|
});
|
|
970
|
-
export const
|
|
971
|
-
|
|
860
|
+
export const ListConcurrencyLimitsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
861
|
+
data: S.optional(ListConcurrencyLimitsV1ResponseDataList),
|
|
862
|
+
pagination: S.optional(ListConcurrencyLimitsV1ResponsePagination),
|
|
863
|
+
})).annotate({
|
|
864
|
+
identifier: "ListConcurrencyLimitsV1Response",
|
|
972
865
|
});
|
|
866
|
+
export const ListDashboardsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/query/dashboards", code: 200 }))).annotate({ identifier: "ListDashboardsV1Request" });
|
|
973
867
|
export const ListDashboardsV1ResponseDashboardsItemWidgetsItemType = S.String;
|
|
974
|
-
export const ListDashboardsV1ResponseDashboardsItemWidgetsItem =
|
|
975
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
868
|
+
export const ListDashboardsV1ResponseDashboardsItemWidgetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
976
869
|
id: S.optional(S.String),
|
|
977
870
|
title: S.optional(S.String),
|
|
978
871
|
query: S.optional(S.String),
|
|
@@ -980,8 +873,7 @@ export const ListDashboardsV1ResponseDashboardsItemWidgetsItem =
|
|
|
980
873
|
})).annotate({
|
|
981
874
|
identifier: "ListDashboardsV1ResponseDashboardsItemWidgetsItem",
|
|
982
875
|
});
|
|
983
|
-
export const ListDashboardsV1ResponseDashboardsItemWidgetsList =
|
|
984
|
-
/*@__PURE__*/ S.Array(ListDashboardsV1ResponseDashboardsItemWidgetsItem);
|
|
876
|
+
export const ListDashboardsV1ResponseDashboardsItemWidgetsList = /*@__PURE__*/ S.Array(ListDashboardsV1ResponseDashboardsItemWidgetsItem);
|
|
985
877
|
export const ListDashboardsV1ResponseDashboardsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
986
878
|
key: S.optional(S.String),
|
|
987
879
|
title: S.optional(S.String),
|
|
@@ -992,9 +884,7 @@ export const ListDashboardsV1ResponseDashboardsItem = /*@__PURE__*/ S.suspend(()
|
|
|
992
884
|
export const ListDashboardsV1ResponseDashboardsList = /*@__PURE__*/ S.Array(ListDashboardsV1ResponseDashboardsItem);
|
|
993
885
|
export const ListDashboardsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
994
886
|
dashboards: S.optional(ListDashboardsV1ResponseDashboardsList),
|
|
995
|
-
})).annotate({
|
|
996
|
-
identifier: "ListDashboardsV1Response",
|
|
997
|
-
});
|
|
887
|
+
})).annotate({ identifier: "ListDashboardsV1Response" });
|
|
998
888
|
export const ListDeploymentsV1RequestStatus = S.String;
|
|
999
889
|
export const ListDeploymentsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1000
890
|
page_after_: S.optional(S.String.pipe(T.Query("page[after]"))),
|
|
@@ -1003,9 +893,7 @@ export const ListDeploymentsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1003
893
|
period: S.optional(S.String.pipe(T.Query())),
|
|
1004
894
|
from: S.optional(S.String.pipe(T.Query())),
|
|
1005
895
|
to: S.optional(S.String.pipe(T.Query())),
|
|
1006
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments", code: 200 }))).annotate({
|
|
1007
|
-
identifier: "ListDeploymentsV1Request",
|
|
1008
|
-
});
|
|
896
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments", code: 200 }))).annotate({ identifier: "ListDeploymentsV1Request" });
|
|
1009
897
|
export const ListDeploymentsV1ResponseDataItemStatus = S.String;
|
|
1010
898
|
export const ListDeploymentsV1ResponseDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1011
899
|
id: S.optional(S.String),
|
|
@@ -1018,6 +906,7 @@ export const ListDeploymentsV1ResponseDataItem = /*@__PURE__*/ S.suspend(() => S
|
|
|
1018
906
|
deployedAt: S.optional(S.NullOr(S.String)),
|
|
1019
907
|
git: S.optional(S.NullOr(S.Unknown)),
|
|
1020
908
|
error: S.optional(S.NullOr(S.Unknown)),
|
|
909
|
+
externalId: S.optional(S.String),
|
|
1021
910
|
})).annotate({
|
|
1022
911
|
identifier: "ListDeploymentsV1ResponseDataItem",
|
|
1023
912
|
});
|
|
@@ -1037,9 +926,7 @@ export const ListErrorsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1037
926
|
size: S.optional(S.Number),
|
|
1038
927
|
after: S.optional(S.String),
|
|
1039
928
|
before: S.optional(S.String),
|
|
1040
|
-
})).annotate({
|
|
1041
|
-
identifier: "ListErrorsV1RequestPage",
|
|
1042
|
-
});
|
|
929
|
+
})).annotate({ identifier: "ListErrorsV1RequestPage" });
|
|
1043
930
|
export const ErrorsFilterTaskIdentifierList = /*@__PURE__*/ S.Array(S.String);
|
|
1044
931
|
export const ErrorsFilterVersionList = /*@__PURE__*/ S.Array(S.String);
|
|
1045
932
|
export const ErrorsFilterStatusItem = S.String;
|
|
@@ -1056,9 +943,7 @@ export const ErrorsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1056
943
|
export const ListErrorsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1057
944
|
page: S.optional(ListErrorsV1RequestPage.pipe(T.Query())),
|
|
1058
945
|
filter: S.optional(ErrorsFilter.pipe(T.Query())),
|
|
1059
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/errors", code: 200 }))).annotate({
|
|
1060
|
-
identifier: "ListErrorsV1Request",
|
|
1061
|
-
});
|
|
946
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/errors", code: 200 }))).annotate({ identifier: "ListErrorsV1Request" });
|
|
1062
947
|
export const ErrorListItemStatus = S.String;
|
|
1063
948
|
export const ErrorListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1064
949
|
id: S.String,
|
|
@@ -1083,18 +968,12 @@ export const ListErrorsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
1083
968
|
export const ListErrorsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1084
969
|
data: S.optional(ListErrorsResultDataList),
|
|
1085
970
|
pagination: S.optional(ListErrorsResultPagination),
|
|
1086
|
-
})).annotate({
|
|
1087
|
-
identifier: "ListErrorsResult",
|
|
1088
|
-
});
|
|
971
|
+
})).annotate({ identifier: "ListErrorsResult" });
|
|
1089
972
|
export const ListProjectEnvvarsV1RequestEnv = S.String;
|
|
1090
973
|
export const ListProjectEnvvarsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1091
974
|
projectRef: S.String.pipe(T.Label()),
|
|
1092
975
|
env: ListProjectEnvvarsV1RequestEnv.pipe(T.Label()),
|
|
1093
|
-
}).pipe(T.Http({
|
|
1094
|
-
method: "GET",
|
|
1095
|
-
uri: "/api/v1/projects/{projectRef}/envvars/{env}",
|
|
1096
|
-
code: 200,
|
|
1097
|
-
}))).annotate({
|
|
976
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/envvars/{env}", code: 200 }))).annotate({
|
|
1098
977
|
identifier: "ListProjectEnvvarsV1Request",
|
|
1099
978
|
});
|
|
1100
979
|
export const EnvVar = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1121,8 +1000,7 @@ export const ListProjectRunsV1RequestFilterCreatedAt = /*@__PURE__*/ S.suspend((
|
|
|
1121
1000
|
});
|
|
1122
1001
|
export const ListProjectRunsV1RequestFilterStatusItem = S.String;
|
|
1123
1002
|
export const ListProjectRunsV1RequestFilterStatusList = /*@__PURE__*/ S.Array(ListProjectRunsV1RequestFilterStatusItem);
|
|
1124
|
-
export const ListProjectRunsV1RequestFilterTaskIdentifierList =
|
|
1125
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1003
|
+
export const ListProjectRunsV1RequestFilterTaskIdentifierList = /*@__PURE__*/ S.Array(S.String);
|
|
1126
1004
|
export const ListProjectRunsV1RequestFilterVersionList = /*@__PURE__*/ S.Array(S.String);
|
|
1127
1005
|
export const ListProjectRunsV1RequestFilterTagList = /*@__PURE__*/ S.Array(S.String);
|
|
1128
1006
|
export const ListProjectRunsV1RequestFilterEnvItem = S.String;
|
|
@@ -1145,13 +1023,7 @@ export const ListProjectRunsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1145
1023
|
projectRef: S.String.pipe(T.Label()),
|
|
1146
1024
|
page: S.optional(ListProjectRunsV1RequestPage.pipe(T.Query())),
|
|
1147
1025
|
filter: S.optional(ListProjectRunsV1RequestFilter.pipe(T.Query())),
|
|
1148
|
-
}).pipe(T.Http({
|
|
1149
|
-
method: "GET",
|
|
1150
|
-
uri: "/api/v1/projects/{projectRef}/runs",
|
|
1151
|
-
code: 200,
|
|
1152
|
-
}))).annotate({
|
|
1153
|
-
identifier: "ListProjectRunsV1Request",
|
|
1154
|
-
});
|
|
1026
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/runs", code: 200 }))).annotate({ identifier: "ListProjectRunsV1Request" });
|
|
1155
1027
|
export const ListRunItemStatus = S.String;
|
|
1156
1028
|
export const ListRunItemEnv = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1157
1029
|
id: S.String,
|
|
@@ -1183,9 +1055,7 @@ export const ListRunsResultDataList = /*@__PURE__*/ S.Array(ListRunItem);
|
|
|
1183
1055
|
export const ListRunsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1184
1056
|
next: S.optional(S.String),
|
|
1185
1057
|
previous: S.optional(S.String),
|
|
1186
|
-
})).annotate({
|
|
1187
|
-
identifier: "ListRunsResultPagination",
|
|
1188
|
-
});
|
|
1058
|
+
})).annotate({ identifier: "ListRunsResultPagination" });
|
|
1189
1059
|
export const ListRunsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1190
1060
|
data: S.optional(ListRunsResultDataList),
|
|
1191
1061
|
pagination: S.optional(ListRunsResultPagination),
|
|
@@ -1193,9 +1063,7 @@ export const ListRunsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1193
1063
|
export const ListQueuesV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1194
1064
|
page: S.optional(S.Number.pipe(T.Query())),
|
|
1195
1065
|
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1196
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/queues", code: 200 }))).annotate({
|
|
1197
|
-
identifier: "ListQueuesV1Request",
|
|
1198
|
-
});
|
|
1066
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/queues", code: 200 }))).annotate({ identifier: "ListQueuesV1Request" });
|
|
1199
1067
|
export const ListQueuesResultDataList = /*@__PURE__*/ S.Array(QueueObject);
|
|
1200
1068
|
export const ListQueuesResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1201
1069
|
currentPage: S.optional(S.Number),
|
|
@@ -1207,9 +1075,7 @@ export const ListQueuesResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
1207
1075
|
export const ListQueuesResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1208
1076
|
data: ListQueuesResultDataList,
|
|
1209
1077
|
pagination: ListQueuesResultPagination,
|
|
1210
|
-
})).annotate({
|
|
1211
|
-
identifier: "ListQueuesResult",
|
|
1212
|
-
});
|
|
1078
|
+
})).annotate({ identifier: "ListQueuesResult" });
|
|
1213
1079
|
export const ListRunsV1RequestPage = ListProjectRunsV1RequestPage;
|
|
1214
1080
|
export const CommonRunsFilterCreatedAt = ListProjectRunsV1RequestFilterCreatedAt;
|
|
1215
1081
|
export const CommonRunsFilterStatusItem = S.String;
|
|
@@ -1227,35 +1093,21 @@ export const CommonRunsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1227
1093
|
isTest: S.optional(S.Boolean),
|
|
1228
1094
|
tag: S.optional(CommonRunsFilterTagList),
|
|
1229
1095
|
error: S.optional(S.String),
|
|
1230
|
-
})).annotate({
|
|
1231
|
-
identifier: "CommonRunsFilter",
|
|
1232
|
-
});
|
|
1096
|
+
})).annotate({ identifier: "CommonRunsFilter" });
|
|
1233
1097
|
export const ListRunsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1234
1098
|
page: S.optional(ListProjectRunsV1RequestPage.pipe(T.Query())),
|
|
1235
1099
|
filter: S.optional(CommonRunsFilter.pipe(T.Query())),
|
|
1236
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs", code: 200 }))).annotate({
|
|
1237
|
-
identifier: "ListRunsV1Request",
|
|
1238
|
-
});
|
|
1100
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs", code: 200 }))).annotate({ identifier: "ListRunsV1Request" });
|
|
1239
1101
|
export const ListSchedulesV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1240
1102
|
page: S.optional(S.Number.pipe(T.Query())),
|
|
1241
1103
|
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1242
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules", code: 200 }))).annotate({
|
|
1243
|
-
identifier: "ListSchedulesV1Request",
|
|
1244
|
-
});
|
|
1104
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules", code: 200 }))).annotate({ identifier: "ListSchedulesV1Request" });
|
|
1245
1105
|
export const ListSchedulesResultDataList = /*@__PURE__*/ S.Array(ScheduleObject);
|
|
1246
|
-
export const ListSchedulesResultPagination =
|
|
1247
|
-
currentPage: S.optional(S.Number),
|
|
1248
|
-
totalPages: S.optional(S.Number),
|
|
1249
|
-
count: S.optional(S.Number),
|
|
1250
|
-
})).annotate({
|
|
1251
|
-
identifier: "ListSchedulesResultPagination",
|
|
1252
|
-
});
|
|
1106
|
+
export const ListSchedulesResultPagination = ListConcurrencyLimitsV1ResponsePagination;
|
|
1253
1107
|
export const ListSchedulesResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1254
1108
|
data: S.optional(ListSchedulesResultDataList),
|
|
1255
|
-
pagination: S.optional(
|
|
1256
|
-
})).annotate({
|
|
1257
|
-
identifier: "ListSchedulesResult",
|
|
1258
|
-
});
|
|
1109
|
+
pagination: S.optional(ListConcurrencyLimitsV1ResponsePagination),
|
|
1110
|
+
})).annotate({ identifier: "ListSchedulesResult" });
|
|
1259
1111
|
export const ListSessionsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1260
1112
|
size: S.optional(S.Number),
|
|
1261
1113
|
after: S.optional(S.String),
|
|
@@ -1272,9 +1124,7 @@ export const SessionsFilterCreatedAt = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1272
1124
|
from: S.optional(S.String),
|
|
1273
1125
|
to: S.optional(S.String),
|
|
1274
1126
|
period: S.optional(S.String),
|
|
1275
|
-
})).annotate({
|
|
1276
|
-
identifier: "SessionsFilterCreatedAt",
|
|
1277
|
-
});
|
|
1127
|
+
})).annotate({ identifier: "SessionsFilterCreatedAt" });
|
|
1278
1128
|
export const SessionsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1279
1129
|
type: S.optional(SessionsFilterTypeList),
|
|
1280
1130
|
tags: S.optional(SessionsFilterTagsList),
|
|
@@ -1286,9 +1136,7 @@ export const SessionsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1286
1136
|
export const ListSessionsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1287
1137
|
page: S.optional(ListSessionsV1RequestPage.pipe(T.Query())),
|
|
1288
1138
|
filter: S.optional(SessionsFilter.pipe(T.Query())),
|
|
1289
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions", code: 200 }))).annotate({
|
|
1290
|
-
identifier: "ListSessionsV1Request",
|
|
1291
|
-
});
|
|
1139
|
+
}).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions", code: 200 }))).annotate({ identifier: "ListSessionsV1Request" });
|
|
1292
1140
|
export const ListSessionsResultDataList = /*@__PURE__*/ S.Array(SessionObject);
|
|
1293
1141
|
export const ListSessionsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1294
1142
|
next: S.optional(S.String),
|
|
@@ -1299,9 +1147,7 @@ export const ListSessionsResultPagination = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
1299
1147
|
export const ListSessionsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1300
1148
|
data: S.optional(ListSessionsResultDataList),
|
|
1301
1149
|
pagination: S.optional(ListSessionsResultPagination),
|
|
1302
|
-
})).annotate({
|
|
1303
|
-
identifier: "ListSessionsResult",
|
|
1304
|
-
});
|
|
1150
|
+
})).annotate({ identifier: "ListSessionsResult" });
|
|
1305
1151
|
export const ListWaitpointTokensV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1306
1152
|
page_size_: S.optional(S.Number.pipe(T.Query("page[size]"))),
|
|
1307
1153
|
page_after_: S.optional(S.String.pipe(T.Query("page[after]"))),
|
|
@@ -1328,38 +1174,38 @@ export const ListWaitpointTokensResult = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
1328
1174
|
})).annotate({
|
|
1329
1175
|
identifier: "ListWaitpointTokensResult",
|
|
1330
1176
|
});
|
|
1177
|
+
export const OverrideConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1178
|
+
name: S.String.pipe(T.Label()),
|
|
1179
|
+
perKey: S.optional(S.Number),
|
|
1180
|
+
total: S.optional(S.Number),
|
|
1181
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/concurrency-limits/{name}/override", code: 200 }))).annotate({
|
|
1182
|
+
identifier: "OverrideConcurrencyLimitV1Request",
|
|
1183
|
+
});
|
|
1331
1184
|
export const OverrideQueueConcurrencyV1RequestType = S.String;
|
|
1332
1185
|
export const OverrideQueueConcurrencyV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1333
1186
|
queueParam: S.String.pipe(T.Label()),
|
|
1334
1187
|
type: S.optional(OverrideQueueConcurrencyV1RequestType),
|
|
1335
1188
|
concurrencyLimit: S.Number,
|
|
1336
|
-
}).pipe(T.Http({
|
|
1337
|
-
method: "POST",
|
|
1338
|
-
uri: "/api/v1/queues/{queueParam}/concurrency/override",
|
|
1339
|
-
code: 200,
|
|
1340
|
-
}))).annotate({
|
|
1189
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/concurrency/override", code: 200 }))).annotate({
|
|
1341
1190
|
identifier: "OverrideQueueConcurrencyV1Request",
|
|
1342
1191
|
});
|
|
1192
|
+
export const PauseConcurrencyLimitV1RequestAction = S.String;
|
|
1193
|
+
export const PauseConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1194
|
+
name: S.String.pipe(T.Label()),
|
|
1195
|
+
action: PauseConcurrencyLimitV1RequestAction,
|
|
1196
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/concurrency-limits/{name}/pause", code: 200 }))).annotate({
|
|
1197
|
+
identifier: "PauseConcurrencyLimitV1Request",
|
|
1198
|
+
});
|
|
1343
1199
|
export const PauseQueueV1RequestType = S.String;
|
|
1344
1200
|
export const PauseQueueV1RequestAction = S.String;
|
|
1345
1201
|
export const PauseQueueV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1346
1202
|
queueParam: S.String.pipe(T.Label()),
|
|
1347
1203
|
type: S.optional(PauseQueueV1RequestType),
|
|
1348
1204
|
action: PauseQueueV1RequestAction,
|
|
1349
|
-
}).pipe(T.Http({
|
|
1350
|
-
method: "POST",
|
|
1351
|
-
uri: "/api/v1/queues/{queueParam}/pause",
|
|
1352
|
-
code: 200,
|
|
1353
|
-
}))).annotate({
|
|
1354
|
-
identifier: "PauseQueueV1Request",
|
|
1355
|
-
});
|
|
1205
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/pause", code: 200 }))).annotate({ identifier: "PauseQueueV1Request" });
|
|
1356
1206
|
export const PromoteDeploymentV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1357
1207
|
version: S.String.pipe(T.Label()),
|
|
1358
|
-
}).pipe(T.Http({
|
|
1359
|
-
method: "POST",
|
|
1360
|
-
uri: "/api/v1/deployments/{version}/promote",
|
|
1361
|
-
code: 200,
|
|
1362
|
-
}))).annotate({
|
|
1208
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/deployments/{version}/promote", code: 200 }))).annotate({
|
|
1363
1209
|
identifier: "PromoteDeploymentV1Request",
|
|
1364
1210
|
});
|
|
1365
1211
|
export const PromoteDeploymentV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1369,52 +1215,36 @@ export const PromoteDeploymentV1Response = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
1369
1215
|
})).annotate({
|
|
1370
1216
|
identifier: "PromoteDeploymentV1Response",
|
|
1371
1217
|
});
|
|
1218
|
+
export const ResetConcurrencyLimitV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1219
|
+
name: S.String.pipe(T.Label()),
|
|
1220
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/concurrency-limits/{name}/reset", code: 200 }))).annotate({
|
|
1221
|
+
identifier: "ResetConcurrencyLimitV1Request",
|
|
1222
|
+
});
|
|
1372
1223
|
export const ResetQueueConcurrencyV1RequestType = S.String;
|
|
1373
1224
|
export const ResetQueueConcurrencyV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1374
1225
|
queueParam: S.String.pipe(T.Label()),
|
|
1375
1226
|
type: S.optional(ResetQueueConcurrencyV1RequestType),
|
|
1376
|
-
}).pipe(T.Http({
|
|
1377
|
-
method: "POST",
|
|
1378
|
-
uri: "/api/v1/queues/{queueParam}/concurrency/reset",
|
|
1379
|
-
code: 200,
|
|
1380
|
-
}))).annotate({
|
|
1227
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/concurrency/reset", code: 200 }))).annotate({
|
|
1381
1228
|
identifier: "ResetQueueConcurrencyV1Request",
|
|
1382
1229
|
});
|
|
1383
1230
|
export const ResolveErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1384
1231
|
errorId: S.String.pipe(T.Label()),
|
|
1385
1232
|
resolvedInVersion: S.optional(S.String),
|
|
1386
|
-
}).pipe(T.Http({
|
|
1387
|
-
method: "POST",
|
|
1388
|
-
uri: "/api/v1/errors/{errorId}/resolve",
|
|
1389
|
-
code: 200,
|
|
1390
|
-
}))).annotate({
|
|
1391
|
-
identifier: "ResolveErrorV1Request",
|
|
1392
|
-
});
|
|
1233
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/resolve", code: 200 }))).annotate({ identifier: "ResolveErrorV1Request" });
|
|
1393
1234
|
export const RunReplayV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1394
1235
|
runId: S.String.pipe(T.Label()),
|
|
1395
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/replay", code: 200 }))).annotate({
|
|
1396
|
-
identifier: "RunReplayV1Request",
|
|
1397
|
-
});
|
|
1236
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/replay", code: 200 }))).annotate({ identifier: "RunReplayV1Request" });
|
|
1398
1237
|
export const RunReplayV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1399
1238
|
id: S.optional(S.String),
|
|
1400
|
-
})).annotate({
|
|
1401
|
-
identifier: "RunReplayV1Response",
|
|
1402
|
-
});
|
|
1239
|
+
})).annotate({ identifier: "RunReplayV1Response" });
|
|
1403
1240
|
export const RunRescheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1404
1241
|
runId: S.String.pipe(T.Label()),
|
|
1405
1242
|
delay: S.optional(S.String),
|
|
1406
|
-
}).pipe(T.Http({
|
|
1407
|
-
method: "POST",
|
|
1408
|
-
uri: "/api/v1/runs/{runId}/reschedule",
|
|
1409
|
-
code: 200,
|
|
1410
|
-
}))).annotate({
|
|
1411
|
-
identifier: "RunRescheduleV1Request",
|
|
1412
|
-
});
|
|
1243
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/reschedule", code: 200 }))).annotate({ identifier: "RunRescheduleV1Request" });
|
|
1413
1244
|
export const RunRescheduleV1ResponseStatus = S.String;
|
|
1414
1245
|
export const RunRescheduleV1ResponseTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1415
1246
|
export const RunRescheduleV1ResponseTriggerFunction = S.String;
|
|
1416
|
-
export const RunRescheduleV1ResponseRelatedRunsChildrenList =
|
|
1417
|
-
/*@__PURE__*/ S.Array(CommonRunObject);
|
|
1247
|
+
export const RunRescheduleV1ResponseRelatedRunsChildrenList = /*@__PURE__*/ S.Array(CommonRunObject);
|
|
1418
1248
|
export const RunRescheduleV1ResponseRelatedRuns = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1419
1249
|
root: S.optional(CommonRunObject),
|
|
1420
1250
|
parent: S.optional(CommonRunObject),
|
|
@@ -1480,9 +1310,7 @@ export const RunRescheduleV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1480
1310
|
relatedRuns: S.optional(RunRescheduleV1ResponseRelatedRuns),
|
|
1481
1311
|
schedule: S.optional(RunRescheduleV1ResponseSchedule),
|
|
1482
1312
|
attempts: RunRescheduleV1ResponseAttemptsList,
|
|
1483
|
-
})).annotate({
|
|
1484
|
-
identifier: "RunRescheduleV1Response",
|
|
1485
|
-
});
|
|
1313
|
+
})).annotate({ identifier: "RunRescheduleV1Response" });
|
|
1486
1314
|
export const QueueOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1487
1315
|
name: S.optional(S.String),
|
|
1488
1316
|
concurrencyLimit: S.optional(S.Number),
|
|
@@ -1503,27 +1331,19 @@ export const TriggerTaskRequestBody = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1503
1331
|
payload: S.optional(S.Unknown),
|
|
1504
1332
|
context: S.optional(S.Unknown),
|
|
1505
1333
|
options: S.optional(TriggerTaskRequestBodyOptions),
|
|
1506
|
-
})).annotate({
|
|
1507
|
-
identifier: "TriggerTaskRequestBody",
|
|
1508
|
-
});
|
|
1334
|
+
})).annotate({ identifier: "TriggerTaskRequestBody" });
|
|
1509
1335
|
export const TriggerBatchTaskByIdV1RequestItemsList = /*@__PURE__*/ S.Array(TriggerTaskRequestBody);
|
|
1510
1336
|
export const TriggerBatchTaskByIdV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1511
1337
|
taskIdentifier: S.String.pipe(T.Label()),
|
|
1512
1338
|
items: TriggerBatchTaskByIdV1RequestItemsList,
|
|
1513
|
-
}).pipe(T.Http({
|
|
1514
|
-
method: "POST",
|
|
1515
|
-
uri: "/api/v1/tasks/{taskIdentifier}/batch",
|
|
1516
|
-
code: 200,
|
|
1517
|
-
}))).annotate({
|
|
1339
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/{taskIdentifier}/batch", code: 200 }))).annotate({
|
|
1518
1340
|
identifier: "TriggerBatchTaskByIdV1Request",
|
|
1519
1341
|
});
|
|
1520
1342
|
export const BatchTriggerTaskResponseRunsList = /*@__PURE__*/ S.Array(S.String);
|
|
1521
1343
|
export const BatchTriggerTaskResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1522
1344
|
batchId: S.String,
|
|
1523
1345
|
runs: BatchTriggerTaskResponseRunsList,
|
|
1524
|
-
})).annotate({
|
|
1525
|
-
identifier: "BatchTriggerTaskResponse",
|
|
1526
|
-
});
|
|
1346
|
+
})).annotate({ identifier: "BatchTriggerTaskResponse" });
|
|
1527
1347
|
export const BatchTriggerTaskRequestBodyItemOptionsMachine = S.String;
|
|
1528
1348
|
export const BatchTriggerTaskRequestBodyItemOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1529
1349
|
queue: S.optional(QueueOptions),
|
|
@@ -1567,38 +1387,20 @@ export const TriggerTaskV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1567
1387
|
payload: S.optional(S.Unknown),
|
|
1568
1388
|
context: S.optional(S.Unknown),
|
|
1569
1389
|
options: S.optional(TriggerTaskV1RequestOptions),
|
|
1570
|
-
}).pipe(T.Http({
|
|
1571
|
-
method: "POST",
|
|
1572
|
-
uri: "/api/v1/tasks/{taskIdentifier}/trigger",
|
|
1573
|
-
code: 200,
|
|
1574
|
-
}))).annotate({
|
|
1575
|
-
identifier: "TriggerTaskV1Request",
|
|
1576
|
-
});
|
|
1390
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/{taskIdentifier}/trigger", code: 200 }))).annotate({ identifier: "TriggerTaskV1Request" });
|
|
1577
1391
|
export const TriggerTaskResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1578
1392
|
id: S.optional(S.String),
|
|
1579
|
-
})).annotate({
|
|
1580
|
-
identifier: "TriggerTaskResponse",
|
|
1581
|
-
});
|
|
1393
|
+
})).annotate({ identifier: "TriggerTaskResponse" });
|
|
1582
1394
|
export const UnresolveErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1583
1395
|
errorId: S.String.pipe(T.Label()),
|
|
1584
|
-
}).pipe(T.Http({
|
|
1585
|
-
method: "POST",
|
|
1586
|
-
uri: "/api/v1/errors/{errorId}/unresolve",
|
|
1587
|
-
code: 200,
|
|
1588
|
-
}))).annotate({
|
|
1589
|
-
identifier: "UnresolveErrorV1Request",
|
|
1590
|
-
});
|
|
1396
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/unresolve", code: 200 }))).annotate({ identifier: "UnresolveErrorV1Request" });
|
|
1591
1397
|
export const UpdateProjectEnvvarV1RequestEnv = S.String;
|
|
1592
1398
|
export const UpdateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1593
1399
|
projectRef: S.String.pipe(T.Label()),
|
|
1594
1400
|
env: UpdateProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
1595
1401
|
name: S.String.pipe(T.Label()),
|
|
1596
1402
|
value: S.String,
|
|
1597
|
-
}).pipe(T.Http({
|
|
1598
|
-
method: "PUT",
|
|
1599
|
-
uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}",
|
|
1600
|
-
code: 200,
|
|
1601
|
-
}))).annotate({
|
|
1403
|
+
}).pipe(T.Http({ method: "PUT", uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}", code: 200 }))).annotate({
|
|
1602
1404
|
identifier: "UpdateProjectEnvvarV1Request",
|
|
1603
1405
|
});
|
|
1604
1406
|
export const UpdateRunMetadataV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1618,13 +1420,7 @@ export const UpdateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1618
1420
|
cron: S.String,
|
|
1619
1421
|
externalId: S.optional(S.String),
|
|
1620
1422
|
timezone: S.optional(S.String),
|
|
1621
|
-
}).pipe(T.Http({
|
|
1622
|
-
method: "PUT",
|
|
1623
|
-
uri: "/api/v1/schedules/{schedule_id}",
|
|
1624
|
-
code: 200,
|
|
1625
|
-
}))).annotate({
|
|
1626
|
-
identifier: "UpdateScheduleV1Request",
|
|
1627
|
-
});
|
|
1423
|
+
}).pipe(T.Http({ method: "PUT", uri: "/api/v1/schedules/{schedule_id}", code: 200 }))).annotate({ identifier: "UpdateScheduleV1Request" });
|
|
1628
1424
|
export const UpdateSessionV1RequestTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1629
1425
|
export const UpdateSessionV1RequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1630
1426
|
export const UpdateSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1632,9 +1428,7 @@ export const UpdateSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1632
1428
|
tags: S.optional(UpdateSessionV1RequestTagsList),
|
|
1633
1429
|
metadata: S.optional(S.NullOr(UpdateSessionV1RequestMetadataMap)),
|
|
1634
1430
|
externalId: S.optional(S.NullOr(S.String)),
|
|
1635
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/api/v1/sessions/{session}", code: 200 }))).annotate({
|
|
1636
|
-
identifier: "UpdateSessionV1Request",
|
|
1637
|
-
});
|
|
1431
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/api/v1/sessions/{session}", code: 200 }))).annotate({ identifier: "UpdateSessionV1Request" });
|
|
1638
1432
|
export const UploadProjectEnvvarsV1RequestEnv = S.String;
|
|
1639
1433
|
export const UploadProjectEnvvarsV1RequestVariablesList = /*@__PURE__*/ S.Array(EnvVar);
|
|
1640
1434
|
export const UploadProjectEnvvarsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1801,6 +1595,14 @@ export const getBulkActionV1 = /*@__PURE__*/ API.make(() => ({
|
|
|
1801
1595
|
protocol: TriggerDevProtocol,
|
|
1802
1596
|
retry: Retry.Retry,
|
|
1803
1597
|
}));
|
|
1598
|
+
/** Retrieve concurrency limit Retrieve a concurrency limit by name, with its bounds and live running and queued counts. */
|
|
1599
|
+
export const getConcurrencyLimitV1 = /*@__PURE__*/ API.make(() => ({
|
|
1600
|
+
input: GetConcurrencyLimitV1Request,
|
|
1601
|
+
output: ConcurrencyLimitObject,
|
|
1602
|
+
errors: [NotFound, UnknownTriggerDevError],
|
|
1603
|
+
protocol: TriggerDevProtocol,
|
|
1604
|
+
retry: Retry.Retry,
|
|
1605
|
+
}));
|
|
1804
1606
|
/** Get deployment Retrieve information about a specific deployment by its ID. */
|
|
1805
1607
|
export const getDeploymentV1 = /*@__PURE__*/ API.make(() => ({
|
|
1806
1608
|
input: GetDeploymentV1Request,
|
|
@@ -1929,6 +1731,14 @@ export const listBulkActionsV1 = /*@__PURE__*/ API.make(() => ({
|
|
|
1929
1731
|
protocol: TriggerDevProtocol,
|
|
1930
1732
|
retry: Retry.Retry,
|
|
1931
1733
|
}));
|
|
1734
|
+
/** 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. */
|
|
1735
|
+
export const listConcurrencyLimitsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1736
|
+
input: ListConcurrencyLimitsV1Request,
|
|
1737
|
+
output: ListConcurrencyLimitsV1Response,
|
|
1738
|
+
errors: [UnknownTriggerDevError],
|
|
1739
|
+
protocol: TriggerDevProtocol,
|
|
1740
|
+
retry: Retry.Retry,
|
|
1741
|
+
}));
|
|
1932
1742
|
/** 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. */
|
|
1933
1743
|
export const listDashboardsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1934
1744
|
input: ListDashboardsV1Request,
|
|
@@ -2009,6 +1819,14 @@ export const listWaitpointTokensV1 = /*@__PURE__*/ API.make(() => ({
|
|
|
2009
1819
|
protocol: TriggerDevProtocol,
|
|
2010
1820
|
retry: Retry.Retry,
|
|
2011
1821
|
}));
|
|
1822
|
+
/** 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. */
|
|
1823
|
+
export const overrideConcurrencyLimitV1 = /*@__PURE__*/ API.make(() => ({
|
|
1824
|
+
input: OverrideConcurrencyLimitV1Request,
|
|
1825
|
+
output: ConcurrencyLimitObject,
|
|
1826
|
+
errors: [BadRequest, NotFound, Conflict, UnknownTriggerDevError],
|
|
1827
|
+
protocol: TriggerDevProtocol,
|
|
1828
|
+
retry: Retry.Retry,
|
|
1829
|
+
}));
|
|
2012
1830
|
/** Override queue concurrency limit Override the concurrency limit of a queue. This is useful for temporarily scaling up or down based on demand. */
|
|
2013
1831
|
export const overrideQueueConcurrencyV1 = /*@__PURE__*/ API.make(() => ({
|
|
2014
1832
|
input: OverrideQueueConcurrencyV1Request,
|
|
@@ -2017,6 +1835,14 @@ export const overrideQueueConcurrencyV1 = /*@__PURE__*/ API.make(() => ({
|
|
|
2017
1835
|
protocol: TriggerDevProtocol,
|
|
2018
1836
|
retry: Retry.Retry,
|
|
2019
1837
|
}));
|
|
1838
|
+
/** 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. */
|
|
1839
|
+
export const pauseConcurrencyLimitV1 = /*@__PURE__*/ API.make(() => ({
|
|
1840
|
+
input: PauseConcurrencyLimitV1Request,
|
|
1841
|
+
output: ConcurrencyLimitObject,
|
|
1842
|
+
errors: [BadRequest, NotFound, Conflict, UnknownTriggerDevError],
|
|
1843
|
+
protocol: TriggerDevProtocol,
|
|
1844
|
+
retry: Retry.Retry,
|
|
1845
|
+
}));
|
|
2020
1846
|
/** 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. */
|
|
2021
1847
|
export const pauseQueueV1 = /*@__PURE__*/ API.make(() => ({
|
|
2022
1848
|
input: PauseQueueV1Request,
|
|
@@ -2033,6 +1859,14 @@ export const promoteDeploymentV1 = /*@__PURE__*/ API.make(() => ({
|
|
|
2033
1859
|
protocol: TriggerDevProtocol,
|
|
2034
1860
|
retry: Retry.Retry,
|
|
2035
1861
|
}));
|
|
1862
|
+
/** Reset concurrency limit Reset a concurrency limit back to the values declared in your code, clearing any override. */
|
|
1863
|
+
export const resetConcurrencyLimitV1 = /*@__PURE__*/ API.make(() => ({
|
|
1864
|
+
input: ResetConcurrencyLimitV1Request,
|
|
1865
|
+
output: ConcurrencyLimitObject,
|
|
1866
|
+
errors: [BadRequest, NotFound, Conflict, UnknownTriggerDevError],
|
|
1867
|
+
protocol: TriggerDevProtocol,
|
|
1868
|
+
retry: Retry.Retry,
|
|
1869
|
+
}));
|
|
2036
1870
|
/** Reset queue concurrency limit Reset the concurrency limit of a queue back to its base value defined in code. */
|
|
2037
1871
|
export const resetQueueConcurrencyV1 = /*@__PURE__*/ API.make(() => ({
|
|
2038
1872
|
input: ResetQueueConcurrencyV1Request,
|