@zapier/zapier-sdk 0.117.0 → 0.119.0
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/CHANGELOG.md +15 -0
- package/README.md +327 -276
- package/dist/beta.cjs +301 -281
- package/dist/beta.d.mts +7017 -2084
- package/dist/beta.d.ts +7017 -2084
- package/dist/beta.mjs +2 -2
- package/dist/{chunk-Z2SAHSI3.mjs → chunk-6FKWG6WZ.mjs} +55 -20
- package/dist/chunk-JBEQF7XE.mjs +2412 -0
- package/dist/chunk-QTG5EPTI.cjs +2419 -0
- package/dist/{chunk-FDR2QEZI.cjs → chunk-TJXDMXEE.cjs} +56 -19
- package/dist/experimental.cjs +344 -2597
- package/dist/experimental.d.mts +1080 -966
- package/dist/experimental.d.ts +1080 -966
- package/dist/experimental.mjs +15 -2287
- package/dist/{index-DWS1MdAd.d.mts → index-DIWpTc5e.d.mts} +54 -1
- package/dist/{index-DWS1MdAd.d.ts → index-DIWpTc5e.d.ts} +54 -1
- package/dist/index.cjs +283 -279
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-AYRG6FET.mjs +0 -18
- package/dist/chunk-VGYBFMBG.cjs +0 -21
package/dist/experimental.cjs
CHANGED
|
@@ -1,2256 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQTG5EPTI_cjs = require('./chunk-QTG5EPTI.cjs');
|
|
4
|
+
var chunkTJXDMXEE_cjs = require('./chunk-TJXDMXEE.cjs');
|
|
5
5
|
require('./chunk-OBGZSXTJ.cjs');
|
|
6
6
|
var kitcore = require('@zapier/kitcore');
|
|
7
7
|
var zod = require('zod');
|
|
8
8
|
|
|
9
|
-
var codeSubstrateDefaults = {
|
|
10
|
-
categories: [chunkFDR2QEZI_cjs.taxonomy.categories["code-workflow"]],
|
|
11
|
-
stability: "experimental"
|
|
12
|
-
};
|
|
13
|
-
var CODE_SUBSTRATE_ANALYZER_API = "/code-substrate-analyzer";
|
|
14
|
-
var CODE_SUBSTRATE_RUNNER_API = "/code-substrate-runner/api/v0";
|
|
15
|
-
var CODE_SUBSTRATE_WORKFLOWS_API = "/code-substrate-workflows/api/v0";
|
|
16
|
-
function toWireWorkflowClientAttribution({
|
|
17
|
-
creationHarness,
|
|
18
|
-
creationAccessMethod
|
|
19
|
-
}) {
|
|
20
|
-
if (creationAccessMethod === void 0) return void 0;
|
|
21
|
-
return {
|
|
22
|
-
...creationHarness === void 0 ? {} : { harness: creationHarness },
|
|
23
|
-
access_method: creationAccessMethod,
|
|
24
|
-
sdk_version: chunkFDR2QEZI_cjs.SDK_VERSION
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
var JsonPayloadSchema = zod.z.preprocess((val) => {
|
|
28
|
-
if (typeof val === "string") {
|
|
29
|
-
const trimmed = val.trim();
|
|
30
|
-
if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
|
|
31
|
-
try {
|
|
32
|
-
return JSON.parse(trimmed);
|
|
33
|
-
} catch {
|
|
34
|
-
return val;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return val;
|
|
39
|
-
}, zod.z.unknown());
|
|
40
|
-
var SourceFilesSchema = zod.z.record(zod.z.string(), zod.z.string()).refine((files) => Object.keys(files).length > 0, {
|
|
41
|
-
message: "sourceFiles must contain at least one file"
|
|
42
|
-
}).describe("Source files keyed by filename \u2192 contents");
|
|
43
|
-
var UUID_PATTERN = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
44
|
-
var ConnectionIdValueSchema = zod.z.union([
|
|
45
|
-
zod.z.string().regex(/^[1-9][0-9]*$/, "must be a positive integer string"),
|
|
46
|
-
zod.z.string().regex(UUID_PATTERN, "must be a UUID"),
|
|
47
|
-
zod.z.number().int().positive()
|
|
48
|
-
]).describe(
|
|
49
|
-
"Zapier connection ID. Accepts a positive integer (legacy) or a UUID string (newer connections)."
|
|
50
|
-
);
|
|
51
|
-
var ConnectionBindingSchema = zod.z.object({
|
|
52
|
-
connectionId: ConnectionIdValueSchema.optional(),
|
|
53
|
-
/** @deprecated Use `connectionId` instead. */
|
|
54
|
-
connection_id: ConnectionIdValueSchema.optional().meta({ deprecated: true })
|
|
55
|
-
});
|
|
56
|
-
var AppVersionBindingSchema = zod.z.object({
|
|
57
|
-
implementationName: zod.z.string().min(1).optional().describe("Zapier app implementation name (e.g. `SlackCLIAPI`)"),
|
|
58
|
-
/** @deprecated Use `implementationName` instead. */
|
|
59
|
-
implementation_name: zod.z.string().min(1).optional().meta({ deprecated: true }),
|
|
60
|
-
version: zod.z.string().optional().describe("Pinned app version (e.g. `1.27.1`). Latest if omitted.")
|
|
61
|
-
});
|
|
62
|
-
function toWireConnections(connections) {
|
|
63
|
-
const wire = {};
|
|
64
|
-
for (const [alias, entry] of Object.entries(connections)) {
|
|
65
|
-
const connectionId = entry.connectionId ?? entry.connection_id;
|
|
66
|
-
if (connectionId === void 0) {
|
|
67
|
-
throw new chunkFDR2QEZI_cjs.ZapierValidationError(
|
|
68
|
-
`connections["${alias}"] is missing connectionId`
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
wire[alias] = { connection_id: connectionId };
|
|
72
|
-
}
|
|
73
|
-
return wire;
|
|
74
|
-
}
|
|
75
|
-
var TriggerConfigSchema = zod.z.object({
|
|
76
|
-
selectedApi: zod.z.string().optional().describe(
|
|
77
|
-
"Zapier app/API identifier (e.g. 'GoogleSheetsAPI'). Required when a trigger is configured."
|
|
78
|
-
),
|
|
79
|
-
/** @deprecated Use `selectedApi` instead. */
|
|
80
|
-
selected_api: zod.z.string().optional().meta({ deprecated: true }),
|
|
81
|
-
action: zod.z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
82
|
-
authenticationId: zod.z.string().nullish().describe(
|
|
83
|
-
"Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
|
|
84
|
-
),
|
|
85
|
-
/** @deprecated Use `authenticationId` instead. */
|
|
86
|
-
authentication_id: zod.z.string().nullish().meta({ deprecated: true }),
|
|
87
|
-
params: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Trigger parameters as a JSON object")
|
|
88
|
-
}).describe(
|
|
89
|
-
"Zapier trigger configuration. When set, the workflow subscribes to trigger events."
|
|
90
|
-
);
|
|
91
|
-
function toWireTrigger(trigger) {
|
|
92
|
-
const selectedApi = trigger.selectedApi ?? trigger.selected_api;
|
|
93
|
-
if (selectedApi === void 0) {
|
|
94
|
-
throw new chunkFDR2QEZI_cjs.ZapierValidationError("trigger is missing selectedApi");
|
|
95
|
-
}
|
|
96
|
-
const wire = {
|
|
97
|
-
selected_api: selectedApi,
|
|
98
|
-
action: trigger.action
|
|
99
|
-
};
|
|
100
|
-
if ("authenticationId" in trigger) {
|
|
101
|
-
wire.authentication_id = trigger.authenticationId;
|
|
102
|
-
} else if ("authentication_id" in trigger) {
|
|
103
|
-
wire.authentication_id = trigger.authentication_id;
|
|
104
|
-
}
|
|
105
|
-
if (trigger.params !== void 0) {
|
|
106
|
-
wire.params = trigger.params;
|
|
107
|
-
}
|
|
108
|
-
return wire;
|
|
109
|
-
}
|
|
110
|
-
function toWireAppVersions(appVersions) {
|
|
111
|
-
const wire = {};
|
|
112
|
-
for (const [key, entry] of Object.entries(appVersions)) {
|
|
113
|
-
const implementationName = entry.implementationName ?? entry.implementation_name;
|
|
114
|
-
if (implementationName === void 0) {
|
|
115
|
-
throw new chunkFDR2QEZI_cjs.ZapierValidationError(
|
|
116
|
-
`appVersions["${key}"] is missing implementationName`
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
wire[key] = {
|
|
120
|
-
implementation_name: implementationName,
|
|
121
|
-
...entry.version !== void 0 ? { version: entry.version } : {}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
return wire;
|
|
125
|
-
}
|
|
126
|
-
var WorkflowTriggerUrlSchema = zod.z.string().describe(
|
|
127
|
-
"Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path \u2014 treat as sensitive. Requests must also be authenticated as the account."
|
|
128
|
-
);
|
|
129
|
-
var WorkflowEditorUrlSchema = zod.z.string().url().describe("URL to the Zapier workflow editor for this workflow");
|
|
130
|
-
var ConnectionBindingSchema2 = zod.z.object({
|
|
131
|
-
connection_id: zod.z.union([
|
|
132
|
-
zod.z.number().int().positive(),
|
|
133
|
-
zod.z.string().regex(/^[1-9][0-9]*$/, "must be a positive integer string"),
|
|
134
|
-
zod.z.string().uuid("must be a UUID")
|
|
135
|
-
]).describe(
|
|
136
|
-
"Zapier connection ID. Positive integer (legacy) or UUID string (newer)."
|
|
137
|
-
)
|
|
138
|
-
}).describe(
|
|
139
|
-
"Connection binding: maps a single alias to a concrete connection."
|
|
140
|
-
);
|
|
141
|
-
var AppVersionBindingSchema2 = zod.z.object({
|
|
142
|
-
implementation_name: zod.z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
|
|
143
|
-
version: zod.z.string().optional().describe("App implementation version (e.g. '1.27.1')")
|
|
144
|
-
}).describe("App-version binding: maps a single alias to an app version.");
|
|
145
|
-
var WorkflowDraftStatusSchema = zod.z.enum(["open", "discarded"]).describe("Lifecycle status of a workflow draft.");
|
|
146
|
-
var WorkflowClientAccessMethodSchema = zod.z.enum(["sdk_cli", "sdk_mcp", "zapier_mcp", "editor", "api", "unknown"]).describe(
|
|
147
|
-
"Client access method making this request. `sdk_cli` and `sdk_mcp` are derived by the server from the calling package; `zapier_mcp` is caller-declared."
|
|
148
|
-
);
|
|
149
|
-
var WORKFLOW_CLIENT_ATTRIBUTION_HARNESS_MAX_LENGTH = 64;
|
|
150
|
-
var WORKFLOW_CLIENT_ATTRIBUTION_SDK_VERSION_MAX_LENGTH = 64;
|
|
151
|
-
var WorkflowClientAttributionSchema = zod.z.object({
|
|
152
|
-
harness: zod.z.string().max(WORKFLOW_CLIENT_ATTRIBUTION_HARNESS_MAX_LENGTH).nullable().optional().describe("Client harness that made the request"),
|
|
153
|
-
access_method: zod.z.string().describe("Client access method that made the request (SDK, MCP, etc)"),
|
|
154
|
-
sdk_version: zod.z.string().max(WORKFLOW_CLIENT_ATTRIBUTION_SDK_VERSION_MAX_LENGTH).nullable().optional().describe("Version of the client package or SDK that made the request")
|
|
155
|
-
}).describe("Client identity recorded for a workflow, draft or version write");
|
|
156
|
-
var WorkflowClientAttributionFieldSchema = WorkflowClientAttributionSchema.nullable().optional().describe("Client that made the request").meta({ internal: true });
|
|
157
|
-
var WorkflowClientAttributionInputSchema = zod.z.object({
|
|
158
|
-
creationHarness: WorkflowClientAttributionSchema.shape.harness.describe(
|
|
159
|
-
"Optional client harness making this request; null means the client did not report a harness"
|
|
160
|
-
).meta({ internal: true }),
|
|
161
|
-
creationAccessMethod: WorkflowClientAccessMethodSchema.optional().describe(
|
|
162
|
-
WorkflowClientAccessMethodSchema.description ?? "Client access method making this request"
|
|
163
|
-
).meta({ internal: true })
|
|
164
|
-
});
|
|
165
|
-
function hasAccessMethodForHarness({
|
|
166
|
-
creationHarness,
|
|
167
|
-
creationAccessMethod
|
|
168
|
-
}) {
|
|
169
|
-
return creationHarness === void 0 || creationAccessMethod !== void 0;
|
|
170
|
-
}
|
|
171
|
-
var HARNESS_WITHOUT_ACCESS_METHOD_ISSUE = {
|
|
172
|
-
message: "creationAccessMethod is required when creationHarness is provided",
|
|
173
|
-
path: ["creationAccessMethod"]
|
|
174
|
-
};
|
|
175
|
-
var WorkflowVersionTriggerConfigSchema = zod.z.object({
|
|
176
|
-
selected_api: zod.z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
177
|
-
action: zod.z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
178
|
-
authentication_id: zod.z.string().nullish().describe(
|
|
179
|
-
"Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
|
|
180
|
-
),
|
|
181
|
-
params: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Trigger parameters as a JSON object")
|
|
182
|
-
}).describe("Trigger configuration persisted on a workflow version.");
|
|
183
|
-
var WorkflowDraftSchema = zod.z.object({
|
|
184
|
-
id: zod.z.string().describe("Workflow draft ID (UUID)"),
|
|
185
|
-
workflow_id: zod.z.string().describe("Parent workflow ID (UUID)"),
|
|
186
|
-
slug: zod.z.string().describe(
|
|
187
|
-
"Human-friendly display name, not an identifier: two open drafts of a workflow may share one"
|
|
188
|
-
),
|
|
189
|
-
base_version_id: zod.z.string().nullable().describe(
|
|
190
|
-
"The version this draft was forked from (the live version at draft creation), or null when the workflow had no published version yet"
|
|
191
|
-
),
|
|
192
|
-
source_files: zod.z.record(zod.z.string(), zod.z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
193
|
-
zapier_durable_version: zod.z.string().describe("Pinned semver of @zapier/zapier-durable used by this draft"),
|
|
194
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).nullable().describe("Additional npm dependencies pinned for this draft (or null)"),
|
|
195
|
-
draft_revision: zod.z.number().int().describe(
|
|
196
|
-
"Monotonic revision counter for optimistic concurrency. Echo it back on draft updates to detect concurrent edits."
|
|
197
|
-
),
|
|
198
|
-
status: WorkflowDraftStatusSchema,
|
|
199
|
-
created_by_user_id: zod.z.string().describe("ID of the user who created (forked) this draft"),
|
|
200
|
-
last_edited_by_user_id: zod.z.string().nullable().describe("ID of the user who last saved this draft (or null)"),
|
|
201
|
-
last_edited_at: zod.z.string().nullable().describe("When the draft was last edited (ISO-8601, or null)"),
|
|
202
|
-
discarded_at: zod.z.string().nullable().describe("When the draft was discarded (ISO-8601), or null while open"),
|
|
203
|
-
created_at: zod.z.string().describe("When the draft was created (ISO-8601)"),
|
|
204
|
-
updated_at: zod.z.string().describe("When the draft row was last updated (ISO-8601)"),
|
|
205
|
-
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
|
|
206
|
-
"Trigger configuration held on this draft, or null for webhook-only workflows."
|
|
207
|
-
),
|
|
208
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this draft (or null)."),
|
|
209
|
-
app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this draft (or null)."),
|
|
210
|
-
creation_client: WorkflowClientAttributionFieldSchema,
|
|
211
|
-
last_edited_client: WorkflowClientAttributionFieldSchema
|
|
212
|
-
});
|
|
213
|
-
var WorkflowVersionSchema = zod.z.object({
|
|
214
|
-
id: zod.z.string().describe("Workflow version ID (UUID)"),
|
|
215
|
-
workflow_id: zod.z.string().describe("Parent workflow ID (UUID)"),
|
|
216
|
-
source_files: zod.z.record(zod.z.string(), zod.z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
217
|
-
zapier_durable_version: zod.z.string().describe(
|
|
218
|
-
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
219
|
-
),
|
|
220
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
221
|
-
created_by_user_id: zod.z.string().describe("ID of the user who published this version"),
|
|
222
|
-
created_at: zod.z.string().describe("When the version was published (ISO-8601)"),
|
|
223
|
-
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
|
|
224
|
-
"Trigger configuration persisted on this version, or null for webhook-only workflows."
|
|
225
|
-
),
|
|
226
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
|
|
227
|
-
app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
|
|
228
|
-
creation_client: WorkflowClientAttributionFieldSchema
|
|
229
|
-
});
|
|
230
|
-
var WorkflowTriggerStatusSchema = zod.z.enum([
|
|
231
|
-
"unclaimed",
|
|
232
|
-
"pending",
|
|
233
|
-
"active",
|
|
234
|
-
"releasing",
|
|
235
|
-
"released",
|
|
236
|
-
"failed"
|
|
237
|
-
]);
|
|
238
|
-
var WorkflowDisabledReasonSchema = zod.z.enum(["trigger_claim_failed"]);
|
|
239
|
-
var WorkflowTriggerDetailsSchema = zod.z.object({
|
|
240
|
-
webhook_url: zod.z.string().optional().describe(
|
|
241
|
-
"Public catch URL for this trigger. Present on catch-hook triggers (e.g. Webhooks by Zapier)."
|
|
242
|
-
)
|
|
243
|
-
}).describe("Trigger-type-specific metadata. Shape varies by trigger type.");
|
|
244
|
-
var WorkflowTriggerSchema = zod.z.object({
|
|
245
|
-
selected_api: zod.z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
246
|
-
action: zod.z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
247
|
-
authentication_id: zod.z.string().nullish().describe(
|
|
248
|
-
"Connection ID for the trigger source. Null for no-auth triggers."
|
|
249
|
-
),
|
|
250
|
-
params: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Trigger parameters as a JSON object"),
|
|
251
|
-
status: WorkflowTriggerStatusSchema.describe(
|
|
252
|
-
"Live trigger claim status \u2014 whether the trigger is currently subscribed to its source."
|
|
253
|
-
),
|
|
254
|
-
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
255
|
-
// always sends it (null unless status=failed). Already sanitized at write
|
|
256
|
-
// time — surface verbatim.
|
|
257
|
-
error: zod.z.string().nullable().optional().describe(
|
|
258
|
-
"Failure reason for the latest claim. Present (non-null) only when status is 'failed'."
|
|
259
|
-
),
|
|
260
|
-
// webhook_url is named in this prose because the generated README doesn't
|
|
261
|
-
// expand fields nested this deep.
|
|
262
|
-
details: WorkflowTriggerDetailsSchema.nullable().optional().describe(
|
|
263
|
-
"Trigger-type-specific metadata; shape varies by trigger type (e.g. `webhook_url` on catch-hook triggers). Null or absent when none applies."
|
|
264
|
-
)
|
|
265
|
-
}).describe(
|
|
266
|
-
"Trigger from a workflow's current version, combined with the live claim status."
|
|
267
|
-
);
|
|
268
|
-
|
|
269
|
-
// src/plugins/codeSubstrate/listWorkflows/schemas.ts
|
|
270
|
-
var WorkflowItemSchema = zod.z.object({
|
|
271
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
272
|
-
name: zod.z.string().describe("Workflow name"),
|
|
273
|
-
description: zod.z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
274
|
-
trigger_url: WorkflowTriggerUrlSchema,
|
|
275
|
-
editor_url: WorkflowEditorUrlSchema,
|
|
276
|
-
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
277
|
-
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
278
|
-
// always sends it (null unless the workflow was system-disabled).
|
|
279
|
-
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe(
|
|
280
|
-
"Why the workflow is off, when system-disabled. Null when not system-disabled."
|
|
281
|
-
),
|
|
282
|
-
is_private: zod.z.boolean().describe(
|
|
283
|
-
"Whether the workflow is private to the creating user. False means account-visible."
|
|
284
|
-
),
|
|
285
|
-
created_by_user_id: zod.z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
286
|
-
current_version_id: zod.z.string().nullable().describe(
|
|
287
|
-
"ID of the workflow version that runs handle. Null until a version is published."
|
|
288
|
-
),
|
|
289
|
-
triggers: zod.z.array(WorkflowTriggerSchema).describe(
|
|
290
|
-
"Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
|
|
291
|
-
),
|
|
292
|
-
created_at: zod.z.string().describe("When the workflow was created (ISO-8601)"),
|
|
293
|
-
updated_at: zod.z.string().describe("When the workflow was last modified (ISO-8601)"),
|
|
294
|
-
creation_client: WorkflowClientAttributionFieldSchema
|
|
295
|
-
});
|
|
296
|
-
var ListWorkflowsOptionsSchema = zod.z.object({
|
|
297
|
-
pageSize: zod.z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
|
|
298
|
-
maxItems: zod.z.number().int().min(1).optional().describe("Maximum total workflows to return across all pages"),
|
|
299
|
-
cursor: zod.z.string().optional().describe("Cursor to start from for pagination")
|
|
300
|
-
}).describe("List all active durable workflows for the authenticated account");
|
|
301
|
-
var ListWorkflowsApiResponseSchema = zod.z.object({
|
|
302
|
-
results: zod.z.array(WorkflowItemSchema),
|
|
303
|
-
meta: zod.z.object({
|
|
304
|
-
limit: zod.z.number(),
|
|
305
|
-
cursor: zod.z.string().nullable().optional(),
|
|
306
|
-
next_cursor: zod.z.string().nullable().optional()
|
|
307
|
-
}),
|
|
308
|
-
links: zod.z.object({
|
|
309
|
-
next: zod.z.string().nullable().optional()
|
|
310
|
-
}).optional()
|
|
311
|
-
});
|
|
312
|
-
|
|
313
|
-
// src/plugins/codeSubstrate/listWorkflows/index.ts
|
|
314
|
-
var listWorkflowsPlugin = kitcore.defineMethod({
|
|
315
|
-
...codeSubstrateDefaults,
|
|
316
|
-
name: "listWorkflows",
|
|
317
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
318
|
-
type: "list",
|
|
319
|
-
itemType: "Workflow",
|
|
320
|
-
inputSchema: ListWorkflowsOptionsSchema,
|
|
321
|
-
outputSchema: WorkflowItemSchema,
|
|
322
|
-
skipOutputValidation: true,
|
|
323
|
-
// The handler already returns a clean `{ data, nextCursor }` page, so the
|
|
324
|
-
// standard list output (no `adaptPage`) applies.
|
|
325
|
-
output: { type: "list", defaultPageSize: chunkFDR2QEZI_cjs.DEFAULT_PAGE_SIZE },
|
|
326
|
-
run: async ({ imports, input }) => {
|
|
327
|
-
const api = imports.api;
|
|
328
|
-
const searchParams = {};
|
|
329
|
-
if (input.pageSize !== void 0) {
|
|
330
|
-
searchParams.limit = input.pageSize.toString();
|
|
331
|
-
}
|
|
332
|
-
if (input.cursor) {
|
|
333
|
-
searchParams.cursor = input.cursor;
|
|
334
|
-
}
|
|
335
|
-
const raw = await api.get(`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`, {
|
|
336
|
-
searchParams,
|
|
337
|
-
authRequired: true
|
|
338
|
-
});
|
|
339
|
-
const response = ListWorkflowsApiResponseSchema.parse(raw);
|
|
340
|
-
return {
|
|
341
|
-
data: response.results,
|
|
342
|
-
nextCursor: response.meta.next_cursor ?? void 0
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
});
|
|
346
|
-
var WorkflowVersionSchema2 = zod.z.object({
|
|
347
|
-
id: zod.z.string().describe("Workflow version ID (UUID)"),
|
|
348
|
-
workflow_id: zod.z.string().describe("Parent workflow ID"),
|
|
349
|
-
source_files: zod.z.record(zod.z.string(), zod.z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
350
|
-
zapier_durable_version: zod.z.string().describe(
|
|
351
|
-
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
352
|
-
),
|
|
353
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
354
|
-
// Backend column is NOT NULL (see code-substrate-workflows prisma schema:
|
|
355
|
-
// workflow_versions.created_by_user_id), so this is always emitted.
|
|
356
|
-
created_by_user_id: zod.z.string().describe("ID of the user who published this version"),
|
|
357
|
-
created_at: zod.z.string().describe("When the version was published (ISO-8601)"),
|
|
358
|
-
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
|
|
359
|
-
"Trigger configuration persisted on this version, or null for webhook-only workflows."
|
|
360
|
-
),
|
|
361
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
|
|
362
|
-
app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
|
|
363
|
-
creation_client: WorkflowClientAttributionFieldSchema
|
|
364
|
-
});
|
|
365
|
-
var GetWorkflowOptionsSchema = zod.z.object({
|
|
366
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID")
|
|
367
|
-
}).describe(
|
|
368
|
-
"Get a durable workflow with its current version details and trigger claim status"
|
|
369
|
-
);
|
|
370
|
-
var GetWorkflowResponseSchema = zod.z.object({
|
|
371
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
372
|
-
name: zod.z.string().describe("Workflow name"),
|
|
373
|
-
description: zod.z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
374
|
-
trigger_url: WorkflowTriggerUrlSchema,
|
|
375
|
-
editor_url: WorkflowEditorUrlSchema,
|
|
376
|
-
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
377
|
-
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
378
|
-
// always sends it (null unless the workflow was system-disabled). Kept
|
|
379
|
-
// independent of per-trigger status+error — see WorkflowDisabledReasonSchema.
|
|
380
|
-
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe(
|
|
381
|
-
"Why the workflow is off, when system-disabled. Null when not system-disabled. Independent of per-trigger claim status: an enabled workflow can still have a failed trigger."
|
|
382
|
-
),
|
|
383
|
-
is_private: zod.z.boolean().describe(
|
|
384
|
-
"Whether the workflow is private to the creating user. False means account-visible."
|
|
385
|
-
),
|
|
386
|
-
created_by_user_id: zod.z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
387
|
-
current_version: WorkflowVersionSchema2.optional().describe(
|
|
388
|
-
"The currently published version, if any. Absent for workflows with no version published yet."
|
|
389
|
-
),
|
|
390
|
-
triggers: zod.z.array(WorkflowTriggerSchema).describe(
|
|
391
|
-
"Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
|
|
392
|
-
),
|
|
393
|
-
created_at: zod.z.string().describe("When the workflow was created (ISO-8601)"),
|
|
394
|
-
updated_at: zod.z.string().describe("When the workflow was last modified (ISO-8601)"),
|
|
395
|
-
creation_client: WorkflowClientAttributionFieldSchema
|
|
396
|
-
});
|
|
397
|
-
|
|
398
|
-
// src/plugins/codeSubstrate/getWorkflow/index.ts
|
|
399
|
-
var getWorkflowPlugin = kitcore.defineMethod({
|
|
400
|
-
...codeSubstrateDefaults,
|
|
401
|
-
name: "getWorkflow",
|
|
402
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
403
|
-
itemType: "Workflow",
|
|
404
|
-
inputSchema: GetWorkflowOptionsSchema,
|
|
405
|
-
outputSchema: GetWorkflowResponseSchema,
|
|
406
|
-
skipOutputValidation: true,
|
|
407
|
-
output: "item",
|
|
408
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
409
|
-
run: async ({ imports, input }) => {
|
|
410
|
-
const api = imports.api;
|
|
411
|
-
const raw = await api.get(
|
|
412
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
413
|
-
{
|
|
414
|
-
authRequired: true,
|
|
415
|
-
resource: { type: "workflow", id: input.workflow }
|
|
416
|
-
}
|
|
417
|
-
);
|
|
418
|
-
return { data: GetWorkflowResponseSchema.parse(raw) };
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
var CreateWorkflowOptionsSchema = zod.z.object({
|
|
422
|
-
name: zod.z.string().min(1).describe("Workflow name"),
|
|
423
|
-
description: zod.z.string().optional().describe("Optional description for the workflow"),
|
|
424
|
-
private: zod.z.boolean().optional().describe(
|
|
425
|
-
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
426
|
-
),
|
|
427
|
-
...WorkflowClientAttributionInputSchema.shape,
|
|
428
|
-
/** @deprecated Use `private` instead. */
|
|
429
|
-
is_private: zod.z.boolean().optional().describe(
|
|
430
|
-
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
431
|
-
).meta({ deprecated: true })
|
|
432
|
-
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
433
|
-
"Create a durable workflow container. Starts disabled with no version; publish a version to add code."
|
|
434
|
-
);
|
|
435
|
-
var CreateWorkflowResponseSchema = zod.z.object({
|
|
436
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
437
|
-
name: zod.z.string().describe("Workflow name"),
|
|
438
|
-
description: zod.z.string().nullable().describe("Workflow description (null if unset)"),
|
|
439
|
-
trigger_url: WorkflowTriggerUrlSchema,
|
|
440
|
-
editor_url: WorkflowEditorUrlSchema,
|
|
441
|
-
enabled: zod.z.boolean().describe(
|
|
442
|
-
"Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
|
|
443
|
-
),
|
|
444
|
-
is_private: zod.z.boolean().describe(
|
|
445
|
-
"Whether the workflow is private to the creating user. False means account-visible."
|
|
446
|
-
),
|
|
447
|
-
created_by_user_id: zod.z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
448
|
-
created_at: zod.z.string().describe("When the workflow was created (ISO-8601)"),
|
|
449
|
-
creation_client: WorkflowClientAttributionFieldSchema
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
// src/plugins/codeSubstrate/createWorkflow/index.ts
|
|
453
|
-
var createWorkflowPlugin = kitcore.defineMethod({
|
|
454
|
-
...codeSubstrateDefaults,
|
|
455
|
-
name: "createWorkflow",
|
|
456
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
457
|
-
type: "create",
|
|
458
|
-
itemType: "Workflow",
|
|
459
|
-
inputSchema: CreateWorkflowOptionsSchema,
|
|
460
|
-
outputSchema: CreateWorkflowResponseSchema,
|
|
461
|
-
skipOutputValidation: true,
|
|
462
|
-
output: "item",
|
|
463
|
-
run: async ({ imports, input }) => {
|
|
464
|
-
const api = imports.api;
|
|
465
|
-
const body = { name: input.name };
|
|
466
|
-
if (input.description !== void 0) {
|
|
467
|
-
body.description = input.description;
|
|
468
|
-
}
|
|
469
|
-
const isPrivate = input.private ?? input.is_private;
|
|
470
|
-
if (isPrivate !== void 0) {
|
|
471
|
-
body.is_private = isPrivate;
|
|
472
|
-
}
|
|
473
|
-
const creationClient = toWireWorkflowClientAttribution(input);
|
|
474
|
-
if (creationClient !== void 0) {
|
|
475
|
-
body.creation_client = creationClient;
|
|
476
|
-
}
|
|
477
|
-
const raw = await api.post(
|
|
478
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`,
|
|
479
|
-
body,
|
|
480
|
-
{
|
|
481
|
-
authRequired: true
|
|
482
|
-
}
|
|
483
|
-
);
|
|
484
|
-
return { data: CreateWorkflowResponseSchema.parse(raw) };
|
|
485
|
-
}
|
|
486
|
-
});
|
|
487
|
-
var ImportWorkflowOptionsSchema = zod.z.object({
|
|
488
|
-
zap: zod.z.string().min(1).max(128).describe(
|
|
489
|
-
"ID of the Zap to import. Must be owned by the requesting user. Recorded on the created workflow as source_zap_id."
|
|
490
|
-
),
|
|
491
|
-
name: zod.z.string().optional().describe(
|
|
492
|
-
`Name for the created workflow. Defaults to a kebab-cased form of the Zap's title, or "imported-workflow" when the Zap has no title.`
|
|
493
|
-
),
|
|
494
|
-
private: zod.z.boolean().optional().describe(
|
|
495
|
-
"Restrict the created workflow to the creating user. Defaults to false, which makes it account-visible."
|
|
496
|
-
),
|
|
497
|
-
...WorkflowClientAttributionInputSchema.shape
|
|
498
|
-
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
499
|
-
"Convert an existing Zap into a durable workflow. Transforms the Zap's latest published version (falling back to its draft only when the Zap has never been published) and puts the resulting source in an open draft. The workflow is created disabled with no published version, so publish the draft to make it live. The original Zap is untouched and keeps running."
|
|
500
|
-
);
|
|
501
|
-
var TranslationIssueSchema = zod.z.object({
|
|
502
|
-
line: zod.z.number().int().describe(
|
|
503
|
-
"1-based line in the generated source the issue relates to, or 0 when not line-specific."
|
|
504
|
-
),
|
|
505
|
-
column: zod.z.number().int().describe("1-based column, or 0 when not column-specific."),
|
|
506
|
-
node_kind: zod.z.string().describe(
|
|
507
|
-
'Category of the issue, used to group and message them, e.g. "invalid-connection-id", "DelayStep", "app-version-conflict".'
|
|
508
|
-
),
|
|
509
|
-
step_name: zod.z.string().optional().describe("ZDL step id or name the issue originated from, when known."),
|
|
510
|
-
message: zod.z.string().describe("Human-readable description of the issue."),
|
|
511
|
-
blocking: zod.z.boolean().describe(
|
|
512
|
-
"Whether the issue must be resolved before the draft can be published. Computed server-side, so callers do not re-derive it. A blocking issue does not prevent the draft being created."
|
|
513
|
-
)
|
|
514
|
-
});
|
|
515
|
-
var ImportedWorkflowSchema = zod.z.object({
|
|
516
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
517
|
-
name: zod.z.string().describe("Workflow name"),
|
|
518
|
-
description: zod.z.string().nullable().optional().describe("Optional workflow description (null if unset)"),
|
|
519
|
-
trigger_url: WorkflowTriggerUrlSchema,
|
|
520
|
-
editor_url: WorkflowEditorUrlSchema,
|
|
521
|
-
enabled: zod.z.boolean().describe(
|
|
522
|
-
"Whether the workflow accepts triggers. An import always lands disabled."
|
|
523
|
-
),
|
|
524
|
-
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe("Why the workflow is off, when system-disabled."),
|
|
525
|
-
is_private: zod.z.boolean().describe(
|
|
526
|
-
"Whether the workflow is private to the creating user. False means account-visible."
|
|
527
|
-
),
|
|
528
|
-
source_zap_id: zod.z.string().nullable().optional().describe("The Zap this workflow was imported from."),
|
|
529
|
-
created_by_user_id: zod.z.string(),
|
|
530
|
-
updated_by_user_id: zod.z.string().nullable().optional(),
|
|
531
|
-
current_version_id: zod.z.string().nullable().optional().describe("Null on a fresh import, which has no published version yet."),
|
|
532
|
-
triggers: zod.z.array(WorkflowTriggerSchema).describe("Empty on a fresh import, which has no published version yet."),
|
|
533
|
-
created_at: zod.z.string(),
|
|
534
|
-
updated_at: zod.z.string().optional()
|
|
535
|
-
});
|
|
536
|
-
var ImportWorkflowResponseSchema = zod.z.object({
|
|
537
|
-
workflow: ImportedWorkflowSchema.describe(
|
|
538
|
-
"The created workflow. Disabled, with no published version, and source_zap_id set to the imported Zap."
|
|
539
|
-
),
|
|
540
|
-
draft: WorkflowDraftSchema.describe(
|
|
541
|
-
"The open draft holding the transformed source."
|
|
542
|
-
),
|
|
543
|
-
issues: zod.z.array(TranslationIssueSchema).describe(
|
|
544
|
-
"Blocking and non-blocking translation issues from the transform, passed through unchanged. Blocking issues do not prevent draft creation; they must be resolved before the draft will publish."
|
|
545
|
-
)
|
|
546
|
-
});
|
|
547
|
-
|
|
548
|
-
// src/plugins/codeSubstrate/importWorkflow/index.ts
|
|
549
|
-
var importWorkflowPlugin = kitcore.defineMethod({
|
|
550
|
-
...codeSubstrateDefaults,
|
|
551
|
-
name: "importWorkflow",
|
|
552
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
553
|
-
type: "create",
|
|
554
|
-
itemType: "Workflow",
|
|
555
|
-
// The response is the composite `{ workflow, draft, issues }`, not the bare
|
|
556
|
-
// `WorkflowItem` the docs generator derives from itemType.
|
|
557
|
-
returnType: "ImportWorkflowResponse",
|
|
558
|
-
inputSchema: ImportWorkflowOptionsSchema,
|
|
559
|
-
outputSchema: ImportWorkflowResponseSchema,
|
|
560
|
-
skipOutputValidation: true,
|
|
561
|
-
output: "item",
|
|
562
|
-
run: async ({ imports, input }) => {
|
|
563
|
-
const api = imports.api;
|
|
564
|
-
const body = { zap_id: input.zap };
|
|
565
|
-
if (input.name !== void 0) {
|
|
566
|
-
body.name = input.name;
|
|
567
|
-
}
|
|
568
|
-
if (input.private !== void 0) {
|
|
569
|
-
body.is_private = input.private;
|
|
570
|
-
}
|
|
571
|
-
const creationClient = toWireWorkflowClientAttribution(input);
|
|
572
|
-
if (creationClient !== void 0) {
|
|
573
|
-
body.creation_client = creationClient;
|
|
574
|
-
}
|
|
575
|
-
const raw = await api.post(
|
|
576
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/import`,
|
|
577
|
-
body,
|
|
578
|
-
{
|
|
579
|
-
authRequired: true,
|
|
580
|
-
// Import is owner-gated upstream: the endpoint refuses a Zap the
|
|
581
|
-
// requesting user does not own. A bare 403 tells the caller nothing
|
|
582
|
-
// about which gate they hit or what to do, so name both.
|
|
583
|
-
customErrorHandler: ({ status, data }) => {
|
|
584
|
-
if (status === 403) {
|
|
585
|
-
const detail = chunkFDR2QEZI_cjs.extractErrorDetail(data);
|
|
586
|
-
return new chunkFDR2QEZI_cjs.ZapierApiError(
|
|
587
|
-
`${detail ?? "Zap import forbidden"} \u2014 only Zaps owned by the requesting user can be imported. Check the Zap ID belongs to this user, or ask its owner to run the import. Retrying will not help.`,
|
|
588
|
-
{ statusCode: status }
|
|
589
|
-
);
|
|
590
|
-
}
|
|
591
|
-
return void 0;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
);
|
|
595
|
-
return { data: ImportWorkflowResponseSchema.parse(raw) };
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
var UpdateWorkflowOptionsSchema = zod.z.object({
|
|
599
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
600
|
-
name: zod.z.string().min(1).optional().describe("New name for the workflow"),
|
|
601
|
-
description: zod.z.string().nullish().describe("New description for the workflow (pass null to clear)")
|
|
602
|
-
}).refine((data) => data.name !== void 0 || data.description !== void 0, {
|
|
603
|
-
message: "Provide name or description (at least one is required)"
|
|
604
|
-
}).describe("Update a durable workflow's name and/or description");
|
|
605
|
-
var UpdateWorkflowResponseSchema = zod.z.object({
|
|
606
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
607
|
-
name: zod.z.string().describe("Workflow name (post-update)"),
|
|
608
|
-
description: zod.z.string().nullable().describe("Workflow description, post-update (null if unset)"),
|
|
609
|
-
trigger_url: WorkflowTriggerUrlSchema,
|
|
610
|
-
editor_url: WorkflowEditorUrlSchema,
|
|
611
|
-
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
612
|
-
is_private: zod.z.boolean().describe(
|
|
613
|
-
"Whether the workflow is private to the creating user. False means account-visible."
|
|
614
|
-
),
|
|
615
|
-
created_by_user_id: zod.z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
616
|
-
created_at: zod.z.string().describe("When the workflow was created (ISO-8601)"),
|
|
617
|
-
updated_at: zod.z.string().describe("When this update was applied (ISO-8601)")
|
|
618
|
-
});
|
|
619
|
-
|
|
620
|
-
// src/plugins/codeSubstrate/updateWorkflow/index.ts
|
|
621
|
-
var updateWorkflowPlugin = kitcore.defineMethod({
|
|
622
|
-
...codeSubstrateDefaults,
|
|
623
|
-
name: "updateWorkflow",
|
|
624
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
625
|
-
type: "update",
|
|
626
|
-
itemType: "Workflow",
|
|
627
|
-
inputSchema: UpdateWorkflowOptionsSchema,
|
|
628
|
-
outputSchema: UpdateWorkflowResponseSchema,
|
|
629
|
-
skipOutputValidation: true,
|
|
630
|
-
output: "item",
|
|
631
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
632
|
-
run: async ({ imports, input }) => {
|
|
633
|
-
const api = imports.api;
|
|
634
|
-
const body = {};
|
|
635
|
-
if (input.name !== void 0) {
|
|
636
|
-
body.name = input.name;
|
|
637
|
-
}
|
|
638
|
-
if (input.description !== void 0) {
|
|
639
|
-
body.description = input.description;
|
|
640
|
-
}
|
|
641
|
-
const raw = await api.patch(
|
|
642
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
643
|
-
body,
|
|
644
|
-
{
|
|
645
|
-
authRequired: true,
|
|
646
|
-
resource: { type: "workflow", id: input.workflow }
|
|
647
|
-
}
|
|
648
|
-
);
|
|
649
|
-
return { data: UpdateWorkflowResponseSchema.parse(raw) };
|
|
650
|
-
}
|
|
651
|
-
});
|
|
652
|
-
var EnableWorkflowOptionsSchema = zod.z.object({
|
|
653
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID")
|
|
654
|
-
}).describe("Enable a durable workflow so it accepts triggers");
|
|
655
|
-
var EnableWorkflowResponseSchema = zod.z.object({
|
|
656
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
657
|
-
enabled: zod.z.boolean().describe("Workflow's enabled state after the operation (always true)")
|
|
658
|
-
});
|
|
659
|
-
|
|
660
|
-
// src/plugins/codeSubstrate/enableWorkflow/index.ts
|
|
661
|
-
var enableWorkflowPlugin = kitcore.defineMethod({
|
|
662
|
-
...codeSubstrateDefaults,
|
|
663
|
-
name: "enableWorkflow",
|
|
664
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
665
|
-
type: "update",
|
|
666
|
-
itemType: "Workflow",
|
|
667
|
-
inputSchema: EnableWorkflowOptionsSchema,
|
|
668
|
-
outputSchema: EnableWorkflowResponseSchema,
|
|
669
|
-
skipOutputValidation: true,
|
|
670
|
-
output: "item",
|
|
671
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
672
|
-
run: async ({ imports, input }) => {
|
|
673
|
-
const api = imports.api;
|
|
674
|
-
const raw = await api.post(
|
|
675
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/enable`,
|
|
676
|
-
void 0,
|
|
677
|
-
{
|
|
678
|
-
authRequired: true,
|
|
679
|
-
resource: { type: "workflow", id: input.workflow }
|
|
680
|
-
}
|
|
681
|
-
);
|
|
682
|
-
return { data: EnableWorkflowResponseSchema.parse(raw) };
|
|
683
|
-
}
|
|
684
|
-
});
|
|
685
|
-
var DisableWorkflowOptionsSchema = zod.z.object({
|
|
686
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID")
|
|
687
|
-
}).describe("Disable a durable workflow so it stops accepting triggers");
|
|
688
|
-
var DisableWorkflowResponseSchema = zod.z.object({
|
|
689
|
-
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
690
|
-
enabled: zod.z.boolean().describe(
|
|
691
|
-
"Workflow's enabled state after the operation. Typically false; mirrors the row's true state in case a concurrent enable raced with this call."
|
|
692
|
-
)
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
// src/plugins/codeSubstrate/disableWorkflow/index.ts
|
|
696
|
-
var disableWorkflowPlugin = kitcore.defineMethod({
|
|
697
|
-
...codeSubstrateDefaults,
|
|
698
|
-
name: "disableWorkflow",
|
|
699
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
700
|
-
type: "update",
|
|
701
|
-
itemType: "Workflow",
|
|
702
|
-
inputSchema: DisableWorkflowOptionsSchema,
|
|
703
|
-
outputSchema: DisableWorkflowResponseSchema,
|
|
704
|
-
skipOutputValidation: true,
|
|
705
|
-
output: "item",
|
|
706
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
707
|
-
run: async ({ imports, input }) => {
|
|
708
|
-
const api = imports.api;
|
|
709
|
-
const raw = await api.post(
|
|
710
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/disable`,
|
|
711
|
-
void 0,
|
|
712
|
-
{
|
|
713
|
-
authRequired: true,
|
|
714
|
-
resource: { type: "workflow", id: input.workflow }
|
|
715
|
-
}
|
|
716
|
-
);
|
|
717
|
-
return { data: DisableWorkflowResponseSchema.parse(raw) };
|
|
718
|
-
}
|
|
719
|
-
});
|
|
720
|
-
var DeleteWorkflowOptionsSchema = zod.z.object({
|
|
721
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID")
|
|
722
|
-
}).describe(
|
|
723
|
-
"Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't exist; callers wanting idempotency should catch that themselves."
|
|
724
|
-
);
|
|
725
|
-
var DeleteWorkflowResponseSchema = zod.z.object({
|
|
726
|
-
id: zod.z.string().describe("Workflow ID that was targeted for deletion")
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
// src/plugins/codeSubstrate/deleteWorkflow/index.ts
|
|
730
|
-
var deleteWorkflowPlugin = kitcore.defineMethod({
|
|
731
|
-
...codeSubstrateDefaults,
|
|
732
|
-
name: "deleteWorkflow",
|
|
733
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
734
|
-
type: "delete",
|
|
735
|
-
itemType: "Workflow",
|
|
736
|
-
confirm: "delete",
|
|
737
|
-
inputSchema: DeleteWorkflowOptionsSchema,
|
|
738
|
-
outputSchema: DeleteWorkflowResponseSchema,
|
|
739
|
-
skipOutputValidation: true,
|
|
740
|
-
output: "raw",
|
|
741
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
742
|
-
run: async ({ imports, input }) => {
|
|
743
|
-
const api = imports.api;
|
|
744
|
-
await api.delete(
|
|
745
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
746
|
-
void 0,
|
|
747
|
-
{
|
|
748
|
-
authRequired: true,
|
|
749
|
-
resource: { type: "workflow", id: input.workflow }
|
|
750
|
-
}
|
|
751
|
-
);
|
|
752
|
-
return { data: { id: input.workflow } };
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
|
-
var RunStatusSchema = kitcore.openEnum(
|
|
756
|
-
["initialized", "started", "finished", "failed", "cancelled"],
|
|
757
|
-
"Run lifecycle status. `finished` / `failed` / `cancelled` are terminal."
|
|
758
|
-
);
|
|
759
|
-
var RunErrorSchema = zod.z.object({
|
|
760
|
-
code: zod.z.string().describe("Machine-readable error category"),
|
|
761
|
-
message: zod.z.string().describe("Human-readable error summary")
|
|
762
|
-
}).passthrough().describe(
|
|
763
|
-
"Structured run error. Always carries `code` and `message`; additional keys may appear depending on the error type."
|
|
764
|
-
);
|
|
765
|
-
var RunItemSchema = zod.z.object({
|
|
766
|
-
id: zod.z.string().describe("Run ID (UUID)"),
|
|
767
|
-
status: RunStatusSchema,
|
|
768
|
-
input: zod.z.unknown().describe("Input data passed to the run"),
|
|
769
|
-
output: zod.z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
770
|
-
error: RunErrorSchema.nullable().describe(
|
|
771
|
-
"Structured error details when the run failed (null otherwise)"
|
|
772
|
-
),
|
|
773
|
-
execution_id: zod.z.string().nullable().describe(
|
|
774
|
-
"Linked execution ID. Null until the run leaves the `initialized` state."
|
|
775
|
-
),
|
|
776
|
-
is_private: zod.z.boolean().describe(
|
|
777
|
-
"When true, the run is visible only to the creating user; otherwise visible across the account."
|
|
778
|
-
),
|
|
779
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)"),
|
|
780
|
-
updated_at: zod.z.string().describe("When the run was last updated (ISO-8601)")
|
|
781
|
-
});
|
|
782
|
-
var ListDurableRunsOptionsSchema = zod.z.object({
|
|
783
|
-
pageSize: zod.z.number().min(1).max(100).optional().describe("Number of runs per page (max 100)"),
|
|
784
|
-
cursor: zod.z.string().optional().describe("Pagination cursor"),
|
|
785
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
786
|
-
}).describe(
|
|
787
|
-
"List run-once durable runs for the authenticated account, newest first"
|
|
788
|
-
);
|
|
789
|
-
var ListDurableRunsApiResponseSchema = zod.z.object({
|
|
790
|
-
results: zod.z.array(RunItemSchema),
|
|
791
|
-
meta: zod.z.object({
|
|
792
|
-
limit: zod.z.number(),
|
|
793
|
-
cursor: zod.z.string().nullable().optional(),
|
|
794
|
-
next_cursor: zod.z.string().nullable().optional()
|
|
795
|
-
}),
|
|
796
|
-
links: zod.z.object({
|
|
797
|
-
next: zod.z.string().nullable().optional()
|
|
798
|
-
}).optional()
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
// src/plugins/codeSubstrate/listDurableRuns/index.ts
|
|
802
|
-
var listDurableRunsPlugin = kitcore.defineMethod({
|
|
803
|
-
...codeSubstrateDefaults,
|
|
804
|
-
name: "listDurableRuns",
|
|
805
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
806
|
-
type: "list",
|
|
807
|
-
itemType: "DurableRun",
|
|
808
|
-
inputSchema: ListDurableRunsOptionsSchema,
|
|
809
|
-
outputSchema: RunItemSchema,
|
|
810
|
-
skipOutputValidation: true,
|
|
811
|
-
// The handler already returns a clean `{ data, nextCursor }` page, so the
|
|
812
|
-
// standard list output (no `adaptPage`) applies.
|
|
813
|
-
output: { type: "list", defaultPageSize: chunkFDR2QEZI_cjs.DEFAULT_PAGE_SIZE },
|
|
814
|
-
run: async ({ imports, input }) => {
|
|
815
|
-
const api = imports.api;
|
|
816
|
-
const searchParams = {};
|
|
817
|
-
if (input.pageSize !== void 0) {
|
|
818
|
-
searchParams.limit = input.pageSize.toString();
|
|
819
|
-
}
|
|
820
|
-
if (input.cursor) {
|
|
821
|
-
searchParams.cursor = input.cursor;
|
|
822
|
-
}
|
|
823
|
-
const raw = await api.get(`${CODE_SUBSTRATE_RUNNER_API}/runs`, {
|
|
824
|
-
searchParams,
|
|
825
|
-
authRequired: true
|
|
826
|
-
});
|
|
827
|
-
const response = ListDurableRunsApiResponseSchema.parse(raw);
|
|
828
|
-
return {
|
|
829
|
-
data: response.results,
|
|
830
|
-
nextCursor: response.meta.next_cursor ?? void 0
|
|
831
|
-
};
|
|
832
|
-
}
|
|
833
|
-
});
|
|
834
|
-
var OperationTypeSchema = kitcore.openEnum(
|
|
835
|
-
["step", "wait", "callback"],
|
|
836
|
-
"Operation kind: `step` is a journaled function call; `wait` is a time-based suspension; `callback` is a wait on an external callback."
|
|
837
|
-
);
|
|
838
|
-
var OperationStatusSchema = kitcore.openEnum(
|
|
839
|
-
["pending", "completed", "failed", "exhausted", "expired"],
|
|
840
|
-
"Operation lifecycle status. `exhausted` means retries were exceeded; `expired` means a callback's deadline passed without delivery."
|
|
841
|
-
);
|
|
842
|
-
var OperationSchema = zod.z.object({
|
|
843
|
-
id: zod.z.string().describe("Operation ID (UUID)"),
|
|
844
|
-
execution_id: zod.z.string().describe("Parent execution ID"),
|
|
845
|
-
name: zod.z.string().describe("Operation name as declared by the workflow author"),
|
|
846
|
-
type: OperationTypeSchema,
|
|
847
|
-
status: OperationStatusSchema,
|
|
848
|
-
result: zod.z.unknown().optional().describe("Result value when the operation completed"),
|
|
849
|
-
error: zod.z.unknown().optional().describe("Error payload when the operation failed"),
|
|
850
|
-
retry_count: zod.z.number().describe("Number of retry attempts so far"),
|
|
851
|
-
max_attempts: zod.z.number().optional().describe(
|
|
852
|
-
"Cap on total attempts for this operation. Absent if no cap applies."
|
|
853
|
-
),
|
|
854
|
-
next_retry_at: zod.z.string().nullable().optional().describe("When the next retry will be attempted (ISO-8601)"),
|
|
855
|
-
resume_at: zod.z.string().nullable().optional().describe(
|
|
856
|
-
"When a `wait` operation resumes (ISO-8601). Set only for type=wait."
|
|
857
|
-
),
|
|
858
|
-
callback_token: zod.z.string().nullable().optional().describe(
|
|
859
|
-
"Token for delivering a callback. Set only for type=callback; null until the callback URL is materialized."
|
|
860
|
-
),
|
|
861
|
-
payload_schema: zod.z.unknown().optional().describe("JSON Schema describing the expected callback payload"),
|
|
862
|
-
payload: zod.z.unknown().optional().describe("Payload delivered to a callback operation, when received"),
|
|
863
|
-
expires_at: zod.z.string().nullable().optional().describe("When a callback or wait operation expires (ISO-8601)"),
|
|
864
|
-
timeout_seconds: zod.z.number().nullable().optional().describe(
|
|
865
|
-
"Requested callback timeout in seconds, used to set `expires_at`. Absent or null for non-callback operations and callbacks without a timeout."
|
|
866
|
-
),
|
|
867
|
-
completed_at: zod.z.string().nullable().optional().describe("When the operation reached a terminal state (ISO-8601)"),
|
|
868
|
-
created_at: zod.z.string().describe("When the operation was created (ISO-8601)")
|
|
869
|
-
});
|
|
870
|
-
var ExecutionStatusSchema = kitcore.openEnum(
|
|
871
|
-
["running", "waiting", "completed", "failed"],
|
|
872
|
-
"Execution lifecycle status. `waiting` means blocked on a wait or callback operation."
|
|
873
|
-
);
|
|
874
|
-
var ExecutionSummarySchema = zod.z.object({
|
|
875
|
-
id: zod.z.string().describe("Execution ID (UUID)"),
|
|
876
|
-
name: zod.z.string().describe("Durable function name"),
|
|
877
|
-
status: ExecutionStatusSchema,
|
|
878
|
-
input: zod.z.unknown().describe("Input passed when the execution was created"),
|
|
879
|
-
output: zod.z.unknown().optional().describe("Return value when status is `completed`"),
|
|
880
|
-
error: zod.z.unknown().optional().describe("Error details when status is `failed`"),
|
|
881
|
-
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe(
|
|
882
|
-
"Caller-supplied tags (Zap ID, Step ID, Agent ID, etc.) carried alongside the execution"
|
|
883
|
-
),
|
|
884
|
-
created_at: zod.z.string().describe("When the execution was created (ISO-8601)"),
|
|
885
|
-
summary: zod.z.object({
|
|
886
|
-
total_attempts: zod.z.number().describe(
|
|
887
|
-
"Total ticks attempted against this execution across all retries"
|
|
888
|
-
),
|
|
889
|
-
last_error: zod.z.object({
|
|
890
|
-
code: zod.z.string().describe("Machine-readable error category"),
|
|
891
|
-
title: zod.z.string().describe("Short error label"),
|
|
892
|
-
detail: zod.z.string().nullable().optional().describe("Longer-form error detail, when provided")
|
|
893
|
-
}).passthrough().nullable().optional().describe(
|
|
894
|
-
"The most recent error; null when the execution has not errored."
|
|
895
|
-
)
|
|
896
|
-
}).passthrough().nullable().optional().describe(
|
|
897
|
-
"Aggregate health summary. Null when no attempts have been recorded yet."
|
|
898
|
-
),
|
|
899
|
-
operations: zod.z.array(OperationSchema).optional().describe(
|
|
900
|
-
"Operations journal \u2014 append-only record of every step/wait/callback the execution made"
|
|
901
|
-
)
|
|
902
|
-
});
|
|
903
|
-
var GetDurableRunOptionsSchema = zod.z.object({
|
|
904
|
-
run: zod.z.string().uuid().describe("Durable run ID")
|
|
905
|
-
}).describe(
|
|
906
|
-
"Get the full state of a run-once durable run, including its operations journal"
|
|
907
|
-
);
|
|
908
|
-
var GetDurableRunResponseSchema = zod.z.object({
|
|
909
|
-
id: zod.z.string().describe("Run ID (UUID)"),
|
|
910
|
-
status: RunStatusSchema,
|
|
911
|
-
input: zod.z.unknown().describe("Input data passed to the run"),
|
|
912
|
-
output: zod.z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
913
|
-
error: RunErrorSchema.nullable().describe(
|
|
914
|
-
"Structured error details when the run failed (null otherwise)"
|
|
915
|
-
),
|
|
916
|
-
execution: ExecutionSummarySchema.nullable().describe(
|
|
917
|
-
"Linked execution, including the operations journal. Null while the run is still in `initialized` state."
|
|
918
|
-
),
|
|
919
|
-
is_private: zod.z.boolean().describe(
|
|
920
|
-
"When true, the run is visible only to the creating user; otherwise visible across the account."
|
|
921
|
-
),
|
|
922
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)"),
|
|
923
|
-
updated_at: zod.z.string().describe("When the run was last updated (ISO-8601)")
|
|
924
|
-
});
|
|
925
|
-
|
|
926
|
-
// src/plugins/codeSubstrate/getDurableRun/index.ts
|
|
927
|
-
var getDurableRunPlugin = kitcore.defineMethod({
|
|
928
|
-
...codeSubstrateDefaults,
|
|
929
|
-
name: "getDurableRun",
|
|
930
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
931
|
-
itemType: "DurableRun",
|
|
932
|
-
inputSchema: GetDurableRunOptionsSchema,
|
|
933
|
-
outputSchema: GetDurableRunResponseSchema,
|
|
934
|
-
skipOutputValidation: true,
|
|
935
|
-
output: "item",
|
|
936
|
-
resolvers: { run: chunkFDR2QEZI_cjs.durableRunIdResolver },
|
|
937
|
-
run: async ({ imports, input }) => {
|
|
938
|
-
const api = imports.api;
|
|
939
|
-
const raw = await api.get(
|
|
940
|
-
`${CODE_SUBSTRATE_RUNNER_API}/runs/${encodeURIComponent(input.run)}`,
|
|
941
|
-
{
|
|
942
|
-
authRequired: true,
|
|
943
|
-
resource: { type: "run", id: input.run }
|
|
944
|
-
}
|
|
945
|
-
);
|
|
946
|
-
return { data: GetDurableRunResponseSchema.parse(raw) };
|
|
947
|
-
}
|
|
948
|
-
});
|
|
949
|
-
var RunNotificationEventSchema = zod.z.enum(["started", "progress", "completed", "error", "cancelled"]).describe("Run lifecycle event this notification subscribes to");
|
|
950
|
-
var RunNotificationSchema = zod.z.object({
|
|
951
|
-
type: zod.z.literal("webhook").optional().describe("Notification transport. Webhook is the only supported type."),
|
|
952
|
-
url: zod.z.string().url().describe(
|
|
953
|
-
"URL to POST event notifications to. Payload is `{run_id, event}`."
|
|
954
|
-
),
|
|
955
|
-
max_retries: zod.z.number().int().min(0).max(10).optional().describe(
|
|
956
|
-
"Max delivery attempts with exponential backoff. Defaults to 3 server-side."
|
|
957
|
-
),
|
|
958
|
-
events: zod.z.array(RunNotificationEventSchema).min(1).describe("One or more lifecycle events to subscribe this URL to.")
|
|
959
|
-
}).describe(
|
|
960
|
-
"Webhook subscriber for run lifecycle events. Server POSTs `{run_id, event}` on each subscribed transition."
|
|
961
|
-
);
|
|
962
|
-
var RunDurableBaseSchema = zod.z.object({
|
|
963
|
-
input: JsonPayloadSchema.optional().describe(
|
|
964
|
-
"Input data passed to the run. Accepts any JSON value, or its JSON-string encoding."
|
|
965
|
-
),
|
|
966
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional().describe(
|
|
967
|
-
'Optional npm package dependencies. A version of "latest" is resolved by the server for @zapier/zapier-durable and @zapier/zapier-sdk only; every other value, including a "latest" on any other package, is passed to the install as written.'
|
|
968
|
-
),
|
|
969
|
-
zapierDurableVersion: zod.z.string().optional().describe(
|
|
970
|
-
`Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"), or "latest". Defaults to the server-configured version if omitted. "latest" is resolved by the server to the newest release old enough to clear the sandbox install age gate (24h) -- this is not npm's "latest" tag, which can point at a release too new to install. Ranges (^1.2.3, ~1.2) are rejected.`
|
|
971
|
-
),
|
|
972
|
-
/** @deprecated Use `zapierDurableVersion` instead. */
|
|
973
|
-
zapier_durable_version: zod.z.string().optional().meta({ deprecated: true }),
|
|
974
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema).optional().describe(
|
|
975
|
-
'Named connection aliases. Maps each alias to an object holding its Zapier connection ID, e.g. `{ "slack": { "connectionId": "123" } }`.'
|
|
976
|
-
),
|
|
977
|
-
appVersions: zod.z.record(zod.z.string(), AppVersionBindingSchema).optional().describe(
|
|
978
|
-
"Pinned app versions. Maps app keys (slugs) to implementation names and versions."
|
|
979
|
-
),
|
|
980
|
-
/** @deprecated Use `appVersions` instead. */
|
|
981
|
-
app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema).optional().meta({ deprecated: true }),
|
|
982
|
-
private: zod.z.boolean().optional().describe("Only the creating user can see the run (default false)"),
|
|
983
|
-
notifications: zod.z.array(RunNotificationSchema).optional().describe(
|
|
984
|
-
"Webhook subscribers for run lifecycle events. Each entry specifies a URL and the events it subscribes to."
|
|
985
|
-
)
|
|
986
|
-
});
|
|
987
|
-
var RunDurableDescription = "Run a workflow's complete source-files map as a run-once durable run on code-substrate-runner (no deployed workflow required). Send every file the workflow needs, not only its entry point. Returns the run ID immediately; poll via getDurableRun for terminal status.";
|
|
988
|
-
var RunDurableSchema = zod.z.object({ sourceFiles: SourceFilesSchema }).merge(RunDurableBaseSchema).describe(RunDurableDescription).meta({
|
|
989
|
-
aliases: {
|
|
990
|
-
source_files: "sourceFiles",
|
|
991
|
-
zapier_durable_version: "zapierDurableVersion",
|
|
992
|
-
app_versions: "appVersions"
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
var RunDurableSchemaDeprecated = zod.z.object({ source_files: SourceFilesSchema }).merge(RunDurableBaseSchema);
|
|
996
|
-
var RunDurableOptionsSchema = zod.z.union([RunDurableSchema, RunDurableSchemaDeprecated]).describe(RunDurableDescription);
|
|
997
|
-
var RunDurableResponseSchema = zod.z.object({
|
|
998
|
-
id: zod.z.string().describe("Run ID (UUID) \u2014 server-generated, time-sortable"),
|
|
999
|
-
status: zod.z.literal("initialized").describe(
|
|
1000
|
-
"Always `initialized` on creation. Poll via getDurableRun to observe the run advancing to `started` / `finished` / `failed` / `cancelled`."
|
|
1001
|
-
),
|
|
1002
|
-
is_private: zod.z.boolean().describe(
|
|
1003
|
-
"When true, the run is visible only to the creating user; otherwise visible across the account."
|
|
1004
|
-
),
|
|
1005
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)")
|
|
1006
|
-
});
|
|
1007
|
-
var sourceFilesResolver = kitcore.defineResolver({
|
|
1008
|
-
type: "object",
|
|
1009
|
-
additionalKeys: {
|
|
1010
|
-
minEntries: 1,
|
|
1011
|
-
keys: kitcore.defineResolver({
|
|
1012
|
-
type: "static",
|
|
1013
|
-
inputType: "text",
|
|
1014
|
-
placeholder: "filename (e.g. index.ts)"
|
|
1015
|
-
}),
|
|
1016
|
-
values: kitcore.defineResolver({
|
|
1017
|
-
type: "static",
|
|
1018
|
-
inputType: "text",
|
|
1019
|
-
placeholder: "file contents"
|
|
1020
|
-
}),
|
|
1021
|
-
keyValueType: "string",
|
|
1022
|
-
valueValueType: "string"
|
|
1023
|
-
}
|
|
1024
|
-
});
|
|
1025
|
-
|
|
1026
|
-
// src/plugins/codeSubstrate/runDurable/index.ts
|
|
1027
|
-
var runDurablePlugin = kitcore.defineMethod({
|
|
1028
|
-
...codeSubstrateDefaults,
|
|
1029
|
-
name: "runDurable",
|
|
1030
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1031
|
-
type: "create",
|
|
1032
|
-
itemType: "DurableRun",
|
|
1033
|
-
inputSchema: RunDurableOptionsSchema,
|
|
1034
|
-
outputSchema: RunDurableResponseSchema,
|
|
1035
|
-
skipOutputValidation: true,
|
|
1036
|
-
output: "item",
|
|
1037
|
-
resolvers: { sourceFiles: sourceFilesResolver },
|
|
1038
|
-
run: async ({ imports, input }) => {
|
|
1039
|
-
const api = imports.api;
|
|
1040
|
-
const sourceFiles = "sourceFiles" in input ? input.sourceFiles : input.source_files;
|
|
1041
|
-
const zapierDurableVersion = input.zapierDurableVersion ?? input.zapier_durable_version;
|
|
1042
|
-
const appVersions = input.appVersions ?? input.app_versions;
|
|
1043
|
-
const body = { source_files: sourceFiles };
|
|
1044
|
-
if (input.input !== void 0) {
|
|
1045
|
-
body.input = input.input;
|
|
1046
|
-
}
|
|
1047
|
-
if (input.dependencies !== void 0) {
|
|
1048
|
-
body.dependencies = input.dependencies;
|
|
1049
|
-
}
|
|
1050
|
-
if (zapierDurableVersion !== void 0) {
|
|
1051
|
-
body.zapier_durable_version = zapierDurableVersion;
|
|
1052
|
-
}
|
|
1053
|
-
if (input.connections !== void 0) {
|
|
1054
|
-
body.connections = toWireConnections(input.connections);
|
|
1055
|
-
}
|
|
1056
|
-
if (appVersions !== void 0) {
|
|
1057
|
-
body.app_versions = toWireAppVersions(appVersions);
|
|
1058
|
-
}
|
|
1059
|
-
if (input.private !== void 0) {
|
|
1060
|
-
body.is_private = input.private;
|
|
1061
|
-
}
|
|
1062
|
-
if (input.notifications !== void 0) {
|
|
1063
|
-
body.notifications = input.notifications;
|
|
1064
|
-
}
|
|
1065
|
-
const raw = await api.post(`${CODE_SUBSTRATE_RUNNER_API}/runs`, body, {
|
|
1066
|
-
authRequired: true
|
|
1067
|
-
});
|
|
1068
|
-
return { data: RunDurableResponseSchema.parse(raw) };
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
var CancelDurableRunOptionsSchema = zod.z.object({
|
|
1072
|
-
run: zod.z.string().uuid().describe("Durable run ID")
|
|
1073
|
-
}).describe(
|
|
1074
|
-
"Cancel a run-once durable run in initialized or started status. Returns 409 if the run is already terminal."
|
|
1075
|
-
);
|
|
1076
|
-
var CancelDurableRunResponseSchema = zod.z.object({
|
|
1077
|
-
id: zod.z.string().describe("Run ID that was targeted"),
|
|
1078
|
-
status: zod.z.literal("cancelled").describe(
|
|
1079
|
-
"Always `cancelled` on a successful call. Synthesized client-side \u2014 the backend returns 204; callers needing the run's full state should follow up with getDurableRun."
|
|
1080
|
-
)
|
|
1081
|
-
});
|
|
1082
|
-
|
|
1083
|
-
// src/plugins/codeSubstrate/cancelDurableRun/index.ts
|
|
1084
|
-
var cancelDurableRunPlugin = kitcore.defineMethod({
|
|
1085
|
-
...codeSubstrateDefaults,
|
|
1086
|
-
name: "cancelDurableRun",
|
|
1087
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1088
|
-
type: "update",
|
|
1089
|
-
itemType: "DurableRun",
|
|
1090
|
-
inputSchema: CancelDurableRunOptionsSchema,
|
|
1091
|
-
outputSchema: CancelDurableRunResponseSchema,
|
|
1092
|
-
skipOutputValidation: true,
|
|
1093
|
-
output: "item",
|
|
1094
|
-
resolvers: { run: chunkFDR2QEZI_cjs.durableRunIdResolver },
|
|
1095
|
-
run: async ({ imports, input }) => {
|
|
1096
|
-
const api = imports.api;
|
|
1097
|
-
await api.post(
|
|
1098
|
-
`${CODE_SUBSTRATE_RUNNER_API}/runs/${encodeURIComponent(input.run)}/cancel`,
|
|
1099
|
-
void 0,
|
|
1100
|
-
{
|
|
1101
|
-
authRequired: true,
|
|
1102
|
-
resource: { type: "run", id: input.run }
|
|
1103
|
-
}
|
|
1104
|
-
);
|
|
1105
|
-
return { data: { id: input.run, status: "cancelled" } };
|
|
1106
|
-
}
|
|
1107
|
-
});
|
|
1108
|
-
var PublishWorkflowVersionDescription = "Publish a new version of a durable workflow. Enables the workflow by default.";
|
|
1109
|
-
var PublishWorkflowVersionBaseSchema = zod.z.object({
|
|
1110
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional().describe(
|
|
1111
|
-
'Optional npm package dependencies. A version of "latest" is resolved by the server for @zapier/zapier-durable and @zapier/zapier-sdk only; every other value, including a "latest" on any other package, is passed to the install as written.'
|
|
1112
|
-
),
|
|
1113
|
-
zapierDurableVersion: zod.z.string().optional().describe(
|
|
1114
|
-
`Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"), or "latest". Defaults to the server-configured version if omitted. "latest" is resolved by the server to the newest release old enough to clear the sandbox install age gate (24h) -- this is not npm's "latest" tag, which can point at a release too new to install. Ranges (^1.2.3, ~1.2) are rejected.`
|
|
1115
|
-
),
|
|
1116
|
-
/** @deprecated Use `zapierDurableVersion` instead. */
|
|
1117
|
-
zapier_durable_version: zod.z.string().optional().meta({ deprecated: true }),
|
|
1118
|
-
enabled: zod.z.boolean().optional().describe(
|
|
1119
|
-
"Enable the workflow after publishing. Defaults to true if omitted; pass false to publish without enabling."
|
|
1120
|
-
).meta({ negatable: "disabled" }),
|
|
1121
|
-
ignoreOpenDrafts: zod.z.boolean().optional().describe(
|
|
1122
|
-
"Publish even though the workflow has open draft(s). Without this, the API rejects a direct publish with a 409 while any draft is open, since publishing the draft later would ship its stale content over this version."
|
|
1123
|
-
),
|
|
1124
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema).nullish().describe(
|
|
1125
|
-
"Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding."
|
|
1126
|
-
),
|
|
1127
|
-
appVersions: zod.z.record(zod.z.string(), AppVersionBindingSchema).nullish().describe(
|
|
1128
|
-
"Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."
|
|
1129
|
-
),
|
|
1130
|
-
/** @deprecated Use `appVersions` instead. */
|
|
1131
|
-
app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema).nullish().meta({ deprecated: true }),
|
|
1132
|
-
trigger: TriggerConfigSchema.optional().describe(
|
|
1133
|
-
"Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; for an on-demand, triggerless workflow, omit this and pass `manual: true` instead."
|
|
1134
|
-
),
|
|
1135
|
-
manual: zod.z.boolean().optional().describe(
|
|
1136
|
-
"Declare this an on-demand, triggerless workflow version. Pass `manual: true` only when omitting `trigger`; passing both is a contradiction the API rejects with a 400."
|
|
1137
|
-
)
|
|
1138
|
-
});
|
|
1139
|
-
var WorkflowPropertySchema = zod.z.string().uuid().describe("Durable workflow ID");
|
|
1140
|
-
function hasNoTriggerManualConflict(data) {
|
|
1141
|
-
return !(data.trigger !== void 0 && data.manual === true);
|
|
1142
|
-
}
|
|
1143
|
-
var TRIGGER_MANUAL_CONFLICT_MESSAGE = "Provide `trigger` or `manual: true`, not both \u2014 a trigger together with manual: true is a contradiction.";
|
|
1144
|
-
var PublishWorkflowVersionSchema = zod.z.object({
|
|
1145
|
-
workflow: WorkflowPropertySchema,
|
|
1146
|
-
sourceFiles: SourceFilesSchema
|
|
1147
|
-
}).merge(PublishWorkflowVersionBaseSchema).refine(hasNoTriggerManualConflict, {
|
|
1148
|
-
message: TRIGGER_MANUAL_CONFLICT_MESSAGE
|
|
1149
|
-
}).describe(PublishWorkflowVersionDescription).meta({
|
|
1150
|
-
aliases: {
|
|
1151
|
-
source_files: "sourceFiles",
|
|
1152
|
-
zapier_durable_version: "zapierDurableVersion",
|
|
1153
|
-
app_versions: "appVersions"
|
|
1154
|
-
}
|
|
1155
|
-
});
|
|
1156
|
-
var PublishWorkflowVersionSchemaDeprecated = zod.z.object({
|
|
1157
|
-
workflow: WorkflowPropertySchema,
|
|
1158
|
-
source_files: SourceFilesSchema
|
|
1159
|
-
}).merge(PublishWorkflowVersionBaseSchema).refine(hasNoTriggerManualConflict, {
|
|
1160
|
-
message: TRIGGER_MANUAL_CONFLICT_MESSAGE
|
|
1161
|
-
});
|
|
1162
|
-
var PublishWorkflowVersionOptionsSchema = zod.z.union([PublishWorkflowVersionSchema, PublishWorkflowVersionSchemaDeprecated]).describe(PublishWorkflowVersionDescription);
|
|
1163
|
-
var PublishWorkflowVersionResponseSchema = WorkflowVersionSchema;
|
|
1164
|
-
|
|
1165
|
-
// src/plugins/codeSubstrate/publishWorkflowVersion/index.ts
|
|
1166
|
-
function toOpenDraftRef(draft) {
|
|
1167
|
-
if (typeof draft !== "object" || draft === null) return void 0;
|
|
1168
|
-
const record = draft;
|
|
1169
|
-
if (typeof record.id !== "string") return void 0;
|
|
1170
|
-
const ref = { id: record.id };
|
|
1171
|
-
if (typeof record.slug === "string") ref.slug = record.slug;
|
|
1172
|
-
const lastEditedAt = record.last_edited_at;
|
|
1173
|
-
if (typeof lastEditedAt === "string" || lastEditedAt === null) {
|
|
1174
|
-
ref.last_edited_at = lastEditedAt;
|
|
1175
|
-
}
|
|
1176
|
-
const lastEditedByUserId = record.last_edited_by_user_id;
|
|
1177
|
-
if (typeof lastEditedByUserId === "string" || lastEditedByUserId === null) {
|
|
1178
|
-
ref.last_edited_by_user_id = lastEditedByUserId;
|
|
1179
|
-
}
|
|
1180
|
-
return ref;
|
|
1181
|
-
}
|
|
1182
|
-
function extractOpenDraftConflict(data) {
|
|
1183
|
-
if (typeof data !== "object" || data === null) return void 0;
|
|
1184
|
-
const errors = data.errors;
|
|
1185
|
-
if (!Array.isArray(errors)) return void 0;
|
|
1186
|
-
for (const entry of errors) {
|
|
1187
|
-
if (typeof entry !== "object" || entry === null) continue;
|
|
1188
|
-
const meta = entry.meta;
|
|
1189
|
-
if (typeof meta !== "object" || meta === null) continue;
|
|
1190
|
-
const drafts = meta.open_drafts;
|
|
1191
|
-
if (!Array.isArray(drafts)) continue;
|
|
1192
|
-
const refs = drafts.map(toOpenDraftRef).filter((ref) => ref !== void 0);
|
|
1193
|
-
if (refs.length === 0) continue;
|
|
1194
|
-
const detail = entry.detail;
|
|
1195
|
-
return {
|
|
1196
|
-
openDrafts: refs,
|
|
1197
|
-
detail: typeof detail === "string" ? detail : void 0
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
return void 0;
|
|
1201
|
-
}
|
|
1202
|
-
function describeOpenDraft(draft) {
|
|
1203
|
-
const label = draft.slug ? `${draft.slug} (id: ${draft.id})` : draft.id;
|
|
1204
|
-
return draft.last_edited_at ? ` \u2022 ${label}, last edited ${draft.last_edited_at}` : ` \u2022 ${label}`;
|
|
1205
|
-
}
|
|
1206
|
-
var publishWorkflowVersionPlugin = kitcore.defineMethod({
|
|
1207
|
-
...codeSubstrateDefaults,
|
|
1208
|
-
name: "publishWorkflowVersion",
|
|
1209
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1210
|
-
type: "create",
|
|
1211
|
-
itemType: "WorkflowVersion",
|
|
1212
|
-
inputSchema: PublishWorkflowVersionOptionsSchema,
|
|
1213
|
-
outputSchema: PublishWorkflowVersionResponseSchema,
|
|
1214
|
-
skipOutputValidation: true,
|
|
1215
|
-
output: "item",
|
|
1216
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver, sourceFiles: sourceFilesResolver },
|
|
1217
|
-
run: async ({ imports, input }) => {
|
|
1218
|
-
const api = imports.api;
|
|
1219
|
-
const sourceFiles = "sourceFiles" in input ? input.sourceFiles : input.source_files;
|
|
1220
|
-
const zapierDurableVersion = input.zapierDurableVersion ?? input.zapier_durable_version;
|
|
1221
|
-
const appVersions = "appVersions" in input ? input.appVersions : input.app_versions;
|
|
1222
|
-
const body = { source_files: sourceFiles };
|
|
1223
|
-
if (input.dependencies !== void 0) {
|
|
1224
|
-
body.dependencies = input.dependencies;
|
|
1225
|
-
}
|
|
1226
|
-
if (zapierDurableVersion !== void 0) {
|
|
1227
|
-
body.zapier_durable_version = zapierDurableVersion;
|
|
1228
|
-
}
|
|
1229
|
-
if (input.enabled !== void 0) {
|
|
1230
|
-
body.enabled = input.enabled;
|
|
1231
|
-
}
|
|
1232
|
-
if (input.ignoreOpenDrafts !== void 0) {
|
|
1233
|
-
body.ignore_open_drafts = input.ignoreOpenDrafts;
|
|
1234
|
-
}
|
|
1235
|
-
if (input.connections === null) {
|
|
1236
|
-
body.connections = null;
|
|
1237
|
-
} else if (input.connections !== void 0) {
|
|
1238
|
-
body.connections = toWireConnections(input.connections);
|
|
1239
|
-
}
|
|
1240
|
-
if (appVersions === null) {
|
|
1241
|
-
body.app_versions = null;
|
|
1242
|
-
} else if (appVersions !== void 0) {
|
|
1243
|
-
body.app_versions = toWireAppVersions(appVersions);
|
|
1244
|
-
}
|
|
1245
|
-
if (input.trigger !== void 0) {
|
|
1246
|
-
body.trigger = toWireTrigger(input.trigger);
|
|
1247
|
-
}
|
|
1248
|
-
if (input.manual !== void 0) {
|
|
1249
|
-
body.manual = input.manual;
|
|
1250
|
-
}
|
|
1251
|
-
const raw = await api.post(
|
|
1252
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions`,
|
|
1253
|
-
body,
|
|
1254
|
-
{
|
|
1255
|
-
authRequired: true,
|
|
1256
|
-
resource: { type: "workflow", id: input.workflow },
|
|
1257
|
-
// Every 409 from this endpoint is a conflict, so every 409 maps to
|
|
1258
|
-
// ZapierConflictError — mirroring publishWorkflowDraft, and keeping
|
|
1259
|
-
// isZapierConflictError(error) reliable across both publish paths.
|
|
1260
|
-
// The open-draft publish guard's 409 additionally carries
|
|
1261
|
-
// `meta.open_drafts`; surface that list and the remediations instead
|
|
1262
|
-
// of flattening to a generic message — otherwise the caller has to
|
|
1263
|
-
// pick between force-publishing and draft-publishing without seeing
|
|
1264
|
-
// what they'd be forcing over. The structured list rides on the
|
|
1265
|
-
// error's `meta` for programmatic use (CLI --json).
|
|
1266
|
-
customErrorHandler: ({ status, data }) => {
|
|
1267
|
-
if (status !== 409) return void 0;
|
|
1268
|
-
const conflict = extractOpenDraftConflict(data);
|
|
1269
|
-
if (!conflict) {
|
|
1270
|
-
return new chunkFDR2QEZI_cjs.ZapierConflictError(
|
|
1271
|
-
chunkFDR2QEZI_cjs.extractErrorDetail(data) ?? "Workflow version publish conflict.",
|
|
1272
|
-
{ statusCode: status, resourceType: "workflow" }
|
|
1273
|
-
);
|
|
1274
|
-
}
|
|
1275
|
-
const detail = conflict.detail ?? "Cannot publish over open draft(s).";
|
|
1276
|
-
return new chunkFDR2QEZI_cjs.ZapierConflictError(
|
|
1277
|
-
[
|
|
1278
|
-
`${detail} Blocking draft(s):`,
|
|
1279
|
-
...conflict.openDrafts.map(describeOpenDraft),
|
|
1280
|
-
"To keep a draft's changes, publish it with publishWorkflowDraft (CLI: publish-workflow-draft); to abandon them, discard it with discardWorkflowDraft (CLI: discard-workflow-draft); or force-publish over it by retrying with ignoreOpenDrafts: true (CLI: --ignore-open-drafts)."
|
|
1281
|
-
].join("\n"),
|
|
1282
|
-
{
|
|
1283
|
-
statusCode: status,
|
|
1284
|
-
resourceType: "workflow",
|
|
1285
|
-
meta: { open_drafts: conflict.openDrafts }
|
|
1286
|
-
}
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
);
|
|
1291
|
-
return { data: PublishWorkflowVersionResponseSchema.parse(raw) };
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
|
-
var WorkflowVersionListItemSchema = zod.z.object({
|
|
1295
|
-
id: zod.z.string().describe("Workflow version ID (UUID)"),
|
|
1296
|
-
workflow_id: zod.z.string().describe("Parent workflow ID (UUID)"),
|
|
1297
|
-
zapier_durable_version: zod.z.string().describe(
|
|
1298
|
-
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
1299
|
-
),
|
|
1300
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
1301
|
-
created_by_user_id: zod.z.string().describe("ID of the user who published this version"),
|
|
1302
|
-
created_at: zod.z.string().describe("When the version was published (ISO-8601)"),
|
|
1303
|
-
trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
|
|
1304
|
-
"Trigger configuration persisted on this version, or null for webhook-only workflows."
|
|
1305
|
-
),
|
|
1306
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this version (or null)."),
|
|
1307
|
-
app_versions: zod.z.record(zod.z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this version (or null)."),
|
|
1308
|
-
creation_client: WorkflowClientAttributionFieldSchema
|
|
1309
|
-
});
|
|
1310
|
-
var ListWorkflowVersionsOptionsSchema = zod.z.object({
|
|
1311
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1312
|
-
pageSize: zod.z.number().int().min(1).max(100).optional().describe("Number of versions per page (max 100)"),
|
|
1313
|
-
cursor: zod.z.string().optional().describe("Pagination cursor"),
|
|
1314
|
-
maxItems: zod.z.number().int().min(1).optional().describe("Maximum total versions to return across all pages")
|
|
1315
|
-
}).describe("List published versions for a workflow, newest first");
|
|
1316
|
-
var ListWorkflowVersionsApiResponseSchema = zod.z.object({
|
|
1317
|
-
results: zod.z.array(WorkflowVersionListItemSchema),
|
|
1318
|
-
meta: zod.z.object({
|
|
1319
|
-
limit: zod.z.number(),
|
|
1320
|
-
cursor: zod.z.string().nullable().optional(),
|
|
1321
|
-
next_cursor: zod.z.string().nullable().optional()
|
|
1322
|
-
}),
|
|
1323
|
-
links: zod.z.object({
|
|
1324
|
-
next: zod.z.string().nullable().optional()
|
|
1325
|
-
}).optional()
|
|
1326
|
-
});
|
|
1327
|
-
|
|
1328
|
-
// src/plugins/codeSubstrate/listWorkflowVersions/index.ts
|
|
1329
|
-
var listWorkflowVersionsPlugin = kitcore.defineMethod({
|
|
1330
|
-
...codeSubstrateDefaults,
|
|
1331
|
-
name: "listWorkflowVersions",
|
|
1332
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1333
|
-
type: "list",
|
|
1334
|
-
itemType: "WorkflowVersion",
|
|
1335
|
-
inputSchema: ListWorkflowVersionsOptionsSchema,
|
|
1336
|
-
outputSchema: WorkflowVersionListItemSchema,
|
|
1337
|
-
skipOutputValidation: true,
|
|
1338
|
-
// The handler already returns a clean `{ data, nextCursor }` page, so the
|
|
1339
|
-
// standard list output (no `adaptPage`) applies.
|
|
1340
|
-
output: { type: "list", defaultPageSize: chunkFDR2QEZI_cjs.DEFAULT_PAGE_SIZE },
|
|
1341
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
1342
|
-
run: async ({ imports, input }) => {
|
|
1343
|
-
const api = imports.api;
|
|
1344
|
-
const searchParams = {};
|
|
1345
|
-
if (input.pageSize !== void 0) {
|
|
1346
|
-
searchParams.limit = input.pageSize.toString();
|
|
1347
|
-
}
|
|
1348
|
-
if (input.cursor) {
|
|
1349
|
-
searchParams.cursor = input.cursor;
|
|
1350
|
-
}
|
|
1351
|
-
const raw = await api.get(
|
|
1352
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions`,
|
|
1353
|
-
{
|
|
1354
|
-
searchParams,
|
|
1355
|
-
authRequired: true,
|
|
1356
|
-
resource: { type: "workflow", id: input.workflow }
|
|
1357
|
-
}
|
|
1358
|
-
);
|
|
1359
|
-
const response = ListWorkflowVersionsApiResponseSchema.parse(raw);
|
|
1360
|
-
return {
|
|
1361
|
-
data: response.results,
|
|
1362
|
-
nextCursor: response.meta.next_cursor ?? void 0
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
});
|
|
1366
|
-
var GetWorkflowVersionOptionsSchema = zod.z.object({
|
|
1367
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1368
|
-
version: zod.z.string().uuid().describe("Workflow version ID")
|
|
1369
|
-
}).describe("Get full details of a workflow version including source files");
|
|
1370
|
-
var GetWorkflowVersionResponseSchema = WorkflowVersionSchema;
|
|
1371
|
-
|
|
1372
|
-
// src/plugins/codeSubstrate/getWorkflowVersion/index.ts
|
|
1373
|
-
var getWorkflowVersionPlugin = kitcore.defineMethod({
|
|
1374
|
-
...codeSubstrateDefaults,
|
|
1375
|
-
name: "getWorkflowVersion",
|
|
1376
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1377
|
-
itemType: "WorkflowVersion",
|
|
1378
|
-
inputSchema: GetWorkflowVersionOptionsSchema,
|
|
1379
|
-
outputSchema: GetWorkflowVersionResponseSchema,
|
|
1380
|
-
skipOutputValidation: true,
|
|
1381
|
-
output: "item",
|
|
1382
|
-
resolvers: {
|
|
1383
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
1384
|
-
version: chunkFDR2QEZI_cjs.workflowVersionIdResolver
|
|
1385
|
-
},
|
|
1386
|
-
run: async ({ imports, input }) => {
|
|
1387
|
-
const api = imports.api;
|
|
1388
|
-
const raw = await api.get(
|
|
1389
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/versions/${encodeURIComponent(input.version)}`,
|
|
1390
|
-
{
|
|
1391
|
-
authRequired: true,
|
|
1392
|
-
resource: { type: "workflow-version", id: input.version }
|
|
1393
|
-
}
|
|
1394
|
-
);
|
|
1395
|
-
return { data: GetWorkflowVersionResponseSchema.parse(raw) };
|
|
1396
|
-
}
|
|
1397
|
-
});
|
|
1398
|
-
var WorkflowDraftSummarySchema = zod.z.object({
|
|
1399
|
-
id: zod.z.string().describe("Workflow draft ID (UUID)"),
|
|
1400
|
-
workflow_id: zod.z.string().describe("Parent workflow ID (UUID)"),
|
|
1401
|
-
slug: zod.z.string().describe(
|
|
1402
|
-
"Human-friendly display name, not an identifier: two open drafts of a workflow may share one"
|
|
1403
|
-
),
|
|
1404
|
-
base_version_id: zod.z.string().nullable().describe(
|
|
1405
|
-
"The version this draft was forked from (the live version at draft creation), or null when the workflow had no published version yet"
|
|
1406
|
-
),
|
|
1407
|
-
status: WorkflowDraftStatusSchema,
|
|
1408
|
-
last_edited_by_user_id: zod.z.string().nullable().describe("ID of the user who last saved this draft (or null)"),
|
|
1409
|
-
last_edited_at: zod.z.string().nullable().describe("When the draft was last edited (ISO-8601, or null)"),
|
|
1410
|
-
created_at: zod.z.string().describe("When the draft was created (ISO-8601)"),
|
|
1411
|
-
creation_client: WorkflowClientAttributionFieldSchema,
|
|
1412
|
-
last_edited_client: WorkflowClientAttributionFieldSchema
|
|
1413
|
-
});
|
|
1414
|
-
var ListWorkflowDraftsOptionsSchema = zod.z.object({
|
|
1415
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1416
|
-
status: WorkflowDraftStatusSchema.optional().describe(
|
|
1417
|
-
"Filter by draft status (server default: open)"
|
|
1418
|
-
),
|
|
1419
|
-
slug: zod.z.string().optional().describe(
|
|
1420
|
-
"Filter by exact slug match. Slugs are not unique, so this returns every draft with this slug matching the selected status, ordered by most recent activity and paginated"
|
|
1421
|
-
),
|
|
1422
|
-
pageSize: zod.z.number().int().min(1).max(100).optional().describe("Number of drafts per page (max 100)"),
|
|
1423
|
-
cursor: zod.z.string().optional().describe("Pagination cursor"),
|
|
1424
|
-
maxItems: zod.z.number().int().min(1).optional().describe("Maximum total drafts to return across all pages")
|
|
1425
|
-
}).describe(
|
|
1426
|
-
"List drafts for a workflow, most recently edited first (open drafts by default)"
|
|
1427
|
-
);
|
|
1428
|
-
var ListWorkflowDraftsApiResponseSchema = zod.z.object({
|
|
1429
|
-
results: zod.z.array(WorkflowDraftSummarySchema),
|
|
1430
|
-
meta: zod.z.object({
|
|
1431
|
-
limit: zod.z.number(),
|
|
1432
|
-
cursor: zod.z.string().nullable().optional(),
|
|
1433
|
-
next_cursor: zod.z.string().nullable().optional()
|
|
1434
|
-
}),
|
|
1435
|
-
links: zod.z.object({
|
|
1436
|
-
next: zod.z.string().nullable().optional()
|
|
1437
|
-
}).optional()
|
|
1438
|
-
});
|
|
1439
|
-
|
|
1440
|
-
// src/plugins/codeSubstrate/listWorkflowDrafts/index.ts
|
|
1441
|
-
var listWorkflowDraftsPlugin = kitcore.defineMethod({
|
|
1442
|
-
...codeSubstrateDefaults,
|
|
1443
|
-
name: "listWorkflowDrafts",
|
|
1444
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1445
|
-
type: "list",
|
|
1446
|
-
itemType: "WorkflowDraft",
|
|
1447
|
-
inputSchema: ListWorkflowDraftsOptionsSchema,
|
|
1448
|
-
outputSchema: WorkflowDraftSummarySchema,
|
|
1449
|
-
skipOutputValidation: true,
|
|
1450
|
-
// The handler already returns a clean `{ data, nextCursor }` page, so the
|
|
1451
|
-
// standard list output (no `adaptPage`) applies.
|
|
1452
|
-
output: { type: "list", defaultPageSize: chunkFDR2QEZI_cjs.DEFAULT_PAGE_SIZE },
|
|
1453
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
1454
|
-
run: async ({ imports, input }) => {
|
|
1455
|
-
const api = imports.api;
|
|
1456
|
-
const searchParams = {};
|
|
1457
|
-
if (input.status !== void 0) {
|
|
1458
|
-
searchParams.status = input.status;
|
|
1459
|
-
}
|
|
1460
|
-
if (input.slug !== void 0) {
|
|
1461
|
-
searchParams.slug = input.slug;
|
|
1462
|
-
}
|
|
1463
|
-
if (input.pageSize !== void 0) {
|
|
1464
|
-
searchParams.limit = input.pageSize.toString();
|
|
1465
|
-
}
|
|
1466
|
-
if (input.cursor) {
|
|
1467
|
-
searchParams.cursor = input.cursor;
|
|
1468
|
-
}
|
|
1469
|
-
const raw = await api.get(
|
|
1470
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts`,
|
|
1471
|
-
{
|
|
1472
|
-
searchParams,
|
|
1473
|
-
authRequired: true,
|
|
1474
|
-
resource: { type: "workflow", id: input.workflow }
|
|
1475
|
-
}
|
|
1476
|
-
);
|
|
1477
|
-
const response = ListWorkflowDraftsApiResponseSchema.parse(raw);
|
|
1478
|
-
return {
|
|
1479
|
-
data: response.results,
|
|
1480
|
-
nextCursor: response.meta.next_cursor ?? void 0
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
});
|
|
1484
|
-
var GetWorkflowDraftOptionsSchema = zod.z.object({
|
|
1485
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1486
|
-
draft: zod.z.string().uuid().describe("Workflow draft ID")
|
|
1487
|
-
}).describe("Get full details of a workflow draft including source files");
|
|
1488
|
-
var GetWorkflowDraftResponseSchema = WorkflowDraftSchema;
|
|
1489
|
-
|
|
1490
|
-
// src/plugins/codeSubstrate/getWorkflowDraft/index.ts
|
|
1491
|
-
var getWorkflowDraftPlugin = kitcore.defineMethod({
|
|
1492
|
-
...codeSubstrateDefaults,
|
|
1493
|
-
name: "getWorkflowDraft",
|
|
1494
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1495
|
-
itemType: "WorkflowDraft",
|
|
1496
|
-
inputSchema: GetWorkflowDraftOptionsSchema,
|
|
1497
|
-
outputSchema: GetWorkflowDraftResponseSchema,
|
|
1498
|
-
skipOutputValidation: true,
|
|
1499
|
-
output: "item",
|
|
1500
|
-
resolvers: {
|
|
1501
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
1502
|
-
draft: chunkFDR2QEZI_cjs.workflowDraftIdResolver
|
|
1503
|
-
},
|
|
1504
|
-
run: async ({ imports, input }) => {
|
|
1505
|
-
const api = imports.api;
|
|
1506
|
-
const raw = await api.get(
|
|
1507
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}`,
|
|
1508
|
-
{
|
|
1509
|
-
authRequired: true,
|
|
1510
|
-
resource: { type: "workflow-draft", id: input.draft }
|
|
1511
|
-
}
|
|
1512
|
-
);
|
|
1513
|
-
return { data: GetWorkflowDraftResponseSchema.parse(raw) };
|
|
1514
|
-
}
|
|
1515
|
-
});
|
|
1516
|
-
var CreateWorkflowDraftOptionsSchema = zod.z.object({
|
|
1517
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1518
|
-
slug: zod.z.string().min(1).max(128).optional().describe(
|
|
1519
|
-
"Optional display name for the draft. When omitted, the server generates one. Need not be unique among the workflow's open drafts."
|
|
1520
|
-
),
|
|
1521
|
-
...WorkflowClientAttributionInputSchema.shape
|
|
1522
|
-
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
1523
|
-
"Fork a new draft from the workflow's current live version (or a blank stub before the first publish)"
|
|
1524
|
-
);
|
|
1525
|
-
var CreateWorkflowDraftResponseSchema = WorkflowDraftSchema;
|
|
1526
|
-
|
|
1527
|
-
// src/plugins/codeSubstrate/createWorkflowDraft/index.ts
|
|
1528
|
-
var createWorkflowDraftPlugin = kitcore.defineMethod({
|
|
1529
|
-
...codeSubstrateDefaults,
|
|
1530
|
-
name: "createWorkflowDraft",
|
|
1531
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1532
|
-
type: "create",
|
|
1533
|
-
itemType: "WorkflowDraft",
|
|
1534
|
-
inputSchema: CreateWorkflowDraftOptionsSchema,
|
|
1535
|
-
outputSchema: CreateWorkflowDraftResponseSchema,
|
|
1536
|
-
skipOutputValidation: true,
|
|
1537
|
-
output: "item",
|
|
1538
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
1539
|
-
run: async ({ imports, input }) => {
|
|
1540
|
-
const api = imports.api;
|
|
1541
|
-
const body = {};
|
|
1542
|
-
if (input.slug !== void 0) {
|
|
1543
|
-
body.slug = input.slug;
|
|
1544
|
-
}
|
|
1545
|
-
const creationClient = toWireWorkflowClientAttribution(input);
|
|
1546
|
-
if (creationClient !== void 0) {
|
|
1547
|
-
body.creation_client = creationClient;
|
|
1548
|
-
}
|
|
1549
|
-
const raw = await api.post(
|
|
1550
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts`,
|
|
1551
|
-
body,
|
|
1552
|
-
{
|
|
1553
|
-
authRequired: true,
|
|
1554
|
-
resource: { type: "workflow", id: input.workflow }
|
|
1555
|
-
}
|
|
1556
|
-
);
|
|
1557
|
-
return { data: CreateWorkflowDraftResponseSchema.parse(raw) };
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1560
|
-
var TRIGGER_MANUAL_CONFLICT_MESSAGE2 = "Provide `trigger` or `manual: true`, not both \u2014 a trigger together with manual: true is a contradiction.";
|
|
1561
|
-
var UpdateWorkflowDraftOptionsSchema = zod.z.object({
|
|
1562
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1563
|
-
draft: zod.z.string().uuid().describe("Workflow draft ID"),
|
|
1564
|
-
sourceFiles: SourceFilesSchema,
|
|
1565
|
-
zapierDurableVersion: zod.z.string().optional().describe(
|
|
1566
|
-
'Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"), or "latest". Leaves the stored pin unchanged if omitted. A draft stores what you pass verbatim, so "latest" is recorded as-is and resolved to an exact version when the draft is published -- reading the draft back shows "latest", not a version. Ranges (^1.2.3, ~1.2) are rejected at publish.'
|
|
1567
|
-
),
|
|
1568
|
-
dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional().describe(
|
|
1569
|
-
'Optional npm package dependencies. A version of "latest" is resolved by the server for @zapier/zapier-durable and @zapier/zapier-sdk only; every other value, including a "latest" on any other package, is passed to the install as written.'
|
|
1570
|
-
),
|
|
1571
|
-
draftRevision: zod.z.number().int().min(0).optional().describe(
|
|
1572
|
-
"Expected draft revision for optimistic concurrency. Pass the revision from the last read; the server rejects the save with a conflict if the draft has changed since. Omit to skip the check."
|
|
1573
|
-
),
|
|
1574
|
-
trigger: TriggerConfigSchema.nullish().describe(
|
|
1575
|
-
"Trigger configuration. Omit to leave the stored trigger unchanged, pass null to clear it, or pass an object to replace it; for an on-demand, triggerless workflow, clear this and pass `manual: true` instead."
|
|
1576
|
-
),
|
|
1577
|
-
connections: zod.z.record(zod.z.string(), ConnectionBindingSchema).nullish().describe(
|
|
1578
|
-
"Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding."
|
|
1579
|
-
),
|
|
1580
|
-
appVersions: zod.z.record(zod.z.string(), AppVersionBindingSchema).nullish().describe(
|
|
1581
|
-
"Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."
|
|
1582
|
-
),
|
|
1583
|
-
manual: zod.z.boolean().optional().describe(
|
|
1584
|
-
"Declare this draft on-demand and triggerless. Pass `manual: true` only when omitting `trigger` (or clearing it with `trigger: null`); passing both is a contradiction the API rejects with a 400. Setting a `trigger` later clears a previously stored `manual: true`."
|
|
1585
|
-
),
|
|
1586
|
-
...WorkflowClientAttributionInputSchema.shape
|
|
1587
|
-
}).refine(({ trigger, manual }) => manual !== true || trigger == null, {
|
|
1588
|
-
message: TRIGGER_MANUAL_CONFLICT_MESSAGE2
|
|
1589
|
-
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe("Update (autosave) an open workflow draft");
|
|
1590
|
-
var UpdateWorkflowDraftResponseSchema = WorkflowDraftSchema;
|
|
1591
|
-
|
|
1592
|
-
// src/plugins/codeSubstrate/updateWorkflowDraft/index.ts
|
|
1593
|
-
var updateWorkflowDraftPlugin = kitcore.defineMethod({
|
|
1594
|
-
...codeSubstrateDefaults,
|
|
1595
|
-
name: "updateWorkflowDraft",
|
|
1596
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1597
|
-
type: "update",
|
|
1598
|
-
itemType: "WorkflowDraft",
|
|
1599
|
-
inputSchema: UpdateWorkflowDraftOptionsSchema,
|
|
1600
|
-
outputSchema: UpdateWorkflowDraftResponseSchema,
|
|
1601
|
-
skipOutputValidation: true,
|
|
1602
|
-
output: "item",
|
|
1603
|
-
resolvers: {
|
|
1604
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
1605
|
-
draft: chunkFDR2QEZI_cjs.workflowDraftIdResolver,
|
|
1606
|
-
sourceFiles: sourceFilesResolver
|
|
1607
|
-
},
|
|
1608
|
-
run: async ({ imports, input }) => {
|
|
1609
|
-
const api = imports.api;
|
|
1610
|
-
const body = { source_files: input.sourceFiles };
|
|
1611
|
-
if (input.zapierDurableVersion !== void 0) {
|
|
1612
|
-
body.zapier_durable_version = input.zapierDurableVersion;
|
|
1613
|
-
}
|
|
1614
|
-
if (input.dependencies !== void 0) {
|
|
1615
|
-
body.dependencies = input.dependencies;
|
|
1616
|
-
}
|
|
1617
|
-
if (input.draftRevision !== void 0) {
|
|
1618
|
-
body.draft_revision = input.draftRevision;
|
|
1619
|
-
}
|
|
1620
|
-
if (input.trigger === null) {
|
|
1621
|
-
body.trigger = null;
|
|
1622
|
-
} else if (input.trigger !== void 0) {
|
|
1623
|
-
body.trigger = toWireTrigger(input.trigger);
|
|
1624
|
-
}
|
|
1625
|
-
if (input.connections === null) {
|
|
1626
|
-
body.connections = null;
|
|
1627
|
-
} else if (input.connections !== void 0) {
|
|
1628
|
-
body.connections = toWireConnections(input.connections);
|
|
1629
|
-
}
|
|
1630
|
-
if (input.appVersions === null) {
|
|
1631
|
-
body.app_versions = null;
|
|
1632
|
-
} else if (input.appVersions !== void 0) {
|
|
1633
|
-
body.app_versions = toWireAppVersions(input.appVersions);
|
|
1634
|
-
}
|
|
1635
|
-
if (input.manual !== void 0) {
|
|
1636
|
-
body.manual = input.manual;
|
|
1637
|
-
}
|
|
1638
|
-
const creationClient = toWireWorkflowClientAttribution(input);
|
|
1639
|
-
if (creationClient !== void 0) {
|
|
1640
|
-
body.creation_client = creationClient;
|
|
1641
|
-
}
|
|
1642
|
-
const raw = await api.put(
|
|
1643
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}`,
|
|
1644
|
-
body,
|
|
1645
|
-
{
|
|
1646
|
-
authRequired: true,
|
|
1647
|
-
resource: { type: "workflow-draft", id: input.draft },
|
|
1648
|
-
// A 409 is the optimistic-concurrency signal: the draft's revision
|
|
1649
|
-
// moved past the caller's `draftRevision` (someone else saved in
|
|
1650
|
-
// between). Type it so callers can catch ZapierConflictError,
|
|
1651
|
-
// re-read the draft, and retry instead of blind-overwriting.
|
|
1652
|
-
customErrorHandler: ({ status, data }) => {
|
|
1653
|
-
if (status === 409) {
|
|
1654
|
-
const detail = chunkFDR2QEZI_cjs.extractErrorDetail(data);
|
|
1655
|
-
return new chunkFDR2QEZI_cjs.ZapierConflictError(
|
|
1656
|
-
`${detail ?? "Draft revision conflict"} \u2014 the draft changed since it was last read. Re-read the draft to get the current draft_revision, merge your edits, and retry.`,
|
|
1657
|
-
{ statusCode: status, resourceType: "workflow-draft" }
|
|
1658
|
-
);
|
|
1659
|
-
}
|
|
1660
|
-
return void 0;
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
);
|
|
1664
|
-
return { data: UpdateWorkflowDraftResponseSchema.parse(raw) };
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
|
-
var DiscardWorkflowDraftOptionsSchema = zod.z.object({
|
|
1668
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1669
|
-
draft: zod.z.string().uuid().describe("Workflow draft ID")
|
|
1670
|
-
}).describe(
|
|
1671
|
-
"Discard an open workflow draft (soft delete). The draft's unpublished edits stop resolving; the published version is untouched."
|
|
1672
|
-
);
|
|
1673
|
-
var DiscardWorkflowDraftResponseSchema = WorkflowDraftSchema;
|
|
1674
|
-
|
|
1675
|
-
// src/plugins/codeSubstrate/discardWorkflowDraft/index.ts
|
|
1676
|
-
var discardWorkflowDraftPlugin = kitcore.defineMethod({
|
|
1677
|
-
...codeSubstrateDefaults,
|
|
1678
|
-
name: "discardWorkflowDraft",
|
|
1679
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1680
|
-
type: "delete",
|
|
1681
|
-
itemType: "WorkflowDraft",
|
|
1682
|
-
// Soft delete returns the discarded draft, not the `{ success: boolean }`
|
|
1683
|
-
// shape the docs generator assumes for delete methods.
|
|
1684
|
-
returnType: "WorkflowDraftItem",
|
|
1685
|
-
// Discard throws away the draft's unpublished edits, so it warrants the
|
|
1686
|
-
// same interactive confirmation as deleteWorkflow.
|
|
1687
|
-
confirm: "delete",
|
|
1688
|
-
inputSchema: DiscardWorkflowDraftOptionsSchema,
|
|
1689
|
-
outputSchema: DiscardWorkflowDraftResponseSchema,
|
|
1690
|
-
skipOutputValidation: true,
|
|
1691
|
-
output: "item",
|
|
1692
|
-
resolvers: {
|
|
1693
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
1694
|
-
draft: chunkFDR2QEZI_cjs.workflowDraftIdResolver
|
|
1695
|
-
},
|
|
1696
|
-
run: async ({ imports, input }) => {
|
|
1697
|
-
const api = imports.api;
|
|
1698
|
-
const raw = await api.delete(
|
|
1699
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}`,
|
|
1700
|
-
void 0,
|
|
1701
|
-
{
|
|
1702
|
-
authRequired: true,
|
|
1703
|
-
resource: { type: "workflow-draft", id: input.draft }
|
|
1704
|
-
}
|
|
1705
|
-
);
|
|
1706
|
-
return { data: DiscardWorkflowDraftResponseSchema.parse(raw) };
|
|
1707
|
-
}
|
|
1708
|
-
});
|
|
1709
|
-
var PublishWorkflowDraftOptionsSchema = zod.z.object({
|
|
1710
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1711
|
-
draft: zod.z.string().uuid().describe("Workflow draft ID"),
|
|
1712
|
-
enabled: zod.z.boolean().optional().describe(
|
|
1713
|
-
"Set the workflow's enabled state as part of the publish. If omitted, the current enabled state is preserved."
|
|
1714
|
-
).meta({ negatable: "disabled" }),
|
|
1715
|
-
draftRevision: zod.z.number().int().min(0).optional().describe(
|
|
1716
|
-
"Expected draft revision for optimistic concurrency. Pass the revision from the last read; the server rejects the publish with a conflict if the draft has changed since. Omit to skip the check."
|
|
1717
|
-
),
|
|
1718
|
-
manual: zod.z.boolean().optional().describe(
|
|
1719
|
-
"Declare this publish on-demand and triggerless, overriding the draft's stored intent for this publish only. Pass `manual: true` only when the draft has no trigger configured; the API rejects a draft with a trigger published as `manual: true` as a contradiction (400)."
|
|
1720
|
-
),
|
|
1721
|
-
...WorkflowClientAttributionInputSchema.shape
|
|
1722
|
-
}).refine(hasAccessMethodForHarness, HARNESS_WITHOUT_ACCESS_METHOD_ISSUE).describe(
|
|
1723
|
-
"Publish an open draft as a new immutable workflow version. Advances the workflow's live pointer and discards the draft \u2014 publish consumes it, so an open draft always means unpublished work. Continue editing by creating a new draft, which forks from the just-published version."
|
|
1724
|
-
);
|
|
1725
|
-
var PublishWorkflowDraftResponseSchema = zod.z.object({
|
|
1726
|
-
draft: WorkflowDraftSchema.describe(
|
|
1727
|
-
"The consumed draft: status is 'discarded' and discarded_at is set. base_version_id still records the version the draft was forked from."
|
|
1728
|
-
),
|
|
1729
|
-
version: WorkflowVersionSchema.describe(
|
|
1730
|
-
"The newly published immutable workflow version, now live."
|
|
1731
|
-
)
|
|
1732
|
-
});
|
|
1733
|
-
|
|
1734
|
-
// src/plugins/codeSubstrate/publishWorkflowDraft/index.ts
|
|
1735
|
-
var publishWorkflowDraftPlugin = kitcore.defineMethod({
|
|
1736
|
-
...codeSubstrateDefaults,
|
|
1737
|
-
name: "publishWorkflowDraft",
|
|
1738
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1739
|
-
type: "create",
|
|
1740
|
-
itemType: "WorkflowVersion",
|
|
1741
|
-
// The response is the composite `{ draft, version }`, not the bare
|
|
1742
|
-
// `WorkflowVersionItem` the docs generator derives from itemType.
|
|
1743
|
-
returnType: "PublishWorkflowDraftResponse",
|
|
1744
|
-
inputSchema: PublishWorkflowDraftOptionsSchema,
|
|
1745
|
-
outputSchema: PublishWorkflowDraftResponseSchema,
|
|
1746
|
-
skipOutputValidation: true,
|
|
1747
|
-
output: "item",
|
|
1748
|
-
resolvers: {
|
|
1749
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
1750
|
-
draft: chunkFDR2QEZI_cjs.workflowDraftIdResolver
|
|
1751
|
-
},
|
|
1752
|
-
run: async ({ imports, input }) => {
|
|
1753
|
-
const api = imports.api;
|
|
1754
|
-
const body = {};
|
|
1755
|
-
if (input.enabled !== void 0) {
|
|
1756
|
-
body.enabled = input.enabled;
|
|
1757
|
-
}
|
|
1758
|
-
if (input.draftRevision !== void 0) {
|
|
1759
|
-
body.draft_revision = input.draftRevision;
|
|
1760
|
-
}
|
|
1761
|
-
if (input.manual !== void 0) {
|
|
1762
|
-
body.manual = input.manual;
|
|
1763
|
-
}
|
|
1764
|
-
const creationClient = toWireWorkflowClientAttribution(input);
|
|
1765
|
-
if (creationClient !== void 0) {
|
|
1766
|
-
body.creation_client = creationClient;
|
|
1767
|
-
}
|
|
1768
|
-
const raw = await api.post(
|
|
1769
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}/publish`,
|
|
1770
|
-
body,
|
|
1771
|
-
{
|
|
1772
|
-
authRequired: true,
|
|
1773
|
-
resource: { type: "workflow-draft", id: input.draft },
|
|
1774
|
-
// Preserve the endpoint's distinct failure modes instead of letting
|
|
1775
|
-
// them flatten into a generic API error:
|
|
1776
|
-
// 409 — the draft was edited concurrently (draft_revision moved past
|
|
1777
|
-
// the caller's), or a trigger subscription switchover is
|
|
1778
|
-
// already in progress. Retryable after re-reading the draft.
|
|
1779
|
-
// 503 — the trigger config could not be validated against the
|
|
1780
|
-
// platform catalog; validation is fail-closed so the publish
|
|
1781
|
-
// is rejected rather than committing unvalidated config.
|
|
1782
|
-
// Retryable as-is.
|
|
1783
|
-
// 400 (invalid zapier_durable_version / trigger config) already maps
|
|
1784
|
-
// to ZapierValidationError via the client's default handling.
|
|
1785
|
-
customErrorHandler: ({ status, data }) => {
|
|
1786
|
-
if (status === 409) {
|
|
1787
|
-
const detail = chunkFDR2QEZI_cjs.extractErrorDetail(data);
|
|
1788
|
-
return new chunkFDR2QEZI_cjs.ZapierConflictError(
|
|
1789
|
-
`${detail ?? "Draft publish conflict"} \u2014 the draft changed since it was last read, or a trigger switchover is already in progress. Re-read the draft to get the current draft_revision, then retry the publish.`,
|
|
1790
|
-
{ statusCode: status, resourceType: "workflow-draft" }
|
|
1791
|
-
);
|
|
1792
|
-
}
|
|
1793
|
-
if (status === 503) {
|
|
1794
|
-
const detail = chunkFDR2QEZI_cjs.extractErrorDetail(data);
|
|
1795
|
-
return new chunkFDR2QEZI_cjs.ZapierApiError(
|
|
1796
|
-
detail !== void 0 ? `${detail} \u2014 the trigger config could not be validated against the platform catalog, so the publish was rejected (fail-closed). This is transient; retry the publish.` : "Draft publish temporarily unavailable \u2014 trigger validation is fail-closed, or the service is briefly unavailable. This is transient; retry the publish.",
|
|
1797
|
-
{ statusCode: status }
|
|
1798
|
-
);
|
|
1799
|
-
}
|
|
1800
|
-
return void 0;
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
);
|
|
1804
|
-
return { data: PublishWorkflowDraftResponseSchema.parse(raw) };
|
|
1805
|
-
}
|
|
1806
|
-
});
|
|
1807
|
-
var WorkflowRunStatusSchema = zod.z.union([
|
|
1808
|
-
zod.z.enum(["initialized", "started", "finished", "failed", "cancelled"]),
|
|
1809
|
-
zod.z.string()
|
|
1810
|
-
]).describe(
|
|
1811
|
-
"Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal."
|
|
1812
|
-
);
|
|
1813
|
-
var workflowRunListItemBase = zod.z.object({
|
|
1814
|
-
id: zod.z.string().describe("Workflow run ID (UUIDv7). Unique across live and draft runs."),
|
|
1815
|
-
durable_run_id: zod.z.string().nullable().describe(
|
|
1816
|
-
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
1817
|
-
),
|
|
1818
|
-
status: WorkflowRunStatusSchema,
|
|
1819
|
-
input: zod.z.unknown().describe("Input passed to the run"),
|
|
1820
|
-
error: zod.z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
1821
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)"),
|
|
1822
|
-
updated_at: zod.z.string().describe("When the run was last updated (ISO-8601)")
|
|
1823
|
-
});
|
|
1824
|
-
var LiveWorkflowRunListItemSchema = workflowRunListItemBase.extend({
|
|
1825
|
-
kind: zod.z.literal("live").describe("A run of a published workflow version."),
|
|
1826
|
-
trigger_id: zod.z.string().nullable().describe(
|
|
1827
|
-
"ID of the trigger that fired this run. Null for runs created without a trigger."
|
|
1828
|
-
),
|
|
1829
|
-
workflow_version_id: zod.z.string().nullable().describe("Workflow version the run is bound to. Null in rare edge cases.")
|
|
1830
|
-
});
|
|
1831
|
-
var DraftWorkflowRunListItemSchema = workflowRunListItemBase.extend({
|
|
1832
|
-
kind: zod.z.literal("draft").describe("A run launched from a workflow draft via `runWorkflowDraft`."),
|
|
1833
|
-
workflow_draft_id: zod.z.string().nullable().describe(
|
|
1834
|
-
"The draft this run was launched from. Null once that draft has been deleted (the run outlives its draft)."
|
|
1835
|
-
),
|
|
1836
|
-
draft_revision: zod.z.number().int().describe("The draft's revision at the moment this run was created.")
|
|
1837
|
-
});
|
|
1838
|
-
var WorkflowRunListItemSchema = zod.z.discriminatedUnion("kind", [
|
|
1839
|
-
LiveWorkflowRunListItemSchema,
|
|
1840
|
-
DraftWorkflowRunListItemSchema
|
|
1841
|
-
]);
|
|
1842
|
-
var ListWorkflowRunsOptionsSchema = zod.z.object({
|
|
1843
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1844
|
-
pageSize: zod.z.number().int().min(1).max(100).optional().describe("Number of runs per page (max 100)"),
|
|
1845
|
-
kind: zod.z.enum(["live", "draft"]).optional().describe(
|
|
1846
|
-
"Return only runs of this kind. Omit for both, interleaved by recency."
|
|
1847
|
-
),
|
|
1848
|
-
cursor: zod.z.string().optional().describe("Pagination cursor"),
|
|
1849
|
-
maxItems: zod.z.number().int().min(1).optional().describe("Maximum total runs to return across all pages")
|
|
1850
|
-
}).describe(
|
|
1851
|
-
"List workflow runs for a specific workflow, newest first. Live runs (of published versions) and draft runs share the one list; pass `kind` to narrow it to one."
|
|
1852
|
-
);
|
|
1853
|
-
var ListWorkflowRunsApiResponseSchema = zod.z.object({
|
|
1854
|
-
results: zod.z.array(WorkflowRunListItemSchema),
|
|
1855
|
-
meta: zod.z.object({
|
|
1856
|
-
limit: zod.z.number(),
|
|
1857
|
-
cursor: zod.z.string().nullable().optional(),
|
|
1858
|
-
next_cursor: zod.z.string().nullable().optional()
|
|
1859
|
-
}),
|
|
1860
|
-
links: zod.z.object({
|
|
1861
|
-
next: zod.z.string().nullable().optional()
|
|
1862
|
-
}).optional()
|
|
1863
|
-
});
|
|
1864
|
-
|
|
1865
|
-
// src/plugins/codeSubstrate/runWorkflowDraft/schemas.ts
|
|
1866
|
-
var RunWorkflowDraftOptionsSchema = zod.z.object({
|
|
1867
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
1868
|
-
draft: zod.z.string().uuid().describe("Workflow draft ID"),
|
|
1869
|
-
draftRevision: zod.z.number().int().min(0).describe(
|
|
1870
|
-
"The draft revision you intend to run, from the last read of the draft. The server rejects the run with a conflict if the draft has changed since. The upstream API treats this check as optional; the SDK requires it so a test run can never silently execute source the caller has already replaced."
|
|
1871
|
-
),
|
|
1872
|
-
input: JsonPayloadSchema.optional().describe(
|
|
1873
|
-
"Input data passed to the workflow. Accepts any JSON value, or its JSON-string encoding. Omit for a workflow that takes no input."
|
|
1874
|
-
)
|
|
1875
|
-
}).describe(
|
|
1876
|
-
"Launch a draft test run: execute the draft's current source without publishing it. The draft's payload is snapshotted onto the run at creation, so later edits (or discarding the draft) never change what the run executed. Draft runs are free (not task-charged) and rate limited per user. The run is accepted asynchronously \u2014 it comes back `initialized`; follow it with `getWorkflowRun`, or list it via `listWorkflowRuns` with `kind: \"draft\"`."
|
|
1877
|
-
);
|
|
1878
|
-
var RunWorkflowDraftResponseSchema = zod.z.object({
|
|
1879
|
-
id: zod.z.string().describe("Workflow run ID (UUIDv7). Unique across live and draft runs."),
|
|
1880
|
-
kind: zod.z.literal("draft").describe("A run launched from a workflow draft."),
|
|
1881
|
-
workflow_id: zod.z.string().describe("The workflow this run belongs to"),
|
|
1882
|
-
durable_run_id: zod.z.string().nullable().describe(
|
|
1883
|
-
"Linked code-substrate-runner run ID. Usually still null in this response \u2014 the run is accepted and launched in the background."
|
|
1884
|
-
),
|
|
1885
|
-
workflow_draft_id: zod.z.string().nullable().describe(
|
|
1886
|
-
"The draft this run was launched from. Becomes null once that draft is deleted \u2014 the run outlives its draft."
|
|
1887
|
-
),
|
|
1888
|
-
draft_revision: zod.z.number().int().describe("The draft's revision at the moment this run was created."),
|
|
1889
|
-
status: WorkflowRunStatusSchema,
|
|
1890
|
-
input: zod.z.unknown().describe("Input passed to the run"),
|
|
1891
|
-
output: zod.z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
1892
|
-
error: zod.z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
1893
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)"),
|
|
1894
|
-
updated_at: zod.z.string().describe("When the run was last updated (ISO-8601)")
|
|
1895
|
-
});
|
|
1896
|
-
|
|
1897
|
-
// src/plugins/codeSubstrate/runWorkflowDraft/index.ts
|
|
1898
|
-
var runWorkflowDraftPlugin = kitcore.defineMethod({
|
|
1899
|
-
...codeSubstrateDefaults,
|
|
1900
|
-
name: "runWorkflowDraft",
|
|
1901
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1902
|
-
type: "create",
|
|
1903
|
-
itemType: "WorkflowRun",
|
|
1904
|
-
// The response is the draft variant of the run resource (`kind: "draft"`,
|
|
1905
|
-
// required `workflow_draft_id` / `draft_revision`), not the mixed-kind
|
|
1906
|
-
// `WorkflowRun` item the docs generator derives from itemType.
|
|
1907
|
-
returnType: "RunWorkflowDraftResponse",
|
|
1908
|
-
inputSchema: RunWorkflowDraftOptionsSchema,
|
|
1909
|
-
outputSchema: RunWorkflowDraftResponseSchema,
|
|
1910
|
-
skipOutputValidation: true,
|
|
1911
|
-
output: "item",
|
|
1912
|
-
resolvers: {
|
|
1913
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
1914
|
-
draft: chunkFDR2QEZI_cjs.workflowDraftIdResolver,
|
|
1915
|
-
draftRevision: chunkFDR2QEZI_cjs.workflowDraftRevisionResolver
|
|
1916
|
-
},
|
|
1917
|
-
run: async ({ imports, input }) => {
|
|
1918
|
-
const api = imports.api;
|
|
1919
|
-
const body = {
|
|
1920
|
-
draft_revision: input.draftRevision
|
|
1921
|
-
};
|
|
1922
|
-
if (input.input !== void 0) {
|
|
1923
|
-
body.input = input.input;
|
|
1924
|
-
}
|
|
1925
|
-
const raw = await api.post(
|
|
1926
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}/runs`,
|
|
1927
|
-
body,
|
|
1928
|
-
{
|
|
1929
|
-
authRequired: true,
|
|
1930
|
-
resource: { type: "workflow-draft", id: input.draft },
|
|
1931
|
-
// 409 — the draft was edited concurrently (its draft_revision moved
|
|
1932
|
-
// past the caller's). Retryable after re-reading the draft. 429 (the
|
|
1933
|
-
// per-user draft-run rate limit) needs no handling here: the client
|
|
1934
|
-
// retries with backoff and then throws ZapierRateLimitError.
|
|
1935
|
-
customErrorHandler: ({ status, data }) => {
|
|
1936
|
-
if (status === 409) {
|
|
1937
|
-
const detail = chunkFDR2QEZI_cjs.extractErrorDetail(data);
|
|
1938
|
-
return new chunkFDR2QEZI_cjs.ZapierConflictError(
|
|
1939
|
-
`${detail ?? "Draft run conflict"} \u2014 the draft changed since it was last read. Re-read the draft to get the current draft_revision, then retry the run.`,
|
|
1940
|
-
{ statusCode: status, resourceType: "workflow-draft" }
|
|
1941
|
-
);
|
|
1942
|
-
}
|
|
1943
|
-
return void 0;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
);
|
|
1947
|
-
return { data: RunWorkflowDraftResponseSchema.parse(raw) };
|
|
1948
|
-
}
|
|
1949
|
-
});
|
|
1950
|
-
var listWorkflowRunsPlugin = kitcore.defineMethod({
|
|
1951
|
-
...codeSubstrateDefaults,
|
|
1952
|
-
name: "listWorkflowRuns",
|
|
1953
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
1954
|
-
type: "list",
|
|
1955
|
-
itemType: "WorkflowRun",
|
|
1956
|
-
inputSchema: ListWorkflowRunsOptionsSchema,
|
|
1957
|
-
outputSchema: WorkflowRunListItemSchema,
|
|
1958
|
-
skipOutputValidation: true,
|
|
1959
|
-
// The handler already returns a clean `{ data, nextCursor }` page, so the
|
|
1960
|
-
// standard list output (no `adaptPage`) applies.
|
|
1961
|
-
output: { type: "list", defaultPageSize: chunkFDR2QEZI_cjs.DEFAULT_PAGE_SIZE },
|
|
1962
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
1963
|
-
run: async ({ imports, input }) => {
|
|
1964
|
-
const api = imports.api;
|
|
1965
|
-
const searchParams = {};
|
|
1966
|
-
if (input.pageSize !== void 0) {
|
|
1967
|
-
searchParams.limit = input.pageSize.toString();
|
|
1968
|
-
}
|
|
1969
|
-
if (input.kind !== void 0) {
|
|
1970
|
-
searchParams.kind = input.kind;
|
|
1971
|
-
}
|
|
1972
|
-
if (input.cursor) {
|
|
1973
|
-
searchParams.cursor = input.cursor;
|
|
1974
|
-
}
|
|
1975
|
-
const raw = await api.get(
|
|
1976
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/runs`,
|
|
1977
|
-
{
|
|
1978
|
-
searchParams,
|
|
1979
|
-
authRequired: true,
|
|
1980
|
-
resource: { type: "workflow", id: input.workflow }
|
|
1981
|
-
}
|
|
1982
|
-
);
|
|
1983
|
-
const response = ListWorkflowRunsApiResponseSchema.parse(raw);
|
|
1984
|
-
return {
|
|
1985
|
-
data: response.results,
|
|
1986
|
-
nextCursor: response.meta.next_cursor ?? void 0
|
|
1987
|
-
};
|
|
1988
|
-
}
|
|
1989
|
-
});
|
|
1990
|
-
var GetWorkflowRunOptionsSchema = zod.z.object({
|
|
1991
|
-
// Picker-only field — the API endpoint is /workflows/runs/:id and
|
|
1992
|
-
// does not take a workflow id, but the run-id picker is scoped to a
|
|
1993
|
-
// parent workflow so the user can browse runs without enumerating
|
|
1994
|
-
// every run across every workflow on the account.
|
|
1995
|
-
workflow: zod.z.string().uuid().optional().describe(
|
|
1996
|
-
"Parent workflow ID \u2014 used only to scope the CLI run-id picker; ignored by the API call."
|
|
1997
|
-
),
|
|
1998
|
-
run: zod.z.string().uuid().describe("Workflow run ID")
|
|
1999
|
-
}).describe(
|
|
2000
|
-
"Get the current state of a workflow run \u2014 a live run of a published workflow version, or a draft run launched via `runWorkflowDraft` (the `kind` field says which)"
|
|
2001
|
-
);
|
|
2002
|
-
var workflowRunBase = zod.z.object({
|
|
2003
|
-
id: zod.z.string().describe("Workflow run ID (UUIDv7). Unique across live and draft runs."),
|
|
2004
|
-
workflow_id: zod.z.string().describe("The workflow this run belongs to"),
|
|
2005
|
-
durable_run_id: zod.z.string().nullable().describe(
|
|
2006
|
-
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
2007
|
-
),
|
|
2008
|
-
status: WorkflowRunStatusSchema,
|
|
2009
|
-
input: zod.z.unknown().describe("Input passed to the run"),
|
|
2010
|
-
output: zod.z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
2011
|
-
error: zod.z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
2012
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)"),
|
|
2013
|
-
updated_at: zod.z.string().describe("When the run was last updated (ISO-8601)")
|
|
2014
|
-
});
|
|
2015
|
-
var LiveWorkflowRunSchema = workflowRunBase.extend({
|
|
2016
|
-
kind: zod.z.literal("live").describe("A run of a published workflow version."),
|
|
2017
|
-
trigger_id: zod.z.string().nullable().describe(
|
|
2018
|
-
"ID of the trigger that fired this run. Null for runs created without a trigger."
|
|
2019
|
-
),
|
|
2020
|
-
workflow_version_id: zod.z.string().nullable().describe("Workflow version the run is bound to. Null in rare edge cases.")
|
|
2021
|
-
});
|
|
2022
|
-
var DraftWorkflowRunSchema = workflowRunBase.extend({
|
|
2023
|
-
kind: zod.z.literal("draft").describe("A run launched from a workflow draft via `runWorkflowDraft`."),
|
|
2024
|
-
workflow_draft_id: zod.z.string().nullable().describe(
|
|
2025
|
-
"The draft this run was launched from. Null once that draft has been deleted (the run outlives its draft)."
|
|
2026
|
-
),
|
|
2027
|
-
draft_revision: zod.z.number().int().describe(
|
|
2028
|
-
"The draft's revision at the moment this run was created. Compare against the draft's current `draft_revision` to tell whether the run still reflects the draft as it now stands."
|
|
2029
|
-
)
|
|
2030
|
-
});
|
|
2031
|
-
var GetWorkflowRunResponseSchema = zod.z.discriminatedUnion("kind", [
|
|
2032
|
-
LiveWorkflowRunSchema,
|
|
2033
|
-
DraftWorkflowRunSchema
|
|
2034
|
-
]);
|
|
2035
|
-
|
|
2036
|
-
// src/plugins/codeSubstrate/getWorkflowRun/index.ts
|
|
2037
|
-
var getWorkflowRunPlugin = kitcore.defineMethod({
|
|
2038
|
-
...codeSubstrateDefaults,
|
|
2039
|
-
name: "getWorkflowRun",
|
|
2040
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
2041
|
-
itemType: "WorkflowRun",
|
|
2042
|
-
inputSchema: GetWorkflowRunOptionsSchema,
|
|
2043
|
-
outputSchema: GetWorkflowRunResponseSchema,
|
|
2044
|
-
skipOutputValidation: true,
|
|
2045
|
-
output: "item",
|
|
2046
|
-
resolvers: {
|
|
2047
|
-
workflow: chunkFDR2QEZI_cjs.workflowIdResolver,
|
|
2048
|
-
run: chunkFDR2QEZI_cjs.workflowRunIdResolver
|
|
2049
|
-
},
|
|
2050
|
-
run: async ({ imports, input }) => {
|
|
2051
|
-
const api = imports.api;
|
|
2052
|
-
const raw = await api.get(
|
|
2053
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/runs/${encodeURIComponent(input.run)}`,
|
|
2054
|
-
{
|
|
2055
|
-
authRequired: true,
|
|
2056
|
-
resource: { type: "workflow-run", id: input.run }
|
|
2057
|
-
}
|
|
2058
|
-
);
|
|
2059
|
-
return { data: GetWorkflowRunResponseSchema.parse(raw) };
|
|
2060
|
-
}
|
|
2061
|
-
});
|
|
2062
|
-
var GetTriggerRunOptionsSchema = zod.z.object({
|
|
2063
|
-
trigger: zod.z.string().uuid().describe("Workflow trigger ID")
|
|
2064
|
-
}).describe(
|
|
2065
|
-
"Get the workflow run associated with a deployed workflow's trigger. Useful immediately after firing a trigger, when you have the trigger ID but not yet the run ID."
|
|
2066
|
-
);
|
|
2067
|
-
var GetTriggerRunResponseSchema = zod.z.object({
|
|
2068
|
-
id: zod.z.string().describe("Workflow run ID (UUID)"),
|
|
2069
|
-
durable_run_id: zod.z.string().nullable().describe(
|
|
2070
|
-
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
2071
|
-
),
|
|
2072
|
-
workflow_version_id: zod.z.string().nullable().describe("Workflow version the run is bound to"),
|
|
2073
|
-
status: WorkflowRunStatusSchema,
|
|
2074
|
-
input: zod.z.unknown().describe("Input passed to the run"),
|
|
2075
|
-
output: zod.z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
2076
|
-
error: zod.z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
2077
|
-
created_at: zod.z.string().describe("When the run was created (ISO-8601)"),
|
|
2078
|
-
updated_at: zod.z.string().describe("When the run was last updated (ISO-8601)")
|
|
2079
|
-
});
|
|
2080
|
-
|
|
2081
|
-
// src/plugins/codeSubstrate/getTriggerRun/index.ts
|
|
2082
|
-
var getTriggerRunPlugin = kitcore.defineMethod({
|
|
2083
|
-
...codeSubstrateDefaults,
|
|
2084
|
-
name: "getTriggerRun",
|
|
2085
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
2086
|
-
itemType: "WorkflowRun",
|
|
2087
|
-
inputSchema: GetTriggerRunOptionsSchema,
|
|
2088
|
-
outputSchema: GetTriggerRunResponseSchema,
|
|
2089
|
-
skipOutputValidation: true,
|
|
2090
|
-
output: "item",
|
|
2091
|
-
// No resolver for `trigger` — users typically have the trigger id
|
|
2092
|
-
// from a recent trigger fire and pass it directly. Authoring a
|
|
2093
|
-
// picker would require listing triggers across all workflows,
|
|
2094
|
-
// which has no clean entry point today.
|
|
2095
|
-
run: async ({ imports, input }) => {
|
|
2096
|
-
const api = imports.api;
|
|
2097
|
-
const raw = await api.get(
|
|
2098
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/triggers/${encodeURIComponent(input.trigger)}/run`,
|
|
2099
|
-
{
|
|
2100
|
-
authRequired: true,
|
|
2101
|
-
resource: { type: "workflow-trigger", id: input.trigger }
|
|
2102
|
-
}
|
|
2103
|
-
);
|
|
2104
|
-
return { data: GetTriggerRunResponseSchema.parse(raw) };
|
|
2105
|
-
}
|
|
2106
|
-
});
|
|
2107
|
-
var TriggerWorkflowLookupResponseSchema = zod.z.object({
|
|
2108
|
-
trigger_url: zod.z.string()
|
|
2109
|
-
}).passthrough();
|
|
2110
|
-
var TriggerWorkflowOptionsSchema = zod.z.object({
|
|
2111
|
-
workflow: zod.z.string().uuid().describe("Durable workflow ID"),
|
|
2112
|
-
input: JsonPayloadSchema.optional().describe(
|
|
2113
|
-
"JSON payload delivered as the trigger body. Accepts any JSON value, or its JSON-string encoding. Sent as `application/json`; omit to fire with an empty body."
|
|
2114
|
-
)
|
|
2115
|
-
}).describe(
|
|
2116
|
-
"Look up a workflow's trigger URL and fire it manually, as the authenticated account."
|
|
2117
|
-
);
|
|
2118
|
-
var TriggerWorkflowResponseSchema = zod.z.object({
|
|
2119
|
-
id: zod.z.string().describe("Trigger ID (UUID)"),
|
|
2120
|
-
workflow_id: zod.z.string().describe("The workflow that was triggered (UUID)"),
|
|
2121
|
-
created_at: zod.z.string().describe("When the trigger was received (ISO-8601)")
|
|
2122
|
-
});
|
|
2123
|
-
|
|
2124
|
-
// src/plugins/codeSubstrate/triggerWorkflow/index.ts
|
|
2125
|
-
var triggerWorkflowPlugin = kitcore.defineMethod({
|
|
2126
|
-
...codeSubstrateDefaults,
|
|
2127
|
-
name: "triggerWorkflow",
|
|
2128
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
2129
|
-
type: "create",
|
|
2130
|
-
itemType: "WorkflowRun",
|
|
2131
|
-
inputSchema: TriggerWorkflowOptionsSchema,
|
|
2132
|
-
outputSchema: TriggerWorkflowResponseSchema,
|
|
2133
|
-
skipOutputValidation: true,
|
|
2134
|
-
output: "item",
|
|
2135
|
-
resolvers: { workflow: chunkFDR2QEZI_cjs.workflowIdResolver },
|
|
2136
|
-
run: async ({ imports, input }) => {
|
|
2137
|
-
const api = imports.api;
|
|
2138
|
-
const rawWorkflow = await api.get(
|
|
2139
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}`,
|
|
2140
|
-
{
|
|
2141
|
-
authRequired: true,
|
|
2142
|
-
resource: { type: "workflow", id: input.workflow }
|
|
2143
|
-
}
|
|
2144
|
-
);
|
|
2145
|
-
const workflow = TriggerWorkflowLookupResponseSchema.parse(rawWorkflow);
|
|
2146
|
-
const segments = new URL(workflow.trigger_url).pathname.split("/");
|
|
2147
|
-
const triggerToken = segments[segments.length - 1];
|
|
2148
|
-
if (!triggerToken) {
|
|
2149
|
-
throw new chunkFDR2QEZI_cjs.ZapierApiError(
|
|
2150
|
-
`Workflow ${input.workflow} returned a malformed trigger_url`,
|
|
2151
|
-
{ statusCode: 0, response: workflow.trigger_url }
|
|
2152
|
-
);
|
|
2153
|
-
}
|
|
2154
|
-
const raw = await api.post(
|
|
2155
|
-
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/trigger/${encodeURIComponent(triggerToken)}`,
|
|
2156
|
-
input.input,
|
|
2157
|
-
{
|
|
2158
|
-
authRequired: true,
|
|
2159
|
-
resource: { type: "workflow", id: input.workflow }
|
|
2160
|
-
}
|
|
2161
|
-
);
|
|
2162
|
-
return { data: TriggerWorkflowResponseSchema.parse(raw) };
|
|
2163
|
-
}
|
|
2164
|
-
});
|
|
2165
|
-
var MAX_SOURCE_FILES_COUNT = 50;
|
|
2166
|
-
var MAX_SOURCE_FILE_LENGTH = 2e5;
|
|
2167
|
-
var DEFAULT_ENTRYPOINT_FILE = "/workflow.ts";
|
|
2168
|
-
var EXAMPLE_SOURCE_FILES = {
|
|
2169
|
-
[DEFAULT_ENTRYPOINT_FILE]: 'import { defineDurable } from "@zapier/zapier-durable"; export default defineDurable("hello-world", async (ctx, input) => { return ctx.step("greet", async () => "Hello, world!"); });'
|
|
2170
|
-
};
|
|
2171
|
-
var WorkflowValidationSourceFilesSchema = zod.z.record(
|
|
2172
|
-
zod.z.string().regex(/^\//, "source file paths must start with /"),
|
|
2173
|
-
zod.z.string().max(MAX_SOURCE_FILE_LENGTH)
|
|
2174
|
-
).refine((files) => Object.keys(files).length > 0, {
|
|
2175
|
-
message: "sourceFiles must contain at least one file"
|
|
2176
|
-
}).refine((files) => Object.keys(files).length <= MAX_SOURCE_FILES_COUNT, {
|
|
2177
|
-
message: `sourceFiles must contain at most ${MAX_SOURCE_FILES_COUNT} files`
|
|
2178
|
-
}).describe("Exact TypeScript sources keyed by absolute logical path.").meta({ example: EXAMPLE_SOURCE_FILES });
|
|
2179
|
-
var ValidateWorkflowOptionsSchema = zod.z.object({
|
|
2180
|
-
sourceFiles: WorkflowValidationSourceFilesSchema,
|
|
2181
|
-
entrypointFile: zod.z.string().regex(/^\//, "entrypointFile must start with /").optional().describe(
|
|
2182
|
-
"Absolute logical path of the entry file in sourceFiles. Defaults to /workflow.ts."
|
|
2183
|
-
)
|
|
2184
|
-
}).refine(
|
|
2185
|
-
({ sourceFiles, entrypointFile }) => (entrypointFile ?? DEFAULT_ENTRYPOINT_FILE) in sourceFiles,
|
|
2186
|
-
{
|
|
2187
|
-
path: ["entrypointFile"],
|
|
2188
|
-
message: "entrypointFile must identify a file in sourceFiles"
|
|
2189
|
-
}
|
|
2190
|
-
).describe(
|
|
2191
|
-
"Validate durable workflow source without publishing it. Returns source diagnostics; issue kinds are extensible and may be unfamiliar to the client."
|
|
2192
|
-
);
|
|
2193
|
-
var WorkflowValidationSourceLocationSchema = zod.z.object({
|
|
2194
|
-
file_id: zod.z.string().describe("Source file containing the diagnostic."),
|
|
2195
|
-
start_line: zod.z.number().int().positive().describe("Inclusive 1-based start line."),
|
|
2196
|
-
start_column: zod.z.number().int().positive().describe("Inclusive 1-based start column."),
|
|
2197
|
-
end_line: zod.z.number().int().positive().describe("Inclusive 1-based end line."),
|
|
2198
|
-
end_column: zod.z.number().int().positive().describe("Inclusive 1-based end column.")
|
|
2199
|
-
}).describe("1-based source coordinates within a single sourceFiles entry.");
|
|
2200
|
-
var WorkflowValidationIssueSchema = zod.z.object({
|
|
2201
|
-
kind: zod.z.string().describe(
|
|
2202
|
-
"Extensible diagnostic category; clients must accept unfamiliar values."
|
|
2203
|
-
),
|
|
2204
|
-
message: zod.z.string().describe("Safe human-readable explanation."),
|
|
2205
|
-
// Unlike `kind`, severity is a closed vocabulary on the analyzer side: a
|
|
2206
|
-
// new value requires a new API version, and every issue carries one, so
|
|
2207
|
-
// callers can rank findings without a missing-severity branch.
|
|
2208
|
-
severity: zod.z.enum(["error", "warning", "info", "hint"]).describe("Diagnostic severity."),
|
|
2209
|
-
suggestion: zod.z.string().optional().describe("Actionable fix hint."),
|
|
2210
|
-
source: WorkflowValidationSourceLocationSchema.optional().describe(
|
|
2211
|
-
"Affected source location."
|
|
2212
|
-
),
|
|
2213
|
-
source_excerpt: zod.z.string().optional().describe(
|
|
2214
|
-
"Source text the diagnostic was raised against, truncated to 240 characters."
|
|
2215
|
-
),
|
|
2216
|
-
syntax_kind: zod.z.string().optional().describe(
|
|
2217
|
-
"TypeScript AST node kind the diagnostic was raised against (e.g. `CallExpression`)."
|
|
2218
|
-
)
|
|
2219
|
-
});
|
|
2220
|
-
var ValidateWorkflowResponseSchema = zod.z.object({
|
|
2221
|
-
issues: zod.z.array(WorkflowValidationIssueSchema).describe("Source diagnostics, or an empty array when validation passes.")
|
|
2222
|
-
});
|
|
2223
|
-
|
|
2224
|
-
// src/plugins/codeSubstrate/validateWorkflow/index.ts
|
|
2225
|
-
var validateWorkflowPlugin = kitcore.defineMethod({
|
|
2226
|
-
...codeSubstrateDefaults,
|
|
2227
|
-
name: "validateWorkflow",
|
|
2228
|
-
imports: [chunkFDR2QEZI_cjs.apiPluginRef],
|
|
2229
|
-
itemType: "WorkflowValidation",
|
|
2230
|
-
inputSchema: ValidateWorkflowOptionsSchema,
|
|
2231
|
-
outputSchema: ValidateWorkflowResponseSchema,
|
|
2232
|
-
skipOutputValidation: true,
|
|
2233
|
-
output: "item",
|
|
2234
|
-
resolvers: { sourceFiles: sourceFilesResolver },
|
|
2235
|
-
run: async ({ imports, input }) => {
|
|
2236
|
-
const body = {
|
|
2237
|
-
source_files: input.sourceFiles
|
|
2238
|
-
};
|
|
2239
|
-
if (input.entrypointFile !== void 0) {
|
|
2240
|
-
body.entrypoint_file = input.entrypointFile;
|
|
2241
|
-
}
|
|
2242
|
-
const raw = await imports.api.post(
|
|
2243
|
-
`${CODE_SUBSTRATE_ANALYZER_API}/validations`,
|
|
2244
|
-
body,
|
|
2245
|
-
{ authRequired: true }
|
|
2246
|
-
);
|
|
2247
|
-
return { data: ValidateWorkflowResponseSchema.parse(raw) };
|
|
2248
|
-
}
|
|
2249
|
-
});
|
|
2250
|
-
|
|
2251
9
|
// src/plugins/humanInput/shared.ts
|
|
2252
10
|
var humanInputDefaults = {
|
|
2253
|
-
categories: [
|
|
11
|
+
categories: [chunkTJXDMXEE_cjs.taxonomy.categories["human-input"]],
|
|
2254
12
|
stability: "experimental"
|
|
2255
13
|
};
|
|
2256
14
|
var FORMS_API = "/forms/v0";
|
|
@@ -2272,7 +30,7 @@ function handleFormsAccessError({
|
|
|
2272
30
|
if (status !== 403 || firstErrorDetail(data) !== FORMS_ACCESS_DENIED_DETAIL) {
|
|
2273
31
|
return void 0;
|
|
2274
32
|
}
|
|
2275
|
-
return new
|
|
33
|
+
return new chunkTJXDMXEE_cjs.ZapierConfigurationError(
|
|
2276
34
|
`${FORMS_ACCESS_DENIED_DETAIL} Request access through Zapier support at https://zapier.com/app/get-help.`,
|
|
2277
35
|
{ statusCode: status }
|
|
2278
36
|
);
|
|
@@ -2350,7 +108,7 @@ function assertUniqueKeys(keys, fields) {
|
|
|
2350
108
|
const label = fields[index]?.label ?? "";
|
|
2351
109
|
const previous = seen.get(key);
|
|
2352
110
|
if (previous !== void 0) {
|
|
2353
|
-
throw new
|
|
111
|
+
throw new chunkTJXDMXEE_cjs.ZapierValidationError(
|
|
2354
112
|
`Fields "${previous}" and "${label}" both derive the submission key "${key}". Give them labels that differ by more than punctuation or casing.`,
|
|
2355
113
|
{ details: { key, labels: [previous, label] } }
|
|
2356
114
|
);
|
|
@@ -2556,7 +314,7 @@ var CreateFormSchema = zod.z.object({
|
|
|
2556
314
|
var createFormPlugin = kitcore.defineMethod({
|
|
2557
315
|
...humanInputDefaults,
|
|
2558
316
|
name: "createForm",
|
|
2559
|
-
imports: [
|
|
317
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
2560
318
|
type: "create",
|
|
2561
319
|
itemType: "Form",
|
|
2562
320
|
inputSchema: CreateFormSchema,
|
|
@@ -2585,7 +343,7 @@ var createFormPlugin = kitcore.defineMethod({
|
|
|
2585
343
|
|
|
2586
344
|
// src/plugins/agenticManagement/shared.ts
|
|
2587
345
|
var agenticManagementDefaults = {
|
|
2588
|
-
categories: [
|
|
346
|
+
categories: [chunkTJXDMXEE_cjs.taxonomy.categories["code-workflow"]],
|
|
2589
347
|
stability: "experimental"
|
|
2590
348
|
};
|
|
2591
349
|
var AGENTIC_MANAGEMENT_API = "/agentic-management/v0";
|
|
@@ -2604,12 +362,12 @@ var AgenticModesInputSchema = zod.z.array(AgenticModeSchema).min(1, {
|
|
|
2604
362
|
}).describe(
|
|
2605
363
|
`The modes to run. The list you pass replaces the whole current set in one step; it is not added to what is already active. Omit it and enable starts the workflow on \`heal\` alone, while update leaves the active modes as they are. ${AGENTIC_MODES_EXPLAINED}`
|
|
2606
364
|
);
|
|
2607
|
-
var
|
|
365
|
+
var UUID_PATTERN = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
2608
366
|
var AutoApproveSchema = zod.z.boolean().describe(
|
|
2609
367
|
"Apply the fixes Agentic Management proposes without asking first. Set it to false and each proposed fix waits for someone to approve it before anything changes."
|
|
2610
368
|
).meta({ negatable: true });
|
|
2611
|
-
var
|
|
2612
|
-
var VersionPropertySchema = zod.z.string().regex(
|
|
369
|
+
var WorkflowPropertySchema = zod.z.string().regex(UUID_PATTERN, "workflow must be a UUID.").describe("ID of the workflow to manage.");
|
|
370
|
+
var VersionPropertySchema = zod.z.string().regex(UUID_PATTERN, "version must be a UUID.").describe(
|
|
2613
371
|
"The workflow version the intent belongs to. Each version stores its own intent, and a version never picks up the intent of another, so publishing a new version starts it with none. Omit this to use the workflow's current published version."
|
|
2614
372
|
);
|
|
2615
373
|
var AgenticManagementIntentSchema = zod.z.object({
|
|
@@ -2625,7 +383,7 @@ var AgenticManagementIntentSchema = zod.z.object({
|
|
|
2625
383
|
|
|
2626
384
|
// src/plugins/agenticManagement/enableAgenticManagement/schemas.ts
|
|
2627
385
|
var EnableAgenticManagementSchema = zod.z.object({
|
|
2628
|
-
workflow:
|
|
386
|
+
workflow: WorkflowPropertySchema.describe(
|
|
2629
387
|
"ID of the workflow to put under agentic management."
|
|
2630
388
|
),
|
|
2631
389
|
modes: AgenticModesInputSchema.optional().describe(
|
|
@@ -2647,8 +405,8 @@ var EnableAgenticManagementItemSchema = zod.z.object({
|
|
|
2647
405
|
var enableAgenticManagementPlugin = kitcore.defineMethod({
|
|
2648
406
|
...agenticManagementDefaults,
|
|
2649
407
|
name: "enableAgenticManagement",
|
|
2650
|
-
imports: [
|
|
2651
|
-
resolvers: { workflow:
|
|
408
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
409
|
+
resolvers: { workflow: chunkTJXDMXEE_cjs.workflowIdResolver },
|
|
2652
410
|
type: "create",
|
|
2653
411
|
itemType: "AgenticManagementEnableResult",
|
|
2654
412
|
inputSchema: EnableAgenticManagementSchema,
|
|
@@ -2673,7 +431,7 @@ var enableAgenticManagementPlugin = kitcore.defineMethod({
|
|
|
2673
431
|
}
|
|
2674
432
|
});
|
|
2675
433
|
var DisableAgenticManagementSchema = zod.z.object({
|
|
2676
|
-
workflow:
|
|
434
|
+
workflow: WorkflowPropertySchema.describe(
|
|
2677
435
|
"ID of the workflow to take out of agentic management."
|
|
2678
436
|
)
|
|
2679
437
|
}).describe(
|
|
@@ -2689,8 +447,8 @@ var DisableAgenticManagementItemSchema = zod.z.object({
|
|
|
2689
447
|
var disableAgenticManagementPlugin = kitcore.defineMethod({
|
|
2690
448
|
...agenticManagementDefaults,
|
|
2691
449
|
name: "disableAgenticManagement",
|
|
2692
|
-
imports: [
|
|
2693
|
-
resolvers: { workflow:
|
|
450
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
451
|
+
resolvers: { workflow: chunkTJXDMXEE_cjs.workflowIdResolver },
|
|
2694
452
|
type: "delete",
|
|
2695
453
|
confirm: "delete",
|
|
2696
454
|
itemType: "AgenticManagementDisableResult",
|
|
@@ -2713,7 +471,7 @@ var disableAgenticManagementPlugin = kitcore.defineMethod({
|
|
|
2713
471
|
}
|
|
2714
472
|
});
|
|
2715
473
|
var GetAgenticManagementConfigSchema = zod.z.object({
|
|
2716
|
-
workflow:
|
|
474
|
+
workflow: WorkflowPropertySchema.describe("ID of the workflow to read.")
|
|
2717
475
|
}).describe("Read the Agentic Management config for one workflow.");
|
|
2718
476
|
var GetAgenticManagementConfigItemSchema = zod.z.object({
|
|
2719
477
|
workflow_id: zod.z.string().describe("The workflow this config describes."),
|
|
@@ -2735,8 +493,8 @@ var GetAgenticManagementConfigItemSchema = zod.z.object({
|
|
|
2735
493
|
var getAgenticManagementConfigPlugin = kitcore.defineMethod({
|
|
2736
494
|
...agenticManagementDefaults,
|
|
2737
495
|
name: "getAgenticManagementConfig",
|
|
2738
|
-
imports: [
|
|
2739
|
-
resolvers: { workflow:
|
|
496
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
497
|
+
resolvers: { workflow: chunkTJXDMXEE_cjs.workflowIdResolver },
|
|
2740
498
|
type: "item",
|
|
2741
499
|
itemType: "AgenticManagementConfig",
|
|
2742
500
|
inputSchema: GetAgenticManagementConfigSchema,
|
|
@@ -2757,7 +515,7 @@ var getAgenticManagementConfigPlugin = kitcore.defineMethod({
|
|
|
2757
515
|
}
|
|
2758
516
|
});
|
|
2759
517
|
var UpdateAgenticManagementConfigSchema = zod.z.object({
|
|
2760
|
-
workflow:
|
|
518
|
+
workflow: WorkflowPropertySchema.describe("ID of the workflow to update."),
|
|
2761
519
|
modes: AgenticModesInputSchema.optional().describe(
|
|
2762
520
|
`The modes to run. The list you pass replaces the whole current set in one step; it is not added to what is already active. Omit it to leave the active modes as they are. ${AGENTIC_MODES_EXPLAINED}`
|
|
2763
521
|
),
|
|
@@ -2782,8 +540,8 @@ var UpdateAgenticManagementConfigItemSchema = zod.z.object({
|
|
|
2782
540
|
var updateAgenticManagementConfigPlugin = kitcore.defineMethod({
|
|
2783
541
|
...agenticManagementDefaults,
|
|
2784
542
|
name: "updateAgenticManagementConfig",
|
|
2785
|
-
imports: [
|
|
2786
|
-
resolvers: { workflow:
|
|
543
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
544
|
+
resolvers: { workflow: chunkTJXDMXEE_cjs.workflowIdResolver },
|
|
2787
545
|
type: "update",
|
|
2788
546
|
itemType: "AgenticManagementConfig",
|
|
2789
547
|
inputSchema: UpdateAgenticManagementConfigSchema,
|
|
@@ -2808,7 +566,7 @@ var updateAgenticManagementConfigPlugin = kitcore.defineMethod({
|
|
|
2808
566
|
}
|
|
2809
567
|
});
|
|
2810
568
|
var GetAgenticManagementIntentSchema = zod.z.object({
|
|
2811
|
-
workflow:
|
|
569
|
+
workflow: WorkflowPropertySchema.describe("ID of the workflow to read."),
|
|
2812
570
|
version: VersionPropertySchema.optional().describe(
|
|
2813
571
|
"The workflow version the intent belongs to. Each version stores its own intent, and a version never picks up the intent of another, so publishing a new version starts it with none. Omit this to use the workflow's current published version."
|
|
2814
572
|
)
|
|
@@ -2820,8 +578,8 @@ var GetAgenticManagementIntentSchema = zod.z.object({
|
|
|
2820
578
|
var getAgenticManagementIntentPlugin = kitcore.defineMethod({
|
|
2821
579
|
...agenticManagementDefaults,
|
|
2822
580
|
name: "getAgenticManagementIntent",
|
|
2823
|
-
imports: [
|
|
2824
|
-
resolvers: { workflow:
|
|
581
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
582
|
+
resolvers: { workflow: chunkTJXDMXEE_cjs.workflowIdResolver },
|
|
2825
583
|
type: "item",
|
|
2826
584
|
itemType: "AgenticManagementIntent",
|
|
2827
585
|
inputSchema: GetAgenticManagementIntentSchema,
|
|
@@ -2847,7 +605,7 @@ var getAgenticManagementIntentPlugin = kitcore.defineMethod({
|
|
|
2847
605
|
}
|
|
2848
606
|
});
|
|
2849
607
|
var UpdateAgenticManagementIntentSchema = zod.z.object({
|
|
2850
|
-
workflow:
|
|
608
|
+
workflow: WorkflowPropertySchema.describe(
|
|
2851
609
|
"ID of the workflow to write to."
|
|
2852
610
|
),
|
|
2853
611
|
intent: zod.z.string().min(1).max(8e3).describe(
|
|
@@ -2864,8 +622,8 @@ var UpdateAgenticManagementIntentSchema = zod.z.object({
|
|
|
2864
622
|
var updateAgenticManagementIntentPlugin = kitcore.defineMethod({
|
|
2865
623
|
...agenticManagementDefaults,
|
|
2866
624
|
name: "updateAgenticManagementIntent",
|
|
2867
|
-
imports: [
|
|
2868
|
-
resolvers: { workflow:
|
|
625
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
626
|
+
resolvers: { workflow: chunkTJXDMXEE_cjs.workflowIdResolver },
|
|
2869
627
|
type: "update",
|
|
2870
628
|
itemType: "AgenticManagementIntent",
|
|
2871
629
|
inputSchema: UpdateAgenticManagementIntentSchema,
|
|
@@ -2917,7 +675,7 @@ var fsDirectoryEntryFormatter = kitcore.defineFormatter({
|
|
|
2917
675
|
|
|
2918
676
|
// src/plugins/vfs/shared.ts
|
|
2919
677
|
var vfsDefaults = {
|
|
2920
|
-
categories: [
|
|
678
|
+
categories: [chunkTJXDMXEE_cjs.taxonomy.categories.vfs],
|
|
2921
679
|
stability: "experimental"
|
|
2922
680
|
};
|
|
2923
681
|
var VFS_PATH_PREFIX = "/vfs/v1";
|
|
@@ -3009,7 +767,7 @@ var ReadVfsFileItemSchema = zod.z.object({
|
|
|
3009
767
|
var readVfsFilePlugin = kitcore.defineMethod({
|
|
3010
768
|
...vfsDefaults,
|
|
3011
769
|
name: "readVfsFile",
|
|
3012
|
-
imports: [
|
|
770
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3013
771
|
itemType: "VfsFile",
|
|
3014
772
|
inputSchema: ReadVfsFileSchema,
|
|
3015
773
|
outputSchema: ReadVfsFileItemSchema,
|
|
@@ -3068,7 +826,7 @@ var WriteVfsFileItemSchema = FsWriteResultSchema;
|
|
|
3068
826
|
var writeVfsFilePlugin = kitcore.defineMethod({
|
|
3069
827
|
...vfsDefaults,
|
|
3070
828
|
name: "writeVfsFile",
|
|
3071
|
-
imports: [
|
|
829
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3072
830
|
itemType: "VfsWriteResult",
|
|
3073
831
|
inputSchema: WriteVfsFileSchema,
|
|
3074
832
|
outputSchema: WriteVfsFileItemSchema,
|
|
@@ -3109,7 +867,7 @@ var AppendVfsFileItemSchema = FsWriteResultSchema;
|
|
|
3109
867
|
var appendVfsFilePlugin = kitcore.defineMethod({
|
|
3110
868
|
...vfsDefaults,
|
|
3111
869
|
name: "appendVfsFile",
|
|
3112
|
-
imports: [
|
|
870
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3113
871
|
itemType: "VfsWriteResult",
|
|
3114
872
|
inputSchema: AppendVfsFileSchema,
|
|
3115
873
|
outputSchema: AppendVfsFileItemSchema,
|
|
@@ -3150,7 +908,7 @@ var CopyVfsFileItemSchema = FsWriteResultSchema;
|
|
|
3150
908
|
var copyVfsFilePlugin = kitcore.defineMethod({
|
|
3151
909
|
...vfsDefaults,
|
|
3152
910
|
name: "copyVfsFile",
|
|
3153
|
-
imports: [
|
|
911
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3154
912
|
itemType: "VfsWriteResult",
|
|
3155
913
|
inputSchema: CopyVfsFileSchema,
|
|
3156
914
|
outputSchema: CopyVfsFileItemSchema,
|
|
@@ -3188,7 +946,7 @@ var ListVfsDirectorySchema = zod.z.object({
|
|
|
3188
946
|
var listVfsDirectoryPlugin = kitcore.defineMethod({
|
|
3189
947
|
...vfsDefaults,
|
|
3190
948
|
name: "listVfsDirectory",
|
|
3191
|
-
imports: [
|
|
949
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3192
950
|
type: "list",
|
|
3193
951
|
itemType: "VfsDirectoryEntry",
|
|
3194
952
|
inputSchema: ListVfsDirectorySchema,
|
|
@@ -3231,7 +989,7 @@ var CreateVfsDirectoryItemSchema = FsMkdirResultSchema;
|
|
|
3231
989
|
var createVfsDirectoryPlugin = kitcore.defineMethod({
|
|
3232
990
|
...vfsDefaults,
|
|
3233
991
|
name: "createVfsDirectory",
|
|
3234
|
-
imports: [
|
|
992
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3235
993
|
itemType: "VfsMkdirResult",
|
|
3236
994
|
inputSchema: CreateVfsDirectorySchema,
|
|
3237
995
|
outputSchema: CreateVfsDirectoryItemSchema,
|
|
@@ -3261,7 +1019,7 @@ var StatVfsPathItemSchema = FsDirectoryEntrySchema;
|
|
|
3261
1019
|
var statVfsPathPlugin = kitcore.defineMethod({
|
|
3262
1020
|
...vfsDefaults,
|
|
3263
1021
|
name: "statVfsPath",
|
|
3264
|
-
imports: [
|
|
1022
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3265
1023
|
itemType: "VfsStat",
|
|
3266
1024
|
inputSchema: StatVfsPathSchema,
|
|
3267
1025
|
outputSchema: StatVfsPathItemSchema,
|
|
@@ -3292,7 +1050,7 @@ var DeleteVfsPathItemSchema = FsDeleteResultSchema;
|
|
|
3292
1050
|
var deleteVfsPathPlugin = kitcore.defineMethod({
|
|
3293
1051
|
...vfsDefaults,
|
|
3294
1052
|
name: "deleteVfsPath",
|
|
3295
|
-
imports: [
|
|
1053
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3296
1054
|
type: "delete",
|
|
3297
1055
|
itemType: "VfsDeleteResult",
|
|
3298
1056
|
// `type: "delete"` defaults the documented return to `{ success: boolean }`,
|
|
@@ -3333,7 +1091,7 @@ var MoveVfsPathItemSchema = FsMoveResultSchema;
|
|
|
3333
1091
|
var moveVfsPathPlugin = kitcore.defineMethod({
|
|
3334
1092
|
...vfsDefaults,
|
|
3335
1093
|
name: "moveVfsPath",
|
|
3336
|
-
imports: [
|
|
1094
|
+
imports: [chunkTJXDMXEE_cjs.apiPluginRef],
|
|
3337
1095
|
itemType: "VfsMoveResult",
|
|
3338
1096
|
inputSchema: MoveVfsPathSchema,
|
|
3339
1097
|
outputSchema: MoveVfsPathItemSchema,
|
|
@@ -3356,38 +1114,7 @@ var zapierExperimentalSdkPlugin = kitcore.definePlugin({
|
|
|
3356
1114
|
namespace: "zapier",
|
|
3357
1115
|
name: "experimental-sdk",
|
|
3358
1116
|
exports: [
|
|
3359
|
-
|
|
3360
|
-
// Code substrate (experimental until the open feedback on the workflow
|
|
3361
|
-
// API shape is resolved — see `codeSubstrateDefaults`). `list*` plugins
|
|
3362
|
-
// are exported before their `get*` / mutation siblings because per-row
|
|
3363
|
-
// resolvers reach the listing methods.
|
|
3364
|
-
listWorkflowsPlugin,
|
|
3365
|
-
getWorkflowPlugin,
|
|
3366
|
-
createWorkflowPlugin,
|
|
3367
|
-
importWorkflowPlugin,
|
|
3368
|
-
updateWorkflowPlugin,
|
|
3369
|
-
enableWorkflowPlugin,
|
|
3370
|
-
disableWorkflowPlugin,
|
|
3371
|
-
deleteWorkflowPlugin,
|
|
3372
|
-
listWorkflowVersionsPlugin,
|
|
3373
|
-
getWorkflowVersionPlugin,
|
|
3374
|
-
publishWorkflowVersionPlugin,
|
|
3375
|
-
listWorkflowDraftsPlugin,
|
|
3376
|
-
getWorkflowDraftPlugin,
|
|
3377
|
-
createWorkflowDraftPlugin,
|
|
3378
|
-
updateWorkflowDraftPlugin,
|
|
3379
|
-
discardWorkflowDraftPlugin,
|
|
3380
|
-
publishWorkflowDraftPlugin,
|
|
3381
|
-
runWorkflowDraftPlugin,
|
|
3382
|
-
listWorkflowRunsPlugin,
|
|
3383
|
-
getWorkflowRunPlugin,
|
|
3384
|
-
listDurableRunsPlugin,
|
|
3385
|
-
getDurableRunPlugin,
|
|
3386
|
-
runDurablePlugin,
|
|
3387
|
-
cancelDurableRunPlugin,
|
|
3388
|
-
triggerWorkflowPlugin,
|
|
3389
|
-
getTriggerRunPlugin,
|
|
3390
|
-
validateWorkflowPlugin,
|
|
1117
|
+
chunkQTG5EPTI_cjs.zapierBetaSdkPlugin,
|
|
3391
1118
|
// Human input (experimental). Routed through the Public API Gateway
|
|
3392
1119
|
// rather than the sdkapi proxy — see the `/forms` entry in api/routing/config.ts.
|
|
3393
1120
|
createFormPlugin,
|
|
@@ -3416,1131 +1143,1151 @@ var zapierExperimentalSdkPlugin = kitcore.definePlugin({
|
|
|
3416
1143
|
function createZapierSdk(options = {}) {
|
|
3417
1144
|
return kitcore.createSdk(zapierExperimentalSdkPlugin, {
|
|
3418
1145
|
configuration: {
|
|
3419
|
-
[
|
|
3420
|
-
[kitcore.CORE_OPTIONS_ID]:
|
|
1146
|
+
[chunkTJXDMXEE_cjs.SDK_OPTIONS_ID]: options,
|
|
1147
|
+
[kitcore.CORE_OPTIONS_ID]: chunkTJXDMXEE_cjs.zapierCoreOptions
|
|
3421
1148
|
}
|
|
3422
1149
|
});
|
|
3423
1150
|
}
|
|
3424
1151
|
|
|
1152
|
+
Object.defineProperty(exports, "CreateWorkflowOptionsSchema", {
|
|
1153
|
+
enumerable: true,
|
|
1154
|
+
get: function () { return chunkQTG5EPTI_cjs.CreateWorkflowOptionsSchema; }
|
|
1155
|
+
});
|
|
1156
|
+
Object.defineProperty(exports, "CreateWorkflowResponseSchema", {
|
|
1157
|
+
enumerable: true,
|
|
1158
|
+
get: function () { return chunkQTG5EPTI_cjs.CreateWorkflowResponseSchema; }
|
|
1159
|
+
});
|
|
1160
|
+
Object.defineProperty(exports, "ImportWorkflowOptionsSchema", {
|
|
1161
|
+
enumerable: true,
|
|
1162
|
+
get: function () { return chunkQTG5EPTI_cjs.ImportWorkflowOptionsSchema; }
|
|
1163
|
+
});
|
|
1164
|
+
Object.defineProperty(exports, "ImportWorkflowResponseSchema", {
|
|
1165
|
+
enumerable: true,
|
|
1166
|
+
get: function () { return chunkQTG5EPTI_cjs.ImportWorkflowResponseSchema; }
|
|
1167
|
+
});
|
|
1168
|
+
Object.defineProperty(exports, "zapierBetaSdkPlugin", {
|
|
1169
|
+
enumerable: true,
|
|
1170
|
+
get: function () { return chunkQTG5EPTI_cjs.zapierBetaSdkPlugin; }
|
|
1171
|
+
});
|
|
3425
1172
|
Object.defineProperty(exports, "ACTION_RUNS_PATH", {
|
|
3426
1173
|
enumerable: true,
|
|
3427
|
-
get: function () { return
|
|
1174
|
+
get: function () { return chunkTJXDMXEE_cjs.ACTION_RUNS_PATH; }
|
|
3428
1175
|
});
|
|
3429
1176
|
Object.defineProperty(exports, "API_ID", {
|
|
3430
1177
|
enumerable: true,
|
|
3431
|
-
get: function () { return
|
|
1178
|
+
get: function () { return chunkTJXDMXEE_cjs.API_ID; }
|
|
1179
|
+
});
|
|
1180
|
+
Object.defineProperty(exports, "ActionIdempotencyKeyPropertySchema", {
|
|
1181
|
+
enumerable: true,
|
|
1182
|
+
get: function () { return chunkTJXDMXEE_cjs.ActionIdempotencyKeyPropertySchema; }
|
|
3432
1183
|
});
|
|
3433
1184
|
Object.defineProperty(exports, "ActionKeyPropertySchema", {
|
|
3434
1185
|
enumerable: true,
|
|
3435
|
-
get: function () { return
|
|
1186
|
+
get: function () { return chunkTJXDMXEE_cjs.ActionKeyPropertySchema; }
|
|
3436
1187
|
});
|
|
3437
1188
|
Object.defineProperty(exports, "ActionPropertySchema", {
|
|
3438
1189
|
enumerable: true,
|
|
3439
|
-
get: function () { return
|
|
1190
|
+
get: function () { return chunkTJXDMXEE_cjs.ActionPropertySchema; }
|
|
3440
1191
|
});
|
|
3441
1192
|
Object.defineProperty(exports, "ActionTimeoutMillisecondsPropertySchema", {
|
|
3442
1193
|
enumerable: true,
|
|
3443
|
-
get: function () { return
|
|
1194
|
+
get: function () { return chunkTJXDMXEE_cjs.ActionTimeoutMillisecondsPropertySchema; }
|
|
3444
1195
|
});
|
|
3445
1196
|
Object.defineProperty(exports, "ActionTimeoutSecondsPropertySchema", {
|
|
3446
1197
|
enumerable: true,
|
|
3447
|
-
get: function () { return
|
|
1198
|
+
get: function () { return chunkTJXDMXEE_cjs.ActionTimeoutSecondsPropertySchema; }
|
|
3448
1199
|
});
|
|
3449
1200
|
Object.defineProperty(exports, "ActionTypePropertySchema", {
|
|
3450
1201
|
enumerable: true,
|
|
3451
|
-
get: function () { return
|
|
1202
|
+
get: function () { return chunkTJXDMXEE_cjs.ActionTypePropertySchema; }
|
|
3452
1203
|
});
|
|
3453
1204
|
Object.defineProperty(exports, "AppKeyPropertySchema", {
|
|
3454
1205
|
enumerable: true,
|
|
3455
|
-
get: function () { return
|
|
1206
|
+
get: function () { return chunkTJXDMXEE_cjs.AppKeyPropertySchema; }
|
|
3456
1207
|
});
|
|
3457
1208
|
Object.defineProperty(exports, "AppPropertySchema", {
|
|
3458
1209
|
enumerable: true,
|
|
3459
|
-
get: function () { return
|
|
1210
|
+
get: function () { return chunkTJXDMXEE_cjs.AppPropertySchema; }
|
|
3460
1211
|
});
|
|
3461
1212
|
Object.defineProperty(exports, "AppsPropertySchema", {
|
|
3462
1213
|
enumerable: true,
|
|
3463
|
-
get: function () { return
|
|
1214
|
+
get: function () { return chunkTJXDMXEE_cjs.AppsPropertySchema; }
|
|
3464
1215
|
});
|
|
3465
1216
|
Object.defineProperty(exports, "AuthMechanism", {
|
|
3466
1217
|
enumerable: true,
|
|
3467
|
-
get: function () { return
|
|
1218
|
+
get: function () { return chunkTJXDMXEE_cjs.AuthMechanism; }
|
|
3468
1219
|
});
|
|
3469
1220
|
Object.defineProperty(exports, "AuthenticationIdPropertySchema", {
|
|
3470
1221
|
enumerable: true,
|
|
3471
|
-
get: function () { return
|
|
1222
|
+
get: function () { return chunkTJXDMXEE_cjs.AuthenticationIdPropertySchema; }
|
|
3472
1223
|
});
|
|
3473
1224
|
Object.defineProperty(exports, "BaseSdkOptionsSchema", {
|
|
3474
1225
|
enumerable: true,
|
|
3475
|
-
get: function () { return
|
|
1226
|
+
get: function () { return chunkTJXDMXEE_cjs.BaseSdkOptionsSchema; }
|
|
3476
1227
|
});
|
|
3477
1228
|
Object.defineProperty(exports, "CONNECTIONS_ID", {
|
|
3478
1229
|
enumerable: true,
|
|
3479
|
-
get: function () { return
|
|
1230
|
+
get: function () { return chunkTJXDMXEE_cjs.CONNECTIONS_ID; }
|
|
3480
1231
|
});
|
|
3481
1232
|
Object.defineProperty(exports, "CONTEXT", {
|
|
3482
1233
|
enumerable: true,
|
|
3483
|
-
get: function () { return
|
|
1234
|
+
get: function () { return chunkTJXDMXEE_cjs.CONTEXT; }
|
|
3484
1235
|
});
|
|
3485
1236
|
Object.defineProperty(exports, "CONTEXT_CACHE_MAX_SIZE", {
|
|
3486
1237
|
enumerable: true,
|
|
3487
|
-
get: function () { return
|
|
1238
|
+
get: function () { return chunkTJXDMXEE_cjs.CONTEXT_CACHE_MAX_SIZE; }
|
|
3488
1239
|
});
|
|
3489
1240
|
Object.defineProperty(exports, "CONTEXT_CACHE_TTL_MILLISECONDS", {
|
|
3490
1241
|
enumerable: true,
|
|
3491
|
-
get: function () { return
|
|
1242
|
+
get: function () { return chunkTJXDMXEE_cjs.CONTEXT_CACHE_TTL_MILLISECONDS; }
|
|
3492
1243
|
});
|
|
3493
1244
|
Object.defineProperty(exports, "CORE_ERROR_SYMBOL", {
|
|
3494
1245
|
enumerable: true,
|
|
3495
|
-
get: function () { return
|
|
1246
|
+
get: function () { return chunkTJXDMXEE_cjs.CORE_ERROR_SYMBOL; }
|
|
3496
1247
|
});
|
|
3497
1248
|
Object.defineProperty(exports, "CORE_OPTIONS_ID", {
|
|
3498
1249
|
enumerable: true,
|
|
3499
|
-
get: function () { return
|
|
1250
|
+
get: function () { return chunkTJXDMXEE_cjs.CORE_OPTIONS_ID; }
|
|
3500
1251
|
});
|
|
3501
1252
|
Object.defineProperty(exports, "CORE_SIGNAL_SYMBOL", {
|
|
3502
1253
|
enumerable: true,
|
|
3503
|
-
get: function () { return
|
|
1254
|
+
get: function () { return chunkTJXDMXEE_cjs.CORE_SIGNAL_SYMBOL; }
|
|
3504
1255
|
});
|
|
3505
1256
|
Object.defineProperty(exports, "ClientCredentialsObjectSchema", {
|
|
3506
1257
|
enumerable: true,
|
|
3507
|
-
get: function () { return
|
|
1258
|
+
get: function () { return chunkTJXDMXEE_cjs.ClientCredentialsObjectSchema; }
|
|
3508
1259
|
});
|
|
3509
1260
|
Object.defineProperty(exports, "ConnectionEntrySchema", {
|
|
3510
1261
|
enumerable: true,
|
|
3511
|
-
get: function () { return
|
|
1262
|
+
get: function () { return chunkTJXDMXEE_cjs.ConnectionEntrySchema; }
|
|
3512
1263
|
});
|
|
3513
1264
|
Object.defineProperty(exports, "ConnectionIdPropertySchema", {
|
|
3514
1265
|
enumerable: true,
|
|
3515
|
-
get: function () { return
|
|
1266
|
+
get: function () { return chunkTJXDMXEE_cjs.ConnectionIdPropertySchema; }
|
|
3516
1267
|
});
|
|
3517
1268
|
Object.defineProperty(exports, "ConnectionPropertySchema", {
|
|
3518
1269
|
enumerable: true,
|
|
3519
|
-
get: function () { return
|
|
1270
|
+
get: function () { return chunkTJXDMXEE_cjs.ConnectionPropertySchema; }
|
|
3520
1271
|
});
|
|
3521
1272
|
Object.defineProperty(exports, "ConnectionsMapSchema", {
|
|
3522
1273
|
enumerable: true,
|
|
3523
|
-
get: function () { return
|
|
1274
|
+
get: function () { return chunkTJXDMXEE_cjs.ConnectionsMapSchema; }
|
|
3524
1275
|
});
|
|
3525
1276
|
Object.defineProperty(exports, "ConnectionsPropertySchema", {
|
|
3526
1277
|
enumerable: true,
|
|
3527
|
-
get: function () { return
|
|
1278
|
+
get: function () { return chunkTJXDMXEE_cjs.ConnectionsPropertySchema; }
|
|
3528
1279
|
});
|
|
3529
1280
|
Object.defineProperty(exports, "CoreCancelledSignal", {
|
|
3530
1281
|
enumerable: true,
|
|
3531
|
-
get: function () { return
|
|
1282
|
+
get: function () { return chunkTJXDMXEE_cjs.CoreCancelledSignal; }
|
|
3532
1283
|
});
|
|
3533
1284
|
Object.defineProperty(exports, "CoreDisposeError", {
|
|
3534
1285
|
enumerable: true,
|
|
3535
|
-
get: function () { return
|
|
1286
|
+
get: function () { return chunkTJXDMXEE_cjs.CoreDisposeError; }
|
|
3536
1287
|
});
|
|
3537
1288
|
Object.defineProperty(exports, "CoreErrorCode", {
|
|
3538
1289
|
enumerable: true,
|
|
3539
|
-
get: function () { return
|
|
1290
|
+
get: function () { return chunkTJXDMXEE_cjs.CoreErrorCode; }
|
|
3540
1291
|
});
|
|
3541
1292
|
Object.defineProperty(exports, "CoreSignal", {
|
|
3542
1293
|
enumerable: true,
|
|
3543
|
-
get: function () { return
|
|
1294
|
+
get: function () { return chunkTJXDMXEE_cjs.CoreSignal; }
|
|
3544
1295
|
});
|
|
3545
1296
|
Object.defineProperty(exports, "CredentialsFunctionSchema", {
|
|
3546
1297
|
enumerable: true,
|
|
3547
|
-
get: function () { return
|
|
1298
|
+
get: function () { return chunkTJXDMXEE_cjs.CredentialsFunctionSchema; }
|
|
3548
1299
|
});
|
|
3549
1300
|
Object.defineProperty(exports, "CredentialsObjectSchema", {
|
|
3550
1301
|
enumerable: true,
|
|
3551
|
-
get: function () { return
|
|
1302
|
+
get: function () { return chunkTJXDMXEE_cjs.CredentialsObjectSchema; }
|
|
3552
1303
|
});
|
|
3553
1304
|
Object.defineProperty(exports, "CredentialsSchema", {
|
|
3554
1305
|
enumerable: true,
|
|
3555
|
-
get: function () { return
|
|
1306
|
+
get: function () { return chunkTJXDMXEE_cjs.CredentialsSchema; }
|
|
3556
1307
|
});
|
|
3557
1308
|
Object.defineProperty(exports, "DEFAULT_ACTION_TIMEOUT_MILLISECONDS", {
|
|
3558
1309
|
enumerable: true,
|
|
3559
|
-
get: function () { return
|
|
1310
|
+
get: function () { return chunkTJXDMXEE_cjs.DEFAULT_ACTION_TIMEOUT_MILLISECONDS; }
|
|
3560
1311
|
});
|
|
3561
1312
|
Object.defineProperty(exports, "DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS", {
|
|
3562
1313
|
enumerable: true,
|
|
3563
|
-
get: function () { return
|
|
1314
|
+
get: function () { return chunkTJXDMXEE_cjs.DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS; }
|
|
3564
1315
|
});
|
|
3565
1316
|
Object.defineProperty(exports, "DEFAULT_CONFIG_PATH", {
|
|
3566
1317
|
enumerable: true,
|
|
3567
|
-
get: function () { return
|
|
1318
|
+
get: function () { return chunkTJXDMXEE_cjs.DEFAULT_CONFIG_PATH; }
|
|
3568
1319
|
});
|
|
3569
1320
|
Object.defineProperty(exports, "DEFAULT_MAX_APPROVAL_RETRIES", {
|
|
3570
1321
|
enumerable: true,
|
|
3571
|
-
get: function () { return
|
|
1322
|
+
get: function () { return chunkTJXDMXEE_cjs.DEFAULT_MAX_APPROVAL_RETRIES; }
|
|
3572
1323
|
});
|
|
3573
1324
|
Object.defineProperty(exports, "DEFAULT_PAGE_SIZE", {
|
|
3574
1325
|
enumerable: true,
|
|
3575
|
-
get: function () { return
|
|
1326
|
+
get: function () { return chunkTJXDMXEE_cjs.DEFAULT_PAGE_SIZE; }
|
|
3576
1327
|
});
|
|
3577
1328
|
Object.defineProperty(exports, "DEPRECATION_NOTICE_EVENT", {
|
|
3578
1329
|
enumerable: true,
|
|
3579
|
-
get: function () { return
|
|
1330
|
+
get: function () { return chunkTJXDMXEE_cjs.DEPRECATION_NOTICE_EVENT; }
|
|
3580
1331
|
});
|
|
3581
1332
|
Object.defineProperty(exports, "DebugPropertySchema", {
|
|
3582
1333
|
enumerable: true,
|
|
3583
|
-
get: function () { return
|
|
1334
|
+
get: function () { return chunkTJXDMXEE_cjs.DebugPropertySchema; }
|
|
3584
1335
|
});
|
|
3585
1336
|
Object.defineProperty(exports, "DrainTriggerInboxSchema", {
|
|
3586
1337
|
enumerable: true,
|
|
3587
|
-
get: function () { return
|
|
1338
|
+
get: function () { return chunkTJXDMXEE_cjs.DrainTriggerInboxSchema; }
|
|
3588
1339
|
});
|
|
3589
1340
|
Object.defineProperty(exports, "EVENT_EMISSION_ID", {
|
|
3590
1341
|
enumerable: true,
|
|
3591
|
-
get: function () { return
|
|
1342
|
+
get: function () { return chunkTJXDMXEE_cjs.EVENT_EMISSION_ID; }
|
|
3592
1343
|
});
|
|
3593
1344
|
Object.defineProperty(exports, "FieldsPropertySchema", {
|
|
3594
1345
|
enumerable: true,
|
|
3595
|
-
get: function () { return
|
|
1346
|
+
get: function () { return chunkTJXDMXEE_cjs.FieldsPropertySchema; }
|
|
3596
1347
|
});
|
|
3597
1348
|
Object.defineProperty(exports, "InputFieldPropertySchema", {
|
|
3598
1349
|
enumerable: true,
|
|
3599
|
-
get: function () { return
|
|
1350
|
+
get: function () { return chunkTJXDMXEE_cjs.InputFieldPropertySchema; }
|
|
3600
1351
|
});
|
|
3601
1352
|
Object.defineProperty(exports, "InputsPropertySchema", {
|
|
3602
1353
|
enumerable: true,
|
|
3603
|
-
get: function () { return
|
|
1354
|
+
get: function () { return chunkTJXDMXEE_cjs.InputsPropertySchema; }
|
|
3604
1355
|
});
|
|
3605
1356
|
Object.defineProperty(exports, "LeaseLimitPropertySchema", {
|
|
3606
1357
|
enumerable: true,
|
|
3607
|
-
get: function () { return
|
|
1358
|
+
get: function () { return chunkTJXDMXEE_cjs.LeaseLimitPropertySchema; }
|
|
3608
1359
|
});
|
|
3609
1360
|
Object.defineProperty(exports, "LeasePropertySchema", {
|
|
3610
1361
|
enumerable: true,
|
|
3611
|
-
get: function () { return
|
|
1362
|
+
get: function () { return chunkTJXDMXEE_cjs.LeasePropertySchema; }
|
|
3612
1363
|
});
|
|
3613
1364
|
Object.defineProperty(exports, "LeaseSecondsPropertySchema", {
|
|
3614
1365
|
enumerable: true,
|
|
3615
|
-
get: function () { return
|
|
1366
|
+
get: function () { return chunkTJXDMXEE_cjs.LeaseSecondsPropertySchema; }
|
|
3616
1367
|
});
|
|
3617
1368
|
Object.defineProperty(exports, "LimitPropertySchema", {
|
|
3618
1369
|
enumerable: true,
|
|
3619
|
-
get: function () { return
|
|
1370
|
+
get: function () { return chunkTJXDMXEE_cjs.LimitPropertySchema; }
|
|
3620
1371
|
});
|
|
3621
1372
|
Object.defineProperty(exports, "MANIFEST_ID", {
|
|
3622
1373
|
enumerable: true,
|
|
3623
|
-
get: function () { return
|
|
1374
|
+
get: function () { return chunkTJXDMXEE_cjs.MANIFEST_ID; }
|
|
3624
1375
|
});
|
|
3625
1376
|
Object.defineProperty(exports, "MAX_CONCURRENCY_LIMIT", {
|
|
3626
1377
|
enumerable: true,
|
|
3627
|
-
get: function () { return
|
|
1378
|
+
get: function () { return chunkTJXDMXEE_cjs.MAX_CONCURRENCY_LIMIT; }
|
|
3628
1379
|
});
|
|
3629
1380
|
Object.defineProperty(exports, "MAX_PAGE_LIMIT", {
|
|
3630
1381
|
enumerable: true,
|
|
3631
|
-
get: function () { return
|
|
1382
|
+
get: function () { return chunkTJXDMXEE_cjs.MAX_PAGE_LIMIT; }
|
|
3632
1383
|
});
|
|
3633
1384
|
Object.defineProperty(exports, "OffsetPropertySchema", {
|
|
3634
1385
|
enumerable: true,
|
|
3635
|
-
get: function () { return
|
|
1386
|
+
get: function () { return chunkTJXDMXEE_cjs.OffsetPropertySchema; }
|
|
3636
1387
|
});
|
|
3637
1388
|
Object.defineProperty(exports, "OutputPropertySchema", {
|
|
3638
1389
|
enumerable: true,
|
|
3639
|
-
get: function () { return
|
|
1390
|
+
get: function () { return chunkTJXDMXEE_cjs.OutputPropertySchema; }
|
|
3640
1391
|
});
|
|
3641
1392
|
Object.defineProperty(exports, "ParamsPropertySchema", {
|
|
3642
1393
|
enumerable: true,
|
|
3643
|
-
get: function () { return
|
|
1394
|
+
get: function () { return chunkTJXDMXEE_cjs.ParamsPropertySchema; }
|
|
3644
1395
|
});
|
|
3645
1396
|
Object.defineProperty(exports, "PkceCredentialsObjectSchema", {
|
|
3646
1397
|
enumerable: true,
|
|
3647
|
-
get: function () { return
|
|
1398
|
+
get: function () { return chunkTJXDMXEE_cjs.PkceCredentialsObjectSchema; }
|
|
3648
1399
|
});
|
|
3649
1400
|
Object.defineProperty(exports, "RESOLVE_CREDENTIALS_ID", {
|
|
3650
1401
|
enumerable: true,
|
|
3651
|
-
get: function () { return
|
|
1402
|
+
get: function () { return chunkTJXDMXEE_cjs.RESOLVE_CREDENTIALS_ID; }
|
|
3652
1403
|
});
|
|
3653
1404
|
Object.defineProperty(exports, "RecordPropertySchema", {
|
|
3654
1405
|
enumerable: true,
|
|
3655
|
-
get: function () { return
|
|
1406
|
+
get: function () { return chunkTJXDMXEE_cjs.RecordPropertySchema; }
|
|
3656
1407
|
});
|
|
3657
1408
|
Object.defineProperty(exports, "RecordsPropertySchema", {
|
|
3658
1409
|
enumerable: true,
|
|
3659
|
-
get: function () { return
|
|
1410
|
+
get: function () { return chunkTJXDMXEE_cjs.RecordsPropertySchema; }
|
|
3660
1411
|
});
|
|
3661
1412
|
Object.defineProperty(exports, "RelayFetchSchema", {
|
|
3662
1413
|
enumerable: true,
|
|
3663
|
-
get: function () { return
|
|
1414
|
+
get: function () { return chunkTJXDMXEE_cjs.RelayFetchSchema; }
|
|
3664
1415
|
});
|
|
3665
1416
|
Object.defineProperty(exports, "RelayRequestSchema", {
|
|
3666
1417
|
enumerable: true,
|
|
3667
|
-
get: function () { return
|
|
1418
|
+
get: function () { return chunkTJXDMXEE_cjs.RelayRequestSchema; }
|
|
3668
1419
|
});
|
|
3669
1420
|
Object.defineProperty(exports, "ResolvedCredentialsSchema", {
|
|
3670
1421
|
enumerable: true,
|
|
3671
|
-
get: function () { return
|
|
1422
|
+
get: function () { return chunkTJXDMXEE_cjs.ResolvedCredentialsSchema; }
|
|
3672
1423
|
});
|
|
3673
1424
|
Object.defineProperty(exports, "SDK_OPTIONS_ID", {
|
|
3674
1425
|
enumerable: true,
|
|
3675
|
-
get: function () { return
|
|
1426
|
+
get: function () { return chunkTJXDMXEE_cjs.SDK_OPTIONS_ID; }
|
|
3676
1427
|
});
|
|
3677
1428
|
Object.defineProperty(exports, "STABILITY_DEFINITIONS", {
|
|
3678
1429
|
enumerable: true,
|
|
3679
|
-
get: function () { return
|
|
1430
|
+
get: function () { return chunkTJXDMXEE_cjs.STABILITY_DEFINITIONS; }
|
|
3680
1431
|
});
|
|
3681
1432
|
Object.defineProperty(exports, "STABILITY_LEVELS", {
|
|
3682
1433
|
enumerable: true,
|
|
3683
|
-
get: function () { return
|
|
1434
|
+
get: function () { return chunkTJXDMXEE_cjs.STABILITY_LEVELS; }
|
|
3684
1435
|
});
|
|
3685
1436
|
Object.defineProperty(exports, "STABILITY_TITLES", {
|
|
3686
1437
|
enumerable: true,
|
|
3687
|
-
get: function () { return
|
|
1438
|
+
get: function () { return chunkTJXDMXEE_cjs.STABILITY_TITLES; }
|
|
3688
1439
|
});
|
|
3689
1440
|
Object.defineProperty(exports, "TablePropertySchema", {
|
|
3690
1441
|
enumerable: true,
|
|
3691
|
-
get: function () { return
|
|
1442
|
+
get: function () { return chunkTJXDMXEE_cjs.TablePropertySchema; }
|
|
3692
1443
|
});
|
|
3693
1444
|
Object.defineProperty(exports, "TablesPropertySchema", {
|
|
3694
1445
|
enumerable: true,
|
|
3695
|
-
get: function () { return
|
|
1446
|
+
get: function () { return chunkTJXDMXEE_cjs.TablesPropertySchema; }
|
|
3696
1447
|
});
|
|
3697
1448
|
Object.defineProperty(exports, "TriggerInboxKeyPropertySchema", {
|
|
3698
1449
|
enumerable: true,
|
|
3699
|
-
get: function () { return
|
|
1450
|
+
get: function () { return chunkTJXDMXEE_cjs.TriggerInboxKeyPropertySchema; }
|
|
3700
1451
|
});
|
|
3701
1452
|
Object.defineProperty(exports, "TriggerInboxNamePropertySchema", {
|
|
3702
1453
|
enumerable: true,
|
|
3703
|
-
get: function () { return
|
|
1454
|
+
get: function () { return chunkTJXDMXEE_cjs.TriggerInboxNamePropertySchema; }
|
|
3704
1455
|
});
|
|
3705
1456
|
Object.defineProperty(exports, "TriggerInboxPropertySchema", {
|
|
3706
1457
|
enumerable: true,
|
|
3707
|
-
get: function () { return
|
|
1458
|
+
get: function () { return chunkTJXDMXEE_cjs.TriggerInboxPropertySchema; }
|
|
3708
1459
|
});
|
|
3709
1460
|
Object.defineProperty(exports, "WatchTriggerInboxSchema", {
|
|
3710
1461
|
enumerable: true,
|
|
3711
|
-
get: function () { return
|
|
1462
|
+
get: function () { return chunkTJXDMXEE_cjs.WatchTriggerInboxSchema; }
|
|
3712
1463
|
});
|
|
3713
1464
|
Object.defineProperty(exports, "ZAPIER_BASE_URL", {
|
|
3714
1465
|
enumerable: true,
|
|
3715
|
-
get: function () { return
|
|
1466
|
+
get: function () { return chunkTJXDMXEE_cjs.ZAPIER_BASE_URL; }
|
|
3716
1467
|
});
|
|
3717
1468
|
Object.defineProperty(exports, "ZAPIER_MAX_CONCURRENT_REQUESTS", {
|
|
3718
1469
|
enumerable: true,
|
|
3719
|
-
get: function () { return
|
|
1470
|
+
get: function () { return chunkTJXDMXEE_cjs.ZAPIER_MAX_CONCURRENT_REQUESTS; }
|
|
3720
1471
|
});
|
|
3721
1472
|
Object.defineProperty(exports, "ZAPIER_MAX_NETWORK_RETRIES", {
|
|
3722
1473
|
enumerable: true,
|
|
3723
|
-
get: function () { return
|
|
1474
|
+
get: function () { return chunkTJXDMXEE_cjs.ZAPIER_MAX_NETWORK_RETRIES; }
|
|
3724
1475
|
});
|
|
3725
1476
|
Object.defineProperty(exports, "ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS", {
|
|
3726
1477
|
enumerable: true,
|
|
3727
|
-
get: function () { return
|
|
1478
|
+
get: function () { return chunkTJXDMXEE_cjs.ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS; }
|
|
3728
1479
|
});
|
|
3729
1480
|
Object.defineProperty(exports, "ZapierAbortDrainSignal", {
|
|
3730
1481
|
enumerable: true,
|
|
3731
|
-
get: function () { return
|
|
1482
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierAbortDrainSignal; }
|
|
3732
1483
|
});
|
|
3733
1484
|
Object.defineProperty(exports, "ZapierActionError", {
|
|
3734
1485
|
enumerable: true,
|
|
3735
|
-
get: function () { return
|
|
1486
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierActionError; }
|
|
3736
1487
|
});
|
|
3737
1488
|
Object.defineProperty(exports, "ZapierApiError", {
|
|
3738
1489
|
enumerable: true,
|
|
3739
|
-
get: function () { return
|
|
1490
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierApiError; }
|
|
3740
1491
|
});
|
|
3741
1492
|
Object.defineProperty(exports, "ZapierAppNotFoundError", {
|
|
3742
1493
|
enumerable: true,
|
|
3743
|
-
get: function () { return
|
|
1494
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierAppNotFoundError; }
|
|
3744
1495
|
});
|
|
3745
1496
|
Object.defineProperty(exports, "ZapierApprovalError", {
|
|
3746
1497
|
enumerable: true,
|
|
3747
|
-
get: function () { return
|
|
1498
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierApprovalError; }
|
|
3748
1499
|
});
|
|
3749
1500
|
Object.defineProperty(exports, "ZapierAuthenticationError", {
|
|
3750
1501
|
enumerable: true,
|
|
3751
|
-
get: function () { return
|
|
1502
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierAuthenticationError; }
|
|
3752
1503
|
});
|
|
3753
1504
|
Object.defineProperty(exports, "ZapierBundleError", {
|
|
3754
1505
|
enumerable: true,
|
|
3755
|
-
get: function () { return
|
|
1506
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierBundleError; }
|
|
3756
1507
|
});
|
|
3757
1508
|
Object.defineProperty(exports, "ZapierConfigurationError", {
|
|
3758
1509
|
enumerable: true,
|
|
3759
|
-
get: function () { return
|
|
1510
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierConfigurationError; }
|
|
3760
1511
|
});
|
|
3761
1512
|
Object.defineProperty(exports, "ZapierConflictError", {
|
|
3762
1513
|
enumerable: true,
|
|
3763
|
-
get: function () { return
|
|
1514
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierConflictError; }
|
|
3764
1515
|
});
|
|
3765
1516
|
Object.defineProperty(exports, "ZapierError", {
|
|
3766
1517
|
enumerable: true,
|
|
3767
|
-
get: function () { return
|
|
1518
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierError; }
|
|
3768
1519
|
});
|
|
3769
1520
|
Object.defineProperty(exports, "ZapierNotFoundError", {
|
|
3770
1521
|
enumerable: true,
|
|
3771
|
-
get: function () { return
|
|
1522
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierNotFoundError; }
|
|
3772
1523
|
});
|
|
3773
1524
|
Object.defineProperty(exports, "ZapierRateLimitError", {
|
|
3774
1525
|
enumerable: true,
|
|
3775
|
-
get: function () { return
|
|
1526
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierRateLimitError; }
|
|
3776
1527
|
});
|
|
3777
1528
|
Object.defineProperty(exports, "ZapierRelayError", {
|
|
3778
1529
|
enumerable: true,
|
|
3779
|
-
get: function () { return
|
|
1530
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierRelayError; }
|
|
3780
1531
|
});
|
|
3781
1532
|
Object.defineProperty(exports, "ZapierReleaseTriggerMessageSignal", {
|
|
3782
1533
|
enumerable: true,
|
|
3783
|
-
get: function () { return
|
|
1534
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierReleaseTriggerMessageSignal; }
|
|
3784
1535
|
});
|
|
3785
1536
|
Object.defineProperty(exports, "ZapierResourceNotFoundError", {
|
|
3786
1537
|
enumerable: true,
|
|
3787
|
-
get: function () { return
|
|
1538
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierResourceNotFoundError; }
|
|
3788
1539
|
});
|
|
3789
1540
|
Object.defineProperty(exports, "ZapierSignal", {
|
|
3790
1541
|
enumerable: true,
|
|
3791
|
-
get: function () { return
|
|
1542
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierSignal; }
|
|
3792
1543
|
});
|
|
3793
1544
|
Object.defineProperty(exports, "ZapierTimeoutError", {
|
|
3794
1545
|
enumerable: true,
|
|
3795
|
-
get: function () { return
|
|
1546
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierTimeoutError; }
|
|
3796
1547
|
});
|
|
3797
1548
|
Object.defineProperty(exports, "ZapierUnknownError", {
|
|
3798
1549
|
enumerable: true,
|
|
3799
|
-
get: function () { return
|
|
1550
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierUnknownError; }
|
|
3800
1551
|
});
|
|
3801
1552
|
Object.defineProperty(exports, "ZapierValidationError", {
|
|
3802
1553
|
enumerable: true,
|
|
3803
|
-
get: function () { return
|
|
1554
|
+
get: function () { return chunkTJXDMXEE_cjs.ZapierValidationError; }
|
|
3804
1555
|
});
|
|
3805
1556
|
Object.defineProperty(exports, "actionKeyResolver", {
|
|
3806
1557
|
enumerable: true,
|
|
3807
|
-
get: function () { return
|
|
1558
|
+
get: function () { return chunkTJXDMXEE_cjs.actionKeyResolver; }
|
|
3808
1559
|
});
|
|
3809
1560
|
Object.defineProperty(exports, "actionTypeResolver", {
|
|
3810
1561
|
enumerable: true,
|
|
3811
|
-
get: function () { return
|
|
1562
|
+
get: function () { return chunkTJXDMXEE_cjs.actionTypeResolver; }
|
|
3812
1563
|
});
|
|
3813
1564
|
Object.defineProperty(exports, "addPlugin", {
|
|
3814
1565
|
enumerable: true,
|
|
3815
|
-
get: function () { return
|
|
1566
|
+
get: function () { return chunkTJXDMXEE_cjs.addPlugin; }
|
|
3816
1567
|
});
|
|
3817
1568
|
Object.defineProperty(exports, "apiPlugin", {
|
|
3818
1569
|
enumerable: true,
|
|
3819
|
-
get: function () { return
|
|
1570
|
+
get: function () { return chunkTJXDMXEE_cjs.apiPlugin; }
|
|
3820
1571
|
});
|
|
3821
1572
|
Object.defineProperty(exports, "apiPluginRef", {
|
|
3822
1573
|
enumerable: true,
|
|
3823
|
-
get: function () { return
|
|
1574
|
+
get: function () { return chunkTJXDMXEE_cjs.apiPluginRef; }
|
|
3824
1575
|
});
|
|
3825
1576
|
Object.defineProperty(exports, "appKeyResolver", {
|
|
3826
1577
|
enumerable: true,
|
|
3827
|
-
get: function () { return
|
|
1578
|
+
get: function () { return chunkTJXDMXEE_cjs.appKeyResolver; }
|
|
3828
1579
|
});
|
|
3829
1580
|
Object.defineProperty(exports, "applyStabilityLabel", {
|
|
3830
1581
|
enumerable: true,
|
|
3831
|
-
get: function () { return
|
|
1582
|
+
get: function () { return chunkTJXDMXEE_cjs.applyStabilityLabel; }
|
|
3832
1583
|
});
|
|
3833
1584
|
Object.defineProperty(exports, "appsPlugin", {
|
|
3834
1585
|
enumerable: true,
|
|
3835
|
-
get: function () { return
|
|
1586
|
+
get: function () { return chunkTJXDMXEE_cjs.appsPlugin; }
|
|
3836
1587
|
});
|
|
3837
1588
|
Object.defineProperty(exports, "batch", {
|
|
3838
1589
|
enumerable: true,
|
|
3839
|
-
get: function () { return
|
|
1590
|
+
get: function () { return chunkTJXDMXEE_cjs.batch; }
|
|
3840
1591
|
});
|
|
3841
1592
|
Object.defineProperty(exports, "buildApplicationLifecycleEvent", {
|
|
3842
1593
|
enumerable: true,
|
|
3843
|
-
get: function () { return
|
|
1594
|
+
get: function () { return chunkTJXDMXEE_cjs.buildApplicationLifecycleEvent; }
|
|
3844
1595
|
});
|
|
3845
1596
|
Object.defineProperty(exports, "buildCapabilityMessage", {
|
|
3846
1597
|
enumerable: true,
|
|
3847
|
-
get: function () { return
|
|
1598
|
+
get: function () { return chunkTJXDMXEE_cjs.buildCapabilityMessage; }
|
|
3848
1599
|
});
|
|
3849
1600
|
Object.defineProperty(exports, "buildErrorEvent", {
|
|
3850
1601
|
enumerable: true,
|
|
3851
|
-
get: function () { return
|
|
1602
|
+
get: function () { return chunkTJXDMXEE_cjs.buildErrorEvent; }
|
|
3852
1603
|
});
|
|
3853
1604
|
Object.defineProperty(exports, "buildErrorEventWithContext", {
|
|
3854
1605
|
enumerable: true,
|
|
3855
|
-
get: function () { return
|
|
1606
|
+
get: function () { return chunkTJXDMXEE_cjs.buildErrorEventWithContext; }
|
|
3856
1607
|
});
|
|
3857
1608
|
Object.defineProperty(exports, "buildMethodCalledEvent", {
|
|
3858
1609
|
enumerable: true,
|
|
3859
|
-
get: function () { return
|
|
1610
|
+
get: function () { return chunkTJXDMXEE_cjs.buildMethodCalledEvent; }
|
|
3860
1611
|
});
|
|
3861
1612
|
Object.defineProperty(exports, "cleanupEventListeners", {
|
|
3862
1613
|
enumerable: true,
|
|
3863
|
-
get: function () { return
|
|
1614
|
+
get: function () { return chunkTJXDMXEE_cjs.cleanupEventListeners; }
|
|
3864
1615
|
});
|
|
3865
1616
|
Object.defineProperty(exports, "clearTokenCache", {
|
|
3866
1617
|
enumerable: true,
|
|
3867
|
-
get: function () { return
|
|
1618
|
+
get: function () { return chunkTJXDMXEE_cjs.clearTokenCache; }
|
|
3868
1619
|
});
|
|
3869
1620
|
Object.defineProperty(exports, "clientCredentialsNameResolver", {
|
|
3870
1621
|
enumerable: true,
|
|
3871
|
-
get: function () { return
|
|
1622
|
+
get: function () { return chunkTJXDMXEE_cjs.clientCredentialsNameResolver; }
|
|
3872
1623
|
});
|
|
3873
1624
|
Object.defineProperty(exports, "clientIdResolver", {
|
|
3874
1625
|
enumerable: true,
|
|
3875
|
-
get: function () { return
|
|
1626
|
+
get: function () { return chunkTJXDMXEE_cjs.clientIdResolver; }
|
|
3876
1627
|
});
|
|
3877
1628
|
Object.defineProperty(exports, "connectionIdGenericResolver", {
|
|
3878
1629
|
enumerable: true,
|
|
3879
|
-
get: function () { return
|
|
1630
|
+
get: function () { return chunkTJXDMXEE_cjs.connectionIdGenericResolver; }
|
|
3880
1631
|
});
|
|
3881
1632
|
Object.defineProperty(exports, "connectionIdResolver", {
|
|
3882
1633
|
enumerable: true,
|
|
3883
|
-
get: function () { return
|
|
1634
|
+
get: function () { return chunkTJXDMXEE_cjs.connectionIdResolver; }
|
|
3884
1635
|
});
|
|
3885
1636
|
Object.defineProperty(exports, "connectionsPlugin", {
|
|
3886
1637
|
enumerable: true,
|
|
3887
|
-
get: function () { return
|
|
1638
|
+
get: function () { return chunkTJXDMXEE_cjs.connectionsPlugin; }
|
|
3888
1639
|
});
|
|
3889
1640
|
Object.defineProperty(exports, "connectionsPluginRef", {
|
|
3890
1641
|
enumerable: true,
|
|
3891
|
-
get: function () { return
|
|
1642
|
+
get: function () { return chunkTJXDMXEE_cjs.connectionsPluginRef; }
|
|
3892
1643
|
});
|
|
3893
1644
|
Object.defineProperty(exports, "createActionRunPlugin", {
|
|
3894
1645
|
enumerable: true,
|
|
3895
|
-
get: function () { return
|
|
1646
|
+
get: function () { return chunkTJXDMXEE_cjs.createActionRunPlugin; }
|
|
3896
1647
|
});
|
|
3897
1648
|
Object.defineProperty(exports, "createBaseEvent", {
|
|
3898
1649
|
enumerable: true,
|
|
3899
|
-
get: function () { return
|
|
1650
|
+
get: function () { return chunkTJXDMXEE_cjs.createBaseEvent; }
|
|
3900
1651
|
});
|
|
3901
1652
|
Object.defineProperty(exports, "createClientCredentialsPlugin", {
|
|
3902
1653
|
enumerable: true,
|
|
3903
|
-
get: function () { return
|
|
1654
|
+
get: function () { return chunkTJXDMXEE_cjs.createClientCredentialsPlugin; }
|
|
3904
1655
|
});
|
|
3905
1656
|
Object.defineProperty(exports, "createController", {
|
|
3906
1657
|
enumerable: true,
|
|
3907
|
-
get: function () { return
|
|
1658
|
+
get: function () { return chunkTJXDMXEE_cjs.createController; }
|
|
3908
1659
|
});
|
|
3909
1660
|
Object.defineProperty(exports, "createMemoryCache", {
|
|
3910
1661
|
enumerable: true,
|
|
3911
|
-
get: function () { return
|
|
1662
|
+
get: function () { return chunkTJXDMXEE_cjs.createMemoryCache; }
|
|
3912
1663
|
});
|
|
3913
1664
|
Object.defineProperty(exports, "createSdk", {
|
|
3914
1665
|
enumerable: true,
|
|
3915
|
-
get: function () { return
|
|
1666
|
+
get: function () { return chunkTJXDMXEE_cjs.createSdk; }
|
|
3916
1667
|
});
|
|
3917
1668
|
Object.defineProperty(exports, "createTableFieldsPlugin", {
|
|
3918
1669
|
enumerable: true,
|
|
3919
|
-
get: function () { return
|
|
1670
|
+
get: function () { return chunkTJXDMXEE_cjs.createTableFieldsPlugin; }
|
|
3920
1671
|
});
|
|
3921
1672
|
Object.defineProperty(exports, "createTablePlugin", {
|
|
3922
1673
|
enumerable: true,
|
|
3923
|
-
get: function () { return
|
|
1674
|
+
get: function () { return chunkTJXDMXEE_cjs.createTablePlugin; }
|
|
3924
1675
|
});
|
|
3925
1676
|
Object.defineProperty(exports, "createTableRecordsPlugin", {
|
|
3926
1677
|
enumerable: true,
|
|
3927
|
-
get: function () { return
|
|
1678
|
+
get: function () { return chunkTJXDMXEE_cjs.createTableRecordsPlugin; }
|
|
3928
1679
|
});
|
|
3929
1680
|
Object.defineProperty(exports, "createZapierApi", {
|
|
3930
1681
|
enumerable: true,
|
|
3931
|
-
get: function () { return
|
|
1682
|
+
get: function () { return chunkTJXDMXEE_cjs.createZapierApi; }
|
|
3932
1683
|
});
|
|
3933
1684
|
Object.defineProperty(exports, "createZapierSdkWithoutRegistry", {
|
|
3934
1685
|
enumerable: true,
|
|
3935
|
-
get: function () { return
|
|
1686
|
+
get: function () { return chunkTJXDMXEE_cjs.createZapierSdkWithoutRegistry; }
|
|
3936
1687
|
});
|
|
3937
1688
|
Object.defineProperty(exports, "declareMethod", {
|
|
3938
1689
|
enumerable: true,
|
|
3939
|
-
get: function () { return
|
|
1690
|
+
get: function () { return chunkTJXDMXEE_cjs.declareMethod; }
|
|
3940
1691
|
});
|
|
3941
1692
|
Object.defineProperty(exports, "declareOptionalProperty", {
|
|
3942
1693
|
enumerable: true,
|
|
3943
|
-
get: function () { return
|
|
1694
|
+
get: function () { return chunkTJXDMXEE_cjs.declareOptionalProperty; }
|
|
3944
1695
|
});
|
|
3945
1696
|
Object.defineProperty(exports, "declarePlugin", {
|
|
3946
1697
|
enumerable: true,
|
|
3947
|
-
get: function () { return
|
|
1698
|
+
get: function () { return chunkTJXDMXEE_cjs.declarePlugin; }
|
|
3948
1699
|
});
|
|
3949
1700
|
Object.defineProperty(exports, "declareProperty", {
|
|
3950
1701
|
enumerable: true,
|
|
3951
|
-
get: function () { return
|
|
1702
|
+
get: function () { return chunkTJXDMXEE_cjs.declareProperty; }
|
|
3952
1703
|
});
|
|
3953
1704
|
Object.defineProperty(exports, "defineFormatter", {
|
|
3954
1705
|
enumerable: true,
|
|
3955
|
-
get: function () { return
|
|
1706
|
+
get: function () { return chunkTJXDMXEE_cjs.defineFormatter; }
|
|
3956
1707
|
});
|
|
3957
1708
|
Object.defineProperty(exports, "defineMethod", {
|
|
3958
1709
|
enumerable: true,
|
|
3959
|
-
get: function () { return
|
|
1710
|
+
get: function () { return chunkTJXDMXEE_cjs.defineMethod; }
|
|
3960
1711
|
});
|
|
3961
1712
|
Object.defineProperty(exports, "defineMethodOverride", {
|
|
3962
1713
|
enumerable: true,
|
|
3963
|
-
get: function () { return
|
|
1714
|
+
get: function () { return chunkTJXDMXEE_cjs.defineMethodOverride; }
|
|
3964
1715
|
});
|
|
3965
1716
|
Object.defineProperty(exports, "defineOverride", {
|
|
3966
1717
|
enumerable: true,
|
|
3967
|
-
get: function () { return
|
|
1718
|
+
get: function () { return chunkTJXDMXEE_cjs.defineOverride; }
|
|
3968
1719
|
});
|
|
3969
1720
|
Object.defineProperty(exports, "definePlugin", {
|
|
3970
1721
|
enumerable: true,
|
|
3971
|
-
get: function () { return
|
|
1722
|
+
get: function () { return chunkTJXDMXEE_cjs.definePlugin; }
|
|
3972
1723
|
});
|
|
3973
1724
|
Object.defineProperty(exports, "defineProperty", {
|
|
3974
1725
|
enumerable: true,
|
|
3975
|
-
get: function () { return
|
|
1726
|
+
get: function () { return chunkTJXDMXEE_cjs.defineProperty; }
|
|
3976
1727
|
});
|
|
3977
1728
|
Object.defineProperty(exports, "defineResolver", {
|
|
3978
1729
|
enumerable: true,
|
|
3979
|
-
get: function () { return
|
|
1730
|
+
get: function () { return chunkTJXDMXEE_cjs.defineResolver; }
|
|
3980
1731
|
});
|
|
3981
1732
|
Object.defineProperty(exports, "deleteClientCredentialsPlugin", {
|
|
3982
1733
|
enumerable: true,
|
|
3983
|
-
get: function () { return
|
|
1734
|
+
get: function () { return chunkTJXDMXEE_cjs.deleteClientCredentialsPlugin; }
|
|
3984
1735
|
});
|
|
3985
1736
|
Object.defineProperty(exports, "deleteTableFieldsPlugin", {
|
|
3986
1737
|
enumerable: true,
|
|
3987
|
-
get: function () { return
|
|
1738
|
+
get: function () { return chunkTJXDMXEE_cjs.deleteTableFieldsPlugin; }
|
|
3988
1739
|
});
|
|
3989
1740
|
Object.defineProperty(exports, "deleteTablePlugin", {
|
|
3990
1741
|
enumerable: true,
|
|
3991
|
-
get: function () { return
|
|
1742
|
+
get: function () { return chunkTJXDMXEE_cjs.deleteTablePlugin; }
|
|
3992
1743
|
});
|
|
3993
1744
|
Object.defineProperty(exports, "deleteTableRecordsPlugin", {
|
|
3994
1745
|
enumerable: true,
|
|
3995
|
-
get: function () { return
|
|
1746
|
+
get: function () { return chunkTJXDMXEE_cjs.deleteTableRecordsPlugin; }
|
|
3996
1747
|
});
|
|
3997
1748
|
Object.defineProperty(exports, "descriptionFor", {
|
|
3998
1749
|
enumerable: true,
|
|
3999
|
-
get: function () { return
|
|
1750
|
+
get: function () { return chunkTJXDMXEE_cjs.descriptionFor; }
|
|
4000
1751
|
});
|
|
4001
1752
|
Object.defineProperty(exports, "disposeSdk", {
|
|
4002
1753
|
enumerable: true,
|
|
4003
|
-
get: function () { return
|
|
1754
|
+
get: function () { return chunkTJXDMXEE_cjs.disposeSdk; }
|
|
4004
1755
|
});
|
|
4005
1756
|
Object.defineProperty(exports, "durableRunIdResolver", {
|
|
4006
1757
|
enumerable: true,
|
|
4007
|
-
get: function () { return
|
|
1758
|
+
get: function () { return chunkTJXDMXEE_cjs.durableRunIdResolver; }
|
|
4008
1759
|
});
|
|
4009
1760
|
Object.defineProperty(exports, "eventEmissionHookPlugin", {
|
|
4010
1761
|
enumerable: true,
|
|
4011
|
-
get: function () { return
|
|
1762
|
+
get: function () { return chunkTJXDMXEE_cjs.eventEmissionHookPlugin; }
|
|
4012
1763
|
});
|
|
4013
1764
|
Object.defineProperty(exports, "eventEmissionPlugin", {
|
|
4014
1765
|
enumerable: true,
|
|
4015
|
-
get: function () { return
|
|
1766
|
+
get: function () { return chunkTJXDMXEE_cjs.eventEmissionPlugin; }
|
|
4016
1767
|
});
|
|
4017
1768
|
Object.defineProperty(exports, "eventEmissionPluginRef", {
|
|
4018
1769
|
enumerable: true,
|
|
4019
|
-
get: function () { return
|
|
1770
|
+
get: function () { return chunkTJXDMXEE_cjs.eventEmissionPluginRef; }
|
|
4020
1771
|
});
|
|
4021
1772
|
Object.defineProperty(exports, "fetchPlugin", {
|
|
4022
1773
|
enumerable: true,
|
|
4023
|
-
get: function () { return
|
|
1774
|
+
get: function () { return chunkTJXDMXEE_cjs.fetchPlugin; }
|
|
4024
1775
|
});
|
|
4025
1776
|
Object.defineProperty(exports, "findFirstConnectionPlugin", {
|
|
4026
1777
|
enumerable: true,
|
|
4027
|
-
get: function () { return
|
|
1778
|
+
get: function () { return chunkTJXDMXEE_cjs.findFirstConnectionPlugin; }
|
|
4028
1779
|
});
|
|
4029
1780
|
Object.defineProperty(exports, "findManifestEntry", {
|
|
4030
1781
|
enumerable: true,
|
|
4031
|
-
get: function () { return
|
|
1782
|
+
get: function () { return chunkTJXDMXEE_cjs.findManifestEntry; }
|
|
4032
1783
|
});
|
|
4033
1784
|
Object.defineProperty(exports, "findUniqueConnectionPlugin", {
|
|
4034
1785
|
enumerable: true,
|
|
4035
|
-
get: function () { return
|
|
1786
|
+
get: function () { return chunkTJXDMXEE_cjs.findUniqueConnectionPlugin; }
|
|
4036
1787
|
});
|
|
4037
1788
|
Object.defineProperty(exports, "formatErrorMessage", {
|
|
4038
1789
|
enumerable: true,
|
|
4039
|
-
get: function () { return
|
|
1790
|
+
get: function () { return chunkTJXDMXEE_cjs.formatErrorMessage; }
|
|
4040
1791
|
});
|
|
4041
1792
|
Object.defineProperty(exports, "formatExtensionPluginFailure", {
|
|
4042
1793
|
enumerable: true,
|
|
4043
|
-
get: function () { return
|
|
1794
|
+
get: function () { return chunkTJXDMXEE_cjs.formatExtensionPluginFailure; }
|
|
4044
1795
|
});
|
|
4045
1796
|
Object.defineProperty(exports, "generateEventId", {
|
|
4046
1797
|
enumerable: true,
|
|
4047
|
-
get: function () { return
|
|
1798
|
+
get: function () { return chunkTJXDMXEE_cjs.generateEventId; }
|
|
4048
1799
|
});
|
|
4049
1800
|
Object.defineProperty(exports, "getActionInputFieldsSchemaPlugin", {
|
|
4050
1801
|
enumerable: true,
|
|
4051
|
-
get: function () { return
|
|
1802
|
+
get: function () { return chunkTJXDMXEE_cjs.getActionInputFieldsSchemaPlugin; }
|
|
4052
1803
|
});
|
|
4053
1804
|
Object.defineProperty(exports, "getActionPlugin", {
|
|
4054
1805
|
enumerable: true,
|
|
4055
|
-
get: function () { return
|
|
1806
|
+
get: function () { return chunkTJXDMXEE_cjs.getActionPlugin; }
|
|
4056
1807
|
});
|
|
4057
1808
|
Object.defineProperty(exports, "getActionRunPlugin", {
|
|
4058
1809
|
enumerable: true,
|
|
4059
|
-
get: function () { return
|
|
1810
|
+
get: function () { return chunkTJXDMXEE_cjs.getActionRunPlugin; }
|
|
4060
1811
|
});
|
|
4061
1812
|
Object.defineProperty(exports, "getAgent", {
|
|
4062
1813
|
enumerable: true,
|
|
4063
|
-
get: function () { return
|
|
1814
|
+
get: function () { return chunkTJXDMXEE_cjs.getAgent; }
|
|
4064
1815
|
});
|
|
4065
1816
|
Object.defineProperty(exports, "getAppPlugin", {
|
|
4066
1817
|
enumerable: true,
|
|
4067
|
-
get: function () { return
|
|
1818
|
+
get: function () { return chunkTJXDMXEE_cjs.getAppPlugin; }
|
|
4068
1819
|
});
|
|
4069
1820
|
Object.defineProperty(exports, "getBaseUrlFromCredentials", {
|
|
4070
1821
|
enumerable: true,
|
|
4071
|
-
get: function () { return
|
|
1822
|
+
get: function () { return chunkTJXDMXEE_cjs.getBaseUrlFromCredentials; }
|
|
4072
1823
|
});
|
|
4073
1824
|
Object.defineProperty(exports, "getCallerContext", {
|
|
4074
1825
|
enumerable: true,
|
|
4075
|
-
get: function () { return
|
|
1826
|
+
get: function () { return chunkTJXDMXEE_cjs.getCallerContext; }
|
|
4076
1827
|
});
|
|
4077
1828
|
Object.defineProperty(exports, "getCiPlatform", {
|
|
4078
1829
|
enumerable: true,
|
|
4079
|
-
get: function () { return
|
|
1830
|
+
get: function () { return chunkTJXDMXEE_cjs.getCiPlatform; }
|
|
4080
1831
|
});
|
|
4081
1832
|
Object.defineProperty(exports, "getClientIdFromCredentials", {
|
|
4082
1833
|
enumerable: true,
|
|
4083
|
-
get: function () { return
|
|
1834
|
+
get: function () { return chunkTJXDMXEE_cjs.getClientIdFromCredentials; }
|
|
4084
1835
|
});
|
|
4085
1836
|
Object.defineProperty(exports, "getConnectionPlugin", {
|
|
4086
1837
|
enumerable: true,
|
|
4087
|
-
get: function () { return
|
|
1838
|
+
get: function () { return chunkTJXDMXEE_cjs.getConnectionPlugin; }
|
|
4088
1839
|
});
|
|
4089
1840
|
Object.defineProperty(exports, "getContext", {
|
|
4090
1841
|
enumerable: true,
|
|
4091
|
-
get: function () { return
|
|
1842
|
+
get: function () { return chunkTJXDMXEE_cjs.getContext; }
|
|
4092
1843
|
});
|
|
4093
1844
|
Object.defineProperty(exports, "getCoreErrorCause", {
|
|
4094
1845
|
enumerable: true,
|
|
4095
|
-
get: function () { return
|
|
1846
|
+
get: function () { return chunkTJXDMXEE_cjs.getCoreErrorCause; }
|
|
4096
1847
|
});
|
|
4097
1848
|
Object.defineProperty(exports, "getCoreErrorCode", {
|
|
4098
1849
|
enumerable: true,
|
|
4099
|
-
get: function () { return
|
|
1850
|
+
get: function () { return chunkTJXDMXEE_cjs.getCoreErrorCode; }
|
|
4100
1851
|
});
|
|
4101
1852
|
Object.defineProperty(exports, "getCpuTime", {
|
|
4102
1853
|
enumerable: true,
|
|
4103
|
-
get: function () { return
|
|
1854
|
+
get: function () { return chunkTJXDMXEE_cjs.getCpuTime; }
|
|
4104
1855
|
});
|
|
4105
1856
|
Object.defineProperty(exports, "getCurrentTimestamp", {
|
|
4106
1857
|
enumerable: true,
|
|
4107
|
-
get: function () { return
|
|
1858
|
+
get: function () { return chunkTJXDMXEE_cjs.getCurrentTimestamp; }
|
|
4108
1859
|
});
|
|
4109
1860
|
Object.defineProperty(exports, "getMemoryUsage", {
|
|
4110
1861
|
enumerable: true,
|
|
4111
|
-
get: function () { return
|
|
1862
|
+
get: function () { return chunkTJXDMXEE_cjs.getMemoryUsage; }
|
|
4112
1863
|
});
|
|
4113
1864
|
Object.defineProperty(exports, "getNegatable", {
|
|
4114
1865
|
enumerable: true,
|
|
4115
|
-
get: function () { return
|
|
1866
|
+
get: function () { return chunkTJXDMXEE_cjs.getNegatable; }
|
|
4116
1867
|
});
|
|
4117
1868
|
Object.defineProperty(exports, "getOrCreateApiClient", {
|
|
4118
1869
|
enumerable: true,
|
|
4119
|
-
get: function () { return
|
|
1870
|
+
get: function () { return chunkTJXDMXEE_cjs.getOrCreateApiClient; }
|
|
4120
1871
|
});
|
|
4121
1872
|
Object.defineProperty(exports, "getOsInfo", {
|
|
4122
1873
|
enumerable: true,
|
|
4123
|
-
get: function () { return
|
|
1874
|
+
get: function () { return chunkTJXDMXEE_cjs.getOsInfo; }
|
|
4124
1875
|
});
|
|
4125
1876
|
Object.defineProperty(exports, "getPlatformVersions", {
|
|
4126
1877
|
enumerable: true,
|
|
4127
|
-
get: function () { return
|
|
1878
|
+
get: function () { return chunkTJXDMXEE_cjs.getPlatformVersions; }
|
|
4128
1879
|
});
|
|
4129
1880
|
Object.defineProperty(exports, "getPreferredManifestEntryKey", {
|
|
4130
1881
|
enumerable: true,
|
|
4131
|
-
get: function () { return
|
|
1882
|
+
get: function () { return chunkTJXDMXEE_cjs.getPreferredManifestEntryKey; }
|
|
4132
1883
|
});
|
|
4133
1884
|
Object.defineProperty(exports, "getProfilePlugin", {
|
|
4134
1885
|
enumerable: true,
|
|
4135
|
-
get: function () { return
|
|
1886
|
+
get: function () { return chunkTJXDMXEE_cjs.getProfilePlugin; }
|
|
4136
1887
|
});
|
|
4137
1888
|
Object.defineProperty(exports, "getRegistry", {
|
|
4138
1889
|
enumerable: true,
|
|
4139
|
-
get: function () { return
|
|
1890
|
+
get: function () { return chunkTJXDMXEE_cjs.getRegistry; }
|
|
4140
1891
|
});
|
|
4141
1892
|
Object.defineProperty(exports, "getRegistryPlugin", {
|
|
4142
1893
|
enumerable: true,
|
|
4143
|
-
get: function () { return
|
|
1894
|
+
get: function () { return chunkTJXDMXEE_cjs.getRegistryPlugin; }
|
|
4144
1895
|
});
|
|
4145
1896
|
Object.defineProperty(exports, "getReleaseId", {
|
|
4146
1897
|
enumerable: true,
|
|
4147
|
-
get: function () { return
|
|
1898
|
+
get: function () { return chunkTJXDMXEE_cjs.getReleaseId; }
|
|
4148
1899
|
});
|
|
4149
1900
|
Object.defineProperty(exports, "getTablePlugin", {
|
|
4150
1901
|
enumerable: true,
|
|
4151
|
-
get: function () { return
|
|
1902
|
+
get: function () { return chunkTJXDMXEE_cjs.getTablePlugin; }
|
|
4152
1903
|
});
|
|
4153
1904
|
Object.defineProperty(exports, "getTableRecordPlugin", {
|
|
4154
1905
|
enumerable: true,
|
|
4155
|
-
get: function () { return
|
|
1906
|
+
get: function () { return chunkTJXDMXEE_cjs.getTableRecordPlugin; }
|
|
4156
1907
|
});
|
|
4157
1908
|
Object.defineProperty(exports, "getTokenFromCliLogin", {
|
|
4158
1909
|
enumerable: true,
|
|
4159
|
-
get: function () { return
|
|
1910
|
+
get: function () { return chunkTJXDMXEE_cjs.getTokenFromCliLogin; }
|
|
4160
1911
|
});
|
|
4161
1912
|
Object.defineProperty(exports, "getTtyContext", {
|
|
4162
1913
|
enumerable: true,
|
|
4163
|
-
get: function () { return
|
|
1914
|
+
get: function () { return chunkTJXDMXEE_cjs.getTtyContext; }
|
|
4164
1915
|
});
|
|
4165
1916
|
Object.defineProperty(exports, "getZapierApprovalMode", {
|
|
4166
1917
|
enumerable: true,
|
|
4167
|
-
get: function () { return
|
|
1918
|
+
get: function () { return chunkTJXDMXEE_cjs.getZapierApprovalMode; }
|
|
4168
1919
|
});
|
|
4169
1920
|
Object.defineProperty(exports, "getZapierCausationId", {
|
|
4170
1921
|
enumerable: true,
|
|
4171
|
-
get: function () { return
|
|
1922
|
+
get: function () { return chunkTJXDMXEE_cjs.getZapierCausationId; }
|
|
4172
1923
|
});
|
|
4173
1924
|
Object.defineProperty(exports, "getZapierCorrelationId", {
|
|
4174
1925
|
enumerable: true,
|
|
4175
|
-
get: function () { return
|
|
1926
|
+
get: function () { return chunkTJXDMXEE_cjs.getZapierCorrelationId; }
|
|
4176
1927
|
});
|
|
4177
1928
|
Object.defineProperty(exports, "getZapierDefaultApprovalMode", {
|
|
4178
1929
|
enumerable: true,
|
|
4179
|
-
get: function () { return
|
|
1930
|
+
get: function () { return chunkTJXDMXEE_cjs.getZapierDefaultApprovalMode; }
|
|
4180
1931
|
});
|
|
4181
1932
|
Object.defineProperty(exports, "getZapierOpenAutoModeApprovalsInBrowser", {
|
|
4182
1933
|
enumerable: true,
|
|
4183
|
-
get: function () { return
|
|
1934
|
+
get: function () { return chunkTJXDMXEE_cjs.getZapierOpenAutoModeApprovalsInBrowser; }
|
|
4184
1935
|
});
|
|
4185
1936
|
Object.defineProperty(exports, "getZapierSdkService", {
|
|
4186
1937
|
enumerable: true,
|
|
4187
|
-
get: function () { return
|
|
1938
|
+
get: function () { return chunkTJXDMXEE_cjs.getZapierSdkService; }
|
|
4188
1939
|
});
|
|
4189
1940
|
Object.defineProperty(exports, "injectCliLogin", {
|
|
4190
1941
|
enumerable: true,
|
|
4191
|
-
get: function () { return
|
|
1942
|
+
get: function () { return chunkTJXDMXEE_cjs.injectCliLogin; }
|
|
4192
1943
|
});
|
|
4193
1944
|
Object.defineProperty(exports, "inputFieldKeyResolver", {
|
|
4194
1945
|
enumerable: true,
|
|
4195
|
-
get: function () { return
|
|
1946
|
+
get: function () { return chunkTJXDMXEE_cjs.inputFieldKeyResolver; }
|
|
4196
1947
|
});
|
|
4197
1948
|
Object.defineProperty(exports, "inputsAllOptionalResolver", {
|
|
4198
1949
|
enumerable: true,
|
|
4199
|
-
get: function () { return
|
|
1950
|
+
get: function () { return chunkTJXDMXEE_cjs.inputsAllOptionalResolver; }
|
|
4200
1951
|
});
|
|
4201
1952
|
Object.defineProperty(exports, "inputsResolver", {
|
|
4202
1953
|
enumerable: true,
|
|
4203
|
-
get: function () { return
|
|
1954
|
+
get: function () { return chunkTJXDMXEE_cjs.inputsResolver; }
|
|
4204
1955
|
});
|
|
4205
1956
|
Object.defineProperty(exports, "invalidateCachedToken", {
|
|
4206
1957
|
enumerable: true,
|
|
4207
|
-
get: function () { return
|
|
1958
|
+
get: function () { return chunkTJXDMXEE_cjs.invalidateCachedToken; }
|
|
4208
1959
|
});
|
|
4209
1960
|
Object.defineProperty(exports, "invalidateCredentialsToken", {
|
|
4210
1961
|
enumerable: true,
|
|
4211
|
-
get: function () { return
|
|
1962
|
+
get: function () { return chunkTJXDMXEE_cjs.invalidateCredentialsToken; }
|
|
4212
1963
|
});
|
|
4213
1964
|
Object.defineProperty(exports, "isCi", {
|
|
4214
1965
|
enumerable: true,
|
|
4215
|
-
get: function () { return
|
|
1966
|
+
get: function () { return chunkTJXDMXEE_cjs.isCi; }
|
|
4216
1967
|
});
|
|
4217
1968
|
Object.defineProperty(exports, "isCliLoginAvailable", {
|
|
4218
1969
|
enumerable: true,
|
|
4219
|
-
get: function () { return
|
|
1970
|
+
get: function () { return chunkTJXDMXEE_cjs.isCliLoginAvailable; }
|
|
4220
1971
|
});
|
|
4221
1972
|
Object.defineProperty(exports, "isClientCredentials", {
|
|
4222
1973
|
enumerable: true,
|
|
4223
|
-
get: function () { return
|
|
1974
|
+
get: function () { return chunkTJXDMXEE_cjs.isClientCredentials; }
|
|
4224
1975
|
});
|
|
4225
1976
|
Object.defineProperty(exports, "isCoreCancelledSignal", {
|
|
4226
1977
|
enumerable: true,
|
|
4227
|
-
get: function () { return
|
|
1978
|
+
get: function () { return chunkTJXDMXEE_cjs.isCoreCancelledSignal; }
|
|
4228
1979
|
});
|
|
4229
1980
|
Object.defineProperty(exports, "isCoreError", {
|
|
4230
1981
|
enumerable: true,
|
|
4231
|
-
get: function () { return
|
|
1982
|
+
get: function () { return chunkTJXDMXEE_cjs.isCoreError; }
|
|
4232
1983
|
});
|
|
4233
1984
|
Object.defineProperty(exports, "isCoreSignal", {
|
|
4234
1985
|
enumerable: true,
|
|
4235
|
-
get: function () { return
|
|
1986
|
+
get: function () { return chunkTJXDMXEE_cjs.isCoreSignal; }
|
|
4236
1987
|
});
|
|
4237
1988
|
Object.defineProperty(exports, "isCredentialsFunction", {
|
|
4238
1989
|
enumerable: true,
|
|
4239
|
-
get: function () { return
|
|
1990
|
+
get: function () { return chunkTJXDMXEE_cjs.isCredentialsFunction; }
|
|
4240
1991
|
});
|
|
4241
1992
|
Object.defineProperty(exports, "isCredentialsObject", {
|
|
4242
1993
|
enumerable: true,
|
|
4243
|
-
get: function () { return
|
|
1994
|
+
get: function () { return chunkTJXDMXEE_cjs.isCredentialsObject; }
|
|
4244
1995
|
});
|
|
4245
1996
|
Object.defineProperty(exports, "isInternalField", {
|
|
4246
1997
|
enumerable: true,
|
|
4247
|
-
get: function () { return
|
|
1998
|
+
get: function () { return chunkTJXDMXEE_cjs.isInternalField; }
|
|
4248
1999
|
});
|
|
4249
2000
|
Object.defineProperty(exports, "isPermanentHttpError", {
|
|
4250
2001
|
enumerable: true,
|
|
4251
|
-
get: function () { return
|
|
2002
|
+
get: function () { return chunkTJXDMXEE_cjs.isPermanentHttpError; }
|
|
4252
2003
|
});
|
|
4253
2004
|
Object.defineProperty(exports, "isPkceCredentials", {
|
|
4254
2005
|
enumerable: true,
|
|
4255
|
-
get: function () { return
|
|
2006
|
+
get: function () { return chunkTJXDMXEE_cjs.isPkceCredentials; }
|
|
4256
2007
|
});
|
|
4257
2008
|
Object.defineProperty(exports, "isPositional", {
|
|
4258
2009
|
enumerable: true,
|
|
4259
|
-
get: function () { return
|
|
2010
|
+
get: function () { return chunkTJXDMXEE_cjs.isPositional; }
|
|
4260
2011
|
});
|
|
4261
2012
|
Object.defineProperty(exports, "isZapierAbortDrainSignal", {
|
|
4262
2013
|
enumerable: true,
|
|
4263
|
-
get: function () { return
|
|
2014
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierAbortDrainSignal; }
|
|
4264
2015
|
});
|
|
4265
2016
|
Object.defineProperty(exports, "isZapierActionError", {
|
|
4266
2017
|
enumerable: true,
|
|
4267
|
-
get: function () { return
|
|
2018
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierActionError; }
|
|
4268
2019
|
});
|
|
4269
2020
|
Object.defineProperty(exports, "isZapierAppNotFoundError", {
|
|
4270
2021
|
enumerable: true,
|
|
4271
|
-
get: function () { return
|
|
2022
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierAppNotFoundError; }
|
|
4272
2023
|
});
|
|
4273
2024
|
Object.defineProperty(exports, "isZapierApprovalError", {
|
|
4274
2025
|
enumerable: true,
|
|
4275
|
-
get: function () { return
|
|
2026
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierApprovalError; }
|
|
4276
2027
|
});
|
|
4277
2028
|
Object.defineProperty(exports, "isZapierAuthenticationError", {
|
|
4278
2029
|
enumerable: true,
|
|
4279
|
-
get: function () { return
|
|
2030
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierAuthenticationError; }
|
|
4280
2031
|
});
|
|
4281
2032
|
Object.defineProperty(exports, "isZapierBundleError", {
|
|
4282
2033
|
enumerable: true,
|
|
4283
|
-
get: function () { return
|
|
2034
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierBundleError; }
|
|
4284
2035
|
});
|
|
4285
2036
|
Object.defineProperty(exports, "isZapierConflictError", {
|
|
4286
2037
|
enumerable: true,
|
|
4287
|
-
get: function () { return
|
|
2038
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierConflictError; }
|
|
4288
2039
|
});
|
|
4289
2040
|
Object.defineProperty(exports, "isZapierError", {
|
|
4290
2041
|
enumerable: true,
|
|
4291
|
-
get: function () { return
|
|
2042
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierError; }
|
|
4292
2043
|
});
|
|
4293
2044
|
Object.defineProperty(exports, "isZapierNotFoundError", {
|
|
4294
2045
|
enumerable: true,
|
|
4295
|
-
get: function () { return
|
|
2046
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierNotFoundError; }
|
|
4296
2047
|
});
|
|
4297
2048
|
Object.defineProperty(exports, "isZapierRateLimitError", {
|
|
4298
2049
|
enumerable: true,
|
|
4299
|
-
get: function () { return
|
|
2050
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierRateLimitError; }
|
|
4300
2051
|
});
|
|
4301
2052
|
Object.defineProperty(exports, "isZapierReleaseTriggerMessageSignal", {
|
|
4302
2053
|
enumerable: true,
|
|
4303
|
-
get: function () { return
|
|
2054
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierReleaseTriggerMessageSignal; }
|
|
4304
2055
|
});
|
|
4305
2056
|
Object.defineProperty(exports, "isZapierResourceNotFoundError", {
|
|
4306
2057
|
enumerable: true,
|
|
4307
|
-
get: function () { return
|
|
2058
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierResourceNotFoundError; }
|
|
4308
2059
|
});
|
|
4309
2060
|
Object.defineProperty(exports, "isZapierSignal", {
|
|
4310
2061
|
enumerable: true,
|
|
4311
|
-
get: function () { return
|
|
2062
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierSignal; }
|
|
4312
2063
|
});
|
|
4313
2064
|
Object.defineProperty(exports, "isZapierTimeoutError", {
|
|
4314
2065
|
enumerable: true,
|
|
4315
|
-
get: function () { return
|
|
2066
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierTimeoutError; }
|
|
4316
2067
|
});
|
|
4317
2068
|
Object.defineProperty(exports, "isZapierValidationError", {
|
|
4318
2069
|
enumerable: true,
|
|
4319
|
-
get: function () { return
|
|
2070
|
+
get: function () { return chunkTJXDMXEE_cjs.isZapierValidationError; }
|
|
4320
2071
|
});
|
|
4321
2072
|
Object.defineProperty(exports, "listActionInputFieldChoicesPlugin", {
|
|
4322
2073
|
enumerable: true,
|
|
4323
|
-
get: function () { return
|
|
2074
|
+
get: function () { return chunkTJXDMXEE_cjs.listActionInputFieldChoicesPlugin; }
|
|
4324
2075
|
});
|
|
4325
2076
|
Object.defineProperty(exports, "listActionInputFieldsPlugin", {
|
|
4326
2077
|
enumerable: true,
|
|
4327
|
-
get: function () { return
|
|
2078
|
+
get: function () { return chunkTJXDMXEE_cjs.listActionInputFieldsPlugin; }
|
|
4328
2079
|
});
|
|
4329
2080
|
Object.defineProperty(exports, "listActionsPlugin", {
|
|
4330
2081
|
enumerable: true,
|
|
4331
|
-
get: function () { return
|
|
2082
|
+
get: function () { return chunkTJXDMXEE_cjs.listActionsPlugin; }
|
|
4332
2083
|
});
|
|
4333
2084
|
Object.defineProperty(exports, "listAppsPlugin", {
|
|
4334
2085
|
enumerable: true,
|
|
4335
|
-
get: function () { return
|
|
2086
|
+
get: function () { return chunkTJXDMXEE_cjs.listAppsPlugin; }
|
|
4336
2087
|
});
|
|
4337
2088
|
Object.defineProperty(exports, "listClientCredentialsPlugin", {
|
|
4338
2089
|
enumerable: true,
|
|
4339
|
-
get: function () { return
|
|
2090
|
+
get: function () { return chunkTJXDMXEE_cjs.listClientCredentialsPlugin; }
|
|
4340
2091
|
});
|
|
4341
2092
|
Object.defineProperty(exports, "listConnectionsPlugin", {
|
|
4342
2093
|
enumerable: true,
|
|
4343
|
-
get: function () { return
|
|
2094
|
+
get: function () { return chunkTJXDMXEE_cjs.listConnectionsPlugin; }
|
|
4344
2095
|
});
|
|
4345
2096
|
Object.defineProperty(exports, "listTableFieldsPlugin", {
|
|
4346
2097
|
enumerable: true,
|
|
4347
|
-
get: function () { return
|
|
2098
|
+
get: function () { return chunkTJXDMXEE_cjs.listTableFieldsPlugin; }
|
|
4348
2099
|
});
|
|
4349
2100
|
Object.defineProperty(exports, "listTableRecordsPlugin", {
|
|
4350
2101
|
enumerable: true,
|
|
4351
|
-
get: function () { return
|
|
2102
|
+
get: function () { return chunkTJXDMXEE_cjs.listTableRecordsPlugin; }
|
|
4352
2103
|
});
|
|
4353
2104
|
Object.defineProperty(exports, "listTablesPlugin", {
|
|
4354
2105
|
enumerable: true,
|
|
4355
|
-
get: function () { return
|
|
2106
|
+
get: function () { return chunkTJXDMXEE_cjs.listTablesPlugin; }
|
|
4356
2107
|
});
|
|
4357
2108
|
Object.defineProperty(exports, "logDeprecation", {
|
|
4358
2109
|
enumerable: true,
|
|
4359
|
-
get: function () { return
|
|
2110
|
+
get: function () { return chunkTJXDMXEE_cjs.logDeprecation; }
|
|
4360
2111
|
});
|
|
4361
2112
|
Object.defineProperty(exports, "manifestPlugin", {
|
|
4362
2113
|
enumerable: true,
|
|
4363
|
-
get: function () { return
|
|
2114
|
+
get: function () { return chunkTJXDMXEE_cjs.manifestPlugin; }
|
|
4364
2115
|
});
|
|
4365
2116
|
Object.defineProperty(exports, "manifestPluginRef", {
|
|
4366
2117
|
enumerable: true,
|
|
4367
|
-
get: function () { return
|
|
2118
|
+
get: function () { return chunkTJXDMXEE_cjs.manifestPluginRef; }
|
|
4368
2119
|
});
|
|
4369
2120
|
Object.defineProperty(exports, "omitExports", {
|
|
4370
2121
|
enumerable: true,
|
|
4371
|
-
get: function () { return
|
|
2122
|
+
get: function () { return chunkTJXDMXEE_cjs.omitExports; }
|
|
4372
2123
|
});
|
|
4373
2124
|
Object.defineProperty(exports, "operationAnnotatorPlugin", {
|
|
4374
2125
|
enumerable: true,
|
|
4375
|
-
get: function () { return
|
|
2126
|
+
get: function () { return chunkTJXDMXEE_cjs.operationAnnotatorPlugin; }
|
|
4376
2127
|
});
|
|
4377
2128
|
Object.defineProperty(exports, "parseConcurrencyEnvVar", {
|
|
4378
2129
|
enumerable: true,
|
|
4379
|
-
get: function () { return
|
|
2130
|
+
get: function () { return chunkTJXDMXEE_cjs.parseConcurrencyEnvVar; }
|
|
4380
2131
|
});
|
|
4381
2132
|
Object.defineProperty(exports, "readManifestFromFile", {
|
|
4382
2133
|
enumerable: true,
|
|
4383
|
-
get: function () { return
|
|
2134
|
+
get: function () { return chunkTJXDMXEE_cjs.readManifestFromFile; }
|
|
4384
2135
|
});
|
|
4385
2136
|
Object.defineProperty(exports, "requestPlugin", {
|
|
4386
2137
|
enumerable: true,
|
|
4387
|
-
get: function () { return
|
|
2138
|
+
get: function () { return chunkTJXDMXEE_cjs.requestPlugin; }
|
|
4388
2139
|
});
|
|
4389
2140
|
Object.defineProperty(exports, "resetDeprecationWarnings", {
|
|
4390
2141
|
enumerable: true,
|
|
4391
|
-
get: function () { return
|
|
2142
|
+
get: function () { return chunkTJXDMXEE_cjs.resetDeprecationWarnings; }
|
|
4392
2143
|
});
|
|
4393
2144
|
Object.defineProperty(exports, "resolveAuth", {
|
|
4394
2145
|
enumerable: true,
|
|
4395
|
-
get: function () { return
|
|
2146
|
+
get: function () { return chunkTJXDMXEE_cjs.resolveAuth; }
|
|
4396
2147
|
});
|
|
4397
2148
|
Object.defineProperty(exports, "resolveAuthToken", {
|
|
4398
2149
|
enumerable: true,
|
|
4399
|
-
get: function () { return
|
|
2150
|
+
get: function () { return chunkTJXDMXEE_cjs.resolveAuthToken; }
|
|
4400
2151
|
});
|
|
4401
2152
|
Object.defineProperty(exports, "resolveCredentials", {
|
|
4402
2153
|
enumerable: true,
|
|
4403
|
-
get: function () { return
|
|
2154
|
+
get: function () { return chunkTJXDMXEE_cjs.resolveCredentials; }
|
|
4404
2155
|
});
|
|
4405
2156
|
Object.defineProperty(exports, "resolveCredentialsFromEnv", {
|
|
4406
2157
|
enumerable: true,
|
|
4407
|
-
get: function () { return
|
|
2158
|
+
get: function () { return chunkTJXDMXEE_cjs.resolveCredentialsFromEnv; }
|
|
4408
2159
|
});
|
|
4409
2160
|
Object.defineProperty(exports, "resolveCredentialsPlugin", {
|
|
4410
2161
|
enumerable: true,
|
|
4411
|
-
get: function () { return
|
|
2162
|
+
get: function () { return chunkTJXDMXEE_cjs.resolveCredentialsPlugin; }
|
|
4412
2163
|
});
|
|
4413
2164
|
Object.defineProperty(exports, "resolveCredentialsPluginRef", {
|
|
4414
2165
|
enumerable: true,
|
|
4415
|
-
get: function () { return
|
|
2166
|
+
get: function () { return chunkTJXDMXEE_cjs.resolveCredentialsPluginRef; }
|
|
4416
2167
|
});
|
|
4417
2168
|
Object.defineProperty(exports, "resolvePlugin", {
|
|
4418
2169
|
enumerable: true,
|
|
4419
|
-
get: function () { return
|
|
2170
|
+
get: function () { return chunkTJXDMXEE_cjs.resolvePlugin; }
|
|
4420
2171
|
});
|
|
4421
2172
|
Object.defineProperty(exports, "runActionPlugin", {
|
|
4422
2173
|
enumerable: true,
|
|
4423
|
-
get: function () { return
|
|
2174
|
+
get: function () { return chunkTJXDMXEE_cjs.runActionPlugin; }
|
|
4424
2175
|
});
|
|
4425
2176
|
Object.defineProperty(exports, "runInMethodScope", {
|
|
4426
2177
|
enumerable: true,
|
|
4427
|
-
get: function () { return
|
|
2178
|
+
get: function () { return chunkTJXDMXEE_cjs.runInMethodScope; }
|
|
4428
2179
|
});
|
|
4429
2180
|
Object.defineProperty(exports, "runWithCallerContext", {
|
|
4430
2181
|
enumerable: true,
|
|
4431
|
-
get: function () { return
|
|
2182
|
+
get: function () { return chunkTJXDMXEE_cjs.runWithCallerContext; }
|
|
4432
2183
|
});
|
|
4433
2184
|
Object.defineProperty(exports, "runWithTelemetryContext", {
|
|
4434
2185
|
enumerable: true,
|
|
4435
|
-
get: function () { return
|
|
2186
|
+
get: function () { return chunkTJXDMXEE_cjs.runWithTelemetryContext; }
|
|
4436
2187
|
});
|
|
4437
2188
|
Object.defineProperty(exports, "sdkOptionsPluginRef", {
|
|
4438
2189
|
enumerable: true,
|
|
4439
|
-
get: function () { return
|
|
2190
|
+
get: function () { return chunkTJXDMXEE_cjs.sdkOptionsPluginRef; }
|
|
4440
2191
|
});
|
|
4441
2192
|
Object.defineProperty(exports, "selectExports", {
|
|
4442
2193
|
enumerable: true,
|
|
4443
|
-
get: function () { return
|
|
2194
|
+
get: function () { return chunkTJXDMXEE_cjs.selectExports; }
|
|
4444
2195
|
});
|
|
4445
2196
|
Object.defineProperty(exports, "tableFieldIdsResolver", {
|
|
4446
2197
|
enumerable: true,
|
|
4447
|
-
get: function () { return
|
|
2198
|
+
get: function () { return chunkTJXDMXEE_cjs.tableFieldIdsResolver; }
|
|
4448
2199
|
});
|
|
4449
2200
|
Object.defineProperty(exports, "tableFieldsResolver", {
|
|
4450
2201
|
enumerable: true,
|
|
4451
|
-
get: function () { return
|
|
2202
|
+
get: function () { return chunkTJXDMXEE_cjs.tableFieldsResolver; }
|
|
4452
2203
|
});
|
|
4453
2204
|
Object.defineProperty(exports, "tableFiltersResolver", {
|
|
4454
2205
|
enumerable: true,
|
|
4455
|
-
get: function () { return
|
|
2206
|
+
get: function () { return chunkTJXDMXEE_cjs.tableFiltersResolver; }
|
|
4456
2207
|
});
|
|
4457
2208
|
Object.defineProperty(exports, "tableIdResolver", {
|
|
4458
2209
|
enumerable: true,
|
|
4459
|
-
get: function () { return
|
|
2210
|
+
get: function () { return chunkTJXDMXEE_cjs.tableIdResolver; }
|
|
4460
2211
|
});
|
|
4461
2212
|
Object.defineProperty(exports, "tableNameResolver", {
|
|
4462
2213
|
enumerable: true,
|
|
4463
|
-
get: function () { return
|
|
2214
|
+
get: function () { return chunkTJXDMXEE_cjs.tableNameResolver; }
|
|
4464
2215
|
});
|
|
4465
2216
|
Object.defineProperty(exports, "tableRecordIdResolver", {
|
|
4466
2217
|
enumerable: true,
|
|
4467
|
-
get: function () { return
|
|
2218
|
+
get: function () { return chunkTJXDMXEE_cjs.tableRecordIdResolver; }
|
|
4468
2219
|
});
|
|
4469
2220
|
Object.defineProperty(exports, "tableRecordIdsResolver", {
|
|
4470
2221
|
enumerable: true,
|
|
4471
|
-
get: function () { return
|
|
2222
|
+
get: function () { return chunkTJXDMXEE_cjs.tableRecordIdsResolver; }
|
|
4472
2223
|
});
|
|
4473
2224
|
Object.defineProperty(exports, "tableRecordsResolver", {
|
|
4474
2225
|
enumerable: true,
|
|
4475
|
-
get: function () { return
|
|
2226
|
+
get: function () { return chunkTJXDMXEE_cjs.tableRecordsResolver; }
|
|
4476
2227
|
});
|
|
4477
2228
|
Object.defineProperty(exports, "tableSortResolver", {
|
|
4478
2229
|
enumerable: true,
|
|
4479
|
-
get: function () { return
|
|
2230
|
+
get: function () { return chunkTJXDMXEE_cjs.tableSortResolver; }
|
|
4480
2231
|
});
|
|
4481
2232
|
Object.defineProperty(exports, "tableUpdateRecordsResolver", {
|
|
4482
2233
|
enumerable: true,
|
|
4483
|
-
get: function () { return
|
|
2234
|
+
get: function () { return chunkTJXDMXEE_cjs.tableUpdateRecordsResolver; }
|
|
4484
2235
|
});
|
|
4485
2236
|
Object.defineProperty(exports, "taxonomy", {
|
|
4486
2237
|
enumerable: true,
|
|
4487
|
-
get: function () { return
|
|
2238
|
+
get: function () { return chunkTJXDMXEE_cjs.taxonomy; }
|
|
4488
2239
|
});
|
|
4489
2240
|
Object.defineProperty(exports, "toSnakeCase", {
|
|
4490
2241
|
enumerable: true,
|
|
4491
|
-
get: function () { return
|
|
2242
|
+
get: function () { return chunkTJXDMXEE_cjs.toSnakeCase; }
|
|
4492
2243
|
});
|
|
4493
2244
|
Object.defineProperty(exports, "toTitleCase", {
|
|
4494
2245
|
enumerable: true,
|
|
4495
|
-
get: function () { return
|
|
2246
|
+
get: function () { return chunkTJXDMXEE_cjs.toTitleCase; }
|
|
4496
2247
|
});
|
|
4497
2248
|
Object.defineProperty(exports, "triggerInboxResolver", {
|
|
4498
2249
|
enumerable: true,
|
|
4499
|
-
get: function () { return
|
|
2250
|
+
get: function () { return chunkTJXDMXEE_cjs.triggerInboxResolver; }
|
|
4500
2251
|
});
|
|
4501
2252
|
Object.defineProperty(exports, "triggerMessagesResolver", {
|
|
4502
2253
|
enumerable: true,
|
|
4503
|
-
get: function () { return
|
|
2254
|
+
get: function () { return chunkTJXDMXEE_cjs.triggerMessagesResolver; }
|
|
4504
2255
|
});
|
|
4505
2256
|
Object.defineProperty(exports, "updateTableRecordsPlugin", {
|
|
4506
2257
|
enumerable: true,
|
|
4507
|
-
get: function () { return
|
|
2258
|
+
get: function () { return chunkTJXDMXEE_cjs.updateTableRecordsPlugin; }
|
|
4508
2259
|
});
|
|
4509
2260
|
Object.defineProperty(exports, "workflowDraftIdResolver", {
|
|
4510
2261
|
enumerable: true,
|
|
4511
|
-
get: function () { return
|
|
2262
|
+
get: function () { return chunkTJXDMXEE_cjs.workflowDraftIdResolver; }
|
|
4512
2263
|
});
|
|
4513
2264
|
Object.defineProperty(exports, "workflowDraftRevisionResolver", {
|
|
4514
2265
|
enumerable: true,
|
|
4515
|
-
get: function () { return
|
|
2266
|
+
get: function () { return chunkTJXDMXEE_cjs.workflowDraftRevisionResolver; }
|
|
4516
2267
|
});
|
|
4517
2268
|
Object.defineProperty(exports, "workflowIdResolver", {
|
|
4518
2269
|
enumerable: true,
|
|
4519
|
-
get: function () { return
|
|
2270
|
+
get: function () { return chunkTJXDMXEE_cjs.workflowIdResolver; }
|
|
4520
2271
|
});
|
|
4521
2272
|
Object.defineProperty(exports, "workflowRunIdResolver", {
|
|
4522
2273
|
enumerable: true,
|
|
4523
|
-
get: function () { return
|
|
2274
|
+
get: function () { return chunkTJXDMXEE_cjs.workflowRunIdResolver; }
|
|
4524
2275
|
});
|
|
4525
2276
|
Object.defineProperty(exports, "workflowVersionIdResolver", {
|
|
4526
2277
|
enumerable: true,
|
|
4527
|
-
get: function () { return
|
|
2278
|
+
get: function () { return chunkTJXDMXEE_cjs.workflowVersionIdResolver; }
|
|
4528
2279
|
});
|
|
4529
2280
|
Object.defineProperty(exports, "zapierAdaptError", {
|
|
4530
2281
|
enumerable: true,
|
|
4531
|
-
get: function () { return
|
|
2282
|
+
get: function () { return chunkTJXDMXEE_cjs.zapierAdaptError; }
|
|
4532
2283
|
});
|
|
4533
2284
|
Object.defineProperty(exports, "zapierCoreOptions", {
|
|
4534
2285
|
enumerable: true,
|
|
4535
|
-
get: function () { return
|
|
2286
|
+
get: function () { return chunkTJXDMXEE_cjs.zapierCoreOptions; }
|
|
4536
2287
|
});
|
|
4537
2288
|
Object.defineProperty(exports, "zapierSdkPlugin", {
|
|
4538
2289
|
enumerable: true,
|
|
4539
|
-
get: function () { return
|
|
2290
|
+
get: function () { return chunkTJXDMXEE_cjs.zapierSdkPlugin; }
|
|
4540
2291
|
});
|
|
4541
|
-
exports.CreateWorkflowOptionsSchema = CreateWorkflowOptionsSchema;
|
|
4542
|
-
exports.CreateWorkflowResponseSchema = CreateWorkflowResponseSchema;
|
|
4543
|
-
exports.ImportWorkflowOptionsSchema = ImportWorkflowOptionsSchema;
|
|
4544
|
-
exports.ImportWorkflowResponseSchema = ImportWorkflowResponseSchema;
|
|
4545
2292
|
exports.createZapierSdk = createZapierSdk;
|
|
4546
2293
|
exports.zapierExperimentalSdkPlugin = zapierExperimentalSdkPlugin;
|