@zapier/zapier-sdk 0.64.0 → 0.65.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 +6 -0
- package/README.md +129 -0
- package/dist/experimental.cjs +198 -2
- package/dist/experimental.d.mts +76 -2
- package/dist/experimental.d.ts +74 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +6 -0
- package/dist/experimental.mjs +198 -3
- package/dist/{index-Bfvj0KLi.d.mts → index-JhNxS_mq.d.mts} +25 -1
- package/dist/{index-Bfvj0KLi.d.ts → index-JhNxS_mq.d.ts} +25 -1
- package/dist/index.cjs +22 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -2
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts +47 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/index.js +23 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +24 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.js +30 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +49 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.js +25 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.js +43 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +53 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.js +34 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +65 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.js +69 -0
- package/dist/resolvers/index.d.ts +1 -0
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -0
- package/dist/resolvers/workflowRunId.d.ts +6 -0
- package/dist/resolvers/workflowRunId.d.ts.map +1 -0
- package/dist/resolvers/workflowRunId.js +20 -0
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -90,6 +90,9 @@ import { cancelDurableRunPlugin } from "./plugins/codeSubstrate/cancelDurableRun
|
|
|
90
90
|
import { publishWorkflowVersionPlugin } from "./plugins/codeSubstrate/publishWorkflowVersion";
|
|
91
91
|
import { listWorkflowVersionsPlugin } from "./plugins/codeSubstrate/listWorkflowVersions";
|
|
92
92
|
import { getWorkflowVersionPlugin } from "./plugins/codeSubstrate/getWorkflowVersion";
|
|
93
|
+
import { listWorkflowRunsPlugin } from "./plugins/codeSubstrate/listWorkflowRuns";
|
|
94
|
+
import { getWorkflowRunPlugin } from "./plugins/codeSubstrate/getWorkflowRun";
|
|
95
|
+
import { getTriggerRunPlugin } from "./plugins/codeSubstrate/getTriggerRun";
|
|
93
96
|
// Re-export everything from the stable index so callers importing from
|
|
94
97
|
// the experimental subpath get the full API surface (types, helpers,
|
|
95
98
|
// errors) without having to import from two paths.
|
|
@@ -179,6 +182,9 @@ export function createZapierSdk(options = {}) {
|
|
|
179
182
|
.addPlugin(publishWorkflowVersionPlugin)
|
|
180
183
|
.addPlugin(listWorkflowVersionsPlugin)
|
|
181
184
|
.addPlugin(getWorkflowVersionPlugin)
|
|
185
|
+
.addPlugin(listWorkflowRunsPlugin)
|
|
186
|
+
.addPlugin(getWorkflowRunPlugin)
|
|
187
|
+
.addPlugin(getTriggerRunPlugin)
|
|
182
188
|
// Magic apps plugin
|
|
183
189
|
.addPlugin(appsPlugin)
|
|
184
190
|
// Profile
|
package/dist/experimental.mjs
CHANGED
|
@@ -2887,7 +2887,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
|
|
2889
2889
|
// src/sdk-version.ts
|
|
2890
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2890
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.65.0" : void 0) || "unknown";
|
|
2891
2891
|
|
|
2892
2892
|
// src/utils/open-url.ts
|
|
2893
2893
|
var nodePrefix = "node:";
|
|
@@ -4319,6 +4319,26 @@ var workflowVersionIdResolver = {
|
|
|
4319
4319
|
})
|
|
4320
4320
|
};
|
|
4321
4321
|
|
|
4322
|
+
// src/resolvers/workflowRunId.ts
|
|
4323
|
+
var workflowRunIdResolver = {
|
|
4324
|
+
type: "dynamic",
|
|
4325
|
+
depends: ["workflow"],
|
|
4326
|
+
fetch: async (sdk, params) => toIterable(
|
|
4327
|
+
sdk.listWorkflowRuns({
|
|
4328
|
+
workflow: params.workflow
|
|
4329
|
+
})
|
|
4330
|
+
),
|
|
4331
|
+
prompt: (runs) => ({
|
|
4332
|
+
type: "list",
|
|
4333
|
+
name: "run",
|
|
4334
|
+
message: "Select a workflow run:",
|
|
4335
|
+
choices: runs.map((r) => ({
|
|
4336
|
+
name: `${r.id} \u2014 ${r.status}`,
|
|
4337
|
+
value: r.id
|
|
4338
|
+
}))
|
|
4339
|
+
})
|
|
4340
|
+
};
|
|
4341
|
+
|
|
4322
4342
|
// src/resolvers/triggerMessages.ts
|
|
4323
4343
|
var triggerMessagesResolver = {
|
|
4324
4344
|
type: "dynamic",
|
|
@@ -11324,6 +11344,181 @@ var getWorkflowVersionPlugin = definePlugin(
|
|
|
11324
11344
|
}
|
|
11325
11345
|
})
|
|
11326
11346
|
);
|
|
11347
|
+
var WorkflowRunStatusSchema = z.union([
|
|
11348
|
+
z.enum(["initialized", "started", "finished", "failed", "cancelled"]),
|
|
11349
|
+
z.string()
|
|
11350
|
+
]).describe(
|
|
11351
|
+
"Workflow run lifecycle status. `finished` / `failed` / `cancelled` are terminal."
|
|
11352
|
+
);
|
|
11353
|
+
var WorkflowRunListItemSchema = z.object({
|
|
11354
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
11355
|
+
trigger_id: z.string().nullable().describe(
|
|
11356
|
+
"ID of the trigger that fired this run, if any. Null for runs created without a trigger."
|
|
11357
|
+
),
|
|
11358
|
+
durable_run_id: z.string().nullable().describe(
|
|
11359
|
+
"Linked sdkdurableapi run ID. Null until the durable run is created."
|
|
11360
|
+
),
|
|
11361
|
+
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to. Null in rare edge cases."),
|
|
11362
|
+
status: WorkflowRunStatusSchema,
|
|
11363
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
11364
|
+
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
11365
|
+
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
11366
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
11367
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
11368
|
+
});
|
|
11369
|
+
var ListWorkflowRunsOptionsSchema = z.object({
|
|
11370
|
+
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11371
|
+
pageSize: z.number().int().min(1).max(100).optional().describe("Number of runs per page (max 100)"),
|
|
11372
|
+
cursor: z.string().optional().describe("Pagination cursor"),
|
|
11373
|
+
maxItems: z.number().int().min(1).optional().describe("Maximum total runs to return across all pages")
|
|
11374
|
+
}).describe(
|
|
11375
|
+
"List workflow runs (triggered executions) for a specific deployed workflow, newest first"
|
|
11376
|
+
);
|
|
11377
|
+
var ListWorkflowRunsApiResponseSchema = z.object({
|
|
11378
|
+
results: z.array(WorkflowRunListItemSchema),
|
|
11379
|
+
meta: z.object({
|
|
11380
|
+
limit: z.number(),
|
|
11381
|
+
cursor: z.string().nullable().optional(),
|
|
11382
|
+
next_cursor: z.string().nullable().optional()
|
|
11383
|
+
}),
|
|
11384
|
+
links: z.object({
|
|
11385
|
+
next: z.string().nullable().optional()
|
|
11386
|
+
}).optional()
|
|
11387
|
+
});
|
|
11388
|
+
|
|
11389
|
+
// src/plugins/codeSubstrate/listWorkflowRuns/index.ts
|
|
11390
|
+
var listWorkflowRunsPlugin = definePlugin(
|
|
11391
|
+
(sdk) => createPaginatedPluginMethod(sdk, {
|
|
11392
|
+
...codeSubstrateDefaults,
|
|
11393
|
+
name: "listWorkflowRuns",
|
|
11394
|
+
type: "list",
|
|
11395
|
+
itemType: "WorkflowRun",
|
|
11396
|
+
inputSchema: ListWorkflowRunsOptionsSchema,
|
|
11397
|
+
outputSchema: WorkflowRunListItemSchema,
|
|
11398
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
11399
|
+
resolvers: { workflow: workflowIdResolver },
|
|
11400
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11401
|
+
const searchParams = {};
|
|
11402
|
+
if (options.pageSize !== void 0) {
|
|
11403
|
+
searchParams.limit = options.pageSize.toString();
|
|
11404
|
+
}
|
|
11405
|
+
if (options.cursor) {
|
|
11406
|
+
searchParams.cursor = options.cursor;
|
|
11407
|
+
}
|
|
11408
|
+
const raw = await sdk2.context.api.get(
|
|
11409
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/runs`,
|
|
11410
|
+
{
|
|
11411
|
+
searchParams,
|
|
11412
|
+
authRequired: true,
|
|
11413
|
+
resource: { type: "workflow", id: options.workflow }
|
|
11414
|
+
}
|
|
11415
|
+
);
|
|
11416
|
+
const response = ListWorkflowRunsApiResponseSchema.parse(raw);
|
|
11417
|
+
return {
|
|
11418
|
+
data: response.results,
|
|
11419
|
+
nextCursor: response.meta.next_cursor ?? void 0
|
|
11420
|
+
};
|
|
11421
|
+
}
|
|
11422
|
+
})
|
|
11423
|
+
);
|
|
11424
|
+
var GetWorkflowRunOptionsSchema = z.object({
|
|
11425
|
+
// Picker-only field — the API endpoint is /workflows/runs/:id and
|
|
11426
|
+
// does not take a workflow id, but the run-id picker is scoped to a
|
|
11427
|
+
// parent workflow so the user can browse runs without enumerating
|
|
11428
|
+
// every run across every workflow on the account.
|
|
11429
|
+
workflow: z.string().uuid().optional().describe(
|
|
11430
|
+
"Parent workflow ID \u2014 used only to scope the CLI run-id picker; ignored by the API call."
|
|
11431
|
+
),
|
|
11432
|
+
run: z.string().uuid().describe("Workflow run ID")
|
|
11433
|
+
}).describe(
|
|
11434
|
+
"Get the current state of a workflow run (a triggered execution of a deployed workflow)"
|
|
11435
|
+
);
|
|
11436
|
+
var GetWorkflowRunResponseSchema = z.object({
|
|
11437
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
11438
|
+
trigger_id: z.string().nullable().describe("ID of the trigger that fired this run, if any"),
|
|
11439
|
+
durable_run_id: z.string().nullable().describe(
|
|
11440
|
+
"Linked sdkdurableapi run ID. Null until the durable run is created."
|
|
11441
|
+
),
|
|
11442
|
+
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
11443
|
+
status: WorkflowRunStatusSchema,
|
|
11444
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
11445
|
+
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
11446
|
+
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
11447
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
11448
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
11449
|
+
});
|
|
11450
|
+
|
|
11451
|
+
// src/plugins/codeSubstrate/getWorkflowRun/index.ts
|
|
11452
|
+
var getWorkflowRunPlugin = definePlugin(
|
|
11453
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11454
|
+
...codeSubstrateDefaults,
|
|
11455
|
+
name: "getWorkflowRun",
|
|
11456
|
+
type: "item",
|
|
11457
|
+
itemType: "WorkflowRun",
|
|
11458
|
+
inputSchema: GetWorkflowRunOptionsSchema,
|
|
11459
|
+
outputSchema: GetWorkflowRunResponseSchema,
|
|
11460
|
+
resolvers: {
|
|
11461
|
+
workflow: workflowIdResolver,
|
|
11462
|
+
run: workflowRunIdResolver
|
|
11463
|
+
},
|
|
11464
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11465
|
+
const raw = await sdk2.context.api.get(
|
|
11466
|
+
`/durableworkflowzaps/api/v0/workflows/runs/${encodeURIComponent(options.run)}`,
|
|
11467
|
+
{
|
|
11468
|
+
authRequired: true,
|
|
11469
|
+
resource: { type: "workflow-run", id: options.run }
|
|
11470
|
+
}
|
|
11471
|
+
);
|
|
11472
|
+
const data = GetWorkflowRunResponseSchema.parse(raw);
|
|
11473
|
+
return { data };
|
|
11474
|
+
}
|
|
11475
|
+
})
|
|
11476
|
+
);
|
|
11477
|
+
var GetTriggerRunOptionsSchema = z.object({
|
|
11478
|
+
trigger: z.string().uuid().describe("Workflow trigger ID")
|
|
11479
|
+
}).describe(
|
|
11480
|
+
"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."
|
|
11481
|
+
);
|
|
11482
|
+
var GetTriggerRunResponseSchema = z.object({
|
|
11483
|
+
id: z.string().describe("Workflow run ID (UUID)"),
|
|
11484
|
+
durable_run_id: z.string().nullable().describe(
|
|
11485
|
+
"Linked sdkdurableapi run ID. Null until the durable run is created."
|
|
11486
|
+
),
|
|
11487
|
+
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
11488
|
+
status: WorkflowRunStatusSchema,
|
|
11489
|
+
input: z.unknown().describe("Input passed to the run"),
|
|
11490
|
+
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
11491
|
+
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
11492
|
+
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
11493
|
+
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
11494
|
+
});
|
|
11495
|
+
|
|
11496
|
+
// src/plugins/codeSubstrate/getTriggerRun/index.ts
|
|
11497
|
+
var getTriggerRunPlugin = definePlugin(
|
|
11498
|
+
(sdk) => createPluginMethod(sdk, {
|
|
11499
|
+
...codeSubstrateDefaults,
|
|
11500
|
+
name: "getTriggerRun",
|
|
11501
|
+
type: "item",
|
|
11502
|
+
itemType: "WorkflowRun",
|
|
11503
|
+
inputSchema: GetTriggerRunOptionsSchema,
|
|
11504
|
+
outputSchema: GetTriggerRunResponseSchema,
|
|
11505
|
+
// No resolver for `trigger` — users typically have the trigger id
|
|
11506
|
+
// from a recent trigger fire and pass it directly. Authoring a
|
|
11507
|
+
// picker would require listing triggers across all workflows,
|
|
11508
|
+
// which has no clean entry point today.
|
|
11509
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
11510
|
+
const raw = await sdk2.context.api.get(
|
|
11511
|
+
`/durableworkflowzaps/api/v0/workflows/triggers/${encodeURIComponent(options.trigger)}/run`,
|
|
11512
|
+
{
|
|
11513
|
+
authRequired: true,
|
|
11514
|
+
resource: { type: "workflow-trigger", id: options.trigger }
|
|
11515
|
+
}
|
|
11516
|
+
);
|
|
11517
|
+
const data = GetTriggerRunResponseSchema.parse(raw);
|
|
11518
|
+
return { data };
|
|
11519
|
+
}
|
|
11520
|
+
})
|
|
11521
|
+
);
|
|
11327
11522
|
|
|
11328
11523
|
// src/utils/batch-utils.ts
|
|
11329
11524
|
var DEFAULT_CONCURRENCY = 10;
|
|
@@ -11483,7 +11678,7 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
11483
11678
|
|
|
11484
11679
|
// src/experimental.ts
|
|
11485
11680
|
function createZapierSdk2(options = {}) {
|
|
11486
|
-
return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(createWorkflowPlugin).addPlugin(updateWorkflowPlugin).addPlugin(enableWorkflowPlugin).addPlugin(disableWorkflowPlugin).addPlugin(deleteWorkflowPlugin).addPlugin(listDurableRunsPlugin).addPlugin(getDurableRunPlugin).addPlugin(runDurablePlugin).addPlugin(cancelDurableRunPlugin).addPlugin(publishWorkflowVersionPlugin).addPlugin(listWorkflowVersionsPlugin).addPlugin(getWorkflowVersionPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
|
|
11681
|
+
return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(listWorkflowsPlugin).addPlugin(getWorkflowPlugin).addPlugin(createWorkflowPlugin).addPlugin(updateWorkflowPlugin).addPlugin(enableWorkflowPlugin).addPlugin(disableWorkflowPlugin).addPlugin(deleteWorkflowPlugin).addPlugin(listDurableRunsPlugin).addPlugin(getDurableRunPlugin).addPlugin(runDurablePlugin).addPlugin(cancelDurableRunPlugin).addPlugin(publishWorkflowVersionPlugin).addPlugin(listWorkflowVersionsPlugin).addPlugin(getWorkflowVersionPlugin).addPlugin(listWorkflowRunsPlugin).addPlugin(getWorkflowRunPlugin).addPlugin(getTriggerRunPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
|
|
11487
11682
|
}
|
|
11488
11683
|
|
|
11489
|
-
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowVersionIdResolver };
|
|
11684
|
+
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk2 as createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver };
|
|
@@ -8634,6 +8634,30 @@ declare const workflowVersionIdResolver: DynamicResolver<WorkflowVersionListItem
|
|
|
8634
8634
|
workflow: string;
|
|
8635
8635
|
}>;
|
|
8636
8636
|
|
|
8637
|
+
declare const WorkflowRunListItemSchema: z.ZodObject<{
|
|
8638
|
+
id: z.ZodString;
|
|
8639
|
+
trigger_id: z.ZodNullable<z.ZodString>;
|
|
8640
|
+
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
8641
|
+
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
8642
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
8643
|
+
initialized: "initialized";
|
|
8644
|
+
started: "started";
|
|
8645
|
+
finished: "finished";
|
|
8646
|
+
failed: "failed";
|
|
8647
|
+
cancelled: "cancelled";
|
|
8648
|
+
}>, z.ZodString]>;
|
|
8649
|
+
input: z.ZodUnknown;
|
|
8650
|
+
output: z.ZodNullable<z.ZodUnknown>;
|
|
8651
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
8652
|
+
created_at: z.ZodString;
|
|
8653
|
+
updated_at: z.ZodString;
|
|
8654
|
+
}, z.core.$strip>;
|
|
8655
|
+
type WorkflowRunListItem = z.infer<typeof WorkflowRunListItemSchema>;
|
|
8656
|
+
|
|
8657
|
+
declare const workflowRunIdResolver: DynamicResolver<WorkflowRunListItem, {
|
|
8658
|
+
workflow: string;
|
|
8659
|
+
}>;
|
|
8660
|
+
|
|
8637
8661
|
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8638
8662
|
inbox: string;
|
|
8639
8663
|
}>;
|
|
@@ -9867,4 +9891,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9867
9891
|
};
|
|
9868
9892
|
}) => {};
|
|
9869
9893
|
|
|
9870
|
-
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableRecordIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, workflowVersionIdResolver as cY, triggerMessagesResolver as cZ, tableRecordIdResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, getZapierDefaultApprovalMode as d$, tableFieldIdsResolver as d0, tableNameResolver as d1, tableFieldsResolver as d2, tableRecordsResolver as d3, tableUpdateRecordsResolver as d4, tableFiltersResolver as d5, tableSortResolver as d6, type ResolveAuthTokenOptions as d7, clearTokenCache as d8, invalidateCachedToken as d9, resolveCredentials as dA, getBaseUrlFromCredentials as dB, getClientIdFromCredentials as dC, ClientCredentialsObjectSchema as dD, PkceCredentialsObjectSchema as dE, CredentialsObjectSchema as dF, ResolvedCredentialsSchema as dG, CredentialsFunctionSchema as dH, type CredentialsFunction as dI, CredentialsSchema as dJ, ConnectionEntrySchema as dK, type ConnectionEntry as dL, ConnectionsMapSchema as dM, type ConnectionsMap as dN, connectionsPlugin as dO, type ConnectionsPluginProvides as dP, ZAPIER_BASE_URL as dQ, getZapierSdkService as dR, MAX_PAGE_LIMIT as dS, DEFAULT_PAGE_SIZE as dT, DEFAULT_ACTION_TIMEOUT_MS as dU, ZAPIER_MAX_NETWORK_RETRIES as dV, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dW, MAX_CONCURRENCY_LIMIT as dX, parseConcurrencyEnvVar as dY, ZAPIER_MAX_CONCURRENT_REQUESTS as dZ, getZapierApprovalMode as d_, injectCliLogin as da, isCliLoginAvailable as db, getTokenFromCliLogin as dc, resolveAuthToken as dd, invalidateCredentialsToken as de, type ZapierCache as df, type ZapierCacheEntry as dg, type ZapierCacheSetOptions as dh, createMemoryCache as di, type SdkEvent as dj, type AuthEvent as dk, type ApiEvent as dl, type LoadingEvent as dm, type EventCallback as dn, type Credentials as dp, type ResolvedCredentials as dq, type CredentialsObject as dr, type ClientCredentialsObject as ds, type PkceCredentialsObject as dt, isClientCredentials as du, isPkceCredentials as dv, isCredentialsObject as dw, isCredentialsFunction as dx, type ResolveCredentialsOptions as dy, resolveCredentialsFromEnv as dz, type PaginatedSdkResult as e, DEFAULT_APPROVAL_TIMEOUT_MS as e0, DEFAULT_MAX_APPROVAL_RETRIES as e1, listTablesPlugin as e2, type ListTablesPluginProvides as e3, getTablePlugin as e4, type GetTablePluginProvides as e5, createTablePlugin as e6, type CreateTablePluginProvides as e7, deleteTablePlugin as e8, type DeleteTablePluginProvides as e9, buildErrorEvent as eA, createBaseEvent as eB, buildMethodCalledEvent as eC, type BaseEvent as eD, type MethodCalledEvent as eE, generateEventId as eF, getCurrentTimestamp as eG, getReleaseId as eH, getOsInfo as eI, getPlatformVersions as eJ, isCi as eK, getCiPlatform as eL, getMemoryUsage as eM, getCpuTime as eN, createZapierSdk as eO, type ZapierSdk as eP, listTableFieldsPlugin as ea, type ListTableFieldsPluginProvides as eb, createTableFieldsPlugin as ec, type CreateTableFieldsPluginProvides as ed, deleteTableFieldsPlugin as ee, type DeleteTableFieldsPluginProvides as ef, getTableRecordPlugin as eg, type GetTableRecordPluginProvides as eh, listTableRecordsPlugin as ei, type ListTableRecordsPluginProvides as ej, createTableRecordsPlugin as ek, type CreateTableRecordsPluginProvides as el, deleteTableRecordsPlugin as em, type DeleteTableRecordsPluginProvides as en, updateTableRecordsPlugin as eo, type UpdateTableRecordsPluginProvides as ep, cleanupEventListeners as eq, type EventEmissionConfig as er, eventEmissionPlugin as es, type EventEmissionProvides as et, type EventContext as eu, type ApplicationLifecycleEventData as ev, type EnhancedErrorEventData as ew, type MethodCalledEventData as ex, buildApplicationLifecycleEvent as ey, buildErrorEventWithContext as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
9894
|
+
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableRecordIdResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, workflowVersionIdResolver as cY, workflowRunIdResolver as cZ, triggerMessagesResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, getZapierApprovalMode as d$, tableRecordIdsResolver as d0, tableFieldIdsResolver as d1, tableNameResolver as d2, tableFieldsResolver as d3, tableRecordsResolver as d4, tableUpdateRecordsResolver as d5, tableFiltersResolver as d6, tableSortResolver as d7, type ResolveAuthTokenOptions as d8, clearTokenCache as d9, resolveCredentialsFromEnv as dA, resolveCredentials as dB, getBaseUrlFromCredentials as dC, getClientIdFromCredentials as dD, ClientCredentialsObjectSchema as dE, PkceCredentialsObjectSchema as dF, CredentialsObjectSchema as dG, ResolvedCredentialsSchema as dH, CredentialsFunctionSchema as dI, type CredentialsFunction as dJ, CredentialsSchema as dK, ConnectionEntrySchema as dL, type ConnectionEntry as dM, ConnectionsMapSchema as dN, type ConnectionsMap as dO, connectionsPlugin as dP, type ConnectionsPluginProvides as dQ, ZAPIER_BASE_URL as dR, getZapierSdkService as dS, MAX_PAGE_LIMIT as dT, DEFAULT_PAGE_SIZE as dU, DEFAULT_ACTION_TIMEOUT_MS as dV, ZAPIER_MAX_NETWORK_RETRIES as dW, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dX, MAX_CONCURRENCY_LIMIT as dY, parseConcurrencyEnvVar as dZ, ZAPIER_MAX_CONCURRENT_REQUESTS as d_, invalidateCachedToken as da, injectCliLogin as db, isCliLoginAvailable as dc, getTokenFromCliLogin as dd, resolveAuthToken as de, invalidateCredentialsToken as df, type ZapierCache as dg, type ZapierCacheEntry as dh, type ZapierCacheSetOptions as di, createMemoryCache as dj, type SdkEvent as dk, type AuthEvent as dl, type ApiEvent as dm, type LoadingEvent as dn, type EventCallback as dp, type Credentials as dq, type ResolvedCredentials as dr, type CredentialsObject as ds, type ClientCredentialsObject as dt, type PkceCredentialsObject as du, isClientCredentials as dv, isPkceCredentials as dw, isCredentialsObject as dx, isCredentialsFunction as dy, type ResolveCredentialsOptions as dz, type PaginatedSdkResult as e, getZapierDefaultApprovalMode as e0, DEFAULT_APPROVAL_TIMEOUT_MS as e1, DEFAULT_MAX_APPROVAL_RETRIES as e2, listTablesPlugin as e3, type ListTablesPluginProvides as e4, getTablePlugin as e5, type GetTablePluginProvides as e6, createTablePlugin as e7, type CreateTablePluginProvides as e8, deleteTablePlugin as e9, buildErrorEventWithContext as eA, buildErrorEvent as eB, createBaseEvent as eC, buildMethodCalledEvent as eD, type BaseEvent as eE, type MethodCalledEvent as eF, generateEventId as eG, getCurrentTimestamp as eH, getReleaseId as eI, getOsInfo as eJ, getPlatformVersions as eK, isCi as eL, getCiPlatform as eM, getMemoryUsage as eN, getCpuTime as eO, createZapierSdk as eP, type ZapierSdk as eQ, type DeleteTablePluginProvides as ea, listTableFieldsPlugin as eb, type ListTableFieldsPluginProvides as ec, createTableFieldsPlugin as ed, type CreateTableFieldsPluginProvides as ee, deleteTableFieldsPlugin as ef, type DeleteTableFieldsPluginProvides as eg, getTableRecordPlugin as eh, type GetTableRecordPluginProvides as ei, listTableRecordsPlugin as ej, type ListTableRecordsPluginProvides as ek, createTableRecordsPlugin as el, type CreateTableRecordsPluginProvides as em, deleteTableRecordsPlugin as en, type DeleteTableRecordsPluginProvides as eo, updateTableRecordsPlugin as ep, type UpdateTableRecordsPluginProvides as eq, cleanupEventListeners as er, type EventEmissionConfig as es, eventEmissionPlugin as et, type EventEmissionProvides as eu, type EventContext as ev, type ApplicationLifecycleEventData as ew, type EnhancedErrorEventData as ex, type MethodCalledEventData as ey, buildApplicationLifecycleEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
@@ -8634,6 +8634,30 @@ declare const workflowVersionIdResolver: DynamicResolver<WorkflowVersionListItem
|
|
|
8634
8634
|
workflow: string;
|
|
8635
8635
|
}>;
|
|
8636
8636
|
|
|
8637
|
+
declare const WorkflowRunListItemSchema: z.ZodObject<{
|
|
8638
|
+
id: z.ZodString;
|
|
8639
|
+
trigger_id: z.ZodNullable<z.ZodString>;
|
|
8640
|
+
durable_run_id: z.ZodNullable<z.ZodString>;
|
|
8641
|
+
workflow_version_id: z.ZodNullable<z.ZodString>;
|
|
8642
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
8643
|
+
initialized: "initialized";
|
|
8644
|
+
started: "started";
|
|
8645
|
+
finished: "finished";
|
|
8646
|
+
failed: "failed";
|
|
8647
|
+
cancelled: "cancelled";
|
|
8648
|
+
}>, z.ZodString]>;
|
|
8649
|
+
input: z.ZodUnknown;
|
|
8650
|
+
output: z.ZodNullable<z.ZodUnknown>;
|
|
8651
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
8652
|
+
created_at: z.ZodString;
|
|
8653
|
+
updated_at: z.ZodString;
|
|
8654
|
+
}, z.core.$strip>;
|
|
8655
|
+
type WorkflowRunListItem = z.infer<typeof WorkflowRunListItemSchema>;
|
|
8656
|
+
|
|
8657
|
+
declare const workflowRunIdResolver: DynamicResolver<WorkflowRunListItem, {
|
|
8658
|
+
workflow: string;
|
|
8659
|
+
}>;
|
|
8660
|
+
|
|
8637
8661
|
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8638
8662
|
inbox: string;
|
|
8639
8663
|
}>;
|
|
@@ -9867,4 +9891,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9867
9891
|
};
|
|
9868
9892
|
}) => {};
|
|
9869
9893
|
|
|
9870
|
-
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableRecordIdsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, workflowVersionIdResolver as cY, triggerMessagesResolver as cZ, tableRecordIdResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, getZapierDefaultApprovalMode as d$, tableFieldIdsResolver as d0, tableNameResolver as d1, tableFieldsResolver as d2, tableRecordsResolver as d3, tableUpdateRecordsResolver as d4, tableFiltersResolver as d5, tableSortResolver as d6, type ResolveAuthTokenOptions as d7, clearTokenCache as d8, invalidateCachedToken as d9, resolveCredentials as dA, getBaseUrlFromCredentials as dB, getClientIdFromCredentials as dC, ClientCredentialsObjectSchema as dD, PkceCredentialsObjectSchema as dE, CredentialsObjectSchema as dF, ResolvedCredentialsSchema as dG, CredentialsFunctionSchema as dH, type CredentialsFunction as dI, CredentialsSchema as dJ, ConnectionEntrySchema as dK, type ConnectionEntry as dL, ConnectionsMapSchema as dM, type ConnectionsMap as dN, connectionsPlugin as dO, type ConnectionsPluginProvides as dP, ZAPIER_BASE_URL as dQ, getZapierSdkService as dR, MAX_PAGE_LIMIT as dS, DEFAULT_PAGE_SIZE as dT, DEFAULT_ACTION_TIMEOUT_MS as dU, ZAPIER_MAX_NETWORK_RETRIES as dV, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dW, MAX_CONCURRENCY_LIMIT as dX, parseConcurrencyEnvVar as dY, ZAPIER_MAX_CONCURRENT_REQUESTS as dZ, getZapierApprovalMode as d_, injectCliLogin as da, isCliLoginAvailable as db, getTokenFromCliLogin as dc, resolveAuthToken as dd, invalidateCredentialsToken as de, type ZapierCache as df, type ZapierCacheEntry as dg, type ZapierCacheSetOptions as dh, createMemoryCache as di, type SdkEvent as dj, type AuthEvent as dk, type ApiEvent as dl, type LoadingEvent as dm, type EventCallback as dn, type Credentials as dp, type ResolvedCredentials as dq, type CredentialsObject as dr, type ClientCredentialsObject as ds, type PkceCredentialsObject as dt, isClientCredentials as du, isPkceCredentials as dv, isCredentialsObject as dw, isCredentialsFunction as dx, type ResolveCredentialsOptions as dy, resolveCredentialsFromEnv as dz, type PaginatedSdkResult as e, DEFAULT_APPROVAL_TIMEOUT_MS as e0, DEFAULT_MAX_APPROVAL_RETRIES as e1, listTablesPlugin as e2, type ListTablesPluginProvides as e3, getTablePlugin as e4, type GetTablePluginProvides as e5, createTablePlugin as e6, type CreateTablePluginProvides as e7, deleteTablePlugin as e8, type DeleteTablePluginProvides as e9, buildErrorEvent as eA, createBaseEvent as eB, buildMethodCalledEvent as eC, type BaseEvent as eD, type MethodCalledEvent as eE, generateEventId as eF, getCurrentTimestamp as eG, getReleaseId as eH, getOsInfo as eI, getPlatformVersions as eJ, isCi as eK, getCiPlatform as eL, getMemoryUsage as eM, getCpuTime as eN, createZapierSdk as eO, type ZapierSdk as eP, listTableFieldsPlugin as ea, type ListTableFieldsPluginProvides as eb, createTableFieldsPlugin as ec, type CreateTableFieldsPluginProvides as ed, deleteTableFieldsPlugin as ee, type DeleteTableFieldsPluginProvides as ef, getTableRecordPlugin as eg, type GetTableRecordPluginProvides as eh, listTableRecordsPlugin as ei, type ListTableRecordsPluginProvides as ej, createTableRecordsPlugin as ek, type CreateTableRecordsPluginProvides as el, deleteTableRecordsPlugin as em, type DeleteTableRecordsPluginProvides as en, updateTableRecordsPlugin as eo, type UpdateTableRecordsPluginProvides as ep, cleanupEventListeners as eq, type EventEmissionConfig as er, eventEmissionPlugin as es, type EventEmissionProvides as et, type EventContext as eu, type ApplicationLifecycleEventData as ev, type EnhancedErrorEventData as ew, type MethodCalledEventData as ex, buildApplicationLifecycleEvent as ey, buildErrorEventWithContext as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
|
9894
|
+
export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableRecordIdResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, workflowIdResolver as cW, durableRunIdResolver as cX, workflowVersionIdResolver as cY, workflowRunIdResolver as cZ, triggerMessagesResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, getZapierApprovalMode as d$, tableRecordIdsResolver as d0, tableFieldIdsResolver as d1, tableNameResolver as d2, tableFieldsResolver as d3, tableRecordsResolver as d4, tableUpdateRecordsResolver as d5, tableFiltersResolver as d6, tableSortResolver as d7, type ResolveAuthTokenOptions as d8, clearTokenCache as d9, resolveCredentialsFromEnv as dA, resolveCredentials as dB, getBaseUrlFromCredentials as dC, getClientIdFromCredentials as dD, ClientCredentialsObjectSchema as dE, PkceCredentialsObjectSchema as dF, CredentialsObjectSchema as dG, ResolvedCredentialsSchema as dH, CredentialsFunctionSchema as dI, type CredentialsFunction as dJ, CredentialsSchema as dK, ConnectionEntrySchema as dL, type ConnectionEntry as dM, ConnectionsMapSchema as dN, type ConnectionsMap as dO, connectionsPlugin as dP, type ConnectionsPluginProvides as dQ, ZAPIER_BASE_URL as dR, getZapierSdkService as dS, MAX_PAGE_LIMIT as dT, DEFAULT_PAGE_SIZE as dU, DEFAULT_ACTION_TIMEOUT_MS as dV, ZAPIER_MAX_NETWORK_RETRIES as dW, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dX, MAX_CONCURRENCY_LIMIT as dY, parseConcurrencyEnvVar as dZ, ZAPIER_MAX_CONCURRENT_REQUESTS as d_, invalidateCachedToken as da, injectCliLogin as db, isCliLoginAvailable as dc, getTokenFromCliLogin as dd, resolveAuthToken as de, invalidateCredentialsToken as df, type ZapierCache as dg, type ZapierCacheEntry as dh, type ZapierCacheSetOptions as di, createMemoryCache as dj, type SdkEvent as dk, type AuthEvent as dl, type ApiEvent as dm, type LoadingEvent as dn, type EventCallback as dp, type Credentials as dq, type ResolvedCredentials as dr, type CredentialsObject as ds, type ClientCredentialsObject as dt, type PkceCredentialsObject as du, isClientCredentials as dv, isPkceCredentials as dw, isCredentialsObject as dx, isCredentialsFunction as dy, type ResolveCredentialsOptions as dz, type PaginatedSdkResult as e, getZapierDefaultApprovalMode as e0, DEFAULT_APPROVAL_TIMEOUT_MS as e1, DEFAULT_MAX_APPROVAL_RETRIES as e2, listTablesPlugin as e3, type ListTablesPluginProvides as e4, getTablePlugin as e5, type GetTablePluginProvides as e6, createTablePlugin as e7, type CreateTablePluginProvides as e8, deleteTablePlugin as e9, buildErrorEventWithContext as eA, buildErrorEvent as eB, createBaseEvent as eC, buildMethodCalledEvent as eD, type BaseEvent as eE, type MethodCalledEvent as eF, generateEventId as eG, getCurrentTimestamp as eH, getReleaseId as eI, getOsInfo as eJ, getPlatformVersions as eK, isCi as eL, getCiPlatform as eM, getMemoryUsage as eN, getCpuTime as eO, createZapierSdk as eP, type ZapierSdk as eQ, type DeleteTablePluginProvides as ea, listTableFieldsPlugin as eb, type ListTableFieldsPluginProvides as ec, createTableFieldsPlugin as ed, type CreateTableFieldsPluginProvides as ee, deleteTableFieldsPlugin as ef, type DeleteTableFieldsPluginProvides as eg, getTableRecordPlugin as eh, type GetTableRecordPluginProvides as ei, listTableRecordsPlugin as ej, type ListTableRecordsPluginProvides as ek, createTableRecordsPlugin as el, type CreateTableRecordsPluginProvides as em, deleteTableRecordsPlugin as en, type DeleteTableRecordsPluginProvides as eo, updateTableRecordsPlugin as ep, type UpdateTableRecordsPluginProvides as eq, cleanupEventListeners as er, type EventEmissionConfig as es, eventEmissionPlugin as et, type EventEmissionProvides as eu, type EventContext as ev, type ApplicationLifecycleEventData as ew, type EnhancedErrorEventData as ex, type MethodCalledEventData as ey, buildApplicationLifecycleEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
|
package/dist/index.cjs
CHANGED
|
@@ -2625,6 +2625,26 @@ var workflowVersionIdResolver = {
|
|
|
2625
2625
|
})
|
|
2626
2626
|
};
|
|
2627
2627
|
|
|
2628
|
+
// src/resolvers/workflowRunId.ts
|
|
2629
|
+
var workflowRunIdResolver = {
|
|
2630
|
+
type: "dynamic",
|
|
2631
|
+
depends: ["workflow"],
|
|
2632
|
+
fetch: async (sdk, params) => toIterable(
|
|
2633
|
+
sdk.listWorkflowRuns({
|
|
2634
|
+
workflow: params.workflow
|
|
2635
|
+
})
|
|
2636
|
+
),
|
|
2637
|
+
prompt: (runs) => ({
|
|
2638
|
+
type: "list",
|
|
2639
|
+
name: "run",
|
|
2640
|
+
message: "Select a workflow run:",
|
|
2641
|
+
choices: runs.map((r) => ({
|
|
2642
|
+
name: `${r.id} \u2014 ${r.status}`,
|
|
2643
|
+
value: r.id
|
|
2644
|
+
}))
|
|
2645
|
+
})
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2628
2648
|
// src/resolvers/triggerMessages.ts
|
|
2629
2649
|
var triggerMessagesResolver = {
|
|
2630
2650
|
type: "dynamic",
|
|
@@ -6374,7 +6394,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6374
6394
|
}
|
|
6375
6395
|
|
|
6376
6396
|
// src/sdk-version.ts
|
|
6377
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6397
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.65.0" : void 0) || "unknown";
|
|
6378
6398
|
|
|
6379
6399
|
// src/utils/open-url.ts
|
|
6380
6400
|
var nodePrefix = "node:";
|
|
@@ -9427,4 +9447,5 @@ exports.triggerInboxResolver = triggerInboxResolver;
|
|
|
9427
9447
|
exports.triggerMessagesResolver = triggerMessagesResolver;
|
|
9428
9448
|
exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
|
|
9429
9449
|
exports.workflowIdResolver = workflowIdResolver;
|
|
9450
|
+
exports.workflowRunIdResolver = workflowRunIdResolver;
|
|
9430
9451
|
exports.workflowVersionIdResolver = workflowVersionIdResolver;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { u as Action, d as ActionEntry, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bB as ApiError,
|
|
1
|
+
export { u as Action, d as ActionEntry, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bB as ApiError, dm as ApiEvent, cH as ApiPluginOptions, cJ as ApiPluginProvides, v as App, b_ as AppFactoryInput, az as AppItem, b9 as AppKeyProperty, aJ as AppKeyPropertySchema, ba as AppProperty, aK as AppPropertySchema, ew as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, dl as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eE as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, dt as ClientCredentialsObject, dE as ClientCredentialsObjectSchema, K as Connection, dM as ConnectionEntry, dL as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dO as ConnectionsMap, dN as ConnectionsMapSchema, dQ as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, ee as CreateTableFieldsPluginProvides, e8 as CreateTablePluginProvides, em as CreateTableRecordsPluginProvides, dq as Credentials, dJ as CredentialsFunction, dI as CredentialsFunctionSchema, ds as CredentialsObject, dG as CredentialsObjectSchema, dK as CredentialsSchema, dV as DEFAULT_ACTION_TIMEOUT_MS, e1 as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, e2 as DEFAULT_MAX_APPROVAL_RETRIES, dU as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, eg as DeleteTableFieldsPluginProvides, ea as DeleteTablePluginProvides, eo as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, ex as EnhancedErrorEventData, bC as ErrorOptions, dp as EventCallback, ev as EventContext, es as EventEmissionConfig, E as EventEmissionContext, eu as EventEmissionProvides, c0 as FetchPluginProvides, w as Field, bs as FieldsProperty, b0 as FieldsPropertySchema, a5 as FieldsResolver, F as FieldsetItem, s as FindFirstAuthenticationPluginProvides, cq as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cs as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, aG as FunctionOptions, aj as FunctionRegistryEntry, ca as GetActionInputFieldsSchemaPluginProvides, cm as GetActionPluginProvides, ck as GetAppPluginProvides, G as GetAuthenticationPluginProvides, co as GetConnectionPluginProvides, cG as GetProfilePluginProvides, e6 as GetTablePluginProvides, ei as GetTableRecordPluginProvides, aD as InfoFieldItem, aC as InputFieldItem, be as InputFieldProperty, aO as InputFieldPropertySchema, bi as InputsProperty, aS as InputsPropertySchema, bA as LeaseLimitProperty, b8 as LeaseLimitPropertySchema, by as LeaseProperty, b6 as LeasePropertySchema, bz as LeaseSecondsProperty, b7 as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bj as LimitProperty, aT as LimitPropertySchema, c8 as ListActionInputFieldChoicesPluginProvides, c6 as ListActionInputFieldsPluginProvides, c4 as ListActionsPluginProvides, c2 as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, ce as ListClientCredentialsPluginProvides, cc as ListConnectionsPluginProvides, ec as ListTableFieldsPluginProvides, ek as ListTableRecordsPluginProvides, e4 as ListTablesPluginProvides, dn as LoadingEvent, dY as MAX_CONCURRENCY_LIMIT, dT as MAX_PAGE_LIMIT, M as Manifest, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eF as MethodCalledEvent, ey as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bk as OffsetProperty, aU as OffsetPropertySchema, _ as OutputFormatter, bl as OutputProperty, aV as OutputPropertySchema, aI as PaginatedSdkFunction, e as PaginatedSdkResult, bn as ParamsProperty, aX as ParamsPropertySchema, du as PkceCredentialsObject, dF as PkceCredentialsObjectSchema, am as Plugin, P as PluginMeta, an as PluginProvides, aw as PollOptions, g as PositionalMetadata, bQ as RateLimitInfo, bq as RecordProperty, a_ as RecordPropertySchema, br as RecordsProperty, a$ as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cy as RequestPluginProvides, d8 as ResolveAuthTokenOptions, dz as ResolveCredentialsOptions, R as ResolvedAppLocator, dr as ResolvedCredentials, dH as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dk as SdkEvent, aH as SdkPage, a2 as StaticResolver, bp as TableProperty, aZ as TablePropertySchema, bu as TablesProperty, b2 as TablesPropertySchema, bx as TriggerInboxNameProperty, b5 as TriggerInboxNamePropertySchema, bw as TriggerInboxProperty, b4 as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, eq as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, dR as ZAPIER_BASE_URL, d_ as ZAPIER_MAX_CONCURRENT_REQUESTS, dW as ZAPIER_MAX_NETWORK_RETRIES, dX as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, bO as ZapierActionError, bE as ZapierApiError, bF as ZapierAppNotFoundError, bT as ZapierApprovalError, bI as ZapierAuthenticationError, bM as ZapierBundleError, dg as ZapierCache, dh as ZapierCacheEntry, di as ZapierCacheSetOptions, bL as ZapierConfigurationError, bP as ZapierConflictError, bD as ZapierError, h as ZapierFetchInitOptions, bJ as ZapierNotFoundError, bR as ZapierRateLimitError, bU as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bK as ZapierResourceNotFoundError, eQ as ZapierSdk, l as ZapierSdkApps, Z as ZapierSdkOptions, bW as ZapierSignal, bN as ZapierTimeoutError, bH as ZapierUnknownError, bG as ZapierValidationError, cM as actionKeyResolver, cL as actionTypeResolver, cI as apiPlugin, cK as appKeyResolver, bX as appsPlugin, cO as authenticationIdGenericResolver, cN as authenticationIdResolver, a9 as batch, ez as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, eB as buildErrorEvent, eA as buildErrorEventWithContext, eD as buildMethodCalledEvent, er as cleanupEventListeners, d9 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dP as connectionsPlugin, eC as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, dj as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, ed as createTableFieldsPlugin, e7 as createTablePlugin, el as createTableRecordsPlugin, ax as createZapierApi, eP as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, ef as deleteTableFieldsPlugin, e9 as deleteTablePlugin, en as deleteTableRecordsPlugin, cX as durableRunIdResolver, et as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, f as findManifestEntry, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eG as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dC as getBaseUrlFromCredentials, eM as getCiPlatform, dD as getClientIdFromCredentials, cn as getConnectionPlugin, eO as getCpuTime, eH as getCurrentTimestamp, eN as getMemoryUsage, ay as getOrCreateApiClient, eJ as getOsInfo, eK as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eI as getReleaseId, e5 as getTablePlugin, eh as getTableRecordPlugin, dd as getTokenFromCliLogin, d$ as getZapierApprovalMode, e0 as getZapierDefaultApprovalMode, dS as getZapierSdkService, db as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, da as invalidateCachedToken, df as invalidateCredentialsToken, eL as isCi, dc as isCliLoginAvailable, dv as isClientCredentials, dy as isCredentialsFunction, dx as isCredentialsObject, dw as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, eb as listTableFieldsPlugin, ej as listTableRecordsPlugin, e3 as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dZ as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, de as resolveAuthToken, dB as resolveCredentials, dA as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, d1 as tableFieldIdsResolver, d3 as tableFieldsResolver, d6 as tableFiltersResolver, cU as tableIdResolver, d2 as tableNameResolver, c$ as tableRecordIdResolver, d0 as tableRecordIdsResolver, d4 as tableRecordsResolver, d7 as tableSortResolver, d5 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, c_ as triggerMessagesResolver, ep as updateTableRecordsPlugin, cW as workflowIdResolver, cZ as workflowRunIdResolver, cY as workflowVersionIdResolver } from './index-JhNxS_mq.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|
package/dist/index.mjs
CHANGED
|
@@ -2623,6 +2623,26 @@ var workflowVersionIdResolver = {
|
|
|
2623
2623
|
})
|
|
2624
2624
|
};
|
|
2625
2625
|
|
|
2626
|
+
// src/resolvers/workflowRunId.ts
|
|
2627
|
+
var workflowRunIdResolver = {
|
|
2628
|
+
type: "dynamic",
|
|
2629
|
+
depends: ["workflow"],
|
|
2630
|
+
fetch: async (sdk, params) => toIterable(
|
|
2631
|
+
sdk.listWorkflowRuns({
|
|
2632
|
+
workflow: params.workflow
|
|
2633
|
+
})
|
|
2634
|
+
),
|
|
2635
|
+
prompt: (runs) => ({
|
|
2636
|
+
type: "list",
|
|
2637
|
+
name: "run",
|
|
2638
|
+
message: "Select a workflow run:",
|
|
2639
|
+
choices: runs.map((r) => ({
|
|
2640
|
+
name: `${r.id} \u2014 ${r.status}`,
|
|
2641
|
+
value: r.id
|
|
2642
|
+
}))
|
|
2643
|
+
})
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2626
2646
|
// src/resolvers/triggerMessages.ts
|
|
2627
2647
|
var triggerMessagesResolver = {
|
|
2628
2648
|
type: "dynamic",
|
|
@@ -6372,7 +6392,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6372
6392
|
}
|
|
6373
6393
|
|
|
6374
6394
|
// src/sdk-version.ts
|
|
6375
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6395
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.65.0" : void 0) || "unknown";
|
|
6376
6396
|
|
|
6377
6397
|
// src/utils/open-url.ts
|
|
6378
6398
|
var nodePrefix = "node:";
|
|
@@ -9234,4 +9254,4 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
9234
9254
|
return {};
|
|
9235
9255
|
});
|
|
9236
9256
|
|
|
9237
|
-
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowVersionIdResolver };
|
|
9257
|
+
export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DebugPropertySchema, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, TablePropertySchema, TablesPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, definePlugin, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver };
|