sim 2.2.24-preview.279.1 → 2.2.24-preview.280.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/v2-api.d.ts +77 -0
- package/dist/index.js +41 -0
- package/dist/runtime.js +41 -0
- package/package.json +1 -1
|
@@ -8052,6 +8052,29 @@ export type ListWorkflowsResponse = {
|
|
|
8052
8052
|
data: Array<ListWorkflowsResponseRef0>;
|
|
8053
8053
|
nextCursor: string | null;
|
|
8054
8054
|
};
|
|
8055
|
+
/** `GET /api/v2/workflows/[workflowId]/triggers` */
|
|
8056
|
+
export type ListWorkflowTriggersParams = {
|
|
8057
|
+
workflowId: string;
|
|
8058
|
+
};
|
|
8059
|
+
export type ListWorkflowTriggersQuery = Record<string, unknown>;
|
|
8060
|
+
type ListWorkflowTriggersResponseRef0 = {
|
|
8061
|
+
blockId: string;
|
|
8062
|
+
kind: 'schedule' | 'polling' | 'event' | 'webhook';
|
|
8063
|
+
provider: string | null;
|
|
8064
|
+
enabled: boolean;
|
|
8065
|
+
status: 'active' | 'disabled' | 'completed';
|
|
8066
|
+
failedCount: number;
|
|
8067
|
+
lastFailedAt: string | null;
|
|
8068
|
+
nextRunAt: string | null;
|
|
8069
|
+
lastRanAt: string | null;
|
|
8070
|
+
cronExpression: string | null;
|
|
8071
|
+
timezone: string | null;
|
|
8072
|
+
url: string | null;
|
|
8073
|
+
};
|
|
8074
|
+
export type ListWorkflowTriggersResponse = {
|
|
8075
|
+
data: Array<ListWorkflowTriggersResponseRef0>;
|
|
8076
|
+
nextCursor: string | null;
|
|
8077
|
+
};
|
|
8055
8078
|
/** `GET /api/v2/workflows/[workflowId]/versions` */
|
|
8056
8079
|
export type ListWorkflowVersionsParams = {
|
|
8057
8080
|
workflowId: string;
|
|
@@ -11610,6 +11633,32 @@ type UpdateWorkflowPublicApiResponseRef0 = {
|
|
|
11610
11633
|
export type UpdateWorkflowPublicApiResponse = {
|
|
11611
11634
|
data: UpdateWorkflowPublicApiResponseRef0;
|
|
11612
11635
|
};
|
|
11636
|
+
/** `PATCH /api/v2/workflows/[workflowId]/triggers/[blockId]` */
|
|
11637
|
+
export type UpdateWorkflowTriggerParams = {
|
|
11638
|
+
workflowId: string;
|
|
11639
|
+
blockId: string;
|
|
11640
|
+
};
|
|
11641
|
+
export type UpdateWorkflowTriggerQuery = Record<string, unknown>;
|
|
11642
|
+
export type UpdateWorkflowTriggerBody = {
|
|
11643
|
+
enabled: boolean;
|
|
11644
|
+
};
|
|
11645
|
+
type UpdateWorkflowTriggerResponseRef0 = {
|
|
11646
|
+
blockId: string;
|
|
11647
|
+
kind: 'schedule' | 'polling' | 'event' | 'webhook';
|
|
11648
|
+
provider: string | null;
|
|
11649
|
+
enabled: boolean;
|
|
11650
|
+
status: 'active' | 'disabled' | 'completed';
|
|
11651
|
+
failedCount: number;
|
|
11652
|
+
lastFailedAt: string | null;
|
|
11653
|
+
nextRunAt: string | null;
|
|
11654
|
+
lastRanAt: string | null;
|
|
11655
|
+
cronExpression: string | null;
|
|
11656
|
+
timezone: string | null;
|
|
11657
|
+
url: string | null;
|
|
11658
|
+
};
|
|
11659
|
+
export type UpdateWorkflowTriggerResponse = {
|
|
11660
|
+
data: UpdateWorkflowTriggerResponseRef0;
|
|
11661
|
+
};
|
|
11613
11662
|
/** `PATCH /api/v2/workflows/[workflowId]/versions/[version]` */
|
|
11614
11663
|
export type UpdateWorkflowVersionParams = {
|
|
11615
11664
|
version: number;
|
|
@@ -18114,6 +18163,16 @@ export declare const V2_OPERATIONS: {
|
|
|
18114
18163
|
};
|
|
18115
18164
|
};
|
|
18116
18165
|
};
|
|
18166
|
+
readonly listWorkflowTriggers: {
|
|
18167
|
+
readonly method: 'GET';
|
|
18168
|
+
readonly path: '/api/v2/workflows/[workflowId]/triggers';
|
|
18169
|
+
readonly pathParams: readonly ['workflowId'];
|
|
18170
|
+
readonly pathParamDocs: {
|
|
18171
|
+
readonly workflowId: 'Unique workflow identifier.';
|
|
18172
|
+
};
|
|
18173
|
+
readonly responseMode: 'json';
|
|
18174
|
+
readonly summary: 'List workflow triggers';
|
|
18175
|
+
};
|
|
18117
18176
|
readonly listWorkflowVersions: {
|
|
18118
18177
|
readonly method: 'GET';
|
|
18119
18178
|
readonly path: '/api/v2/workflows/[workflowId]/versions';
|
|
@@ -21121,6 +21180,24 @@ export declare const V2_OPERATIONS: {
|
|
|
21121
21180
|
};
|
|
21122
21181
|
};
|
|
21123
21182
|
};
|
|
21183
|
+
readonly updateWorkflowTrigger: {
|
|
21184
|
+
readonly method: 'PATCH';
|
|
21185
|
+
readonly path: '/api/v2/workflows/[workflowId]/triggers/[blockId]';
|
|
21186
|
+
readonly pathParams: readonly ['workflowId', 'blockId'];
|
|
21187
|
+
readonly pathParamDocs: {
|
|
21188
|
+
readonly workflowId: 'Unique workflow identifier.';
|
|
21189
|
+
readonly blockId: 'Trigger block in the deployed workflow.';
|
|
21190
|
+
};
|
|
21191
|
+
readonly responseMode: 'json';
|
|
21192
|
+
readonly summary: 'Update workflow trigger';
|
|
21193
|
+
readonly body: {
|
|
21194
|
+
readonly enabled: {
|
|
21195
|
+
readonly kind: 'boolean';
|
|
21196
|
+
readonly required: true;
|
|
21197
|
+
readonly describe: 'Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger.';
|
|
21198
|
+
};
|
|
21199
|
+
};
|
|
21200
|
+
};
|
|
21124
21201
|
readonly updateWorkflowVersion: {
|
|
21125
21202
|
readonly method: 'PATCH';
|
|
21126
21203
|
readonly path: '/api/v2/workflows/[workflowId]/versions/[version]';
|
package/dist/index.js
CHANGED
|
@@ -15504,6 +15504,14 @@ var V2_OPERATIONS = {
|
|
|
15504
15504
|
}
|
|
15505
15505
|
}
|
|
15506
15506
|
},
|
|
15507
|
+
listWorkflowTriggers: {
|
|
15508
|
+
method: "GET",
|
|
15509
|
+
path: "/api/v2/workflows/[workflowId]/triggers",
|
|
15510
|
+
pathParams: ["workflowId"],
|
|
15511
|
+
pathParamDocs: { workflowId: "Unique workflow identifier." },
|
|
15512
|
+
responseMode: "json",
|
|
15513
|
+
summary: "List workflow triggers"
|
|
15514
|
+
},
|
|
15507
15515
|
listWorkflowVersions: {
|
|
15508
15516
|
method: "GET",
|
|
15509
15517
|
path: "/api/v2/workflows/[workflowId]/versions",
|
|
@@ -18024,6 +18032,24 @@ var V2_OPERATIONS = {
|
|
|
18024
18032
|
}
|
|
18025
18033
|
}
|
|
18026
18034
|
},
|
|
18035
|
+
updateWorkflowTrigger: {
|
|
18036
|
+
method: "PATCH",
|
|
18037
|
+
path: "/api/v2/workflows/[workflowId]/triggers/[blockId]",
|
|
18038
|
+
pathParams: ["workflowId", "blockId"],
|
|
18039
|
+
pathParamDocs: {
|
|
18040
|
+
workflowId: "Unique workflow identifier.",
|
|
18041
|
+
blockId: "Trigger block in the deployed workflow."
|
|
18042
|
+
},
|
|
18043
|
+
responseMode: "json",
|
|
18044
|
+
summary: "Update workflow trigger",
|
|
18045
|
+
body: {
|
|
18046
|
+
enabled: {
|
|
18047
|
+
kind: "boolean",
|
|
18048
|
+
required: true,
|
|
18049
|
+
describe: "Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger."
|
|
18050
|
+
}
|
|
18051
|
+
}
|
|
18052
|
+
},
|
|
18027
18053
|
updateWorkflowVersion: {
|
|
18028
18054
|
method: "PATCH",
|
|
18029
18055
|
path: "/api/v2/workflows/[workflowId]/versions/[version]",
|
|
@@ -19288,6 +19314,21 @@ var CLI_CONTRACT = {
|
|
|
19288
19314
|
renamedFrom: ["workflows deployment list"],
|
|
19289
19315
|
describe: "Show a workflow’s current deployment"
|
|
19290
19316
|
},
|
|
19317
|
+
listWorkflowTriggers: {
|
|
19318
|
+
describe: "Show the health of every trigger the live deployment serves",
|
|
19319
|
+
columns: [
|
|
19320
|
+
{ header: "block", path: "blockId" },
|
|
19321
|
+
{ header: "kind" },
|
|
19322
|
+
{ header: "provider" },
|
|
19323
|
+
{ header: "status" },
|
|
19324
|
+
{ header: "failures", path: "failedCount" },
|
|
19325
|
+
{ header: "last failed", path: "lastFailedAt", format: "timestamp" },
|
|
19326
|
+
{ header: "next run", path: "nextRunAt", format: "timestamp" }
|
|
19327
|
+
]
|
|
19328
|
+
},
|
|
19329
|
+
updateWorkflowTrigger: {
|
|
19330
|
+
describe: "Enable or disable one trigger of the live deployment"
|
|
19331
|
+
},
|
|
19291
19332
|
setSecret: { hidden: true },
|
|
19292
19333
|
deleteTable: {
|
|
19293
19334
|
confirm: "This archives the table and all of its rows; restore with `tables restore`."
|
package/dist/runtime.js
CHANGED
|
@@ -15553,6 +15553,14 @@ var V2_OPERATIONS = {
|
|
|
15553
15553
|
}
|
|
15554
15554
|
}
|
|
15555
15555
|
},
|
|
15556
|
+
listWorkflowTriggers: {
|
|
15557
|
+
method: "GET",
|
|
15558
|
+
path: "/api/v2/workflows/[workflowId]/triggers",
|
|
15559
|
+
pathParams: ["workflowId"],
|
|
15560
|
+
pathParamDocs: { workflowId: "Unique workflow identifier." },
|
|
15561
|
+
responseMode: "json",
|
|
15562
|
+
summary: "List workflow triggers"
|
|
15563
|
+
},
|
|
15556
15564
|
listWorkflowVersions: {
|
|
15557
15565
|
method: "GET",
|
|
15558
15566
|
path: "/api/v2/workflows/[workflowId]/versions",
|
|
@@ -18073,6 +18081,24 @@ var V2_OPERATIONS = {
|
|
|
18073
18081
|
}
|
|
18074
18082
|
}
|
|
18075
18083
|
},
|
|
18084
|
+
updateWorkflowTrigger: {
|
|
18085
|
+
method: "PATCH",
|
|
18086
|
+
path: "/api/v2/workflows/[workflowId]/triggers/[blockId]",
|
|
18087
|
+
pathParams: ["workflowId", "blockId"],
|
|
18088
|
+
pathParamDocs: {
|
|
18089
|
+
workflowId: "Unique workflow identifier.",
|
|
18090
|
+
blockId: "Trigger block in the deployed workflow."
|
|
18091
|
+
},
|
|
18092
|
+
responseMode: "json",
|
|
18093
|
+
summary: "Update workflow trigger",
|
|
18094
|
+
body: {
|
|
18095
|
+
enabled: {
|
|
18096
|
+
kind: "boolean",
|
|
18097
|
+
required: true,
|
|
18098
|
+
describe: "Whether the trigger should fire. A disable lasts until the next deploy or version activation, which re-enables every trigger."
|
|
18099
|
+
}
|
|
18100
|
+
}
|
|
18101
|
+
},
|
|
18076
18102
|
updateWorkflowVersion: {
|
|
18077
18103
|
method: "PATCH",
|
|
18078
18104
|
path: "/api/v2/workflows/[workflowId]/versions/[version]",
|
|
@@ -19337,6 +19363,21 @@ var CLI_CONTRACT = {
|
|
|
19337
19363
|
renamedFrom: ["workflows deployment list"],
|
|
19338
19364
|
describe: "Show a workflow’s current deployment"
|
|
19339
19365
|
},
|
|
19366
|
+
listWorkflowTriggers: {
|
|
19367
|
+
describe: "Show the health of every trigger the live deployment serves",
|
|
19368
|
+
columns: [
|
|
19369
|
+
{ header: "block", path: "blockId" },
|
|
19370
|
+
{ header: "kind" },
|
|
19371
|
+
{ header: "provider" },
|
|
19372
|
+
{ header: "status" },
|
|
19373
|
+
{ header: "failures", path: "failedCount" },
|
|
19374
|
+
{ header: "last failed", path: "lastFailedAt", format: "timestamp" },
|
|
19375
|
+
{ header: "next run", path: "nextRunAt", format: "timestamp" }
|
|
19376
|
+
]
|
|
19377
|
+
},
|
|
19378
|
+
updateWorkflowTrigger: {
|
|
19379
|
+
describe: "Enable or disable one trigger of the live deployment"
|
|
19380
|
+
},
|
|
19340
19381
|
setSecret: { hidden: true },
|
|
19341
19382
|
deleteTable: {
|
|
19342
19383
|
confirm: "This archives the table and all of its rows; restore with `tables restore`."
|