@distilled.cloud/trigger-dev 1.0.0-rc.15 → 1.0.0-rc.16
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 +15 -14
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +15 -15
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +15 -15
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +6 -6
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +19 -22
- 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 +25 -24
- package/lib/retry.js.map +1 -1
- package/lib/services/trigger-dev.d.ts +22 -360
- package/lib/services/trigger-dev.d.ts.map +1 -1
- package/lib/services/trigger-dev.js +237 -1963
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +13 -9
- package/src/credentials.ts +7 -6
- package/src/errors.ts +12 -16
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +19 -20
- package/src/retry.ts +6 -4
- package/src/services/trigger-dev.ts +1982 -2437
- package/src/traits.ts +1 -1
- package/lib/services/trigger-dev.js.map +0 -1
|
@@ -1,1974 +1,248 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
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";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownTriggerDevError } from "../errors.js";
|
|
6
7
|
import { TriggerDevProtocol, } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Unknown;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = T.HttpBody;
|
|
19
|
+
const __9 = S.NullOr;
|
|
20
|
+
const __10 = S.Boolean;
|
|
21
|
+
const __11 = T.RawResponseRoot;
|
|
22
|
+
const __12 = S.Array;
|
|
23
|
+
const __13 = S.Number;
|
|
24
|
+
const __14 = T.Query;
|
|
25
|
+
const __15 = S.Record;
|
|
26
|
+
const __16 = S.TaggedError;
|
|
27
|
+
const __17 = T.applyErrorMatchers;
|
|
28
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
29
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __13, __3, __16, __17]]);
|
|
30
|
+
});
|
|
31
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
32
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __13, __3, __16, __17]]);
|
|
33
|
+
});
|
|
34
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
35
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __13, __3, __16, __17]]);
|
|
36
|
+
});
|
|
37
|
+
export const UnprocessableEntity = /*@__PURE__*/ API.error(function UnprocessableEntity(i) {
|
|
38
|
+
return API.newError(i, new.target, ['$5($4()("UnprocessableEntity",{code:$2,message:$3}).pipe($1),[{status:422}])', [__0, C.withBadRequestError, __13, __3, __16, __17]]);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const activateScheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ActivateScheduleV1Request";$4({schedule_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/schedules/{schedule_id}/activate",code:200}))', [__0, __1, __2, __3, __6, __7, __d11, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(activateScheduleV1, i));
|
|
42
|
+
|
|
43
|
+
export const addRunTagsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>3)@"AddRunTagsV1Request";$6(>4)@"AddRunTagsV1Response";$5({runId:$3.pipe($2()),tags:$4}).pipe($1({method:"POST",uri:"/api/v1/runs/{runId}/tags",code:200}));$5({message:$7($3)})', [__0, __1, __2, __3, __4, __6, __7, __5, BadRequest, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(addRunTagsV1, i));
|
|
44
|
+
|
|
45
|
+
export const bulkAbortActionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7,$8],protocol:$9,retry:$10};$5(>3)@"BulkAbortActionV1Request";$5(>4)@"AbortBulkActionResponse";$4({bulkActionId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/bulk-actions/{bulkActionId}/abort",code:200}));$4({id:$3})', [__0, __1, __2, __3, __6, __7, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(bulkAbortActionV1, i));
|
|
46
|
+
|
|
47
|
+
export const cancelRunV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CancelRunV1Request";$4({runId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v2/runs/{runId}/cancel",code:200}))', [__0, __1, __2, __3, __6, __7, __d19, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(cancelRunV1, i));
|
|
48
|
+
|
|
49
|
+
export const closeSessionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"CloseSessionV1Request";$5({session:$3.pipe($2()),reason:$4($3)}).pipe($1({method:"POST",uri:"/api/v1/sessions/{session}/close",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d22, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(closeSessionV1, i));
|
|
50
|
+
|
|
51
|
+
export const completeWaitpointTokenCallbackV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"CompleteWaitpointTokenCallbackV1Request";$4({waitpointId:$3.pipe($2()),callbackHash:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/waitpoints/tokens/{waitpointId}/callback/{callbackHash}",code:200}))', [__0, __1, __2, __3, __6, __7, __d23, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(completeWaitpointTokenCallbackV1, i));
|
|
52
|
+
|
|
53
|
+
export const completeWaitpointTokenV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"CompleteWaitpointTokenV1Request";$6({waitpointId:$3.pipe($2()),data:$5($4)}).pipe($1({method:"POST",uri:"/api/v1/waitpoints/tokens/{waitpointId}/complete",code:200}))', [__0, __1, __2, __3, __4, __5, __6, __7, __d23, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(completeWaitpointTokenV1, i));
|
|
54
|
+
|
|
55
|
+
export const createBulkActionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CreateBulkActionV1Request";$4({body:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/bulk-actions",code:200}))', [__0, __1, __8, __4, __6, __7, __d0, BadRequest, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(createBulkActionV1, i));
|
|
56
|
+
|
|
57
|
+
export const createProjectEnvvarV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CreateProjectEnvvarV1Request";$4({projectRef:$3.pipe($2()),env:$3.pipe($2()),name:$3,value:$3}).pipe($1({method:"POST",uri:"/api/v1/projects/{projectRef}/envvars/{env}",code:200}))', [__0, __1, __2, __3, __6, __7, __d23, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(createProjectEnvvarV1, i));
|
|
58
|
+
|
|
59
|
+
export const createScheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CreateScheduleV1Request";$4({task:$2,cron:$2,deduplicationKey:$2,externalId:$3($2),timezone:$3($2)}).pipe($1({method:"POST",uri:"/api/v1/schedules",code:200}))', [__0, __1, __3, __5, __6, __7, __d11, BadRequest, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(createScheduleV1, i));
|
|
60
|
+
|
|
61
|
+
export const createSessionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>3)@"CreateSessionV1Request";$7(>4)@"CreateSessionV1Response";$6({type:$2,taskIdentifier:$2,triggerConfig:#3:1,externalId:$4($2),tags:$4(#5:0),metadata:$4(#3:0),expiresAt:$4($2)}).pipe($1({method:"POST",uri:"/api/v1/sessions",code:200}));$6({id:$2,externalId:$4($8($2)),type:$2,taskIdentifier:$2,triggerConfig:$4(#3:1),currentRunId:$4($8($2)),tags:#5:0,metadata:$4($8(#3:0)),closedAt:$4($8($2)),closedReason:$4($8($2)),expiresAt:$4($8($2)),createdAt:$2,updatedAt:$2,runId:$2,publicAccessToken:$2,isCached:$9})', [__0, __1, __3, __d21, __5, __d20, __6, __7, __9, __10, Conflict, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(createSessionV1, i));
|
|
62
|
+
|
|
63
|
+
export const createWaitpointTokenV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"CreateWaitpointTokenV1Request";$6(>4)@"CreateWaitpointTokenResponse";$5({idempotencyKey:$3($2),idempotencyKeyTTL:$3($2),timeout:$3($2),tags:$3($4)}).pipe($1({method:"POST",uri:"/api/v1/waitpoints/tokens",code:200}));$5({id:$2,isCached:$7,url:$2})', [__0, __1, __3, __5, __4, __6, __7, __10, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(createWaitpointTokenV1, i));
|
|
64
|
+
|
|
65
|
+
export const deactivateScheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeactivateScheduleV1Request";$4({schedule_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/schedules/{schedule_id}/deactivate",code:200}))', [__0, __1, __2, __3, __6, __7, __d11, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(deactivateScheduleV1, i));
|
|
66
|
+
|
|
67
|
+
export const deleteProjectEnvvarV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteProjectEnvvarV1Request";$4({projectRef:$3.pipe($2()),env:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/api/v1/projects/{projectRef}/envvars/{env}/{name}",code:200}))', [__0, __1, __2, __3, __6, __7, __d23, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(deleteProjectEnvvarV1, i));
|
|
68
|
+
|
|
69
|
+
export const deleteScheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteScheduleV1Request";$4({schedule_id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/api/v1/schedules/{schedule_id}",code:200}))', [__0, __1, __2, __3, __6, __7, __d0, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(deleteScheduleV1, i));
|
|
70
|
+
|
|
71
|
+
export const executeQueryV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"ExecuteQueryV1Request";$6(>4)@"ExecuteQueryV1Response";$5({query:$2,scope:$3($2),period:$3($4($2)),from:$3($4($2)),to:$3($4($2)),format:$3($2)}).pipe($1({method:"POST",uri:"/api/v1/query",code:200}));$8.pipe($7())', [__0, __1, __3, __5, __9, __6, __7, __11, __4, BadRequest, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(executeQueryV1, i));
|
|
72
|
+
|
|
73
|
+
export const getBatchResultsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$5(>4)@"GetBatchResultsV1Request";$7(#6:1);$5(>5)@"GetBatchResultsV1Response";$4({batchId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/batches/{batchId}/results",code:200}));$4({id:$8($3),items:$8(#2)})', [__0, __1, __2, __3, __6, __7, __d1, __12, __5, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getBatchResultsV1, i));
|
|
74
|
+
|
|
75
|
+
export const getBatchV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetBatchV1Response", '{input:#1,output:#4,errors:[$12,$13],protocol:$14,retry:$15};$5(>5)@"GetBatchV1Request";$5(>6)@"%ErrorsItem";$10(#2);$5(>7)@"%";$4({batchId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/batches/{batchId}",code:200}));$4({index:$7($6),taskIdentifier:$7($3),error:$7($8),errorCode:$7($9($3))});$4({id:$7($3),status:$7($3),idempotencyKey:$7($9($3)),createdAt:$7($3),updatedAt:$7($3),runCount:$7($6),runs:$7(#11:0),successfulRunCount:$7($9($6)),failedRunCount:$7($9($6)),errors:$7($9(#3))})', [__0, __1, __2, __3, __6, __7, __13, __5, __4, __9, __12, __d20, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(getBatchV1, i));
|
|
76
|
+
|
|
77
|
+
export const getBulkActionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetBulkActionV1Request";$4({bulkActionId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/bulk-actions/{bulkActionId}",code:200}))', [__0, __1, __2, __3, __6, __7, __d2, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getBulkActionV1, i));
|
|
78
|
+
|
|
79
|
+
export const getConcurrencyLimitV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetConcurrencyLimitV1Request";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/concurrency-limits/{name}",code:200}))', [__0, __1, __2, __3, __6, __7, __d3, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getConcurrencyLimitV1, i));
|
|
80
|
+
|
|
81
|
+
export const getDeploymentV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetDeploymentV1Response", '{input:#1,output:#5,errors:[$10,$11],protocol:$12,retry:$13};$5(>6)@"GetDeploymentV1Request";$5(>7)@"%WorkerTasksItem";$7(#2);$5(>8)@"%Worker";$5(>9)@"%";$4({deploymentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/deployments/{deploymentId}",code:200}));$4({id:$6($3),slug:$6($3),filePath:$6($3),exportName:$6($3)});$4({id:$6($3),version:$6($3),tasks:$6(#3)});$4({id:$6($3),status:$6($3),contentHash:$6($3),shortCode:$6($3),version:$6($3),imageReference:$6($8($3)),imagePlatform:$6($3),externalId:$6($3),externalBuildData:$6($8($9)),errorData:$6($8($9)),worker:$6($8(#4))})', [__0, __1, __2, __3, __6, __7, __5, __12, __9, __4, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(getDeploymentV1, i));
|
|
82
|
+
|
|
83
|
+
export const getErrorV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetErrorV1Request";$4({errorId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/errors/{errorId}",code:200}))', [__0, __1, __2, __3, __6, __7, __d4, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getErrorV1, i));
|
|
84
|
+
|
|
85
|
+
export const getLatestDeploymentV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$3(>3)@"GetLatestDeploymentV1Request";$3(>4)@"GetLatestDeploymentV1Response";$2({}).pipe($1({method:"GET",uri:"/api/v1/deployments/latest",code:200}));$2({id:$5($4),status:$5($4),contentHash:$5($4),shortCode:$5($4),version:$5($4),imageReference:$5($6($4)),errorData:$5($6($7))})', [__0, __1, __6, __7, __3, __5, __9, __4, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getLatestDeploymentV1, i));
|
|
86
|
+
|
|
87
|
+
export const getProjectEnvvarV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7,$8],protocol:$9,retry:$10};$5(>3)@"GetProjectEnvvarV1Request";$5(>4)@"EnvVarValue";$4({projectRef:$3.pipe($2()),env:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/projects/{projectRef}/envvars/{env}/{name}",code:200}));$4({value:$3})', [__0, __1, __2, __3, __6, __7, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getProjectEnvvarV1, i));
|
|
88
|
+
|
|
89
|
+
export const getQuerySchemaV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetQuerySchemaV1Response", '{input:#1,output:#6,errors:[$9],protocol:$10,retry:$11};$3(>7)@"GetQuerySchemaV1Request";$3(>8)@"%TablesItemColumnsItem";$8(#2);$3(>9)@"%TablesItem";$8(#4);$3(>10)@"%";$2({}).pipe($1({method:"GET",uri:"/api/v1/query/schema",code:200}));$2({name:$5($4),type:$5($4),description:$5($4),example:$5($4),allowedValues:$5(#6:0),coreColumn:$5($7)});$2({name:$5($4),description:$5($4),timeColumn:$5($4),columns:$5(#3)});$2({tables:$5(#5)})', [__0, __1, __6, __7, __3, __5, __d20, __10, __12, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(getQuerySchemaV1, i));
|
|
90
|
+
|
|
91
|
+
export const getQueueV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:1,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"GetQueueV1Request";$6({queueParam:$3.pipe($2()),type:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/api/v1/queues/{queueParam}",code:200}))', [__0, __1, __2, __3, __14, __5, __6, __7, __d5, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getQueueV1, i));
|
|
92
|
+
|
|
93
|
+
export const getRunEventsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetRunEventsV1Response", '{input:#1,output:#6,errors:[$12,$13],protocol:$14,retry:$15};$5(>7)@"GetRunEventsV1Request";$5(>8)@"%EventsItemStyleAccessory";$5(>9)@"%EventsItemStyle";$5(>10)@"%EventsItem";$11(#4);$5(>11)@"%";$4({runId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/runs/{runId}/events",code:200}));$4({text:$6($3),style:$6($3)});$4({icon:$6($3),variant:$6($3),accessory:$6(#2)});$4({spanId:$6($3),parentId:$6($7($3)),runId:$6($7($3)),message:$6($3),startTime:$6($3),duration:$6($8),isError:$6($9),isPartial:$6($9),isCancelled:$6($9),level:$6($3),kind:$6($3),attemptNumber:$6($7($8)),taskSlug:$6($3),events:$6(#10:1),style:$6(#3)});$4({events:$6(#5)})', [__0, __1, __2, __3, __6, __7, __5, __9, __13, __10, __d6, __12, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(getRunEventsV1, i));
|
|
94
|
+
|
|
95
|
+
export const getRunResultV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetRunResultV1Request";$4({runId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/runs/{runId}/result",code:200}))', [__0, __1, __2, __3, __6, __7, __d1, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getRunResultV1, i));
|
|
96
|
+
|
|
97
|
+
export const getRunTraceV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetRunTraceV1Response", '{input:#1,output:#6,errors:[$13,$14],protocol:$15,retry:$16};$5(>7)@"GetRunTraceV1Request";$5(>8)@"SpanDetailedSummaryData";$12($5(>9));$5(>10)@"SpanDetailedSummary";$5(>11)@"%Trace";$5(>12)@"%";$4({runId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/runs/{runId}/trace",code:200}));$4({message:$6($3),taskSlug:$6($3),startTime:$6($3),duration:$6($7),isError:$6($8),isPartial:$6($8),isCancelled:$6($8),level:$6($3),attemptNumber:$6($9($7)),properties:$6($10),events:$6(#11:1)});#4;$4({id:$6($3),parentId:$6($9($3)),runId:$6($3),data:$6(#2),children:$6(#3)});$4({traceId:$6($3),rootSpan:$6(#4)});$4({trace:$6(#5)})', [__0, __1, __2, __3, __6, __7, __5, __13, __10, __9, __4, __d6, __12, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(getRunTraceV1, i));
|
|
98
|
+
|
|
99
|
+
export const getRunV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:7,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetRunV1Request";$4({runId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v3/runs/{runId}",code:200}))', [__0, __1, __2, __3, __6, __7, __d7, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getRunV1, i));
|
|
100
|
+
|
|
101
|
+
export const getScheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:3,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetScheduleV1Request";$4({schedule_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/schedules/{schedule_id}",code:200}))', [__0, __1, __2, __3, __6, __7, __d11, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getScheduleV1, i));
|
|
102
|
+
|
|
103
|
+
export const getSessionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetSessionV1Request";$4({session:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/sessions/{session}",code:200}))', [__0, __1, __2, __3, __6, __7, __d22, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getSessionV1, i));
|
|
104
|
+
|
|
105
|
+
export const getTimezonesV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8],protocol:$9,retry:$10};$6(>3)@"GetTimezonesV1Request";$6(>4)@"GetTimezonesResult";$5({excludeUtc:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/api/v1/timezones",code:200}));$5({timezones:$4(#7:0)})', [__0, __1, __14, __10, __5, __6, __7, __d20, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getTimezonesV1, i));
|
|
106
|
+
|
|
107
|
+
export const getWaitpointTokenV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetWaitpointTokenV1Request";$4({waitpointId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/waitpoints/tokens/{waitpointId}",code:200}))', [__0, __1, __2, __3, __6, __7, __d8, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(getWaitpointTokenV1, i));
|
|
108
|
+
|
|
109
|
+
export const ignoreErrorV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"IgnoreErrorV1Request";$6({errorId:$3.pipe($2()),duration:$5($4),occurrenceRate:$5($4),totalOccurrences:$5($4),reason:$5($3)}).pipe($1({method:"POST",uri:"/api/v1/errors/{errorId}/ignore",code:200}))', [__0, __1, __2, __3, __13, __5, __6, __7, __d4, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(ignoreErrorV1, i));
|
|
110
|
+
|
|
111
|
+
export const listBulkActionsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$6(>4)@"ListBulkActionsV1Request";$8(#7:1);$6(>5)@"ListBulkActionsResult";$5({page:$4(#3:0.pipe($2()))}).pipe($1({method:"GET",uri:"/api/v1/bulk-actions",code:200}));$5({data:#2,pagination:#3:1})', [__0, __1, __14, __d9, __5, __6, __7, __d2, __12, BadRequest, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listBulkActionsV1, i));
|
|
112
|
+
|
|
113
|
+
export const listConcurrencyLimitsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8],protocol:$9,retry:$10};$3(>4)@"ListConcurrencyLimitsV1Request";$5(#4:1);$3(>5)@"ListConcurrencyLimitsV1Response";~2:1.pipe($1({method:"GET",uri:"/api/v1/concurrency-limits",code:200}));$7({data:$6(#2),pagination:$6(#2:0)})', [__0, __1, __d12, __7, __d3, __12, __5, __6, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listConcurrencyLimitsV1, i));
|
|
114
|
+
|
|
115
|
+
export const listDashboardsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListDashboardsV1Response", '{input:#1,output:#6,errors:[$7],protocol:$8,retry:$9};$3(>7)@"ListDashboardsV1Request";$3(>8)@"%DashboardsItemWidgetsItem";$6(#2);$3(>9)@"%DashboardsItem";$6(#4);$3(>10)@"%";$2({}).pipe($1({method:"GET",uri:"/api/v1/query/dashboards",code:200}));$2({id:$5($4),title:$5($4),query:$5($4),type:$5($4)});$2({key:$5($4),title:$5($4),widgets:$5(#3)});$2({dashboards:$5(#5)})', [__0, __1, __6, __7, __3, __5, __12, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(listDashboardsV1, i));
|
|
116
|
+
|
|
117
|
+
export const listDeploymentsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListDeploymentsV1Response", '{input:#1,output:#5,errors:[$11],protocol:$12,retry:$13};$7(>6)@"ListDeploymentsV1Request";$7(>7)@"%DataItem";$10(#2);$7(>8)@"%Pagination";$7(>9)@"%";$6({page_after_:$4($3.pipe($2("page[after]"))),page_size_:$4($5.pipe($2("page[size]"))),status:$4($3.pipe($2())),period:$4($3.pipe($2())),from:$4($3.pipe($2())),to:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/api/v1/deployments",code:200}));$6({id:$4($3),createdAt:$4($3),shortCode:$4($3),version:$4($3),runtime:$4($8($3)),runtimeVersion:$4($8($3)),status:$4($3),deployedAt:$4($8($3)),git:$4($8($9)),error:$4($8($9)),externalId:$4($3)});$6({next:$4($3)});$6({data:$4(#3),pagination:$4(#4)})', [__0, __1, __14, __3, __5, __13, __6, __7, __9, __4, __12, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(listDeploymentsV1, i));
|
|
118
|
+
|
|
119
|
+
export const listErrorsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#5,errors:[$13,$14],protocol:$15,retry:$16};$6(>6)@"ErrorsFilter";$6(>7)@"ListErrorsV1Request";$6(>8)@"ErrorListItem";$12(#3);$6(>9)@"ListErrorsResult";$5({taskIdentifier:$2(#1:0),version:$2(#1:0),status:$2(#3:0),search:$2($4),from:$2($4),to:$2($4),period:$2($4)});$5({page:$2(#9:0.pipe($8())),filter:$2(#1.pipe($8()))}).pipe($7({method:"GET",uri:"/api/v1/errors",code:200}));$5({id:$4,fingerprint:$4,taskIdentifier:$4,errorType:$4,errorMessage:$4,status:$4,count:$10,firstSeen:$4,lastSeen:$4,resolvedAt:$2($11($4)),ignoredUntil:$2($11($4))});$5({data:$2(#4),pagination:$2(#9:1)})', [__0, __d20, __5, __d13, __3, __6, __7, __1, __14, __d9, __13, __9, __12, BadRequest, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listErrorsV1, i));
|
|
120
|
+
|
|
121
|
+
export const listProjectEnvvarsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"ListProjectEnvvarsV1Request";$5(>4)@"ListProjectEnvvarsV1Response";$4({projectRef:$3.pipe($2()),env:$3.pipe($2())}).pipe($1({method:"GET",uri:"/api/v1/projects/{projectRef}/envvars/{env}",code:200}));#7:1.pipe($6())', [__0, __1, __2, __3, __6, __7, __11, __d14, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listProjectEnvvarsV1, i));
|
|
122
|
+
|
|
123
|
+
export const listProjectRunsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListProjectRunsV1Request", '{input:#2,output:#13:3,errors:[$14,$15],protocol:$16,retry:$17};$8(>3)@"%Filter";$8(>4)@"%";$7({createdAt:$2(#1:0),status:$2(#3:0),taskIdentifier:$2(#4:0),version:$2(#4:0),bulkAction:$2($5),schedule:$2($5),isTest:$2($6),tag:$2(#4:0),error:$2($5),env:$2(#3:0)});$7({projectRef:$5.pipe($10()),page:$2(#12:0.pipe($11())),filter:$2(#1.pipe($11()))}).pipe($9({method:"GET",uri:"/api/v1/projects/{projectRef}/runs",code:200}))', [__0, __d16, __5, __d13, __d20, __3, __10, __6, __7, __1, __2, __14, __d9, __d15, BadRequest, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(listProjectRunsV1, i));
|
|
124
|
+
|
|
125
|
+
export const listQueuesV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$7],protocol:$8,retry:$9};$3(>4)@"ListQueuesV1Request";$5(#4:1);$3(>5)@"ListQueuesResult";~2:1.pipe($1({method:"GET",uri:"/api/v1/queues",code:200}));$6({data:#2,pagination:#2:0})', [__0, __1, __d12, __7, __d5, __12, __6, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listQueuesV1, i));
|
|
126
|
+
|
|
127
|
+
export const listRunsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#12:3,errors:[$13,$14],protocol:$15,retry:$16};$8(>3)@"CommonRunsFilter";$8(>4)@"ListRunsV1Request";$7({createdAt:$2(#1:0),status:$2(#3:0),taskIdentifier:$2(#4:0),version:$2(#4:0),bulkAction:$2($5),schedule:$2($5),isTest:$2($6),tag:$2(#4:0),error:$2($5)});$7({page:$2(#11:0.pipe($10())),filter:$2(#1.pipe($10()))}).pipe($9({method:"GET",uri:"/api/v1/runs",code:200}))', [__0, __d16, __5, __d13, __d20, __3, __10, __6, __7, __1, __14, __d9, __d15, BadRequest, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listRunsV1, i));
|
|
128
|
+
|
|
129
|
+
export const listSchedulesV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8],protocol:$9,retry:$10};$3(>4)@"ListSchedulesV1Request";$5(#4:3);$3(>5)@"ListSchedulesResult";~2:1.pipe($1({method:"GET",uri:"/api/v1/schedules",code:200}));$7({data:$6(#2),pagination:$6(#2:0)})', [__0, __1, __d12, __7, __d11, __12, __5, __6, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listSchedulesV1, i));
|
|
130
|
+
|
|
131
|
+
export const listSessionsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#4,errors:[$13,$14],protocol:$15,retry:$16};$7(>5)@"SessionsFilter";$7(>6)@"ListSessionsV1Request";$12(#11:0);$7(>7)@"ListSessionsResult";$6({type:$2(#1:0),tags:$2(#1:0),taskIdentifier:$2(#1:0),externalId:$2($3),status:$2(#4:0),createdAt:$2(#5:0)});$6({page:$2(#10:0.pipe($9())),filter:$2(#1.pipe($9()))}).pipe($8({method:"GET",uri:"/api/v1/sessions",code:200}));$6({data:$2(#3),pagination:$2(#10:1)})', [__0, __d20, __5, __3, __d13, __d16, __6, __7, __1, __14, __d9, __d22, __12, BadRequest, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(listSessionsV1, i));
|
|
132
|
+
|
|
133
|
+
export const listWaitpointTokensV1 = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ListWaitpointTokensResult", '{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14};$7(>5)@"ListWaitpointTokensV1Request";$9(#8:0);$7(>6)@"%Pagination";$7(>7)@"%";$6({page_size_:$4($3.pipe($2("page[size]"))),page_after_:$4($5.pipe($2("page[after]"))),page_before_:$4($5.pipe($2("page[before]"))),filter_status_:$4($5.pipe($2("filter[status]"))),filter_idempotencyKey_:$4($5.pipe($2("filter[idempotencyKey]"))),filter_tags_:$4($5.pipe($2("filter[tags]"))),filter_createdAt__period_:$4($5.pipe($2("filter[createdAt][period]"))),filter_createdAt__from_:$4($5.pipe($2("filter[createdAt][from]"))),filter_createdAt__to_:$4($5.pipe($2("filter[createdAt][to]")))}).pipe($1({method:"GET",uri:"/api/v1/waitpoints/tokens",code:200}));$6({next:$4($10($5)),previous:$4($10($5))});$6({data:#2,pagination:#3})', [__0, __1, __14, __13, __5, __3, __6, __7, __d8, __12, __9, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]) : API.call(listWaitpointTokensV1, i));
|
|
134
|
+
|
|
135
|
+
export const overrideConcurrencyLimitV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:1,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"OverrideConcurrencyLimitV1Request";$6({name:$3.pipe($2()),perKey:$5($4),total:$5($4)}).pipe($1({method:"POST",uri:"/api/v1/concurrency-limits/{name}/override",code:200}))', [__0, __1, __2, __3, __13, __5, __6, __7, __d3, BadRequest, NotFound, Conflict, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(overrideConcurrencyLimitV1, i));
|
|
136
|
+
|
|
137
|
+
export const overrideQueueConcurrencyV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"OverrideQueueConcurrencyV1Request";$6({queueParam:$3.pipe($2()),type:$4($3),concurrencyLimit:$5}).pipe($1({method:"POST",uri:"/api/v1/queues/{queueParam}/concurrency/override",code:200}))', [__0, __1, __2, __3, __5, __13, __6, __7, __d5, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(overrideQueueConcurrencyV1, i));
|
|
138
|
+
|
|
139
|
+
export const pauseConcurrencyLimitV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"PauseConcurrencyLimitV1Request";$4({name:$3.pipe($2()),action:$3}).pipe($1({method:"POST",uri:"/api/v1/concurrency-limits/{name}/pause",code:200}))', [__0, __1, __2, __3, __6, __7, __d3, BadRequest, NotFound, Conflict, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(pauseConcurrencyLimitV1, i));
|
|
140
|
+
|
|
141
|
+
export const pauseQueueV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:1,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"PauseQueueV1Request";$5({queueParam:$3.pipe($2()),type:$4($3),action:$3}).pipe($1({method:"POST",uri:"/api/v1/queues/{queueParam}/pause",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d5, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(pauseQueueV1, i));
|
|
142
|
+
|
|
143
|
+
export const promoteDeploymentV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>3)@"PromoteDeploymentV1Request";$5(>4)@"PromoteDeploymentV1Response";$4({version:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/deployments/{version}/promote",code:200}));$4({id:$6($3),version:$6($3),shortCode:$6($3)})', [__0, __1, __2, __3, __6, __7, __5, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(promoteDeploymentV1, i));
|
|
144
|
+
|
|
145
|
+
export const resetConcurrencyLimitV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"ResetConcurrencyLimitV1Request";$4({name:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/concurrency-limits/{name}/reset",code:200}))', [__0, __1, __2, __3, __6, __7, __d3, BadRequest, NotFound, Conflict, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(resetConcurrencyLimitV1, i));
|
|
146
|
+
|
|
147
|
+
export const resetQueueConcurrencyV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:1,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"ResetQueueConcurrencyV1Request";$5({queueParam:$3.pipe($2()),type:$4($3)}).pipe($1({method:"POST",uri:"/api/v1/queues/{queueParam}/concurrency/reset",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d5, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(resetQueueConcurrencyV1, i));
|
|
148
|
+
|
|
149
|
+
export const resolveErrorV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"ResolveErrorV1Request";$5({errorId:$3.pipe($2()),resolvedInVersion:$4($3)}).pipe($1({method:"POST",uri:"/api/v1/errors/{errorId}/resolve",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d4, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(resolveErrorV1, i));
|
|
150
|
+
|
|
151
|
+
export const runReplayV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"RunReplayV1Request";$4({runId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/runs/{runId}/replay",code:200}))', [__0, __1, __2, __3, __6, __7, __d19, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(runReplayV1, i));
|
|
152
|
+
|
|
153
|
+
export const runRescheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:7,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"RunRescheduleV1Request";$5({runId:$3.pipe($2()),delay:$4($3)}).pipe($1({method:"POST",uri:"/api/v1/runs/{runId}/reschedule",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d7, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(runRescheduleV1, i));
|
|
154
|
+
|
|
155
|
+
export const triggerBatchTaskByIdV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#3,output:#10:0,errors:[$11,$12,$13],protocol:$14,retry:$15};$5(>4)@"TriggerTaskRequestBody";$6(#1);$5(>5)@"TriggerBatchTaskByIdV1Request";$4({payload:$2($1),context:$2($1),options:$2(#3:1)});$4({taskIdentifier:$9.pipe($8()),items:#2}).pipe($7({method:"POST",uri:"/api/v1/tasks/{taskIdentifier}/batch",code:200}))', [__0, __4, __5, __d18, __6, __7, __12, __1, __2, __3, __d17, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(triggerBatchTaskByIdV1, i));
|
|
156
|
+
|
|
157
|
+
export const triggerBatchTaskV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#3,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$6(>4)@"BatchTriggerTaskRequestBodyItem";$7(#1);$6(>5)@"TriggerBatchTaskV1Request";$5({payload:$2($1),context:$2($1),options:$2(#3:1),task:$4});$5({items:#2}).pipe($8({method:"POST",uri:"/api/v1/tasks/batch",code:200}))', [__0, __4, __5, __d18, __3, __6, __7, __12, __1, __d17, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(triggerBatchTaskV1, i));
|
|
158
|
+
|
|
159
|
+
export const triggerTaskV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"TriggerTaskV1Request";$7({taskIdentifier:$3.pipe($2()),payload:$5($4),context:$5($4),options:$5(#6:1)}).pipe($1({method:"POST",uri:"/api/v1/tasks/{taskIdentifier}/trigger",code:200}))', [__0, __1, __2, __3, __4, __5, __d18, __6, __7, __d19, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(triggerTaskV1, i));
|
|
160
|
+
|
|
161
|
+
export const unresolveErrorV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"UnresolveErrorV1Request";$4({errorId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/api/v1/errors/{errorId}/unresolve",code:200}))', [__0, __1, __2, __3, __6, __7, __d4, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(unresolveErrorV1, i));
|
|
162
|
+
|
|
163
|
+
export const updateProjectEnvvarV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"UpdateProjectEnvvarV1Request";$4({projectRef:$3.pipe($2()),env:$3.pipe($2()),name:$3.pipe($2()),value:$3}).pipe($1({method:"PUT",uri:"/api/v1/projects/{projectRef}/envvars/{env}/{name}",code:200}))', [__0, __1, __2, __3, __6, __7, __d23, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(updateProjectEnvvarV1, i));
|
|
164
|
+
|
|
165
|
+
export const updateRunMetadataV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$7(>3)@"UpdateRunMetadataV1Request";$7(>4)@"UpdateRunMetadataV1Response";$6({runId:$3.pipe($2()),metadata:$5($4)}).pipe($1({method:"PUT",uri:"/api/v1/runs/{runId}/metadata",code:200}));$6({metadata:$5($4)})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(updateRunMetadataV1, i));
|
|
166
|
+
|
|
167
|
+
export const updateScheduleV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:3,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"UpdateScheduleV1Request";$5({schedule_id:$3.pipe($2()),task:$3,cron:$3,externalId:$4($3),timezone:$4($3)}).pipe($1({method:"PUT",uri:"/api/v1/schedules/{schedule_id}",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d11, BadRequest, NotFound, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(updateScheduleV1, i));
|
|
168
|
+
|
|
169
|
+
export const updateSessionV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#10:0,errors:[$11,$12,$13],protocol:$14,retry:$15};$9(>2)@"UpdateSessionV1Request";$8({session:$3.pipe($2()),tags:$5(#4:0),metadata:$5($7(#6:0)),externalId:$5($7($3))}).pipe($1({method:"PATCH",uri:"/api/v1/sessions/{session}",code:200}))', [__0, __1, __2, __3, __d20, __5, __d21, __9, __6, __7, __d22, NotFound, UnprocessableEntity, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(updateSessionV1, i));
|
|
170
|
+
|
|
171
|
+
export const uploadProjectEnvvarsV1 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UploadProjectEnvvarsV1Request";$7({projectRef:$3.pipe($2()),env:$3.pipe($2()),variables:#4:1,override:$6($5)}).pipe($1({method:"POST",uri:"/api/v1/projects/{projectRef}/envvars/{env}/import",code:200}))', [__0, __1, __2, __3, __d14, __10, __5, __6, __7, __d23, BadRequest, NotFound, UnknownTriggerDevError, TriggerDevProtocol, Retry.Retry]] : API.call(uploadProjectEnvvarsV1, i));
|
|
172
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
173
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
// Shared schema data (see `op` in core/api).
|
|
177
|
+
function __d0() {
|
|
178
|
+
return ['$2(>1)@"CreateBulkActionV1Response";$1({})', [__0, __6, __7]];
|
|
14
179
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
code: S.Number,
|
|
18
|
-
message: S.String,
|
|
19
|
-
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
180
|
+
function __d1() {
|
|
181
|
+
return ['$4(>2)@"GetBatchResultsV1ResponseItemsItemUsage";$4(>3)@"GetBatchResultsV1ResponseItemsItem";$3({durationMs:$2($1)});$3({ok:$5,id:$6,output:$2($6),outputType:$2($6),error:$2($7),usage:$2(#0),taskIdentifier:$2($6)})', [__0, __13, __5, __6, __7, __10, __3, __4]];
|
|
20
182
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
code: S.Number,
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
183
|
+
function __d2() {
|
|
184
|
+
return ['$3(>2)@"BulkActionObjectCounts";$3(>3)@"BulkActionObject";$2({total:$1,success:$1,failure:$1});$2({id:$4,name:$5($4),type:$4,status:$4,counts:#0,createdAt:$4,completedAt:$5($4)})', [__0, __13, __6, __7, __3, __5]];
|
|
26
185
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
186
|
+
function __d3() {
|
|
187
|
+
return ['$6(>2)@"ConcurrencyLimitObjectPerKey";$6(>3)@"ConcurrencyLimitObject";$5({current:$3($2($1)),base:$3($2($1)),override:$3($2($1)),overriddenAt:$3($2($4))});$5({id:$4,name:$4,perKey:#0,total:#0,running:$1,queued:$1,paused:$3($7)})', [__0, __13, __9, __5, __3, __6, __7, __10]];
|
|
188
|
+
}
|
|
189
|
+
function __d4() {
|
|
190
|
+
return ['$7(>1)@"ErrorObject";$6({id:$1,fingerprint:$1,taskIdentifier:$1,errorType:$1,errorMessage:$1,count:$2,firstSeen:$1,lastSeen:$1,affectedVersions:#3:0,status:$1,resolvedAt:$5($4($1)),resolvedInVersion:$5($4($1)),resolvedBy:$5($4($1)),ignoredAt:$5($4($1)),ignoredUntil:$5($4($1)),ignoredReason:$5($4($1)),ignoredByUserId:$5($4($1)),ignoredUntilOccurrenceRate:$5($4($2)),ignoredUntilTotalOccurrences:$5($4($2))})', [__0, __3, __13, __d20, __9, __5, __6, __7]];
|
|
191
|
+
}
|
|
192
|
+
function __d5() {
|
|
193
|
+
return ['$6(>2)@"QueueObjectConcurrency";$6(>3)@"QueueObject";$5({current:$3($2($1)),base:$3($2($1)),override:$3($2($1)),overriddenAt:$3($2($4)),overriddenBy:$3($2($4))});$5({id:$4,name:$4,type:$4,version:$4,running:$1,queued:$1,paused:$7,concurrencyLimit:$3($2($1)),concurrency:$3(#0)})', [__0, __13, __9, __5, __3, __6, __7, __10]];
|
|
194
|
+
}
|
|
195
|
+
function __d6() {
|
|
196
|
+
return ['$5(>2)@"GetRunEventsV1ResponseEventsItemEventsItem";$6(#0);$4({name:$2($1),time:$2($1),properties:$2($3)})', [__0, __3, __5, __4, __6, __7, __12]];
|
|
197
|
+
}
|
|
198
|
+
function __d7() {
|
|
199
|
+
return ['$8(>8)@"CommonRunObject";$9(#0);$8(>9)@"GetRunV1ResponseRelatedRuns";$8(>10)@"GetRunV1ResponseSchedule";$8(>11)@"SerializedError";$8(>12)@"GetRunV1ResponseAttemptsItem";$9(#5);$8(>13)@"GetRunV1Response";$7({id:$1,status:$1,taskIdentifier:$1,version:$2($1),idempotencyKey:$2($1),createdAt:$1,updatedAt:$1,isTest:$2($3),startedAt:$2($1),finishedAt:$2($1),delayedUntil:$2($1),ttl:$2($4),expiredAt:$2($1),tags:$2(#5:0),metadata:$2($4),costInCents:$2($6),baseCostInCents:$2($6),durationMs:$2($6),depth:$2($6),batchId:$2($1),triggerFunction:$2($1)});$7({root:$2(#0),parent:$2(#0),children:$2(#1)});$7({id:$1,externalId:$2($1),deduplicationKey:$2($1),generator:#10:0});$7({message:$1,name:$2($1),stackTrace:$2($1)});$7({id:$1,status:$1,error:$2(#4),createdAt:$1,updatedAt:$1,startedAt:$2($1),completedAt:$2($1)});$7({id:$1,status:$1,taskIdentifier:$1,version:$2($1),idempotencyKey:$2($1),createdAt:$1,updatedAt:$1,isTest:$2($3),startedAt:$2($1),finishedAt:$2($1),delayedUntil:$2($1),ttl:$2($4),expiredAt:$2($1),tags:$2(#5:0),metadata:$2($4),costInCents:$2($6),baseCostInCents:$2($6),durationMs:$2($6),depth:$2($6),batchId:$2($1),triggerFunction:$2($1),payload:$2($4),payloadPresignedUrl:$2($1),output:$2($4),outputPresignedUrl:$2($1),relatedRuns:$2(#2),schedule:$2(#3),attempts:#6})', [__0, __3, __5, __10, __4, __d20, __13, __6, __7, __12, __d10]];
|
|
200
|
+
}
|
|
201
|
+
function __d8() {
|
|
202
|
+
return ['$7(>1)@"WaitpointTokenObject";$6({id:$1,url:$1,status:$1,idempotencyKey:$3($2($1)),idempotencyKeyExpiresAt:$3($2($1)),timeoutAt:$3($2($1)),completedAt:$3($2($1)),output:$3($2($1)),outputType:$3($2($1)),outputIsError:$3($2($4)),tags:#5:0,createdAt:$1})', [__0, __3, __9, __5, __10, __d20, __6, __7]];
|
|
203
|
+
}
|
|
204
|
+
function __d9() {
|
|
205
|
+
return ['$5(>2)@"ListBulkActionsV1RequestPage";$5(>3)@"ListBulkActionsResultPagination";$4({size:$2($1),after:$2($3),before:$2($3)});$4({next:$2($3),previous:$2($3)})', [__0, __13, __5, __3, __6, __7]];
|
|
206
|
+
}
|
|
207
|
+
function __d10() {
|
|
208
|
+
return ['$4(>1)@"ScheduleObjectGenerator";$3({type:$2($1),expression:$2($1),description:$2($1)})', [__0, __3, __5, __6, __7]];
|
|
209
|
+
}
|
|
210
|
+
function __d11() {
|
|
211
|
+
return ['$5(>4)@"ScheduleObjectAppliedSchedulePolicy";$5(>5)@"ScheduleEnvironment";$6(#1);$5(>6)@"ScheduleObject";$4({minimumWindowSeconds:$2($1),reason:$2($3)});$4({id:$2($3),type:$2($3),userName:$2($3)});$4({id:$2($3),task:$2($3),type:$2($3),active:$2($7),deduplicationKey:$2($3),externalId:$2($3),generator:$2(#8:0),timezone:$2($3),nextRun:$2($3),appliedSchedulePolicy:$2(#0),environments:$2(#2)})', [__0, __13, __5, __3, __6, __7, __12, __10, __d10]];
|
|
212
|
+
}
|
|
213
|
+
function __d12() {
|
|
214
|
+
return ['$4(>2)@"ListConcurrencyLimitsV1ResponsePagination";$3({page:$2($1.pipe($5())),perPage:$2($1.pipe($5()))});$3({currentPage:$2($1),totalPages:$2($1),count:$2($1)})', [__0, __13, __5, __6, __7, __14]];
|
|
215
|
+
}
|
|
216
|
+
function __d13() {
|
|
217
|
+
return ['$2($1)', [__0, __3, __12]];
|
|
218
|
+
}
|
|
219
|
+
function __d14() {
|
|
220
|
+
return ['$3(>2)@"EnvVar";$4(#0);$2({name:$1,value:$1})', [__0, __3, __6, __7, __12]];
|
|
221
|
+
}
|
|
222
|
+
function __d15() {
|
|
223
|
+
return ['$4(>4)@"ListRunItemEnv";$4(>5)@"ListRunItem";$9(#1);$4(>6)@"ListRunsResult";$3({id:$1,name:$1,user:$2($1)});$3({id:$1,status:$1,taskIdentifier:$1,version:$2($1),env:#0,idempotencyKey:$2($1),isTest:$5,createdAt:$1,updatedAt:$1,startedAt:$2($1),finishedAt:$2($1),delayedUntil:$2($1),ttl:$2($6),expiredAt:$2($1),tags:$2(#7:0),costInCents:$2($8),baseCostInCents:$2($8),durationMs:$2($8)});$3({data:$2(#2),pagination:$2(#10:1)})', [__0, __3, __5, __6, __7, __10, __4, __d20, __13, __12, __d9]];
|
|
224
|
+
}
|
|
225
|
+
function __d16() {
|
|
226
|
+
return ['$4(>1)@"ListProjectRunsV1RequestFilterCreatedAt";$3({from:$2($1),to:$2($1),period:$2($1)})', [__0, __3, __5, __6, __7]];
|
|
227
|
+
}
|
|
228
|
+
function __d17() {
|
|
229
|
+
return ['$4(>1)@"BatchTriggerTaskResponse";$3({batchId:$1,runs:#2:0})', [__0, __3, __d20, __6, __7]];
|
|
230
|
+
}
|
|
231
|
+
function __d18() {
|
|
232
|
+
return ['$5(>2)@"QueueOptions";$5(>3)@"TriggerTaskRequestBodyOptions";$4({name:$2($1),concurrencyLimit:$2($3)});$4({queue:$2(#0),concurrencyKey:$2($1),idempotencyKey:$2($1),ttl:$2($6),delay:$2($1),tags:$2($6),machine:$2($1)})', [__0, __3, __5, __13, __6, __7, __4]];
|
|
233
|
+
}
|
|
234
|
+
function __d19() {
|
|
235
|
+
return ['$4(>1)@"CancelRunV1Response";$3({id:$2($1)})', [__0, __3, __5, __6, __7]];
|
|
236
|
+
}
|
|
237
|
+
function __d20() {
|
|
238
|
+
return ['$2($1)', [__0, __3, __12]];
|
|
239
|
+
}
|
|
240
|
+
function __d21() {
|
|
241
|
+
return ['$3($1,$2);$8(>2)@"SessionTriggerConfig";$7({basePayload:#0,machine:$4($1),queue:$4($1),tags:$4(#5:0),maxAttempts:$4($6),maxDuration:$4($6),lockToVersion:$4($1),region:$4($1),idleTimeoutInSeconds:$4($6)})', [__0, __3, __4, __15, __5, __d20, __13, __6, __7]];
|
|
242
|
+
}
|
|
243
|
+
function __d22() {
|
|
244
|
+
return ['$7(>1)@"SessionObject";$6({id:$1,externalId:$3($2($1)),type:$1,taskIdentifier:$1,triggerConfig:$3(#4:1),currentRunId:$3($2($1)),tags:#5:0,metadata:$3($2(#4:0)),closedAt:$3($2($1)),closedReason:$3($2($1)),expiresAt:$3($2($1)),createdAt:$1,updatedAt:$1})', [__0, __3, __9, __5, __d21, __d20, __6, __7]];
|
|
245
|
+
}
|
|
246
|
+
function __d23() {
|
|
247
|
+
return ['$3(>1)@"CompleteWaitpointTokenResponse";$2({success:$1})', [__0, __10, __6, __7]];
|
|
32
248
|
}
|
|
33
|
-
export const ActivateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
34
|
-
schedule_id: S.String.pipe(T.Label()),
|
|
35
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules/{schedule_id}/activate", code: 200 }))).annotate({
|
|
36
|
-
identifier: "ActivateScheduleV1Request",
|
|
37
|
-
});
|
|
38
|
-
export const ScheduleObjectGeneratorType = S.String;
|
|
39
|
-
export const ScheduleObjectGenerator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
40
|
-
type: S.optional(ScheduleObjectGeneratorType),
|
|
41
|
-
expression: S.optional(S.String),
|
|
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),
|
|
48
|
-
})).annotate({
|
|
49
|
-
identifier: "ScheduleObjectAppliedSchedulePolicy",
|
|
50
|
-
});
|
|
51
|
-
export const ScheduleEnvironment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
-
id: S.optional(S.String),
|
|
53
|
-
type: S.optional(S.String),
|
|
54
|
-
userName: S.optional(S.String),
|
|
55
|
-
})).annotate({ identifier: "ScheduleEnvironment" });
|
|
56
|
-
export const ScheduleObjectEnvironmentsList = /*@__PURE__*/ S.Array(ScheduleEnvironment);
|
|
57
|
-
export const ScheduleObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
-
id: S.optional(S.String),
|
|
59
|
-
task: S.optional(S.String),
|
|
60
|
-
type: S.optional(S.String),
|
|
61
|
-
active: S.optional(S.Boolean),
|
|
62
|
-
deduplicationKey: S.optional(S.String),
|
|
63
|
-
externalId: S.optional(S.String),
|
|
64
|
-
generator: S.optional(ScheduleObjectGenerator),
|
|
65
|
-
timezone: S.optional(S.String),
|
|
66
|
-
nextRun: S.optional(S.String),
|
|
67
|
-
appliedSchedulePolicy: S.optional(ScheduleObjectAppliedSchedulePolicy),
|
|
68
|
-
environments: S.optional(ScheduleObjectEnvironmentsList),
|
|
69
|
-
})).annotate({ identifier: "ScheduleObject" });
|
|
70
|
-
export const RunTagsCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
71
|
-
export const RunTags = S.Unknown;
|
|
72
|
-
export const AddRunTagsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
|
-
runId: S.String.pipe(T.Label()),
|
|
74
|
-
tags: RunTags,
|
|
75
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/tags", code: 200 }))).annotate({ identifier: "AddRunTagsV1Request" });
|
|
76
|
-
export const AddRunTagsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
|
-
message: S.optional(S.String),
|
|
78
|
-
})).annotate({ identifier: "AddRunTagsV1Response" });
|
|
79
|
-
export const BulkAbortActionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
bulkActionId: S.String.pipe(T.Label()),
|
|
81
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/bulk-actions/{bulkActionId}/abort", code: 200 }))).annotate({ identifier: "BulkAbortActionV1Request" });
|
|
82
|
-
export const AbortBulkActionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
83
|
-
id: S.String,
|
|
84
|
-
})).annotate({ identifier: "AbortBulkActionResponse" });
|
|
85
|
-
export const CancelRunV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
86
|
-
runId: S.String.pipe(T.Label()),
|
|
87
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v2/runs/{runId}/cancel", code: 200 }))).annotate({ identifier: "CancelRunV1Request" });
|
|
88
|
-
export const CancelRunV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
89
|
-
id: S.optional(S.String),
|
|
90
|
-
})).annotate({ identifier: "CancelRunV1Response" });
|
|
91
|
-
export const CloseSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
session: S.String.pipe(T.Label()),
|
|
93
|
-
reason: S.optional(S.String),
|
|
94
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions/{session}/close", code: 200 }))).annotate({ identifier: "CloseSessionV1Request" });
|
|
95
|
-
export const SessionTriggerConfigBasePayloadMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
96
|
-
export const SessionTriggerConfigTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
97
|
-
export const SessionTriggerConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
-
basePayload: SessionTriggerConfigBasePayloadMap,
|
|
99
|
-
machine: S.optional(S.String),
|
|
100
|
-
queue: S.optional(S.String),
|
|
101
|
-
tags: S.optional(SessionTriggerConfigTagsList),
|
|
102
|
-
maxAttempts: S.optional(S.Number),
|
|
103
|
-
maxDuration: S.optional(S.Number),
|
|
104
|
-
lockToVersion: S.optional(S.String),
|
|
105
|
-
region: S.optional(S.String),
|
|
106
|
-
idleTimeoutInSeconds: S.optional(S.Number),
|
|
107
|
-
})).annotate({ identifier: "SessionTriggerConfig" });
|
|
108
|
-
export const SessionObjectTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
109
|
-
export const SessionObjectMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
110
|
-
export const SessionObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
-
id: S.String,
|
|
112
|
-
externalId: S.optional(S.NullOr(S.String)),
|
|
113
|
-
type: S.String,
|
|
114
|
-
taskIdentifier: S.String,
|
|
115
|
-
triggerConfig: S.optional(SessionTriggerConfig),
|
|
116
|
-
currentRunId: S.optional(S.NullOr(S.String)),
|
|
117
|
-
tags: SessionObjectTagsList,
|
|
118
|
-
metadata: S.optional(S.NullOr(SessionObjectMetadataMap)),
|
|
119
|
-
closedAt: S.optional(S.NullOr(S.String)),
|
|
120
|
-
closedReason: S.optional(S.NullOr(S.String)),
|
|
121
|
-
expiresAt: S.optional(S.NullOr(S.String)),
|
|
122
|
-
createdAt: S.String,
|
|
123
|
-
updatedAt: S.String,
|
|
124
|
-
})).annotate({ identifier: "SessionObject" });
|
|
125
|
-
export const CompleteWaitpointTokenCallbackV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
126
|
-
waitpointId: S.String.pipe(T.Label()),
|
|
127
|
-
callbackHash: S.String.pipe(T.Label()),
|
|
128
|
-
}).pipe(T.Http({
|
|
129
|
-
method: "POST",
|
|
130
|
-
uri: "/api/v1/waitpoints/tokens/{waitpointId}/callback/{callbackHash}",
|
|
131
|
-
code: 200,
|
|
132
|
-
}))).annotate({
|
|
133
|
-
identifier: "CompleteWaitpointTokenCallbackV1Request",
|
|
134
|
-
});
|
|
135
|
-
export const CompleteWaitpointTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
-
success: S.Boolean,
|
|
137
|
-
})).annotate({
|
|
138
|
-
identifier: "CompleteWaitpointTokenResponse",
|
|
139
|
-
});
|
|
140
|
-
export const CompleteWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
141
|
-
waitpointId: S.String.pipe(T.Label()),
|
|
142
|
-
data: S.optional(S.Unknown),
|
|
143
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/waitpoints/tokens/{waitpointId}/complete", code: 200 }))).annotate({
|
|
144
|
-
identifier: "CompleteWaitpointTokenV1Request",
|
|
145
|
-
});
|
|
146
|
-
export const CreateBulkActionRequestBodyCase0Action = S.String;
|
|
147
|
-
export const BulkActionFilterStatusCase0 = S.String;
|
|
148
|
-
export const BulkActionFilterStatusCase1Item = S.String;
|
|
149
|
-
export const BulkActionFilterStatusCase1List = /*@__PURE__*/ S.Array(BulkActionFilterStatusCase1Item);
|
|
150
|
-
export const BulkActionFilterStatus = S.Unknown;
|
|
151
|
-
export const BulkActionFilterTaskIdentifierCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
152
|
-
export const BulkActionFilterTaskIdentifier = S.Unknown;
|
|
153
|
-
export const BulkActionFilterVersionCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
154
|
-
export const BulkActionFilterVersion = S.Unknown;
|
|
155
|
-
export const BulkActionFilterFrom = S.Unknown;
|
|
156
|
-
export const BulkActionFilterTo = S.Unknown;
|
|
157
|
-
export const BulkActionFilterTagCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
158
|
-
export const BulkActionFilterTag = S.Unknown;
|
|
159
|
-
export const QueueTypeNameType = S.String;
|
|
160
|
-
export const QueueTypeName = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
161
|
-
type: QueueTypeNameType,
|
|
162
|
-
name: S.String,
|
|
163
|
-
})).annotate({ identifier: "QueueTypeName" });
|
|
164
|
-
export const BulkActionFilterQueueCase1List = /*@__PURE__*/ S.Array(QueueTypeName);
|
|
165
|
-
export const BulkActionFilterQueue = S.Unknown;
|
|
166
|
-
export const BulkActionFilterMachineCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
167
|
-
export const BulkActionFilterMachine = S.Unknown;
|
|
168
|
-
export const BulkActionFilterRegionCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
169
|
-
export const BulkActionFilterRegion = S.Unknown;
|
|
170
|
-
export const BulkActionFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
|
-
status: S.optional(BulkActionFilterStatus),
|
|
172
|
-
taskIdentifier: S.optional(BulkActionFilterTaskIdentifier),
|
|
173
|
-
version: S.optional(BulkActionFilterVersion),
|
|
174
|
-
from: S.optional(BulkActionFilterFrom),
|
|
175
|
-
to: S.optional(BulkActionFilterTo),
|
|
176
|
-
period: S.optional(S.String),
|
|
177
|
-
bulkAction: S.optional(S.String),
|
|
178
|
-
tag: S.optional(BulkActionFilterTag),
|
|
179
|
-
schedule: S.optional(S.String),
|
|
180
|
-
isTest: S.optional(S.Boolean),
|
|
181
|
-
batch: S.optional(S.String),
|
|
182
|
-
queue: S.optional(BulkActionFilterQueue),
|
|
183
|
-
machine: S.optional(BulkActionFilterMachine),
|
|
184
|
-
region: S.optional(BulkActionFilterRegion),
|
|
185
|
-
})).annotate({ identifier: "BulkActionFilter" });
|
|
186
|
-
export const CreateBulkActionRequestBodyCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
187
|
-
action: CreateBulkActionRequestBodyCase0Action,
|
|
188
|
-
filter: BulkActionFilter,
|
|
189
|
-
name: S.optional(S.String),
|
|
190
|
-
})).annotate({
|
|
191
|
-
identifier: "CreateBulkActionRequestBodyCase0",
|
|
192
|
-
});
|
|
193
|
-
export const CreateBulkActionRequestBodyCase1Action = S.String;
|
|
194
|
-
export const CreateBulkActionRequestBodyCase1RunIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
195
|
-
export const CreateBulkActionRequestBodyCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
196
|
-
action: CreateBulkActionRequestBodyCase1Action,
|
|
197
|
-
runIds: CreateBulkActionRequestBodyCase1RunIdsList,
|
|
198
|
-
name: S.optional(S.String),
|
|
199
|
-
})).annotate({
|
|
200
|
-
identifier: "CreateBulkActionRequestBodyCase1",
|
|
201
|
-
});
|
|
202
|
-
export const CreateBulkActionRequestBodyCase2Action = S.String;
|
|
203
|
-
export const CreateBulkActionRequestBodyCase2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
-
action: CreateBulkActionRequestBodyCase2Action,
|
|
205
|
-
filter: BulkActionFilter,
|
|
206
|
-
name: S.optional(S.String),
|
|
207
|
-
targetRegion: S.optional(S.String),
|
|
208
|
-
})).annotate({
|
|
209
|
-
identifier: "CreateBulkActionRequestBodyCase2",
|
|
210
|
-
});
|
|
211
|
-
export const CreateBulkActionRequestBodyCase3Action = S.String;
|
|
212
|
-
export const CreateBulkActionRequestBodyCase3RunIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
213
|
-
export const CreateBulkActionRequestBodyCase3 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
214
|
-
action: CreateBulkActionRequestBodyCase3Action,
|
|
215
|
-
runIds: CreateBulkActionRequestBodyCase3RunIdsList,
|
|
216
|
-
name: S.optional(S.String),
|
|
217
|
-
targetRegion: S.optional(S.String),
|
|
218
|
-
})).annotate({
|
|
219
|
-
identifier: "CreateBulkActionRequestBodyCase3",
|
|
220
|
-
});
|
|
221
|
-
export const CreateBulkActionRequestBody = S.Unknown;
|
|
222
|
-
export const CreateBulkActionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
223
|
-
body: CreateBulkActionRequestBody.pipe(T.HttpBody()),
|
|
224
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/bulk-actions", code: 200 }))).annotate({
|
|
225
|
-
identifier: "CreateBulkActionV1Request",
|
|
226
|
-
});
|
|
227
|
-
export const CreateBulkActionV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
228
|
-
identifier: "CreateBulkActionV1Response",
|
|
229
|
-
});
|
|
230
|
-
export const CreateProjectEnvvarV1RequestEnv = S.String;
|
|
231
|
-
export const CreateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
-
projectRef: S.String.pipe(T.Label()),
|
|
233
|
-
env: CreateProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
234
|
-
name: S.String,
|
|
235
|
-
value: S.String,
|
|
236
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/projects/{projectRef}/envvars/{env}", code: 200 }))).annotate({
|
|
237
|
-
identifier: "CreateProjectEnvvarV1Request",
|
|
238
|
-
});
|
|
239
|
-
export const SucceedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
240
|
-
success: S.Boolean,
|
|
241
|
-
})).annotate({ identifier: "SucceedResponse" });
|
|
242
|
-
export const CreateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
-
task: S.String,
|
|
244
|
-
cron: S.String,
|
|
245
|
-
deduplicationKey: S.String,
|
|
246
|
-
externalId: S.optional(S.String),
|
|
247
|
-
timezone: S.optional(S.String),
|
|
248
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules", code: 200 }))).annotate({ identifier: "CreateScheduleV1Request" });
|
|
249
|
-
export const CreateSessionV1RequestTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
250
|
-
export const CreateSessionV1RequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
251
|
-
export const CreateSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
252
|
-
type: S.String,
|
|
253
|
-
taskIdentifier: S.String,
|
|
254
|
-
triggerConfig: SessionTriggerConfig,
|
|
255
|
-
externalId: S.optional(S.String),
|
|
256
|
-
tags: S.optional(CreateSessionV1RequestTagsList),
|
|
257
|
-
metadata: S.optional(CreateSessionV1RequestMetadataMap),
|
|
258
|
-
expiresAt: S.optional(S.String),
|
|
259
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/sessions", code: 200 }))).annotate({ identifier: "CreateSessionV1Request" });
|
|
260
|
-
export const CreateSessionV1ResponseTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
261
|
-
export const CreateSessionV1ResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
262
|
-
export const CreateSessionV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
263
|
-
id: S.String,
|
|
264
|
-
externalId: S.optional(S.NullOr(S.String)),
|
|
265
|
-
type: S.String,
|
|
266
|
-
taskIdentifier: S.String,
|
|
267
|
-
triggerConfig: S.optional(SessionTriggerConfig),
|
|
268
|
-
currentRunId: S.optional(S.NullOr(S.String)),
|
|
269
|
-
tags: CreateSessionV1ResponseTagsList,
|
|
270
|
-
metadata: S.optional(S.NullOr(CreateSessionV1ResponseMetadataMap)),
|
|
271
|
-
closedAt: S.optional(S.NullOr(S.String)),
|
|
272
|
-
closedReason: S.optional(S.NullOr(S.String)),
|
|
273
|
-
expiresAt: S.optional(S.NullOr(S.String)),
|
|
274
|
-
createdAt: S.String,
|
|
275
|
-
updatedAt: S.String,
|
|
276
|
-
runId: S.String,
|
|
277
|
-
publicAccessToken: S.String,
|
|
278
|
-
isCached: S.Boolean,
|
|
279
|
-
})).annotate({ identifier: "CreateSessionV1Response" });
|
|
280
|
-
export const CreateWaitpointTokenV1RequestTagsCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
281
|
-
export const CreateWaitpointTokenV1RequestTags = S.Unknown;
|
|
282
|
-
export const CreateWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
283
|
-
idempotencyKey: S.optional(S.String),
|
|
284
|
-
idempotencyKeyTTL: S.optional(S.String),
|
|
285
|
-
timeout: S.optional(S.String),
|
|
286
|
-
tags: S.optional(CreateWaitpointTokenV1RequestTags),
|
|
287
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/waitpoints/tokens", code: 200 }))).annotate({
|
|
288
|
-
identifier: "CreateWaitpointTokenV1Request",
|
|
289
|
-
});
|
|
290
|
-
export const CreateWaitpointTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
291
|
-
id: S.String,
|
|
292
|
-
isCached: S.Boolean,
|
|
293
|
-
url: S.String,
|
|
294
|
-
})).annotate({
|
|
295
|
-
identifier: "CreateWaitpointTokenResponse",
|
|
296
|
-
});
|
|
297
|
-
export const DeactivateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
298
|
-
schedule_id: S.String.pipe(T.Label()),
|
|
299
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/schedules/{schedule_id}/deactivate", code: 200 }))).annotate({
|
|
300
|
-
identifier: "DeactivateScheduleV1Request",
|
|
301
|
-
});
|
|
302
|
-
export const DeleteProjectEnvvarV1RequestEnv = S.String;
|
|
303
|
-
export const DeleteProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
304
|
-
projectRef: S.String.pipe(T.Label()),
|
|
305
|
-
env: DeleteProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
306
|
-
name: S.String.pipe(T.Label()),
|
|
307
|
-
}).pipe(T.Http({
|
|
308
|
-
method: "DELETE",
|
|
309
|
-
uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}",
|
|
310
|
-
code: 200,
|
|
311
|
-
}))).annotate({
|
|
312
|
-
identifier: "DeleteProjectEnvvarV1Request",
|
|
313
|
-
});
|
|
314
|
-
export const DeleteScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
315
|
-
schedule_id: S.String.pipe(T.Label()),
|
|
316
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/api/v1/schedules/{schedule_id}", code: 200 }))).annotate({ identifier: "DeleteScheduleV1Request" });
|
|
317
|
-
export const DeleteScheduleV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
318
|
-
identifier: "DeleteScheduleV1Response",
|
|
319
|
-
});
|
|
320
|
-
export const ExecuteQueryV1RequestScope = S.String;
|
|
321
|
-
export const ExecuteQueryV1RequestFormat = S.String;
|
|
322
|
-
export const ExecuteQueryV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
query: S.String,
|
|
324
|
-
scope: S.optional(ExecuteQueryV1RequestScope),
|
|
325
|
-
period: S.optional(S.NullOr(S.String)),
|
|
326
|
-
from: S.optional(S.NullOr(S.String)),
|
|
327
|
-
to: S.optional(S.NullOr(S.String)),
|
|
328
|
-
format: S.optional(ExecuteQueryV1RequestFormat),
|
|
329
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/query", code: 200 }))).annotate({ identifier: "ExecuteQueryV1Request" });
|
|
330
|
-
export const ExecuteQueryResponseCase0Format = S.String;
|
|
331
|
-
export const ExecuteQueryResponseCase0ResultsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
332
|
-
export const ExecuteQueryResponseCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
333
|
-
format: S.optional(ExecuteQueryResponseCase0Format),
|
|
334
|
-
results: S.optional(ExecuteQueryResponseCase0ResultsList),
|
|
335
|
-
})).annotate({
|
|
336
|
-
identifier: "ExecuteQueryResponseCase0",
|
|
337
|
-
});
|
|
338
|
-
export const ExecuteQueryResponseCase1Format = S.String;
|
|
339
|
-
export const ExecuteQueryResponseCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
|
-
format: S.optional(ExecuteQueryResponseCase1Format),
|
|
341
|
-
results: S.optional(S.String),
|
|
342
|
-
})).annotate({
|
|
343
|
-
identifier: "ExecuteQueryResponseCase1",
|
|
344
|
-
});
|
|
345
|
-
export const ExecuteQueryResponse = S.Unknown;
|
|
346
|
-
export const ExecuteQueryV1Response = /*@__PURE__*/ S.suspend(() => ExecuteQueryResponse.pipe(T.RawResponseRoot())).annotate({ identifier: "ExecuteQueryV1Response" });
|
|
347
|
-
export const GetBatchResultsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
348
|
-
batchId: S.String.pipe(T.Label()),
|
|
349
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}/results", code: 200 }))).annotate({ identifier: "GetBatchResultsV1Request" });
|
|
350
|
-
export const GetBatchResultsV1ResponseItemsItemUsage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
-
durationMs: S.optional(S.Number),
|
|
352
|
-
})).annotate({
|
|
353
|
-
identifier: "GetBatchResultsV1ResponseItemsItemUsage",
|
|
354
|
-
});
|
|
355
|
-
export const GetBatchResultsV1ResponseItemsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
356
|
-
ok: S.Boolean,
|
|
357
|
-
id: S.String,
|
|
358
|
-
output: S.optional(S.String),
|
|
359
|
-
outputType: S.optional(S.String),
|
|
360
|
-
error: S.optional(S.Unknown),
|
|
361
|
-
usage: S.optional(GetBatchResultsV1ResponseItemsItemUsage),
|
|
362
|
-
taskIdentifier: S.optional(S.String),
|
|
363
|
-
})).annotate({
|
|
364
|
-
identifier: "GetBatchResultsV1ResponseItemsItem",
|
|
365
|
-
});
|
|
366
|
-
export const GetBatchResultsV1ResponseItemsList = /*@__PURE__*/ S.Array(GetBatchResultsV1ResponseItemsItem);
|
|
367
|
-
export const GetBatchResultsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
-
id: S.optional(S.String),
|
|
369
|
-
items: S.optional(GetBatchResultsV1ResponseItemsList),
|
|
370
|
-
})).annotate({
|
|
371
|
-
identifier: "GetBatchResultsV1Response",
|
|
372
|
-
});
|
|
373
|
-
export const GetBatchV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
374
|
-
batchId: S.String.pipe(T.Label()),
|
|
375
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/batches/{batchId}", code: 200 }))).annotate({ identifier: "GetBatchV1Request" });
|
|
376
|
-
export const GetBatchV1ResponseStatus = S.String;
|
|
377
|
-
export const GetBatchV1ResponseRunsList = /*@__PURE__*/ S.Array(S.String);
|
|
378
|
-
export const GetBatchV1ResponseErrorsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
379
|
-
index: S.optional(S.Number),
|
|
380
|
-
taskIdentifier: S.optional(S.String),
|
|
381
|
-
error: S.optional(S.Unknown),
|
|
382
|
-
errorCode: S.optional(S.NullOr(S.String)),
|
|
383
|
-
})).annotate({
|
|
384
|
-
identifier: "GetBatchV1ResponseErrorsItem",
|
|
385
|
-
});
|
|
386
|
-
export const GetBatchV1ResponseErrorsList = /*@__PURE__*/ S.Array(GetBatchV1ResponseErrorsItem);
|
|
387
|
-
export const GetBatchV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
-
id: S.optional(S.String),
|
|
389
|
-
status: S.optional(GetBatchV1ResponseStatus),
|
|
390
|
-
idempotencyKey: S.optional(S.NullOr(S.String)),
|
|
391
|
-
createdAt: S.optional(S.String),
|
|
392
|
-
updatedAt: S.optional(S.String),
|
|
393
|
-
runCount: S.optional(S.Number),
|
|
394
|
-
runs: S.optional(GetBatchV1ResponseRunsList),
|
|
395
|
-
successfulRunCount: S.optional(S.NullOr(S.Number)),
|
|
396
|
-
failedRunCount: S.optional(S.NullOr(S.Number)),
|
|
397
|
-
errors: S.optional(S.NullOr(GetBatchV1ResponseErrorsList)),
|
|
398
|
-
})).annotate({ identifier: "GetBatchV1Response" });
|
|
399
|
-
export const GetBulkActionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
400
|
-
bulkActionId: S.String.pipe(T.Label()),
|
|
401
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions/{bulkActionId}", code: 200 }))).annotate({ identifier: "GetBulkActionV1Request" });
|
|
402
|
-
export const BulkActionObjectType = S.String;
|
|
403
|
-
export const BulkActionObjectStatus = S.String;
|
|
404
|
-
export const BulkActionObjectCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
405
|
-
total: S.Number,
|
|
406
|
-
success: S.Number,
|
|
407
|
-
failure: S.Number,
|
|
408
|
-
})).annotate({ identifier: "BulkActionObjectCounts" });
|
|
409
|
-
export const BulkActionObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
410
|
-
id: S.String,
|
|
411
|
-
name: S.optional(S.String),
|
|
412
|
-
type: BulkActionObjectType,
|
|
413
|
-
status: BulkActionObjectStatus,
|
|
414
|
-
counts: BulkActionObjectCounts,
|
|
415
|
-
createdAt: S.String,
|
|
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)),
|
|
428
|
-
})).annotate({
|
|
429
|
-
identifier: "ConcurrencyLimitObjectPerKey",
|
|
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" });
|
|
448
|
-
export const GetDeploymentV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
449
|
-
deploymentId: S.String.pipe(T.Label()),
|
|
450
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments/{deploymentId}", code: 200 }))).annotate({ identifier: "GetDeploymentV1Request" });
|
|
451
|
-
export const GetDeploymentV1ResponseStatus = S.String;
|
|
452
|
-
export const GetDeploymentV1ResponseWorkerTasksItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
453
|
-
id: S.optional(S.String),
|
|
454
|
-
slug: S.optional(S.String),
|
|
455
|
-
filePath: S.optional(S.String),
|
|
456
|
-
exportName: S.optional(S.String),
|
|
457
|
-
})).annotate({
|
|
458
|
-
identifier: "GetDeploymentV1ResponseWorkerTasksItem",
|
|
459
|
-
});
|
|
460
|
-
export const GetDeploymentV1ResponseWorkerTasksList = /*@__PURE__*/ S.Array(GetDeploymentV1ResponseWorkerTasksItem);
|
|
461
|
-
export const GetDeploymentV1ResponseWorker = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
462
|
-
id: S.optional(S.String),
|
|
463
|
-
version: S.optional(S.String),
|
|
464
|
-
tasks: S.optional(GetDeploymentV1ResponseWorkerTasksList),
|
|
465
|
-
})).annotate({
|
|
466
|
-
identifier: "GetDeploymentV1ResponseWorker",
|
|
467
|
-
});
|
|
468
|
-
export const GetDeploymentV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
|
-
id: S.optional(S.String),
|
|
470
|
-
status: S.optional(GetDeploymentV1ResponseStatus),
|
|
471
|
-
contentHash: S.optional(S.String),
|
|
472
|
-
shortCode: S.optional(S.String),
|
|
473
|
-
version: S.optional(S.String),
|
|
474
|
-
imageReference: S.optional(S.NullOr(S.String)),
|
|
475
|
-
imagePlatform: S.optional(S.String),
|
|
476
|
-
externalId: S.optional(S.String),
|
|
477
|
-
externalBuildData: S.optional(S.NullOr(S.Unknown)),
|
|
478
|
-
errorData: S.optional(S.NullOr(S.Unknown)),
|
|
479
|
-
worker: S.optional(S.NullOr(GetDeploymentV1ResponseWorker)),
|
|
480
|
-
})).annotate({ identifier: "GetDeploymentV1Response" });
|
|
481
|
-
export const GetErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
482
|
-
errorId: S.String.pipe(T.Label()),
|
|
483
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/errors/{errorId}", code: 200 }))).annotate({ identifier: "GetErrorV1Request" });
|
|
484
|
-
export const ErrorObjectAffectedVersionsList = /*@__PURE__*/ S.Array(S.String);
|
|
485
|
-
export const ErrorObjectStatus = S.String;
|
|
486
|
-
export const ErrorObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
487
|
-
id: S.String,
|
|
488
|
-
fingerprint: S.String,
|
|
489
|
-
taskIdentifier: S.String,
|
|
490
|
-
errorType: S.String,
|
|
491
|
-
errorMessage: S.String,
|
|
492
|
-
count: S.Number,
|
|
493
|
-
firstSeen: S.String,
|
|
494
|
-
lastSeen: S.String,
|
|
495
|
-
affectedVersions: ErrorObjectAffectedVersionsList,
|
|
496
|
-
status: ErrorObjectStatus,
|
|
497
|
-
resolvedAt: S.optional(S.NullOr(S.String)),
|
|
498
|
-
resolvedInVersion: S.optional(S.NullOr(S.String)),
|
|
499
|
-
resolvedBy: S.optional(S.NullOr(S.String)),
|
|
500
|
-
ignoredAt: S.optional(S.NullOr(S.String)),
|
|
501
|
-
ignoredUntil: S.optional(S.NullOr(S.String)),
|
|
502
|
-
ignoredReason: S.optional(S.NullOr(S.String)),
|
|
503
|
-
ignoredByUserId: S.optional(S.NullOr(S.String)),
|
|
504
|
-
ignoredUntilOccurrenceRate: S.optional(S.NullOr(S.Number)),
|
|
505
|
-
ignoredUntilTotalOccurrences: S.optional(S.NullOr(S.Number)),
|
|
506
|
-
})).annotate({ identifier: "ErrorObject" });
|
|
507
|
-
export const GetLatestDeploymentV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments/latest", code: 200 }))).annotate({
|
|
508
|
-
identifier: "GetLatestDeploymentV1Request",
|
|
509
|
-
});
|
|
510
|
-
export const GetLatestDeploymentV1ResponseStatus = S.String;
|
|
511
|
-
export const GetLatestDeploymentV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
512
|
-
id: S.optional(S.String),
|
|
513
|
-
status: S.optional(GetLatestDeploymentV1ResponseStatus),
|
|
514
|
-
contentHash: S.optional(S.String),
|
|
515
|
-
shortCode: S.optional(S.String),
|
|
516
|
-
version: S.optional(S.String),
|
|
517
|
-
imageReference: S.optional(S.NullOr(S.String)),
|
|
518
|
-
errorData: S.optional(S.NullOr(S.Unknown)),
|
|
519
|
-
})).annotate({
|
|
520
|
-
identifier: "GetLatestDeploymentV1Response",
|
|
521
|
-
});
|
|
522
|
-
export const GetProjectEnvvarV1RequestEnv = S.String;
|
|
523
|
-
export const GetProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
524
|
-
projectRef: S.String.pipe(T.Label()),
|
|
525
|
-
env: GetProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
526
|
-
name: S.String.pipe(T.Label()),
|
|
527
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}", code: 200 }))).annotate({
|
|
528
|
-
identifier: "GetProjectEnvvarV1Request",
|
|
529
|
-
});
|
|
530
|
-
export const EnvVarValue = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
531
|
-
value: S.String,
|
|
532
|
-
})).annotate({ identifier: "EnvVarValue" });
|
|
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({
|
|
536
|
-
name: S.optional(S.String),
|
|
537
|
-
type: S.optional(S.String),
|
|
538
|
-
description: S.optional(S.String),
|
|
539
|
-
example: S.optional(S.String),
|
|
540
|
-
allowedValues: S.optional(GetQuerySchemaV1ResponseTablesItemColumnsItemAllowedValuesList),
|
|
541
|
-
coreColumn: S.optional(S.Boolean),
|
|
542
|
-
})).annotate({
|
|
543
|
-
identifier: "GetQuerySchemaV1ResponseTablesItemColumnsItem",
|
|
544
|
-
});
|
|
545
|
-
export const GetQuerySchemaV1ResponseTablesItemColumnsList = /*@__PURE__*/ S.Array(GetQuerySchemaV1ResponseTablesItemColumnsItem);
|
|
546
|
-
export const GetQuerySchemaV1ResponseTablesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
547
|
-
name: S.optional(S.String),
|
|
548
|
-
description: S.optional(S.String),
|
|
549
|
-
timeColumn: S.optional(S.String),
|
|
550
|
-
columns: S.optional(GetQuerySchemaV1ResponseTablesItemColumnsList),
|
|
551
|
-
})).annotate({
|
|
552
|
-
identifier: "GetQuerySchemaV1ResponseTablesItem",
|
|
553
|
-
});
|
|
554
|
-
export const GetQuerySchemaV1ResponseTablesList = /*@__PURE__*/ S.Array(GetQuerySchemaV1ResponseTablesItem);
|
|
555
|
-
export const GetQuerySchemaV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
556
|
-
tables: S.optional(GetQuerySchemaV1ResponseTablesList),
|
|
557
|
-
})).annotate({ identifier: "GetQuerySchemaV1Response" });
|
|
558
|
-
export const GetQueueV1RequestType = S.String;
|
|
559
|
-
export const GetQueueV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
|
-
queueParam: S.String.pipe(T.Label()),
|
|
561
|
-
type: S.optional(GetQueueV1RequestType.pipe(T.Query())),
|
|
562
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/queues/{queueParam}", code: 200 }))).annotate({ identifier: "GetQueueV1Request" });
|
|
563
|
-
export const QueueObjectType = S.String;
|
|
564
|
-
export const QueueObjectVersion = S.String;
|
|
565
|
-
export const QueueObjectConcurrency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
566
|
-
current: S.optional(S.NullOr(S.Number)),
|
|
567
|
-
base: S.optional(S.NullOr(S.Number)),
|
|
568
|
-
override: S.optional(S.NullOr(S.Number)),
|
|
569
|
-
overriddenAt: S.optional(S.NullOr(S.String)),
|
|
570
|
-
overriddenBy: S.optional(S.NullOr(S.String)),
|
|
571
|
-
})).annotate({ identifier: "QueueObjectConcurrency" });
|
|
572
|
-
export const QueueObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
573
|
-
id: S.String,
|
|
574
|
-
name: S.String,
|
|
575
|
-
type: QueueObjectType,
|
|
576
|
-
version: QueueObjectVersion,
|
|
577
|
-
running: S.Number,
|
|
578
|
-
queued: S.Number,
|
|
579
|
-
paused: S.Boolean,
|
|
580
|
-
concurrencyLimit: S.optional(S.NullOr(S.Number)),
|
|
581
|
-
concurrency: S.optional(QueueObjectConcurrency),
|
|
582
|
-
})).annotate({ identifier: "QueueObject" });
|
|
583
|
-
export const GetRunEventsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
584
|
-
runId: S.String.pipe(T.Label()),
|
|
585
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/events", code: 200 }))).annotate({ identifier: "GetRunEventsV1Request" });
|
|
586
|
-
export const GetRunEventsV1ResponseEventsItemLevel = S.String;
|
|
587
|
-
export const GetRunEventsV1ResponseEventsItemKind = S.String;
|
|
588
|
-
export const GetRunEventsV1ResponseEventsItemEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
589
|
-
name: S.optional(S.String),
|
|
590
|
-
time: S.optional(S.String),
|
|
591
|
-
properties: S.optional(S.Unknown),
|
|
592
|
-
})).annotate({
|
|
593
|
-
identifier: "GetRunEventsV1ResponseEventsItemEventsItem",
|
|
594
|
-
});
|
|
595
|
-
export const GetRunEventsV1ResponseEventsItemEventsList = /*@__PURE__*/ S.Array(GetRunEventsV1ResponseEventsItemEventsItem);
|
|
596
|
-
export const GetRunEventsV1ResponseEventsItemStyleAccessoryStyle = S.String;
|
|
597
|
-
export const GetRunEventsV1ResponseEventsItemStyleAccessory = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
598
|
-
text: S.optional(S.String),
|
|
599
|
-
style: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessoryStyle),
|
|
600
|
-
})).annotate({
|
|
601
|
-
identifier: "GetRunEventsV1ResponseEventsItemStyleAccessory",
|
|
602
|
-
});
|
|
603
|
-
export const GetRunEventsV1ResponseEventsItemStyle = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
604
|
-
icon: S.optional(S.String),
|
|
605
|
-
variant: S.optional(S.String),
|
|
606
|
-
accessory: S.optional(GetRunEventsV1ResponseEventsItemStyleAccessory),
|
|
607
|
-
})).annotate({
|
|
608
|
-
identifier: "GetRunEventsV1ResponseEventsItemStyle",
|
|
609
|
-
});
|
|
610
|
-
export const GetRunEventsV1ResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
611
|
-
spanId: S.optional(S.String),
|
|
612
|
-
parentId: S.optional(S.NullOr(S.String)),
|
|
613
|
-
runId: S.optional(S.NullOr(S.String)),
|
|
614
|
-
message: S.optional(S.String),
|
|
615
|
-
startTime: S.optional(S.String),
|
|
616
|
-
duration: S.optional(S.Number),
|
|
617
|
-
isError: S.optional(S.Boolean),
|
|
618
|
-
isPartial: S.optional(S.Boolean),
|
|
619
|
-
isCancelled: S.optional(S.Boolean),
|
|
620
|
-
level: S.optional(GetRunEventsV1ResponseEventsItemLevel),
|
|
621
|
-
kind: S.optional(GetRunEventsV1ResponseEventsItemKind),
|
|
622
|
-
attemptNumber: S.optional(S.NullOr(S.Number)),
|
|
623
|
-
taskSlug: S.optional(S.String),
|
|
624
|
-
events: S.optional(GetRunEventsV1ResponseEventsItemEventsList),
|
|
625
|
-
style: S.optional(GetRunEventsV1ResponseEventsItemStyle),
|
|
626
|
-
})).annotate({
|
|
627
|
-
identifier: "GetRunEventsV1ResponseEventsItem",
|
|
628
|
-
});
|
|
629
|
-
export const GetRunEventsV1ResponseEventsList = /*@__PURE__*/ S.Array(GetRunEventsV1ResponseEventsItem);
|
|
630
|
-
export const GetRunEventsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
631
|
-
events: S.optional(GetRunEventsV1ResponseEventsList),
|
|
632
|
-
})).annotate({ identifier: "GetRunEventsV1Response" });
|
|
633
|
-
export const GetRunResultV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
634
|
-
runId: S.String.pipe(T.Label()),
|
|
635
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/result", code: 200 }))).annotate({ identifier: "GetRunResultV1Request" });
|
|
636
|
-
export const GetRunResultV1ResponseUsage = GetBatchResultsV1ResponseItemsItemUsage;
|
|
637
|
-
export const GetRunResultV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
638
|
-
ok: S.Boolean,
|
|
639
|
-
id: S.String,
|
|
640
|
-
output: S.optional(S.String),
|
|
641
|
-
outputType: S.optional(S.String),
|
|
642
|
-
error: S.optional(S.Unknown),
|
|
643
|
-
usage: S.optional(GetBatchResultsV1ResponseItemsItemUsage),
|
|
644
|
-
taskIdentifier: S.optional(S.String),
|
|
645
|
-
})).annotate({ identifier: "GetRunResultV1Response" });
|
|
646
|
-
export const GetRunTraceV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
647
|
-
runId: S.String.pipe(T.Label()),
|
|
648
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs/{runId}/trace", code: 200 }))).annotate({ identifier: "GetRunTraceV1Request" });
|
|
649
|
-
export const SpanDetailedSummaryDataLevel = S.String;
|
|
650
|
-
export const SpanDetailedSummaryDataEventsItem = GetRunEventsV1ResponseEventsItemEventsItem;
|
|
651
|
-
export const SpanDetailedSummaryDataEventsList = /*@__PURE__*/ S.Array(GetRunEventsV1ResponseEventsItemEventsItem);
|
|
652
|
-
export const SpanDetailedSummaryData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
653
|
-
message: S.optional(S.String),
|
|
654
|
-
taskSlug: S.optional(S.String),
|
|
655
|
-
startTime: S.optional(S.String),
|
|
656
|
-
duration: S.optional(S.Number),
|
|
657
|
-
isError: S.optional(S.Boolean),
|
|
658
|
-
isPartial: S.optional(S.Boolean),
|
|
659
|
-
isCancelled: S.optional(S.Boolean),
|
|
660
|
-
level: S.optional(SpanDetailedSummaryDataLevel),
|
|
661
|
-
attemptNumber: S.optional(S.NullOr(S.Number)),
|
|
662
|
-
properties: S.optional(S.Unknown),
|
|
663
|
-
events: S.optional(SpanDetailedSummaryDataEventsList),
|
|
664
|
-
})).annotate({ identifier: "SpanDetailedSummaryData" });
|
|
665
|
-
export const SpanDetailedSummaryChildrenList = /*@__PURE__*/ S.Array(S.suspend(() => SpanDetailedSummary));
|
|
666
|
-
export const SpanDetailedSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
667
|
-
id: S.optional(S.String),
|
|
668
|
-
parentId: S.optional(S.NullOr(S.String)),
|
|
669
|
-
runId: S.optional(S.String),
|
|
670
|
-
data: S.optional(SpanDetailedSummaryData),
|
|
671
|
-
children: S.optional(SpanDetailedSummaryChildrenList),
|
|
672
|
-
})).annotate({ identifier: "SpanDetailedSummary" });
|
|
673
|
-
export const GetRunTraceV1ResponseTrace = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
674
|
-
traceId: S.optional(S.String),
|
|
675
|
-
rootSpan: S.optional(SpanDetailedSummary),
|
|
676
|
-
})).annotate({
|
|
677
|
-
identifier: "GetRunTraceV1ResponseTrace",
|
|
678
|
-
});
|
|
679
|
-
export const GetRunTraceV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
680
|
-
trace: S.optional(GetRunTraceV1ResponseTrace),
|
|
681
|
-
})).annotate({ identifier: "GetRunTraceV1Response" });
|
|
682
|
-
export const GetRunV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
683
|
-
runId: S.String.pipe(T.Label()),
|
|
684
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v3/runs/{runId}", code: 200 }))).annotate({ identifier: "GetRunV1Request" });
|
|
685
|
-
export const GetRunV1ResponseStatus = S.String;
|
|
686
|
-
export const GetRunV1ResponseTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
687
|
-
export const GetRunV1ResponseTriggerFunction = S.String;
|
|
688
|
-
export const CommonRunObjectStatus = S.String;
|
|
689
|
-
export const CommonRunObjectTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
690
|
-
export const CommonRunObjectTriggerFunction = S.String;
|
|
691
|
-
export const CommonRunObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
692
|
-
id: S.String,
|
|
693
|
-
status: CommonRunObjectStatus,
|
|
694
|
-
taskIdentifier: S.String,
|
|
695
|
-
version: S.optional(S.String),
|
|
696
|
-
idempotencyKey: S.optional(S.String),
|
|
697
|
-
createdAt: S.String,
|
|
698
|
-
updatedAt: S.String,
|
|
699
|
-
isTest: S.optional(S.Boolean),
|
|
700
|
-
startedAt: S.optional(S.String),
|
|
701
|
-
finishedAt: S.optional(S.String),
|
|
702
|
-
delayedUntil: S.optional(S.String),
|
|
703
|
-
ttl: S.optional(S.Unknown),
|
|
704
|
-
expiredAt: S.optional(S.String),
|
|
705
|
-
tags: S.optional(CommonRunObjectTagsList),
|
|
706
|
-
metadata: S.optional(S.Unknown),
|
|
707
|
-
costInCents: S.optional(S.Number),
|
|
708
|
-
baseCostInCents: S.optional(S.Number),
|
|
709
|
-
durationMs: S.optional(S.Number),
|
|
710
|
-
depth: S.optional(S.Number),
|
|
711
|
-
batchId: S.optional(S.String),
|
|
712
|
-
triggerFunction: S.optional(CommonRunObjectTriggerFunction),
|
|
713
|
-
})).annotate({ identifier: "CommonRunObject" });
|
|
714
|
-
export const GetRunV1ResponseRelatedRunsChildrenList = /*@__PURE__*/ S.Array(CommonRunObject);
|
|
715
|
-
export const GetRunV1ResponseRelatedRuns = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
716
|
-
root: S.optional(CommonRunObject),
|
|
717
|
-
parent: S.optional(CommonRunObject),
|
|
718
|
-
children: S.optional(GetRunV1ResponseRelatedRunsChildrenList),
|
|
719
|
-
})).annotate({
|
|
720
|
-
identifier: "GetRunV1ResponseRelatedRuns",
|
|
721
|
-
});
|
|
722
|
-
export const GetRunV1ResponseScheduleGeneratorType = S.String;
|
|
723
|
-
export const GetRunV1ResponseScheduleGenerator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
724
|
-
type: S.optional(GetRunV1ResponseScheduleGeneratorType),
|
|
725
|
-
expression: S.optional(S.String),
|
|
726
|
-
description: S.optional(S.String),
|
|
727
|
-
})).annotate({
|
|
728
|
-
identifier: "GetRunV1ResponseScheduleGenerator",
|
|
729
|
-
});
|
|
730
|
-
export const GetRunV1ResponseSchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
731
|
-
id: S.String,
|
|
732
|
-
externalId: S.optional(S.String),
|
|
733
|
-
deduplicationKey: S.optional(S.String),
|
|
734
|
-
generator: GetRunV1ResponseScheduleGenerator,
|
|
735
|
-
})).annotate({ identifier: "GetRunV1ResponseSchedule" });
|
|
736
|
-
export const GetRunV1ResponseAttemptsItemStatus = S.String;
|
|
737
|
-
export const SerializedError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
738
|
-
message: S.String,
|
|
739
|
-
name: S.optional(S.String),
|
|
740
|
-
stackTrace: S.optional(S.String),
|
|
741
|
-
})).annotate({ identifier: "SerializedError" });
|
|
742
|
-
export const GetRunV1ResponseAttemptsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
743
|
-
id: S.String,
|
|
744
|
-
status: GetRunV1ResponseAttemptsItemStatus,
|
|
745
|
-
error: S.optional(SerializedError),
|
|
746
|
-
createdAt: S.String,
|
|
747
|
-
updatedAt: S.String,
|
|
748
|
-
startedAt: S.optional(S.String),
|
|
749
|
-
completedAt: S.optional(S.String),
|
|
750
|
-
})).annotate({
|
|
751
|
-
identifier: "GetRunV1ResponseAttemptsItem",
|
|
752
|
-
});
|
|
753
|
-
export const GetRunV1ResponseAttemptsList = /*@__PURE__*/ S.Array(GetRunV1ResponseAttemptsItem);
|
|
754
|
-
export const GetRunV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
755
|
-
id: S.String,
|
|
756
|
-
status: GetRunV1ResponseStatus,
|
|
757
|
-
taskIdentifier: S.String,
|
|
758
|
-
version: S.optional(S.String),
|
|
759
|
-
idempotencyKey: S.optional(S.String),
|
|
760
|
-
createdAt: S.String,
|
|
761
|
-
updatedAt: S.String,
|
|
762
|
-
isTest: S.optional(S.Boolean),
|
|
763
|
-
startedAt: S.optional(S.String),
|
|
764
|
-
finishedAt: S.optional(S.String),
|
|
765
|
-
delayedUntil: S.optional(S.String),
|
|
766
|
-
ttl: S.optional(S.Unknown),
|
|
767
|
-
expiredAt: S.optional(S.String),
|
|
768
|
-
tags: S.optional(GetRunV1ResponseTagsList),
|
|
769
|
-
metadata: S.optional(S.Unknown),
|
|
770
|
-
costInCents: S.optional(S.Number),
|
|
771
|
-
baseCostInCents: S.optional(S.Number),
|
|
772
|
-
durationMs: S.optional(S.Number),
|
|
773
|
-
depth: S.optional(S.Number),
|
|
774
|
-
batchId: S.optional(S.String),
|
|
775
|
-
triggerFunction: S.optional(GetRunV1ResponseTriggerFunction),
|
|
776
|
-
payload: S.optional(S.Unknown),
|
|
777
|
-
payloadPresignedUrl: S.optional(S.String),
|
|
778
|
-
output: S.optional(S.Unknown),
|
|
779
|
-
outputPresignedUrl: S.optional(S.String),
|
|
780
|
-
relatedRuns: S.optional(GetRunV1ResponseRelatedRuns),
|
|
781
|
-
schedule: S.optional(GetRunV1ResponseSchedule),
|
|
782
|
-
attempts: GetRunV1ResponseAttemptsList,
|
|
783
|
-
})).annotate({ identifier: "GetRunV1Response" });
|
|
784
|
-
export const GetScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
785
|
-
schedule_id: S.String.pipe(T.Label()),
|
|
786
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules/{schedule_id}", code: 200 }))).annotate({ identifier: "GetScheduleV1Request" });
|
|
787
|
-
export const GetSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
788
|
-
session: S.String.pipe(T.Label()),
|
|
789
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions/{session}", code: 200 }))).annotate({ identifier: "GetSessionV1Request" });
|
|
790
|
-
export const GetTimezonesV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
791
|
-
excludeUtc: S.optional(S.Boolean.pipe(T.Query())),
|
|
792
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/timezones", code: 200 }))).annotate({ identifier: "GetTimezonesV1Request" });
|
|
793
|
-
export const GetTimezonesResultTimezonesList = /*@__PURE__*/ S.Array(S.String);
|
|
794
|
-
export const GetTimezonesResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
795
|
-
timezones: S.optional(GetTimezonesResultTimezonesList),
|
|
796
|
-
})).annotate({ identifier: "GetTimezonesResult" });
|
|
797
|
-
export const GetWaitpointTokenV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
798
|
-
waitpointId: S.String.pipe(T.Label()),
|
|
799
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/waitpoints/tokens/{waitpointId}", code: 200 }))).annotate({
|
|
800
|
-
identifier: "GetWaitpointTokenV1Request",
|
|
801
|
-
});
|
|
802
|
-
export const WaitpointTokenObjectStatus = S.String;
|
|
803
|
-
export const WaitpointTokenObjectTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
804
|
-
export const WaitpointTokenObject = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
805
|
-
id: S.String,
|
|
806
|
-
url: S.String,
|
|
807
|
-
status: WaitpointTokenObjectStatus,
|
|
808
|
-
idempotencyKey: S.optional(S.NullOr(S.String)),
|
|
809
|
-
idempotencyKeyExpiresAt: S.optional(S.NullOr(S.String)),
|
|
810
|
-
timeoutAt: S.optional(S.NullOr(S.String)),
|
|
811
|
-
completedAt: S.optional(S.NullOr(S.String)),
|
|
812
|
-
output: S.optional(S.NullOr(S.String)),
|
|
813
|
-
outputType: S.optional(S.NullOr(S.String)),
|
|
814
|
-
outputIsError: S.optional(S.NullOr(S.Boolean)),
|
|
815
|
-
tags: WaitpointTokenObjectTagsList,
|
|
816
|
-
createdAt: S.String,
|
|
817
|
-
})).annotate({ identifier: "WaitpointTokenObject" });
|
|
818
|
-
export const IgnoreErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
819
|
-
errorId: S.String.pipe(T.Label()),
|
|
820
|
-
duration: S.optional(S.Number),
|
|
821
|
-
occurrenceRate: S.optional(S.Number),
|
|
822
|
-
totalOccurrences: S.optional(S.Number),
|
|
823
|
-
reason: S.optional(S.String),
|
|
824
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/ignore", code: 200 }))).annotate({ identifier: "IgnoreErrorV1Request" });
|
|
825
|
-
export const ListBulkActionsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
826
|
-
size: S.optional(S.Number),
|
|
827
|
-
after: S.optional(S.String),
|
|
828
|
-
before: S.optional(S.String),
|
|
829
|
-
})).annotate({
|
|
830
|
-
identifier: "ListBulkActionsV1RequestPage",
|
|
831
|
-
});
|
|
832
|
-
export const ListBulkActionsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
833
|
-
page: S.optional(ListBulkActionsV1RequestPage.pipe(T.Query())),
|
|
834
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/bulk-actions", code: 200 }))).annotate({ identifier: "ListBulkActionsV1Request" });
|
|
835
|
-
export const ListBulkActionsResultDataList = /*@__PURE__*/ S.Array(BulkActionObject);
|
|
836
|
-
export const ListBulkActionsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
837
|
-
next: S.optional(S.String),
|
|
838
|
-
previous: S.optional(S.String),
|
|
839
|
-
})).annotate({
|
|
840
|
-
identifier: "ListBulkActionsResultPagination",
|
|
841
|
-
});
|
|
842
|
-
export const ListBulkActionsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
843
|
-
data: ListBulkActionsResultDataList,
|
|
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),
|
|
857
|
-
})).annotate({
|
|
858
|
-
identifier: "ListConcurrencyLimitsV1ResponsePagination",
|
|
859
|
-
});
|
|
860
|
-
export const ListConcurrencyLimitsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
861
|
-
data: S.optional(ListConcurrencyLimitsV1ResponseDataList),
|
|
862
|
-
pagination: S.optional(ListConcurrencyLimitsV1ResponsePagination),
|
|
863
|
-
})).annotate({
|
|
864
|
-
identifier: "ListConcurrencyLimitsV1Response",
|
|
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" });
|
|
867
|
-
export const ListDashboardsV1ResponseDashboardsItemWidgetsItemType = S.String;
|
|
868
|
-
export const ListDashboardsV1ResponseDashboardsItemWidgetsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
869
|
-
id: S.optional(S.String),
|
|
870
|
-
title: S.optional(S.String),
|
|
871
|
-
query: S.optional(S.String),
|
|
872
|
-
type: S.optional(ListDashboardsV1ResponseDashboardsItemWidgetsItemType),
|
|
873
|
-
})).annotate({
|
|
874
|
-
identifier: "ListDashboardsV1ResponseDashboardsItemWidgetsItem",
|
|
875
|
-
});
|
|
876
|
-
export const ListDashboardsV1ResponseDashboardsItemWidgetsList = /*@__PURE__*/ S.Array(ListDashboardsV1ResponseDashboardsItemWidgetsItem);
|
|
877
|
-
export const ListDashboardsV1ResponseDashboardsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
878
|
-
key: S.optional(S.String),
|
|
879
|
-
title: S.optional(S.String),
|
|
880
|
-
widgets: S.optional(ListDashboardsV1ResponseDashboardsItemWidgetsList),
|
|
881
|
-
})).annotate({
|
|
882
|
-
identifier: "ListDashboardsV1ResponseDashboardsItem",
|
|
883
|
-
});
|
|
884
|
-
export const ListDashboardsV1ResponseDashboardsList = /*@__PURE__*/ S.Array(ListDashboardsV1ResponseDashboardsItem);
|
|
885
|
-
export const ListDashboardsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
886
|
-
dashboards: S.optional(ListDashboardsV1ResponseDashboardsList),
|
|
887
|
-
})).annotate({ identifier: "ListDashboardsV1Response" });
|
|
888
|
-
export const ListDeploymentsV1RequestStatus = S.String;
|
|
889
|
-
export const ListDeploymentsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
890
|
-
page_after_: S.optional(S.String.pipe(T.Query("page[after]"))),
|
|
891
|
-
page_size_: S.optional(S.Number.pipe(T.Query("page[size]"))),
|
|
892
|
-
status: S.optional(ListDeploymentsV1RequestStatus.pipe(T.Query())),
|
|
893
|
-
period: S.optional(S.String.pipe(T.Query())),
|
|
894
|
-
from: S.optional(S.String.pipe(T.Query())),
|
|
895
|
-
to: S.optional(S.String.pipe(T.Query())),
|
|
896
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/deployments", code: 200 }))).annotate({ identifier: "ListDeploymentsV1Request" });
|
|
897
|
-
export const ListDeploymentsV1ResponseDataItemStatus = S.String;
|
|
898
|
-
export const ListDeploymentsV1ResponseDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
899
|
-
id: S.optional(S.String),
|
|
900
|
-
createdAt: S.optional(S.String),
|
|
901
|
-
shortCode: S.optional(S.String),
|
|
902
|
-
version: S.optional(S.String),
|
|
903
|
-
runtime: S.optional(S.NullOr(S.String)),
|
|
904
|
-
runtimeVersion: S.optional(S.NullOr(S.String)),
|
|
905
|
-
status: S.optional(ListDeploymentsV1ResponseDataItemStatus),
|
|
906
|
-
deployedAt: S.optional(S.NullOr(S.String)),
|
|
907
|
-
git: S.optional(S.NullOr(S.Unknown)),
|
|
908
|
-
error: S.optional(S.NullOr(S.Unknown)),
|
|
909
|
-
externalId: S.optional(S.String),
|
|
910
|
-
})).annotate({
|
|
911
|
-
identifier: "ListDeploymentsV1ResponseDataItem",
|
|
912
|
-
});
|
|
913
|
-
export const ListDeploymentsV1ResponseDataList = /*@__PURE__*/ S.Array(ListDeploymentsV1ResponseDataItem);
|
|
914
|
-
export const ListDeploymentsV1ResponsePagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
915
|
-
next: S.optional(S.String),
|
|
916
|
-
})).annotate({
|
|
917
|
-
identifier: "ListDeploymentsV1ResponsePagination",
|
|
918
|
-
});
|
|
919
|
-
export const ListDeploymentsV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
920
|
-
data: S.optional(ListDeploymentsV1ResponseDataList),
|
|
921
|
-
pagination: S.optional(ListDeploymentsV1ResponsePagination),
|
|
922
|
-
})).annotate({
|
|
923
|
-
identifier: "ListDeploymentsV1Response",
|
|
924
|
-
});
|
|
925
|
-
export const ListErrorsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
926
|
-
size: S.optional(S.Number),
|
|
927
|
-
after: S.optional(S.String),
|
|
928
|
-
before: S.optional(S.String),
|
|
929
|
-
})).annotate({ identifier: "ListErrorsV1RequestPage" });
|
|
930
|
-
export const ErrorsFilterTaskIdentifierList = /*@__PURE__*/ S.Array(S.String);
|
|
931
|
-
export const ErrorsFilterVersionList = /*@__PURE__*/ S.Array(S.String);
|
|
932
|
-
export const ErrorsFilterStatusItem = S.String;
|
|
933
|
-
export const ErrorsFilterStatusList = /*@__PURE__*/ S.Array(ErrorsFilterStatusItem);
|
|
934
|
-
export const ErrorsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
935
|
-
taskIdentifier: S.optional(ErrorsFilterTaskIdentifierList),
|
|
936
|
-
version: S.optional(ErrorsFilterVersionList),
|
|
937
|
-
status: S.optional(ErrorsFilterStatusList),
|
|
938
|
-
search: S.optional(S.String),
|
|
939
|
-
from: S.optional(S.String),
|
|
940
|
-
to: S.optional(S.String),
|
|
941
|
-
period: S.optional(S.String),
|
|
942
|
-
})).annotate({ identifier: "ErrorsFilter" });
|
|
943
|
-
export const ListErrorsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
944
|
-
page: S.optional(ListErrorsV1RequestPage.pipe(T.Query())),
|
|
945
|
-
filter: S.optional(ErrorsFilter.pipe(T.Query())),
|
|
946
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/errors", code: 200 }))).annotate({ identifier: "ListErrorsV1Request" });
|
|
947
|
-
export const ErrorListItemStatus = S.String;
|
|
948
|
-
export const ErrorListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
949
|
-
id: S.String,
|
|
950
|
-
fingerprint: S.String,
|
|
951
|
-
taskIdentifier: S.String,
|
|
952
|
-
errorType: S.String,
|
|
953
|
-
errorMessage: S.String,
|
|
954
|
-
status: ErrorListItemStatus,
|
|
955
|
-
count: S.Number,
|
|
956
|
-
firstSeen: S.String,
|
|
957
|
-
lastSeen: S.String,
|
|
958
|
-
resolvedAt: S.optional(S.NullOr(S.String)),
|
|
959
|
-
ignoredUntil: S.optional(S.NullOr(S.String)),
|
|
960
|
-
})).annotate({ identifier: "ErrorListItem" });
|
|
961
|
-
export const ListErrorsResultDataList = /*@__PURE__*/ S.Array(ErrorListItem);
|
|
962
|
-
export const ListErrorsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
963
|
-
next: S.optional(S.String),
|
|
964
|
-
previous: S.optional(S.String),
|
|
965
|
-
})).annotate({
|
|
966
|
-
identifier: "ListErrorsResultPagination",
|
|
967
|
-
});
|
|
968
|
-
export const ListErrorsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
969
|
-
data: S.optional(ListErrorsResultDataList),
|
|
970
|
-
pagination: S.optional(ListErrorsResultPagination),
|
|
971
|
-
})).annotate({ identifier: "ListErrorsResult" });
|
|
972
|
-
export const ListProjectEnvvarsV1RequestEnv = S.String;
|
|
973
|
-
export const ListProjectEnvvarsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
974
|
-
projectRef: S.String.pipe(T.Label()),
|
|
975
|
-
env: ListProjectEnvvarsV1RequestEnv.pipe(T.Label()),
|
|
976
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/envvars/{env}", code: 200 }))).annotate({
|
|
977
|
-
identifier: "ListProjectEnvvarsV1Request",
|
|
978
|
-
});
|
|
979
|
-
export const EnvVar = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
980
|
-
name: S.String,
|
|
981
|
-
value: S.String,
|
|
982
|
-
})).annotate({ identifier: "EnvVar" });
|
|
983
|
-
export const ListEnvironmentVariablesResponse = /*@__PURE__*/ S.Array(EnvVar);
|
|
984
|
-
export const ListProjectEnvvarsV1Response = /*@__PURE__*/ S.suspend(() => ListEnvironmentVariablesResponse.pipe(T.RawResponseRoot())).annotate({
|
|
985
|
-
identifier: "ListProjectEnvvarsV1Response",
|
|
986
|
-
});
|
|
987
|
-
export const ListProjectRunsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
988
|
-
size: S.optional(S.Number),
|
|
989
|
-
after: S.optional(S.String),
|
|
990
|
-
before: S.optional(S.String),
|
|
991
|
-
})).annotate({
|
|
992
|
-
identifier: "ListProjectRunsV1RequestPage",
|
|
993
|
-
});
|
|
994
|
-
export const ListProjectRunsV1RequestFilterCreatedAt = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
995
|
-
from: S.optional(S.String),
|
|
996
|
-
to: S.optional(S.String),
|
|
997
|
-
period: S.optional(S.String),
|
|
998
|
-
})).annotate({
|
|
999
|
-
identifier: "ListProjectRunsV1RequestFilterCreatedAt",
|
|
1000
|
-
});
|
|
1001
|
-
export const ListProjectRunsV1RequestFilterStatusItem = S.String;
|
|
1002
|
-
export const ListProjectRunsV1RequestFilterStatusList = /*@__PURE__*/ S.Array(ListProjectRunsV1RequestFilterStatusItem);
|
|
1003
|
-
export const ListProjectRunsV1RequestFilterTaskIdentifierList = /*@__PURE__*/ S.Array(S.String);
|
|
1004
|
-
export const ListProjectRunsV1RequestFilterVersionList = /*@__PURE__*/ S.Array(S.String);
|
|
1005
|
-
export const ListProjectRunsV1RequestFilterTagList = /*@__PURE__*/ S.Array(S.String);
|
|
1006
|
-
export const ListProjectRunsV1RequestFilterEnvItem = S.String;
|
|
1007
|
-
export const ListProjectRunsV1RequestFilterEnvList = /*@__PURE__*/ S.Array(ListProjectRunsV1RequestFilterEnvItem);
|
|
1008
|
-
export const ListProjectRunsV1RequestFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1009
|
-
createdAt: S.optional(ListProjectRunsV1RequestFilterCreatedAt),
|
|
1010
|
-
status: S.optional(ListProjectRunsV1RequestFilterStatusList),
|
|
1011
|
-
taskIdentifier: S.optional(ListProjectRunsV1RequestFilterTaskIdentifierList),
|
|
1012
|
-
version: S.optional(ListProjectRunsV1RequestFilterVersionList),
|
|
1013
|
-
bulkAction: S.optional(S.String),
|
|
1014
|
-
schedule: S.optional(S.String),
|
|
1015
|
-
isTest: S.optional(S.Boolean),
|
|
1016
|
-
tag: S.optional(ListProjectRunsV1RequestFilterTagList),
|
|
1017
|
-
error: S.optional(S.String),
|
|
1018
|
-
env: S.optional(ListProjectRunsV1RequestFilterEnvList),
|
|
1019
|
-
})).annotate({
|
|
1020
|
-
identifier: "ListProjectRunsV1RequestFilter",
|
|
1021
|
-
});
|
|
1022
|
-
export const ListProjectRunsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1023
|
-
projectRef: S.String.pipe(T.Label()),
|
|
1024
|
-
page: S.optional(ListProjectRunsV1RequestPage.pipe(T.Query())),
|
|
1025
|
-
filter: S.optional(ListProjectRunsV1RequestFilter.pipe(T.Query())),
|
|
1026
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/projects/{projectRef}/runs", code: 200 }))).annotate({ identifier: "ListProjectRunsV1Request" });
|
|
1027
|
-
export const ListRunItemStatus = S.String;
|
|
1028
|
-
export const ListRunItemEnv = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1029
|
-
id: S.String,
|
|
1030
|
-
name: S.String,
|
|
1031
|
-
user: S.optional(S.String),
|
|
1032
|
-
})).annotate({ identifier: "ListRunItemEnv" });
|
|
1033
|
-
export const ListRunItemTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1034
|
-
export const ListRunItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1035
|
-
id: S.String,
|
|
1036
|
-
status: ListRunItemStatus,
|
|
1037
|
-
taskIdentifier: S.String,
|
|
1038
|
-
version: S.optional(S.String),
|
|
1039
|
-
env: ListRunItemEnv,
|
|
1040
|
-
idempotencyKey: S.optional(S.String),
|
|
1041
|
-
isTest: S.Boolean,
|
|
1042
|
-
createdAt: S.String,
|
|
1043
|
-
updatedAt: S.String,
|
|
1044
|
-
startedAt: S.optional(S.String),
|
|
1045
|
-
finishedAt: S.optional(S.String),
|
|
1046
|
-
delayedUntil: S.optional(S.String),
|
|
1047
|
-
ttl: S.optional(S.Unknown),
|
|
1048
|
-
expiredAt: S.optional(S.String),
|
|
1049
|
-
tags: S.optional(ListRunItemTagsList),
|
|
1050
|
-
costInCents: S.optional(S.Number),
|
|
1051
|
-
baseCostInCents: S.optional(S.Number),
|
|
1052
|
-
durationMs: S.optional(S.Number),
|
|
1053
|
-
})).annotate({ identifier: "ListRunItem" });
|
|
1054
|
-
export const ListRunsResultDataList = /*@__PURE__*/ S.Array(ListRunItem);
|
|
1055
|
-
export const ListRunsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1056
|
-
next: S.optional(S.String),
|
|
1057
|
-
previous: S.optional(S.String),
|
|
1058
|
-
})).annotate({ identifier: "ListRunsResultPagination" });
|
|
1059
|
-
export const ListRunsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1060
|
-
data: S.optional(ListRunsResultDataList),
|
|
1061
|
-
pagination: S.optional(ListRunsResultPagination),
|
|
1062
|
-
})).annotate({ identifier: "ListRunsResult" });
|
|
1063
|
-
export const ListQueuesV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1064
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
1065
|
-
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1066
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/queues", code: 200 }))).annotate({ identifier: "ListQueuesV1Request" });
|
|
1067
|
-
export const ListQueuesResultDataList = /*@__PURE__*/ S.Array(QueueObject);
|
|
1068
|
-
export const ListQueuesResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1069
|
-
currentPage: S.optional(S.Number),
|
|
1070
|
-
totalPages: S.optional(S.Number),
|
|
1071
|
-
count: S.optional(S.Number),
|
|
1072
|
-
})).annotate({
|
|
1073
|
-
identifier: "ListQueuesResultPagination",
|
|
1074
|
-
});
|
|
1075
|
-
export const ListQueuesResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1076
|
-
data: ListQueuesResultDataList,
|
|
1077
|
-
pagination: ListQueuesResultPagination,
|
|
1078
|
-
})).annotate({ identifier: "ListQueuesResult" });
|
|
1079
|
-
export const ListRunsV1RequestPage = ListProjectRunsV1RequestPage;
|
|
1080
|
-
export const CommonRunsFilterCreatedAt = ListProjectRunsV1RequestFilterCreatedAt;
|
|
1081
|
-
export const CommonRunsFilterStatusItem = S.String;
|
|
1082
|
-
export const CommonRunsFilterStatusList = /*@__PURE__*/ S.Array(CommonRunsFilterStatusItem);
|
|
1083
|
-
export const CommonRunsFilterTaskIdentifierList = /*@__PURE__*/ S.Array(S.String);
|
|
1084
|
-
export const CommonRunsFilterVersionList = /*@__PURE__*/ S.Array(S.String);
|
|
1085
|
-
export const CommonRunsFilterTagList = /*@__PURE__*/ S.Array(S.String);
|
|
1086
|
-
export const CommonRunsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1087
|
-
createdAt: S.optional(ListProjectRunsV1RequestFilterCreatedAt),
|
|
1088
|
-
status: S.optional(CommonRunsFilterStatusList),
|
|
1089
|
-
taskIdentifier: S.optional(CommonRunsFilterTaskIdentifierList),
|
|
1090
|
-
version: S.optional(CommonRunsFilterVersionList),
|
|
1091
|
-
bulkAction: S.optional(S.String),
|
|
1092
|
-
schedule: S.optional(S.String),
|
|
1093
|
-
isTest: S.optional(S.Boolean),
|
|
1094
|
-
tag: S.optional(CommonRunsFilterTagList),
|
|
1095
|
-
error: S.optional(S.String),
|
|
1096
|
-
})).annotate({ identifier: "CommonRunsFilter" });
|
|
1097
|
-
export const ListRunsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1098
|
-
page: S.optional(ListProjectRunsV1RequestPage.pipe(T.Query())),
|
|
1099
|
-
filter: S.optional(CommonRunsFilter.pipe(T.Query())),
|
|
1100
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/runs", code: 200 }))).annotate({ identifier: "ListRunsV1Request" });
|
|
1101
|
-
export const ListSchedulesV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1102
|
-
page: S.optional(S.Number.pipe(T.Query())),
|
|
1103
|
-
perPage: S.optional(S.Number.pipe(T.Query())),
|
|
1104
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/schedules", code: 200 }))).annotate({ identifier: "ListSchedulesV1Request" });
|
|
1105
|
-
export const ListSchedulesResultDataList = /*@__PURE__*/ S.Array(ScheduleObject);
|
|
1106
|
-
export const ListSchedulesResultPagination = ListConcurrencyLimitsV1ResponsePagination;
|
|
1107
|
-
export const ListSchedulesResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1108
|
-
data: S.optional(ListSchedulesResultDataList),
|
|
1109
|
-
pagination: S.optional(ListConcurrencyLimitsV1ResponsePagination),
|
|
1110
|
-
})).annotate({ identifier: "ListSchedulesResult" });
|
|
1111
|
-
export const ListSessionsV1RequestPage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1112
|
-
size: S.optional(S.Number),
|
|
1113
|
-
after: S.optional(S.String),
|
|
1114
|
-
before: S.optional(S.String),
|
|
1115
|
-
})).annotate({
|
|
1116
|
-
identifier: "ListSessionsV1RequestPage",
|
|
1117
|
-
});
|
|
1118
|
-
export const SessionsFilterTypeList = /*@__PURE__*/ S.Array(S.String);
|
|
1119
|
-
export const SessionsFilterTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1120
|
-
export const SessionsFilterTaskIdentifierList = /*@__PURE__*/ S.Array(S.String);
|
|
1121
|
-
export const SessionsFilterStatusItem = S.String;
|
|
1122
|
-
export const SessionsFilterStatusList = /*@__PURE__*/ S.Array(SessionsFilterStatusItem);
|
|
1123
|
-
export const SessionsFilterCreatedAt = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1124
|
-
from: S.optional(S.String),
|
|
1125
|
-
to: S.optional(S.String),
|
|
1126
|
-
period: S.optional(S.String),
|
|
1127
|
-
})).annotate({ identifier: "SessionsFilterCreatedAt" });
|
|
1128
|
-
export const SessionsFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1129
|
-
type: S.optional(SessionsFilterTypeList),
|
|
1130
|
-
tags: S.optional(SessionsFilterTagsList),
|
|
1131
|
-
taskIdentifier: S.optional(SessionsFilterTaskIdentifierList),
|
|
1132
|
-
externalId: S.optional(S.String),
|
|
1133
|
-
status: S.optional(SessionsFilterStatusList),
|
|
1134
|
-
createdAt: S.optional(SessionsFilterCreatedAt),
|
|
1135
|
-
})).annotate({ identifier: "SessionsFilter" });
|
|
1136
|
-
export const ListSessionsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1137
|
-
page: S.optional(ListSessionsV1RequestPage.pipe(T.Query())),
|
|
1138
|
-
filter: S.optional(SessionsFilter.pipe(T.Query())),
|
|
1139
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/sessions", code: 200 }))).annotate({ identifier: "ListSessionsV1Request" });
|
|
1140
|
-
export const ListSessionsResultDataList = /*@__PURE__*/ S.Array(SessionObject);
|
|
1141
|
-
export const ListSessionsResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1142
|
-
next: S.optional(S.String),
|
|
1143
|
-
previous: S.optional(S.String),
|
|
1144
|
-
})).annotate({
|
|
1145
|
-
identifier: "ListSessionsResultPagination",
|
|
1146
|
-
});
|
|
1147
|
-
export const ListSessionsResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1148
|
-
data: S.optional(ListSessionsResultDataList),
|
|
1149
|
-
pagination: S.optional(ListSessionsResultPagination),
|
|
1150
|
-
})).annotate({ identifier: "ListSessionsResult" });
|
|
1151
|
-
export const ListWaitpointTokensV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1152
|
-
page_size_: S.optional(S.Number.pipe(T.Query("page[size]"))),
|
|
1153
|
-
page_after_: S.optional(S.String.pipe(T.Query("page[after]"))),
|
|
1154
|
-
page_before_: S.optional(S.String.pipe(T.Query("page[before]"))),
|
|
1155
|
-
filter_status_: S.optional(S.String.pipe(T.Query("filter[status]"))),
|
|
1156
|
-
filter_idempotencyKey_: S.optional(S.String.pipe(T.Query("filter[idempotencyKey]"))),
|
|
1157
|
-
filter_tags_: S.optional(S.String.pipe(T.Query("filter[tags]"))),
|
|
1158
|
-
filter_createdAt__period_: S.optional(S.String.pipe(T.Query("filter[createdAt][period]"))),
|
|
1159
|
-
filter_createdAt__from_: S.optional(S.String.pipe(T.Query("filter[createdAt][from]"))),
|
|
1160
|
-
filter_createdAt__to_: S.optional(S.String.pipe(T.Query("filter[createdAt][to]"))),
|
|
1161
|
-
}).pipe(T.Http({ method: "GET", uri: "/api/v1/waitpoints/tokens", code: 200 }))).annotate({
|
|
1162
|
-
identifier: "ListWaitpointTokensV1Request",
|
|
1163
|
-
});
|
|
1164
|
-
export const ListWaitpointTokensResultDataList = /*@__PURE__*/ S.Array(WaitpointTokenObject);
|
|
1165
|
-
export const ListWaitpointTokensResultPagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1166
|
-
next: S.optional(S.NullOr(S.String)),
|
|
1167
|
-
previous: S.optional(S.NullOr(S.String)),
|
|
1168
|
-
})).annotate({
|
|
1169
|
-
identifier: "ListWaitpointTokensResultPagination",
|
|
1170
|
-
});
|
|
1171
|
-
export const ListWaitpointTokensResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1172
|
-
data: ListWaitpointTokensResultDataList,
|
|
1173
|
-
pagination: ListWaitpointTokensResultPagination,
|
|
1174
|
-
})).annotate({
|
|
1175
|
-
identifier: "ListWaitpointTokensResult",
|
|
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
|
-
});
|
|
1184
|
-
export const OverrideQueueConcurrencyV1RequestType = S.String;
|
|
1185
|
-
export const OverrideQueueConcurrencyV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1186
|
-
queueParam: S.String.pipe(T.Label()),
|
|
1187
|
-
type: S.optional(OverrideQueueConcurrencyV1RequestType),
|
|
1188
|
-
concurrencyLimit: S.Number,
|
|
1189
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/concurrency/override", code: 200 }))).annotate({
|
|
1190
|
-
identifier: "OverrideQueueConcurrencyV1Request",
|
|
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
|
-
});
|
|
1199
|
-
export const PauseQueueV1RequestType = S.String;
|
|
1200
|
-
export const PauseQueueV1RequestAction = S.String;
|
|
1201
|
-
export const PauseQueueV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1202
|
-
queueParam: S.String.pipe(T.Label()),
|
|
1203
|
-
type: S.optional(PauseQueueV1RequestType),
|
|
1204
|
-
action: PauseQueueV1RequestAction,
|
|
1205
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/pause", code: 200 }))).annotate({ identifier: "PauseQueueV1Request" });
|
|
1206
|
-
export const PromoteDeploymentV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1207
|
-
version: S.String.pipe(T.Label()),
|
|
1208
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/deployments/{version}/promote", code: 200 }))).annotate({
|
|
1209
|
-
identifier: "PromoteDeploymentV1Request",
|
|
1210
|
-
});
|
|
1211
|
-
export const PromoteDeploymentV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1212
|
-
id: S.optional(S.String),
|
|
1213
|
-
version: S.optional(S.String),
|
|
1214
|
-
shortCode: S.optional(S.String),
|
|
1215
|
-
})).annotate({
|
|
1216
|
-
identifier: "PromoteDeploymentV1Response",
|
|
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
|
-
});
|
|
1223
|
-
export const ResetQueueConcurrencyV1RequestType = S.String;
|
|
1224
|
-
export const ResetQueueConcurrencyV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1225
|
-
queueParam: S.String.pipe(T.Label()),
|
|
1226
|
-
type: S.optional(ResetQueueConcurrencyV1RequestType),
|
|
1227
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/queues/{queueParam}/concurrency/reset", code: 200 }))).annotate({
|
|
1228
|
-
identifier: "ResetQueueConcurrencyV1Request",
|
|
1229
|
-
});
|
|
1230
|
-
export const ResolveErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1231
|
-
errorId: S.String.pipe(T.Label()),
|
|
1232
|
-
resolvedInVersion: S.optional(S.String),
|
|
1233
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/resolve", code: 200 }))).annotate({ identifier: "ResolveErrorV1Request" });
|
|
1234
|
-
export const RunReplayV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1235
|
-
runId: S.String.pipe(T.Label()),
|
|
1236
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/replay", code: 200 }))).annotate({ identifier: "RunReplayV1Request" });
|
|
1237
|
-
export const RunReplayV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1238
|
-
id: S.optional(S.String),
|
|
1239
|
-
})).annotate({ identifier: "RunReplayV1Response" });
|
|
1240
|
-
export const RunRescheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1241
|
-
runId: S.String.pipe(T.Label()),
|
|
1242
|
-
delay: S.optional(S.String),
|
|
1243
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/runs/{runId}/reschedule", code: 200 }))).annotate({ identifier: "RunRescheduleV1Request" });
|
|
1244
|
-
export const RunRescheduleV1ResponseStatus = S.String;
|
|
1245
|
-
export const RunRescheduleV1ResponseTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1246
|
-
export const RunRescheduleV1ResponseTriggerFunction = S.String;
|
|
1247
|
-
export const RunRescheduleV1ResponseRelatedRunsChildrenList = /*@__PURE__*/ S.Array(CommonRunObject);
|
|
1248
|
-
export const RunRescheduleV1ResponseRelatedRuns = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1249
|
-
root: S.optional(CommonRunObject),
|
|
1250
|
-
parent: S.optional(CommonRunObject),
|
|
1251
|
-
children: S.optional(RunRescheduleV1ResponseRelatedRunsChildrenList),
|
|
1252
|
-
})).annotate({
|
|
1253
|
-
identifier: "RunRescheduleV1ResponseRelatedRuns",
|
|
1254
|
-
});
|
|
1255
|
-
export const RunRescheduleV1ResponseScheduleGeneratorType = S.String;
|
|
1256
|
-
export const RunRescheduleV1ResponseScheduleGenerator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1257
|
-
type: S.optional(RunRescheduleV1ResponseScheduleGeneratorType),
|
|
1258
|
-
expression: S.optional(S.String),
|
|
1259
|
-
description: S.optional(S.String),
|
|
1260
|
-
})).annotate({
|
|
1261
|
-
identifier: "RunRescheduleV1ResponseScheduleGenerator",
|
|
1262
|
-
});
|
|
1263
|
-
export const RunRescheduleV1ResponseSchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1264
|
-
id: S.String,
|
|
1265
|
-
externalId: S.optional(S.String),
|
|
1266
|
-
deduplicationKey: S.optional(S.String),
|
|
1267
|
-
generator: RunRescheduleV1ResponseScheduleGenerator,
|
|
1268
|
-
})).annotate({
|
|
1269
|
-
identifier: "RunRescheduleV1ResponseSchedule",
|
|
1270
|
-
});
|
|
1271
|
-
export const RunRescheduleV1ResponseAttemptsItemStatus = S.String;
|
|
1272
|
-
export const RunRescheduleV1ResponseAttemptsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1273
|
-
id: S.String,
|
|
1274
|
-
status: RunRescheduleV1ResponseAttemptsItemStatus,
|
|
1275
|
-
error: S.optional(SerializedError),
|
|
1276
|
-
createdAt: S.String,
|
|
1277
|
-
updatedAt: S.String,
|
|
1278
|
-
startedAt: S.optional(S.String),
|
|
1279
|
-
completedAt: S.optional(S.String),
|
|
1280
|
-
})).annotate({
|
|
1281
|
-
identifier: "RunRescheduleV1ResponseAttemptsItem",
|
|
1282
|
-
});
|
|
1283
|
-
export const RunRescheduleV1ResponseAttemptsList = /*@__PURE__*/ S.Array(RunRescheduleV1ResponseAttemptsItem);
|
|
1284
|
-
export const RunRescheduleV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1285
|
-
id: S.String,
|
|
1286
|
-
status: RunRescheduleV1ResponseStatus,
|
|
1287
|
-
taskIdentifier: S.String,
|
|
1288
|
-
version: S.optional(S.String),
|
|
1289
|
-
idempotencyKey: S.optional(S.String),
|
|
1290
|
-
createdAt: S.String,
|
|
1291
|
-
updatedAt: S.String,
|
|
1292
|
-
isTest: S.optional(S.Boolean),
|
|
1293
|
-
startedAt: S.optional(S.String),
|
|
1294
|
-
finishedAt: S.optional(S.String),
|
|
1295
|
-
delayedUntil: S.optional(S.String),
|
|
1296
|
-
ttl: S.optional(S.Unknown),
|
|
1297
|
-
expiredAt: S.optional(S.String),
|
|
1298
|
-
tags: S.optional(RunRescheduleV1ResponseTagsList),
|
|
1299
|
-
metadata: S.optional(S.Unknown),
|
|
1300
|
-
costInCents: S.optional(S.Number),
|
|
1301
|
-
baseCostInCents: S.optional(S.Number),
|
|
1302
|
-
durationMs: S.optional(S.Number),
|
|
1303
|
-
depth: S.optional(S.Number),
|
|
1304
|
-
batchId: S.optional(S.String),
|
|
1305
|
-
triggerFunction: S.optional(RunRescheduleV1ResponseTriggerFunction),
|
|
1306
|
-
payload: S.optional(S.Unknown),
|
|
1307
|
-
payloadPresignedUrl: S.optional(S.String),
|
|
1308
|
-
output: S.optional(S.Unknown),
|
|
1309
|
-
outputPresignedUrl: S.optional(S.String),
|
|
1310
|
-
relatedRuns: S.optional(RunRescheduleV1ResponseRelatedRuns),
|
|
1311
|
-
schedule: S.optional(RunRescheduleV1ResponseSchedule),
|
|
1312
|
-
attempts: RunRescheduleV1ResponseAttemptsList,
|
|
1313
|
-
})).annotate({ identifier: "RunRescheduleV1Response" });
|
|
1314
|
-
export const QueueOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1315
|
-
name: S.optional(S.String),
|
|
1316
|
-
concurrencyLimit: S.optional(S.Number),
|
|
1317
|
-
})).annotate({ identifier: "QueueOptions" });
|
|
1318
|
-
export const TriggerTaskRequestBodyOptionsMachine = S.String;
|
|
1319
|
-
export const TriggerTaskRequestBodyOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1320
|
-
queue: S.optional(QueueOptions),
|
|
1321
|
-
concurrencyKey: S.optional(S.String),
|
|
1322
|
-
idempotencyKey: S.optional(S.String),
|
|
1323
|
-
ttl: S.optional(S.Unknown),
|
|
1324
|
-
delay: S.optional(S.String),
|
|
1325
|
-
tags: S.optional(RunTags),
|
|
1326
|
-
machine: S.optional(TriggerTaskRequestBodyOptionsMachine),
|
|
1327
|
-
})).annotate({
|
|
1328
|
-
identifier: "TriggerTaskRequestBodyOptions",
|
|
1329
|
-
});
|
|
1330
|
-
export const TriggerTaskRequestBody = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1331
|
-
payload: S.optional(S.Unknown),
|
|
1332
|
-
context: S.optional(S.Unknown),
|
|
1333
|
-
options: S.optional(TriggerTaskRequestBodyOptions),
|
|
1334
|
-
})).annotate({ identifier: "TriggerTaskRequestBody" });
|
|
1335
|
-
export const TriggerBatchTaskByIdV1RequestItemsList = /*@__PURE__*/ S.Array(TriggerTaskRequestBody);
|
|
1336
|
-
export const TriggerBatchTaskByIdV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1337
|
-
taskIdentifier: S.String.pipe(T.Label()),
|
|
1338
|
-
items: TriggerBatchTaskByIdV1RequestItemsList,
|
|
1339
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/{taskIdentifier}/batch", code: 200 }))).annotate({
|
|
1340
|
-
identifier: "TriggerBatchTaskByIdV1Request",
|
|
1341
|
-
});
|
|
1342
|
-
export const BatchTriggerTaskResponseRunsList = /*@__PURE__*/ S.Array(S.String);
|
|
1343
|
-
export const BatchTriggerTaskResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1344
|
-
batchId: S.String,
|
|
1345
|
-
runs: BatchTriggerTaskResponseRunsList,
|
|
1346
|
-
})).annotate({ identifier: "BatchTriggerTaskResponse" });
|
|
1347
|
-
export const BatchTriggerTaskRequestBodyItemOptionsMachine = S.String;
|
|
1348
|
-
export const BatchTriggerTaskRequestBodyItemOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1349
|
-
queue: S.optional(QueueOptions),
|
|
1350
|
-
concurrencyKey: S.optional(S.String),
|
|
1351
|
-
idempotencyKey: S.optional(S.String),
|
|
1352
|
-
ttl: S.optional(S.Unknown),
|
|
1353
|
-
delay: S.optional(S.String),
|
|
1354
|
-
tags: S.optional(RunTags),
|
|
1355
|
-
machine: S.optional(BatchTriggerTaskRequestBodyItemOptionsMachine),
|
|
1356
|
-
})).annotate({
|
|
1357
|
-
identifier: "BatchTriggerTaskRequestBodyItemOptions",
|
|
1358
|
-
});
|
|
1359
|
-
export const BatchTriggerTaskRequestBodyItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1360
|
-
payload: S.optional(S.Unknown),
|
|
1361
|
-
context: S.optional(S.Unknown),
|
|
1362
|
-
options: S.optional(BatchTriggerTaskRequestBodyItemOptions),
|
|
1363
|
-
task: S.String,
|
|
1364
|
-
})).annotate({
|
|
1365
|
-
identifier: "BatchTriggerTaskRequestBodyItem",
|
|
1366
|
-
});
|
|
1367
|
-
export const TriggerBatchTaskV1RequestItemsList = /*@__PURE__*/ S.Array(BatchTriggerTaskRequestBodyItem);
|
|
1368
|
-
export const TriggerBatchTaskV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1369
|
-
items: TriggerBatchTaskV1RequestItemsList,
|
|
1370
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/batch", code: 200 }))).annotate({
|
|
1371
|
-
identifier: "TriggerBatchTaskV1Request",
|
|
1372
|
-
});
|
|
1373
|
-
export const TriggerTaskV1RequestOptionsMachine = S.String;
|
|
1374
|
-
export const TriggerTaskV1RequestOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1375
|
-
queue: S.optional(QueueOptions),
|
|
1376
|
-
concurrencyKey: S.optional(S.String),
|
|
1377
|
-
idempotencyKey: S.optional(S.String),
|
|
1378
|
-
ttl: S.optional(S.Unknown),
|
|
1379
|
-
delay: S.optional(S.String),
|
|
1380
|
-
tags: S.optional(RunTags),
|
|
1381
|
-
machine: S.optional(TriggerTaskV1RequestOptionsMachine),
|
|
1382
|
-
})).annotate({
|
|
1383
|
-
identifier: "TriggerTaskV1RequestOptions",
|
|
1384
|
-
});
|
|
1385
|
-
export const TriggerTaskV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1386
|
-
taskIdentifier: S.String.pipe(T.Label()),
|
|
1387
|
-
payload: S.optional(S.Unknown),
|
|
1388
|
-
context: S.optional(S.Unknown),
|
|
1389
|
-
options: S.optional(TriggerTaskV1RequestOptions),
|
|
1390
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/tasks/{taskIdentifier}/trigger", code: 200 }))).annotate({ identifier: "TriggerTaskV1Request" });
|
|
1391
|
-
export const TriggerTaskResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1392
|
-
id: S.optional(S.String),
|
|
1393
|
-
})).annotate({ identifier: "TriggerTaskResponse" });
|
|
1394
|
-
export const UnresolveErrorV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1395
|
-
errorId: S.String.pipe(T.Label()),
|
|
1396
|
-
}).pipe(T.Http({ method: "POST", uri: "/api/v1/errors/{errorId}/unresolve", code: 200 }))).annotate({ identifier: "UnresolveErrorV1Request" });
|
|
1397
|
-
export const UpdateProjectEnvvarV1RequestEnv = S.String;
|
|
1398
|
-
export const UpdateProjectEnvvarV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1399
|
-
projectRef: S.String.pipe(T.Label()),
|
|
1400
|
-
env: UpdateProjectEnvvarV1RequestEnv.pipe(T.Label()),
|
|
1401
|
-
name: S.String.pipe(T.Label()),
|
|
1402
|
-
value: S.String,
|
|
1403
|
-
}).pipe(T.Http({ method: "PUT", uri: "/api/v1/projects/{projectRef}/envvars/{env}/{name}", code: 200 }))).annotate({
|
|
1404
|
-
identifier: "UpdateProjectEnvvarV1Request",
|
|
1405
|
-
});
|
|
1406
|
-
export const UpdateRunMetadataV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1407
|
-
runId: S.String.pipe(T.Label()),
|
|
1408
|
-
metadata: S.optional(S.Unknown),
|
|
1409
|
-
}).pipe(T.Http({ method: "PUT", uri: "/api/v1/runs/{runId}/metadata", code: 200 }))).annotate({
|
|
1410
|
-
identifier: "UpdateRunMetadataV1Request",
|
|
1411
|
-
});
|
|
1412
|
-
export const UpdateRunMetadataV1Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1413
|
-
metadata: S.optional(S.Unknown),
|
|
1414
|
-
})).annotate({
|
|
1415
|
-
identifier: "UpdateRunMetadataV1Response",
|
|
1416
|
-
});
|
|
1417
|
-
export const UpdateScheduleV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1418
|
-
schedule_id: S.String.pipe(T.Label()),
|
|
1419
|
-
task: S.String,
|
|
1420
|
-
cron: S.String,
|
|
1421
|
-
externalId: S.optional(S.String),
|
|
1422
|
-
timezone: S.optional(S.String),
|
|
1423
|
-
}).pipe(T.Http({ method: "PUT", uri: "/api/v1/schedules/{schedule_id}", code: 200 }))).annotate({ identifier: "UpdateScheduleV1Request" });
|
|
1424
|
-
export const UpdateSessionV1RequestTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1425
|
-
export const UpdateSessionV1RequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1426
|
-
export const UpdateSessionV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1427
|
-
session: S.String.pipe(T.Label()),
|
|
1428
|
-
tags: S.optional(UpdateSessionV1RequestTagsList),
|
|
1429
|
-
metadata: S.optional(S.NullOr(UpdateSessionV1RequestMetadataMap)),
|
|
1430
|
-
externalId: S.optional(S.NullOr(S.String)),
|
|
1431
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/api/v1/sessions/{session}", code: 200 }))).annotate({ identifier: "UpdateSessionV1Request" });
|
|
1432
|
-
export const UploadProjectEnvvarsV1RequestEnv = S.String;
|
|
1433
|
-
export const UploadProjectEnvvarsV1RequestVariablesList = /*@__PURE__*/ S.Array(EnvVar);
|
|
1434
|
-
export const UploadProjectEnvvarsV1Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1435
|
-
projectRef: S.String.pipe(T.Label()),
|
|
1436
|
-
env: UploadProjectEnvvarsV1RequestEnv.pipe(T.Label()),
|
|
1437
|
-
variables: UploadProjectEnvvarsV1RequestVariablesList,
|
|
1438
|
-
override: S.optional(S.Boolean),
|
|
1439
|
-
}).pipe(T.Http({
|
|
1440
|
-
method: "POST",
|
|
1441
|
-
uri: "/api/v1/projects/{projectRef}/envvars/{env}/import",
|
|
1442
|
-
code: 200,
|
|
1443
|
-
}))).annotate({
|
|
1444
|
-
identifier: "UploadProjectEnvvarsV1Request",
|
|
1445
|
-
});
|
|
1446
|
-
/** Activate Schedule Activate a schedule by its ID. This will only work on `IMPERATIVE` schedules that were created in the dashboard or using the imperative SDK functions like `schedules.create()`. */
|
|
1447
|
-
export const activateScheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1448
|
-
input: ActivateScheduleV1Request,
|
|
1449
|
-
output: ScheduleObject,
|
|
1450
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1451
|
-
protocol: TriggerDevProtocol,
|
|
1452
|
-
retry: Retry.Retry,
|
|
1453
|
-
}));
|
|
1454
|
-
/** 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. */
|
|
1455
|
-
export const addRunTagsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1456
|
-
input: AddRunTagsV1Request,
|
|
1457
|
-
output: AddRunTagsV1Response,
|
|
1458
|
-
errors: [BadRequest, UnprocessableEntity, UnknownTriggerDevError],
|
|
1459
|
-
protocol: TriggerDevProtocol,
|
|
1460
|
-
retry: Retry.Retry,
|
|
1461
|
-
}));
|
|
1462
|
-
/** Abort bulk action Abort a pending bulk action so it stops processing additional runs. Runs already processed by the action are not undone. */
|
|
1463
|
-
export const bulkAbortActionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1464
|
-
input: BulkAbortActionV1Request,
|
|
1465
|
-
output: AbortBulkActionResponse,
|
|
1466
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1467
|
-
protocol: TriggerDevProtocol,
|
|
1468
|
-
retry: Retry.Retry,
|
|
1469
|
-
}));
|
|
1470
|
-
/** Cancel a run Cancels an in-progress run. If the run is already completed, this will have no effect. */
|
|
1471
|
-
export const cancelRunV1 = /*@__PURE__*/ API.make(() => ({
|
|
1472
|
-
input: CancelRunV1Request,
|
|
1473
|
-
output: CancelRunV1Response,
|
|
1474
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1475
|
-
protocol: TriggerDevProtocol,
|
|
1476
|
-
retry: Retry.Retry,
|
|
1477
|
-
}));
|
|
1478
|
-
/** Close a session Close a session. Closing is terminal and idempotent — closing an already-closed session returns the existing row unchanged. A closed session cannot be reopened, and reusing its `externalId` on create returns `409`. Requires a secret key — a session public token cannot close a session. */
|
|
1479
|
-
export const closeSessionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1480
|
-
input: CloseSessionV1Request,
|
|
1481
|
-
output: SessionObject,
|
|
1482
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1483
|
-
protocol: TriggerDevProtocol,
|
|
1484
|
-
retry: Retry.Retry,
|
|
1485
|
-
}));
|
|
1486
|
-
/** 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`. */
|
|
1487
|
-
export const completeWaitpointTokenCallbackV1 = /*@__PURE__*/ API.make(() => ({
|
|
1488
|
-
input: CompleteWaitpointTokenCallbackV1Request,
|
|
1489
|
-
output: CompleteWaitpointTokenResponse,
|
|
1490
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1491
|
-
protocol: TriggerDevProtocol,
|
|
1492
|
-
retry: Retry.Retry,
|
|
1493
|
-
}));
|
|
1494
|
-
/** Complete a waitpoint token Completes a waitpoint token, unblocking any run that is waiting for it via `wait.forToken()`. An optional `data` payload can be passed and will be returned to the waiting run. If the token is already completed, this is a no-op and returns `success: true`. This endpoint accepts both secret API keys and short-lived JWTs (public access tokens), making it safe to call from frontend clients. */
|
|
1495
|
-
export const completeWaitpointTokenV1 = /*@__PURE__*/ API.make(() => ({
|
|
1496
|
-
input: CompleteWaitpointTokenV1Request,
|
|
1497
|
-
output: CompleteWaitpointTokenResponse,
|
|
1498
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1499
|
-
protocol: TriggerDevProtocol,
|
|
1500
|
-
retry: Retry.Retry,
|
|
1501
|
-
}));
|
|
1502
|
-
/** Create bulk action Create an asynchronous bulk action to cancel or replay runs selected by run IDs or filters. */
|
|
1503
|
-
export const createBulkActionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1504
|
-
input: CreateBulkActionV1Request,
|
|
1505
|
-
output: CreateBulkActionV1Response,
|
|
1506
|
-
errors: [BadRequest, UnprocessableEntity, UnknownTriggerDevError],
|
|
1507
|
-
protocol: TriggerDevProtocol,
|
|
1508
|
-
retry: Retry.Retry,
|
|
1509
|
-
}));
|
|
1510
|
-
/** Create environment variable Create a new environment variable for a specific project and environment. */
|
|
1511
|
-
export const createProjectEnvvarV1 = /*@__PURE__*/ API.make(() => ({
|
|
1512
|
-
input: CreateProjectEnvvarV1Request,
|
|
1513
|
-
output: SucceedResponse,
|
|
1514
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1515
|
-
protocol: TriggerDevProtocol,
|
|
1516
|
-
retry: Retry.Retry,
|
|
1517
|
-
}));
|
|
1518
|
-
/** Create a schedule Create a new `IMPERATIVE` schedule based on the specified options. */
|
|
1519
|
-
export const createScheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1520
|
-
input: CreateScheduleV1Request,
|
|
1521
|
-
output: ScheduleObject,
|
|
1522
|
-
errors: [BadRequest, UnprocessableEntity, UnknownTriggerDevError],
|
|
1523
|
-
protocol: TriggerDevProtocol,
|
|
1524
|
-
retry: Retry.Retry,
|
|
1525
|
-
}));
|
|
1526
|
-
/** 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. */
|
|
1527
|
-
export const createSessionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1528
|
-
input: CreateSessionV1Request,
|
|
1529
|
-
output: CreateSessionV1Response,
|
|
1530
|
-
errors: [Conflict, UnprocessableEntity, UnknownTriggerDevError],
|
|
1531
|
-
protocol: TriggerDevProtocol,
|
|
1532
|
-
retry: Retry.Retry,
|
|
1533
|
-
}));
|
|
1534
|
-
/** 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. */
|
|
1535
|
-
export const createWaitpointTokenV1 = /*@__PURE__*/ API.make(() => ({
|
|
1536
|
-
input: CreateWaitpointTokenV1Request,
|
|
1537
|
-
output: CreateWaitpointTokenResponse,
|
|
1538
|
-
errors: [UnprocessableEntity, UnknownTriggerDevError],
|
|
1539
|
-
protocol: TriggerDevProtocol,
|
|
1540
|
-
retry: Retry.Retry,
|
|
1541
|
-
}));
|
|
1542
|
-
/** Deactivate Schedule. Deactivate 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()`. */
|
|
1543
|
-
export const deactivateScheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1544
|
-
input: DeactivateScheduleV1Request,
|
|
1545
|
-
output: ScheduleObject,
|
|
1546
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1547
|
-
protocol: TriggerDevProtocol,
|
|
1548
|
-
retry: Retry.Retry,
|
|
1549
|
-
}));
|
|
1550
|
-
/** Delete environment variable Delete a specific environment variable for a specific project and environment. */
|
|
1551
|
-
export const deleteProjectEnvvarV1 = /*@__PURE__*/ API.make(() => ({
|
|
1552
|
-
input: DeleteProjectEnvvarV1Request,
|
|
1553
|
-
output: SucceedResponse,
|
|
1554
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1555
|
-
protocol: TriggerDevProtocol,
|
|
1556
|
-
retry: Retry.Retry,
|
|
1557
|
-
}));
|
|
1558
|
-
/** Delete Schedule Delete 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()`. */
|
|
1559
|
-
export const deleteScheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1560
|
-
input: DeleteScheduleV1Request,
|
|
1561
|
-
output: DeleteScheduleV1Response,
|
|
1562
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1563
|
-
protocol: TriggerDevProtocol,
|
|
1564
|
-
retry: Retry.Retry,
|
|
1565
|
-
}));
|
|
1566
|
-
/** Execute a TRQL query Execute a TRQL (Trigger.dev Query Language) query against your run data. TRQL is a SQL-style query language that allows you to analyze runs, calculate metrics, and export data. */
|
|
1567
|
-
export const executeQueryV1 = /*@__PURE__*/ API.make(() => ({
|
|
1568
|
-
input: ExecuteQueryV1Request,
|
|
1569
|
-
output: ExecuteQueryV1Response,
|
|
1570
|
-
errors: [BadRequest, UnknownTriggerDevError],
|
|
1571
|
-
protocol: TriggerDevProtocol,
|
|
1572
|
-
retry: Retry.Retry,
|
|
1573
|
-
}));
|
|
1574
|
-
/** Retrieve batch results Returns the execution results of all completed runs in a batch. Only finished runs (successful or failed) are included in the items array — runs that are still executing are omitted. Returns 404 if the batch doesn't exist. */
|
|
1575
|
-
export const getBatchResultsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1576
|
-
input: GetBatchResultsV1Request,
|
|
1577
|
-
output: GetBatchResultsV1Response,
|
|
1578
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1579
|
-
protocol: TriggerDevProtocol,
|
|
1580
|
-
retry: Retry.Retry,
|
|
1581
|
-
}));
|
|
1582
|
-
/** Retrieve a batch Retrieve a batch by its ID, including its status and the IDs of all runs in the batch. */
|
|
1583
|
-
export const getBatchV1 = /*@__PURE__*/ API.make(() => ({
|
|
1584
|
-
input: GetBatchV1Request,
|
|
1585
|
-
output: GetBatchV1Response,
|
|
1586
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1587
|
-
protocol: TriggerDevProtocol,
|
|
1588
|
-
retry: Retry.Retry,
|
|
1589
|
-
}));
|
|
1590
|
-
/** Retrieve bulk action Retrieve the status and aggregate processing counts for a bulk action. */
|
|
1591
|
-
export const getBulkActionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1592
|
-
input: GetBulkActionV1Request,
|
|
1593
|
-
output: BulkActionObject,
|
|
1594
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1595
|
-
protocol: TriggerDevProtocol,
|
|
1596
|
-
retry: Retry.Retry,
|
|
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
|
-
}));
|
|
1606
|
-
/** Get deployment Retrieve information about a specific deployment by its ID. */
|
|
1607
|
-
export const getDeploymentV1 = /*@__PURE__*/ API.make(() => ({
|
|
1608
|
-
input: GetDeploymentV1Request,
|
|
1609
|
-
output: GetDeploymentV1Response,
|
|
1610
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1611
|
-
protocol: TriggerDevProtocol,
|
|
1612
|
-
retry: Retry.Retry,
|
|
1613
|
-
}));
|
|
1614
|
-
/** Retrieve an error Retrieve detailed information about a single error group, including its lifecycle state and the worker versions it has affected. */
|
|
1615
|
-
export const getErrorV1 = /*@__PURE__*/ API.make(() => ({
|
|
1616
|
-
input: GetErrorV1Request,
|
|
1617
|
-
output: ErrorObject,
|
|
1618
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1619
|
-
protocol: TriggerDevProtocol,
|
|
1620
|
-
retry: Retry.Retry,
|
|
1621
|
-
}));
|
|
1622
|
-
/** Get latest deployment Retrieve information about the latest unmanaged deployment for the authenticated project. */
|
|
1623
|
-
export const getLatestDeploymentV1 = /*@__PURE__*/ API.make(() => ({
|
|
1624
|
-
input: GetLatestDeploymentV1Request,
|
|
1625
|
-
output: GetLatestDeploymentV1Response,
|
|
1626
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1627
|
-
protocol: TriggerDevProtocol,
|
|
1628
|
-
retry: Retry.Retry,
|
|
1629
|
-
}));
|
|
1630
|
-
/** Retrieve environment variable Retrieve a specific environment variable for a specific project and environment. */
|
|
1631
|
-
export const getProjectEnvvarV1 = /*@__PURE__*/ API.make(() => ({
|
|
1632
|
-
input: GetProjectEnvvarV1Request,
|
|
1633
|
-
output: EnvVarValue,
|
|
1634
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1635
|
-
protocol: TriggerDevProtocol,
|
|
1636
|
-
retry: Retry.Retry,
|
|
1637
|
-
}));
|
|
1638
|
-
/** Get query schema Get the schema for TRQL queries, including all available tables, their columns, data types, descriptions, and allowed values. */
|
|
1639
|
-
export const getQuerySchemaV1 = /*@__PURE__*/ API.make(() => ({
|
|
1640
|
-
input: GetQuerySchemaV1Request,
|
|
1641
|
-
output: GetQuerySchemaV1Response,
|
|
1642
|
-
errors: [UnknownTriggerDevError],
|
|
1643
|
-
protocol: TriggerDevProtocol,
|
|
1644
|
-
retry: Retry.Retry,
|
|
1645
|
-
}));
|
|
1646
|
-
/** Retrieve a queue Get a queue by its ID, or by type and name. */
|
|
1647
|
-
export const getQueueV1 = /*@__PURE__*/ API.make(() => ({
|
|
1648
|
-
input: GetQueueV1Request,
|
|
1649
|
-
output: QueueObject,
|
|
1650
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1651
|
-
protocol: TriggerDevProtocol,
|
|
1652
|
-
retry: Retry.Retry,
|
|
1653
|
-
}));
|
|
1654
|
-
/** Retrieve run events Returns all OTel span events for a run. Useful for debugging and observability. */
|
|
1655
|
-
export const getRunEventsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1656
|
-
input: GetRunEventsV1Request,
|
|
1657
|
-
output: GetRunEventsV1Response,
|
|
1658
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1659
|
-
protocol: TriggerDevProtocol,
|
|
1660
|
-
retry: Retry.Retry,
|
|
1661
|
-
}));
|
|
1662
|
-
/** Retrieve run result Returns the execution result of a completed run. Returns 404 if the run doesn't exist or hasn't finished yet. */
|
|
1663
|
-
export const getRunResultV1 = /*@__PURE__*/ API.make(() => ({
|
|
1664
|
-
input: GetRunResultV1Request,
|
|
1665
|
-
output: GetRunResultV1Response,
|
|
1666
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1667
|
-
protocol: TriggerDevProtocol,
|
|
1668
|
-
retry: Retry.Retry,
|
|
1669
|
-
}));
|
|
1670
|
-
/** Retrieve run trace Returns the OTel trace subtree for the requested run — the run's span as `rootSpan`, its ancestor chain, and its descendant spans. For child or nested runs in a large trace, this is scoped to that run rather than the trace-wide root. */
|
|
1671
|
-
export const getRunTraceV1 = /*@__PURE__*/ API.make(() => ({
|
|
1672
|
-
input: GetRunTraceV1Request,
|
|
1673
|
-
output: GetRunTraceV1Response,
|
|
1674
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1675
|
-
protocol: TriggerDevProtocol,
|
|
1676
|
-
retry: Retry.Retry,
|
|
1677
|
-
}));
|
|
1678
|
-
/** Retrieve a run Retrieve information about a run, including its status, payload, output, and attempts. If you authenticate with a Public API key, we will omit the payload and output fields for security reasons. */
|
|
1679
|
-
export const getRunV1 = /*@__PURE__*/ API.make(() => ({
|
|
1680
|
-
input: GetRunV1Request,
|
|
1681
|
-
output: GetRunV1Response,
|
|
1682
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1683
|
-
protocol: TriggerDevProtocol,
|
|
1684
|
-
retry: Retry.Retry,
|
|
1685
|
-
}));
|
|
1686
|
-
/** Retrieve Schedule Get a schedule by its ID. */
|
|
1687
|
-
export const getScheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1688
|
-
input: GetScheduleV1Request,
|
|
1689
|
-
output: ScheduleObject,
|
|
1690
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1691
|
-
protocol: TriggerDevProtocol,
|
|
1692
|
-
retry: Retry.Retry,
|
|
1693
|
-
}));
|
|
1694
|
-
/** Retrieve a session Retrieve a single session by its friendly id (`session_…`) or your `externalId`. The response includes `triggerConfig` and the friendly `currentRunId` of the live run, if any. */
|
|
1695
|
-
export const getSessionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1696
|
-
input: GetSessionV1Request,
|
|
1697
|
-
output: SessionObject,
|
|
1698
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1699
|
-
protocol: TriggerDevProtocol,
|
|
1700
|
-
retry: Retry.Retry,
|
|
1701
|
-
}));
|
|
1702
|
-
/** Get all supported timezones Get all supported timezones that schedule tasks support. */
|
|
1703
|
-
export const getTimezonesV1 = /*@__PURE__*/ API.make(() => ({
|
|
1704
|
-
input: GetTimezonesV1Request,
|
|
1705
|
-
output: GetTimezonesResult,
|
|
1706
|
-
errors: [UnknownTriggerDevError],
|
|
1707
|
-
protocol: TriggerDevProtocol,
|
|
1708
|
-
retry: Retry.Retry,
|
|
1709
|
-
}));
|
|
1710
|
-
/** Retrieve a waitpoint token Retrieves a waitpoint token by its ID, including its current status and output if it has been completed. */
|
|
1711
|
-
export const getWaitpointTokenV1 = /*@__PURE__*/ API.make(() => ({
|
|
1712
|
-
input: GetWaitpointTokenV1Request,
|
|
1713
|
-
output: WaitpointTokenObject,
|
|
1714
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1715
|
-
protocol: TriggerDevProtocol,
|
|
1716
|
-
retry: Retry.Retry,
|
|
1717
|
-
}));
|
|
1718
|
-
/** Ignore an error Mark an error group as ignored. Provide a `duration` to ignore it for a fixed window, and/or thresholds that re-surface the error when exceeded. Send a JSON body (use `{}` to ignore indefinitely). */
|
|
1719
|
-
export const ignoreErrorV1 = /*@__PURE__*/ API.make(() => ({
|
|
1720
|
-
input: IgnoreErrorV1Request,
|
|
1721
|
-
output: ErrorObject,
|
|
1722
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1723
|
-
protocol: TriggerDevProtocol,
|
|
1724
|
-
retry: Retry.Retry,
|
|
1725
|
-
}));
|
|
1726
|
-
/** List bulk actions List bulk actions in the current environment. Bulk actions are returned newest first and can be paginated with cursor pagination. */
|
|
1727
|
-
export const listBulkActionsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1728
|
-
input: ListBulkActionsV1Request,
|
|
1729
|
-
output: ListBulkActionsResult,
|
|
1730
|
-
errors: [BadRequest, UnknownTriggerDevError],
|
|
1731
|
-
protocol: TriggerDevProtocol,
|
|
1732
|
-
retry: Retry.Retry,
|
|
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
|
-
}));
|
|
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. */
|
|
1743
|
-
export const listDashboardsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1744
|
-
input: ListDashboardsV1Request,
|
|
1745
|
-
output: ListDashboardsV1Response,
|
|
1746
|
-
errors: [UnknownTriggerDevError],
|
|
1747
|
-
protocol: TriggerDevProtocol,
|
|
1748
|
-
retry: Retry.Retry,
|
|
1749
|
-
}));
|
|
1750
|
-
/** List deployments List deployments for the authenticated environment, ordered by most recent first. */
|
|
1751
|
-
export const listDeploymentsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1752
|
-
input: ListDeploymentsV1Request,
|
|
1753
|
-
output: ListDeploymentsV1Response,
|
|
1754
|
-
errors: [UnknownTriggerDevError],
|
|
1755
|
-
protocol: TriggerDevProtocol,
|
|
1756
|
-
retry: Retry.Retry,
|
|
1757
|
-
}));
|
|
1758
|
-
/** List errors List error groups in a specific environment. Runs that fail are grouped by a fingerprint derived from the error type, message, and stack trace. Filter by task identifier, version, status, search text, and time range. */
|
|
1759
|
-
export const listErrorsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1760
|
-
input: ListErrorsV1Request,
|
|
1761
|
-
output: ListErrorsResult,
|
|
1762
|
-
errors: [BadRequest, UnknownTriggerDevError],
|
|
1763
|
-
protocol: TriggerDevProtocol,
|
|
1764
|
-
retry: Retry.Retry,
|
|
1765
|
-
}));
|
|
1766
|
-
/** List environment variables List all environment variables for a specific project and environment. */
|
|
1767
|
-
export const listProjectEnvvarsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1768
|
-
input: ListProjectEnvvarsV1Request,
|
|
1769
|
-
output: ListProjectEnvvarsV1Response,
|
|
1770
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1771
|
-
protocol: TriggerDevProtocol,
|
|
1772
|
-
retry: Retry.Retry,
|
|
1773
|
-
}));
|
|
1774
|
-
/** List project runs List runs in a project, across multiple environments, using Personal Access Token auth. You can filter the runs by status, created at, task identifier, version, and more. */
|
|
1775
|
-
export const listProjectRunsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1776
|
-
input: ListProjectRunsV1Request,
|
|
1777
|
-
output: ListRunsResult,
|
|
1778
|
-
errors: [BadRequest, UnknownTriggerDevError],
|
|
1779
|
-
protocol: TriggerDevProtocol,
|
|
1780
|
-
retry: Retry.Retry,
|
|
1781
|
-
}));
|
|
1782
|
-
/** List all queues List all queues in your environment with pagination support. */
|
|
1783
|
-
export const listQueuesV1 = /*@__PURE__*/ API.make(() => ({
|
|
1784
|
-
input: ListQueuesV1Request,
|
|
1785
|
-
output: ListQueuesResult,
|
|
1786
|
-
errors: [UnknownTriggerDevError],
|
|
1787
|
-
protocol: TriggerDevProtocol,
|
|
1788
|
-
retry: Retry.Retry,
|
|
1789
|
-
}));
|
|
1790
|
-
/** List runs List runs in a specific environment. You can filter the runs by status, created at, task identifier, version, and more. */
|
|
1791
|
-
export const listRunsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1792
|
-
input: ListRunsV1Request,
|
|
1793
|
-
output: ListRunsResult,
|
|
1794
|
-
errors: [BadRequest, UnknownTriggerDevError],
|
|
1795
|
-
protocol: TriggerDevProtocol,
|
|
1796
|
-
retry: Retry.Retry,
|
|
1797
|
-
}));
|
|
1798
|
-
/** List all schedules List all schedules. You can also paginate the results. */
|
|
1799
|
-
export const listSchedulesV1 = /*@__PURE__*/ API.make(() => ({
|
|
1800
|
-
input: ListSchedulesV1Request,
|
|
1801
|
-
output: ListSchedulesResult,
|
|
1802
|
-
errors: [UnknownTriggerDevError],
|
|
1803
|
-
protocol: TriggerDevProtocol,
|
|
1804
|
-
retry: Retry.Retry,
|
|
1805
|
-
}));
|
|
1806
|
-
/** List sessions List sessions in the current environment, newest first. Filter by type, tags, task identifier, external id, status, and creation window. Use cursor-based pagination with `page[after]` and `page[before]` to navigate pages. List rows omit `triggerConfig`; retrieve a single session to read it. */
|
|
1807
|
-
export const listSessionsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1808
|
-
input: ListSessionsV1Request,
|
|
1809
|
-
output: ListSessionsResult,
|
|
1810
|
-
errors: [BadRequest, UnknownTriggerDevError],
|
|
1811
|
-
protocol: TriggerDevProtocol,
|
|
1812
|
-
retry: Retry.Retry,
|
|
1813
|
-
}));
|
|
1814
|
-
/** 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. */
|
|
1815
|
-
export const listWaitpointTokensV1 = /*@__PURE__*/ API.make(() => ({
|
|
1816
|
-
input: ListWaitpointTokensV1Request,
|
|
1817
|
-
output: ListWaitpointTokensResult,
|
|
1818
|
-
errors: [UnprocessableEntity, UnknownTriggerDevError],
|
|
1819
|
-
protocol: TriggerDevProtocol,
|
|
1820
|
-
retry: Retry.Retry,
|
|
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
|
-
}));
|
|
1830
|
-
/** Override queue concurrency limit Override the concurrency limit of a queue. This is useful for temporarily scaling up or down based on demand. */
|
|
1831
|
-
export const overrideQueueConcurrencyV1 = /*@__PURE__*/ API.make(() => ({
|
|
1832
|
-
input: OverrideQueueConcurrencyV1Request,
|
|
1833
|
-
output: QueueObject,
|
|
1834
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1835
|
-
protocol: TriggerDevProtocol,
|
|
1836
|
-
retry: Retry.Retry,
|
|
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
|
-
}));
|
|
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. */
|
|
1847
|
-
export const pauseQueueV1 = /*@__PURE__*/ API.make(() => ({
|
|
1848
|
-
input: PauseQueueV1Request,
|
|
1849
|
-
output: QueueObject,
|
|
1850
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1851
|
-
protocol: TriggerDevProtocol,
|
|
1852
|
-
retry: Retry.Retry,
|
|
1853
|
-
}));
|
|
1854
|
-
/** 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. */
|
|
1855
|
-
export const promoteDeploymentV1 = /*@__PURE__*/ API.make(() => ({
|
|
1856
|
-
input: PromoteDeploymentV1Request,
|
|
1857
|
-
output: PromoteDeploymentV1Response,
|
|
1858
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1859
|
-
protocol: TriggerDevProtocol,
|
|
1860
|
-
retry: Retry.Retry,
|
|
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
|
-
}));
|
|
1870
|
-
/** Reset queue concurrency limit Reset the concurrency limit of a queue back to its base value defined in code. */
|
|
1871
|
-
export const resetQueueConcurrencyV1 = /*@__PURE__*/ API.make(() => ({
|
|
1872
|
-
input: ResetQueueConcurrencyV1Request,
|
|
1873
|
-
output: QueueObject,
|
|
1874
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1875
|
-
protocol: TriggerDevProtocol,
|
|
1876
|
-
retry: Retry.Retry,
|
|
1877
|
-
}));
|
|
1878
|
-
/** Resolve an error Mark an error group as resolved. Optionally record the worker version that resolved it. Send a JSON body (use `{}` when you have no fields to set). */
|
|
1879
|
-
export const resolveErrorV1 = /*@__PURE__*/ API.make(() => ({
|
|
1880
|
-
input: ResolveErrorV1Request,
|
|
1881
|
-
output: ErrorObject,
|
|
1882
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1883
|
-
protocol: TriggerDevProtocol,
|
|
1884
|
-
retry: Retry.Retry,
|
|
1885
|
-
}));
|
|
1886
|
-
/** Replay a run Creates a new run with the same payload and options as the original run. */
|
|
1887
|
-
export const runReplayV1 = /*@__PURE__*/ API.make(() => ({
|
|
1888
|
-
input: RunReplayV1Request,
|
|
1889
|
-
output: RunReplayV1Response,
|
|
1890
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1891
|
-
protocol: TriggerDevProtocol,
|
|
1892
|
-
retry: Retry.Retry,
|
|
1893
|
-
}));
|
|
1894
|
-
/** Rescheduled a delayed run Updates a delayed run with a new delay. Only valid when the run is in the DELAYED state. */
|
|
1895
|
-
export const runRescheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1896
|
-
input: RunRescheduleV1Request,
|
|
1897
|
-
output: RunRescheduleV1Response,
|
|
1898
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1899
|
-
protocol: TriggerDevProtocol,
|
|
1900
|
-
retry: Retry.Retry,
|
|
1901
|
-
}));
|
|
1902
|
-
/** 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. */
|
|
1903
|
-
export const triggerBatchTaskByIdV1 = /*@__PURE__*/ API.make(() => ({
|
|
1904
|
-
input: TriggerBatchTaskByIdV1Request,
|
|
1905
|
-
output: BatchTriggerTaskResponse,
|
|
1906
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1907
|
-
protocol: TriggerDevProtocol,
|
|
1908
|
-
retry: Retry.Retry,
|
|
1909
|
-
}));
|
|
1910
|
-
/** Batch trigger tasks Batch trigger tasks with up to 1,000 payloads with SDK 4.3.1+ (500 in prior versions). */
|
|
1911
|
-
export const triggerBatchTaskV1 = /*@__PURE__*/ API.make(() => ({
|
|
1912
|
-
input: TriggerBatchTaskV1Request,
|
|
1913
|
-
output: BatchTriggerTaskResponse,
|
|
1914
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1915
|
-
protocol: TriggerDevProtocol,
|
|
1916
|
-
retry: Retry.Retry,
|
|
1917
|
-
}));
|
|
1918
|
-
/** Trigger a task Trigger a task by its identifier. */
|
|
1919
|
-
export const triggerTaskV1 = /*@__PURE__*/ API.make(() => ({
|
|
1920
|
-
input: TriggerTaskV1Request,
|
|
1921
|
-
output: TriggerTaskResponse,
|
|
1922
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1923
|
-
protocol: TriggerDevProtocol,
|
|
1924
|
-
retry: Retry.Retry,
|
|
1925
|
-
}));
|
|
1926
|
-
/** Unresolve an error Move a resolved or ignored error group back to unresolved. */
|
|
1927
|
-
export const unresolveErrorV1 = /*@__PURE__*/ API.make(() => ({
|
|
1928
|
-
input: UnresolveErrorV1Request,
|
|
1929
|
-
output: ErrorObject,
|
|
1930
|
-
errors: [NotFound, UnknownTriggerDevError],
|
|
1931
|
-
protocol: TriggerDevProtocol,
|
|
1932
|
-
retry: Retry.Retry,
|
|
1933
|
-
}));
|
|
1934
|
-
/** Update environment variable Update a specific environment variable for a specific project and environment. */
|
|
1935
|
-
export const updateProjectEnvvarV1 = /*@__PURE__*/ API.make(() => ({
|
|
1936
|
-
input: UpdateProjectEnvvarV1Request,
|
|
1937
|
-
output: SucceedResponse,
|
|
1938
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1939
|
-
protocol: TriggerDevProtocol,
|
|
1940
|
-
retry: Retry.Retry,
|
|
1941
|
-
}));
|
|
1942
|
-
/** Update run metadata Update the metadata of a run. */
|
|
1943
|
-
export const updateRunMetadataV1 = /*@__PURE__*/ API.make(() => ({
|
|
1944
|
-
input: UpdateRunMetadataV1Request,
|
|
1945
|
-
output: UpdateRunMetadataV1Response,
|
|
1946
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1947
|
-
protocol: TriggerDevProtocol,
|
|
1948
|
-
retry: Retry.Retry,
|
|
1949
|
-
}));
|
|
1950
|
-
/** 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()`. */
|
|
1951
|
-
export const updateScheduleV1 = /*@__PURE__*/ API.make(() => ({
|
|
1952
|
-
input: UpdateScheduleV1Request,
|
|
1953
|
-
output: ScheduleObject,
|
|
1954
|
-
errors: [BadRequest, NotFound, UnprocessableEntity, UnknownTriggerDevError],
|
|
1955
|
-
protocol: TriggerDevProtocol,
|
|
1956
|
-
retry: Retry.Retry,
|
|
1957
|
-
}));
|
|
1958
|
-
/** 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. */
|
|
1959
|
-
export const updateSessionV1 = /*@__PURE__*/ API.make(() => ({
|
|
1960
|
-
input: UpdateSessionV1Request,
|
|
1961
|
-
output: SessionObject,
|
|
1962
|
-
errors: [NotFound, UnprocessableEntity, UnknownTriggerDevError],
|
|
1963
|
-
protocol: TriggerDevProtocol,
|
|
1964
|
-
retry: Retry.Retry,
|
|
1965
|
-
}));
|
|
1966
|
-
/** Upload environment variables Upload mulitple environment variables for a specific project and environment. */
|
|
1967
|
-
export const uploadProjectEnvvarsV1 = /*@__PURE__*/ API.make(() => ({
|
|
1968
|
-
input: UploadProjectEnvvarsV1Request,
|
|
1969
|
-
output: SucceedResponse,
|
|
1970
|
-
errors: [BadRequest, NotFound, UnknownTriggerDevError],
|
|
1971
|
-
protocol: TriggerDevProtocol,
|
|
1972
|
-
retry: Retry.Retry,
|
|
1973
|
-
}));
|
|
1974
|
-
//# sourceMappingURL=trigger-dev.js.map
|