@zapier/zapier-sdk 0.52.0 → 0.54.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +57 -0
  3. package/dist/experimental.cjs +121 -39
  4. package/dist/experimental.d.mts +31 -2
  5. package/dist/experimental.d.ts +28 -0
  6. package/dist/experimental.d.ts.map +1 -1
  7. package/dist/experimental.js +2 -0
  8. package/dist/experimental.mjs +121 -40
  9. package/dist/{index-DcdtPei-.d.mts → index-SDDmBk2j.d.mts} +105 -10
  10. package/dist/{index-DcdtPei-.d.ts → index-SDDmBk2j.d.ts} +105 -10
  11. package/dist/index.cjs +75 -27
  12. package/dist/index.d.mts +2 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.mjs +75 -28
  16. package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
  17. package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +2 -1
  18. package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
  19. package/dist/plugins/triggers/createTriggerInbox/index.js +1 -4
  20. package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
  21. package/dist/plugins/triggers/ensureTriggerInbox/index.js +1 -4
  22. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
  23. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +5 -1
  24. package/dist/plugins/triggers/listTriggers/index.d.ts +70 -0
  25. package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -0
  26. package/dist/plugins/triggers/listTriggers/index.js +25 -0
  27. package/dist/plugins/triggers/listTriggers/schemas.d.ts +11 -0
  28. package/dist/plugins/triggers/listTriggers/schemas.d.ts.map +1 -0
  29. package/dist/plugins/triggers/listTriggers/schemas.js +18 -0
  30. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
  31. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +2 -1
  32. package/dist/resolvers/appKey.d.ts +7 -2
  33. package/dist/resolvers/appKey.d.ts.map +1 -1
  34. package/dist/resolvers/appKey.js +46 -3
  35. package/dist/resolvers/index.d.ts +1 -0
  36. package/dist/resolvers/index.d.ts.map +1 -1
  37. package/dist/resolvers/index.js +1 -0
  38. package/dist/resolvers/triggerMessages.d.ts +6 -0
  39. package/dist/resolvers/triggerMessages.d.ts.map +1 -0
  40. package/dist/resolvers/triggerMessages.js +22 -0
  41. package/dist/schemas/App.d.ts.map +1 -1
  42. package/dist/schemas/App.js +2 -11
  43. package/dist/utils/domain-utils.d.ts +4 -0
  44. package/dist/utils/domain-utils.d.ts.map +1 -1
  45. package/dist/utils/domain-utils.js +5 -0
  46. package/dist/utils/schema-utils.d.ts +80 -8
  47. package/dist/utils/schema-utils.d.ts.map +1 -1
  48. package/package.json +1 -1
@@ -1397,6 +1397,18 @@ var FetchInitSchema = z.object({
1397
1397
  aliases: { connectionId: "connection", authenticationId: "connection" }
1398
1398
  });
1399
1399
 
1400
+ // src/utils/string-utils.ts
1401
+ function toTitleCase(input) {
1402
+ return input.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-]+/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
1403
+ }
1404
+ function toSnakeCase(input) {
1405
+ let result = input.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s\-]+/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").toLowerCase();
1406
+ if (/^[0-9]/.test(result)) {
1407
+ result = "_" + result;
1408
+ }
1409
+ return result;
1410
+ }
1411
+
1400
1412
  // src/utils/domain-utils.ts
