@zapier/zapier-sdk 0.92.1 → 0.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +71 -1
- package/dist/{chunk-WFWTHI2N.cjs → chunk-TQT6EGZU.cjs} +1148 -1005
- package/dist/{chunk-6B4QZVQM.mjs → chunk-XUVZWY2D.mjs} +1145 -1006
- package/dist/experimental.cjs +395 -379
- package/dist/experimental.d.mts +149 -7
- package/dist/experimental.d.ts +149 -7
- package/dist/experimental.mjs +5 -5
- package/dist/{index-CBwO7l3J.d.mts → index-D6jpmIVn.d.mts} +322 -10
- package/dist/{index-CBwO7l3J.d.ts → index-D6jpmIVn.d.ts} +322 -10
- package/dist/index.cjs +288 -272
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ResponseMeta, b as ApiClient, c as PluginSummary, d as PaginatedSdkResult, e as ManifestProvider, C as ConnectionsProvider, f as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, g as CoreOptions, h as ActionProxy, i as ZapierSdkApps, D as DeleteTriggerInboxResult, j as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, k as Manifest, E as EventCallback, l as EventEmissionConfig, m as ZapierCache, n as ListActionsOptions, o as ListActionInputFieldsOptions, p as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { e3 as API_ID, O as Action, d_ as ActionEntry, dn as ActionExecutionOptions, Y as ActionExecutionResult, _ as ActionField, $ as ActionFieldChoice, bL as ActionItem, cn as ActionKeyProperty, bV as ActionKeyPropertySchema, co as ActionProperty, bW as ActionPropertySchema, bv as ActionResolverItem, cA as ActionTimeoutMillisecondsProperty, c6 as ActionTimeoutMillisecondsPropertySchema, cz as ActionTimeoutSecondsProperty, c5 as ActionTimeoutSecondsPropertySchema, bw as ActionTypeItem, cm as ActionTypeProperty, bU as ActionTypePropertySchema, dj as ApiError, eQ as ApiEvent, e1 as ApiPluginOptions, Q as App, dp as AppFactoryInput, bJ as AppItem, ck as AppKeyProperty, bS as AppKeyPropertySchema, cl as AppProperty, bT as AppPropertySchema, fT as ApplicationLifecycleEventData, d3 as ApprovalStatus, cF as AppsProperty, cb as AppsPropertySchema, aE as ArrayResolver, eP as AuthEvent, eB as AuthMechanism, cs as AuthenticationIdProperty, bZ as AuthenticationIdPropertySchema, f$ as BaseEvent, bd as BaseSdkOptionsSchema, b2 as BatchOptions, aA as BoundFormatter, fg as CONNECTIONS_ID, af as CONTEXT, dL as CONTEXT_CACHE_MAX_SIZE, dK as CONTEXT_CACHE_TTL_MILLISECONDS, bh as CORE_ERROR_SYMBOL, ba as CORE_OPTIONS_ID, bn as CORE_SIGNAL_SYMBOL, a_ as CallerContext, X as Choice, eV as ClientCredentialsObject, f4 as ClientCredentialsObjectSchema, a2 as Connection, fc as ConnectionEntry, fb as ConnectionEntrySchema, cq as ConnectionIdProperty, bY as ConnectionIdPropertySchema, bK as ConnectionItem, cr as ConnectionProperty, b_ as ConnectionPropertySchema, fe as ConnectionsMap, fd as ConnectionsMapSchema, cH as ConnectionsProperty, cd as ConnectionsPropertySchema, a3 as ConnectionsResponse, aQ as ControllerAction, aR as ControllerAnswerFn, aS as ControllerChoice, aU as ControllerMethodDescription, aT as ControllerMethodSummary, aV as ControllerParameterDescription, aP as ControllerQuestion, bk as CoreCancelledSignal, ad as CoreDisposeError, bi as CoreErrorCode, bj as CoreSignal, eS as Credentials, f9 as CredentialsFunction, f8 as CredentialsFunctionSchema, eU as CredentialsObject, f6 as CredentialsObjectSchema, fa as CredentialsSchema, fn as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fw as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dY as DEFAULT_CONFIG_PATH, fx as DEFAULT_MAX_APPROVAL_RETRIES, fm as DEFAULT_PAGE_SIZE, bH as DEPRECATION_NOTICE_EVENT, cx as DebugProperty, c3 as DebugPropertySchema, bI as DeprecationNoticePayload, x as DrainTriggerInboxCallback, y as DrainTriggerInboxErrorObserver, r as DrainTriggerInboxSchema, aI as DynamicListResolver, aM as DynamicMember, aH as DynamicResolver, aJ as DynamicSearchResolver, fN as EVENT_EMISSION_ID, fU as EnhancedErrorEventData, cO as ErrorOptions, fS as EventContext, fL as EventEmissionContext, fM as EventEmitter, fR as EventTransport, dq as FetchPluginProvides, V as Field, cE as FieldsProperty, ca as FieldsPropertySchema, aK as FieldsResolver, K as FindFirstAuthenticationPluginProvides, N as FindUniqueAuthenticationPluginProvides, az as FormattedItem, aB as Formatter, bc as FunctionDeprecation, bb as FunctionRegistryEntry, J as GetAuthenticationPluginProvides, e0 as GetProfilePluginProvides, bN as InfoFieldItem, bM as InputFieldItem, cp as InputFieldProperty, bX as InputFieldPropertySchema, ct as InputsProperty, b$ as InputsPropertySchema, bG as JsonSseMessage, cN as LeaseLimitProperty, cj as LeaseLimitPropertySchema, cL as LeaseProperty, ch as LeasePropertySchema, cM as LeaseSecondsProperty, ci as LeaseSecondsPropertySchema, z as LeasedTriggerMessageItem, cu as LimitProperty, c0 as LimitPropertySchema, dx as ListActionInputFieldsPluginProvides, dv as ListActionsPluginProvides, dt as ListAppsPluginProvides, I as ListAuthenticationsPluginProvides, dB as ListConnectionsPluginProvides, eR as LoadingEvent, dT as MANIFEST_ID, fq as MAX_CONCURRENCY_LIMIT, fl as MAX_PAGE_LIMIT, dZ as ManifestEntry, dP as ManifestPluginOptions, g0 as MethodCalledEvent, fV as MethodCalledEventData, bq as MethodOverridePlugin, aL as ModelResolver, U as Need, a0 as NeedsRequest, a1 as NeedsResponse, cv as OffsetProperty, c1 as OffsetPropertySchema, aC as OutputFormatter, cw as OutputProperty, c2 as OutputPropertySchema, bR as PaginatedSdkFunction, cy as ParamsProperty, c4 as ParamsPropertySchema, eW as PkceCredentialsObject, f5 as PkceCredentialsObjectSchema, bo as Plugin, q as PluginMeta, bp as PluginProvides, aN as PluginSurface, bB as PollOptions, a6 as PositionalMetadata, e6 as RESOLVE_CREDENTIALS_ID, d1 as RateLimitInfo, cC as RecordProperty, c8 as RecordPropertySchema, cD as RecordsProperty, c9 as RecordsPropertySchema, b7 as RelayFetchSchema, b6 as RelayRequestSchema, bA as RequestOptions, eA as ResolveAuthTokenOptions, ff as ResolveConnection, e2 as ResolveCredentialsFn, e$ as ResolveCredentialsOptions, bx as ResolvedAppLocator, eC as ResolvedAuth, eT as ResolvedCredentials, f7 as ResolvedCredentialsSchema, aD as Resolver, aF as ResolverMetadata, bO as RootFieldItem, dN as RunActionPluginProvides, ax as SDK_OPTIONS_ID, eO as SdkEvent, bQ as SdkPage, bF as SseMessage, aG as StaticResolver, cB as TableProperty, c7 as TablePropertySchema, cG as TablesProperty, cc as TablesPropertySchema, cJ as TriggerInboxKeyProperty, cf as TriggerInboxKeyPropertySchema, cK as TriggerInboxNameProperty, cg as TriggerInboxNamePropertySchema, cI as TriggerInboxProperty, ce as TriggerInboxPropertySchema, H as TriggerMessageStatus, dW as UpdateManifestEntryOptions, dX as UpdateManifestEntryResult, a4 as UserProfile, bP as UserProfileItem, s as WatchTriggerInboxSchema, fj as ZAPIER_BASE_URL, fs as ZAPIER_MAX_CONCURRENT_REQUESTS, fo as ZAPIER_MAX_NETWORK_RETRIES, fp as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, t as ZapierAbortDrainSignal, c$ as ZapierActionError, cU as ZapierApiError, cV as ZapierAppNotFoundError, d4 as ZapierApprovalError, cS as ZapierAuthenticationError, cZ as ZapierBundleError, eL as ZapierCacheEntry, eM as ZapierCacheSetOptions, cY as ZapierConfigurationError, d0 as ZapierConflictError, cP as ZapierError, cW as ZapierNotFoundError, d2 as ZapierRateLimitError, d5 as ZapierRelayError, u as ZapierReleaseTriggerMessageSignal, cX as ZapierResourceNotFoundError, dk as ZapierSignal, c_ as ZapierTimeoutError, cR as ZapierUnknownError, cQ as ZapierValidationError, eb as actionKeyResolver, ea as actionTypeResolver, ab as addPlugin, e5 as apiPlugin, e4 as apiPluginRef, e9 as appKeyResolver, dm as appsPlugin, b1 as batch, fW as buildApplicationLifecycleEvent, b3 as buildCapabilityMessage, fY as buildErrorEvent, fX as buildErrorEventWithContext, f_ as buildMethodCalledEvent, fK as cleanupEventListeners, eD as clearTokenCache, eh as clientCredentialsNameResolver, ei as clientIdResolver, bu as composePlugins, ed as connectionIdGenericResolver, ec as connectionIdResolver, fi as connectionsPlugin, fh as connectionsPluginRef, fZ as createBaseEvent, dD as createClientCredentialsPlugin, aO as createController, aa as createCorePlugin, a7 as createFunction, eN as createMemoryCache, a8 as createPaginatedFunction, bt as createPaginatedPluginMethod, bs as createPluginMethod, a9 as createPluginStack, ae as createSdk, fD as createTableFieldsPlugin, fA as createTablePlugin, fH as createTableRecordsPlugin, bC as createZapierApi, b8 as createZapierSdkWithoutRegistry, aq as declareMethod, as as declareOptionalProperty, ak as declarePlugin, ar as declareProperty, ap as defineFormatter, ai as defineLegacyMerge, al as defineMethod, am as defineMethodOverride, br as definePlugin, an as defineProperty, ao as defineResolver, dE as deleteClientCredentialsPlugin, fE as deleteTableFieldsPlugin, fB as deleteTablePlugin, fI as deleteTableRecordsPlugin, ac as disposeSdk, em as durableRunIdResolver, fQ as eventEmissionHookPlugin, fP as eventEmissionPlugin, fO as eventEmissionPluginRef, dr as fetchPlugin, dI as findFirstConnectionPlugin, dS as findManifestEntry, dJ as findUniqueConnectionPlugin, di as formatErrorMessage, ah as fromFunctionPlugin, g2 as generateEventId, dz as getActionInputFieldsSchemaPlugin, dG as getActionPlugin, by as getAgent, dF as getAppPlugin, f2 as getBaseUrlFromCredentials, aY as getCallerContext, g8 as getCiPlatform, f3 as getClientIdFromCredentials, dH as getConnectionPlugin, aj as getContext, bg as getCoreErrorCause, bf as getCoreErrorCode, ga as getCpuTime, g3 as getCurrentTimestamp, g9 as getMemoryUsage, bD as getOrCreateApiClient, g5 as getOsInfo, g6 as getPlatformVersions, dR as getPreferredManifestEntryKey, d$ as getProfilePlugin, av as getRegistryPlugin, g4 as getReleaseId, fz as getTablePlugin, fF as getTableRecordPlugin, eH as getTokenFromCliLogin, gb as getTtyContext, ft as getZapierApprovalMode, fv as getZapierDefaultApprovalMode, fu as getZapierOpenAutoModeApprovalsInBrowser, fk as getZapierSdkService, eF as injectCliLogin, eg as inputFieldKeyResolver, ef as inputsAllOptionalResolver, ee as inputsResolver, eE as invalidateCachedToken, eK as invalidateCredentialsToken, g7 as isCi, eG as isCliLoginAvailable, eX as isClientCredentials, bm as isCoreCancelledSignal, be as isCoreError, bl as isCoreSignal, e_ as isCredentialsFunction, eZ as isCredentialsObject, bE as isPermanentHttpError, eY as isPkceCredentials, a5 as isPositional, v as isZapierAbortDrainSignal, df as isZapierActionError, d9 as isZapierAppNotFoundError, dh as isZapierApprovalError, d8 as isZapierAuthenticationError, de as isZapierBundleError, dc as isZapierConflictError, d6 as isZapierError, da as isZapierNotFoundError, dg as isZapierRateLimitError, w as isZapierReleaseTriggerMessageSignal, db as isZapierResourceNotFoundError, dl as isZapierSignal, dd as isZapierTimeoutError, d7 as isZapierValidationError, dy as listActionInputFieldChoicesPlugin, dw as listActionInputFieldsPlugin, du as listActionsPlugin, ds as listAppsPlugin, dC as listClientCredentialsPlugin, dA as listConnectionsPlugin, fC as listTableFieldsPlugin, fG as listTableRecordsPlugin, fy as listTablesPlugin, b4 as logDeprecation, dV as manifestPlugin, dU as manifestPluginRef, au as omitExports, g1 as operationAnnotatorPlugin, fr as parseConcurrencyEnvVar, dQ as readManifestFromFile, bz as registryPlugin, dO as requestPlugin, b5 as resetDeprecationWarnings, eI as resolveAuth, eJ as resolveAuthToken, f1 as resolveCredentials, f0 as resolveCredentialsFromEnv, e8 as resolveCredentialsPlugin, e7 as resolveCredentialsPluginRef, ag as resolvePlugin, dM as runActionPlugin, aW as runInMethodScope, aZ as runWithCallerContext, aX as runWithTelemetryContext, ay as sdkOptionsPluginRef, at as selectExports, et as tableFieldIdsResolver, ev as tableFieldsResolver, ey as tableFiltersResolver, ej as tableIdResolver, eu as tableNameResolver, er as tableRecordIdResolver, es as tableRecordIdsResolver, ew as tableRecordsResolver, ez as tableSortResolver, ex as tableUpdateRecordsResolver, a$ as toSnakeCase, b0 as toTitleCase, ek as triggerInboxResolver, eq as triggerMessagesResolver, fJ as updateTableRecordsPlugin, eo as workflowDraftIdResolver, el as workflowIdResolver, ep as workflowRunIdResolver, en as workflowVersionIdResolver, cT as zapierAdaptError, b9 as zapierCoreOptions, aw as zapierSdkPlugin } from './index-CBwO7l3J.mjs';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ResponseMeta, b as ApiClient, c as PluginSummary, d as PaginatedSdkResult, e as ManifestProvider, C as ConnectionsProvider, f as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, g as CoreOptions, h as ActionProxy, i as ZapierSdkApps, D as DeleteTriggerInboxResult, j as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, k as Manifest, E as EventCallback, l as EventEmissionConfig, m as ZapierCache, n as ListActionsOptions, o as ListActionInputFieldsOptions, p as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-D6jpmIVn.mjs';
|
|
2
|
+
export { fu as ACTION_RUNS_PATH, e9 as API_ID, O as Action, e4 as ActionEntry, dq as ActionExecutionOptions, Y as ActionExecutionResult, _ as ActionField, $ as ActionFieldChoice, bN as ActionItem, cp as ActionKeyProperty, bX as ActionKeyPropertySchema, cq as ActionProperty, bY as ActionPropertySchema, bx as ActionResolverItem, cC as ActionTimeoutMillisecondsProperty, c8 as ActionTimeoutMillisecondsPropertySchema, cB as ActionTimeoutSecondsProperty, c7 as ActionTimeoutSecondsPropertySchema, by as ActionTypeItem, co as ActionTypeProperty, bW as ActionTypePropertySchema, dl as ApiError, eW as ApiEvent, e7 as ApiPluginOptions, Q as App, dr as AppFactoryInput, bL as AppItem, cm as AppKeyProperty, bU as AppKeyPropertySchema, cn as AppProperty, bV as AppPropertySchema, f_ as ApplicationLifecycleEventData, d5 as ApprovalStatus, cH as AppsProperty, cd as AppsPropertySchema, aG as ArrayResolver, eV as AuthEvent, eH as AuthMechanism, cu as AuthenticationIdProperty, b$ as AuthenticationIdPropertySchema, g6 as BaseEvent, bf as BaseSdkOptionsSchema, b4 as BatchOptions, aC as BoundFormatter, fm as CONNECTIONS_ID, ah as CONTEXT, dN as CONTEXT_CACHE_MAX_SIZE, dM as CONTEXT_CACHE_TTL_MILLISECONDS, bj as CORE_ERROR_SYMBOL, bc as CORE_OPTIONS_ID, bp as CORE_SIGNAL_SYMBOL, b0 as CallerContext, X as Choice, e$ as ClientCredentialsObject, fa as ClientCredentialsObjectSchema, a2 as Connection, fi as ConnectionEntry, fh as ConnectionEntrySchema, cs as ConnectionIdProperty, b_ as ConnectionIdPropertySchema, bM as ConnectionItem, ct as ConnectionProperty, c0 as ConnectionPropertySchema, fk as ConnectionsMap, fj as ConnectionsMapSchema, cJ as ConnectionsProperty, cf as ConnectionsPropertySchema, a3 as ConnectionsResponse, aS as ControllerAction, aT as ControllerAnswerFn, aU as ControllerChoice, aW as ControllerMethodDescription, aV as ControllerMethodSummary, aX as ControllerParameterDescription, aR as ControllerQuestion, bm as CoreCancelledSignal, af as CoreDisposeError, bk as CoreErrorCode, bl as CoreSignal, dP as CreateActionRunPluginProvides, eY as Credentials, ff as CredentialsFunction, fe as CredentialsFunctionSchema, e_ as CredentialsObject, fc as CredentialsObjectSchema, fg as CredentialsSchema, ft as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fD as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, e2 as DEFAULT_CONFIG_PATH, fE as DEFAULT_MAX_APPROVAL_RETRIES, fs as DEFAULT_PAGE_SIZE, bJ as DEPRECATION_NOTICE_EVENT, cz as DebugProperty, c5 as DebugPropertySchema, bK as DeprecationNoticePayload, x as DrainTriggerInboxCallback, y as DrainTriggerInboxErrorObserver, r as DrainTriggerInboxSchema, aK as DynamicListResolver, aO as DynamicMember, aJ as DynamicResolver, aL as DynamicSearchResolver, fU as EVENT_EMISSION_ID, f$ as EnhancedErrorEventData, cQ as ErrorOptions, fZ as EventContext, fS as EventEmissionContext, fT as EventEmitter, fY as EventTransport, ds as FetchPluginProvides, V as Field, cG as FieldsProperty, cc as FieldsPropertySchema, aM as FieldsResolver, K as FindFirstAuthenticationPluginProvides, N as FindUniqueAuthenticationPluginProvides, aB as FormattedItem, aD as Formatter, be as FunctionDeprecation, bd as FunctionRegistryEntry, dR as GetActionRunPluginProvides, J as GetAuthenticationPluginProvides, e6 as GetProfilePluginProvides, bP as InfoFieldItem, bO as InputFieldItem, cr as InputFieldProperty, bZ as InputFieldPropertySchema, cv as InputsProperty, c1 as InputsPropertySchema, bI as JsonSseMessage, cP as LeaseLimitProperty, cl as LeaseLimitPropertySchema, cN as LeaseProperty, cj as LeasePropertySchema, cO as LeaseSecondsProperty, ck as LeaseSecondsPropertySchema, z as LeasedTriggerMessageItem, cw as LimitProperty, c2 as LimitPropertySchema, dz as ListActionInputFieldsPluginProvides, dx as ListActionsPluginProvides, dv as ListAppsPluginProvides, I as ListAuthenticationsPluginProvides, dD as ListConnectionsPluginProvides, eX as LoadingEvent, dZ as MANIFEST_ID, fx as MAX_CONCURRENCY_LIMIT, fr as MAX_PAGE_LIMIT, e3 as ManifestEntry, dV as ManifestPluginOptions, g7 as MethodCalledEvent, g0 as MethodCalledEventData, bs as MethodOverridePlugin, aN as ModelResolver, U as Need, a0 as NeedsRequest, a1 as NeedsResponse, a8 as NegatableMetadata, cx as OffsetProperty, c3 as OffsetPropertySchema, aE as OutputFormatter, cy as OutputProperty, c4 as OutputPropertySchema, bT as PaginatedSdkFunction, cA as ParamsProperty, c6 as ParamsPropertySchema, f0 as PkceCredentialsObject, fb as PkceCredentialsObjectSchema, bq as Plugin, q as PluginMeta, br as PluginProvides, aP as PluginSurface, bD as PollOptions, a6 as PositionalMetadata, ec as RESOLVE_CREDENTIALS_ID, d3 as RateLimitInfo, cE as RecordProperty, ca as RecordPropertySchema, cF as RecordsProperty, cb as RecordsPropertySchema, b9 as RelayFetchSchema, b8 as RelayRequestSchema, bC as RequestOptions, eG as ResolveAuthTokenOptions, fl as ResolveConnection, e8 as ResolveCredentialsFn, f5 as ResolveCredentialsOptions, bz as ResolvedAppLocator, eI as ResolvedAuth, eZ as ResolvedCredentials, fd as ResolvedCredentialsSchema, aF as Resolver, aH as ResolverMetadata, bQ as RootFieldItem, dT as RunActionPluginProvides, az as SDK_OPTIONS_ID, eU as SdkEvent, bS as SdkPage, bH as SseMessage, aI as StaticResolver, cD as TableProperty, c9 as TablePropertySchema, cI as TablesProperty, ce as TablesPropertySchema, cL as TriggerInboxKeyProperty, ch as TriggerInboxKeyPropertySchema, cM as TriggerInboxNameProperty, ci as TriggerInboxNamePropertySchema, cK as TriggerInboxProperty, cg as TriggerInboxPropertySchema, H as TriggerMessageStatus, e0 as UpdateManifestEntryOptions, e1 as UpdateManifestEntryResult, a4 as UserProfile, bR as UserProfileItem, s as WatchTriggerInboxSchema, fp as ZAPIER_BASE_URL, fz as ZAPIER_MAX_CONCURRENT_REQUESTS, fv as ZAPIER_MAX_NETWORK_RETRIES, fw as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, t as ZapierAbortDrainSignal, d1 as ZapierActionError, cW as ZapierApiError, cX as ZapierAppNotFoundError, d6 as ZapierApprovalError, cU as ZapierAuthenticationError, c$ as ZapierBundleError, eR as ZapierCacheEntry, eS as ZapierCacheSetOptions, c_ as ZapierConfigurationError, d2 as ZapierConflictError, cR as ZapierError, cY as ZapierNotFoundError, d4 as ZapierRateLimitError, d7 as ZapierRelayError, u as ZapierReleaseTriggerMessageSignal, cZ as ZapierResourceNotFoundError, dm as ZapierSignal, d0 as ZapierTimeoutError, cT as ZapierUnknownError, cS as ZapierValidationError, eh as actionKeyResolver, eg as actionTypeResolver, ad as addPlugin, eb as apiPlugin, ea as apiPluginRef, ef as appKeyResolver, dp as appsPlugin, b3 as batch, g1 as buildApplicationLifecycleEvent, b5 as buildCapabilityMessage, g3 as buildErrorEvent, g2 as buildErrorEventWithContext, g5 as buildMethodCalledEvent, fR as cleanupEventListeners, eJ as clearTokenCache, en as clientCredentialsNameResolver, eo as clientIdResolver, bw as composePlugins, ej as connectionIdGenericResolver, ei as connectionIdResolver, fo as connectionsPlugin, fn as connectionsPluginRef, dO as createActionRunPlugin, g4 as createBaseEvent, dF as createClientCredentialsPlugin, aQ as createController, ac as createCorePlugin, a9 as createFunction, eT as createMemoryCache, aa as createPaginatedFunction, bv as createPaginatedPluginMethod, bu as createPluginMethod, ab as createPluginStack, ag as createSdk, fK as createTableFieldsPlugin, fH as createTablePlugin, fO as createTableRecordsPlugin, bE as createZapierApi, ba as createZapierSdkWithoutRegistry, as as declareMethod, au as declareOptionalProperty, am as declarePlugin, at as declareProperty, ar as defineFormatter, ak as defineLegacyMerge, an as defineMethod, ao as defineMethodOverride, bt as definePlugin, ap as defineProperty, aq as defineResolver, dG as deleteClientCredentialsPlugin, fL as deleteTableFieldsPlugin, fI as deleteTablePlugin, fP as deleteTableRecordsPlugin, ae as disposeSdk, es as durableRunIdResolver, fX as eventEmissionHookPlugin, fW as eventEmissionPlugin, fV as eventEmissionPluginRef, dt as fetchPlugin, dK as findFirstConnectionPlugin, dY as findManifestEntry, dL as findUniqueConnectionPlugin, dk as formatErrorMessage, aj as fromFunctionPlugin, g9 as generateEventId, dB as getActionInputFieldsSchemaPlugin, dI as getActionPlugin, dQ as getActionRunPlugin, bA as getAgent, dH as getAppPlugin, f8 as getBaseUrlFromCredentials, a_ as getCallerContext, gf as getCiPlatform, f9 as getClientIdFromCredentials, dJ as getConnectionPlugin, al as getContext, bi as getCoreErrorCause, bh as getCoreErrorCode, gh as getCpuTime, ga as getCurrentTimestamp, gg as getMemoryUsage, a7 as getNegatable, bF as getOrCreateApiClient, gc as getOsInfo, gd as getPlatformVersions, dX as getPreferredManifestEntryKey, e5 as getProfilePlugin, ax as getRegistryPlugin, gb as getReleaseId, fG as getTablePlugin, fM as getTableRecordPlugin, eN as getTokenFromCliLogin, gi as getTtyContext, fA as getZapierApprovalMode, fC as getZapierDefaultApprovalMode, fB as getZapierOpenAutoModeApprovalsInBrowser, fq as getZapierSdkService, eL as injectCliLogin, em as inputFieldKeyResolver, el as inputsAllOptionalResolver, ek as inputsResolver, eK as invalidateCachedToken, eQ as invalidateCredentialsToken, ge as isCi, eM as isCliLoginAvailable, f1 as isClientCredentials, bo as isCoreCancelledSignal, bg as isCoreError, bn as isCoreSignal, f4 as isCredentialsFunction, f3 as isCredentialsObject, bG as isPermanentHttpError, f2 as isPkceCredentials, a5 as isPositional, v as isZapierAbortDrainSignal, dh as isZapierActionError, db as isZapierAppNotFoundError, dj as isZapierApprovalError, da as isZapierAuthenticationError, dg as isZapierBundleError, de as isZapierConflictError, d8 as isZapierError, dc as isZapierNotFoundError, di as isZapierRateLimitError, w as isZapierReleaseTriggerMessageSignal, dd as isZapierResourceNotFoundError, dn as isZapierSignal, df as isZapierTimeoutError, d9 as isZapierValidationError, dA as listActionInputFieldChoicesPlugin, dy as listActionInputFieldsPlugin, dw as listActionsPlugin, du as listAppsPlugin, dE as listClientCredentialsPlugin, dC as listConnectionsPlugin, fJ as listTableFieldsPlugin, fN as listTableRecordsPlugin, fF as listTablesPlugin, b6 as logDeprecation, d$ as manifestPlugin, d_ as manifestPluginRef, aw as omitExports, g8 as operationAnnotatorPlugin, fy as parseConcurrencyEnvVar, dW as readManifestFromFile, bB as registryPlugin, dU as requestPlugin, b7 as resetDeprecationWarnings, eO as resolveAuth, eP as resolveAuthToken, f7 as resolveCredentials, f6 as resolveCredentialsFromEnv, ee as resolveCredentialsPlugin, ed as resolveCredentialsPluginRef, ai as resolvePlugin, dS as runActionPlugin, aY as runInMethodScope, a$ as runWithCallerContext, aZ as runWithTelemetryContext, aA as sdkOptionsPluginRef, av as selectExports, ez as tableFieldIdsResolver, eB as tableFieldsResolver, eE as tableFiltersResolver, ep as tableIdResolver, eA as tableNameResolver, ex as tableRecordIdResolver, ey as tableRecordIdsResolver, eC as tableRecordsResolver, eF as tableSortResolver, eD as tableUpdateRecordsResolver, b1 as toSnakeCase, b2 as toTitleCase, eq as triggerInboxResolver, ew as triggerMessagesResolver, fQ as updateTableRecordsPlugin, eu as workflowDraftIdResolver, er as workflowIdResolver, ev as workflowRunIdResolver, et as workflowVersionIdResolver, cV as zapierAdaptError, bb as zapierCoreOptions, ay as zapierSdkPlugin } from './index-D6jpmIVn.mjs';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -1786,6 +1786,89 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1786
1786
|
is_important?: boolean | undefined;
|
|
1787
1787
|
app_version?: string | undefined;
|
|
1788
1788
|
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>;
|
|
1789
|
+
} & {
|
|
1790
|
+
createActionRun: MethodPlugin<"createActionRun", {
|
|
1791
|
+
app: string;
|
|
1792
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1793
|
+
action: string;
|
|
1794
|
+
connection?: string | number | undefined;
|
|
1795
|
+
inputs?: Record<string, unknown> | undefined;
|
|
1796
|
+
page?: string | undefined;
|
|
1797
|
+
callbackUrl?: string | undefined;
|
|
1798
|
+
}, Promise<{
|
|
1799
|
+
data: {
|
|
1800
|
+
id: string;
|
|
1801
|
+
implementation_id: string;
|
|
1802
|
+
};
|
|
1803
|
+
meta?: ResponseMeta;
|
|
1804
|
+
}>, readonly []> & LeafSummary<"", "createActionRun", readonly [PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, MethodPlugin<"getAction", {
|
|
1805
|
+
app: string;
|
|
1806
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1807
|
+
action: string;
|
|
1808
|
+
} | {
|
|
1809
|
+
appKey: string;
|
|
1810
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1811
|
+
actionKey: string;
|
|
1812
|
+
}, Promise<{
|
|
1813
|
+
data: {
|
|
1814
|
+
description: string;
|
|
1815
|
+
key: string;
|
|
1816
|
+
app_key: string;
|
|
1817
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1818
|
+
title: string;
|
|
1819
|
+
type: "action";
|
|
1820
|
+
id?: string | undefined;
|
|
1821
|
+
is_hidden?: boolean | undefined;
|
|
1822
|
+
is_important?: boolean | undefined;
|
|
1823
|
+
app_version?: string | undefined;
|
|
1824
|
+
};
|
|
1825
|
+
meta?: ResponseMeta;
|
|
1826
|
+
}>, readonly []> & LeafSummary<"", "getAction", readonly [MethodPlugin<"listActions", ({
|
|
1827
|
+
app: string;
|
|
1828
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
1829
|
+
pageSize?: number | undefined;
|
|
1830
|
+
maxItems?: number | undefined;
|
|
1831
|
+
cursor?: string | undefined;
|
|
1832
|
+
} | {
|
|
1833
|
+
appKey: string;
|
|
1834
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
1835
|
+
pageSize?: number | undefined;
|
|
1836
|
+
maxItems?: number | undefined;
|
|
1837
|
+
cursor?: string | undefined;
|
|
1838
|
+
}) & {
|
|
1839
|
+
cursor?: string;
|
|
1840
|
+
pageSize?: number;
|
|
1841
|
+
} & {
|
|
1842
|
+
maxItems?: number;
|
|
1843
|
+
}, PaginatedSdkResult<{
|
|
1844
|
+
description: string;
|
|
1845
|
+
key: string;
|
|
1846
|
+
app_key: string;
|
|
1847
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1848
|
+
title: string;
|
|
1849
|
+
type: "action";
|
|
1850
|
+
id?: string | undefined;
|
|
1851
|
+
is_hidden?: boolean | undefined;
|
|
1852
|
+
is_important?: boolean | undefined;
|
|
1853
|
+
app_version?: string | undefined;
|
|
1854
|
+
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>;
|
|
1855
|
+
} & {
|
|
1856
|
+
getActionRun: MethodPlugin<"getActionRun", {
|
|
1857
|
+
run: string;
|
|
1858
|
+
}, Promise<{
|
|
1859
|
+
data: {
|
|
1860
|
+
id: string;
|
|
1861
|
+
status: string;
|
|
1862
|
+
results: unknown[];
|
|
1863
|
+
errors: {
|
|
1864
|
+
code?: string | undefined;
|
|
1865
|
+
title?: string | null | undefined;
|
|
1866
|
+
detail?: string | undefined;
|
|
1867
|
+
}[];
|
|
1868
|
+
next_page?: string | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
meta?: ResponseMeta;
|
|
1871
|
+
}>, readonly []> & LeafSummary<"", "getActionRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
1789
1872
|
} & {
|
|
1790
1873
|
runAction: MethodPlugin<"runAction", ({
|
|
1791
1874
|
app: string;
|
|
@@ -1818,7 +1901,21 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1818
1901
|
pageSize?: number;
|
|
1819
1902
|
} & {
|
|
1820
1903
|
maxItems?: number;
|
|
1821
|
-
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"
|
|
1904
|
+
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, MethodPlugin<"createActionRun", {
|
|
1905
|
+
app: string;
|
|
1906
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1907
|
+
action: string;
|
|
1908
|
+
connection?: string | number | undefined;
|
|
1909
|
+
inputs?: Record<string, unknown> | undefined;
|
|
1910
|
+
page?: string | undefined;
|
|
1911
|
+
callbackUrl?: string | undefined;
|
|
1912
|
+
}, Promise<{
|
|
1913
|
+
data: {
|
|
1914
|
+
id: string;
|
|
1915
|
+
implementation_id: string;
|
|
1916
|
+
};
|
|
1917
|
+
meta?: ResponseMeta;
|
|
1918
|
+
}>, readonly []> & LeafSummary<"", "createActionRun", readonly [PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, MethodPlugin<"getAction", {
|
|
1822
1919
|
app: string;
|
|
1823
1920
|
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1824
1921
|
action: string;
|
|
@@ -1868,7 +1965,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1868
1965
|
is_hidden?: boolean | undefined;
|
|
1869
1966
|
is_important?: boolean | undefined;
|
|
1870
1967
|
app_version?: string | undefined;
|
|
1871
|
-
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>;
|
|
1968
|
+
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>;
|
|
1872
1969
|
} & {
|
|
1873
1970
|
fetch: MethodPlugin<"fetch", {
|
|
1874
1971
|
url: string | URL;
|
|
@@ -1923,7 +2020,21 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1923
2020
|
pageSize?: number;
|
|
1924
2021
|
} & {
|
|
1925
2022
|
maxItems?: number;
|
|
1926
|
-
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"
|
|
2023
|
+
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, MethodPlugin<"createActionRun", {
|
|
2024
|
+
app: string;
|
|
2025
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
2026
|
+
action: string;
|
|
2027
|
+
connection?: string | number | undefined;
|
|
2028
|
+
inputs?: Record<string, unknown> | undefined;
|
|
2029
|
+
page?: string | undefined;
|
|
2030
|
+
callbackUrl?: string | undefined;
|
|
2031
|
+
}, Promise<{
|
|
2032
|
+
data: {
|
|
2033
|
+
id: string;
|
|
2034
|
+
implementation_id: string;
|
|
2035
|
+
};
|
|
2036
|
+
meta?: ResponseMeta;
|
|
2037
|
+
}>, readonly []> & LeafSummary<"", "createActionRun", readonly [PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, MethodPlugin<"getAction", {
|
|
1927
2038
|
app: string;
|
|
1928
2039
|
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1929
2040
|
action: string;
|
|
@@ -1973,7 +2084,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1973
2084
|
is_hidden?: boolean | undefined;
|
|
1974
2085
|
is_important?: boolean | undefined;
|
|
1975
2086
|
app_version?: string | undefined;
|
|
1976
|
-
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>;
|
|
2087
|
+
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>]>;
|
|
1977
2088
|
} & {
|
|
1978
2089
|
listTriggerInboxes: MethodPlugin<"listTriggerInboxes", {
|
|
1979
2090
|
key?: string | undefined;
|
|
@@ -3635,7 +3746,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3635
3746
|
};
|
|
3636
3747
|
meta?: ResponseMeta;
|
|
3637
3748
|
}>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3638
|
-
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3749
|
+
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "createActionRun" | "getActionRun" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3639
3750
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3640
3751
|
getRegistry: (input?: {
|
|
3641
3752
|
package?: string | undefined;
|
|
@@ -4471,6 +4582,37 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
4471
4582
|
sample?: string | undefined;
|
|
4472
4583
|
value?: string | undefined;
|
|
4473
4584
|
}>;
|
|
4585
|
+
createActionRun: (input: {
|
|
4586
|
+
app: string;
|
|
4587
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
4588
|
+
action: string;
|
|
4589
|
+
connection?: string | number | undefined;
|
|
4590
|
+
inputs?: Record<string, unknown> | undefined;
|
|
4591
|
+
page?: string | undefined;
|
|
4592
|
+
callbackUrl?: string | undefined;
|
|
4593
|
+
}) => Promise<{
|
|
4594
|
+
data: {
|
|
4595
|
+
id: string;
|
|
4596
|
+
implementation_id: string;
|
|
4597
|
+
};
|
|
4598
|
+
meta?: ResponseMeta;
|
|
4599
|
+
}>;
|
|
4600
|
+
getActionRun: (input: {
|
|
4601
|
+
run: string;
|
|
4602
|
+
}) => Promise<{
|
|
4603
|
+
data: {
|
|
4604
|
+
id: string;
|
|
4605
|
+
status: string;
|
|
4606
|
+
results: unknown[];
|
|
4607
|
+
errors: {
|
|
4608
|
+
code?: string | undefined;
|
|
4609
|
+
title?: string | null | undefined;
|
|
4610
|
+
detail?: string | undefined;
|
|
4611
|
+
}[];
|
|
4612
|
+
next_page?: string | undefined;
|
|
4613
|
+
};
|
|
4614
|
+
meta?: ResponseMeta;
|
|
4615
|
+
}>;
|
|
4474
4616
|
runAction: (input: ({
|
|
4475
4617
|
app: string;
|
|
4476
4618
|
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ResponseMeta, b as ApiClient, c as PluginSummary, d as PaginatedSdkResult, e as ManifestProvider, C as ConnectionsProvider, f as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, g as CoreOptions, h as ActionProxy, i as ZapierSdkApps, D as DeleteTriggerInboxResult, j as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, k as Manifest, E as EventCallback, l as EventEmissionConfig, m as ZapierCache, n as ListActionsOptions, o as ListActionInputFieldsOptions, p as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { e3 as API_ID, O as Action, d_ as ActionEntry, dn as ActionExecutionOptions, Y as ActionExecutionResult, _ as ActionField, $ as ActionFieldChoice, bL as ActionItem, cn as ActionKeyProperty, bV as ActionKeyPropertySchema, co as ActionProperty, bW as ActionPropertySchema, bv as ActionResolverItem, cA as ActionTimeoutMillisecondsProperty, c6 as ActionTimeoutMillisecondsPropertySchema, cz as ActionTimeoutSecondsProperty, c5 as ActionTimeoutSecondsPropertySchema, bw as ActionTypeItem, cm as ActionTypeProperty, bU as ActionTypePropertySchema, dj as ApiError, eQ as ApiEvent, e1 as ApiPluginOptions, Q as App, dp as AppFactoryInput, bJ as AppItem, ck as AppKeyProperty, bS as AppKeyPropertySchema, cl as AppProperty, bT as AppPropertySchema, fT as ApplicationLifecycleEventData, d3 as ApprovalStatus, cF as AppsProperty, cb as AppsPropertySchema, aE as ArrayResolver, eP as AuthEvent, eB as AuthMechanism, cs as AuthenticationIdProperty, bZ as AuthenticationIdPropertySchema, f$ as BaseEvent, bd as BaseSdkOptionsSchema, b2 as BatchOptions, aA as BoundFormatter, fg as CONNECTIONS_ID, af as CONTEXT, dL as CONTEXT_CACHE_MAX_SIZE, dK as CONTEXT_CACHE_TTL_MILLISECONDS, bh as CORE_ERROR_SYMBOL, ba as CORE_OPTIONS_ID, bn as CORE_SIGNAL_SYMBOL, a_ as CallerContext, X as Choice, eV as ClientCredentialsObject, f4 as ClientCredentialsObjectSchema, a2 as Connection, fc as ConnectionEntry, fb as ConnectionEntrySchema, cq as ConnectionIdProperty, bY as ConnectionIdPropertySchema, bK as ConnectionItem, cr as ConnectionProperty, b_ as ConnectionPropertySchema, fe as ConnectionsMap, fd as ConnectionsMapSchema, cH as ConnectionsProperty, cd as ConnectionsPropertySchema, a3 as ConnectionsResponse, aQ as ControllerAction, aR as ControllerAnswerFn, aS as ControllerChoice, aU as ControllerMethodDescription, aT as ControllerMethodSummary, aV as ControllerParameterDescription, aP as ControllerQuestion, bk as CoreCancelledSignal, ad as CoreDisposeError, bi as CoreErrorCode, bj as CoreSignal, eS as Credentials, f9 as CredentialsFunction, f8 as CredentialsFunctionSchema, eU as CredentialsObject, f6 as CredentialsObjectSchema, fa as CredentialsSchema, fn as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fw as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dY as DEFAULT_CONFIG_PATH, fx as DEFAULT_MAX_APPROVAL_RETRIES, fm as DEFAULT_PAGE_SIZE, bH as DEPRECATION_NOTICE_EVENT, cx as DebugProperty, c3 as DebugPropertySchema, bI as DeprecationNoticePayload, x as DrainTriggerInboxCallback, y as DrainTriggerInboxErrorObserver, r as DrainTriggerInboxSchema, aI as DynamicListResolver, aM as DynamicMember, aH as DynamicResolver, aJ as DynamicSearchResolver, fN as EVENT_EMISSION_ID, fU as EnhancedErrorEventData, cO as ErrorOptions, fS as EventContext, fL as EventEmissionContext, fM as EventEmitter, fR as EventTransport, dq as FetchPluginProvides, V as Field, cE as FieldsProperty, ca as FieldsPropertySchema, aK as FieldsResolver, K as FindFirstAuthenticationPluginProvides, N as FindUniqueAuthenticationPluginProvides, az as FormattedItem, aB as Formatter, bc as FunctionDeprecation, bb as FunctionRegistryEntry, J as GetAuthenticationPluginProvides, e0 as GetProfilePluginProvides, bN as InfoFieldItem, bM as InputFieldItem, cp as InputFieldProperty, bX as InputFieldPropertySchema, ct as InputsProperty, b$ as InputsPropertySchema, bG as JsonSseMessage, cN as LeaseLimitProperty, cj as LeaseLimitPropertySchema, cL as LeaseProperty, ch as LeasePropertySchema, cM as LeaseSecondsProperty, ci as LeaseSecondsPropertySchema, z as LeasedTriggerMessageItem, cu as LimitProperty, c0 as LimitPropertySchema, dx as ListActionInputFieldsPluginProvides, dv as ListActionsPluginProvides, dt as ListAppsPluginProvides, I as ListAuthenticationsPluginProvides, dB as ListConnectionsPluginProvides, eR as LoadingEvent, dT as MANIFEST_ID, fq as MAX_CONCURRENCY_LIMIT, fl as MAX_PAGE_LIMIT, dZ as ManifestEntry, dP as ManifestPluginOptions, g0 as MethodCalledEvent, fV as MethodCalledEventData, bq as MethodOverridePlugin, aL as ModelResolver, U as Need, a0 as NeedsRequest, a1 as NeedsResponse, cv as OffsetProperty, c1 as OffsetPropertySchema, aC as OutputFormatter, cw as OutputProperty, c2 as OutputPropertySchema, bR as PaginatedSdkFunction, cy as ParamsProperty, c4 as ParamsPropertySchema, eW as PkceCredentialsObject, f5 as PkceCredentialsObjectSchema, bo as Plugin, q as PluginMeta, bp as PluginProvides, aN as PluginSurface, bB as PollOptions, a6 as PositionalMetadata, e6 as RESOLVE_CREDENTIALS_ID, d1 as RateLimitInfo, cC as RecordProperty, c8 as RecordPropertySchema, cD as RecordsProperty, c9 as RecordsPropertySchema, b7 as RelayFetchSchema, b6 as RelayRequestSchema, bA as RequestOptions, eA as ResolveAuthTokenOptions, ff as ResolveConnection, e2 as ResolveCredentialsFn, e$ as ResolveCredentialsOptions, bx as ResolvedAppLocator, eC as ResolvedAuth, eT as ResolvedCredentials, f7 as ResolvedCredentialsSchema, aD as Resolver, aF as ResolverMetadata, bO as RootFieldItem, dN as RunActionPluginProvides, ax as SDK_OPTIONS_ID, eO as SdkEvent, bQ as SdkPage, bF as SseMessage, aG as StaticResolver, cB as TableProperty, c7 as TablePropertySchema, cG as TablesProperty, cc as TablesPropertySchema, cJ as TriggerInboxKeyProperty, cf as TriggerInboxKeyPropertySchema, cK as TriggerInboxNameProperty, cg as TriggerInboxNamePropertySchema, cI as TriggerInboxProperty, ce as TriggerInboxPropertySchema, H as TriggerMessageStatus, dW as UpdateManifestEntryOptions, dX as UpdateManifestEntryResult, a4 as UserProfile, bP as UserProfileItem, s as WatchTriggerInboxSchema, fj as ZAPIER_BASE_URL, fs as ZAPIER_MAX_CONCURRENT_REQUESTS, fo as ZAPIER_MAX_NETWORK_RETRIES, fp as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, t as ZapierAbortDrainSignal, c$ as ZapierActionError, cU as ZapierApiError, cV as ZapierAppNotFoundError, d4 as ZapierApprovalError, cS as ZapierAuthenticationError, cZ as ZapierBundleError, eL as ZapierCacheEntry, eM as ZapierCacheSetOptions, cY as ZapierConfigurationError, d0 as ZapierConflictError, cP as ZapierError, cW as ZapierNotFoundError, d2 as ZapierRateLimitError, d5 as ZapierRelayError, u as ZapierReleaseTriggerMessageSignal, cX as ZapierResourceNotFoundError, dk as ZapierSignal, c_ as ZapierTimeoutError, cR as ZapierUnknownError, cQ as ZapierValidationError, eb as actionKeyResolver, ea as actionTypeResolver, ab as addPlugin, e5 as apiPlugin, e4 as apiPluginRef, e9 as appKeyResolver, dm as appsPlugin, b1 as batch, fW as buildApplicationLifecycleEvent, b3 as buildCapabilityMessage, fY as buildErrorEvent, fX as buildErrorEventWithContext, f_ as buildMethodCalledEvent, fK as cleanupEventListeners, eD as clearTokenCache, eh as clientCredentialsNameResolver, ei as clientIdResolver, bu as composePlugins, ed as connectionIdGenericResolver, ec as connectionIdResolver, fi as connectionsPlugin, fh as connectionsPluginRef, fZ as createBaseEvent, dD as createClientCredentialsPlugin, aO as createController, aa as createCorePlugin, a7 as createFunction, eN as createMemoryCache, a8 as createPaginatedFunction, bt as createPaginatedPluginMethod, bs as createPluginMethod, a9 as createPluginStack, ae as createSdk, fD as createTableFieldsPlugin, fA as createTablePlugin, fH as createTableRecordsPlugin, bC as createZapierApi, b8 as createZapierSdkWithoutRegistry, aq as declareMethod, as as declareOptionalProperty, ak as declarePlugin, ar as declareProperty, ap as defineFormatter, ai as defineLegacyMerge, al as defineMethod, am as defineMethodOverride, br as definePlugin, an as defineProperty, ao as defineResolver, dE as deleteClientCredentialsPlugin, fE as deleteTableFieldsPlugin, fB as deleteTablePlugin, fI as deleteTableRecordsPlugin, ac as disposeSdk, em as durableRunIdResolver, fQ as eventEmissionHookPlugin, fP as eventEmissionPlugin, fO as eventEmissionPluginRef, dr as fetchPlugin, dI as findFirstConnectionPlugin, dS as findManifestEntry, dJ as findUniqueConnectionPlugin, di as formatErrorMessage, ah as fromFunctionPlugin, g2 as generateEventId, dz as getActionInputFieldsSchemaPlugin, dG as getActionPlugin, by as getAgent, dF as getAppPlugin, f2 as getBaseUrlFromCredentials, aY as getCallerContext, g8 as getCiPlatform, f3 as getClientIdFromCredentials, dH as getConnectionPlugin, aj as getContext, bg as getCoreErrorCause, bf as getCoreErrorCode, ga as getCpuTime, g3 as getCurrentTimestamp, g9 as getMemoryUsage, bD as getOrCreateApiClient, g5 as getOsInfo, g6 as getPlatformVersions, dR as getPreferredManifestEntryKey, d$ as getProfilePlugin, av as getRegistryPlugin, g4 as getReleaseId, fz as getTablePlugin, fF as getTableRecordPlugin, eH as getTokenFromCliLogin, gb as getTtyContext, ft as getZapierApprovalMode, fv as getZapierDefaultApprovalMode, fu as getZapierOpenAutoModeApprovalsInBrowser, fk as getZapierSdkService, eF as injectCliLogin, eg as inputFieldKeyResolver, ef as inputsAllOptionalResolver, ee as inputsResolver, eE as invalidateCachedToken, eK as invalidateCredentialsToken, g7 as isCi, eG as isCliLoginAvailable, eX as isClientCredentials, bm as isCoreCancelledSignal, be as isCoreError, bl as isCoreSignal, e_ as isCredentialsFunction, eZ as isCredentialsObject, bE as isPermanentHttpError, eY as isPkceCredentials, a5 as isPositional, v as isZapierAbortDrainSignal, df as isZapierActionError, d9 as isZapierAppNotFoundError, dh as isZapierApprovalError, d8 as isZapierAuthenticationError, de as isZapierBundleError, dc as isZapierConflictError, d6 as isZapierError, da as isZapierNotFoundError, dg as isZapierRateLimitError, w as isZapierReleaseTriggerMessageSignal, db as isZapierResourceNotFoundError, dl as isZapierSignal, dd as isZapierTimeoutError, d7 as isZapierValidationError, dy as listActionInputFieldChoicesPlugin, dw as listActionInputFieldsPlugin, du as listActionsPlugin, ds as listAppsPlugin, dC as listClientCredentialsPlugin, dA as listConnectionsPlugin, fC as listTableFieldsPlugin, fG as listTableRecordsPlugin, fy as listTablesPlugin, b4 as logDeprecation, dV as manifestPlugin, dU as manifestPluginRef, au as omitExports, g1 as operationAnnotatorPlugin, fr as parseConcurrencyEnvVar, dQ as readManifestFromFile, bz as registryPlugin, dO as requestPlugin, b5 as resetDeprecationWarnings, eI as resolveAuth, eJ as resolveAuthToken, f1 as resolveCredentials, f0 as resolveCredentialsFromEnv, e8 as resolveCredentialsPlugin, e7 as resolveCredentialsPluginRef, ag as resolvePlugin, dM as runActionPlugin, aW as runInMethodScope, aZ as runWithCallerContext, aX as runWithTelemetryContext, ay as sdkOptionsPluginRef, at as selectExports, et as tableFieldIdsResolver, ev as tableFieldsResolver, ey as tableFiltersResolver, ej as tableIdResolver, eu as tableNameResolver, er as tableRecordIdResolver, es as tableRecordIdsResolver, ew as tableRecordsResolver, ez as tableSortResolver, ex as tableUpdateRecordsResolver, a$ as toSnakeCase, b0 as toTitleCase, ek as triggerInboxResolver, eq as triggerMessagesResolver, fJ as updateTableRecordsPlugin, eo as workflowDraftIdResolver, el as workflowIdResolver, ep as workflowRunIdResolver, en as workflowVersionIdResolver, cT as zapierAdaptError, b9 as zapierCoreOptions, aw as zapierSdkPlugin } from './index-CBwO7l3J.js';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ResponseMeta, b as ApiClient, c as PluginSummary, d as PaginatedSdkResult, e as ManifestProvider, C as ConnectionsProvider, f as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, g as CoreOptions, h as ActionProxy, i as ZapierSdkApps, D as DeleteTriggerInboxResult, j as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, k as Manifest, E as EventCallback, l as EventEmissionConfig, m as ZapierCache, n as ListActionsOptions, o as ListActionInputFieldsOptions, p as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-D6jpmIVn.js';
|
|
2
|
+
export { fu as ACTION_RUNS_PATH, e9 as API_ID, O as Action, e4 as ActionEntry, dq as ActionExecutionOptions, Y as ActionExecutionResult, _ as ActionField, $ as ActionFieldChoice, bN as ActionItem, cp as ActionKeyProperty, bX as ActionKeyPropertySchema, cq as ActionProperty, bY as ActionPropertySchema, bx as ActionResolverItem, cC as ActionTimeoutMillisecondsProperty, c8 as ActionTimeoutMillisecondsPropertySchema, cB as ActionTimeoutSecondsProperty, c7 as ActionTimeoutSecondsPropertySchema, by as ActionTypeItem, co as ActionTypeProperty, bW as ActionTypePropertySchema, dl as ApiError, eW as ApiEvent, e7 as ApiPluginOptions, Q as App, dr as AppFactoryInput, bL as AppItem, cm as AppKeyProperty, bU as AppKeyPropertySchema, cn as AppProperty, bV as AppPropertySchema, f_ as ApplicationLifecycleEventData, d5 as ApprovalStatus, cH as AppsProperty, cd as AppsPropertySchema, aG as ArrayResolver, eV as AuthEvent, eH as AuthMechanism, cu as AuthenticationIdProperty, b$ as AuthenticationIdPropertySchema, g6 as BaseEvent, bf as BaseSdkOptionsSchema, b4 as BatchOptions, aC as BoundFormatter, fm as CONNECTIONS_ID, ah as CONTEXT, dN as CONTEXT_CACHE_MAX_SIZE, dM as CONTEXT_CACHE_TTL_MILLISECONDS, bj as CORE_ERROR_SYMBOL, bc as CORE_OPTIONS_ID, bp as CORE_SIGNAL_SYMBOL, b0 as CallerContext, X as Choice, e$ as ClientCredentialsObject, fa as ClientCredentialsObjectSchema, a2 as Connection, fi as ConnectionEntry, fh as ConnectionEntrySchema, cs as ConnectionIdProperty, b_ as ConnectionIdPropertySchema, bM as ConnectionItem, ct as ConnectionProperty, c0 as ConnectionPropertySchema, fk as ConnectionsMap, fj as ConnectionsMapSchema, cJ as ConnectionsProperty, cf as ConnectionsPropertySchema, a3 as ConnectionsResponse, aS as ControllerAction, aT as ControllerAnswerFn, aU as ControllerChoice, aW as ControllerMethodDescription, aV as ControllerMethodSummary, aX as ControllerParameterDescription, aR as ControllerQuestion, bm as CoreCancelledSignal, af as CoreDisposeError, bk as CoreErrorCode, bl as CoreSignal, dP as CreateActionRunPluginProvides, eY as Credentials, ff as CredentialsFunction, fe as CredentialsFunctionSchema, e_ as CredentialsObject, fc as CredentialsObjectSchema, fg as CredentialsSchema, ft as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fD as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, e2 as DEFAULT_CONFIG_PATH, fE as DEFAULT_MAX_APPROVAL_RETRIES, fs as DEFAULT_PAGE_SIZE, bJ as DEPRECATION_NOTICE_EVENT, cz as DebugProperty, c5 as DebugPropertySchema, bK as DeprecationNoticePayload, x as DrainTriggerInboxCallback, y as DrainTriggerInboxErrorObserver, r as DrainTriggerInboxSchema, aK as DynamicListResolver, aO as DynamicMember, aJ as DynamicResolver, aL as DynamicSearchResolver, fU as EVENT_EMISSION_ID, f$ as EnhancedErrorEventData, cQ as ErrorOptions, fZ as EventContext, fS as EventEmissionContext, fT as EventEmitter, fY as EventTransport, ds as FetchPluginProvides, V as Field, cG as FieldsProperty, cc as FieldsPropertySchema, aM as FieldsResolver, K as FindFirstAuthenticationPluginProvides, N as FindUniqueAuthenticationPluginProvides, aB as FormattedItem, aD as Formatter, be as FunctionDeprecation, bd as FunctionRegistryEntry, dR as GetActionRunPluginProvides, J as GetAuthenticationPluginProvides, e6 as GetProfilePluginProvides, bP as InfoFieldItem, bO as InputFieldItem, cr as InputFieldProperty, bZ as InputFieldPropertySchema, cv as InputsProperty, c1 as InputsPropertySchema, bI as JsonSseMessage, cP as LeaseLimitProperty, cl as LeaseLimitPropertySchema, cN as LeaseProperty, cj as LeasePropertySchema, cO as LeaseSecondsProperty, ck as LeaseSecondsPropertySchema, z as LeasedTriggerMessageItem, cw as LimitProperty, c2 as LimitPropertySchema, dz as ListActionInputFieldsPluginProvides, dx as ListActionsPluginProvides, dv as ListAppsPluginProvides, I as ListAuthenticationsPluginProvides, dD as ListConnectionsPluginProvides, eX as LoadingEvent, dZ as MANIFEST_ID, fx as MAX_CONCURRENCY_LIMIT, fr as MAX_PAGE_LIMIT, e3 as ManifestEntry, dV as ManifestPluginOptions, g7 as MethodCalledEvent, g0 as MethodCalledEventData, bs as MethodOverridePlugin, aN as ModelResolver, U as Need, a0 as NeedsRequest, a1 as NeedsResponse, a8 as NegatableMetadata, cx as OffsetProperty, c3 as OffsetPropertySchema, aE as OutputFormatter, cy as OutputProperty, c4 as OutputPropertySchema, bT as PaginatedSdkFunction, cA as ParamsProperty, c6 as ParamsPropertySchema, f0 as PkceCredentialsObject, fb as PkceCredentialsObjectSchema, bq as Plugin, q as PluginMeta, br as PluginProvides, aP as PluginSurface, bD as PollOptions, a6 as PositionalMetadata, ec as RESOLVE_CREDENTIALS_ID, d3 as RateLimitInfo, cE as RecordProperty, ca as RecordPropertySchema, cF as RecordsProperty, cb as RecordsPropertySchema, b9 as RelayFetchSchema, b8 as RelayRequestSchema, bC as RequestOptions, eG as ResolveAuthTokenOptions, fl as ResolveConnection, e8 as ResolveCredentialsFn, f5 as ResolveCredentialsOptions, bz as ResolvedAppLocator, eI as ResolvedAuth, eZ as ResolvedCredentials, fd as ResolvedCredentialsSchema, aF as Resolver, aH as ResolverMetadata, bQ as RootFieldItem, dT as RunActionPluginProvides, az as SDK_OPTIONS_ID, eU as SdkEvent, bS as SdkPage, bH as SseMessage, aI as StaticResolver, cD as TableProperty, c9 as TablePropertySchema, cI as TablesProperty, ce as TablesPropertySchema, cL as TriggerInboxKeyProperty, ch as TriggerInboxKeyPropertySchema, cM as TriggerInboxNameProperty, ci as TriggerInboxNamePropertySchema, cK as TriggerInboxProperty, cg as TriggerInboxPropertySchema, H as TriggerMessageStatus, e0 as UpdateManifestEntryOptions, e1 as UpdateManifestEntryResult, a4 as UserProfile, bR as UserProfileItem, s as WatchTriggerInboxSchema, fp as ZAPIER_BASE_URL, fz as ZAPIER_MAX_CONCURRENT_REQUESTS, fv as ZAPIER_MAX_NETWORK_RETRIES, fw as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, t as ZapierAbortDrainSignal, d1 as ZapierActionError, cW as ZapierApiError, cX as ZapierAppNotFoundError, d6 as ZapierApprovalError, cU as ZapierAuthenticationError, c$ as ZapierBundleError, eR as ZapierCacheEntry, eS as ZapierCacheSetOptions, c_ as ZapierConfigurationError, d2 as ZapierConflictError, cR as ZapierError, cY as ZapierNotFoundError, d4 as ZapierRateLimitError, d7 as ZapierRelayError, u as ZapierReleaseTriggerMessageSignal, cZ as ZapierResourceNotFoundError, dm as ZapierSignal, d0 as ZapierTimeoutError, cT as ZapierUnknownError, cS as ZapierValidationError, eh as actionKeyResolver, eg as actionTypeResolver, ad as addPlugin, eb as apiPlugin, ea as apiPluginRef, ef as appKeyResolver, dp as appsPlugin, b3 as batch, g1 as buildApplicationLifecycleEvent, b5 as buildCapabilityMessage, g3 as buildErrorEvent, g2 as buildErrorEventWithContext, g5 as buildMethodCalledEvent, fR as cleanupEventListeners, eJ as clearTokenCache, en as clientCredentialsNameResolver, eo as clientIdResolver, bw as composePlugins, ej as connectionIdGenericResolver, ei as connectionIdResolver, fo as connectionsPlugin, fn as connectionsPluginRef, dO as createActionRunPlugin, g4 as createBaseEvent, dF as createClientCredentialsPlugin, aQ as createController, ac as createCorePlugin, a9 as createFunction, eT as createMemoryCache, aa as createPaginatedFunction, bv as createPaginatedPluginMethod, bu as createPluginMethod, ab as createPluginStack, ag as createSdk, fK as createTableFieldsPlugin, fH as createTablePlugin, fO as createTableRecordsPlugin, bE as createZapierApi, ba as createZapierSdkWithoutRegistry, as as declareMethod, au as declareOptionalProperty, am as declarePlugin, at as declareProperty, ar as defineFormatter, ak as defineLegacyMerge, an as defineMethod, ao as defineMethodOverride, bt as definePlugin, ap as defineProperty, aq as defineResolver, dG as deleteClientCredentialsPlugin, fL as deleteTableFieldsPlugin, fI as deleteTablePlugin, fP as deleteTableRecordsPlugin, ae as disposeSdk, es as durableRunIdResolver, fX as eventEmissionHookPlugin, fW as eventEmissionPlugin, fV as eventEmissionPluginRef, dt as fetchPlugin, dK as findFirstConnectionPlugin, dY as findManifestEntry, dL as findUniqueConnectionPlugin, dk as formatErrorMessage, aj as fromFunctionPlugin, g9 as generateEventId, dB as getActionInputFieldsSchemaPlugin, dI as getActionPlugin, dQ as getActionRunPlugin, bA as getAgent, dH as getAppPlugin, f8 as getBaseUrlFromCredentials, a_ as getCallerContext, gf as getCiPlatform, f9 as getClientIdFromCredentials, dJ as getConnectionPlugin, al as getContext, bi as getCoreErrorCause, bh as getCoreErrorCode, gh as getCpuTime, ga as getCurrentTimestamp, gg as getMemoryUsage, a7 as getNegatable, bF as getOrCreateApiClient, gc as getOsInfo, gd as getPlatformVersions, dX as getPreferredManifestEntryKey, e5 as getProfilePlugin, ax as getRegistryPlugin, gb as getReleaseId, fG as getTablePlugin, fM as getTableRecordPlugin, eN as getTokenFromCliLogin, gi as getTtyContext, fA as getZapierApprovalMode, fC as getZapierDefaultApprovalMode, fB as getZapierOpenAutoModeApprovalsInBrowser, fq as getZapierSdkService, eL as injectCliLogin, em as inputFieldKeyResolver, el as inputsAllOptionalResolver, ek as inputsResolver, eK as invalidateCachedToken, eQ as invalidateCredentialsToken, ge as isCi, eM as isCliLoginAvailable, f1 as isClientCredentials, bo as isCoreCancelledSignal, bg as isCoreError, bn as isCoreSignal, f4 as isCredentialsFunction, f3 as isCredentialsObject, bG as isPermanentHttpError, f2 as isPkceCredentials, a5 as isPositional, v as isZapierAbortDrainSignal, dh as isZapierActionError, db as isZapierAppNotFoundError, dj as isZapierApprovalError, da as isZapierAuthenticationError, dg as isZapierBundleError, de as isZapierConflictError, d8 as isZapierError, dc as isZapierNotFoundError, di as isZapierRateLimitError, w as isZapierReleaseTriggerMessageSignal, dd as isZapierResourceNotFoundError, dn as isZapierSignal, df as isZapierTimeoutError, d9 as isZapierValidationError, dA as listActionInputFieldChoicesPlugin, dy as listActionInputFieldsPlugin, dw as listActionsPlugin, du as listAppsPlugin, dE as listClientCredentialsPlugin, dC as listConnectionsPlugin, fJ as listTableFieldsPlugin, fN as listTableRecordsPlugin, fF as listTablesPlugin, b6 as logDeprecation, d$ as manifestPlugin, d_ as manifestPluginRef, aw as omitExports, g8 as operationAnnotatorPlugin, fy as parseConcurrencyEnvVar, dW as readManifestFromFile, bB as registryPlugin, dU as requestPlugin, b7 as resetDeprecationWarnings, eO as resolveAuth, eP as resolveAuthToken, f7 as resolveCredentials, f6 as resolveCredentialsFromEnv, ee as resolveCredentialsPlugin, ed as resolveCredentialsPluginRef, ai as resolvePlugin, dS as runActionPlugin, aY as runInMethodScope, a$ as runWithCallerContext, aZ as runWithTelemetryContext, aA as sdkOptionsPluginRef, av as selectExports, ez as tableFieldIdsResolver, eB as tableFieldsResolver, eE as tableFiltersResolver, ep as tableIdResolver, eA as tableNameResolver, ex as tableRecordIdResolver, ey as tableRecordIdsResolver, eC as tableRecordsResolver, eF as tableSortResolver, eD as tableUpdateRecordsResolver, b1 as toSnakeCase, b2 as toTitleCase, eq as triggerInboxResolver, ew as triggerMessagesResolver, fQ as updateTableRecordsPlugin, eu as workflowDraftIdResolver, er as workflowIdResolver, ev as workflowRunIdResolver, et as workflowVersionIdResolver, cV as zapierAdaptError, bb as zapierCoreOptions, ay as zapierSdkPlugin } from './index-D6jpmIVn.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -1786,6 +1786,89 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1786
1786
|
is_important?: boolean | undefined;
|
|
1787
1787
|
app_version?: string | undefined;
|
|
1788
1788
|
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>;
|
|
1789
|
+
} & {
|
|
1790
|
+
createActionRun: MethodPlugin<"createActionRun", {
|
|
1791
|
+
app: string;
|
|
1792
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1793
|
+
action: string;
|
|
1794
|
+
connection?: string | number | undefined;
|
|
1795
|
+
inputs?: Record<string, unknown> | undefined;
|
|
1796
|
+
page?: string | undefined;
|
|
1797
|
+
callbackUrl?: string | undefined;
|
|
1798
|
+
}, Promise<{
|
|
1799
|
+
data: {
|
|
1800
|
+
id: string;
|
|
1801
|
+
implementation_id: string;
|
|
1802
|
+
};
|
|
1803
|
+
meta?: ResponseMeta;
|
|
1804
|
+
}>, readonly []> & LeafSummary<"", "createActionRun", readonly [PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, MethodPlugin<"getAction", {
|
|
1805
|
+
app: string;
|
|
1806
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1807
|
+
action: string;
|
|
1808
|
+
} | {
|
|
1809
|
+
appKey: string;
|
|
1810
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1811
|
+
actionKey: string;
|
|
1812
|
+
}, Promise<{
|
|
1813
|
+
data: {
|
|
1814
|
+
description: string;
|
|
1815
|
+
key: string;
|
|
1816
|
+
app_key: string;
|
|
1817
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1818
|
+
title: string;
|
|
1819
|
+
type: "action";
|
|
1820
|
+
id?: string | undefined;
|
|
1821
|
+
is_hidden?: boolean | undefined;
|
|
1822
|
+
is_important?: boolean | undefined;
|
|
1823
|
+
app_version?: string | undefined;
|
|
1824
|
+
};
|
|
1825
|
+
meta?: ResponseMeta;
|
|
1826
|
+
}>, readonly []> & LeafSummary<"", "getAction", readonly [MethodPlugin<"listActions", ({
|
|
1827
|
+
app: string;
|
|
1828
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
1829
|
+
pageSize?: number | undefined;
|
|
1830
|
+
maxItems?: number | undefined;
|
|
1831
|
+
cursor?: string | undefined;
|
|
1832
|
+
} | {
|
|
1833
|
+
appKey: string;
|
|
1834
|
+
actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
|
|
1835
|
+
pageSize?: number | undefined;
|
|
1836
|
+
maxItems?: number | undefined;
|
|
1837
|
+
cursor?: string | undefined;
|
|
1838
|
+
}) & {
|
|
1839
|
+
cursor?: string;
|
|
1840
|
+
pageSize?: number;
|
|
1841
|
+
} & {
|
|
1842
|
+
maxItems?: number;
|
|
1843
|
+
}, PaginatedSdkResult<{
|
|
1844
|
+
description: string;
|
|
1845
|
+
key: string;
|
|
1846
|
+
app_key: string;
|
|
1847
|
+
action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1848
|
+
title: string;
|
|
1849
|
+
type: "action";
|
|
1850
|
+
id?: string | undefined;
|
|
1851
|
+
is_hidden?: boolean | undefined;
|
|
1852
|
+
is_important?: boolean | undefined;
|
|
1853
|
+
app_version?: string | undefined;
|
|
1854
|
+
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>;
|
|
1855
|
+
} & {
|
|
1856
|
+
getActionRun: MethodPlugin<"getActionRun", {
|
|
1857
|
+
run: string;
|
|
1858
|
+
}, Promise<{
|
|
1859
|
+
data: {
|
|
1860
|
+
id: string;
|
|
1861
|
+
status: string;
|
|
1862
|
+
results: unknown[];
|
|
1863
|
+
errors: {
|
|
1864
|
+
code?: string | undefined;
|
|
1865
|
+
title?: string | null | undefined;
|
|
1866
|
+
detail?: string | undefined;
|
|
1867
|
+
}[];
|
|
1868
|
+
next_page?: string | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
meta?: ResponseMeta;
|
|
1871
|
+
}>, readonly []> & LeafSummary<"", "getActionRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
1789
1872
|
} & {
|
|
1790
1873
|
runAction: MethodPlugin<"runAction", ({
|
|
1791
1874
|
app: string;
|
|
@@ -1818,7 +1901,21 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1818
1901
|
pageSize?: number;
|
|
1819
1902
|
} & {
|
|
1820
1903
|
maxItems?: number;
|
|
1821
|
-
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"
|
|
1904
|
+
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, MethodPlugin<"createActionRun", {
|
|
1905
|
+
app: string;
|
|
1906
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1907
|
+
action: string;
|
|
1908
|
+
connection?: string | number | undefined;
|
|
1909
|
+
inputs?: Record<string, unknown> | undefined;
|
|
1910
|
+
page?: string | undefined;
|
|
1911
|
+
callbackUrl?: string | undefined;
|
|
1912
|
+
}, Promise<{
|
|
1913
|
+
data: {
|
|
1914
|
+
id: string;
|
|
1915
|
+
implementation_id: string;
|
|
1916
|
+
};
|
|
1917
|
+
meta?: ResponseMeta;
|
|
1918
|
+
}>, readonly []> & LeafSummary<"", "createActionRun", readonly [PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, MethodPlugin<"getAction", {
|
|
1822
1919
|
app: string;
|
|
1823
1920
|
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1824
1921
|
action: string;
|
|
@@ -1868,7 +1965,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1868
1965
|
is_hidden?: boolean | undefined;
|
|
1869
1966
|
is_important?: boolean | undefined;
|
|
1870
1967
|
app_version?: string | undefined;
|
|
1871
|
-
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>;
|
|
1968
|
+
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>;
|
|
1872
1969
|
} & {
|
|
1873
1970
|
fetch: MethodPlugin<"fetch", {
|
|
1874
1971
|
url: string | URL;
|
|
@@ -1923,7 +2020,21 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1923
2020
|
pageSize?: number;
|
|
1924
2021
|
} & {
|
|
1925
2022
|
maxItems?: number;
|
|
1926
|
-
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"
|
|
2023
|
+
}, PaginatedSdkResult<unknown>, readonly []> & LeafSummary<"", "runAction", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, MethodPlugin<"createActionRun", {
|
|
2024
|
+
app: string;
|
|
2025
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
2026
|
+
action: string;
|
|
2027
|
+
connection?: string | number | undefined;
|
|
2028
|
+
inputs?: Record<string, unknown> | undefined;
|
|
2029
|
+
page?: string | undefined;
|
|
2030
|
+
callbackUrl?: string | undefined;
|
|
2031
|
+
}, Promise<{
|
|
2032
|
+
data: {
|
|
2033
|
+
id: string;
|
|
2034
|
+
implementation_id: string;
|
|
2035
|
+
};
|
|
2036
|
+
meta?: ResponseMeta;
|
|
2037
|
+
}>, readonly []> & LeafSummary<"", "createActionRun", readonly [PropertyPlugin<"connections", ConnectionsProvider> & PluginSummary<"zapier/connections", never>, PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>, MethodPlugin<"getAction", {
|
|
1927
2038
|
app: string;
|
|
1928
2039
|
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
1929
2040
|
action: string;
|
|
@@ -1973,7 +2084,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
1973
2084
|
is_hidden?: boolean | undefined;
|
|
1974
2085
|
is_important?: boolean | undefined;
|
|
1975
2086
|
app_version?: string | undefined;
|
|
1976
|
-
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>;
|
|
2087
|
+
}>, readonly []> & LeafSummary<"", "listActions", readonly [PropertyPlugin<"manifest", ManifestProvider> & PluginSummary<"zapier/manifest", never>, PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>]>]>]>]>;
|
|
1977
2088
|
} & {
|
|
1978
2089
|
listTriggerInboxes: MethodPlugin<"listTriggerInboxes", {
|
|
1979
2090
|
key?: string | undefined;
|
|
@@ -3635,7 +3746,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
3635
3746
|
};
|
|
3636
3747
|
meta?: ResponseMeta;
|
|
3637
3748
|
}>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
|
|
3638
|
-
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3749
|
+
}> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "createActionRun" | "getActionRun" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
|
|
3639
3750
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
3640
3751
|
getRegistry: (input?: {
|
|
3641
3752
|
package?: string | undefined;
|
|
@@ -4471,6 +4582,37 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
4471
4582
|
sample?: string | undefined;
|
|
4472
4583
|
value?: string | undefined;
|
|
4473
4584
|
}>;
|
|
4585
|
+
createActionRun: (input: {
|
|
4586
|
+
app: string;
|
|
4587
|
+
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
|
4588
|
+
action: string;
|
|
4589
|
+
connection?: string | number | undefined;
|
|
4590
|
+
inputs?: Record<string, unknown> | undefined;
|
|
4591
|
+
page?: string | undefined;
|
|
4592
|
+
callbackUrl?: string | undefined;
|
|
4593
|
+
}) => Promise<{
|
|
4594
|
+
data: {
|
|
4595
|
+
id: string;
|
|
4596
|
+
implementation_id: string;
|
|
4597
|
+
};
|
|
4598
|
+
meta?: ResponseMeta;
|
|
4599
|
+
}>;
|
|
4600
|
+
getActionRun: (input: {
|
|
4601
|
+
run: string;
|
|
4602
|
+
}) => Promise<{
|
|
4603
|
+
data: {
|
|
4604
|
+
id: string;
|
|
4605
|
+
status: string;
|
|
4606
|
+
results: unknown[];
|
|
4607
|
+
errors: {
|
|
4608
|
+
code?: string | undefined;
|
|
4609
|
+
title?: string | null | undefined;
|
|
4610
|
+
detail?: string | undefined;
|
|
4611
|
+
}[];
|
|
4612
|
+
next_page?: string | undefined;
|
|
4613
|
+
};
|
|
4614
|
+
meta?: ResponseMeta;
|
|
4615
|
+
}>;
|
|
4474
4616
|
runAction: (input: ({
|
|
4475
4617
|
app: string;
|
|
4476
4618
|
actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
|
package/dist/experimental.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineMethod, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, openEnum, durableRunIdResolver, defineResolver, ZapierConflictError, extractErrorDetail, workflowVersionIdResolver, workflowDraftIdResolver, ZapierApiError, workflowRunIdResolver, definePlugin, zapierSdkPlugin, ZapierValidationError, createSdk, zapierCoreOptions, CORE_OPTIONS_ID, SDK_OPTIONS_ID } from './chunk-
|
|
2
|
-
export { API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, 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, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-
|
|
1
|
+
import { defineMethod, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, openEnum, durableRunIdResolver, defineResolver, ZapierConflictError, extractErrorDetail, workflowVersionIdResolver, workflowDraftIdResolver, ZapierApiError, workflowRunIdResolver, definePlugin, zapierSdkPlugin, ZapierValidationError, createSdk, zapierCoreOptions, CORE_OPTIONS_ID, SDK_OPTIONS_ID } from './chunk-XUVZWY2D.mjs';
|
|
2
|
+
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-XUVZWY2D.mjs';
|
|
3
3
|
import './chunk-Y6FXYEAI.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
@@ -939,8 +939,8 @@ var PublishWorkflowVersionBaseSchema = z.object({
|
|
|
939
939
|
/** @deprecated Use `zapierDurableVersion` instead. */
|
|
940
940
|
zapier_durable_version: z.string().optional().meta({ deprecated: true }),
|
|
941
941
|
enabled: z.boolean().optional().describe(
|
|
942
|
-
"Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."
|
|
943
|
-
),
|
|
942
|
+
"Enable the workflow after publishing. Defaults to true if omitted; pass false to publish without enabling."
|
|
943
|
+
).meta({ negatable: "disabled" }),
|
|
944
944
|
ignoreOpenDrafts: z.boolean().optional().describe(
|
|
945
945
|
"Publish even though the workflow has open draft(s). Without this, the API rejects a direct publish with a 409 while any draft is open, since publishing the draft later would ship its stale content over this version."
|
|
946
946
|
),
|
|
@@ -1494,7 +1494,7 @@ var PublishWorkflowDraftOptionsSchema = z.object({
|
|
|
1494
1494
|
draft: z.string().uuid().describe("Workflow draft ID"),
|
|
1495
1495
|
enabled: z.boolean().optional().describe(
|
|
1496
1496
|
"Set the workflow's enabled state as part of the publish. If omitted, the current enabled state is preserved."
|
|
1497
|
-
),
|
|
1497
|
+
).meta({ negatable: "disabled" }),
|
|
1498
1498
|
draftRevision: z.number().int().min(0).optional().describe(
|
|
1499
1499
|
"Expected draft revision for optimistic concurrency. Pass the revision from the last read; the server rejects the publish with a conflict if the draft has changed since. Omit to skip the check."
|
|
1500
1500
|
)
|