@zapier/zapier-sdk 0.80.2 → 0.81.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.
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-DEQqvs2r.js';
2
- export { H as Action, cJ as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bl as ActionItem, bX as ActionKeyProperty, bv as ActionKeyPropertySchema, bY as ActionProperty, bw as ActionPropertySchema, b6 as ActionResolverItem, c7 as ActionTimeoutMsProperty, bH as ActionTimeoutMsPropertySchema, b7 as ActionTypeItem, bW as ActionTypeProperty, bu as ActionTypePropertySchema, cF as ApiError, e9 as ApiEvent, dr as ApiPluginOptions, dt as ApiPluginProvides, I as App, cK as AppFactoryInput, bj as AppItem, bU as AppKeyProperty, bs as AppKeyPropertySchema, bV as AppProperty, bt as AppPropertySchema, fj as ApplicationLifecycleEventData, cB as ApprovalStatus, cI as AppsPluginProvides, cc as AppsProperty, bM as AppsPropertySchema, am as ArrayResolver, e8 as AuthEvent, dV as AuthMechanism, c0 as AuthenticationIdProperty, bz as AuthenticationIdPropertySchema, fr as BaseEvent, aS as BaseSdkOptionsSchema, aH as BatchOptions, aj as BoundFormatter, de as CONTEXT_CACHE_MAX_SIZE, dd as CONTEXT_CACHE_TTL_MS, aW as CORE_ERROR_SYMBOL, a$ as CORE_SIGNAL_SYMBOL, aD as CallerContext, K as Choice, ef as ClientCredentialsObject, eq as ClientCredentialsObjectSchema, $ as Connection, ey as ConnectionEntry, ex as ConnectionEntrySchema, b_ as ConnectionIdProperty, by as ConnectionIdPropertySchema, bk as ConnectionItem, b$ as ConnectionProperty, bA as ConnectionPropertySchema, eA as ConnectionsMap, ez as ConnectionsMapSchema, eC as ConnectionsPluginProvides, ce as ConnectionsProperty, bO as ConnectionsPropertySchema, a0 as ConnectionsResponse, au as ControllerAction, av as ControllerAnswerFn, ax as ControllerMethodDescription, aw as ControllerMethodSummary, ay as ControllerParameterDescription, at as ControllerQuestion, aZ as CoreCancelledSignal, aX as CoreErrorCode, aY as CoreSignal, d0 as CreateClientCredentialsPluginProvides, f1 as CreateTableFieldsPluginProvides, eX as CreateTablePluginProvides, f9 as CreateTableRecordsPluginProvides, ec as Credentials, ev as CredentialsFunction, eu as CredentialsFunctionSchema, ee as CredentialsObject, es as CredentialsObjectSchema, ew as CredentialsSchema, eH as DEFAULT_ACTION_TIMEOUT_MS, eQ as DEFAULT_APPROVAL_TIMEOUT_MS, dn as DEFAULT_CONFIG_PATH, eR as DEFAULT_MAX_APPROVAL_RETRIES, eG as DEFAULT_PAGE_SIZE, bh as DEPRECATION_NOTICE_EVENT, c5 as DebugProperty, bF as DebugPropertySchema, d2 as DeleteClientCredentialsPluginProvides, f3 as DeleteTableFieldsPluginProvides, eZ as DeleteTablePluginProvides, fb as DeleteTableRecordsPluginProvides, bi as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ap as DynamicListResolver, aq as DynamicSearchResolver, fk as EnhancedErrorEventData, ck as ErrorOptions, eb as EventCallback, fi as EventContext, ff as EventEmissionConfig, fh as EventEmissionProvides, cM as FetchPluginProvides, J as Field, cb as FieldsProperty, bL as FieldsPropertySchema, ar as FieldsResolver, y as FindFirstAuthenticationPluginProvides, da as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, dc as FindUniqueConnectionPluginProvides, ai as FormattedItem, ak as Formatter, aR as FunctionDeprecation, aQ as FunctionRegistryEntry, cW as GetActionInputFieldsSchemaPluginProvides, d6 as GetActionPluginProvides, d4 as GetAppPluginProvides, x as GetAuthenticationPluginProvides, d8 as GetConnectionPluginProvides, eV as GetTablePluginProvides, f5 as GetTableRecordPluginProvides, bn as InfoFieldItem, bm as InputFieldItem, bZ as InputFieldProperty, bx as InputFieldPropertySchema, c1 as InputsProperty, bB as InputsPropertySchema, bg as JsonSseMessage, cj as LeaseLimitProperty, bT as LeaseLimitPropertySchema, ch as LeaseProperty, bR as LeasePropertySchema, ci as LeaseSecondsProperty, bS as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, c2 as LimitProperty, bC as LimitPropertySchema, cU as ListActionInputFieldChoicesPluginProvides, cS as ListActionInputFieldsPluginProvides, cQ as ListActionsPluginProvides, cO as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, c_ as ListClientCredentialsPluginProvides, cY as ListConnectionsPluginProvides, e$ as ListTableFieldsPluginProvides, f7 as ListTableRecordsPluginProvides, eT as ListTablesPluginProvides, ea as LoadingEvent, eK as MAX_CONCURRENCY_LIMIT, eF as MAX_PAGE_LIMIT, dp as ManifestEntry, dj as ManifestPluginOptions, dm as ManifestPluginProvides, fs as MethodCalledEvent, fl as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, c3 as OffsetProperty, bD as OffsetPropertySchema, c4 as OutputProperty, bE as OutputPropertySchema, br as PaginatedSdkFunction, c6 as ParamsProperty, bG as ParamsPropertySchema, eg as PkceCredentialsObject, er as PkceCredentialsObjectSchema, b0 as Plugin, b1 as PluginProvides, bb as PollOptions, cz as RateLimitInfo, c9 as RecordProperty, bJ as RecordPropertySchema, ca as RecordsProperty, bK as RecordsPropertySchema, aM as RelayFetchSchema, aL as RelayRequestSchema, ba as RequestOptions, di as RequestPluginProvides, dU as ResolveAuthTokenOptions, el as ResolveCredentialsOptions, dW as ResolvedAuth, ed as ResolvedCredentials, et as ResolvedCredentialsSchema, al as Resolver, an as ResolverMetadata, bo as RootFieldItem, dg as RunActionPluginProvides, e7 as SdkEvent, bq as SdkPage, bf as SseMessage, ao as StaticResolver, c8 as TableProperty, bI as TablePropertySchema, cd as TablesProperty, bN as TablesPropertySchema, cg as TriggerInboxNameProperty, bQ as TriggerInboxNamePropertySchema, cf as TriggerInboxProperty, bP as TriggerInboxPropertySchema, T as TriggerMessageStatus, fd as UpdateTableRecordsPluginProvides, a1 as UserProfile, bp as UserProfileItem, eD as ZAPIER_BASE_URL, eM as ZAPIER_MAX_CONCURRENT_REQUESTS, eI as ZAPIER_MAX_NETWORK_RETRIES, eJ as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cx as ZapierActionError, cq as ZapierApiError, cr as ZapierAppNotFoundError, cC as ZapierApprovalError, co as ZapierAuthenticationError, cv as ZapierBundleError, e3 as ZapierCache, e4 as ZapierCacheEntry, e5 as ZapierCacheSetOptions, cu as ZapierConfigurationError, cy as ZapierConflictError, cl as ZapierError, cs as ZapierNotFoundError, cA as ZapierRateLimitError, cD as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, ct as ZapierResourceNotFoundError, cG as ZapierSignal, cw as ZapierTimeoutError, cn as ZapierUnknownError, cm as ZapierValidationError, dw as actionKeyResolver, dv as actionTypeResolver, a6 as addPlugin, ds as apiPlugin, du as appKeyResolver, cH as appsPlugin, dy as authenticationIdGenericResolver, dx as authenticationIdResolver, aG as batch, fm as buildApplicationLifecycleEvent, aI as buildCapabilityMessage, fo as buildErrorEvent, fn as buildErrorEventWithContext, fq as buildMethodCalledEvent, fe as cleanupEventListeners, dX as clearTokenCache, dC as clientCredentialsNameResolver, dD as clientIdResolver, b5 as composePlugins, dy as connectionIdGenericResolver, dx as connectionIdResolver, eB as connectionsPlugin, fp as createBaseEvent, c$ as createClientCredentialsPlugin, as as createController, a5 as createCorePlugin, a3 as createFunction, e6 as createMemoryCache, aO as createOptionsPlugin, b4 as createPaginatedPluginMethod, b3 as createPluginMethod, a4 as createPluginStack, a7 as createSdk, f0 as createTableFieldsPlugin, eW as createTablePlugin, f8 as createTableRecordsPlugin, bc as createZapierApi, aP as createZapierCoreStack, aN as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, af as declareMethod, ag as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, b2 as definePlugin, ad as defineProperty, ae as defineResolver, d1 as deleteClientCredentialsPlugin, f2 as deleteTableFieldsPlugin, eY as deleteTablePlugin, fa as deleteTableRecordsPlugin, dH as durableRunIdResolver, fg as eventEmissionPlugin, cL as fetchPlugin, d9 as findFirstConnectionPlugin, db as findUniqueConnectionPlugin, cE as formatErrorMessage, a8 as fromFunctionPlugin, ft as generateEventId, cV as getActionInputFieldsSchemaPlugin, d5 as getActionPlugin, b8 as getAgent, d3 as getAppPlugin, eo as getBaseUrlFromCredentials, aB as getCallerContext, fz as getCiPlatform, ep as getClientIdFromCredentials, d7 as getConnectionPlugin, ab as getContext, aV as getCoreErrorCause, aU as getCoreErrorCode, fB as getCpuTime, fu as getCurrentTimestamp, fA as getMemoryUsage, bd as getOrCreateApiClient, fw as getOsInfo, fx as getPlatformVersions, dk as getPreferredManifestEntryKey, dq as getProfilePlugin, fv as getReleaseId, eU as getTablePlugin, f4 as getTableRecordPlugin, d$ as getTokenFromCliLogin, fC as getTtyContext, eN as getZapierApprovalMode, eP as getZapierDefaultApprovalMode, eO as getZapierOpenAutoModeApprovalsInBrowser, eE as getZapierSdkService, dZ as injectCliLogin, dB as inputFieldKeyResolver, dA as inputsAllOptionalResolver, dz as inputsResolver, dY as invalidateCachedToken, e2 as invalidateCredentialsToken, fy as isCi, d_ as isCliLoginAvailable, eh as isClientCredentials, aT as isCoreError, a_ as isCoreSignal, ek as isCredentialsFunction, ej as isCredentialsObject, be as isPermanentHttpError, ei as isPkceCredentials, a2 as isPositional, cT as listActionInputFieldChoicesPlugin, cR as listActionInputFieldsPlugin, cP as listActionsPlugin, cN as listAppsPlugin, cZ as listClientCredentialsPlugin, cX as listConnectionsPlugin, e_ as listTableFieldsPlugin, f6 as listTableRecordsPlugin, eS as listTablesPlugin, aJ as logDeprecation, dl as manifestPlugin, eL as parseConcurrencyEnvVar, b9 as registryPlugin, dh as requestPlugin, aK as resetDeprecationWarnings, e0 as resolveAuth, e1 as resolveAuthToken, en as resolveCredentials, em as resolveCredentialsFromEnv, df as runActionPlugin, az as runInMethodScope, aC as runWithCallerContext, aA as runWithTelemetryContext, dN as tableFieldIdsResolver, dP as tableFieldsResolver, dS as tableFiltersResolver, dE as tableIdResolver, dO as tableNameResolver, dL as tableRecordIdResolver, dM as tableRecordIdsResolver, dQ as tableRecordsResolver, dT as tableSortResolver, dR as tableUpdateRecordsResolver, aE as toSnakeCase, aF as toTitleCase, dF as triggerInboxResolver, dK as triggerMessagesResolver, fc as updateTableRecordsPlugin, dG as workflowIdResolver, dJ as workflowRunIdResolver, dI as workflowVersionIdResolver, cp as zapierAdaptError, ah as zapierSdkPlugin } from './index-DEQqvs2r.js';
1
+ import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-CbfvBdSp.js';
2
+ export { H as Action, cL as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bl as ActionItem, bY as ActionKeyProperty, bv as ActionKeyPropertySchema, bZ as ActionProperty, bw as ActionPropertySchema, b6 as ActionResolverItem, c8 as ActionTimeoutMsProperty, bH as ActionTimeoutMsPropertySchema, b7 as ActionTypeItem, bX as ActionTypeProperty, bu as ActionTypePropertySchema, cH as ApiError, eb as ApiEvent, dt as ApiPluginOptions, dv as ApiPluginProvides, I as App, cM as AppFactoryInput, bj as AppItem, bV as AppKeyProperty, bs as AppKeyPropertySchema, bW as AppProperty, bt as AppPropertySchema, fl as ApplicationLifecycleEventData, cD as ApprovalStatus, cK as AppsPluginProvides, cd as AppsProperty, bM as AppsPropertySchema, am as ArrayResolver, ea as AuthEvent, dX as AuthMechanism, c1 as AuthenticationIdProperty, bz as AuthenticationIdPropertySchema, ft as BaseEvent, aS as BaseSdkOptionsSchema, aH as BatchOptions, aj as BoundFormatter, dg as CONTEXT_CACHE_MAX_SIZE, df as CONTEXT_CACHE_TTL_MS, aW as CORE_ERROR_SYMBOL, a$ as CORE_SIGNAL_SYMBOL, aD as CallerContext, K as Choice, eh as ClientCredentialsObject, es as ClientCredentialsObjectSchema, $ as Connection, eA as ConnectionEntry, ez as ConnectionEntrySchema, b$ as ConnectionIdProperty, by as ConnectionIdPropertySchema, bk as ConnectionItem, c0 as ConnectionProperty, bA as ConnectionPropertySchema, eC as ConnectionsMap, eB as ConnectionsMapSchema, eE as ConnectionsPluginProvides, cf as ConnectionsProperty, bO as ConnectionsPropertySchema, a0 as ConnectionsResponse, au as ControllerAction, av as ControllerAnswerFn, ax as ControllerMethodDescription, aw as ControllerMethodSummary, ay as ControllerParameterDescription, at as ControllerQuestion, aZ as CoreCancelledSignal, aX as CoreErrorCode, aY as CoreSignal, d2 as CreateClientCredentialsPluginProvides, f3 as CreateTableFieldsPluginProvides, eZ as CreateTablePluginProvides, fb as CreateTableRecordsPluginProvides, ee as Credentials, ex as CredentialsFunction, ew as CredentialsFunctionSchema, eg as CredentialsObject, eu as CredentialsObjectSchema, ey as CredentialsSchema, eJ as DEFAULT_ACTION_TIMEOUT_MS, eS as DEFAULT_APPROVAL_TIMEOUT_MS, dq as DEFAULT_CONFIG_PATH, eT as DEFAULT_MAX_APPROVAL_RETRIES, eI as DEFAULT_PAGE_SIZE, bh as DEPRECATION_NOTICE_EVENT, c6 as DebugProperty, bF as DebugPropertySchema, d4 as DeleteClientCredentialsPluginProvides, f5 as DeleteTableFieldsPluginProvides, e$ as DeleteTablePluginProvides, fd as DeleteTableRecordsPluginProvides, bi as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ap as DynamicListResolver, aq as DynamicSearchResolver, fm as EnhancedErrorEventData, cm as ErrorOptions, ed as EventCallback, fk as EventContext, fh as EventEmissionConfig, fj as EventEmissionProvides, cO as FetchPluginProvides, J as Field, cc as FieldsProperty, bL as FieldsPropertySchema, ar as FieldsResolver, y as FindFirstAuthenticationPluginProvides, dc as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, de as FindUniqueConnectionPluginProvides, ai as FormattedItem, ak as Formatter, aR as FunctionDeprecation, aQ as FunctionRegistryEntry, cY as GetActionInputFieldsSchemaPluginProvides, d8 as GetActionPluginProvides, d6 as GetAppPluginProvides, x as GetAuthenticationPluginProvides, da as GetConnectionPluginProvides, eX as GetTablePluginProvides, f7 as GetTableRecordPluginProvides, bn as InfoFieldItem, bm as InputFieldItem, b_ as InputFieldProperty, bx as InputFieldPropertySchema, c2 as InputsProperty, bB as InputsPropertySchema, bg as JsonSseMessage, cl as LeaseLimitProperty, bU as LeaseLimitPropertySchema, cj as LeaseProperty, bS as LeasePropertySchema, ck as LeaseSecondsProperty, bT as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, c3 as LimitProperty, bC as LimitPropertySchema, cW as ListActionInputFieldChoicesPluginProvides, cU as ListActionInputFieldsPluginProvides, cS as ListActionsPluginProvides, cQ as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, d0 as ListClientCredentialsPluginProvides, c_ as ListConnectionsPluginProvides, f1 as ListTableFieldsPluginProvides, f9 as ListTableRecordsPluginProvides, eV as ListTablesPluginProvides, ec as LoadingEvent, eM as MAX_CONCURRENCY_LIMIT, eH as MAX_PAGE_LIMIT, dr as ManifestEntry, dl as ManifestPluginOptions, dp as ManifestPluginProvides, fu as MethodCalledEvent, fn as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, c4 as OffsetProperty, bD as OffsetPropertySchema, c5 as OutputProperty, bE as OutputPropertySchema, br as PaginatedSdkFunction, c7 as ParamsProperty, bG as ParamsPropertySchema, ei as PkceCredentialsObject, et as PkceCredentialsObjectSchema, b0 as Plugin, b1 as PluginProvides, bb as PollOptions, cB as RateLimitInfo, ca as RecordProperty, bJ as RecordPropertySchema, cb as RecordsProperty, bK as RecordsPropertySchema, aM as RelayFetchSchema, aL as RelayRequestSchema, ba as RequestOptions, dk as RequestPluginProvides, dW as ResolveAuthTokenOptions, en as ResolveCredentialsOptions, dY as ResolvedAuth, ef as ResolvedCredentials, ev as ResolvedCredentialsSchema, al as Resolver, an as ResolverMetadata, bo as RootFieldItem, di as RunActionPluginProvides, e9 as SdkEvent, bq as SdkPage, bf as SseMessage, ao as StaticResolver, c9 as TableProperty, bI as TablePropertySchema, ce as TablesProperty, bN as TablesPropertySchema, ch as TriggerInboxKeyProperty, bQ as TriggerInboxKeyPropertySchema, ci as TriggerInboxNameProperty, bR as TriggerInboxNamePropertySchema, cg as TriggerInboxProperty, bP as TriggerInboxPropertySchema, T as TriggerMessageStatus, ff as UpdateTableRecordsPluginProvides, a1 as UserProfile, bp as UserProfileItem, eF as ZAPIER_BASE_URL, eO as ZAPIER_MAX_CONCURRENT_REQUESTS, eK as ZAPIER_MAX_NETWORK_RETRIES, eL as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cz as ZapierActionError, cs as ZapierApiError, ct as ZapierAppNotFoundError, cE as ZapierApprovalError, cq as ZapierAuthenticationError, cx as ZapierBundleError, e5 as ZapierCache, e6 as ZapierCacheEntry, e7 as ZapierCacheSetOptions, cw as ZapierConfigurationError, cA as ZapierConflictError, cn as ZapierError, cu as ZapierNotFoundError, cC as ZapierRateLimitError, cF as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cv as ZapierResourceNotFoundError, cI as ZapierSignal, cy as ZapierTimeoutError, cp as ZapierUnknownError, co as ZapierValidationError, dy as actionKeyResolver, dx as actionTypeResolver, a6 as addPlugin, du as apiPlugin, dw as appKeyResolver, cJ as appsPlugin, dA as authenticationIdGenericResolver, dz as authenticationIdResolver, aG as batch, fo as buildApplicationLifecycleEvent, aI as buildCapabilityMessage, fq as buildErrorEvent, fp as buildErrorEventWithContext, fs as buildMethodCalledEvent, fg as cleanupEventListeners, dZ as clearTokenCache, dE as clientCredentialsNameResolver, dF as clientIdResolver, b5 as composePlugins, dA as connectionIdGenericResolver, dz as connectionIdResolver, eD as connectionsPlugin, fr as createBaseEvent, d1 as createClientCredentialsPlugin, as as createController, a5 as createCorePlugin, a3 as createFunction, e8 as createMemoryCache, aO as createOptionsPlugin, b4 as createPaginatedPluginMethod, b3 as createPluginMethod, a4 as createPluginStack, a7 as createSdk, f2 as createTableFieldsPlugin, eY as createTablePlugin, fa as createTableRecordsPlugin, bc as createZapierApi, aP as createZapierCoreStack, aN as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, af as declareMethod, ag as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, b2 as definePlugin, ad as defineProperty, ae as defineResolver, d3 as deleteClientCredentialsPlugin, f4 as deleteTableFieldsPlugin, e_ as deleteTablePlugin, fc as deleteTableRecordsPlugin, dJ as durableRunIdResolver, fi as eventEmissionPlugin, cN as fetchPlugin, db as findFirstConnectionPlugin, dd as findUniqueConnectionPlugin, cG as formatErrorMessage, a8 as fromFunctionPlugin, fv as generateEventId, cX as getActionInputFieldsSchemaPlugin, d7 as getActionPlugin, b8 as getAgent, d5 as getAppPlugin, eq as getBaseUrlFromCredentials, aB as getCallerContext, fB as getCiPlatform, er as getClientIdFromCredentials, d9 as getConnectionPlugin, ab as getContext, aV as getCoreErrorCause, aU as getCoreErrorCode, fD as getCpuTime, fw as getCurrentTimestamp, fC as getMemoryUsage, bd as getOrCreateApiClient, fy as getOsInfo, fz as getPlatformVersions, dm as getPreferredManifestEntryKey, ds as getProfilePlugin, fx as getReleaseId, eW as getTablePlugin, f6 as getTableRecordPlugin, e1 as getTokenFromCliLogin, fE as getTtyContext, eP as getZapierApprovalMode, eR as getZapierDefaultApprovalMode, eQ as getZapierOpenAutoModeApprovalsInBrowser, eG as getZapierSdkService, d$ as injectCliLogin, dD as inputFieldKeyResolver, dC as inputsAllOptionalResolver, dB as inputsResolver, d_ as invalidateCachedToken, e4 as invalidateCredentialsToken, fA as isCi, e0 as isCliLoginAvailable, ej as isClientCredentials, aT as isCoreError, a_ as isCoreSignal, em as isCredentialsFunction, el as isCredentialsObject, be as isPermanentHttpError, ek as isPkceCredentials, a2 as isPositional, cV as listActionInputFieldChoicesPlugin, cT as listActionInputFieldsPlugin, cR as listActionsPlugin, cP as listAppsPlugin, c$ as listClientCredentialsPlugin, cZ as listConnectionsPlugin, f0 as listTableFieldsPlugin, f8 as listTableRecordsPlugin, eU as listTablesPlugin, aJ as logDeprecation, dn as manifestPlugin, eN as parseConcurrencyEnvVar, b9 as registryPlugin, dj as requestPlugin, aK as resetDeprecationWarnings, e2 as resolveAuth, e3 as resolveAuthToken, ep as resolveCredentials, eo as resolveCredentialsFromEnv, dh as runActionPlugin, az as runInMethodScope, aC as runWithCallerContext, aA as runWithTelemetryContext, dP as tableFieldIdsResolver, dR as tableFieldsResolver, dU as tableFiltersResolver, dG as tableIdResolver, dQ as tableNameResolver, dN as tableRecordIdResolver, dO as tableRecordIdsResolver, dS as tableRecordsResolver, dV as tableSortResolver, dT as tableUpdateRecordsResolver, aE as toSnakeCase, aF as toTitleCase, dH as triggerInboxResolver, dM as triggerMessagesResolver, fe as updateTableRecordsPlugin, dI as workflowIdResolver, dL as workflowRunIdResolver, dK as workflowVersionIdResolver, cr as zapierAdaptError, ah as zapierSdkPlugin } from './index-CbfvBdSp.js';
3
3
  import * as zod_v4_core from 'zod/v4/core';