1401
1413
  function isConnectionId(value) {
1402
1414
  return /^\d+$/.test(value) || isUuid(value);
@@ -1543,6 +1555,12 @@ function toAppLocator(appKey) {
1543
1555
  function isResolvedAppLocator(appLocator) {
1544
1556
  return !!appLocator.implementationName;
1545
1557
  }
1558
+ function getAppKeyList(app) {
1559
+ const keys = new Set(
1560
+ [app.slug, toSnakeCase(app.slug), app.key].filter(Boolean)
1561
+ );
1562
+ return Array.from(keys);
1563
+ }
1546
1564
 
1547
1565
  // src/utils/abort-utils.ts
1548
1566
  function getAbortSignalApi() {
@@ -2861,7 +2879,7 @@ async function invalidateCredentialsToken(options) {
2861
2879
  }
2862
2880
 
2863
2881
  // src/sdk-version.ts
2864
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.52.0" : void 0) || "unknown";
2882
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.54.0" : void 0) || "unknown";
2865
2883
 
2866
2884
  // src/utils/open-url.ts
2867
2885
  var nodePrefix = "node:";
@@ -3856,34 +3874,12 @@ var ListAppsSchema = ListAppsQuerySchema.omit({
3856
3874
  // SDK specific property for pagination/iterable helpers
3857
3875
  cursor: z.string().optional().describe("Cursor to start from")
3858
3876
  }).describe("List all available apps with optional filtering");
3859
-
3860
- // src/utils/string-utils.ts
3861
- function toTitleCase(input) {
3862
- return input.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-]+/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
3863
- }
3864
- function toSnakeCase(input) {
3865
- let result = input.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s\-]+/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").toLowerCase();
3866
- if (/^[0-9]/.test(result)) {
3867
- result = "_" + result;
3868
- }
3869
- return result;
3870
- }
3871
-
3872
- // src/schemas/App.ts
3873
3877
  var AppItemSchema = withFormatter(AppItemSchema$1, {
3874
3878
  format: (item) => {
3875
- const additionalKeys = [];
3876
- if (item.slug && item.slug !== item.key) {
3877
- additionalKeys.push(item.slug);
3878
- const snakeCaseSlug = toSnakeCase(item.slug);
3879
- if (snakeCaseSlug !== item.slug && snakeCaseSlug !== item.key) {
3880
- additionalKeys.push(snakeCaseSlug);
3881
- }
3882
- }
3883
3879
  return {
3884
3880
  title: item.title,
3885
3881
  key: item.key,
3886
- keys: [item.key, ...additionalKeys],
3882
+ keys: getAppKeyList(item),
3887
3883
  description: item.description,
3888
3884
  details: []
3889
3885
  };
@@ -3953,9 +3949,37 @@ var GetAppInputSchema = z.union([GetAppSchema, GetAppSchemaDeprecated]).describe
3953
3949
 
3954
3950
  // src/resolvers/appKey.ts
3955
3951
  var appKeyResolver = {
3956
- type: "static",
3957
- inputType: "text",
3958
- placeholder: "Enter app key (e.g., 'SlackCLIAPI' or slug like 'github')"
3952
+ type: "dynamic",
3953
+ inputType: "search",
3954
+ placeholder: "e.g., 'slack' or 'SlackCLIAPI' or 'mail'",
3955
+ // Try the user's typed string as an exact app locator first; getApp accepts
3956
+ // a slug, key, or implementation id. If that hits, short-circuit with the
3957
+ // input — every variant the user could have typed is already a valid value
3958
+ // anywhere else app is required, so no canonicalization needed here. If
3959
+ // getApp 404s, fall back to a search; any other error (auth, network,
3960
+ // rate-limit) propagates so the user sees the real problem.
3961
+ fetch: async (sdk, { search }) => {
3962
+ if (!search) return [];
3963
+ try {
3964
+ await sdk.getApp({ app: search });
3965
+ return search;
3966
+ } catch (err) {
3967
+ if (!(err instanceof ZapierAppNotFoundError) && !(err instanceof ZapierNotFoundError)) {
3968
+ throw err;
3969
+ }
3970
+ }
3971
+ const page = await sdk.listApps({ search });
3972
+ return page.data;
3973
+ },
3974
+ prompt: (apps) => ({
3975
+ type: "list",
3976
+ name: "app",
3977
+ message: "Select app:",
3978
+ choices: apps.map((app) => ({
3979
+ name: app.title ? `${app.title} (${getAppKeyList(app).join(", ")})` : app.key,
3980
+ value: app.key
3981
+ }))
3982
+ })
3959
3983
  };
3960
3984
 
3961
3985
  // src/resolvers/actionType.ts
@@ -4220,6 +4244,29 @@ var triggerInboxResolver = {
4220
4244
  }))
4221
4245
  })
4222
4246
  };
4247
+
4248
+ // src/resolvers/triggerMessages.ts
4249
+ var triggerMessagesResolver = {
4250
+ type: "dynamic",
4251
+ depends: ["inbox"],
4252
+ fetch: async (sdk, params) => toIterable(
4253
+ sdk.listTriggerInboxMessages({
4254
+ inbox: params.inbox
4255
+ })
4256
+ ),
4257
+ prompt: (messages) => ({
4258
+ type: "checkbox",
4259
+ name: "messages",
4260
+ message: "Select messages:",
4261
+ // Only leased messages are eligible to ack or release. Acked messages
4262
+ // are gone from the inbox already; available/quarantined ones can't be
4263
+ // operated on by these methods.
4264
+ choices: messages.filter((message) => message.status === "leased").map((message) => ({
4265
+ name: `${message.id} (${message.status}, lease_count: ${message.message_attributes.lease_count})`,
4266
+ value: message.id
4267
+ }))
4268
+ })
4269
+ };
4223
4270
  function formatFieldValue(v) {
4224
4271
  if (v == null) return "";
4225
4272
  if (typeof v === "object") {
@@ -9013,15 +9060,13 @@ var createTriggerInboxPlugin = definePlugin(
9013
9060
  subscription: {
9014
9061
  app_key: selectedApi,
9015
9062
  action_key: actionKey,
9016
- inputs
9063
+ inputs,
9064
+ connection_id: resolvedConnectionId ?? null
9017
9065
  }
9018
9066
  };
9019
9067
  if (notificationUrl !== void 0) {
9020
9068
  requestBody.notification_url = notificationUrl;
9021
9069
  }
9022
- if (resolvedConnectionId !== void 0 && resolvedConnectionId !== null) {
9023
- requestBody.subscription.connection_id = resolvedConnectionId;
9024
- }
9025
9070
  const rawResponse = await api.post(
9026
9071
  "/trigger-inbox/api/v1/inboxes",
9027
9072
  requestBody,
@@ -9102,15 +9147,13 @@ var ensureTriggerInboxPlugin = definePlugin(
9102
9147
  subscription: {
9103
9148
  app_key: selectedApi,
9104
9149
  action_key: actionKey,
9105
- inputs
9150
+ inputs,
9151
+ connection_id: resolvedConnectionId ?? null
9106
9152
  }
9107
9153
  };
9108
9154
  if (notificationUrl !== void 0) {
9109
9155
  requestBody.notification_url = notificationUrl;
9110
9156
  }
9111
- if (resolvedConnectionId !== void 0 && resolvedConnectionId !== null) {
9112
- requestBody.subscription.connection_id = resolvedConnectionId;
9113
- }
9114
9157
  const rawResponse = await api.post(
9115
9158
  "/trigger-inbox/api/v1/inboxes",
9116
9159
  requestBody,
@@ -9571,7 +9614,11 @@ var leaseTriggerInboxMessagesPlugin = definePlugin(
9571
9614
  itemType: "TriggerInboxLease",
9572
9615
  inputSchema: LeaseTriggerInboxMessagesSchema,
9573
9616
  outputSchema: LeaseTriggerInboxMessagesItemSchema,
9574
- resolvers: { inbox: triggerInboxResolver },
9617
+ resolvers: {
9618
+ inbox: triggerInboxResolver,
9619
+ leaseLimit: { type: "static", inputType: "text" },
9620
+ leaseSeconds: { type: "static", inputType: "text" }
9621
+ },
9575
9622
  handler: async ({ sdk: sdk2, options }) => {
9576
9623
  const { inbox, leaseLimit, leaseSeconds, signal } = options;
9577
9624
  const inboxId = await resolveTriggerInboxId({
@@ -9635,7 +9682,8 @@ var ackTriggerInboxMessagesPlugin = definePlugin(
9635
9682
  // No way to look up a lease — leases are short-lived, only the
9636
9683
  // most recent leaseTriggerInboxMessages caller knows the ID.
9637
9684
  // Static resolver prompts for free-text input.
9638
- lease: { type: "static", inputType: "text" }
9685
+ lease: { type: "static", inputType: "text" },
9686
+ messages: triggerMessagesResolver
9639
9687
  },
9640
9688
  handler: async ({ sdk: sdk2, options }) => {
9641
9689
  const { inbox, lease, messages } = options;
@@ -9686,7 +9734,8 @@ var releaseTriggerInboxMessagesPlugin = definePlugin(
9686
9734
  // No way to look up a lease — leases are short-lived, only the
9687
9735
  // most recent leaseTriggerInboxMessages caller knows the ID.
9688
9736
  // Static resolver prompts for free-text input.
9689
- lease: { type: "static", inputType: "text" }
9737
+ lease: { type: "static", inputType: "text" },
9738
+ messages: triggerMessagesResolver
9690
9739
  },
9691
9740
  handler: async ({ sdk: sdk2, options }) => {
9692
9741
  const { inbox, lease, messages } = options;
@@ -10223,6 +10272,38 @@ var watchTriggerInboxPlugin = definePlugin(
10223
10272
  };
10224
10273
  }
10225
10274
  );
10275
+ var ListTriggersSchema = z.object({
10276
+ app: AppPropertySchema.describe(
10277
+ "App key of triggers to list (e.g., 'SlackCLIAPI' or slug like 'github')"
10278
+ ),
10279
+ pageSize: z.number().min(1).optional().describe("Number of triggers per page"),
10280
+ maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages"),
10281
+ cursor: z.string().optional().describe("Cursor to start from")
10282
+ }).describe("List all triggers for a specific app");
10283
+
10284
+ // src/plugins/triggers/listTriggers/index.ts
10285
+ var listTriggersPlugin = definePlugin(
10286
+ (sdk) => createPaginatedPluginMethod(sdk, {
10287
+ ...triggersDefaults,
10288
+ name: "listTriggers",
10289
+ type: "list",
10290
+ itemType: "Action",
10291
+ inputSchema: ListTriggersSchema,
10292
+ outputSchema: ActionItemSchema,
10293
+ defaultPageSize: DEFAULT_PAGE_SIZE,
10294
+ resolvers: { app: appKeyResolver },
10295
+ handler: async ({
10296
+ sdk: sdk2,
10297
+ options
10298
+ }) => {
10299
+ const result = await sdk2.listActions({
10300
+ ...options,
10301
+ actionType: "read"
10302
+ });
10303
+ return { data: result.data, nextCursor: result.nextCursor };
10304
+ }
10305
+ })
10306
+ );
10226
10307
  var ListTriggerInputFieldsSchema = z.object({
10227
10308
  app: AppPropertySchema,
10228
10309
  action: ActionPropertySchema,
@@ -10514,7 +10595,7 @@ var registryPlugin = definePlugin((_sdk) => {
10514
10595
 
10515
10596
  // src/experimental.ts
10516
10597
  function createZapierSdk2(options = {}) {
10517
- 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(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);
10598
+ 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);
10518
10599
  }
10519
10600
 
10520
- 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, 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, 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, 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, updateTableRecordsPlugin };
10601
+ 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, 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, 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, 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 };
@@ -3,6 +3,7 @@ import { z } from 'zod';
3
3
  import { ConnectionSchema, ConnectionsResponseSchema } from '@zapier/zapier-sdk-core/v0/schemas/connections';
4
4
  import { RequestContext } from '@zapier/policy-context';
5
5
  import * as zod_v4_core from 'zod/v4/core';
6
+ import { AppItem as AppItem$1 } from '@zapier/zapier-sdk-core/v0/schemas/apps';
6
7
  import * as _zapier_zapier_sdk_cli_login from '@zapier/zapier-sdk-cli/login';
7
8
 
8
9
  declare const AppKeyPropertySchema: z.ZodString & {
@@ -5238,8 +5239,17 @@ interface PromptConfig {
5238
5239
  }>;
5239
5240
  default?: unknown;
5240
5241
  filter?: (value: unknown) => unknown;
5242
+ /**
5243
+ * Return `true` for valid; a string for a custom invalid message; or
5244
+ * `false` for invalid with a generic fallback message ("X: invalid
5245
+ * value."). Prefer returning a string so users see something specific.
5246
+ */
5241
5247
  validate?: (value: unknown) => boolean | string;
5242
5248
  }
5249
+ /** A PromptConfig narrowed to single-select list mode. */
5250
+ type ListPromptConfig = PromptConfig & {
5251
+ type: "list";
5252
+ };
5243
5253
  interface Resolver {
5244
5254
  type: string;
5245
5255
  depends?: readonly string[] | string[];
@@ -5267,15 +5277,11 @@ interface ConstantResolver extends Resolver {
5267
5277
  type: "constant";
5268
5278
  value: unknown;
5269
5279
  }
5270
- interface DynamicResolver<TItem = unknown, TParams = Record<string, unknown>> extends Resolver {
5280
+ /**
5281
+ * Fields shared by both variants of {@link DynamicResolver}.
5282
+ */
5283
+ interface DynamicResolverBase<TItem, TParams> extends Resolver {
5271
5284
  type: "dynamic";
5272
- fetch: (sdk: ZapierSdk, resolvedParams: TParams) => PromiseLike<TItem[] | {
5273
- data: TItem[];
5274
- nextCursor?: string;
5275
- } | AsyncIterable<{
5276
- data: TItem[];
5277
- nextCursor?: string;
5278
- }>>;
5279
5285
  prompt: (items: TItem[], params: TParams) => PromptConfig;
5280
5286
  /** Capabilities that expand results. The parameter resolver shows a hint for any that aren't enabled. */
5281
5287
  requireCapabilities?: string[];
@@ -5290,6 +5296,72 @@ interface DynamicResolver<TItem = unknown, TParams = Record<string, unknown>> ex
5290
5296
  resolvedValue: unknown;
5291
5297
  } | null>;
5292
5298
  }
5299
+ /**
5300
+ * The classic dynamic-resolver variant: `fetch` returns a list of items
5301
+ * that the CLI renders as a search-filterable dropdown. The user picks one.
5302
+ */
5303
+ interface DynamicListResolver<TItem, TParams> extends DynamicResolverBase<TItem, TParams> {
5304
+ /** Explicitly absent on the list variant — set `inputType: "search"` to opt into the search variant. */
5305
+ inputType?: never;
5306
+ /** Only meaningful for the search variant; set to `never` here so TS catches misuse. */
5307
+ placeholder?: never;
5308
+ fetch: (sdk: ZapierSdk, resolvedParams: TParams) => PromiseLike<TItem[] | {
5309
+ data: TItem[];
5310
+ nextCursor?: string;
5311
+ } | AsyncIterable<{
5312
+ data: TItem[];
5313
+ nextCursor?: string;
5314
+ }>>;
5315
+ }
5316
+ /**
5317
+ * The search-input variant: the CLI prompts the user for free-form text
5318
+ * first, then calls `fetch` with `{ ...resolvedParams, search }`.
5319
+ *
5320
+ * `fetch` can short-circuit by returning a primitive (`string | number`),
5321
+ * which the CLI treats as an exact match — no dropdown is rendered. Any
5322
+ * other return (array, page, async iterable) is rendered as the normal
5323
+ * search-filterable dropdown.
5324
+ *
5325
+ * The `search` key is injected by the CLI at call time; it isn't part of
5326
+ * `TParams` because callers that invoke `fetch` directly (outside the CLI)
5327
+ * are responsible for passing it themselves. Search-mode resolvers should
5328
+ * type `TParams` as `{ search?: string; ...otherDeps }` to make this
5329
+ * explicit.
5330
+ */
5331
+ interface DynamicSearchResolver<TItem, TParams> extends Omit<DynamicResolverBase<TItem, TParams>, "prompt"> {
5332
+ inputType: "search";
5333
+ /**
5334
+ * Hint text appended to the search prompt's message. NOT used as
5335
+ * inquirer's `default` value, because inquirer prefills `default` as
5336
+ * editable text that the user has to delete before typing.
5337
+ */
5338
+ placeholder?: string;
5339
+ /**
5340
+ * Search-mode always renders a single-select @inquirer/search dropdown,
5341
+ * so `prompt` must return a list-typed PromptConfig. Checkbox/confirm
5342
+ * configs would be silently ignored at runtime; the type narrows so
5343
+ * misuse fails at compile time.
5344
+ *
5345
+ * Note: a primitive return from `fetch` (string | number) is treated
5346
+ * as an exact match and short-circuits without running this prompt or
5347
+ * the resolver's validate/filter. Canonicalize inside `fetch` if the
5348
+ * exact-match path needs normalization.
5349
+ */
5350
+ prompt: (items: TItem[], params: TParams) => ListPromptConfig;
5351
+ fetch: (sdk: ZapierSdk, resolvedParams: TParams) => PromiseLike<string | number | TItem[] | {
5352
+ data: TItem[];
5353
+ nextCursor?: string;
5354
+ } | AsyncIterable<{
5355
+ data: TItem[];
5356
+ nextCursor?: string;
5357
+ }>>;
5358
+ }
5359
+ /**
5360
+ * A dynamic resolver — either a classic list (`inputType` absent) or a
5361
+ * search-input variant (`inputType: "search"`). The discriminator is the
5362
+ * `inputType` field; TS narrows to the right variant when you check it.
5363
+ */
5364
+ type DynamicResolver<TItem = unknown, TParams = Record<string, unknown>> = DynamicListResolver<TItem, TParams> | DynamicSearchResolver<TItem, TParams>;
5293
5365
  interface ResolverFieldItem {
5294
5366
  type: string;
5295
5367
  key: string;
@@ -5798,6 +5870,22 @@ declare const TriggerMessageStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
5798
5870
  quarantined: "quarantined";
5799
5871
  }>, z.ZodString]>;
5800
5872
  type TriggerMessageStatus = z.infer<typeof TriggerMessageStatusSchema>;
5873
+ declare const TriggerMessageItemSchema: z.ZodObject<{
5874
+ id: z.ZodString;
5875
+ created_at: z.ZodString;
5876
+ status: z.ZodUnion<readonly [z.ZodEnum<{
5877
+ available: "available";
5878
+ leased: "leased";
5879
+ acked: "acked";
5880
+ quarantined: "quarantined";
5881
+ }>, z.ZodString]>;
5882
+ message_attributes: z.ZodObject<{
5883
+ lease_count: z.ZodNumber;
5884
+ error_message: z.ZodNullable<z.ZodString>;
5885
+ possible_duplicate_data: z.ZodBoolean;
5886
+ }, z.core.$strip>;
5887
+ }, z.core.$strip>;
5888
+ type TriggerMessageItem = z.infer<typeof TriggerMessageItemSchema>;
5801
5889
  declare const LeasedTriggerMessageItemSchema: z.ZodObject<{
5802
5890
  id: z.ZodString;
5803
5891
  created_at: z.ZodString;
@@ -8339,7 +8427,10 @@ interface BatchOptions {
8339
8427
  */
8340
8428
  declare function batch<T>(tasks: (() => Promise<T>)[], options?: BatchOptions): Promise<PromiseSettledResult<T>[]>;
8341
8429
 
8342
- declare const appKeyResolver: StaticResolver;
8430
+ type AppKeyResolver = DynamicResolver<AppItem$1, {
8431
+ search?: string;
8432
+ }>;
8433
+ declare const appKeyResolver: AppKeyResolver;
8343
8434
 
8344
8435
  interface ActionTypeItem {
8345
8436
  key: string;
@@ -8458,6 +8549,10 @@ type TriggerInboxItem = z.infer<typeof TriggerInboxItemSchema>;
8458
8549
 
8459
8550
  declare const triggerInboxResolver: DynamicResolver<TriggerInboxItem, {}>;
8460
8551
 
8552
+ declare const triggerMessagesResolver: DynamicResolver<TriggerMessageItem, {
8553
+ inbox: string;
8554
+ }>;
8555
+
8461
8556
  declare const RecordItemSchema: z.ZodObject<{
8462
8557
  id: z.ZodString;
8463
8558
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -9665,4 +9760,4 @@ declare const registryPlugin: (sdk: {
9665
9760
  };
9666
9761
  }) => {};
9667
9762
 
9668
- 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, type PaginatedSdkFunction as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type FieldsResolver as a3, runWithTelemetryContext as a4, toSnakeCase as a5, toTitleCase as a6, batch as a7, type BatchOptions as a8, buildCapabilityMessage as a9, type EventContext as aA, type ApplicationLifecycleEventData as aB, type EnhancedErrorEventData as aC, type MethodCalledEventData as aD, generateEventId as aE, getCurrentTimestamp as aF, getReleaseId as aG, getOsInfo as aH, getPlatformVersions as aI, isCi as aJ, getCiPlatform as aK, getMemoryUsage as aL, getCpuTime as aM, buildApplicationLifecycleEvent as aN, buildErrorEventWithContext as aO, buildErrorEvent as aP, createBaseEvent as aQ, buildMethodCalledEvent as aR, type AppItem as aS, type ConnectionItem as aT, type ActionItem$1 as aU, type InputFieldItem as aV, type InfoFieldItem as aW, type RootFieldItem as aX, type UserProfileItem as aY, type FunctionOptions as aZ, type SdkPage as a_, logDeprecation as aa, resetDeprecationWarnings as ab, RelayRequestSchema as ac, RelayFetchSchema as ad, createZapierSdkWithoutRegistry as ae, createSdk as af, createOptionsPlugin as ag, type FunctionRegistryEntry as ah, type FunctionDeprecation as ai, BaseSdkOptionsSchema as aj, type Plugin as ak, type PluginProvides as al, definePlugin as am, createPluginMethod as an, createPaginatedPluginMethod as ao, composePlugins as ap, type ActionItem as aq, type ActionTypeItem as ar, registryPlugin as as, type RequestOptions as at, type PollOptions as au, createZapierApi as av, getOrCreateApiClient as aw, type BaseEvent as ax, type MethodCalledEvent as ay, type EventEmissionProvides as az, type AddActionEntryOptions as b, ZapierAuthenticationError as b$, AppKeyPropertySchema as b0, AppPropertySchema as b1, ActionTypePropertySchema as b2, ActionKeyPropertySchema as b3, ActionPropertySchema as b4, InputFieldPropertySchema as b5, ConnectionIdPropertySchema as b6, AuthenticationIdPropertySchema as b7, ConnectionPropertySchema as b8, InputsPropertySchema as b9, type AuthenticationIdProperty as bA, type InputsProperty as bB, type LimitProperty as bC, type OffsetProperty as bD, type OutputProperty as bE, type DebugProperty as bF, type ParamsProperty as bG, type ActionTimeoutMsProperty as bH, type TableProperty as bI, type RecordProperty as bJ, type RecordsProperty as bK, type FieldsProperty as bL, type AppsProperty as bM, type TablesProperty as bN, type ConnectionsProperty as bO, type TriggerInboxProperty as bP, type TriggerInboxNameProperty as bQ, type LeaseProperty as bR, type LeaseSecondsProperty as bS, type LeaseLimitProperty as bT, type ApiError as bU, type ErrorOptions as bV, ZapierError as bW, ZapierApiError as bX, ZapierAppNotFoundError as bY, ZapierValidationError as bZ, ZapierUnknownError as b_, LimitPropertySchema as ba, OffsetPropertySchema as bb, OutputPropertySchema as bc, DebugPropertySchema as bd, ParamsPropertySchema as be, ActionTimeoutMsPropertySchema as bf, TablePropertySchema as bg, RecordPropertySchema as bh, RecordsPropertySchema as bi, FieldsPropertySchema as bj, AppsPropertySchema as bk, TablesPropertySchema as bl, ConnectionsPropertySchema as bm, TriggerInboxPropertySchema as bn, TriggerInboxNamePropertySchema as bo, LeasePropertySchema as bp, LeaseSecondsPropertySchema as bq, LeaseLimitPropertySchema as br, type AppKeyProperty as bs, type AppProperty as bt, type ActionTypeProperty as bu, type ActionKeyProperty as bv, type ActionProperty as bw, type InputFieldProperty as bx, type ConnectionIdProperty as by, type ConnectionProperty as bz, type AddActionEntryResult as c, apiPlugin as c$, ZapierNotFoundError as c0, ZapierResourceNotFoundError as c1, ZapierConfigurationError as c2, ZapierBundleError as c3, ZapierTimeoutError as c4, ZapierActionError as c5, ZapierConflictError as c6, type RateLimitInfo as c7, ZapierRateLimitError as c8, type ApprovalStatus as c9, deleteClientCredentialsPlugin as cA, type DeleteClientCredentialsPluginProvides as cB, getAppPlugin as cC, type GetAppPluginProvides as cD, getActionPlugin as cE, type GetActionPluginProvides as cF, getConnectionPlugin as cG, type GetConnectionPluginProvides as cH, findFirstConnectionPlugin as cI, type FindFirstConnectionPluginProvides as cJ, findUniqueConnectionPlugin as cK, type FindUniqueConnectionPluginProvides as cL, CONTEXT_CACHE_TTL_MS as cM, CONTEXT_CACHE_MAX_SIZE as cN, runActionPlugin as cO, type RunActionPluginProvides as cP, requestPlugin as cQ, type RequestPluginProvides as cR, type ManifestPluginOptions as cS, getPreferredManifestEntryKey as cT, manifestPlugin as cU, type ManifestPluginProvides as cV, DEFAULT_CONFIG_PATH as cW, type ManifestEntry as cX, getProfilePlugin as cY, type GetProfilePluginProvides as cZ, type ApiPluginOptions as c_, ZapierApprovalError as ca, ZapierRelayError as cb, formatErrorMessage as cc, ZapierSignal as cd, appsPlugin as ce, type AppsPluginProvides as cf, type ActionExecutionOptions as cg, type AppFactoryInput as ch, fetchPlugin as ci, type FetchPluginProvides as cj, listAppsPlugin as ck, type ListAppsPluginProvides as cl, listActionsPlugin as cm, type ListActionsPluginProvides as cn, listActionInputFieldsPlugin as co, type ListActionInputFieldsPluginProvides as cp, listActionInputFieldChoicesPlugin as cq, type ListActionInputFieldChoicesPluginProvides as cr, getActionInputFieldsSchemaPlugin as cs, type GetActionInputFieldsSchemaPluginProvides as ct, listConnectionsPlugin as cu, type ListConnectionsPluginProvides as cv, listClientCredentialsPlugin as cw, type ListClientCredentialsPluginProvides as cx, createClientCredentialsPlugin as cy, type CreateClientCredentialsPluginProvides as cz, type ActionEntry as d, ConnectionsMapSchema as d$, type ApiPluginProvides as d0, appKeyResolver as d1, actionTypeResolver as d2, actionKeyResolver as d3, connectionIdResolver as d4, connectionIdGenericResolver as d5, inputsResolver as d6, inputsAllOptionalResolver as d7, inputFieldKeyResolver as d8, clientCredentialsNameResolver as d9, type AuthEvent as dA, type ApiEvent as dB, type LoadingEvent as dC, type EventCallback as dD, type Credentials as dE, type ResolvedCredentials as dF, type CredentialsObject as dG, type ClientCredentialsObject as dH, type PkceCredentialsObject as dI, isClientCredentials as dJ, isPkceCredentials as dK, isCredentialsObject as dL, isCredentialsFunction as dM, type ResolveCredentialsOptions as dN, resolveCredentialsFromEnv as dO, resolveCredentials as dP, getBaseUrlFromCredentials as dQ, getClientIdFromCredentials as dR, ClientCredentialsObjectSchema as dS, PkceCredentialsObjectSchema as dT, CredentialsObjectSchema as dU, ResolvedCredentialsSchema as dV, CredentialsFunctionSchema as dW, type CredentialsFunction as dX, CredentialsSchema as dY, ConnectionEntrySchema as dZ, type ConnectionEntry as d_, clientIdResolver as da, tableIdResolver as db, triggerInboxResolver as dc, tableRecordIdResolver as dd, tableRecordIdsResolver as de, tableFieldIdsResolver as df, tableNameResolver as dg, tableFieldsResolver as dh, tableRecordsResolver as di, tableUpdateRecordsResolver as dj, tableFiltersResolver as dk, tableSortResolver as dl, type ResolveAuthTokenOptions as dm, clearTokenCache as dn, invalidateCachedToken as dp, injectCliLogin as dq, isCliLoginAvailable as dr, getTokenFromCliLogin as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCache as dv, type ZapierCacheEntry as dw, type ZapierCacheSetOptions as dx, createMemoryCache as dy, type SdkEvent as dz, type PaginatedSdkResult as e, type ConnectionsMap as e0, connectionsPlugin as e1, type ConnectionsPluginProvides as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, MAX_PAGE_LIMIT as e5, DEFAULT_PAGE_SIZE as e6, DEFAULT_ACTION_TIMEOUT_MS as e7, ZAPIER_MAX_NETWORK_RETRIES as e8, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e9, deleteTableRecordsPlugin as eA, type DeleteTableRecordsPluginProvides as eB, updateTableRecordsPlugin as eC, type UpdateTableRecordsPluginProvides as eD, createZapierSdk as eE, type ZapierSdk as eF, MAX_CONCURRENCY_LIMIT as ea, parseConcurrencyEnvVar as eb, ZAPIER_MAX_CONCURRENT_REQUESTS as ec, getZapierApprovalMode as ed, DEFAULT_APPROVAL_TIMEOUT_MS as ee, DEFAULT_MAX_APPROVAL_RETRIES as ef, listTablesPlugin as eg, type ListTablesPluginProvides as eh, getTablePlugin as ei, type GetTablePluginProvides as ej, createTablePlugin as ek, type CreateTablePluginProvides as el, deleteTablePlugin as em, type DeleteTablePluginProvides as en, listTableFieldsPlugin as eo, type ListTableFieldsPluginProvides as ep, createTableFieldsPlugin as eq, type CreateTableFieldsPluginProvides as er, deleteTableFieldsPlugin as es, type DeleteTableFieldsPluginProvides as et, getTableRecordPlugin as eu, type GetTableRecordPluginProvides as ev, listTableRecordsPlugin as ew, type ListTableRecordsPluginProvides as ex, createTableRecordsPlugin as ey, type CreateTableRecordsPluginProvides 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 };
9763
+ 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, type FunctionOptions 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 MethodCalledEvent as aA, type EventEmissionProvides as aB, type EventContext as aC, type ApplicationLifecycleEventData as aD, type EnhancedErrorEventData as aE, type MethodCalledEventData as aF, generateEventId as aG, getCurrentTimestamp as aH, getReleaseId as aI, getOsInfo as aJ, getPlatformVersions as aK, isCi as aL, getCiPlatform as aM, getMemoryUsage as aN, getCpuTime as aO, buildApplicationLifecycleEvent as aP, buildErrorEventWithContext as aQ, buildErrorEvent as aR, createBaseEvent as aS, buildMethodCalledEvent as aT, type AppItem as aU, type ConnectionItem as aV, type ActionItem$1 as aW, type InputFieldItem as aX, type InfoFieldItem as aY, type RootFieldItem as aZ, type UserProfileItem 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 BaseEvent as az, type AddActionEntryOptions as b, ZapierValidationError as b$, type SdkPage as b0, type PaginatedSdkFunction as b1, AppKeyPropertySchema as b2, AppPropertySchema as b3, ActionTypePropertySchema as b4, ActionKeyPropertySchema as b5, ActionPropertySchema as b6, InputFieldPropertySchema as b7, ConnectionIdPropertySchema as b8, AuthenticationIdPropertySchema as b9, type ConnectionIdProperty as bA, type ConnectionProperty as bB, type AuthenticationIdProperty as bC, type InputsProperty as bD, type LimitProperty as bE, type OffsetProperty as bF, type OutputProperty as bG, type DebugProperty as bH, type ParamsProperty as bI, type ActionTimeoutMsProperty as bJ, type TableProperty as bK, type RecordProperty as bL, type RecordsProperty as bM, type FieldsProperty as bN, type AppsProperty as bO, type TablesProperty as bP, type ConnectionsProperty as bQ, type TriggerInboxProperty as bR, type TriggerInboxNameProperty as bS, type LeaseProperty as bT, type LeaseSecondsProperty as bU, type LeaseLimitProperty as bV, type ApiError as bW, type ErrorOptions as bX, ZapierError as bY, ZapierApiError as bZ, ZapierAppNotFoundError as b_, ConnectionPropertySchema as ba, InputsPropertySchema as bb, LimitPropertySchema as bc, OffsetPropertySchema as bd, OutputPropertySchema as be, DebugPropertySchema as bf, ParamsPropertySchema as bg, ActionTimeoutMsPropertySchema as bh, TablePropertySchema as bi, RecordPropertySchema as bj, RecordsPropertySchema as bk, FieldsPropertySchema as bl, AppsPropertySchema as bm, TablesPropertySchema as bn, ConnectionsPropertySchema as bo, TriggerInboxPropertySchema as bp, TriggerInboxNamePropertySchema as bq, LeasePropertySchema as br, LeaseSecondsPropertySchema as bs, LeaseLimitPropertySchema as bt, type AppKeyProperty as bu, type AppProperty as bv, type ActionTypeProperty as bw, type ActionKeyProperty as bx, type ActionProperty as by, type InputFieldProperty as bz, type AddActionEntryResult as c, type GetProfilePluginProvides as c$, ZapierUnknownError as c0, ZapierAuthenticationError as c1, ZapierNotFoundError as c2, ZapierResourceNotFoundError as c3, ZapierConfigurationError as c4, ZapierBundleError as c5, ZapierTimeoutError as c6, ZapierActionError as c7, ZapierConflictError as c8, type RateLimitInfo as c9, createClientCredentialsPlugin as cA, type CreateClientCredentialsPluginProvides as cB, deleteClientCredentialsPlugin as cC, type DeleteClientCredentialsPluginProvides as cD, getAppPlugin as cE, type GetAppPluginProvides as cF, getActionPlugin as cG, type GetActionPluginProvides as cH, getConnectionPlugin as cI, type GetConnectionPluginProvides as cJ, findFirstConnectionPlugin as cK, type FindFirstConnectionPluginProvides as cL, findUniqueConnectionPlugin as cM, type FindUniqueConnectionPluginProvides as cN, CONTEXT_CACHE_TTL_MS as cO, CONTEXT_CACHE_MAX_SIZE as cP, runActionPlugin as cQ, type RunActionPluginProvides as cR, requestPlugin as cS, type RequestPluginProvides as cT, type ManifestPluginOptions as cU, getPreferredManifestEntryKey as cV, manifestPlugin as cW, type ManifestPluginProvides as cX, DEFAULT_CONFIG_PATH as cY, type ManifestEntry as cZ, getProfilePlugin as c_, ZapierRateLimitError as ca, type ApprovalStatus as cb, ZapierApprovalError as cc, ZapierRelayError as cd, formatErrorMessage as ce, ZapierSignal as cf, appsPlugin as cg, type AppsPluginProvides as ch, type ActionExecutionOptions as ci, type AppFactoryInput as cj, fetchPlugin as ck, type FetchPluginProvides as cl, listAppsPlugin as cm, type ListAppsPluginProvides as cn, listActionsPlugin as co, type ListActionsPluginProvides as cp, listActionInputFieldsPlugin as cq, type ListActionInputFieldsPluginProvides as cr, listActionInputFieldChoicesPlugin as cs, type ListActionInputFieldChoicesPluginProvides as ct, getActionInputFieldsSchemaPlugin as cu, type GetActionInputFieldsSchemaPluginProvides as cv, listConnectionsPlugin as cw, type ListConnectionsPluginProvides as cx, listClientCredentialsPlugin as cy, type ListClientCredentialsPluginProvides as cz, type ActionEntry as d, CredentialsSchema as d$, type ApiPluginOptions as d0, apiPlugin as d1, type ApiPluginProvides as d2, appKeyResolver as d3, actionTypeResolver as d4, actionKeyResolver as d5, connectionIdResolver as d6, connectionIdGenericResolver as d7, inputsResolver as d8, inputsAllOptionalResolver as d9, type ZapierCacheSetOptions as dA, createMemoryCache as dB, type SdkEvent as dC, type AuthEvent as dD, type ApiEvent as dE, type LoadingEvent as dF, type EventCallback as dG, type Credentials as dH, type ResolvedCredentials as dI, type CredentialsObject as dJ, type ClientCredentialsObject as dK, type PkceCredentialsObject as dL, isClientCredentials as dM, isPkceCredentials as dN, isCredentialsObject as dO, isCredentialsFunction as dP, type ResolveCredentialsOptions as dQ, resolveCredentialsFromEnv as dR, resolveCredentials as dS, getBaseUrlFromCredentials as dT, getClientIdFromCredentials as dU, ClientCredentialsObjectSchema as dV, PkceCredentialsObjectSchema as dW, CredentialsObjectSchema as dX, ResolvedCredentialsSchema as dY, CredentialsFunctionSchema as dZ, type CredentialsFunction as d_, inputFieldKeyResolver as da, clientCredentialsNameResolver as db, clientIdResolver as dc, tableIdResolver as dd, triggerInboxResolver as de, triggerMessagesResolver as df, tableRecordIdResolver as dg, tableRecordIdsResolver as dh, tableFieldIdsResolver as di, tableNameResolver as dj, tableFieldsResolver as dk, tableRecordsResolver as dl, tableUpdateRecordsResolver as dm, tableFiltersResolver as dn, tableSortResolver as dp, type ResolveAuthTokenOptions as dq, clearTokenCache as dr, invalidateCachedToken as ds, injectCliLogin as dt, isCliLoginAvailable as du, getTokenFromCliLogin as dv, resolveAuthToken as dw, invalidateCredentialsToken as dx, type ZapierCache as dy, type ZapierCacheEntry as dz, type PaginatedSdkResult as e, ConnectionEntrySchema as e0, type ConnectionEntry as e1, ConnectionsMapSchema as e2, type ConnectionsMap as e3, connectionsPlugin as e4, type ConnectionsPluginProvides as e5, ZAPIER_BASE_URL as e6, getZapierSdkService as e7, MAX_PAGE_LIMIT as e8, DEFAULT_PAGE_SIZE as e9, type ListTableRecordsPluginProvides as eA, createTableRecordsPlugin as eB, type CreateTableRecordsPluginProvides as eC, deleteTableRecordsPlugin as eD, type DeleteTableRecordsPluginProvides as eE, updateTableRecordsPlugin as eF, type UpdateTableRecordsPluginProvides as eG, createZapierSdk as eH, type ZapierSdk as eI, DEFAULT_ACTION_TIMEOUT_MS as ea, ZAPIER_MAX_NETWORK_RETRIES as eb, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ec, MAX_CONCURRENCY_LIMIT as ed, parseConcurrencyEnvVar as ee, ZAPIER_MAX_CONCURRENT_REQUESTS as ef, getZapierApprovalMode as eg, DEFAULT_APPROVAL_TIMEOUT_MS as eh, DEFAULT_MAX_APPROVAL_RETRIES as ei, listTablesPlugin as ej, type ListTablesPluginProvides as ek, getTablePlugin as el, type GetTablePluginProvides as em, createTablePlugin as en, type CreateTablePluginProvides as eo, deleteTablePlugin as ep, type DeleteTablePluginProvides as eq, listTableFieldsPlugin as er, type ListTableFieldsPluginProvides as es, createTableFieldsPlugin as et, type CreateTableFieldsPluginProvides as eu, deleteTableFieldsPlugin as ev, type DeleteTableFieldsPluginProvides as ew, getTableRecordPlugin as ex, type GetTableRecordPluginProvides as ey, listTableRecordsPlugin 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 };