@zapier/zapier-sdk 0.89.0 → 0.90.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 +11 -0
- package/README.md +145 -0
- package/dist/{chunk-NOPKQ333.mjs → chunk-J7Z7UHXP.mjs} +2 -2
- package/dist/{chunk-UBI5FOL5.cjs → chunk-LQEV6ICY.cjs} +2 -1
- package/dist/experimental.cjs +587 -414
- package/dist/experimental.d.mts +256 -1
- package/dist/experimental.d.ts +256 -1
- package/dist/experimental.mjs +238 -65
- package/dist/index.cjs +272 -272
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/experimental.d.mts
CHANGED
|
@@ -3136,6 +3136,135 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3136
3136
|
}> | null;
|
|
3137
3137
|
};
|
|
3138
3138
|
}>, readonly []> & LeafSummary<"", "getWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3139
|
+
} & {
|
|
3140
|
+
createWorkflowDraft: MethodPlugin<"createWorkflowDraft", {
|
|
3141
|
+
workflow: string;
|
|
3142
|
+
slug?: string | undefined;
|
|
3143
|
+
}, Promise<{
|
|
3144
|
+
data: {
|
|
3145
|
+
id: string;
|
|
3146
|
+
workflow_id: string;
|
|
3147
|
+
slug: string;
|
|
3148
|
+
base_version_id: string | null;
|
|
3149
|
+
source_files: Record<string, string>;
|
|
3150
|
+
zapier_durable_version: string;
|
|
3151
|
+
dependencies: Record<string, string> | null;
|
|
3152
|
+
draft_revision: number;
|
|
3153
|
+
status: "open" | "discarded";
|
|
3154
|
+
created_by_user_id: string;
|
|
3155
|
+
last_edited_by_user_id: string | null;
|
|
3156
|
+
last_edited_at: string | null;
|
|
3157
|
+
discarded_at: string | null;
|
|
3158
|
+
created_at: string;
|
|
3159
|
+
updated_at: string;
|
|
3160
|
+
trigger: {
|
|
3161
|
+
selected_api: string;
|
|
3162
|
+
action: string;
|
|
3163
|
+
authentication_id?: string | null | undefined;
|
|
3164
|
+
params?: Record<string, unknown> | undefined;
|
|
3165
|
+
} | null;
|
|
3166
|
+
connections: Record<string, {
|
|
3167
|
+
connection_id: string | number;
|
|
3168
|
+
}> | null;
|
|
3169
|
+
app_versions: Record<string, {
|
|
3170
|
+
implementation_name: string;
|
|
3171
|
+
version?: string | undefined;
|
|
3172
|
+
}> | null;
|
|
3173
|
+
};
|
|
3174
|
+
}>, readonly []> & LeafSummary<"", "createWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3175
|
+
} & {
|
|
3176
|
+
updateWorkflowDraft: MethodPlugin<"updateWorkflowDraft", {
|
|
3177
|
+
workflow: string;
|
|
3178
|
+
draft: string;
|
|
3179
|
+
sourceFiles: Record<string, string>;
|
|
3180
|
+
zapierDurableVersion?: string | undefined;
|
|
3181
|
+
dependencies?: Record<string, string> | undefined;
|
|
3182
|
+
draftRevision?: number | undefined;
|
|
3183
|
+
trigger?: {
|
|
3184
|
+
action: string;
|
|
3185
|
+
selectedApi?: string | undefined;
|
|
3186
|
+
selected_api?: string | undefined;
|
|
3187
|
+
authenticationId?: string | null | undefined;
|
|
3188
|
+
authentication_id?: string | null | undefined;
|
|
3189
|
+
params?: Record<string, unknown> | undefined;
|
|
3190
|
+
} | null | undefined;
|
|
3191
|
+
connections?: Record<string, {
|
|
3192
|
+
connectionId?: string | number | undefined;
|
|
3193
|
+
connection_id?: string | number | undefined;
|
|
3194
|
+
}> | null | undefined;
|
|
3195
|
+
appVersions?: Record<string, {
|
|
3196
|
+
implementationName?: string | undefined;
|
|
3197
|
+
implementation_name?: string | undefined;
|
|
3198
|
+
version?: string | undefined;
|
|
3199
|
+
}> | null | undefined;
|
|
3200
|
+
}, Promise<{
|
|
3201
|
+
data: {
|
|
3202
|
+
id: string;
|
|
3203
|
+
workflow_id: string;
|
|
3204
|
+
slug: string;
|
|
3205
|
+
base_version_id: string | null;
|
|
3206
|
+
source_files: Record<string, string>;
|
|
3207
|
+
zapier_durable_version: string;
|
|
3208
|
+
dependencies: Record<string, string> | null;
|
|
3209
|
+
draft_revision: number;
|
|
3210
|
+
status: "open" | "discarded";
|
|
3211
|
+
created_by_user_id: string;
|
|
3212
|
+
last_edited_by_user_id: string | null;
|
|
3213
|
+
last_edited_at: string | null;
|
|
3214
|
+
discarded_at: string | null;
|
|
3215
|
+
created_at: string;
|
|
3216
|
+
updated_at: string;
|
|
3217
|
+
trigger: {
|
|
3218
|
+
selected_api: string;
|
|
3219
|
+
action: string;
|
|
3220
|
+
authentication_id?: string | null | undefined;
|
|
3221
|
+
params?: Record<string, unknown> | undefined;
|
|
3222
|
+
} | null;
|
|
3223
|
+
connections: Record<string, {
|
|
3224
|
+
connection_id: string | number;
|
|
3225
|
+
}> | null;
|
|
3226
|
+
app_versions: Record<string, {
|
|
3227
|
+
implementation_name: string;
|
|
3228
|
+
version?: string | undefined;
|
|
3229
|
+
}> | null;
|
|
3230
|
+
};
|
|
3231
|
+
}>, readonly []> & LeafSummary<"", "updateWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3232
|
+
} & {
|
|
3233
|
+
discardWorkflowDraft: MethodPlugin<"discardWorkflowDraft", {
|
|
3234
|
+
workflow: string;
|
|
3235
|
+
draft: string;
|
|
3236
|
+
}, Promise<{
|
|
3237
|
+
data: {
|
|
3238
|
+
id: string;
|
|
3239
|
+
workflow_id: string;
|
|
3240
|
+
slug: string;
|
|
3241
|
+
base_version_id: string | null;
|
|
3242
|
+
source_files: Record<string, string>;
|
|
3243
|
+
zapier_durable_version: string;
|
|
3244
|
+
dependencies: Record<string, string> | null;
|
|
3245
|
+
draft_revision: number;
|
|
3246
|
+
status: "open" | "discarded";
|
|
3247
|
+
created_by_user_id: string;
|
|
3248
|
+
last_edited_by_user_id: string | null;
|
|
3249
|
+
last_edited_at: string | null;
|
|
3250
|
+
discarded_at: string | null;
|
|
3251
|
+
created_at: string;
|
|
3252
|
+
updated_at: string;
|
|
3253
|
+
trigger: {
|
|
3254
|
+
selected_api: string;
|
|
3255
|
+
action: string;
|
|
3256
|
+
authentication_id?: string | null | undefined;
|
|
3257
|
+
params?: Record<string, unknown> | undefined;
|
|
3258
|
+
} | null;
|
|
3259
|
+
connections: Record<string, {
|
|
3260
|
+
connection_id: string | number;
|
|
3261
|
+
}> | null;
|
|
3262
|
+
app_versions: Record<string, {
|
|
3263
|
+
implementation_name: string;
|
|
3264
|
+
version?: string | undefined;
|
|
3265
|
+
}> | null;
|
|
3266
|
+
};
|
|
3267
|
+
}>, readonly []> & LeafSummary<"", "discardWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3139
3268
|
} & {
|
|
3140
3269
|
listWorkflowRuns: MethodPlugin<"listWorkflowRuns", {
|
|
3141
3270
|
workflow: string;
|
|
@@ -3358,7 +3487,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3358
3487
|
updated_at: string;
|
|
3359
3488
|
};
|
|
3360
3489
|
}>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3361
|
-
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3490
|
+
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3362
3491
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3363
3492
|
getRegistry: (input?: {
|
|
3364
3493
|
package?: string | undefined;
|
|
@@ -5136,6 +5265,132 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
5136
5265
|
}> | null;
|
|
5137
5266
|
};
|
|
5138
5267
|
}>;
|
|
5268
|
+
createWorkflowDraft: (input: {
|
|
5269
|
+
workflow: string;
|
|
5270
|
+
slug?: string | undefined;
|
|
5271
|
+
}) => Promise<{
|
|
5272
|
+
data: {
|
|
5273
|
+
id: string;
|
|
5274
|
+
workflow_id: string;
|
|
5275
|
+
slug: string;
|
|
5276
|
+
base_version_id: string | null;
|
|
5277
|
+
source_files: Record<string, string>;
|
|
5278
|
+
zapier_durable_version: string;
|
|
5279
|
+
dependencies: Record<string, string> | null;
|
|
5280
|
+
draft_revision: number;
|
|
5281
|
+
status: "open" | "discarded";
|
|
5282
|
+
created_by_user_id: string;
|
|
5283
|
+
last_edited_by_user_id: string | null;
|
|
5284
|
+
last_edited_at: string | null;
|
|
5285
|
+
discarded_at: string | null;
|
|
5286
|
+
created_at: string;
|
|
5287
|
+
updated_at: string;
|
|
5288
|
+
trigger: {
|
|
5289
|
+
selected_api: string;
|
|
5290
|
+
action: string;
|
|
5291
|
+
authentication_id?: string | null | undefined;
|
|
5292
|
+
params?: Record<string, unknown> | undefined;
|
|
5293
|
+
} | null;
|
|
5294
|
+
connections: Record<string, {
|
|
5295
|
+
connection_id: string | number;
|
|
5296
|
+
}> | null;
|
|
5297
|
+
app_versions: Record<string, {
|
|
5298
|
+
implementation_name: string;
|
|
5299
|
+
version?: string | undefined;
|
|
5300
|
+
}> | null;
|
|
5301
|
+
};
|
|
5302
|
+
}>;
|
|
5303
|
+
updateWorkflowDraft: (input: {
|
|
5304
|
+
workflow: string;
|
|
5305
|
+
draft: string;
|
|
5306
|
+
sourceFiles: Record<string, string>;
|
|
5307
|
+
zapierDurableVersion?: string | undefined;
|
|
5308
|
+
dependencies?: Record<string, string> | undefined;
|
|
5309
|
+
draftRevision?: number | undefined;
|
|
5310
|
+
trigger?: {
|
|
5311
|
+
action: string;
|
|
5312
|
+
selectedApi?: string | undefined;
|
|
5313
|
+
selected_api?: string | undefined;
|
|
5314
|
+
authenticationId?: string | null | undefined;
|
|
5315
|
+
authentication_id?: string | null | undefined;
|
|
5316
|
+
params?: Record<string, unknown> | undefined;
|
|
5317
|
+
} | null | undefined;
|
|
5318
|
+
connections?: Record<string, {
|
|
5319
|
+
connectionId?: string | number | undefined;
|
|
5320
|
+
connection_id?: string | number | undefined;
|
|
5321
|
+
}> | null | undefined;
|
|
5322
|
+
appVersions?: Record<string, {
|
|
5323
|
+
implementationName?: string | undefined;
|
|
5324
|
+
implementation_name?: string | undefined;
|
|
5325
|
+
version?: string | undefined;
|
|
5326
|
+
}> | null | undefined;
|
|
5327
|
+
}) => Promise<{
|
|
5328
|
+
data: {
|
|
5329
|
+
id: string;
|
|
5330
|
+
workflow_id: string;
|
|
5331
|
+
slug: string;
|
|
5332
|
+
base_version_id: string | null;
|
|
5333
|
+
source_files: Record<string, string>;
|
|
5334
|
+
zapier_durable_version: string;
|
|
5335
|
+
dependencies: Record<string, string> | null;
|
|
5336
|
+
draft_revision: number;
|
|
5337
|
+
status: "open" | "discarded";
|
|
5338
|
+
created_by_user_id: string;
|
|
5339
|
+
last_edited_by_user_id: string | null;
|
|
5340
|
+
last_edited_at: string | null;
|
|
5341
|
+
discarded_at: string | null;
|
|
5342
|
+
created_at: string;
|
|
5343
|
+
updated_at: string;
|
|
5344
|
+
trigger: {
|
|
5345
|
+
selected_api: string;
|
|
5346
|
+
action: string;
|
|
5347
|
+
authentication_id?: string | null | undefined;
|
|
5348
|
+
params?: Record<string, unknown> | undefined;
|
|
5349
|
+
} | null;
|
|
5350
|
+
connections: Record<string, {
|
|
5351
|
+
connection_id: string | number;
|
|
5352
|
+
}> | null;
|
|
5353
|
+
app_versions: Record<string, {
|
|
5354
|
+
implementation_name: string;
|
|
5355
|
+
version?: string | undefined;
|
|
5356
|
+
}> | null;
|
|
5357
|
+
};
|
|
5358
|
+
}>;
|
|
5359
|
+
discardWorkflowDraft: (input: {
|
|
5360
|
+
workflow: string;
|
|
5361
|
+
draft: string;
|
|
5362
|
+
}) => Promise<{
|
|
5363
|
+
data: {
|
|
5364
|
+
id: string;
|
|
5365
|
+
workflow_id: string;
|
|
5366
|
+
slug: string;
|
|
5367
|
+
base_version_id: string | null;
|
|
5368
|
+
source_files: Record<string, string>;
|
|
5369
|
+
zapier_durable_version: string;
|
|
5370
|
+
dependencies: Record<string, string> | null;
|
|
5371
|
+
draft_revision: number;
|
|
5372
|
+
status: "open" | "discarded";
|
|
5373
|
+
created_by_user_id: string;
|
|
5374
|
+
last_edited_by_user_id: string | null;
|
|
5375
|
+
last_edited_at: string | null;
|
|
5376
|
+
discarded_at: string | null;
|
|
5377
|
+
created_at: string;
|
|
5378
|
+
updated_at: string;
|
|
5379
|
+
trigger: {
|
|
5380
|
+
selected_api: string;
|
|
5381
|
+
action: string;
|
|
5382
|
+
authentication_id?: string | null | undefined;
|
|
5383
|
+
params?: Record<string, unknown> | undefined;
|
|
5384
|
+
} | null;
|
|
5385
|
+
connections: Record<string, {
|
|
5386
|
+
connection_id: string | number;
|
|
5387
|
+
}> | null;
|
|
5388
|
+
app_versions: Record<string, {
|
|
5389
|
+
implementation_name: string;
|
|
5390
|
+
version?: string | undefined;
|
|
5391
|
+
}> | null;
|
|
5392
|
+
};
|
|
5393
|
+
}>;
|
|
5139
5394
|
listWorkflowRuns: (input: {
|
|
5140
5395
|
workflow: string;
|
|
5141
5396
|
pageSize?: number | undefined;
|
package/dist/experimental.d.ts
CHANGED
|
@@ -3136,6 +3136,135 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3136
3136
|
}> | null;
|
|
3137
3137
|
};
|
|
3138
3138
|
}>, readonly []> & LeafSummary<"", "getWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3139
|
+
} & {
|
|
3140
|
+
createWorkflowDraft: MethodPlugin<"createWorkflowDraft", {
|
|
3141
|
+
workflow: string;
|
|
3142
|
+
slug?: string | undefined;
|
|
3143
|
+
}, Promise<{
|
|
3144
|
+
data: {
|
|
3145
|
+
id: string;
|
|
3146
|
+
workflow_id: string;
|
|
3147
|
+
slug: string;
|
|
3148
|
+
base_version_id: string | null;
|
|
3149
|
+
source_files: Record<string, string>;
|
|
3150
|
+
zapier_durable_version: string;
|
|
3151
|
+
dependencies: Record<string, string> | null;
|
|
3152
|
+
draft_revision: number;
|
|
3153
|
+
status: "open" | "discarded";
|
|
3154
|
+
created_by_user_id: string;
|
|
3155
|
+
last_edited_by_user_id: string | null;
|
|
3156
|
+
last_edited_at: string | null;
|
|
3157
|
+
discarded_at: string | null;
|
|
3158
|
+
created_at: string;
|
|
3159
|
+
updated_at: string;
|
|
3160
|
+
trigger: {
|
|
3161
|
+
selected_api: string;
|
|
3162
|
+
action: string;
|
|
3163
|
+
authentication_id?: string | null | undefined;
|
|
3164
|
+
params?: Record<string, unknown> | undefined;
|
|
3165
|
+
} | null;
|
|
3166
|
+
connections: Record<string, {
|
|
3167
|
+
connection_id: string | number;
|
|
3168
|
+
}> | null;
|
|
3169
|
+
app_versions: Record<string, {
|
|
3170
|
+
implementation_name: string;
|
|
3171
|
+
version?: string | undefined;
|
|
3172
|
+
}> | null;
|
|
3173
|
+
};
|
|
3174
|
+
}>, readonly []> & LeafSummary<"", "createWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3175
|
+
} & {
|
|
3176
|
+
updateWorkflowDraft: MethodPlugin<"updateWorkflowDraft", {
|
|
3177
|
+
workflow: string;
|
|
3178
|
+
draft: string;
|
|
3179
|
+
sourceFiles: Record<string, string>;
|
|
3180
|
+
zapierDurableVersion?: string | undefined;
|
|
3181
|
+
dependencies?: Record<string, string> | undefined;
|
|
3182
|
+
draftRevision?: number | undefined;
|
|
3183
|
+
trigger?: {
|
|
3184
|
+
action: string;
|
|
3185
|
+
selectedApi?: string | undefined;
|
|
3186
|
+
selected_api?: string | undefined;
|
|
3187
|
+
authenticationId?: string | null | undefined;
|
|
3188
|
+
authentication_id?: string | null | undefined;
|
|
3189
|
+
params?: Record<string, unknown> | undefined;
|
|
3190
|
+
} | null | undefined;
|
|
3191
|
+
connections?: Record<string, {
|
|
3192
|
+
connectionId?: string | number | undefined;
|
|
3193
|
+
connection_id?: string | number | undefined;
|
|
3194
|
+
}> | null | undefined;
|
|
3195
|
+
appVersions?: Record<string, {
|
|
3196
|
+
implementationName?: string | undefined;
|
|
3197
|
+
implementation_name?: string | undefined;
|
|
3198
|
+
version?: string | undefined;
|
|
3199
|
+
}> | null | undefined;
|
|
3200
|
+
}, Promise<{
|
|
3201
|
+
data: {
|
|
3202
|
+
id: string;
|
|
3203
|
+
workflow_id: string;
|
|
3204
|
+
slug: string;
|
|
3205
|
+
base_version_id: string | null;
|
|
3206
|
+
source_files: Record<string, string>;
|
|
3207
|
+
zapier_durable_version: string;
|
|
3208
|
+
dependencies: Record<string, string> | null;
|
|
3209
|
+
draft_revision: number;
|
|
3210
|
+
status: "open" | "discarded";
|
|
3211
|
+
created_by_user_id: string;
|
|
3212
|
+
last_edited_by_user_id: string | null;
|
|
3213
|
+
last_edited_at: string | null;
|
|
3214
|
+
discarded_at: string | null;
|
|
3215
|
+
created_at: string;
|
|
3216
|
+
updated_at: string;
|
|
3217
|
+
trigger: {
|
|
3218
|
+
selected_api: string;
|
|
3219
|
+
action: string;
|
|
3220
|
+
authentication_id?: string | null | undefined;
|
|
3221
|
+
params?: Record<string, unknown> | undefined;
|
|
3222
|
+
} | null;
|
|
3223
|
+
connections: Record<string, {
|
|
3224
|
+
connection_id: string | number;
|
|
3225
|
+
}> | null;
|
|
3226
|
+
app_versions: Record<string, {
|
|
3227
|
+
implementation_name: string;
|
|
3228
|
+
version?: string | undefined;
|
|
3229
|
+
}> | null;
|
|
3230
|
+
};
|
|
3231
|
+
}>, readonly []> & LeafSummary<"", "updateWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3232
|
+
} & {
|
|
3233
|
+
discardWorkflowDraft: MethodPlugin<"discardWorkflowDraft", {
|
|
3234
|
+
workflow: string;
|
|
3235
|
+
draft: string;
|
|
3236
|
+
}, Promise<{
|
|
3237
|
+
data: {
|
|
3238
|
+
id: string;
|
|
3239
|
+
workflow_id: string;
|
|
3240
|
+
slug: string;
|
|
3241
|
+
base_version_id: string | null;
|
|
3242
|
+
source_files: Record<string, string>;
|
|
3243
|
+
zapier_durable_version: string;
|
|
3244
|
+
dependencies: Record<string, string> | null;
|
|
3245
|
+
draft_revision: number;
|
|
3246
|
+
status: "open" | "discarded";
|
|
3247
|
+
created_by_user_id: string;
|
|
3248
|
+
last_edited_by_user_id: string | null;
|
|
3249
|
+
last_edited_at: string | null;
|
|
3250
|
+
discarded_at: string | null;
|
|
3251
|
+
created_at: string;
|
|
3252
|
+
updated_at: string;
|
|
3253
|
+
trigger: {
|
|
3254
|
+
selected_api: string;
|
|
3255
|
+
action: string;
|
|
3256
|
+
authentication_id?: string | null | undefined;
|
|
3257
|
+
params?: Record<string, unknown> | undefined;
|
|
3258
|
+
} | null;
|
|
3259
|
+
connections: Record<string, {
|
|
3260
|
+
connection_id: string | number;
|
|
3261
|
+
}> | null;
|
|
3262
|
+
app_versions: Record<string, {
|
|
3263
|
+
implementation_name: string;
|
|
3264
|
+
version?: string | undefined;
|
|
3265
|
+
}> | null;
|
|
3266
|
+
};
|
|
3267
|
+
}>, readonly []> & LeafSummary<"", "discardWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3139
3268
|
} & {
|
|
3140
3269
|
listWorkflowRuns: MethodPlugin<"listWorkflowRuns", {
|
|
3141
3270
|
workflow: string;
|
|
@@ -3358,7 +3487,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3358
3487
|
updated_at: string;
|
|
3359
3488
|
};
|
|
3360
3489
|
}>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3361
|
-
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3490
|
+
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3362
3491
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3363
3492
|
getRegistry: (input?: {
|
|
3364
3493
|
package?: string | undefined;
|
|
@@ -5136,6 +5265,132 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
5136
5265
|
}> | null;
|
|
5137
5266
|
};
|
|
5138
5267
|
}>;
|
|
5268
|
+
createWorkflowDraft: (input: {
|
|
5269
|
+
workflow: string;
|
|
5270
|
+
slug?: string | undefined;
|
|
5271
|
+
}) => Promise<{
|
|
5272
|
+
data: {
|
|
5273
|
+
id: string;
|
|
5274
|
+
workflow_id: string;
|
|
5275
|
+
slug: string;
|
|
5276
|
+
base_version_id: string | null;
|
|
5277
|
+
source_files: Record<string, string>;
|
|
5278
|
+
zapier_durable_version: string;
|
|
5279
|
+
dependencies: Record<string, string> | null;
|
|
5280
|
+
draft_revision: number;
|
|
5281
|
+
status: "open" | "discarded";
|
|
5282
|
+
created_by_user_id: string;
|
|
5283
|
+
last_edited_by_user_id: string | null;
|
|
5284
|
+
last_edited_at: string | null;
|
|
5285
|
+
discarded_at: string | null;
|
|
5286
|
+
created_at: string;
|
|
5287
|
+
updated_at: string;
|
|
5288
|
+
trigger: {
|
|
5289
|
+
selected_api: string;
|
|
5290
|
+
action: string;
|
|
5291
|
+
authentication_id?: string | null | undefined;
|
|
5292
|
+
params?: Record<string, unknown> | undefined;
|
|
5293
|
+
} | null;
|
|
5294
|
+
connections: Record<string, {
|
|
5295
|
+
connection_id: string | number;
|
|
5296
|
+
}> | null;
|
|
5297
|
+
app_versions: Record<string, {
|
|
5298
|
+
implementation_name: string;
|
|
5299
|
+
version?: string | undefined;
|
|
5300
|
+
}> | null;
|
|
5301
|
+
};
|
|
5302
|
+
}>;
|
|
5303
|
+
updateWorkflowDraft: (input: {
|
|
5304
|
+
workflow: string;
|
|
5305
|
+
draft: string;
|
|
5306
|
+
sourceFiles: Record<string, string>;
|
|
5307
|
+
zapierDurableVersion?: string | undefined;
|
|
5308
|
+
dependencies?: Record<string, string> | undefined;
|
|
5309
|
+
draftRevision?: number | undefined;
|
|
5310
|
+
trigger?: {
|
|
5311
|
+
action: string;
|
|
5312
|
+
selectedApi?: string | undefined;
|
|
5313
|
+
selected_api?: string | undefined;
|
|
5314
|
+
authenticationId?: string | null | undefined;
|
|
5315
|
+
authentication_id?: string | null | undefined;
|
|
5316
|
+
params?: Record<string, unknown> | undefined;
|
|
5317
|
+
} | null | undefined;
|
|
5318
|
+
connections?: Record<string, {
|
|
5319
|
+
connectionId?: string | number | undefined;
|
|
5320
|
+
connection_id?: string | number | undefined;
|
|
5321
|
+
}> | null | undefined;
|
|
5322
|
+
appVersions?: Record<string, {
|
|
5323
|
+
implementationName?: string | undefined;
|
|
5324
|
+
implementation_name?: string | undefined;
|
|
5325
|
+
version?: string | undefined;
|
|
5326
|
+
}> | null | undefined;
|
|
5327
|
+
}) => Promise<{
|
|
5328
|
+
data: {
|
|
5329
|
+
id: string;
|
|
5330
|
+
workflow_id: string;
|
|
5331
|
+
slug: string;
|
|
5332
|
+
base_version_id: string | null;
|
|
5333
|
+
source_files: Record<string, string>;
|
|
5334
|
+
zapier_durable_version: string;
|
|
5335
|
+
dependencies: Record<string, string> | null;
|
|
5336
|
+
draft_revision: number;
|
|
5337
|
+
status: "open" | "discarded";
|
|
5338
|
+
created_by_user_id: string;
|
|
5339
|
+
last_edited_by_user_id: string | null;
|
|
5340
|
+
last_edited_at: string | null;
|
|
5341
|
+
discarded_at: string | null;
|
|
5342
|
+
created_at: string;
|
|
5343
|
+
updated_at: string;
|
|
5344
|
+
trigger: {
|
|
5345
|
+
selected_api: string;
|
|
5346
|
+
action: string;
|
|
5347
|
+
authentication_id?: string | null | undefined;
|
|
5348
|
+
params?: Record<string, unknown> | undefined;
|
|
5349
|
+
} | null;
|
|
5350
|
+
connections: Record<string, {
|
|
5351
|
+
connection_id: string | number;
|
|
5352
|
+
}> | null;
|
|
5353
|
+
app_versions: Record<string, {
|
|
5354
|
+
implementation_name: string;
|
|
5355
|
+
version?: string | undefined;
|
|
5356
|
+
}> | null;
|
|
5357
|
+
};
|
|
5358
|
+
}>;
|
|
5359
|
+
discardWorkflowDraft: (input: {
|
|
5360
|
+
workflow: string;
|
|
5361
|
+
draft: string;
|
|
5362
|
+
}) => Promise<{
|
|
5363
|
+
data: {
|
|
5364
|
+
id: string;
|
|
5365
|
+
workflow_id: string;
|
|
5366
|
+
slug: string;
|
|
5367
|
+
base_version_id: string | null;
|
|
5368
|
+
source_files: Record<string, string>;
|
|
5369
|
+
zapier_durable_version: string;
|
|
5370
|
+
dependencies: Record<string, string> | null;
|
|
5371
|
+
draft_revision: number;
|
|
5372
|
+
status: "open" | "discarded";
|
|
5373
|
+
created_by_user_id: string;
|
|
5374
|
+
last_edited_by_user_id: string | null;
|
|
5375
|
+
last_edited_at: string | null;
|
|
5376
|
+
discarded_at: string | null;
|
|
5377
|
+
created_at: string;
|
|
5378
|
+
updated_at: string;
|
|
5379
|
+
trigger: {
|
|
5380
|
+
selected_api: string;
|
|
5381
|
+
action: string;
|
|
5382
|
+
authentication_id?: string | null | undefined;
|
|
5383
|
+
params?: Record<string, unknown> | undefined;
|
|
5384
|
+
} | null;
|
|
5385
|
+
connections: Record<string, {
|
|
5386
|
+
connection_id: string | number;
|
|
5387
|
+
}> | null;
|
|
5388
|
+
app_versions: Record<string, {
|
|
5389
|
+
implementation_name: string;
|
|
5390
|
+
version?: string | undefined;
|
|
5391
|
+
}> | null;
|
|
5392
|
+
};
|
|
5393
|
+
}>;
|
|
5139
5394
|
listWorkflowRuns: (input: {
|
|
5140
5395
|
workflow: string;
|
|
5141
5396
|
pageSize?: number | undefined;
|