4
4
  import * as zod from 'zod';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
@@ -1656,6 +1656,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1656
1656
  };
1657
1657
  } & {
1658
1658
  listTriggerInboxes: (options?: ({
1659
+ key?: string | undefined;
1659
1660
  name?: string | undefined;
1660
1661
  status?: string | undefined;
1661
1662
  pageSize?: number | undefined;
@@ -1668,6 +1669,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1668
1669
  }) | undefined) => PaginatedSdkResult<{
1669
1670
  id: string;
1670
1671
  created_at: string;
1672
+ key: string | null;
1671
1673
  name: string | null;
1672
1674
  status: string;
1673
1675
  paused_reason: string | null;
@@ -1689,6 +1691,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1689
1691
  createTriggerInbox: (options?: {
1690
1692
  app: string;
1691
1693
  action: string;
1694
+ key?: string | undefined;
1692
1695
  name?: string | undefined;
1693
1696
  connection?: string | number | null | undefined;
1694
1697
  inputs?: Record<string, unknown> | undefined;
@@ -1697,6 +1700,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1697
1700
  data: {
1698
1701
  id: string;
1699
1702
  created_at: string;
1703
+ key: string | null;
1700
1704
  name: string | null;
1701
1705
  status: string;
1702
1706
  paused_reason: string | null;
@@ -1717,6 +1721,13 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1717
1721
  };
1718
1722
  } & {
1719
1723
  ensureTriggerInbox: (options?: {
1724
+ key: string;
1725
+ app: string;
1726
+ action: string;
1727
+ connection?: string | number | null | undefined;
1728
+ inputs?: Record<string, unknown> | undefined;
1729
+ notificationUrl?: string | undefined;
1730
+ } | {
1720
1731
  name: string;
1721
1732
  app: string;
1722
1733
  action: string;
@@ -1727,6 +1738,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1727
1738
  data: {
1728
1739
  id: string;
1729
1740
  created_at: string;
1741
+ key: string | null;
1730
1742
  name: string | null;
1731
1743
  status: string;
1732
1744
  paused_reason: string | null;
@@ -1752,6 +1764,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1752
1764
  data: {
1753
1765
  id: string;
1754
1766
  created_at: string;
1767
+ key: string | null;
1755
1768
  name: string | null;
1756
1769
  status: string;
1757
1770
  paused_reason: string | null;
@@ -1778,6 +1791,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1778
1791
  data: {
1779
1792
  id: string;
1780
1793
  created_at: string;
1794
+ key: string | null;
1781
1795
  name: string | null;
1782
1796
  status: string;
1783
1797
  paused_reason: string | null;
@@ -1803,6 +1817,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1803
1817
  data: {
1804
1818
  id: string;
1805
1819
  created_at: string;
1820
+ key: string | null;
1806
1821
  name: string | null;
1807
1822
  status: string;
1808
1823
  paused_reason: string | null;
@@ -1828,6 +1843,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1828
1843
  data: {
1829
1844
  id: string;
1830
1845
  created_at: string;
1846
+ key: string | null;
1831
1847
  name: string | null;
1832
1848
  status: string;
1833
1849
  paused_reason: string | null;
@@ -1853,6 +1869,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
1853
1869
  data: {
1854
1870
  id: string;
1855
1871
  created_at: string;
1872
+ key: string | null;
1856
1873
  name: string | null;
1857
1874
  status: string;
1858
1875
  paused_reason: string | null;
@@ -2008,6 +2025,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2008
2025
  resolvers: {
2009
2026
  inbox: DynamicResolver$1<{
2010
2027
  listTriggerInboxes: (options?: ({
2028
+ key?: string | undefined;
2011
2029
  name?: string | undefined;
2012
2030
  status?: string | undefined;
2013
2031
  pageSize?: number | undefined;
@@ -2020,6 +2038,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2020
2038
  }) | undefined) => PaginatedSdkResult<{
2021
2039
  id: string;
2022
2040
  created_at: string;
2041
+ key: string | null;
2023
2042
  name: string | null;
2024
2043
  status: string;
2025
2044
  paused_reason: string | null;
@@ -2040,6 +2059,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2040
2059
  }, {
2041
2060
  id: string;
2042
2061
  created_at: string;
2062
+ key: string | null;
2043
2063
  name: string | null;
2044
2064
  status: string;
2045
2065
  paused_reason: string | null;
@@ -2084,6 +2104,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2084
2104
  resolvers: {
2085
2105
  inbox: DynamicResolver$1<{
2086
2106
  listTriggerInboxes: (options?: ({
2107
+ key?: string | undefined;
2087
2108
  name?: string | undefined;
2088
2109
  status?: string | undefined;
2089
2110
  pageSize?: number | undefined;
@@ -2096,6 +2117,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2096
2117
  }) | undefined) => PaginatedSdkResult<{
2097
2118
  id: string;
2098
2119
  created_at: string;
2120
+ key: string | null;
2099
2121
  name: string | null;
2100
2122
  status: string;
2101
2123
  paused_reason: string | null;
@@ -2116,6 +2138,7 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
2116
2138
  }, {
2117
2139
  id: string;
2118
2140
  created_at: string;
2141
+ key: string | null;
2119
2142
  name: string | null;
2120
2143
  status: string;
2121
2144
  paused_reason: string | null;
@@ -4841,6 +4864,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4841
4864
  };
4842
4865
  } & {
4843
4866
  listTriggerInboxes: (options?: ({
4867
+ key?: string | undefined;
4844
4868
  name?: string | undefined;
4845
4869
  status?: string | undefined;
4846
4870
  pageSize?: number | undefined;
@@ -4853,6 +4877,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4853
4877
  }) | undefined) => PaginatedSdkResult<{
4854
4878
  id: string;
4855
4879
  created_at: string;
4880
+ key: string | null;
4856
4881
  name: string | null;
4857
4882
  status: string;
4858
4883
  paused_reason: string | null;
@@ -4874,6 +4899,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4874
4899
  createTriggerInbox: (options?: {
4875
4900
  app: string;
4876
4901
  action: string;
4902
+ key?: string | undefined;
4877
4903
  name?: string | undefined;
4878
4904
  connection?: string | number | null | undefined;
4879
4905
  inputs?: Record<string, unknown> | undefined;
@@ -4882,6 +4908,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4882
4908
  data: {
4883
4909
  id: string;
4884
4910
  created_at: string;
4911
+ key: string | null;
4885
4912
  name: string | null;
4886
4913
  status: string;
4887
4914
  paused_reason: string | null;
@@ -4902,6 +4929,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4902
4929
  };
4903
4930
  } & {
4904
4931
  ensureTriggerInbox: (options?: {
4932
+ key: string;
4933
+ app: string;
4934
+ action: string;
4935
+ connection?: string | number | null | undefined;
4936
+ inputs?: Record<string, unknown> | undefined;
4937
+ notificationUrl?: string | undefined;
4938
+ } | {
4905
4939
  name: string;
4906
4940
  app: string;
4907
4941
  action: string;
@@ -4912,6 +4946,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4912
4946
  data: {
4913
4947
  id: string;
4914
4948
  created_at: string;
4949
+ key: string | null;
4915
4950
  name: string | null;
4916
4951
  status: string;
4917
4952
  paused_reason: string | null;
@@ -4937,6 +4972,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4937
4972
  data: {
4938
4973
  id: string;
4939
4974
  created_at: string;
4975
+ key: string | null;
4940
4976
  name: string | null;
4941
4977
  status: string;
4942
4978
  paused_reason: string | null;
@@ -4963,6 +4999,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4963
4999
  data: {
4964
5000
  id: string;
4965
5001
  created_at: string;
5002
+ key: string | null;
4966
5003
  name: string | null;
4967
5004
  status: string;
4968
5005
  paused_reason: string | null;
@@ -4988,6 +5025,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
4988
5025
  data: {
4989
5026
  id: string;
4990
5027
  created_at: string;
5028
+ key: string | null;
4991
5029
  name: string | null;
4992
5030
  status: string;
4993
5031
  paused_reason: string | null;
@@ -5013,6 +5051,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5013
5051
  data: {
5014
5052
  id: string;
5015
5053
  created_at: string;
5054
+ key: string | null;
5016
5055
  name: string | null;
5017
5056
  status: string;
5018
5057
  paused_reason: string | null;
@@ -5038,6 +5077,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5038
5077
  data: {
5039
5078
  id: string;
5040
5079
  created_at: string;
5080
+ key: string | null;
5041
5081
  name: string | null;
5042
5082
  status: string;
5043
5083
  paused_reason: string | null;
@@ -5193,6 +5233,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5193
5233
  resolvers: {
5194
5234
  inbox: DynamicResolver$1<{
5195
5235
  listTriggerInboxes: (options?: ({
5236
+ key?: string | undefined;
5196
5237
  name?: string | undefined;
5197
5238
  status?: string | undefined;
5198
5239
  pageSize?: number | undefined;
@@ -5205,6 +5246,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5205
5246
  }) | undefined) => PaginatedSdkResult<{
5206
5247
  id: string;
5207
5248
  created_at: string;
5249
+ key: string | null;
5208
5250
  name: string | null;
5209
5251
  status: string;
5210
5252
  paused_reason: string | null;
@@ -5225,6 +5267,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5225
5267
  }, {
5226
5268
  id: string;
5227
5269
  created_at: string;
5270
+ key: string | null;
5228
5271
  name: string | null;
5229
5272
  status: string;
5230
5273
  paused_reason: string | null;
@@ -5269,6 +5312,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5269
5312
  resolvers: {
5270
5313
  inbox: DynamicResolver$1<{
5271
5314
  listTriggerInboxes: (options?: ({
5315
+ key?: string | undefined;
5272
5316
  name?: string | undefined;
5273
5317
  status?: string | undefined;
5274
5318
  pageSize?: number | undefined;
@@ -5281,6 +5325,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5281
5325
  }) | undefined) => PaginatedSdkResult<{
5282
5326
  id: string;
5283
5327
  created_at: string;
5328
+ key: string | null;
5284
5329
  name: string | null;
5285
5330
  status: string;
5286
5331
  paused_reason: string | null;
@@ -5301,6 +5346,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5301
5346
  }, {
5302
5347
  id: string;
5303
5348
  created_at: string;
5349
+ key: string | null;
5304
5350
  name: string | null;
5305
5351
  status: string;
5306
5352
  paused_reason: string | null;
@@ -3151,9 +3151,12 @@ var TablesPropertySchema = z.array(z.string()).describe("Filter by specific tabl
3151
3151
  var ConnectionsPropertySchema = z.array(z.string()).describe("List of connection IDs to filter by");
3152
3152
  var TriggerInboxPropertySchema = withPositional(
3153
3153
  z.string().min(1).describe(
3154
- "Trigger inbox identifier \u2014 UUID or name. Non-UUID values are resolved by name via the inbox list endpoint."
3154
+ "Trigger inbox identifier \u2014 UUID or key. Non-UUID values are resolved by key via the inbox list endpoint."
3155
3155
  )
3156
3156
  );
3157
+ var TriggerInboxKeyPropertySchema = z.string().min(1).max(100).describe(
3158
+ "Inbox key; unique per (user, account). Enables get-or-create on createTriggerInbox."
3159
+ );
3157
3160
  var TriggerInboxNamePropertySchema = z.string().min(1).max(100).describe(
3158
3161
  "Inbox name; unique per (user, account). Enables get-or-create on createTriggerInbox."
3159
3162
  );
@@ -5214,7 +5217,7 @@ function parseDeprecationDate(value) {
5214
5217
  }
5215
5218
 
5216
5219
  // src/sdk-version.ts
5217
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.80.2" : void 0) || "unknown";
5220
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.81.0" : void 0) || "unknown";
5218
5221
 
5219
5222
  // src/utils/open-url.ts
5220
5223
  var nodePrefix = "node:";
@@ -6977,7 +6980,7 @@ var triggerInboxResolver = {
6977
6980
  // `deleting` inboxes are on their way out — no operation against them
6978
6981
  // is useful (delete is a no-op, pause/resume/update are rejected).
6979
6982
  choices: inboxes.filter((inbox) => inbox.status !== "deleting").map((inbox) => ({
6980
- name: inbox.name ?? inbox.id,
6983
+ name: inbox.key ?? inbox.name ?? inbox.id,
6981
6984
  hint: `${inbox.subscription.app_key} / ${inbox.subscription.action_key}, ${inbox.status}`,
6982
6985
  value: inbox.id
6983
6986
  }))
@@ -12066,6 +12069,11 @@ var TriggerSubscriptionApiSchema = z.object({
12066
12069
  var TriggerInboxItemSchema = z.object({
12067
12070
  id: z.string(),
12068
12071
  created_at: z.string(),
12072
+ // `key` is an API-layer alias over the same nullable `name` column, so it's
12073
+ // always present but can be null — null means no natural key (inbox created
12074
+ // without one, or key cleared on delete).
12075
+ key: z.string().nullable(),
12076
+ /** @deprecated Use `key` instead. */
12069
12077
  name: z.string().nullable(),
12070
12078
  status: TriggerInboxStatusSchema,
12071
12079
  paused_reason: TriggerInboxPausedReasonSchema.nullable(),
@@ -12074,11 +12082,15 @@ var TriggerInboxItemSchema = z.object({
12074
12082
  });
12075
12083
 
12076
12084
  // src/plugins/triggers/createTriggerInbox/schemas.ts
12077
- var CreateTriggerInboxDescription = "Create a new trigger inbox subscription. Always creates a new inbox; use ensureTriggerInbox for get-or-create on a stable name.";
12085
+ var CreateTriggerInboxDescription = "Create a new trigger inbox subscription. Always creates a new inbox; use ensureTriggerInbox for get-or-create on a stable key.";
12078
12086
  var CreateTriggerInboxSchema = z.object({
12087
+ key: TriggerInboxKeyPropertySchema.optional().describe(
12088
+ "Optional inbox key. Auto-generated when omitted. Throws a conflict error if the key is already in use by another subscription."
12089
+ ),
12090
+ /** @deprecated Use `key` instead. */
12079
12091
  name: TriggerInboxNamePropertySchema.optional().describe(
12080
12092
  "Optional inbox name. Auto-generated when omitted. Throws a conflict error if the name is already in use by another subscription."
12081
- ),
12093
+ ).meta({ deprecated: true }),
12082
12094
  app: AppPropertySchema,
12083
12095
  action: ActionPropertySchema,
12084
12096
  connection: ConnectionPropertySchema.nullable().optional().describe(
@@ -12116,7 +12128,7 @@ var triggerInboxItemFormatter = {
12116
12128
  });
12117
12129
  }
12118
12130
  return {
12119
- title: item.name ?? `Trigger Inbox ${item.id}`,
12131
+ title: item.key ?? item.name ?? `Trigger Inbox ${item.id}`,
12120
12132
  id: item.id,
12121
12133
  details
12122
12134
  };
@@ -12139,14 +12151,14 @@ async function resolveTriggerInboxId({
12139
12151
  return inbox;
12140
12152
  }
12141
12153
  const rawResponse = await api.get("/trigger-inbox/api/v1/inboxes", {
12142
- searchParams: { name: inbox, limit: "1" },
12154
+ searchParams: { key: inbox, limit: "1" },
12143
12155
  authRequired: true
12144
12156
  });
12145
12157
  const response = rawResponse;
12146
12158
  const id = response.results?.[0]?.id;
12147
12159
  if (!id) {
12148
12160
  throw new ZapierResourceNotFoundError(
12149
- `No trigger inbox named "${inbox}" found.`,
12161
+ `No trigger inbox with key "${inbox}" found.`,
12150
12162
  { resourceType: "trigger_inbox", resourceId: inbox }
12151
12163
  );
12152
12164
  }
@@ -12177,7 +12189,7 @@ var createTriggerInboxPlugin = definePlugin(
12177
12189
  // seeded into resolvedParams without polluting the user-facing schema
12178
12190
  // (where it would leak into the SDK method signature and CLI flags).
12179
12191
  resolvers: {
12180
- name: { type: "static", inputType: "text" },
12192
+ key: { type: "static", inputType: "text" },
12181
12193
  app: appKeyResolver,
12182
12194
  action: actionKeyResolver,
12183
12195
  connection: connectionIdResolver,
@@ -12187,13 +12199,13 @@ var createTriggerInboxPlugin = definePlugin(
12187
12199
  handler: async ({ sdk: sdk2, options }) => {
12188
12200
  const { api } = sdk2.context;
12189
12201
  const {
12190
- name,
12191
12202
  app: appKey,
12192
12203
  action: actionKey,
12193
12204
  connection,
12194
12205
  inputs = {},
12195
12206
  notificationUrl
12196
12207
  } = options;
12208
+ const key2 = options.key ?? options.name;
12197
12209
  const resolvedConnectionId = await resolveConnectionId({
12198
12210
  connection,
12199
12211
  resolveConnection: sdk2.context.resolveConnection
@@ -12213,8 +12225,8 @@ var createTriggerInboxPlugin = definePlugin(
12213
12225
  connection_id: resolvedConnectionId ?? null
12214
12226
  }
12215
12227
  };
12216
- if (name !== void 0) {
12217
- requestBody.name = name;
12228
+ if (key2 !== void 0) {
12229
+ requestBody.key = key2;
12218
12230
  }
12219
12231
  if (notificationUrl !== void 0) {
12220
12232
  requestBody.notification_url = notificationUrl;
@@ -12228,7 +12240,7 @@ var createTriggerInboxPlugin = definePlugin(
12228
12240
  if (status === 409) {
12229
12241
  const detail = extractErrorDetail(data);
12230
12242
  return new ZapierConflictError(
12231
- detail ?? `An inbox named "${name}" already exists with a different subscription.`,
12243
+ detail ?? `An inbox with key "${key2}" already exists with a different subscription.`,
12232
12244
  { statusCode: status, resourceType: "trigger_inbox" }
12233
12245
  );
12234
12246
  }
@@ -12240,11 +12252,8 @@ var createTriggerInboxPlugin = definePlugin(
12240
12252
  }
12241
12253
  })
12242
12254
  );
12243
- var EnsureTriggerInboxDescription = "Get-or-create a trigger inbox by name. Idempotent on (user, account, name): returns the existing inbox if a matching subscription is registered, creates a new one otherwise. Throws ZapierConflictError if the name exists with a different subscription.";
12244
- var EnsureTriggerInboxSchema = z.object({
12245
- name: TriggerInboxNamePropertySchema.describe(
12246
- "Inbox name; serves as the idempotency key. Required for ensureTriggerInbox \u2014 without one, the API mints a fresh inbox each call (use createTriggerInbox for that path)."
12247
- ),
12255
+ var EnsureTriggerInboxDescription = "Get-or-create a trigger inbox by key. Idempotent on (user, account, key): returns the existing inbox if a matching subscription is registered, creates a new one otherwise. Throws ZapierConflictError if the key exists with a different subscription.";
12256
+ var EnsureTriggerInboxBaseSchema = z.object({
12248
12257
  app: AppPropertySchema,
12249
12258
  action: ActionPropertySchema,
12250
12259
  connection: ConnectionPropertySchema.nullable().optional().describe(
@@ -12254,7 +12263,18 @@ var EnsureTriggerInboxSchema = z.object({
12254
12263
  "Input parameters for the trigger subscription"
12255
12264
  ),
12256
12265
  notificationUrl: z.string().url().optional().describe("Webhook URL to POST to when new messages arrive")
12257
- }).describe(EnsureTriggerInboxDescription);
12266
+ });
12267
+ var EnsureTriggerInboxSchema = z.object({
12268
+ key: TriggerInboxKeyPropertySchema.describe(
12269
+ "Inbox key; serves as the idempotency key. Required for ensureTriggerInbox \u2014 without one, the API mints a fresh inbox each call (use createTriggerInbox for that path)."
12270
+ )
12271
+ }).merge(EnsureTriggerInboxBaseSchema).describe(EnsureTriggerInboxDescription).meta({ aliases: { name: "key" } });
12272
+ var EnsureTriggerInboxSchemaDeprecated = z.object({
12273
+ name: TriggerInboxNamePropertySchema.describe(
12274
+ "Inbox name; serves as the idempotency key. Required for ensureTriggerInbox \u2014 without one, the API mints a fresh inbox each call (use createTriggerInbox for that path)."
12275
+ )
12276
+ }).merge(EnsureTriggerInboxBaseSchema);
12277
+ var EnsureTriggerInboxInputSchema = z.union([EnsureTriggerInboxSchema, EnsureTriggerInboxSchemaDeprecated]).describe(EnsureTriggerInboxDescription);
12258
12278
 
12259
12279
  // src/plugins/triggers/ensureTriggerInbox/index.ts
12260
12280
  var ensureTriggerInboxPlugin = definePlugin(
@@ -12263,14 +12283,14 @@ var ensureTriggerInboxPlugin = definePlugin(
12263
12283
  name: "ensureTriggerInbox",
12264
12284
  type: "create",
12265
12285
  itemType: "TriggerInbox",
12266
- inputSchema: EnsureTriggerInboxSchema,
12286
+ inputSchema: EnsureTriggerInboxInputSchema,
12267
12287
  outputSchema: TriggerInboxItemSchema,
12268
12288
  formatter: triggerInboxItemFormatter,
12269
12289
  // actionKeyResolver and inputsResolver depend on actionType, which is
12270
12290
  // always "read" for triggers. Pin it as a constant resolver so it's
12271
12291
  // seeded into resolvedParams without polluting the user-facing schema.
12272
12292
  resolvers: {
12273
- name: { type: "static", inputType: "text" },
12293
+ key: { type: "static", inputType: "text" },
12274
12294
  app: appKeyResolver,
12275
12295
  action: actionKeyResolver,
12276
12296
  connection: connectionIdResolver,
@@ -12284,9 +12304,9 @@ var ensureTriggerInboxPlugin = definePlugin(
12284
12304
  action: actionKey,
12285
12305
  connection,
12286
12306
  inputs = {},
12287
- name,
12288
12307
  notificationUrl
12289
12308
  } = options;
12309
+ const key2 = "key" in options ? options.key : options.name;
12290
12310
  const resolvedConnectionId = await resolveConnectionId({
12291
12311
  connection,
12292
12312
  resolveConnection: sdk2.context.resolveConnection
@@ -12299,7 +12319,7 @@ var ensureTriggerInboxPlugin = definePlugin(
12299
12319
  );
12300
12320
  }
12301
12321
  const requestBody = {
12302
- name,
12322
+ key: key2,
12303
12323
  subscription: {
12304
12324
  app_key: selectedApi,
12305
12325
  action_key: actionKey,
@@ -12319,7 +12339,7 @@ var ensureTriggerInboxPlugin = definePlugin(
12319
12339
  if (status === 409) {
12320
12340
  const detail = extractErrorDetail(data);
12321
12341
  return new ZapierConflictError(
12322
- detail ?? `An inbox named "${name}" already exists with a different subscription.`,
12342
+ detail ?? `An inbox with key "${key2}" already exists with a different subscription.`,
12323
12343
  { statusCode: status, resourceType: "trigger_inbox" }
12324
12344
  );
12325
12345
  }
@@ -12332,9 +12352,13 @@ var ensureTriggerInboxPlugin = definePlugin(
12332
12352
  })
12333
12353
  );
12334
12354
  var ListTriggerInboxesSchema = z.object({
12355
+ key: z.string().min(1).optional().describe(
12356
+ "Filter by inbox key (exact match). Keys are unique per (user, account), so this returns at most one inbox."
12357
+ ),
12358
+ /** @deprecated Use `key` instead. */
12335
12359
  name: z.string().min(1).optional().describe(
12336
12360
  "Filter by inbox name (exact match). Names are unique per (user, account), so this returns at most one inbox."
12337
- ),
12361
+ ).meta({ deprecated: true }),
12338
12362
  status: TriggerInboxStatusSchema.optional().describe(
12339
12363
  "Filter by inbox status"
12340
12364
  ),
@@ -12373,8 +12397,9 @@ var listTriggerInboxesPlugin = definePlugin(
12373
12397
  if (options.status) {
12374
12398
  searchParams.status = options.status;
12375
12399
  }
12376
- if (options.name) {
12377
- searchParams.name = options.name;
12400
+ const keyFilter = options.key ?? options.name;
12401
+ if (keyFilter) {
12402
+ searchParams.key = keyFilter;
12378
12403
  }
12379
12404
  const rawResponse = await api.get("/trigger-inbox/api/v1/inboxes", {
12380
12405
  searchParams,
@@ -15199,4 +15224,4 @@ function createZapierSdk2(options = {}) {
15199
15224
  );
15200
15225
  }
15201
15226
 
15202
- export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, 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, addPlugin, 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, createController, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as createZapierSdkStack, createZapierSdkWithoutRegistry, dangerousContextPlugin, declareMethod, declareProperty, defineLegacyMerge, defineMethod, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierSdkPlugin };
15227
+ export { ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, CORE_ERROR_SYMBOL, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_APPROVAL_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, 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, TriggerInboxKeyPropertySchema, 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, addPlugin, 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, createController, createCorePlugin, createFunction, createMemoryCache, createOptionsPlugin, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierCoreStack, createZapierSdk2 as createZapierSdk, createZapierSdkStack2 as createZapierSdkStack, createZapierSdkWithoutRegistry, dangerousContextPlugin, declareMethod, declareProperty, defineLegacyMerge, defineMethod, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, durableRunIdResolver, eventEmissionPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierSdkPlugin };