@zapier/zapier-sdk 0.113.0 → 0.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/beta.cjs +278 -278
- package/dist/beta.d.mts +12 -12
- package/dist/beta.d.ts +12 -12
- package/dist/beta.mjs +2 -2
- package/dist/{chunk-GQKHLPXO.cjs → chunk-I4PUUHD3.cjs} +58 -49
- package/dist/{chunk-UCCI3JDP.mjs → chunk-IAKIS53P.mjs} +58 -49
- package/dist/{chunk-ORPCPBJR.mjs → chunk-LSSH3DUG.mjs} +1 -1
- package/dist/{chunk-FF6YC735.cjs → chunk-POX5WPI5.cjs} +4 -4
- package/dist/experimental.cjs +383 -383
- package/dist/experimental.d.mts +278 -278
- package/dist/experimental.d.ts +278 -278
- package/dist/experimental.mjs +3 -3
- package/dist/{index-CJoDlPxK.d.mts → index-BCJAutN8.d.mts} +17 -18
- package/dist/{index-CJoDlPxK.d.ts → index-BCJAutN8.d.ts} +17 -18
- package/dist/index.cjs +276 -276
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/beta.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-
|
|
2
|
-
export { e8 as ACTION_RUNS_PATH, cL as API_ID, x as Action, cH as ActionEntry, c1 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, as as ActionItem, b2 as ActionKeyProperty, aA as ActionKeyPropertySchema, b3 as ActionProperty, aB as ActionPropertySchema, ad as ActionResolverItem, bf as ActionTimeoutMillisecondsProperty, aN as ActionTimeoutMillisecondsPropertySchema, be as ActionTimeoutSecondsProperty, aM as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b1 as ActionTypeProperty, az as ActionTypePropertySchema, dy as ApiEvent, cK as ApiPluginOptions, y as App, c2 as AppFactoryInput, aq as AppItem, a$ as AppKeyProperty, ax as AppKeyPropertySchema, b0 as AppProperty, ay as AppPropertySchema, eD as ApplicationLifecycleEventData, bK as ApprovalStatus, bk as AppsProperty, aS as AppsPropertySchema, dx as AuthEvent, di as AuthMechanism, b7 as AuthenticationIdProperty, aE as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d_ as CONNECTIONS_ID, co as CONTEXT_CACHE_MAX_SIZE, cn as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dD as ClientCredentialsObject, dO as ClientCredentialsObjectSchema, Q as Connection, dW as ConnectionEntry, dV as ConnectionEntrySchema, b5 as ConnectionIdProperty, aD as ConnectionIdPropertySchema, ar as ConnectionItem, b6 as ConnectionProperty, aF as ConnectionPropertySchema, dY as ConnectionsMap, dX as ConnectionsMapSchema, bm as ConnectionsProperty, aU as ConnectionsPropertySchema, S as ConnectionsResponse, cq as CreateActionRunPluginProvides, dA as Credentials, dT as CredentialsFunction, dS as CredentialsFunctionSchema, dC as CredentialsObject, dQ as CredentialsObjectSchema, dU as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, eh as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cF as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, ao as DEPRECATION_NOTICE_EVENT, bc as DebugProperty, aK as DebugPropertySchema, ap as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ey as EVENT_EMISSION_ID, eE as EnhancedErrorEventData, bt as ErrorOptions, eC as EventContext, ew as EventEmissionContext, ex as EventEmitter, c3 as FetchPluginProvides, z as Field, bj as FieldsProperty, aR as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cs as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cJ as GetProfilePluginProvides, au as InfoFieldItem, at as InputFieldItem, b4 as InputFieldProperty, aC as InputFieldPropertySchema, b8 as InputsProperty, aG as InputsPropertySchema, an as JsonSseMessage, bs as LeaseLimitProperty, a_ as LeaseLimitPropertySchema, bq as LeaseProperty, aY as LeasePropertySchema, br as LeaseSecondsProperty, aZ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, b9 as LimitProperty, aH as LimitPropertySchema, ca as ListActionInputFieldsPluginProvides, c8 as ListActionsPluginProvides, c6 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ce as ListConnectionsPluginProvides, dz as LoadingEvent, cA as MANIFEST_ID, eb as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cG as ManifestEntry, cw as ManifestPluginOptions, eL as MethodCalledEvent, eF as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, ba as OffsetProperty, aI as OffsetPropertySchema, bb as OutputProperty, aJ as OutputPropertySchema, bd as ParamsProperty, aL as ParamsPropertySchema, dE as PkceCredentialsObject, dP as PkceCredentialsObjectSchema, ai as PollOptions, cO as RESOLVE_CREDENTIALS_ID, bI as RateLimitInfo, bh as RecordProperty, aP as RecordPropertySchema, bi as RecordsProperty, aQ as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ah as RequestOptions, dh as ResolveAuthTokenOptions, dZ as ResolveConnection, dJ as ResolveCredentialsOptions, af as ResolvedAppLocator, dj as ResolvedAuth, dB as ResolvedCredentials, dR as ResolvedCredentialsSchema, av as RootFieldItem, cu as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dw as SdkEvent, am as SseMessage, bg as TableProperty, aO as TablePropertySchema, bl as TablesProperty, aT as TablesPropertySchema, bo as TriggerInboxKeyProperty, aW as TriggerInboxKeyPropertySchema, bp as TriggerInboxNameProperty, aX as TriggerInboxNamePropertySchema, bn as TriggerInboxProperty, aV as TriggerInboxPropertySchema, T as TriggerMessageStatus, cD as UpdateManifestEntryOptions, cE as UpdateManifestEntryResult, U as UserProfile, aw as UserProfileItem, e1 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bG as ZapierActionError, bz as ZapierApiError, bA as ZapierAppNotFoundError, bL as ZapierApprovalError, bx as ZapierAuthenticationError, bE as ZapierBundleError, dt as ZapierCacheEntry, du as ZapierCacheSetOptions, bD as ZapierConfigurationError, bH as ZapierConflictError, bu as ZapierError, bB as ZapierNotFoundError, bJ as ZapierRateLimitError, bM as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bC as ZapierResourceNotFoundError, b_ as ZapierSignal, bF as ZapierTimeoutError, bw as ZapierUnknownError, bv as ZapierValidationError, cT as actionKeyResolver, cS as actionTypeResolver, cN as apiPlugin, cM as apiPluginRef, cR as appKeyResolver, c0 as appsPlugin, a1 as batch, eG as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eI as buildErrorEvent, eH as buildErrorEventWithContext, eK as buildMethodCalledEvent, ev as cleanupEventListeners, dk as clearTokenCache, cZ as clientCredentialsNameResolver, c_ as clientIdResolver, cV as connectionIdGenericResolver, cU as connectionIdResolver, e0 as connectionsPlugin, d$ as connectionsPluginRef, cp as createActionRunPlugin, eJ as createBaseEvent, cg as createClientCredentialsPlugin, dv as createMemoryCache, eo as createTableFieldsPlugin, el as createTablePlugin, es as createTableRecordsPlugin, aj as createZapierApi, a8 as createZapierSdkWithoutRegistry, ch as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, em as deleteTablePlugin, et as deleteTableRecordsPlugin, d2 as durableRunIdResolver, eB as eventEmissionHookPlugin, eA as eventEmissionPlugin, ez as eventEmissionPluginRef, c4 as fetchPlugin, cl as findFirstConnectionPlugin, cz as findManifestEntry, cm as findUniqueConnectionPlugin, bZ as formatErrorMessage, ac as formatExtensionPluginFailure, eN as generateEventId, cc as getActionInputFieldsSchemaPlugin, cj as getActionPlugin, cr as getActionRunPlugin, ag as getAgent, ci as getAppPlugin, dM as getBaseUrlFromCredentials, _ as getCallerContext, eT as getCiPlatform, dN as getClientIdFromCredentials, ck as getConnectionPlugin, eV as getCpuTime, eO as getCurrentTimestamp, eU as getMemoryUsage, ak as getOrCreateApiClient, eQ as getOsInfo, eR as getPlatformVersions, cy as getPreferredManifestEntryKey, cI as getProfilePlugin, eP as getReleaseId, ek as getTablePlugin, eq as getTableRecordPlugin, dp as getTokenFromCliLogin, eW as getTtyContext, ee as getZapierApprovalMode, e4 as getZapierCausationId, e3 as getZapierCorrelationId, eg as getZapierDefaultApprovalMode, ef as getZapierOpenAutoModeApprovalsInBrowser, e2 as getZapierSdkService, dm as injectCliLogin, cY as inputFieldKeyResolver, cX as inputsAllOptionalResolver, cW as inputsResolver, dl as invalidateCachedToken, ds as invalidateCredentialsToken, eS as isCi, dn as isCliLoginAvailable, dF as isClientCredentials, dI as isCredentialsFunction, dH as isCredentialsObject, al as isPermanentHttpError, dG as isPkceCredentials, o as isZapierAbortDrainSignal, bW as isZapierActionError, bQ as isZapierAppNotFoundError, bY as isZapierApprovalError, bP as isZapierAuthenticationError, bV as isZapierBundleError, bT as isZapierConflictError, bN as isZapierError, bR as isZapierNotFoundError, bX as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bS as isZapierResourceNotFoundError, b$ as isZapierSignal, bU as isZapierTimeoutError, bO as isZapierValidationError, cb as listActionInputFieldChoicesPlugin, c9 as listActionInputFieldsPlugin, c7 as listActionsPlugin, c5 as listAppsPlugin, cf as listClientCredentialsPlugin, cd as listConnectionsPlugin, en as listTableFieldsPlugin, er as listTableRecordsPlugin, ej as listTablesPlugin, a4 as logDeprecation, cC as manifestPlugin, cB as manifestPluginRef, eM as operationAnnotatorPlugin, ec as parseConcurrencyEnvVar, cx as readManifestFromFile, cv as requestPlugin, a5 as resetDeprecationWarnings, dq as resolveAuth, dr as resolveAuthToken, dL as resolveCredentials, dK as resolveCredentialsFromEnv, cQ as resolveCredentialsPlugin, cP as resolveCredentialsPluginRef, ct as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, da as tableFieldIdsResolver, dc as tableFieldsResolver, df as tableFiltersResolver, c$ as tableIdResolver, db as tableNameResolver, d8 as tableRecordIdResolver, d9 as tableRecordIdsResolver, dd as tableRecordsResolver, dg as tableSortResolver, de as tableUpdateRecordsResolver, d0 as triggerInboxResolver, d7 as triggerMessagesResolver, eu as updateTableRecordsPlugin, d4 as workflowDraftIdResolver, d5 as workflowDraftRevisionResolver, d1 as workflowIdResolver, d6 as workflowRunIdResolver, d3 as workflowVersionIdResolver, by as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-
|
|
1
|
+
import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-BCJAutN8.mjs';
|
|
2
|
+
export { e8 as ACTION_RUNS_PATH, cL as API_ID, x as Action, cH as ActionEntry, c1 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, as as ActionItem, b2 as ActionKeyProperty, aA as ActionKeyPropertySchema, b3 as ActionProperty, aB as ActionPropertySchema, ad as ActionResolverItem, bf as ActionTimeoutMillisecondsProperty, aN as ActionTimeoutMillisecondsPropertySchema, be as ActionTimeoutSecondsProperty, aM as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b1 as ActionTypeProperty, az as ActionTypePropertySchema, dy as ApiEvent, cK as ApiPluginOptions, y as App, c2 as AppFactoryInput, aq as AppItem, a$ as AppKeyProperty, ax as AppKeyPropertySchema, b0 as AppProperty, ay as AppPropertySchema, eD as ApplicationLifecycleEventData, bK as ApprovalStatus, bk as AppsProperty, aS as AppsPropertySchema, dx as AuthEvent, di as AuthMechanism, b7 as AuthenticationIdProperty, aE as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d_ as CONNECTIONS_ID, co as CONTEXT_CACHE_MAX_SIZE, cn as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dD as ClientCredentialsObject, dO as ClientCredentialsObjectSchema, Q as Connection, dW as ConnectionEntry, dV as ConnectionEntrySchema, b5 as ConnectionIdProperty, aD as ConnectionIdPropertySchema, ar as ConnectionItem, b6 as ConnectionProperty, aF as ConnectionPropertySchema, dY as ConnectionsMap, dX as ConnectionsMapSchema, bm as ConnectionsProperty, aU as ConnectionsPropertySchema, S as ConnectionsResponse, cq as CreateActionRunPluginProvides, dA as Credentials, dT as CredentialsFunction, dS as CredentialsFunctionSchema, dC as CredentialsObject, dQ as CredentialsObjectSchema, dU as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, eh as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cF as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, ao as DEPRECATION_NOTICE_EVENT, bc as DebugProperty, aK as DebugPropertySchema, ap as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ey as EVENT_EMISSION_ID, eE as EnhancedErrorEventData, bt as ErrorOptions, eC as EventContext, ew as EventEmissionContext, ex as EventEmitter, c3 as FetchPluginProvides, z as Field, bj as FieldsProperty, aR as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cs as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cJ as GetProfilePluginProvides, au as InfoFieldItem, at as InputFieldItem, b4 as InputFieldProperty, aC as InputFieldPropertySchema, b8 as InputsProperty, aG as InputsPropertySchema, an as JsonSseMessage, bs as LeaseLimitProperty, a_ as LeaseLimitPropertySchema, bq as LeaseProperty, aY as LeasePropertySchema, br as LeaseSecondsProperty, aZ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, b9 as LimitProperty, aH as LimitPropertySchema, ca as ListActionInputFieldsPluginProvides, c8 as ListActionsPluginProvides, c6 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ce as ListConnectionsPluginProvides, dz as LoadingEvent, cA as MANIFEST_ID, eb as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cG as ManifestEntry, cw as ManifestPluginOptions, eL as MethodCalledEvent, eF as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, ba as OffsetProperty, aI as OffsetPropertySchema, bb as OutputProperty, aJ as OutputPropertySchema, bd as ParamsProperty, aL as ParamsPropertySchema, dE as PkceCredentialsObject, dP as PkceCredentialsObjectSchema, ai as PollOptions, cO as RESOLVE_CREDENTIALS_ID, bI as RateLimitInfo, bh as RecordProperty, aP as RecordPropertySchema, bi as RecordsProperty, aQ as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ah as RequestOptions, dh as ResolveAuthTokenOptions, dZ as ResolveConnection, dJ as ResolveCredentialsOptions, af as ResolvedAppLocator, dj as ResolvedAuth, dB as ResolvedCredentials, dR as ResolvedCredentialsSchema, av as RootFieldItem, cu as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dw as SdkEvent, am as SseMessage, bg as TableProperty, aO as TablePropertySchema, bl as TablesProperty, aT as TablesPropertySchema, bo as TriggerInboxKeyProperty, aW as TriggerInboxKeyPropertySchema, bp as TriggerInboxNameProperty, aX as TriggerInboxNamePropertySchema, bn as TriggerInboxProperty, aV as TriggerInboxPropertySchema, T as TriggerMessageStatus, cD as UpdateManifestEntryOptions, cE as UpdateManifestEntryResult, U as UserProfile, aw as UserProfileItem, e1 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bG as ZapierActionError, bz as ZapierApiError, bA as ZapierAppNotFoundError, bL as ZapierApprovalError, bx as ZapierAuthenticationError, bE as ZapierBundleError, dt as ZapierCacheEntry, du as ZapierCacheSetOptions, bD as ZapierConfigurationError, bH as ZapierConflictError, bu as ZapierError, bB as ZapierNotFoundError, bJ as ZapierRateLimitError, bM as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bC as ZapierResourceNotFoundError, b_ as ZapierSignal, bF as ZapierTimeoutError, bw as ZapierUnknownError, bv as ZapierValidationError, cT as actionKeyResolver, cS as actionTypeResolver, cN as apiPlugin, cM as apiPluginRef, cR as appKeyResolver, c0 as appsPlugin, a1 as batch, eG as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eI as buildErrorEvent, eH as buildErrorEventWithContext, eK as buildMethodCalledEvent, ev as cleanupEventListeners, dk as clearTokenCache, cZ as clientCredentialsNameResolver, c_ as clientIdResolver, cV as connectionIdGenericResolver, cU as connectionIdResolver, e0 as connectionsPlugin, d$ as connectionsPluginRef, cp as createActionRunPlugin, eJ as createBaseEvent, cg as createClientCredentialsPlugin, dv as createMemoryCache, eo as createTableFieldsPlugin, el as createTablePlugin, es as createTableRecordsPlugin, aj as createZapierApi, a8 as createZapierSdkWithoutRegistry, ch as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, em as deleteTablePlugin, et as deleteTableRecordsPlugin, d2 as durableRunIdResolver, eB as eventEmissionHookPlugin, eA as eventEmissionPlugin, ez as eventEmissionPluginRef, c4 as fetchPlugin, cl as findFirstConnectionPlugin, cz as findManifestEntry, cm as findUniqueConnectionPlugin, bZ as formatErrorMessage, ac as formatExtensionPluginFailure, eN as generateEventId, cc as getActionInputFieldsSchemaPlugin, cj as getActionPlugin, cr as getActionRunPlugin, ag as getAgent, ci as getAppPlugin, dM as getBaseUrlFromCredentials, _ as getCallerContext, eT as getCiPlatform, dN as getClientIdFromCredentials, ck as getConnectionPlugin, eV as getCpuTime, eO as getCurrentTimestamp, eU as getMemoryUsage, ak as getOrCreateApiClient, eQ as getOsInfo, eR as getPlatformVersions, cy as getPreferredManifestEntryKey, cI as getProfilePlugin, eP as getReleaseId, ek as getTablePlugin, eq as getTableRecordPlugin, dp as getTokenFromCliLogin, eW as getTtyContext, ee as getZapierApprovalMode, e4 as getZapierCausationId, e3 as getZapierCorrelationId, eg as getZapierDefaultApprovalMode, ef as getZapierOpenAutoModeApprovalsInBrowser, e2 as getZapierSdkService, dm as injectCliLogin, cY as inputFieldKeyResolver, cX as inputsAllOptionalResolver, cW as inputsResolver, dl as invalidateCachedToken, ds as invalidateCredentialsToken, eS as isCi, dn as isCliLoginAvailable, dF as isClientCredentials, dI as isCredentialsFunction, dH as isCredentialsObject, al as isPermanentHttpError, dG as isPkceCredentials, o as isZapierAbortDrainSignal, bW as isZapierActionError, bQ as isZapierAppNotFoundError, bY as isZapierApprovalError, bP as isZapierAuthenticationError, bV as isZapierBundleError, bT as isZapierConflictError, bN as isZapierError, bR as isZapierNotFoundError, bX as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bS as isZapierResourceNotFoundError, b$ as isZapierSignal, bU as isZapierTimeoutError, bO as isZapierValidationError, cb as listActionInputFieldChoicesPlugin, c9 as listActionInputFieldsPlugin, c7 as listActionsPlugin, c5 as listAppsPlugin, cf as listClientCredentialsPlugin, cd as listConnectionsPlugin, en as listTableFieldsPlugin, er as listTableRecordsPlugin, ej as listTablesPlugin, a4 as logDeprecation, cC as manifestPlugin, cB as manifestPluginRef, eM as operationAnnotatorPlugin, ec as parseConcurrencyEnvVar, cx as readManifestFromFile, cv as requestPlugin, a5 as resetDeprecationWarnings, dq as resolveAuth, dr as resolveAuthToken, dL as resolveCredentials, dK as resolveCredentialsFromEnv, cQ as resolveCredentialsPlugin, cP as resolveCredentialsPluginRef, ct as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, da as tableFieldIdsResolver, dc as tableFieldsResolver, df as tableFiltersResolver, c$ as tableIdResolver, db as tableNameResolver, d8 as tableRecordIdResolver, d9 as tableRecordIdsResolver, dd as tableRecordsResolver, dg as tableSortResolver, de as tableUpdateRecordsResolver, d0 as triggerInboxResolver, d7 as triggerMessagesResolver, eu as updateTableRecordsPlugin, d4 as workflowDraftIdResolver, d5 as workflowDraftRevisionResolver, d1 as workflowIdResolver, d6 as workflowRunIdResolver, d3 as workflowVersionIdResolver, by as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BCJAutN8.mjs';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import * as _zapier_kitcore from '@zapier/kitcore';
|
|
@@ -934,7 +934,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
934
934
|
is_important?: boolean | undefined;
|
|
935
935
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
936
936
|
app_version?: string | undefined;
|
|
937
|
-
}
|
|
937
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
938
938
|
app: string;
|
|
939
939
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
940
940
|
action: string;
|
|
@@ -3210,7 +3210,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3210
3210
|
is_important?: boolean | undefined;
|
|
3211
3211
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3212
3212
|
app_version?: string | undefined;
|
|
3213
|
-
}
|
|
3213
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3214
3214
|
app: string;
|
|
3215
3215
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3216
3216
|
action: string;
|
|
@@ -3417,7 +3417,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3417
3417
|
is_important?: boolean | undefined;
|
|
3418
3418
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3419
3419
|
app_version?: string | undefined;
|
|
3420
|
-
}
|
|
3420
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3421
3421
|
app: string;
|
|
3422
3422
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3423
3423
|
action: string;
|
|
@@ -3636,7 +3636,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3636
3636
|
is_important?: boolean | undefined;
|
|
3637
3637
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3638
3638
|
app_version?: string | undefined;
|
|
3639
|
-
}
|
|
3639
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3640
3640
|
app: string;
|
|
3641
3641
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3642
3642
|
action: string;
|
|
@@ -3953,7 +3953,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3953
3953
|
is_important?: boolean | undefined;
|
|
3954
3954
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3955
3955
|
app_version?: string | undefined;
|
|
3956
|
-
}
|
|
3956
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3957
3957
|
app: string;
|
|
3958
3958
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3959
3959
|
action: string;
|
|
@@ -4244,7 +4244,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
4244
4244
|
is_important?: boolean | undefined;
|
|
4245
4245
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
4246
4246
|
app_version?: string | undefined;
|
|
4247
|
-
}
|
|
4247
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
4248
4248
|
app: string;
|
|
4249
4249
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
4250
4250
|
action: string;
|
|
@@ -4549,7 +4549,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
4549
4549
|
is_important?: boolean | undefined;
|
|
4550
4550
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
4551
4551
|
app_version?: string | undefined;
|
|
4552
|
-
}
|
|
4552
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
4553
4553
|
app: string;
|
|
4554
4554
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
4555
4555
|
action: string;
|
|
@@ -4780,7 +4780,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
4780
4780
|
is_important?: boolean | undefined;
|
|
4781
4781
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
4782
4782
|
app_version?: string | undefined;
|
|
4783
|
-
}
|
|
4783
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
4784
4784
|
app: string;
|
|
4785
4785
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
4786
4786
|
action: string;
|
|
@@ -5051,7 +5051,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
5051
5051
|
is_important?: boolean | undefined;
|
|
5052
5052
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
5053
5053
|
app_version?: string | undefined;
|
|
5054
|
-
}
|
|
5054
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
5055
5055
|
app: string;
|
|
5056
5056
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
5057
5057
|
action: string;
|
|
@@ -5366,7 +5366,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
5366
5366
|
is_important?: boolean | undefined;
|
|
5367
5367
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
5368
5368
|
app_version?: string | undefined;
|
|
5369
|
-
}
|
|
5369
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
5370
5370
|
app: string;
|
|
5371
5371
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
5372
5372
|
action: string;
|
package/dist/beta.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-
|
|
2
|
-
export { e8 as ACTION_RUNS_PATH, cL as API_ID, x as Action, cH as ActionEntry, c1 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, as as ActionItem, b2 as ActionKeyProperty, aA as ActionKeyPropertySchema, b3 as ActionProperty, aB as ActionPropertySchema, ad as ActionResolverItem, bf as ActionTimeoutMillisecondsProperty, aN as ActionTimeoutMillisecondsPropertySchema, be as ActionTimeoutSecondsProperty, aM as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b1 as ActionTypeProperty, az as ActionTypePropertySchema, dy as ApiEvent, cK as ApiPluginOptions, y as App, c2 as AppFactoryInput, aq as AppItem, a$ as AppKeyProperty, ax as AppKeyPropertySchema, b0 as AppProperty, ay as AppPropertySchema, eD as ApplicationLifecycleEventData, bK as ApprovalStatus, bk as AppsProperty, aS as AppsPropertySchema, dx as AuthEvent, di as AuthMechanism, b7 as AuthenticationIdProperty, aE as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d_ as CONNECTIONS_ID, co as CONTEXT_CACHE_MAX_SIZE, cn as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dD as ClientCredentialsObject, dO as ClientCredentialsObjectSchema, Q as Connection, dW as ConnectionEntry, dV as ConnectionEntrySchema, b5 as ConnectionIdProperty, aD as ConnectionIdPropertySchema, ar as ConnectionItem, b6 as ConnectionProperty, aF as ConnectionPropertySchema, dY as ConnectionsMap, dX as ConnectionsMapSchema, bm as ConnectionsProperty, aU as ConnectionsPropertySchema, S as ConnectionsResponse, cq as CreateActionRunPluginProvides, dA as Credentials, dT as CredentialsFunction, dS as CredentialsFunctionSchema, dC as CredentialsObject, dQ as CredentialsObjectSchema, dU as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, eh as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cF as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, ao as DEPRECATION_NOTICE_EVENT, bc as DebugProperty, aK as DebugPropertySchema, ap as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ey as EVENT_EMISSION_ID, eE as EnhancedErrorEventData, bt as ErrorOptions, eC as EventContext, ew as EventEmissionContext, ex as EventEmitter, c3 as FetchPluginProvides, z as Field, bj as FieldsProperty, aR as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cs as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cJ as GetProfilePluginProvides, au as InfoFieldItem, at as InputFieldItem, b4 as InputFieldProperty, aC as InputFieldPropertySchema, b8 as InputsProperty, aG as InputsPropertySchema, an as JsonSseMessage, bs as LeaseLimitProperty, a_ as LeaseLimitPropertySchema, bq as LeaseProperty, aY as LeasePropertySchema, br as LeaseSecondsProperty, aZ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, b9 as LimitProperty, aH as LimitPropertySchema, ca as ListActionInputFieldsPluginProvides, c8 as ListActionsPluginProvides, c6 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ce as ListConnectionsPluginProvides, dz as LoadingEvent, cA as MANIFEST_ID, eb as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cG as ManifestEntry, cw as ManifestPluginOptions, eL as MethodCalledEvent, eF as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, ba as OffsetProperty, aI as OffsetPropertySchema, bb as OutputProperty, aJ as OutputPropertySchema, bd as ParamsProperty, aL as ParamsPropertySchema, dE as PkceCredentialsObject, dP as PkceCredentialsObjectSchema, ai as PollOptions, cO as RESOLVE_CREDENTIALS_ID, bI as RateLimitInfo, bh as RecordProperty, aP as RecordPropertySchema, bi as RecordsProperty, aQ as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ah as RequestOptions, dh as ResolveAuthTokenOptions, dZ as ResolveConnection, dJ as ResolveCredentialsOptions, af as ResolvedAppLocator, dj as ResolvedAuth, dB as ResolvedCredentials, dR as ResolvedCredentialsSchema, av as RootFieldItem, cu as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dw as SdkEvent, am as SseMessage, bg as TableProperty, aO as TablePropertySchema, bl as TablesProperty, aT as TablesPropertySchema, bo as TriggerInboxKeyProperty, aW as TriggerInboxKeyPropertySchema, bp as TriggerInboxNameProperty, aX as TriggerInboxNamePropertySchema, bn as TriggerInboxProperty, aV as TriggerInboxPropertySchema, T as TriggerMessageStatus, cD as UpdateManifestEntryOptions, cE as UpdateManifestEntryResult, U as UserProfile, aw as UserProfileItem, e1 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bG as ZapierActionError, bz as ZapierApiError, bA as ZapierAppNotFoundError, bL as ZapierApprovalError, bx as ZapierAuthenticationError, bE as ZapierBundleError, dt as ZapierCacheEntry, du as ZapierCacheSetOptions, bD as ZapierConfigurationError, bH as ZapierConflictError, bu as ZapierError, bB as ZapierNotFoundError, bJ as ZapierRateLimitError, bM as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bC as ZapierResourceNotFoundError, b_ as ZapierSignal, bF as ZapierTimeoutError, bw as ZapierUnknownError, bv as ZapierValidationError, cT as actionKeyResolver, cS as actionTypeResolver, cN as apiPlugin, cM as apiPluginRef, cR as appKeyResolver, c0 as appsPlugin, a1 as batch, eG as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eI as buildErrorEvent, eH as buildErrorEventWithContext, eK as buildMethodCalledEvent, ev as cleanupEventListeners, dk as clearTokenCache, cZ as clientCredentialsNameResolver, c_ as clientIdResolver, cV as connectionIdGenericResolver, cU as connectionIdResolver, e0 as connectionsPlugin, d$ as connectionsPluginRef, cp as createActionRunPlugin, eJ as createBaseEvent, cg as createClientCredentialsPlugin, dv as createMemoryCache, eo as createTableFieldsPlugin, el as createTablePlugin, es as createTableRecordsPlugin, aj as createZapierApi, a8 as createZapierSdkWithoutRegistry, ch as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, em as deleteTablePlugin, et as deleteTableRecordsPlugin, d2 as durableRunIdResolver, eB as eventEmissionHookPlugin, eA as eventEmissionPlugin, ez as eventEmissionPluginRef, c4 as fetchPlugin, cl as findFirstConnectionPlugin, cz as findManifestEntry, cm as findUniqueConnectionPlugin, bZ as formatErrorMessage, ac as formatExtensionPluginFailure, eN as generateEventId, cc as getActionInputFieldsSchemaPlugin, cj as getActionPlugin, cr as getActionRunPlugin, ag as getAgent, ci as getAppPlugin, dM as getBaseUrlFromCredentials, _ as getCallerContext, eT as getCiPlatform, dN as getClientIdFromCredentials, ck as getConnectionPlugin, eV as getCpuTime, eO as getCurrentTimestamp, eU as getMemoryUsage, ak as getOrCreateApiClient, eQ as getOsInfo, eR as getPlatformVersions, cy as getPreferredManifestEntryKey, cI as getProfilePlugin, eP as getReleaseId, ek as getTablePlugin, eq as getTableRecordPlugin, dp as getTokenFromCliLogin, eW as getTtyContext, ee as getZapierApprovalMode, e4 as getZapierCausationId, e3 as getZapierCorrelationId, eg as getZapierDefaultApprovalMode, ef as getZapierOpenAutoModeApprovalsInBrowser, e2 as getZapierSdkService, dm as injectCliLogin, cY as inputFieldKeyResolver, cX as inputsAllOptionalResolver, cW as inputsResolver, dl as invalidateCachedToken, ds as invalidateCredentialsToken, eS as isCi, dn as isCliLoginAvailable, dF as isClientCredentials, dI as isCredentialsFunction, dH as isCredentialsObject, al as isPermanentHttpError, dG as isPkceCredentials, o as isZapierAbortDrainSignal, bW as isZapierActionError, bQ as isZapierAppNotFoundError, bY as isZapierApprovalError, bP as isZapierAuthenticationError, bV as isZapierBundleError, bT as isZapierConflictError, bN as isZapierError, bR as isZapierNotFoundError, bX as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bS as isZapierResourceNotFoundError, b$ as isZapierSignal, bU as isZapierTimeoutError, bO as isZapierValidationError, cb as listActionInputFieldChoicesPlugin, c9 as listActionInputFieldsPlugin, c7 as listActionsPlugin, c5 as listAppsPlugin, cf as listClientCredentialsPlugin, cd as listConnectionsPlugin, en as listTableFieldsPlugin, er as listTableRecordsPlugin, ej as listTablesPlugin, a4 as logDeprecation, cC as manifestPlugin, cB as manifestPluginRef, eM as operationAnnotatorPlugin, ec as parseConcurrencyEnvVar, cx as readManifestFromFile, cv as requestPlugin, a5 as resetDeprecationWarnings, dq as resolveAuth, dr as resolveAuthToken, dL as resolveCredentials, dK as resolveCredentialsFromEnv, cQ as resolveCredentialsPlugin, cP as resolveCredentialsPluginRef, ct as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, da as tableFieldIdsResolver, dc as tableFieldsResolver, df as tableFiltersResolver, c$ as tableIdResolver, db as tableNameResolver, d8 as tableRecordIdResolver, d9 as tableRecordIdsResolver, dd as tableRecordsResolver, dg as tableSortResolver, de as tableUpdateRecordsResolver, d0 as triggerInboxResolver, d7 as triggerMessagesResolver, eu as updateTableRecordsPlugin, d4 as workflowDraftIdResolver, d5 as workflowDraftRevisionResolver, d1 as workflowIdResolver, d6 as workflowRunIdResolver, d3 as workflowVersionIdResolver, by as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-
|
|
1
|
+
import { B as BaseSdkOptions, A as ApiClient, M as ManifestProvider, a as Manifest, E as EventCallback, b as EventEmissionConfig, Z as ZapierCache, C as ConnectionsProvider, c as CapabilitiesContext, F as FieldsetItem, d as ZapierFetchInitOptions, e as ActionProxy, f as ZapierSdkApps, D as DeleteTriggerInboxResult, g as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, L as ListActionsOptions, h as ListActionInputFieldsOptions, i as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, j as ApiClientDurationOptions, k as EventTransport, l as BaseEvent, R as ResolveCredentialsFn } from './index-BCJAutN8.js';
|
|
2
|
+
export { e8 as ACTION_RUNS_PATH, cL as API_ID, x as Action, cH as ActionEntry, c1 as ActionExecutionOptions, I as ActionExecutionResult, J as ActionField, K as ActionFieldChoice, as as ActionItem, b2 as ActionKeyProperty, aA as ActionKeyPropertySchema, b3 as ActionProperty, aB as ActionPropertySchema, ad as ActionResolverItem, bf as ActionTimeoutMillisecondsProperty, aN as ActionTimeoutMillisecondsPropertySchema, be as ActionTimeoutSecondsProperty, aM as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b1 as ActionTypeProperty, az as ActionTypePropertySchema, dy as ApiEvent, cK as ApiPluginOptions, y as App, c2 as AppFactoryInput, aq as AppItem, a$ as AppKeyProperty, ax as AppKeyPropertySchema, b0 as AppProperty, ay as AppPropertySchema, eD as ApplicationLifecycleEventData, bK as ApprovalStatus, bk as AppsProperty, aS as AppsPropertySchema, dx as AuthEvent, di as AuthMechanism, b7 as AuthenticationIdProperty, aE as AuthenticationIdPropertySchema, aa as BaseSdkOptionsSchema, a2 as BatchOptions, d_ as CONNECTIONS_ID, co as CONTEXT_CACHE_MAX_SIZE, cn as CONTEXT_CACHE_TTL_MILLISECONDS, a0 as CallerContext, H as Choice, dD as ClientCredentialsObject, dO as ClientCredentialsObjectSchema, Q as Connection, dW as ConnectionEntry, dV as ConnectionEntrySchema, b5 as ConnectionIdProperty, aD as ConnectionIdPropertySchema, ar as ConnectionItem, b6 as ConnectionProperty, aF as ConnectionPropertySchema, dY as ConnectionsMap, dX as ConnectionsMapSchema, bm as ConnectionsProperty, aU as ConnectionsPropertySchema, S as ConnectionsResponse, cq as CreateActionRunPluginProvides, dA as Credentials, dT as CredentialsFunction, dS as CredentialsFunctionSchema, dC as CredentialsObject, dQ as CredentialsObjectSchema, dU as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, eh as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cF as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, ao as DEPRECATION_NOTICE_EVENT, bc as DebugProperty, aK as DebugPropertySchema, ap as DeprecationNoticePayload, q as DrainTriggerInboxCallback, r as DrainTriggerInboxErrorObserver, ey as EVENT_EMISSION_ID, eE as EnhancedErrorEventData, bt as ErrorOptions, eC as EventContext, ew as EventEmissionContext, ex as EventEmitter, c3 as FetchPluginProvides, z as Field, bj as FieldsProperty, aR as FieldsPropertySchema, v as FindFirstAuthenticationPluginProvides, w as FindUniqueAuthenticationPluginProvides, cs as GetActionRunPluginProvides, u as GetAuthenticationPluginProvides, cJ as GetProfilePluginProvides, au as InfoFieldItem, at as InputFieldItem, b4 as InputFieldProperty, aC as InputFieldPropertySchema, b8 as InputsProperty, aG as InputsPropertySchema, an as JsonSseMessage, bs as LeaseLimitProperty, a_ as LeaseLimitPropertySchema, bq as LeaseProperty, aY as LeasePropertySchema, br as LeaseSecondsProperty, aZ as LeaseSecondsPropertySchema, s as LeasedTriggerMessageItem, b9 as LimitProperty, aH as LimitPropertySchema, ca as ListActionInputFieldsPluginProvides, c8 as ListActionsPluginProvides, c6 as ListAppsPluginProvides, t as ListAuthenticationsPluginProvides, ce as ListConnectionsPluginProvides, dz as LoadingEvent, cA as MANIFEST_ID, eb as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cG as ManifestEntry, cw as ManifestPluginOptions, eL as MethodCalledEvent, eF as MethodCalledEventData, N as Need, O as NeedsRequest, P as NeedsResponse, ba as OffsetProperty, aI as OffsetPropertySchema, bb as OutputProperty, aJ as OutputPropertySchema, bd as ParamsProperty, aL as ParamsPropertySchema, dE as PkceCredentialsObject, dP as PkceCredentialsObjectSchema, ai as PollOptions, cO as RESOLVE_CREDENTIALS_ID, bI as RateLimitInfo, bh as RecordProperty, aP as RecordPropertySchema, bi as RecordsProperty, aQ as RecordsPropertySchema, a7 as RelayFetchSchema, a6 as RelayRequestSchema, ah as RequestOptions, dh as ResolveAuthTokenOptions, dZ as ResolveConnection, dJ as ResolveCredentialsOptions, af as ResolvedAppLocator, dj as ResolvedAuth, dB as ResolvedCredentials, dR as ResolvedCredentialsSchema, av as RootFieldItem, cu as RunActionPluginProvides, X as SDK_OPTIONS_ID, ab as STABILITY_DEFINITIONS, dw as SdkEvent, am as SseMessage, bg as TableProperty, aO as TablePropertySchema, bl as TablesProperty, aT as TablesPropertySchema, bo as TriggerInboxKeyProperty, aW as TriggerInboxKeyPropertySchema, bp as TriggerInboxNameProperty, aX as TriggerInboxNamePropertySchema, bn as TriggerInboxProperty, aV as TriggerInboxPropertySchema, T as TriggerMessageStatus, cD as UpdateManifestEntryOptions, cE as UpdateManifestEntryResult, U as UserProfile, aw as UserProfileItem, e1 as ZAPIER_BASE_URL, ed as ZAPIER_MAX_CONCURRENT_REQUESTS, e9 as ZAPIER_MAX_NETWORK_RETRIES, ea as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, m as ZapierAbortDrainSignal, bG as ZapierActionError, bz as ZapierApiError, bA as ZapierAppNotFoundError, bL as ZapierApprovalError, bx as ZapierAuthenticationError, bE as ZapierBundleError, dt as ZapierCacheEntry, du as ZapierCacheSetOptions, bD as ZapierConfigurationError, bH as ZapierConflictError, bu as ZapierError, bB as ZapierNotFoundError, bJ as ZapierRateLimitError, bM as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bC as ZapierResourceNotFoundError, b_ as ZapierSignal, bF as ZapierTimeoutError, bw as ZapierUnknownError, bv as ZapierValidationError, cT as actionKeyResolver, cS as actionTypeResolver, cN as apiPlugin, cM as apiPluginRef, cR as appKeyResolver, c0 as appsPlugin, a1 as batch, eG as buildApplicationLifecycleEvent, a3 as buildCapabilityMessage, eI as buildErrorEvent, eH as buildErrorEventWithContext, eK as buildMethodCalledEvent, ev as cleanupEventListeners, dk as clearTokenCache, cZ as clientCredentialsNameResolver, c_ as clientIdResolver, cV as connectionIdGenericResolver, cU as connectionIdResolver, e0 as connectionsPlugin, d$ as connectionsPluginRef, cp as createActionRunPlugin, eJ as createBaseEvent, cg as createClientCredentialsPlugin, dv as createMemoryCache, eo as createTableFieldsPlugin, el as createTablePlugin, es as createTableRecordsPlugin, aj as createZapierApi, a8 as createZapierSdkWithoutRegistry, ch as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, em as deleteTablePlugin, et as deleteTableRecordsPlugin, d2 as durableRunIdResolver, eB as eventEmissionHookPlugin, eA as eventEmissionPlugin, ez as eventEmissionPluginRef, c4 as fetchPlugin, cl as findFirstConnectionPlugin, cz as findManifestEntry, cm as findUniqueConnectionPlugin, bZ as formatErrorMessage, ac as formatExtensionPluginFailure, eN as generateEventId, cc as getActionInputFieldsSchemaPlugin, cj as getActionPlugin, cr as getActionRunPlugin, ag as getAgent, ci as getAppPlugin, dM as getBaseUrlFromCredentials, _ as getCallerContext, eT as getCiPlatform, dN as getClientIdFromCredentials, ck as getConnectionPlugin, eV as getCpuTime, eO as getCurrentTimestamp, eU as getMemoryUsage, ak as getOrCreateApiClient, eQ as getOsInfo, eR as getPlatformVersions, cy as getPreferredManifestEntryKey, cI as getProfilePlugin, eP as getReleaseId, ek as getTablePlugin, eq as getTableRecordPlugin, dp as getTokenFromCliLogin, eW as getTtyContext, ee as getZapierApprovalMode, e4 as getZapierCausationId, e3 as getZapierCorrelationId, eg as getZapierDefaultApprovalMode, ef as getZapierOpenAutoModeApprovalsInBrowser, e2 as getZapierSdkService, dm as injectCliLogin, cY as inputFieldKeyResolver, cX as inputsAllOptionalResolver, cW as inputsResolver, dl as invalidateCachedToken, ds as invalidateCredentialsToken, eS as isCi, dn as isCliLoginAvailable, dF as isClientCredentials, dI as isCredentialsFunction, dH as isCredentialsObject, al as isPermanentHttpError, dG as isPkceCredentials, o as isZapierAbortDrainSignal, bW as isZapierActionError, bQ as isZapierAppNotFoundError, bY as isZapierApprovalError, bP as isZapierAuthenticationError, bV as isZapierBundleError, bT as isZapierConflictError, bN as isZapierError, bR as isZapierNotFoundError, bX as isZapierRateLimitError, p as isZapierReleaseTriggerMessageSignal, bS as isZapierResourceNotFoundError, b$ as isZapierSignal, bU as isZapierTimeoutError, bO as isZapierValidationError, cb as listActionInputFieldChoicesPlugin, c9 as listActionInputFieldsPlugin, c7 as listActionsPlugin, c5 as listAppsPlugin, cf as listClientCredentialsPlugin, cd as listConnectionsPlugin, en as listTableFieldsPlugin, er as listTableRecordsPlugin, ej as listTablesPlugin, a4 as logDeprecation, cC as manifestPlugin, cB as manifestPluginRef, eM as operationAnnotatorPlugin, ec as parseConcurrencyEnvVar, cx as readManifestFromFile, cv as requestPlugin, a5 as resetDeprecationWarnings, dq as resolveAuth, dr as resolveAuthToken, dL as resolveCredentials, dK as resolveCredentialsFromEnv, cQ as resolveCredentialsPlugin, cP as resolveCredentialsPluginRef, ct as runActionPlugin, $ as runWithCallerContext, Y as sdkOptionsPluginRef, da as tableFieldIdsResolver, dc as tableFieldsResolver, df as tableFiltersResolver, c$ as tableIdResolver, db as tableNameResolver, d8 as tableRecordIdResolver, d9 as tableRecordIdsResolver, dd as tableRecordsResolver, dg as tableSortResolver, de as tableUpdateRecordsResolver, d0 as triggerInboxResolver, d7 as triggerMessagesResolver, eu as updateTableRecordsPlugin, d4 as workflowDraftIdResolver, d5 as workflowDraftRevisionResolver, d1 as workflowIdResolver, d6 as workflowRunIdResolver, d3 as workflowVersionIdResolver, by as zapierAdaptError, a9 as zapierCoreOptions, V as zapierSdkPlugin } from './index-BCJAutN8.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import * as _zapier_kitcore from '@zapier/kitcore';
|
|
@@ -934,7 +934,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
934
934
|
is_important?: boolean | undefined;
|
|
935
935
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
936
936
|
app_version?: string | undefined;
|
|
937
|
-
}
|
|
937
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
938
938
|
app: string;
|
|
939
939
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
940
940
|
action: string;
|
|
@@ -3210,7 +3210,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3210
3210
|
is_important?: boolean | undefined;
|
|
3211
3211
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3212
3212
|
app_version?: string | undefined;
|
|
3213
|
-
}
|
|
3213
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3214
3214
|
app: string;
|
|
3215
3215
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3216
3216
|
action: string;
|
|
@@ -3417,7 +3417,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3417
3417
|
is_important?: boolean | undefined;
|
|
3418
3418
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3419
3419
|
app_version?: string | undefined;
|
|
3420
|
-
}
|
|
3420
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3421
3421
|
app: string;
|
|
3422
3422
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3423
3423
|
action: string;
|
|
@@ -3636,7 +3636,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3636
3636
|
is_important?: boolean | undefined;
|
|
3637
3637
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3638
3638
|
app_version?: string | undefined;
|
|
3639
|
-
}
|
|
3639
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3640
3640
|
app: string;
|
|
3641
3641
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3642
3642
|
action: string;
|
|
@@ -3953,7 +3953,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
3953
3953
|
is_important?: boolean | undefined;
|
|
3954
3954
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
3955
3955
|
app_version?: string | undefined;
|
|
3956
|
-
}
|
|
3956
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
3957
3957
|
app: string;
|
|
3958
3958
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
3959
3959
|
action: string;
|
|
@@ -4244,7 +4244,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
4244
4244
|
is_important?: boolean | undefined;
|
|
4245
4245
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
4246
4246
|
app_version?: string | undefined;
|
|
4247
|
-
}
|
|
4247
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
4248
4248
|
app: string;
|
|
4249
4249
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
4250
4250
|
action: string;
|
|
@@ -4549,7 +4549,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
4549
4549
|
is_important?: boolean | undefined;
|
|
4550
4550
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
4551
4551
|
app_version?: string | undefined;
|
|
4552
|
-
}
|
|
4552
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
4553
4553
|
app: string;
|
|
4554
4554
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
4555
4555
|
action: string;
|
|
@@ -4780,7 +4780,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
4780
4780
|
is_important?: boolean | undefined;
|
|
4781
4781
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
4782
4782
|
app_version?: string | undefined;
|
|
4783
|
-
}
|
|
4783
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
4784
4784
|
app: string;
|
|
4785
4785
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
4786
4786
|
action: string;
|
|
@@ -5051,7 +5051,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
5051
5051
|
is_important?: boolean | undefined;
|
|
5052
5052
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
5053
5053
|
app_version?: string | undefined;
|
|
5054
|
-
}
|
|
5054
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
5055
5055
|
app: string;
|
|
5056
5056
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
5057
5057
|
action: string;
|
|
@@ -5366,7 +5366,7 @@ declare const zapierBetaSdkPlugin: _zapier_kitcore.AggregatePlugin<"beta-sdk", {
|
|
|
5366
5366
|
is_important?: boolean | undefined;
|
|
5367
5367
|
permissions?: Partial<Record<string, boolean>> | undefined;
|
|
5368
5368
|
app_version?: string | undefined;
|
|
5369
|
-
}
|
|
5369
|
+
}>>, _zapier_kitcore.PropertyPlugin<"manifest", ManifestProvider> & _zapier_kitcore.DeclarationSummary<"zapier/manifest", ManifestProvider> & _zapier_kitcore.StandInId<"zapier/manifest">, _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: ({
|
|
5370
5370
|
app: string;
|
|
5371
5371
|
actionType: "filter" | "run" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write";
|
|
5372
5372
|
action: string;
|
package/dist/beta.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createZapierSdk, zapierBetaSdkPlugin } from './chunk-
|
|
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, 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, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, 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, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, 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, 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, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-
|
|
1
|
+
export { createZapierSdk, zapierBetaSdkPlugin } from './chunk-LSSH3DUG.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, 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, STABILITY_DEFINITIONS, STABILITY_LEVELS, STABILITY_TITLES, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, 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, applyStabilityLabel, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createMemoryCache, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, formatExtensionPluginFailure, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistry, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, 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, 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, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-IAKIS53P.mjs';
|
|
3
3
|
import './chunk-Y6FXYEAI.mjs';
|
|
@@ -2819,7 +2819,7 @@ function logRouteOverride({
|
|
|
2819
2819
|
}
|
|
2820
2820
|
|
|
2821
2821
|
// src/sdk-version.ts
|
|
2822
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2822
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.114.0" : void 0) || "unknown";
|
|
2823
2823
|
|
|
2824
2824
|
// src/utils/open-url.ts
|
|
2825
2825
|
var nodePrefix = "node:";
|
|
@@ -5430,7 +5430,7 @@ var actionKeyResolver = kitcore.defineResolver({
|
|
|
5430
5430
|
const page = await imports.listActions({ app: input.app, cursor });
|
|
5431
5431
|
return {
|
|
5432
5432
|
data: page.data.filter(
|
|
5433
|
-
(action) => action.action_type === input.actionType
|
|
5433
|
+
(action) => action.action_type === input.actionType
|
|
5434
5434
|
),
|
|
5435
5435
|
nextCursor: page.nextCursor
|
|
5436
5436
|
};
|
|
@@ -6943,6 +6943,45 @@ var actionItemFormatter = kitcore.defineFormatter({
|
|
|
6943
6943
|
format: ({ item }) => formatActionItem(item)
|
|
6944
6944
|
});
|
|
6945
6945
|
|
|
6946
|
+
// src/plugins/listActions/fetch.ts
|
|
6947
|
+
async function fetchAppActions({
|
|
6948
|
+
imports,
|
|
6949
|
+
app
|
|
6950
|
+
}) {
|
|
6951
|
+
const selectedApi = await imports.manifest.getVersionedImplementationId(app);
|
|
6952
|
+
if (!selectedApi) {
|
|
6953
|
+
throw new ZapierConfigurationError(
|
|
6954
|
+
"No current_implementation_id found for app",
|
|
6955
|
+
{ configType: "current_implementation_id" }
|
|
6956
|
+
);
|
|
6957
|
+
}
|
|
6958
|
+
const data = await imports.api.get(
|
|
6959
|
+
"/zapier/api/v4/implementations/",
|
|
6960
|
+
{
|
|
6961
|
+
searchParams: {
|
|
6962
|
+
global: "true",
|
|
6963
|
+
// Include private/unlisted implementations the caller has access to.
|
|
6964
|
+
// With public_only the API drops actions on private apps, so they
|
|
6965
|
+
// surface as "unknown action" downstream (COSUB-562).
|
|
6966
|
+
public_only: "false",
|
|
6967
|
+
selected_apis: selectedApi
|
|
6968
|
+
}
|
|
6969
|
+
}
|
|
6970
|
+
);
|
|
6971
|
+
const actions = [];
|
|
6972
|
+
for (const implementation of data.results || []) {
|
|
6973
|
+
for (const action of implementation.actions ?? []) {
|
|
6974
|
+
actions.push(
|
|
6975
|
+
normalizeActionItem({
|
|
6976
|
+
...action,
|
|
6977
|
+
selected_api: action.selected_api || implementation.selected_api
|
|
6978
|
+
})
|
|
6979
|
+
);
|
|
6980
|
+
}
|
|
6981
|
+
}
|
|
6982
|
+
return { selectedApi, actions };
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6946
6985
|
// src/plugins/listActions/index.ts
|
|
6947
6986
|
var listActionsPlugin = kitcore.defineMethod({
|
|
6948
6987
|
name: "listActions",
|
|
@@ -6962,56 +7001,26 @@ var listActionsPlugin = kitcore.defineMethod({
|
|
|
6962
7001
|
// the resolver.
|
|
6963
7002
|
resolvers: { app: appKeyResolver },
|
|
6964
7003
|
run: async ({ imports, input, annotate }) => {
|
|
6965
|
-
const api = imports.api;
|
|
6966
|
-
const getVersionedImplementationId = imports.manifest.getVersionedImplementationId;
|
|
6967
7004
|
const appKey = "app" in input ? input.app : input.appKey;
|
|
6968
|
-
const selectedApi = await
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
{ configType: "current_implementation_id" }
|
|
6973
|
-
);
|
|
6974
|
-
}
|
|
7005
|
+
const { selectedApi, actions } = await fetchAppActions({
|
|
7006
|
+
imports,
|
|
7007
|
+
app: appKey
|
|
7008
|
+
});
|
|
6975
7009
|
annotate({ selectedApi });
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
// Include private/unlisted implementations the caller has access to.
|
|
6982
|
-
// With public_only the API drops actions on private apps, so they
|
|
6983
|
-
// surface as "unknown action" downstream (COSUB-562).
|
|
6984
|
-
public_only: "false",
|
|
6985
|
-
selected_apis: selectedApi
|
|
6986
|
-
}
|
|
6987
|
-
}
|
|
6988
|
-
);
|
|
6989
|
-
let allActions = [];
|
|
6990
|
-
for (const implementation of data.results || []) {
|
|
6991
|
-
if (implementation.actions) {
|
|
6992
|
-
for (const action of implementation.actions) {
|
|
6993
|
-
allActions.push(
|
|
6994
|
-
normalizeActionItem({
|
|
6995
|
-
...action,
|
|
6996
|
-
selected_api: action.selected_api || implementation.selected_api
|
|
6997
|
-
})
|
|
6998
|
-
);
|
|
6999
|
-
}
|
|
7000
|
-
}
|
|
7001
|
-
}
|
|
7002
|
-
if (input.actionType) {
|
|
7003
|
-
allActions = allActions.filter(
|
|
7004
|
-
(action) => action.action_type === input.actionType
|
|
7005
|
-
);
|
|
7006
|
-
}
|
|
7007
|
-
return { data: allActions };
|
|
7010
|
+
return {
|
|
7011
|
+
data: actions.filter(
|
|
7012
|
+
(action) => !action.is_hidden && (!input.actionType || action.action_type === input.actionType)
|
|
7013
|
+
)
|
|
7014
|
+
};
|
|
7008
7015
|
}
|
|
7009
7016
|
});
|
|
7010
7017
|
|
|
7011
7018
|
// src/plugins/getAction/index.ts
|
|
7012
7019
|
var getActionPlugin = kitcore.defineMethod({
|
|
7013
7020
|
name: "getAction",
|
|
7014
|
-
|
|
7021
|
+
// `listActionsPlugin` is here for the action-type and action-key resolvers,
|
|
7022
|
+
// which reach it through a stand-in; the lookup itself doesn't use it.
|
|
7023
|
+
imports: [listActionsPlugin, manifestPluginRef, apiPluginRef],
|
|
7015
7024
|
categories: ["action"],
|
|
7016
7025
|
itemType: "Action",
|
|
7017
7026
|
inputSchema: GetActionInputSchema,
|
|
@@ -7028,11 +7037,11 @@ var getActionPlugin = kitcore.defineMethod({
|
|
|
7028
7037
|
const appKey = "app" in input ? input.app : input.appKey;
|
|
7029
7038
|
const actionKey = "action" in input ? input.action : input.actionKey;
|
|
7030
7039
|
const { actionType } = input;
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
}
|
|
7040
|
+
const { actions } = await fetchAppActions({ imports, app: appKey });
|
|
7041
|
+
const action = actions.find(
|
|
7042
|
+
(candidate) => (candidate.key === actionKey || candidate.id === actionKey) && candidate.action_type === actionType
|
|
7043
|
+
);
|
|
7044
|
+
if (action) return { data: action };
|
|
7036
7045
|
throw new ZapierResourceNotFoundError(
|
|
7037
7046
|
`Action not found: ${actionKey} with type ${actionType}`,
|
|
7038
7047
|
{ resourceType: "Action", resourceId: `${actionKey} (${actionType})` }
|
|
@@ -2818,7 +2818,7 @@ function logRouteOverride({
|
|
|
2818
2818
|
}
|
|
2819
2819
|
|
|
2820
2820
|
// src/sdk-version.ts
|
|
2821
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2821
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.114.0" : void 0) || "unknown";
|
|
2822
2822
|
|
|
2823
2823
|
// src/utils/open-url.ts
|
|
2824
2824
|
var nodePrefix = "node:";
|
|
@@ -5429,7 +5429,7 @@ var actionKeyResolver = defineResolver({
|
|
|
5429
5429
|
const page = await imports.listActions({ app: input.app, cursor });
|
|
5430
5430
|
return {
|
|
5431
5431
|
data: page.data.filter(
|
|
5432
|
-
(action) => action.action_type === input.actionType
|
|
5432
|
+
(action) => action.action_type === input.actionType
|
|
5433
5433
|
),
|
|
5434
5434
|
nextCursor: page.nextCursor
|
|
5435
5435
|
};
|
|
@@ -6942,6 +6942,45 @@ var actionItemFormatter = defineFormatter({
|
|
|
6942
6942
|
format: ({ item }) => formatActionItem(item)
|
|
6943
6943
|
});
|
|
6944
6944
|
|
|
6945
|
+
// src/plugins/listActions/fetch.ts
|
|
6946
|
+
async function fetchAppActions({
|
|
6947
|
+
imports,
|
|
6948
|
+
app
|
|
6949
|
+
}) {
|
|
6950
|
+
const selectedApi = await imports.manifest.getVersionedImplementationId(app);
|
|
6951
|
+
if (!selectedApi) {
|
|
6952
|
+
throw new ZapierConfigurationError(
|
|
6953
|
+
"No current_implementation_id found for app",
|
|
6954
|
+
{ configType: "current_implementation_id" }
|
|
6955
|
+
);
|
|
6956
|
+
}
|
|
6957
|
+
const data = await imports.api.get(
|
|
6958
|
+
"/zapier/api/v4/implementations/",
|
|
6959
|
+
{
|
|
6960
|
+
searchParams: {
|
|
6961
|
+
global: "true",
|
|
6962
|
+
// Include private/unlisted implementations the caller has access to.
|
|
6963
|
+
// With public_only the API drops actions on private apps, so they
|
|
6964
|
+
// surface as "unknown action" downstream (COSUB-562).
|
|
6965
|
+
public_only: "false",
|
|
6966
|
+
selected_apis: selectedApi
|
|
6967
|
+
}
|
|
6968
|
+
}
|
|
6969
|
+
);
|
|
6970
|
+
const actions = [];
|
|
6971
|
+
for (const implementation of data.results || []) {
|
|
6972
|
+
for (const action of implementation.actions ?? []) {
|
|
6973
|
+
actions.push(
|
|
6974
|
+
normalizeActionItem({
|
|
6975
|
+
...action,
|
|
6976
|
+
selected_api: action.selected_api || implementation.selected_api
|
|
6977
|
+
})
|
|
6978
|
+
);
|
|
6979
|
+
}
|
|
6980
|
+
}
|
|
6981
|
+
return { selectedApi, actions };
|
|
6982
|
+
}
|
|
6983
|
+
|
|
6945
6984
|
// src/plugins/listActions/index.ts
|
|
6946
6985
|
var listActionsPlugin = defineMethod({
|
|
6947
6986
|
name: "listActions",
|
|
@@ -6961,56 +7000,26 @@ var listActionsPlugin = defineMethod({
|
|
|
6961
7000
|
// the resolver.
|
|
6962
7001
|
resolvers: { app: appKeyResolver },
|
|
6963
7002
|
run: async ({ imports, input, annotate }) => {
|
|
6964
|
-
const api = imports.api;
|
|
6965
|
-
const getVersionedImplementationId = imports.manifest.getVersionedImplementationId;
|
|
6966
7003
|
const appKey = "app" in input ? input.app : input.appKey;
|
|
6967
|
-
const selectedApi = await
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
{ configType: "current_implementation_id" }
|
|
6972
|
-
);
|
|
6973
|
-
}
|
|
7004
|
+
const { selectedApi, actions } = await fetchAppActions({
|
|
7005
|
+
imports,
|
|
7006
|
+
app: appKey
|
|
7007
|
+
});
|
|
6974
7008
|
annotate({ selectedApi });
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
// Include private/unlisted implementations the caller has access to.
|
|
6981
|
-
// With public_only the API drops actions on private apps, so they
|
|
6982
|
-
// surface as "unknown action" downstream (COSUB-562).
|
|
6983
|
-
public_only: "false",
|
|
6984
|
-
selected_apis: selectedApi
|
|
6985
|
-
}
|
|
6986
|
-
}
|
|
6987
|
-
);
|
|
6988
|
-
let allActions = [];
|
|
6989
|
-
for (const implementation of data.results || []) {
|
|
6990
|
-
if (implementation.actions) {
|
|
6991
|
-
for (const action of implementation.actions) {
|
|
6992
|
-
allActions.push(
|
|
6993
|
-
normalizeActionItem({
|
|
6994
|
-
...action,
|
|
6995
|
-
selected_api: action.selected_api || implementation.selected_api
|
|
6996
|
-
})
|
|
6997
|
-
);
|
|
6998
|
-
}
|
|
6999
|
-
}
|
|
7000
|
-
}
|
|
7001
|
-
if (input.actionType) {
|
|
7002
|
-
allActions = allActions.filter(
|
|
7003
|
-
(action) => action.action_type === input.actionType
|
|
7004
|
-
);
|
|
7005
|
-
}
|
|
7006
|
-
return { data: allActions };
|
|
7009
|
+
return {
|
|
7010
|
+
data: actions.filter(
|
|
7011
|
+
(action) => !action.is_hidden && (!input.actionType || action.action_type === input.actionType)
|
|
7012
|
+
)
|
|
7013
|
+
};
|
|
7007
7014
|
}
|
|
7008
7015
|
});
|
|
7009
7016
|
|
|
7010
7017
|
// src/plugins/getAction/index.ts
|
|
7011
7018
|
var getActionPlugin = defineMethod({
|
|
7012
7019
|
name: "getAction",
|
|
7013
|
-
|
|
7020
|
+
// `listActionsPlugin` is here for the action-type and action-key resolvers,
|
|
7021
|
+
// which reach it through a stand-in; the lookup itself doesn't use it.
|
|
7022
|
+
imports: [listActionsPlugin, manifestPluginRef, apiPluginRef],
|
|
7014
7023
|
categories: ["action"],
|
|
7015
7024
|
itemType: "Action",
|
|
7016
7025
|
inputSchema: GetActionInputSchema,
|
|
@@ -7027,11 +7036,11 @@ var getActionPlugin = defineMethod({
|
|
|
7027
7036
|
const appKey = "app" in input ? input.app : input.appKey;
|
|
7028
7037
|
const actionKey = "action" in input ? input.action : input.actionKey;
|
|
7029
7038
|
const { actionType } = input;
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
}
|
|
7039
|
+
const { actions } = await fetchAppActions({ imports, app: appKey });
|
|
7040
|
+
const action = actions.find(
|
|
7041
|
+
(candidate) => (candidate.key === actionKey || candidate.id === actionKey) && candidate.action_type === actionType
|
|
7042
|
+
);
|
|
7043
|
+
if (action) return { data: action };
|
|
7035
7044
|
throw new ZapierResourceNotFoundError(
|
|
7036
7045
|
`Action not found: ${actionKey} with type ${actionType}`,
|
|
7037
7046
|
{ resourceType: "Action", resourceId: `${actionKey} (${actionType})` }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-
|
|
1
|
+
import { zapierSdkPlugin, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-IAKIS53P.mjs';
|
|
2
2
|
import { definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
3
3
|
|
|
4
4
|
var zapierBetaSdkPlugin = definePlugin({
|