@zapier/zapier-sdk 0.58.0 → 0.60.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 +12 -0
- package/README.md +92 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +12 -0
- package/dist/experimental.cjs +155 -2
- package/dist/experimental.d.mts +56 -2
- package/dist/experimental.d.ts +54 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -0
- package/dist/experimental.mjs +155 -3
- package/dist/{index-eliz1Uq3.d.mts → index-iKbnOz6r.d.mts} +15 -1
- package/dist/{index-eliz1Uq3.d.ts → index-iKbnOz6r.d.ts} +15 -1
- package/dist/index.cjs +33 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +33 -2
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +54 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.js +21 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +35 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +45 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +50 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.js +29 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +40 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +54 -0
- package/dist/plugins/codeSubstrate/shared.d.ts +16 -0
- package/dist/plugins/codeSubstrate/shared.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/shared.js +15 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +4 -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/workflowId.d.ts +4 -0
- package/dist/resolvers/workflowId.d.ts.map +1 -0
- package/dist/resolvers/workflowId.js +14 -0
- package/package.json +1 -1
package/dist/experimental.mjs
CHANGED
|
@@ -28,6 +28,10 @@ var categoryDefinitions = {
|
|
|
28
28
|
},
|
|
29
29
|
table: { title: "Table" },
|
|
30
30
|
trigger: { title: "Trigger" },
|
|
31
|
+
"code-workflow": {
|
|
32
|
+
title: "Code Workflow",
|
|
33
|
+
titlePlural: "Code Workflows"
|
|
34
|
+
},
|
|
31
35
|
http: { title: "HTTP Request" },
|
|
32
36
|
utility: { title: "Utility", titlePlural: "Utilities" },
|
|
33
37
|
other: { title: "Other" }
|
|
@@ -2883,7 +2887,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2883
2887
|
}
|
|
2884
2888
|
|
|
2885
2889
|
// src/sdk-version.ts
|
|
2886
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2890
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.60.0" : void 0) || "unknown";
|
|
2887
2891
|
|
|
2888
2892
|
// src/utils/open-url.ts
|
|
2889
2893
|
var nodePrefix = "node:";
|
|
@@ -3028,6 +3032,18 @@ var pathConfig = {
|
|
|
3028
3032
|
"/trigger-inbox": {
|
|
3029
3033
|
authHeader: "Authorization",
|
|
3030
3034
|
pathPrefix: "/api/v0/sdk/trigger-inbox"
|
|
3035
|
+
},
|
|
3036
|
+
// e.g. /sdkdurableapi -> https://sdkapi.zapier.com/api/v0/sdk/sdkdurableapi/...
|
|
3037
|
+
// sdkapi proxies to the sdkdurableapi backend.
|
|
3038
|
+
"/sdkdurableapi": {
|
|
3039
|
+
authHeader: "Authorization",
|
|
3040
|
+
pathPrefix: "/api/v0/sdk/sdkdurableapi"
|
|
3041
|
+
},
|
|
3042
|
+
// e.g. /durableworkflowzaps -> https://sdkapi.zapier.com/api/v0/sdk/durableworkflowzaps/...
|
|
3043
|
+
// sdkapi proxies to the durableworkflowzaps backend.
|
|
3044
|
+
"/durableworkflowzaps": {
|
|
3045
|
+
authHeader: "Authorization",
|
|
3046
|
+
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
3031
3047
|
}
|
|
3032
3048
|
};
|
|
3033
3049
|
var ZapierApiClient = class {
|
|
@@ -4256,6 +4272,21 @@ var triggerInboxResolver = {
|
|
|
4256
4272
|
})
|
|
4257
4273
|
};
|
|
4258
4274
|
|
|
4275
|
+
// src/resolvers/workflowId.ts
|
|
4276
|
+
var workflowIdResolver = {
|
|
4277
|
+
type: "dynamic",
|
|
4278
|
+
fetch: async (sdk) => toIterable(sdk.listWorkflows()),
|
|
4279
|
+
prompt: (workflows) => ({
|
|
4280
|
+
type: "list",
|
|
4281
|
+
name: "workflow",
|
|
4282
|
+
message: "Select a workflow:",
|
|
4283
|
+
choices: workflows.map((workflow) => ({
|
|
4284
|
+
name: workflow.enabled ? workflow.name : `${workflow.name} (disabled)`,
|
|
4285
|
+
value: workflow.id
|
|
4286
|
+
}))
|
|
4287
|
+
})
|
|
4288
|
+
};
|
|
4289
|
+
|
|
4259
4290
|
// src/resolvers/triggerMessages.ts
|
|
4260
4291
|
var triggerMessagesResolver = {
|
|
4261
4292
|
type: "dynamic",
|
|
@@ -10493,6 +10524,127 @@ var getTriggerInputFieldsSchemaPlugin = definePlugin(
|
|
|
10493
10524
|
})
|
|
10494
10525
|
);
|
|
10495
10526
|
|
|
10527
|
+
// src/plugins/codeSubstrate/shared.ts
|
|
10528
|
+
var codeSubstrateDefaults = {
|
|
10529
|
+
categories: ["code-workflow"],
|
|
10530
|
+
experimental: true
|
|
10531
|
+
};
|
|
10532
|
+
var WorkflowItemSchema = z.object({
|
|
10533
|
+
id: z.string().describe("Workflow ID (UUID)"),
|
|
10534
|
+
name: z.string().describe("Workflow name"),
|
|
10535
|
+
description: z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
10536
|
+
trigger_url: z.string().describe(
|
|
10537
|
+
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
10538
|
+
),
|
|
10539
|
+
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
10540
|
+
current_version_id: z.string().nullable().describe(
|
|
10541
|
+
"ID of the workflow version that runs handle. Null until a version is published."
|
|
10542
|
+
),
|
|
10543
|
+
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
10544
|
+
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
|
|
10545
|
+
});
|
|
10546
|
+
var ListWorkflowsOptionsSchema = z.object({
|
|
10547
|
+
pageSize: z.number().int().min(1).optional().describe(
|
|
10548
|
+
"Number of workflows per page (server-side pagination forthcoming; ignored until then)"
|
|
10549
|
+
),
|
|
10550
|
+
maxItems: z.number().int().min(1).optional().describe("Maximum total workflows to return across all pages"),
|
|
10551
|
+
cursor: z.string().optional().describe(
|
|
10552
|
+
"Cursor to start from for pagination (server-side pagination forthcoming; ignored until then)"
|
|
10553
|
+
)
|
|
10554
|
+
}).describe("List all active durable workflows for the authenticated account");
|
|
10555
|
+
var ListWorkflowsApiResponseSchema = z.object({
|
|
10556
|
+
workflows: z.array(WorkflowItemSchema),
|
|
10557
|
+
next_cursor: z.string().nullable().optional()
|
|
10558
|
+
});
|
|
10559
|
+
|
|
10560
|
+
// src/plugins/codeSubstrate/listWorkflows/index.ts
|
|
10561
|
+
var listWorkflowsPlugin = definePlugin(
|
|
10562
|
+
(sdk) => createPaginatedPluginMethod(sdk, {
|
|
10563
|
+
...codeSubstrateDefaults,
|
|
10564
|
+
name: "listWorkflows",
|
|
10565
|
+
type: "list",
|
|
10566
|
+
itemType: "Workflow",
|
|
10567
|
+
inputSchema: ListWorkflowsOptionsSchema,
|
|
10568
|
+
outputSchema: WorkflowItemSchema,
|
|
10569
|
+
defaultPageSize: DEFAULT_PAGE_SIZE,
|
|
10570
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
10571
|
+
const searchParams = {};
|
|
10572
|
+
if (options.pageSize !== void 0) {
|
|
10573
|
+
searchParams.limit = options.pageSize.toString();
|
|
10574
|
+
}
|
|
10575
|
+
if (options.cursor) {
|
|
10576
|
+
searchParams.cursor = options.cursor;
|
|
10577
|
+
}
|
|
10578
|
+
const raw = await sdk2.context.api.get(
|
|
10579
|
+
"/durableworkflowzaps/api/v0/workflows",
|
|
10580
|
+
{ searchParams, authRequired: true }
|
|
10581
|
+
);
|
|
10582
|
+
const response = ListWorkflowsApiResponseSchema.parse(raw);
|
|
10583
|
+
return {
|
|
10584
|
+
data: response.workflows,
|
|
10585
|
+
next: response.next_cursor ?? null
|
|
10586
|
+
};
|
|
10587
|
+
},
|
|
10588
|
+
extractCursor: (response) => response.next ?? void 0
|
|
10589
|
+
})
|
|
10590
|
+
);
|
|
10591
|
+
var WorkflowVersionSchema = z.object({
|
|
10592
|
+
id: z.string().describe("Workflow version ID (UUID)"),
|
|
10593
|
+
workflow_id: z.string().describe("Parent workflow ID"),
|
|
10594
|
+
source_files: z.record(z.string(), z.string()).describe("Source files keyed by filename \u2192 contents"),
|
|
10595
|
+
zapier_durable_version: z.string().describe(
|
|
10596
|
+
"Pinned semver of @zapier/zapier-durable used by this version's runs"
|
|
10597
|
+
),
|
|
10598
|
+
dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this version (or null)"),
|
|
10599
|
+
// Backend column is NOT NULL (see durableworkflowzaps prisma schema:
|
|
10600
|
+
// workflow_versions.created_by_user_id), so this is always emitted.
|
|
10601
|
+
created_by_user_id: z.string().describe("ID of the user who published this version"),
|
|
10602
|
+
created_at: z.string().describe("When the version was published (ISO-8601)")
|
|
10603
|
+
});
|
|
10604
|
+
var GetWorkflowOptionsSchema = z.object({
|
|
10605
|
+
workflow: z.string().uuid().describe("Durable workflow ID")
|
|
10606
|
+
}).describe(
|
|
10607
|
+
"Get a durable workflow with its current version details and trigger claim status"
|
|
10608
|
+
);
|
|
10609
|
+
var GetWorkflowResponseSchema = z.object({
|
|
10610
|
+
id: z.string().describe("Workflow ID (UUID)"),
|
|
10611
|
+
name: z.string().describe("Workflow name"),
|
|
10612
|
+
description: z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
10613
|
+
trigger_url: z.string().describe(
|
|
10614
|
+
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
10615
|
+
),
|
|
10616
|
+
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
10617
|
+
current_version: WorkflowVersionSchema.optional().describe(
|
|
10618
|
+
"The currently published version, if any. Absent for workflows with no version published yet."
|
|
10619
|
+
),
|
|
10620
|
+
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
10621
|
+
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
|
|
10622
|
+
});
|
|
10623
|
+
|
|
10624
|
+
// src/plugins/codeSubstrate/getWorkflow/index.ts
|
|
10625
|
+
var getWorkflowPlugin = definePlugin(
|
|
10626
|
+
(sdk) => createPluginMethod(sdk, {
|
|
10627
|
+
...codeSubstrateDefaults,
|
|
10628
|
+
name: "getWorkflow",
|
|
10629
|
+
type: "item",
|
|
10630
|
+
itemType: "Workflow",
|
|
10631
|
+
inputSchema: GetWorkflowOptionsSchema,
|
|
10632
|
+
outputSchema: GetWorkflowResponseSchema,
|
|
10633
|
+
resolvers: { workflow: workflowIdResolver },
|
|
10634
|
+
handler: async ({ sdk: sdk2, options }) => {
|
|
10635
|
+
const raw = await sdk2.context.api.get(
|
|
10636
|
+
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}`,
|
|
10637
|
+
{
|
|
10638
|
+
authRequired: true,
|
|
10639
|
+
resource: { type: "workflow", id: options.workflow }
|
|
10640
|
+
}
|
|
10641
|
+
);
|
|
10642
|
+
const data = GetWorkflowResponseSchema.parse(raw);
|
|
10643
|
+
return { data };
|
|
10644
|
+
}
|
|
10645
|
+
})
|
|
10646
|
+
);
|
|
10647
|
+
|
|
10496
10648
|
// src/utils/batch-utils.ts
|
|
10497
10649
|
var DEFAULT_CONCURRENCY = 10;
|
|
10498
10650
|
var BATCH_START_DELAY_MS = 25;
|
|
@@ -10651,7 +10803,7 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
10651
10803
|
|
|
10652
10804
|
// src/experimental.ts
|
|
10653
10805
|
function createZapierSdk2(options = {}) {
|
|
10654
|
-
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(appsPlugin).addPlugin(getProfilePlugin);
|
|
10806
|
+
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(appsPlugin).addPlugin(getProfilePlugin);
|
|
10655
10807
|
}
|
|
10656
10808
|
|
|
10657
|
-
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, 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 };
|
|
10809
|
+
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, 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 };
|
|
@@ -8582,6 +8582,20 @@ type TriggerInboxItem = z.infer<typeof TriggerInboxItemSchema>;
|
|
|
8582
8582
|
|
|
8583
8583
|
declare const triggerInboxResolver: DynamicResolver<TriggerInboxItem, {}>;
|
|
8584
8584
|
|
|
8585
|
+
declare const WorkflowItemSchema: z.ZodObject<{
|
|
8586
|
+
id: z.ZodString;
|
|
8587
|
+
name: z.ZodString;
|
|
8588
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8589
|
+
trigger_url: z.ZodString;
|
|
8590
|
+
enabled: z.ZodBoolean;
|
|
8591
|
+
current_version_id: z.ZodNullable<z.ZodString>;
|
|
8592
|
+
created_at: z.ZodString;
|
|
8593
|
+
updated_at: z.ZodString;
|
|
8594
|
+
}, z.core.$strip>;
|
|
8595
|
+
type WorkflowItem = z.infer<typeof WorkflowItemSchema>;
|
|
8596
|
+
|
|
8597
|
+
declare const workflowIdResolver: DynamicResolver<WorkflowItem, {}>;
|
|
8598
|
+
|
|
8585
8599
|
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8586
8600
|
inbox: string;
|
|
8587
8601
|
}>;
|
|
@@ -9815,4 +9829,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9815
9829
|
};
|
|
9816
9830
|
}) => {};
|
|
9817
9831
|
|
|
9818
|
-
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, tableFieldsResolver 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, triggerMessagesResolver as cW, tableRecordIdResolver as cX, tableRecordIdsResolver as cY, tableFieldIdsResolver as cZ, tableNameResolver 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, listTablesPlugin as d$, tableRecordsResolver as d0, tableUpdateRecordsResolver as d1, tableFiltersResolver as d2, tableSortResolver as d3, type ResolveAuthTokenOptions as d4, clearTokenCache as d5, invalidateCachedToken as d6, injectCliLogin as d7, isCliLoginAvailable as d8, getTokenFromCliLogin as d9, ClientCredentialsObjectSchema as dA, PkceCredentialsObjectSchema as dB, CredentialsObjectSchema as dC, ResolvedCredentialsSchema as dD, CredentialsFunctionSchema as dE, type CredentialsFunction as dF, CredentialsSchema as dG, ConnectionEntrySchema as dH, type ConnectionEntry as dI, ConnectionsMapSchema as dJ, type ConnectionsMap as dK, connectionsPlugin as dL, type ConnectionsPluginProvides as dM, ZAPIER_BASE_URL as dN, getZapierSdkService as dO, MAX_PAGE_LIMIT as dP, DEFAULT_PAGE_SIZE as dQ, DEFAULT_ACTION_TIMEOUT_MS as dR, ZAPIER_MAX_NETWORK_RETRIES as dS, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dT, MAX_CONCURRENCY_LIMIT as dU, parseConcurrencyEnvVar as dV, ZAPIER_MAX_CONCURRENT_REQUESTS as dW, getZapierApprovalMode as dX, getZapierDefaultApprovalMode as dY, DEFAULT_APPROVAL_TIMEOUT_MS as dZ, DEFAULT_MAX_APPROVAL_RETRIES as d_, resolveAuthToken as da, invalidateCredentialsToken as db, type ZapierCache as dc, type ZapierCacheEntry as dd, type ZapierCacheSetOptions as de, createMemoryCache as df, type SdkEvent as dg, type AuthEvent as dh, type ApiEvent as di, type LoadingEvent as dj, type EventCallback as dk, type Credentials as dl, type ResolvedCredentials as dm, type CredentialsObject as dn, type ClientCredentialsObject as dp, type PkceCredentialsObject as dq, isClientCredentials as dr, isPkceCredentials as ds, isCredentialsObject as dt, isCredentialsFunction as du, type ResolveCredentialsOptions as dv, resolveCredentialsFromEnv as dw, resolveCredentials as dx, getBaseUrlFromCredentials as dy, getClientIdFromCredentials as dz, type PaginatedSdkResult as e, type ListTablesPluginProvides as e0, getTablePlugin as e1, type GetTablePluginProvides as e2, createTablePlugin as e3, type CreateTablePluginProvides as e4, deleteTablePlugin as e5, type DeleteTablePluginProvides as e6, listTableFieldsPlugin as e7, type ListTableFieldsPluginProvides as e8, createTableFieldsPlugin as e9, type BaseEvent as eA, type MethodCalledEvent as eB, generateEventId as eC, getCurrentTimestamp as eD, getReleaseId as eE, getOsInfo as eF, getPlatformVersions as eG, isCi as eH, getCiPlatform as eI, getMemoryUsage as eJ, getCpuTime as eK, createZapierSdk as eL, type ZapierSdk as eM, type CreateTableFieldsPluginProvides as ea, deleteTableFieldsPlugin as eb, type DeleteTableFieldsPluginProvides as ec, getTableRecordPlugin as ed, type GetTableRecordPluginProvides as ee, listTableRecordsPlugin as ef, type ListTableRecordsPluginProvides as eg, createTableRecordsPlugin as eh, type CreateTableRecordsPluginProvides as ei, deleteTableRecordsPlugin as ej, type DeleteTableRecordsPluginProvides as ek, updateTableRecordsPlugin as el, type UpdateTableRecordsPluginProvides as em, cleanupEventListeners as en, type EventEmissionConfig as eo, eventEmissionPlugin as ep, type EventEmissionProvides as eq, type EventContext as er, type ApplicationLifecycleEventData as es, type EnhancedErrorEventData as et, type MethodCalledEventData as eu, buildApplicationLifecycleEvent as ev, buildErrorEventWithContext as ew, buildErrorEvent as ex, createBaseEvent as ey, buildMethodCalledEvent 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 };
|
|
9832
|
+
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, tableNameResolver 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, triggerMessagesResolver as cX, tableRecordIdResolver as cY, tableRecordIdsResolver as cZ, tableFieldIdsResolver 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, DEFAULT_MAX_APPROVAL_RETRIES as d$, tableFieldsResolver as d0, tableRecordsResolver as d1, tableUpdateRecordsResolver as d2, tableFiltersResolver as d3, tableSortResolver as d4, type ResolveAuthTokenOptions as d5, clearTokenCache as d6, invalidateCachedToken as d7, injectCliLogin as d8, isCliLoginAvailable as d9, getClientIdFromCredentials as dA, ClientCredentialsObjectSchema as dB, PkceCredentialsObjectSchema as dC, CredentialsObjectSchema as dD, ResolvedCredentialsSchema as dE, CredentialsFunctionSchema as dF, type CredentialsFunction as dG, CredentialsSchema as dH, ConnectionEntrySchema as dI, type ConnectionEntry as dJ, ConnectionsMapSchema as dK, type ConnectionsMap as dL, connectionsPlugin as dM, type ConnectionsPluginProvides as dN, ZAPIER_BASE_URL as dO, getZapierSdkService as dP, MAX_PAGE_LIMIT as dQ, DEFAULT_PAGE_SIZE as dR, DEFAULT_ACTION_TIMEOUT_MS as dS, ZAPIER_MAX_NETWORK_RETRIES as dT, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dU, MAX_CONCURRENCY_LIMIT as dV, parseConcurrencyEnvVar as dW, ZAPIER_MAX_CONCURRENT_REQUESTS as dX, getZapierApprovalMode as dY, getZapierDefaultApprovalMode as dZ, DEFAULT_APPROVAL_TIMEOUT_MS as d_, getTokenFromCliLogin as da, resolveAuthToken as db, invalidateCredentialsToken as dc, type ZapierCache as dd, type ZapierCacheEntry as de, type ZapierCacheSetOptions as df, createMemoryCache as dg, type SdkEvent as dh, type AuthEvent as di, type ApiEvent as dj, type LoadingEvent as dk, type EventCallback as dl, type Credentials as dm, type ResolvedCredentials as dn, type CredentialsObject as dp, type ClientCredentialsObject as dq, type PkceCredentialsObject as dr, isClientCredentials as ds, isPkceCredentials as dt, isCredentialsObject as du, isCredentialsFunction as dv, type ResolveCredentialsOptions as dw, resolveCredentialsFromEnv as dx, resolveCredentials as dy, getBaseUrlFromCredentials as dz, type PaginatedSdkResult as e, listTablesPlugin as e0, type ListTablesPluginProvides as e1, getTablePlugin as e2, type GetTablePluginProvides as e3, createTablePlugin as e4, type CreateTablePluginProvides as e5, deleteTablePlugin as e6, type DeleteTablePluginProvides as e7, listTableFieldsPlugin as e8, type ListTableFieldsPluginProvides as e9, buildMethodCalledEvent as eA, type BaseEvent as eB, type MethodCalledEvent as eC, generateEventId as eD, getCurrentTimestamp as eE, getReleaseId as eF, getOsInfo as eG, getPlatformVersions as eH, isCi as eI, getCiPlatform as eJ, getMemoryUsage as eK, getCpuTime as eL, createZapierSdk as eM, type ZapierSdk as eN, createTableFieldsPlugin as ea, type CreateTableFieldsPluginProvides as eb, deleteTableFieldsPlugin as ec, type DeleteTableFieldsPluginProvides as ed, getTableRecordPlugin as ee, type GetTableRecordPluginProvides as ef, listTableRecordsPlugin as eg, type ListTableRecordsPluginProvides as eh, createTableRecordsPlugin as ei, type CreateTableRecordsPluginProvides as ej, deleteTableRecordsPlugin as ek, type DeleteTableRecordsPluginProvides as el, updateTableRecordsPlugin as em, type UpdateTableRecordsPluginProvides as en, cleanupEventListeners as eo, type EventEmissionConfig as ep, eventEmissionPlugin as eq, type EventEmissionProvides as er, type EventContext as es, type ApplicationLifecycleEventData as et, type EnhancedErrorEventData as eu, type MethodCalledEventData as ev, buildApplicationLifecycleEvent as ew, buildErrorEventWithContext as ex, buildErrorEvent as ey, createBaseEvent 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 };
|
|
@@ -8582,6 +8582,20 @@ type TriggerInboxItem = z.infer<typeof TriggerInboxItemSchema>;
|
|
|
8582
8582
|
|
|
8583
8583
|
declare const triggerInboxResolver: DynamicResolver<TriggerInboxItem, {}>;
|
|
8584
8584
|
|
|
8585
|
+
declare const WorkflowItemSchema: z.ZodObject<{
|
|
8586
|
+
id: z.ZodString;
|
|
8587
|
+
name: z.ZodString;
|
|
8588
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8589
|
+
trigger_url: z.ZodString;
|
|
8590
|
+
enabled: z.ZodBoolean;
|
|
8591
|
+
current_version_id: z.ZodNullable<z.ZodString>;
|
|
8592
|
+
created_at: z.ZodString;
|
|
8593
|
+
updated_at: z.ZodString;
|
|
8594
|
+
}, z.core.$strip>;
|
|
8595
|
+
type WorkflowItem = z.infer<typeof WorkflowItemSchema>;
|
|
8596
|
+
|
|
8597
|
+
declare const workflowIdResolver: DynamicResolver<WorkflowItem, {}>;
|
|
8598
|
+
|
|
8585
8599
|
declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
|
|
8586
8600
|
inbox: string;
|
|
8587
8601
|
}>;
|
|
@@ -9815,4 +9829,4 @@ declare const registryPlugin: (sdk: {
|
|
|
9815
9829
|
};
|
|
9816
9830
|
}) => {};
|
|
9817
9831
|
|
|
9818
|
-
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, tableFieldsResolver 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, triggerMessagesResolver as cW, tableRecordIdResolver as cX, tableRecordIdsResolver as cY, tableFieldIdsResolver as cZ, tableNameResolver 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, listTablesPlugin as d$, tableRecordsResolver as d0, tableUpdateRecordsResolver as d1, tableFiltersResolver as d2, tableSortResolver as d3, type ResolveAuthTokenOptions as d4, clearTokenCache as d5, invalidateCachedToken as d6, injectCliLogin as d7, isCliLoginAvailable as d8, getTokenFromCliLogin as d9, ClientCredentialsObjectSchema as dA, PkceCredentialsObjectSchema as dB, CredentialsObjectSchema as dC, ResolvedCredentialsSchema as dD, CredentialsFunctionSchema as dE, type CredentialsFunction as dF, CredentialsSchema as dG, ConnectionEntrySchema as dH, type ConnectionEntry as dI, ConnectionsMapSchema as dJ, type ConnectionsMap as dK, connectionsPlugin as dL, type ConnectionsPluginProvides as dM, ZAPIER_BASE_URL as dN, getZapierSdkService as dO, MAX_PAGE_LIMIT as dP, DEFAULT_PAGE_SIZE as dQ, DEFAULT_ACTION_TIMEOUT_MS as dR, ZAPIER_MAX_NETWORK_RETRIES as dS, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dT, MAX_CONCURRENCY_LIMIT as dU, parseConcurrencyEnvVar as dV, ZAPIER_MAX_CONCURRENT_REQUESTS as dW, getZapierApprovalMode as dX, getZapierDefaultApprovalMode as dY, DEFAULT_APPROVAL_TIMEOUT_MS as dZ, DEFAULT_MAX_APPROVAL_RETRIES as d_, resolveAuthToken as da, invalidateCredentialsToken as db, type ZapierCache as dc, type ZapierCacheEntry as dd, type ZapierCacheSetOptions as de, createMemoryCache as df, type SdkEvent as dg, type AuthEvent as dh, type ApiEvent as di, type LoadingEvent as dj, type EventCallback as dk, type Credentials as dl, type ResolvedCredentials as dm, type CredentialsObject as dn, type ClientCredentialsObject as dp, type PkceCredentialsObject as dq, isClientCredentials as dr, isPkceCredentials as ds, isCredentialsObject as dt, isCredentialsFunction as du, type ResolveCredentialsOptions as dv, resolveCredentialsFromEnv as dw, resolveCredentials as dx, getBaseUrlFromCredentials as dy, getClientIdFromCredentials as dz, type PaginatedSdkResult as e, type ListTablesPluginProvides as e0, getTablePlugin as e1, type GetTablePluginProvides as e2, createTablePlugin as e3, type CreateTablePluginProvides as e4, deleteTablePlugin as e5, type DeleteTablePluginProvides as e6, listTableFieldsPlugin as e7, type ListTableFieldsPluginProvides as e8, createTableFieldsPlugin as e9, type BaseEvent as eA, type MethodCalledEvent as eB, generateEventId as eC, getCurrentTimestamp as eD, getReleaseId as eE, getOsInfo as eF, getPlatformVersions as eG, isCi as eH, getCiPlatform as eI, getMemoryUsage as eJ, getCpuTime as eK, createZapierSdk as eL, type ZapierSdk as eM, type CreateTableFieldsPluginProvides as ea, deleteTableFieldsPlugin as eb, type DeleteTableFieldsPluginProvides as ec, getTableRecordPlugin as ed, type GetTableRecordPluginProvides as ee, listTableRecordsPlugin as ef, type ListTableRecordsPluginProvides as eg, createTableRecordsPlugin as eh, type CreateTableRecordsPluginProvides as ei, deleteTableRecordsPlugin as ej, type DeleteTableRecordsPluginProvides as ek, updateTableRecordsPlugin as el, type UpdateTableRecordsPluginProvides as em, cleanupEventListeners as en, type EventEmissionConfig as eo, eventEmissionPlugin as ep, type EventEmissionProvides as eq, type EventContext as er, type ApplicationLifecycleEventData as es, type EnhancedErrorEventData as et, type MethodCalledEventData as eu, buildApplicationLifecycleEvent as ev, buildErrorEventWithContext as ew, buildErrorEvent as ex, createBaseEvent as ey, buildMethodCalledEvent 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 };
|
|
9832
|
+
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, tableNameResolver 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, triggerMessagesResolver as cX, tableRecordIdResolver as cY, tableRecordIdsResolver as cZ, tableFieldIdsResolver 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, DEFAULT_MAX_APPROVAL_RETRIES as d$, tableFieldsResolver as d0, tableRecordsResolver as d1, tableUpdateRecordsResolver as d2, tableFiltersResolver as d3, tableSortResolver as d4, type ResolveAuthTokenOptions as d5, clearTokenCache as d6, invalidateCachedToken as d7, injectCliLogin as d8, isCliLoginAvailable as d9, getClientIdFromCredentials as dA, ClientCredentialsObjectSchema as dB, PkceCredentialsObjectSchema as dC, CredentialsObjectSchema as dD, ResolvedCredentialsSchema as dE, CredentialsFunctionSchema as dF, type CredentialsFunction as dG, CredentialsSchema as dH, ConnectionEntrySchema as dI, type ConnectionEntry as dJ, ConnectionsMapSchema as dK, type ConnectionsMap as dL, connectionsPlugin as dM, type ConnectionsPluginProvides as dN, ZAPIER_BASE_URL as dO, getZapierSdkService as dP, MAX_PAGE_LIMIT as dQ, DEFAULT_PAGE_SIZE as dR, DEFAULT_ACTION_TIMEOUT_MS as dS, ZAPIER_MAX_NETWORK_RETRIES as dT, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dU, MAX_CONCURRENCY_LIMIT as dV, parseConcurrencyEnvVar as dW, ZAPIER_MAX_CONCURRENT_REQUESTS as dX, getZapierApprovalMode as dY, getZapierDefaultApprovalMode as dZ, DEFAULT_APPROVAL_TIMEOUT_MS as d_, getTokenFromCliLogin as da, resolveAuthToken as db, invalidateCredentialsToken as dc, type ZapierCache as dd, type ZapierCacheEntry as de, type ZapierCacheSetOptions as df, createMemoryCache as dg, type SdkEvent as dh, type AuthEvent as di, type ApiEvent as dj, type LoadingEvent as dk, type EventCallback as dl, type Credentials as dm, type ResolvedCredentials as dn, type CredentialsObject as dp, type ClientCredentialsObject as dq, type PkceCredentialsObject as dr, isClientCredentials as ds, isPkceCredentials as dt, isCredentialsObject as du, isCredentialsFunction as dv, type ResolveCredentialsOptions as dw, resolveCredentialsFromEnv as dx, resolveCredentials as dy, getBaseUrlFromCredentials as dz, type PaginatedSdkResult as e, listTablesPlugin as e0, type ListTablesPluginProvides as e1, getTablePlugin as e2, type GetTablePluginProvides as e3, createTablePlugin as e4, type CreateTablePluginProvides as e5, deleteTablePlugin as e6, type DeleteTablePluginProvides as e7, listTableFieldsPlugin as e8, type ListTableFieldsPluginProvides as e9, buildMethodCalledEvent as eA, type BaseEvent as eB, type MethodCalledEvent as eC, generateEventId as eD, getCurrentTimestamp as eE, getReleaseId as eF, getOsInfo as eG, getPlatformVersions as eH, isCi as eI, getCiPlatform as eJ, getMemoryUsage as eK, getCpuTime as eL, createZapierSdk as eM, type ZapierSdk as eN, createTableFieldsPlugin as ea, type CreateTableFieldsPluginProvides as eb, deleteTableFieldsPlugin as ec, type DeleteTableFieldsPluginProvides as ed, getTableRecordPlugin as ee, type GetTableRecordPluginProvides as ef, listTableRecordsPlugin as eg, type ListTableRecordsPluginProvides as eh, createTableRecordsPlugin as ei, type CreateTableRecordsPluginProvides as ej, deleteTableRecordsPlugin as ek, type DeleteTableRecordsPluginProvides as el, updateTableRecordsPlugin as em, type UpdateTableRecordsPluginProvides as en, cleanupEventListeners as eo, type EventEmissionConfig as ep, eventEmissionPlugin as eq, type EventEmissionProvides as er, type EventContext as es, type ApplicationLifecycleEventData as et, type EnhancedErrorEventData as eu, type MethodCalledEventData as ev, buildApplicationLifecycleEvent as ew, buildErrorEventWithContext as ex, buildErrorEvent as ey, createBaseEvent 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
|
@@ -2578,6 +2578,21 @@ var triggerInboxResolver = {
|
|
|
2578
2578
|
})
|
|
2579
2579
|
};
|
|
2580
2580
|
|
|
2581
|
+
// src/resolvers/workflowId.ts
|
|
2582
|
+
var workflowIdResolver = {
|
|
2583
|
+
type: "dynamic",
|
|
2584
|
+
fetch: async (sdk) => toIterable(sdk.listWorkflows()),
|
|
2585
|
+
prompt: (workflows) => ({
|
|
2586
|
+
type: "list",
|
|
2587
|
+
name: "workflow",
|
|
2588
|
+
message: "Select a workflow:",
|
|
2589
|
+
choices: workflows.map((workflow) => ({
|
|
2590
|
+
name: workflow.enabled ? workflow.name : `${workflow.name} (disabled)`,
|
|
2591
|
+
value: workflow.id
|
|
2592
|
+
}))
|
|
2593
|
+
})
|
|
2594
|
+
};
|
|
2595
|
+
|
|
2581
2596
|
// src/resolvers/triggerMessages.ts
|
|
2582
2597
|
var triggerMessagesResolver = {
|
|
2583
2598
|
type: "dynamic",
|
|
@@ -6330,7 +6345,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6330
6345
|
}
|
|
6331
6346
|
|
|
6332
6347
|
// src/sdk-version.ts
|
|
6333
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6348
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.60.0" : void 0) || "unknown";
|
|
6334
6349
|
|
|
6335
6350
|
// src/utils/open-url.ts
|
|
6336
6351
|
var nodePrefix = "node:";
|
|
@@ -6475,6 +6490,18 @@ var pathConfig = {
|
|
|
6475
6490
|
"/trigger-inbox": {
|
|
6476
6491
|
authHeader: "Authorization",
|
|
6477
6492
|
pathPrefix: "/api/v0/sdk/trigger-inbox"
|
|
6493
|
+
},
|
|
6494
|
+
// e.g. /sdkdurableapi -> https://sdkapi.zapier.com/api/v0/sdk/sdkdurableapi/...
|
|
6495
|
+
// sdkapi proxies to the sdkdurableapi backend.
|
|
6496
|
+
"/sdkdurableapi": {
|
|
6497
|
+
authHeader: "Authorization",
|
|
6498
|
+
pathPrefix: "/api/v0/sdk/sdkdurableapi"
|
|
6499
|
+
},
|
|
6500
|
+
// e.g. /durableworkflowzaps -> https://sdkapi.zapier.com/api/v0/sdk/durableworkflowzaps/...
|
|
6501
|
+
// sdkapi proxies to the durableworkflowzaps backend.
|
|
6502
|
+
"/durableworkflowzaps": {
|
|
6503
|
+
authHeader: "Authorization",
|
|
6504
|
+
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
6478
6505
|
}
|
|
6479
6506
|
};
|
|
6480
6507
|
var ZapierApiClient = class {
|
|
@@ -8231,6 +8258,10 @@ var categoryDefinitions = {
|
|
|
8231
8258
|
},
|
|
8232
8259
|
table: { title: "Table" },
|
|
8233
8260
|
trigger: { title: "Trigger" },
|
|
8261
|
+
"code-workflow": {
|
|
8262
|
+
title: "Code Workflow",
|
|
8263
|
+
titlePlural: "Code Workflows"
|
|
8264
|
+
},
|
|
8234
8265
|
http: { title: "HTTP Request" },
|
|
8235
8266
|
utility: { title: "Utility", titlePlural: "Utilities" },
|
|
8236
8267
|
other: { title: "Other" }
|
|
@@ -9365,3 +9396,4 @@ exports.toTitleCase = toTitleCase;
|
|
|
9365
9396
|
exports.triggerInboxResolver = triggerInboxResolver;
|
|
9366
9397
|
exports.triggerMessagesResolver = triggerMessagesResolver;
|
|
9367
9398
|
exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
|
|
9399
|
+
exports.workflowIdResolver = workflowIdResolver;
|
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, dj 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, et as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, di as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eB as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, dq as ClientCredentialsObject, dB as ClientCredentialsObjectSchema, K as Connection, dJ as ConnectionEntry, dI as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dL as ConnectionsMap, dK as ConnectionsMapSchema, dN as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, eb as CreateTableFieldsPluginProvides, e5 as CreateTablePluginProvides, ej as CreateTableRecordsPluginProvides, dm as Credentials, dG as CredentialsFunction, dF as CredentialsFunctionSchema, dp as CredentialsObject, dD as CredentialsObjectSchema, dH as CredentialsSchema, dS as DEFAULT_ACTION_TIMEOUT_MS, d_ as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, d$ as DEFAULT_MAX_APPROVAL_RETRIES, dR as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, ed as DeleteTableFieldsPluginProvides, e7 as DeleteTablePluginProvides, el as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, eu as EnhancedErrorEventData, bC as ErrorOptions, dl as EventCallback, es as EventContext, ep as EventEmissionConfig, E as EventEmissionContext, er 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, e3 as GetTablePluginProvides, ef 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, e9 as ListTableFieldsPluginProvides, eh as ListTableRecordsPluginProvides, e1 as ListTablesPluginProvides, dk as LoadingEvent, dV as MAX_CONCURRENCY_LIMIT, dQ as MAX_PAGE_LIMIT, M as Manifest, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eC as MethodCalledEvent, ev 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, dr as PkceCredentialsObject, dC 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, d5 as ResolveAuthTokenOptions, dw as ResolveCredentialsOptions, R as ResolvedAppLocator, dn as ResolvedCredentials, dE as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dh 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, en as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, dO as ZAPIER_BASE_URL, dX as ZAPIER_MAX_CONCURRENT_REQUESTS, dT as ZAPIER_MAX_NETWORK_RETRIES, dU 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, dd as ZapierCache, de as ZapierCacheEntry, df 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, eN 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, ew as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, ey as buildErrorEvent, ex as buildErrorEventWithContext, eA as buildMethodCalledEvent, eo as cleanupEventListeners, d6 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dM as connectionsPlugin, ez as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, dg as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, ea as createTableFieldsPlugin, e4 as createTablePlugin, ei as createTableRecordsPlugin, ax as createZapierApi, eM as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, ec as deleteTableFieldsPlugin, e6 as deleteTablePlugin, ek as deleteTableRecordsPlugin, eq as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, f as findManifestEntry, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eD as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dz as getBaseUrlFromCredentials, eJ as getCiPlatform, dA as getClientIdFromCredentials, cn as getConnectionPlugin, eL as getCpuTime, eE as getCurrentTimestamp, eK as getMemoryUsage, ay as getOrCreateApiClient, eG as getOsInfo, eH as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eF as getReleaseId, e2 as getTablePlugin, ee as getTableRecordPlugin, da as getTokenFromCliLogin, dY as getZapierApprovalMode, dZ as getZapierDefaultApprovalMode, dP as getZapierSdkService, d8 as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, d7 as invalidateCachedToken, dc as invalidateCredentialsToken, eI as isCi, d9 as isCliLoginAvailable, ds as isClientCredentials, dv as isCredentialsFunction, du as isCredentialsObject, dt as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, e8 as listTableFieldsPlugin, eg as listTableRecordsPlugin, e0 as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dW as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, db as resolveAuthToken, dy as resolveCredentials, dx as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, c_ as tableFieldIdsResolver, d0 as tableFieldsResolver, d3 as tableFiltersResolver, cU as tableIdResolver, c$ as tableNameResolver, cY as tableRecordIdResolver, cZ as tableRecordIdsResolver, d1 as tableRecordsResolver, d4 as tableSortResolver, d2 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, cX as triggerMessagesResolver, em as updateTableRecordsPlugin, cW as workflowIdResolver } from './index-iKbnOz6r.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
|
@@ -2576,6 +2576,21 @@ var triggerInboxResolver = {
|
|
|
2576
2576
|
})
|
|
2577
2577
|
};
|
|
2578
2578
|
|
|
2579
|
+
// src/resolvers/workflowId.ts
|
|
2580
|
+
var workflowIdResolver = {
|
|
2581
|
+
type: "dynamic",
|
|
2582
|
+
fetch: async (sdk) => toIterable(sdk.listWorkflows()),
|
|
2583
|
+
prompt: (workflows) => ({
|
|
2584
|
+
type: "list",
|
|
2585
|
+
name: "workflow",
|
|
2586
|
+
message: "Select a workflow:",
|
|
2587
|
+
choices: workflows.map((workflow) => ({
|
|
2588
|
+
name: workflow.enabled ? workflow.name : `${workflow.name} (disabled)`,
|
|
2589
|
+
value: workflow.id
|
|
2590
|
+
}))
|
|
2591
|
+
})
|
|
2592
|
+
};
|
|
2593
|
+
|
|
2579
2594
|
// src/resolvers/triggerMessages.ts
|
|
2580
2595
|
var triggerMessagesResolver = {
|
|
2581
2596
|
type: "dynamic",
|
|
@@ -6328,7 +6343,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
6328
6343
|
}
|
|
6329
6344
|
|
|
6330
6345
|
// src/sdk-version.ts
|
|
6331
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6346
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.60.0" : void 0) || "unknown";
|
|
6332
6347
|
|
|
6333
6348
|
// src/utils/open-url.ts
|
|
6334
6349
|
var nodePrefix = "node:";
|
|
@@ -6473,6 +6488,18 @@ var pathConfig = {
|
|
|
6473
6488
|
"/trigger-inbox": {
|
|
6474
6489
|
authHeader: "Authorization",
|
|
6475
6490
|
pathPrefix: "/api/v0/sdk/trigger-inbox"
|
|
6491
|
+
},
|
|
6492
|
+
// e.g. /sdkdurableapi -> https://sdkapi.zapier.com/api/v0/sdk/sdkdurableapi/...
|
|
6493
|
+
// sdkapi proxies to the sdkdurableapi backend.
|
|
6494
|
+
"/sdkdurableapi": {
|
|
6495
|
+
authHeader: "Authorization",
|
|
6496
|
+
pathPrefix: "/api/v0/sdk/sdkdurableapi"
|
|
6497
|
+
},
|
|
6498
|
+
// e.g. /durableworkflowzaps -> https://sdkapi.zapier.com/api/v0/sdk/durableworkflowzaps/...
|
|
6499
|
+
// sdkapi proxies to the durableworkflowzaps backend.
|
|
6500
|
+
"/durableworkflowzaps": {
|
|
6501
|
+
authHeader: "Authorization",
|
|
6502
|
+
pathPrefix: "/api/v0/sdk/durableworkflowzaps"
|
|
6476
6503
|
}
|
|
6477
6504
|
};
|
|
6478
6505
|
var ZapierApiClient = class {
|
|
@@ -8229,6 +8256,10 @@ var categoryDefinitions = {
|
|
|
8229
8256
|
},
|
|
8230
8257
|
table: { title: "Table" },
|
|
8231
8258
|
trigger: { title: "Trigger" },
|
|
8259
|
+
"code-workflow": {
|
|
8260
|
+
title: "Code Workflow",
|
|
8261
|
+
titlePlural: "Code Workflows"
|
|
8262
|
+
},
|
|
8232
8263
|
http: { title: "HTTP Request" },
|
|
8233
8264
|
utility: { title: "Utility", titlePlural: "Utilities" },
|
|
8234
8265
|
other: { title: "Other" }
|
|
@@ -9174,4 +9205,4 @@ var registryPlugin = definePlugin((_sdk) => {
|
|
|
9174
9205
|
return {};
|
|
9175
9206
|
});
|
|
9176
9207
|
|
|
9177
|
-
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, 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 };
|
|
9208
|
+
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, 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 };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const getWorkflowPlugin: (sdk: {
|
|
2
|
+
context: {
|
|
3
|
+
api: import("../../..").ApiClient;
|
|
4
|
+
resolveCredentials: () => Promise<string | {
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
type?: "client_credentials" | undefined;
|
|
8
|
+
baseUrl?: string | undefined;
|
|
9
|
+
scope?: string | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
clientId: string;
|
|
12
|
+
type?: "pkce" | undefined;
|
|
13
|
+
baseUrl?: string | undefined;
|
|
14
|
+
scope?: string | undefined;
|
|
15
|
+
} | undefined>;
|
|
16
|
+
};
|
|
17
|
+
} & {
|
|
18
|
+
context: import("../../eventEmission").EventEmissionContext;
|
|
19
|
+
} & {
|
|
20
|
+
context: {
|
|
21
|
+
meta: Record<string, import("../../..").PluginMeta>;
|
|
22
|
+
};
|
|
23
|
+
}) => {
|
|
24
|
+
getWorkflow: (options?: {
|
|
25
|
+
workflow: string;
|
|
26
|
+
} | undefined) => Promise<{
|
|
27
|
+
data: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string | null;
|
|
31
|
+
trigger_url: string;
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
created_at: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
current_version?: {
|
|
36
|
+
id: string;
|
|
37
|
+
workflow_id: string;
|
|
38
|
+
source_files: Record<string, string>;
|
|
39
|
+
zapier_durable_version: string;
|
|
40
|
+
dependencies: Record<string, string> | null;
|
|
41
|
+
created_by_user_id: string;
|
|
42
|
+
created_at: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
} & {
|
|
47
|
+
context: {
|
|
48
|
+
meta: {
|
|
49
|
+
getWorkflow: import("../../..").PluginMeta;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export type GetWorkflowPluginProvides = ReturnType<typeof getWorkflowPlugin>;
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|