@zapier/zapier-sdk 0.88.1 → 0.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-DeefnmJr.mjs';
2
- export { e1 as API_ID, N as Action, dZ as ActionEntry, dm as ActionExecutionOptions, X as ActionExecutionResult, Y as ActionField, _ as ActionFieldChoice, bK as ActionItem, cm as ActionKeyProperty, bU as ActionKeyPropertySchema, cn as ActionProperty, bV as ActionPropertySchema, bu as ActionResolverItem, cz as ActionTimeoutMillisecondsProperty, c5 as ActionTimeoutMillisecondsPropertySchema, cy as ActionTimeoutSecondsProperty, c4 as ActionTimeoutSecondsPropertySchema, bv as ActionTypeItem, cl as ActionTypeProperty, bT as ActionTypePropertySchema, di as ApiError, eN as ApiEvent, d$ as ApiPluginOptions, O as App, dn as AppFactoryInput, bI as AppItem, cj as AppKeyProperty, bR as AppKeyPropertySchema, ck as AppProperty, bS as AppPropertySchema, fQ as ApplicationLifecycleEventData, d2 as ApprovalStatus, cE as AppsProperty, ca as AppsPropertySchema, aD as ArrayResolver, eM as AuthEvent, ey as AuthMechanism, cr as AuthenticationIdProperty, bY as AuthenticationIdPropertySchema, fY as BaseEvent, bc as BaseSdkOptionsSchema, b1 as BatchOptions, az as BoundFormatter, fd as CONNECTIONS_ID, ae as CONTEXT, dK as CONTEXT_CACHE_MAX_SIZE, dJ as CONTEXT_CACHE_TTL_MILLISECONDS, bg as CORE_ERROR_SYMBOL, b9 as CORE_OPTIONS_ID, bm as CORE_SIGNAL_SYMBOL, aZ as CallerContext, V as Choice, eS as ClientCredentialsObject, f1 as ClientCredentialsObjectSchema, a1 as Connection, f9 as ConnectionEntry, f8 as ConnectionEntrySchema, cp as ConnectionIdProperty, bX as ConnectionIdPropertySchema, bJ as ConnectionItem, cq as ConnectionProperty, bZ as ConnectionPropertySchema, fb as ConnectionsMap, fa as ConnectionsMapSchema, cG as ConnectionsProperty, cc as ConnectionsPropertySchema, a2 as ConnectionsResponse, aP as ControllerAction, aQ as ControllerAnswerFn, aR as ControllerChoice, aT as ControllerMethodDescription, aS as ControllerMethodSummary, aU as ControllerParameterDescription, aO as ControllerQuestion, bj as CoreCancelledSignal, ac as CoreDisposeError, bh as CoreErrorCode, bi as CoreSignal, eP as Credentials, f6 as CredentialsFunction, f5 as CredentialsFunctionSchema, eR as CredentialsObject, f3 as CredentialsObjectSchema, f7 as CredentialsSchema, fk as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ft as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dX as DEFAULT_CONFIG_PATH, fu as DEFAULT_MAX_APPROVAL_RETRIES, fj as DEFAULT_PAGE_SIZE, bG as DEPRECATION_NOTICE_EVENT, cw as DebugProperty, c2 as DebugPropertySchema, bH as DeprecationNoticePayload, w as DrainTriggerInboxCallback, x as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aH as DynamicListResolver, aL as DynamicMember, aG as DynamicResolver, aI as DynamicSearchResolver, fK as EVENT_EMISSION_ID, fR as EnhancedErrorEventData, cN as ErrorOptions, fP as EventContext, fI as EventEmissionContext, fJ as EventEmitter, fO as EventTransport, dp as FetchPluginProvides, U as Field, cD as FieldsProperty, c9 as FieldsPropertySchema, aJ as FieldsResolver, J as FindFirstAuthenticationPluginProvides, K as FindUniqueAuthenticationPluginProvides, ay as FormattedItem, aA as Formatter, bb as FunctionDeprecation, ba as FunctionRegistryEntry, I as GetAuthenticationPluginProvides, bM as InfoFieldItem, bL as InputFieldItem, co as InputFieldProperty, bW as InputFieldPropertySchema, cs as InputsProperty, b_ as InputsPropertySchema, bF as JsonSseMessage, cM as LeaseLimitProperty, ci as LeaseLimitPropertySchema, cK as LeaseProperty, cg as LeasePropertySchema, cL as LeaseSecondsProperty, ch as LeaseSecondsPropertySchema, y as LeasedTriggerMessageItem, ct as LimitProperty, b$ as LimitPropertySchema, dw as ListActionInputFieldsPluginProvides, du as ListActionsPluginProvides, ds as ListAppsPluginProvides, H as ListAuthenticationsPluginProvides, dA as ListConnectionsPluginProvides, eO as LoadingEvent, dS as MANIFEST_ID, fn as MAX_CONCURRENCY_LIMIT, fi as MAX_PAGE_LIMIT, dY as ManifestEntry, dO as ManifestPluginOptions, fZ as MethodCalledEvent, fS as MethodCalledEventData, bp as MethodOverridePlugin, aK as ModelResolver, Q as Need, $ as NeedsRequest, a0 as NeedsResponse, cu as OffsetProperty, c0 as OffsetPropertySchema, aB as OutputFormatter, cv as OutputProperty, c1 as OutputPropertySchema, bQ as PaginatedSdkFunction, cx as ParamsProperty, c3 as ParamsPropertySchema, eT as PkceCredentialsObject, f2 as PkceCredentialsObjectSchema, bn as Plugin, p as PluginMeta, bo as PluginProvides, aM as PluginSurface, bA as PollOptions, a5 as PositionalMetadata, e4 as RESOLVE_CREDENTIALS_ID, d0 as RateLimitInfo, cB as RecordProperty, c7 as RecordPropertySchema, cC as RecordsProperty, c8 as RecordsPropertySchema, b6 as RelayFetchSchema, b5 as RelayRequestSchema, bz as RequestOptions, ex as ResolveAuthTokenOptions, fc as ResolveConnection, e0 as ResolveCredentialsFn, eY as ResolveCredentialsOptions, bw as ResolvedAppLocator, ez as ResolvedAuth, eQ as ResolvedCredentials, f4 as ResolvedCredentialsSchema, aC as Resolver, aE as ResolverMetadata, bN as RootFieldItem, dM as RunActionPluginProvides, aw as SDK_OPTIONS_ID, eL as SdkEvent, bP as SdkPage, bE as SseMessage, aF as StaticResolver, cA as TableProperty, c6 as TablePropertySchema, cF as TablesProperty, cb as TablesPropertySchema, cI as TriggerInboxKeyProperty, ce as TriggerInboxKeyPropertySchema, cJ as TriggerInboxNameProperty, cf as TriggerInboxNamePropertySchema, cH as TriggerInboxProperty, cd as TriggerInboxPropertySchema, z as TriggerMessageStatus, dV as UpdateManifestEntryOptions, dW as UpdateManifestEntryResult, a3 as UserProfile, bO as UserProfileItem, r as WatchTriggerInboxSchema, fg as ZAPIER_BASE_URL, fp as ZAPIER_MAX_CONCURRENT_REQUESTS, fl as ZAPIER_MAX_NETWORK_RETRIES, fm as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, s as ZapierAbortDrainSignal, c_ as ZapierActionError, cT as ZapierApiError, cU as ZapierAppNotFoundError, d3 as ZapierApprovalError, cR as ZapierAuthenticationError, cY as ZapierBundleError, eI as ZapierCacheEntry, eJ as ZapierCacheSetOptions, cX as ZapierConfigurationError, c$ as ZapierConflictError, cO as ZapierError, cV as ZapierNotFoundError, d1 as ZapierRateLimitError, d4 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cW as ZapierResourceNotFoundError, dj as ZapierSignal, cZ as ZapierTimeoutError, cQ as ZapierUnknownError, cP as ZapierValidationError, e9 as actionKeyResolver, e8 as actionTypeResolver, aa as addPlugin, e3 as apiPlugin, e2 as apiPluginRef, e7 as appKeyResolver, dl as appsPlugin, b0 as batch, fT as buildApplicationLifecycleEvent, b2 as buildCapabilityMessage, fV as buildErrorEvent, fU as buildErrorEventWithContext, fX as buildMethodCalledEvent, fH as cleanupEventListeners, eA as clearTokenCache, ef as clientCredentialsNameResolver, eg as clientIdResolver, bt as composePlugins, eb as connectionIdGenericResolver, ea as connectionIdResolver, ff as connectionsPlugin, fe as connectionsPluginRef, fW as createBaseEvent, dC as createClientCredentialsPlugin, aN as createController, a9 as createCorePlugin, a6 as createFunction, eK as createMemoryCache, a7 as createPaginatedFunction, bs as createPaginatedPluginMethod, br as createPluginMethod, a8 as createPluginStack, ad as createSdk, fA as createTableFieldsPlugin, fx as createTablePlugin, fE as createTableRecordsPlugin, bB as createZapierApi, b7 as createZapierSdkWithoutRegistry, ap as declareMethod, ar as declareOptionalProperty, aj as declarePlugin, aq as declareProperty, ao as defineFormatter, ah as defineLegacyMerge, ak as defineMethod, al as defineMethodOverride, bq as definePlugin, am as defineProperty, an as defineResolver, dD as deleteClientCredentialsPlugin, fB as deleteTableFieldsPlugin, fy as deleteTablePlugin, fF as deleteTableRecordsPlugin, ab as disposeSdk, ek as durableRunIdResolver, fN as eventEmissionHookPlugin, fM as eventEmissionPlugin, fL as eventEmissionPluginRef, dq as fetchPlugin, dH as findFirstConnectionPlugin, dR as findManifestEntry, dI as findUniqueConnectionPlugin, dh as formatErrorMessage, ag as fromFunctionPlugin, f$ as generateEventId, dy as getActionInputFieldsSchemaPlugin, dF as getActionPlugin, bx as getAgent, dE as getAppPlugin, e$ as getBaseUrlFromCredentials, aX as getCallerContext, g5 as getCiPlatform, f0 as getClientIdFromCredentials, dG as getConnectionPlugin, ai as getContext, bf as getCoreErrorCause, be as getCoreErrorCode, g7 as getCpuTime, g0 as getCurrentTimestamp, g6 as getMemoryUsage, bC as getOrCreateApiClient, g2 as getOsInfo, g3 as getPlatformVersions, dQ as getPreferredManifestEntryKey, d_ as getProfilePlugin, au as getRegistryPlugin, g1 as getReleaseId, fw as getTablePlugin, fC as getTableRecordPlugin, eE as getTokenFromCliLogin, g8 as getTtyContext, fq as getZapierApprovalMode, fs as getZapierDefaultApprovalMode, fr as getZapierOpenAutoModeApprovalsInBrowser, fh as getZapierSdkService, eC as injectCliLogin, ee as inputFieldKeyResolver, ed as inputsAllOptionalResolver, ec as inputsResolver, eB as invalidateCachedToken, eH as invalidateCredentialsToken, g4 as isCi, eD as isCliLoginAvailable, eU as isClientCredentials, bl as isCoreCancelledSignal, bd as isCoreError, bk as isCoreSignal, eX as isCredentialsFunction, eW as isCredentialsObject, bD as isPermanentHttpError, eV as isPkceCredentials, a4 as isPositional, u as isZapierAbortDrainSignal, de as isZapierActionError, d8 as isZapierAppNotFoundError, dg as isZapierApprovalError, d7 as isZapierAuthenticationError, dd as isZapierBundleError, db as isZapierConflictError, d5 as isZapierError, d9 as isZapierNotFoundError, df as isZapierRateLimitError, v as isZapierReleaseTriggerMessageSignal, da as isZapierResourceNotFoundError, dk as isZapierSignal, dc as isZapierTimeoutError, d6 as isZapierValidationError, dx as listActionInputFieldChoicesPlugin, dv as listActionInputFieldsPlugin, dt as listActionsPlugin, dr as listAppsPlugin, dB as listClientCredentialsPlugin, dz as listConnectionsPlugin, fz as listTableFieldsPlugin, fD as listTableRecordsPlugin, fv as listTablesPlugin, b3 as logDeprecation, dU as manifestPlugin, dT as manifestPluginRef, at as omitExports, f_ as operationAnnotatorPlugin, fo as parseConcurrencyEnvVar, dP as readManifestFromFile, by as registryPlugin, dN as requestPlugin, b4 as resetDeprecationWarnings, eF as resolveAuth, eG as resolveAuthToken, e_ as resolveCredentials, eZ as resolveCredentialsFromEnv, e6 as resolveCredentialsPlugin, e5 as resolveCredentialsPluginRef, af as resolvePlugin, dL as runActionPlugin, aV as runInMethodScope, aY as runWithCallerContext, aW as runWithTelemetryContext, ax as sdkOptionsPluginRef, as as selectExports, eq as tableFieldIdsResolver, es as tableFieldsResolver, ev as tableFiltersResolver, eh as tableIdResolver, er as tableNameResolver, eo as tableRecordIdResolver, ep as tableRecordIdsResolver, et as tableRecordsResolver, ew as tableSortResolver, eu as tableUpdateRecordsResolver, a_ as toSnakeCase, a$ as toTitleCase, ei as triggerInboxResolver, en as triggerMessagesResolver, fG as updateTableRecordsPlugin, ej as workflowIdResolver, em as workflowRunIdResolver, el as workflowVersionIdResolver, cS as zapierAdaptError, b8 as zapierCoreOptions, av as zapierSdkPlugin } from './index-DeefnmJr.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 ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-BBBkZ80x.mjs';
2
+ export { e1 as API_ID, N as Action, dZ as ActionEntry, dm as ActionExecutionOptions, X as ActionExecutionResult, Y as ActionField, _ as ActionFieldChoice, bK as ActionItem, cm as ActionKeyProperty, bU as ActionKeyPropertySchema, cn as ActionProperty, bV as ActionPropertySchema, bu as ActionResolverItem, cz as ActionTimeoutMillisecondsProperty, c5 as ActionTimeoutMillisecondsPropertySchema, cy as ActionTimeoutSecondsProperty, c4 as ActionTimeoutSecondsPropertySchema, bv as ActionTypeItem, cl as ActionTypeProperty, bT as ActionTypePropertySchema, di as ApiError, eO as ApiEvent, d$ as ApiPluginOptions, O as App, dn as AppFactoryInput, bI as AppItem, cj as AppKeyProperty, bR as AppKeyPropertySchema, ck as AppProperty, bS as AppPropertySchema, fR as ApplicationLifecycleEventData, d2 as ApprovalStatus, cE as AppsProperty, ca as AppsPropertySchema, aD as ArrayResolver, eN as AuthEvent, ez as AuthMechanism, cr as AuthenticationIdProperty, bY as AuthenticationIdPropertySchema, fZ as BaseEvent, bc as BaseSdkOptionsSchema, b1 as BatchOptions, az as BoundFormatter, fe as CONNECTIONS_ID, ae as CONTEXT, dK as CONTEXT_CACHE_MAX_SIZE, dJ as CONTEXT_CACHE_TTL_MILLISECONDS, bg as CORE_ERROR_SYMBOL, b9 as CORE_OPTIONS_ID, bm as CORE_SIGNAL_SYMBOL, aZ as CallerContext, V as Choice, eT as ClientCredentialsObject, f2 as ClientCredentialsObjectSchema, a1 as Connection, fa as ConnectionEntry, f9 as ConnectionEntrySchema, cp as ConnectionIdProperty, bX as ConnectionIdPropertySchema, bJ as ConnectionItem, cq as ConnectionProperty, bZ as ConnectionPropertySchema, fc as ConnectionsMap, fb as ConnectionsMapSchema, cG as ConnectionsProperty, cc as ConnectionsPropertySchema, a2 as ConnectionsResponse, aP as ControllerAction, aQ as ControllerAnswerFn, aR as ControllerChoice, aT as ControllerMethodDescription, aS as ControllerMethodSummary, aU as ControllerParameterDescription, aO as ControllerQuestion, bj as CoreCancelledSignal, ac as CoreDisposeError, bh as CoreErrorCode, bi as CoreSignal, eQ as Credentials, f7 as CredentialsFunction, f6 as CredentialsFunctionSchema, eS as CredentialsObject, f4 as CredentialsObjectSchema, f8 as CredentialsSchema, fl as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fu as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dX as DEFAULT_CONFIG_PATH, fv as DEFAULT_MAX_APPROVAL_RETRIES, fk as DEFAULT_PAGE_SIZE, bG as DEPRECATION_NOTICE_EVENT, cw as DebugProperty, c2 as DebugPropertySchema, bH as DeprecationNoticePayload, w as DrainTriggerInboxCallback, x as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aH as DynamicListResolver, aL as DynamicMember, aG as DynamicResolver, aI as DynamicSearchResolver, fL as EVENT_EMISSION_ID, fS as EnhancedErrorEventData, cN as ErrorOptions, fQ as EventContext, fJ as EventEmissionContext, fK as EventEmitter, fP as EventTransport, dp as FetchPluginProvides, U as Field, cD as FieldsProperty, c9 as FieldsPropertySchema, aJ as FieldsResolver, J as FindFirstAuthenticationPluginProvides, K as FindUniqueAuthenticationPluginProvides, ay as FormattedItem, aA as Formatter, bb as FunctionDeprecation, ba as FunctionRegistryEntry, I as GetAuthenticationPluginProvides, bM as InfoFieldItem, bL as InputFieldItem, co as InputFieldProperty, bW as InputFieldPropertySchema, cs as InputsProperty, b_ as InputsPropertySchema, bF as JsonSseMessage, cM as LeaseLimitProperty, ci as LeaseLimitPropertySchema, cK as LeaseProperty, cg as LeasePropertySchema, cL as LeaseSecondsProperty, ch as LeaseSecondsPropertySchema, y as LeasedTriggerMessageItem, ct as LimitProperty, b$ as LimitPropertySchema, dw as ListActionInputFieldsPluginProvides, du as ListActionsPluginProvides, ds as ListAppsPluginProvides, H as ListAuthenticationsPluginProvides, dA as ListConnectionsPluginProvides, eP as LoadingEvent, dS as MANIFEST_ID, fo as MAX_CONCURRENCY_LIMIT, fj as MAX_PAGE_LIMIT, dY as ManifestEntry, dO as ManifestPluginOptions, f_ as MethodCalledEvent, fT as MethodCalledEventData, bp as MethodOverridePlugin, aK as ModelResolver, Q as Need, $ as NeedsRequest, a0 as NeedsResponse, cu as OffsetProperty, c0 as OffsetPropertySchema, aB as OutputFormatter, cv as OutputProperty, c1 as OutputPropertySchema, bQ as PaginatedSdkFunction, cx as ParamsProperty, c3 as ParamsPropertySchema, eU as PkceCredentialsObject, f3 as PkceCredentialsObjectSchema, bn as Plugin, p as PluginMeta, bo as PluginProvides, aM as PluginSurface, bA as PollOptions, a5 as PositionalMetadata, e4 as RESOLVE_CREDENTIALS_ID, d0 as RateLimitInfo, cB as RecordProperty, c7 as RecordPropertySchema, cC as RecordsProperty, c8 as RecordsPropertySchema, b6 as RelayFetchSchema, b5 as RelayRequestSchema, bz as RequestOptions, ey as ResolveAuthTokenOptions, fd as ResolveConnection, e0 as ResolveCredentialsFn, eZ as ResolveCredentialsOptions, bw as ResolvedAppLocator, eA as ResolvedAuth, eR as ResolvedCredentials, f5 as ResolvedCredentialsSchema, aC as Resolver, aE as ResolverMetadata, bN as RootFieldItem, dM as RunActionPluginProvides, aw as SDK_OPTIONS_ID, eM as SdkEvent, bP as SdkPage, bE as SseMessage, aF as StaticResolver, cA as TableProperty, c6 as TablePropertySchema, cF as TablesProperty, cb as TablesPropertySchema, cI as TriggerInboxKeyProperty, ce as TriggerInboxKeyPropertySchema, cJ as TriggerInboxNameProperty, cf as TriggerInboxNamePropertySchema, cH as TriggerInboxProperty, cd as TriggerInboxPropertySchema, z as TriggerMessageStatus, dV as UpdateManifestEntryOptions, dW as UpdateManifestEntryResult, a3 as UserProfile, bO as UserProfileItem, r as WatchTriggerInboxSchema, fh as ZAPIER_BASE_URL, fq as ZAPIER_MAX_CONCURRENT_REQUESTS, fm as ZAPIER_MAX_NETWORK_RETRIES, fn as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, s as ZapierAbortDrainSignal, c_ as ZapierActionError, cT as ZapierApiError, cU as ZapierAppNotFoundError, d3 as ZapierApprovalError, cR as ZapierAuthenticationError, cY as ZapierBundleError, eJ as ZapierCacheEntry, eK as ZapierCacheSetOptions, cX as ZapierConfigurationError, c$ as ZapierConflictError, cO as ZapierError, cV as ZapierNotFoundError, d1 as ZapierRateLimitError, d4 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cW as ZapierResourceNotFoundError, dj as ZapierSignal, cZ as ZapierTimeoutError, cQ as ZapierUnknownError, cP as ZapierValidationError, e9 as actionKeyResolver, e8 as actionTypeResolver, aa as addPlugin, e3 as apiPlugin, e2 as apiPluginRef, e7 as appKeyResolver, dl as appsPlugin, b0 as batch, fU as buildApplicationLifecycleEvent, b2 as buildCapabilityMessage, fW as buildErrorEvent, fV as buildErrorEventWithContext, fY as buildMethodCalledEvent, fI as cleanupEventListeners, eB as clearTokenCache, ef as clientCredentialsNameResolver, eg as clientIdResolver, bt as composePlugins, eb as connectionIdGenericResolver, ea as connectionIdResolver, fg as connectionsPlugin, ff as connectionsPluginRef, fX as createBaseEvent, dC as createClientCredentialsPlugin, aN as createController, a9 as createCorePlugin, a6 as createFunction, eL as createMemoryCache, a7 as createPaginatedFunction, bs as createPaginatedPluginMethod, br as createPluginMethod, a8 as createPluginStack, ad as createSdk, fB as createTableFieldsPlugin, fy as createTablePlugin, fF as createTableRecordsPlugin, bB as createZapierApi, b7 as createZapierSdkWithoutRegistry, ap as declareMethod, ar as declareOptionalProperty, aj as declarePlugin, aq as declareProperty, ao as defineFormatter, ah as defineLegacyMerge, ak as defineMethod, al as defineMethodOverride, bq as definePlugin, am as defineProperty, an as defineResolver, dD as deleteClientCredentialsPlugin, fC as deleteTableFieldsPlugin, fz as deleteTablePlugin, fG as deleteTableRecordsPlugin, ab as disposeSdk, ek as durableRunIdResolver, fO as eventEmissionHookPlugin, fN as eventEmissionPlugin, fM as eventEmissionPluginRef, dq as fetchPlugin, dH as findFirstConnectionPlugin, dR as findManifestEntry, dI as findUniqueConnectionPlugin, dh as formatErrorMessage, ag as fromFunctionPlugin, g0 as generateEventId, dy as getActionInputFieldsSchemaPlugin, dF as getActionPlugin, bx as getAgent, dE as getAppPlugin, f0 as getBaseUrlFromCredentials, aX as getCallerContext, g6 as getCiPlatform, f1 as getClientIdFromCredentials, dG as getConnectionPlugin, ai as getContext, bf as getCoreErrorCause, be as getCoreErrorCode, g8 as getCpuTime, g1 as getCurrentTimestamp, g7 as getMemoryUsage, bC as getOrCreateApiClient, g3 as getOsInfo, g4 as getPlatformVersions, dQ as getPreferredManifestEntryKey, d_ as getProfilePlugin, au as getRegistryPlugin, g2 as getReleaseId, fx as getTablePlugin, fD as getTableRecordPlugin, eF as getTokenFromCliLogin, g9 as getTtyContext, fr as getZapierApprovalMode, ft as getZapierDefaultApprovalMode, fs as getZapierOpenAutoModeApprovalsInBrowser, fi as getZapierSdkService, eD as injectCliLogin, ee as inputFieldKeyResolver, ed as inputsAllOptionalResolver, ec as inputsResolver, eC as invalidateCachedToken, eI as invalidateCredentialsToken, g5 as isCi, eE as isCliLoginAvailable, eV as isClientCredentials, bl as isCoreCancelledSignal, bd as isCoreError, bk as isCoreSignal, eY as isCredentialsFunction, eX as isCredentialsObject, bD as isPermanentHttpError, eW as isPkceCredentials, a4 as isPositional, u as isZapierAbortDrainSignal, de as isZapierActionError, d8 as isZapierAppNotFoundError, dg as isZapierApprovalError, d7 as isZapierAuthenticationError, dd as isZapierBundleError, db as isZapierConflictError, d5 as isZapierError, d9 as isZapierNotFoundError, df as isZapierRateLimitError, v as isZapierReleaseTriggerMessageSignal, da as isZapierResourceNotFoundError, dk as isZapierSignal, dc as isZapierTimeoutError, d6 as isZapierValidationError, dx as listActionInputFieldChoicesPlugin, dv as listActionInputFieldsPlugin, dt as listActionsPlugin, dr as listAppsPlugin, dB as listClientCredentialsPlugin, dz as listConnectionsPlugin, fA as listTableFieldsPlugin, fE as listTableRecordsPlugin, fw as listTablesPlugin, b3 as logDeprecation, dU as manifestPlugin, dT as manifestPluginRef, at as omitExports, f$ as operationAnnotatorPlugin, fp as parseConcurrencyEnvVar, dP as readManifestFromFile, by as registryPlugin, dN as requestPlugin, b4 as resetDeprecationWarnings, eG as resolveAuth, eH as resolveAuthToken, e$ as resolveCredentials, e_ as resolveCredentialsFromEnv, e6 as resolveCredentialsPlugin, e5 as resolveCredentialsPluginRef, af as resolvePlugin, dL as runActionPlugin, aV as runInMethodScope, aY as runWithCallerContext, aW as runWithTelemetryContext, ax as sdkOptionsPluginRef, as as selectExports, er as tableFieldIdsResolver, et as tableFieldsResolver, ew as tableFiltersResolver, eh as tableIdResolver, es as tableNameResolver, ep as tableRecordIdResolver, eq as tableRecordIdsResolver, eu as tableRecordsResolver, ex as tableSortResolver, ev as tableUpdateRecordsResolver, a_ as toSnakeCase, a$ as toTitleCase, ei as triggerInboxResolver, eo as triggerMessagesResolver, fH as updateTableRecordsPlugin, em as workflowDraftIdResolver, ej as workflowIdResolver, en as workflowRunIdResolver, el as workflowVersionIdResolver, cS as zapierAdaptError, b8 as zapierCoreOptions, av as zapierSdkPlugin } from './index-BBBkZ80x.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';
@@ -3077,6 +3077,65 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
3077
3077
  }> | null;
3078
3078
  };
3079
3079
  }>, readonly []> & LeafSummary<"", "publishWorkflowVersion", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3080
+ } & {
3081
+ listWorkflowDrafts: MethodPlugin<"listWorkflowDrafts", {
3082
+ workflow: string;
3083
+ status?: "open" | "discarded" | undefined;
3084
+ slug?: string | undefined;
3085
+ pageSize?: number | undefined;
3086
+ cursor?: string | undefined;
3087
+ maxItems?: number | undefined;
3088
+ } & {
3089
+ cursor?: string;
3090
+ pageSize?: number;
3091
+ } & {
3092
+ maxItems?: number;
3093
+ }, PaginatedSdkResult<{
3094
+ id: string;
3095
+ workflow_id: string;
3096
+ slug: string;
3097
+ base_version_id: string | null;
3098
+ status: "open" | "discarded";
3099
+ last_edited_by_user_id: string | null;
3100
+ last_edited_at: string | null;
3101
+ created_at: string;
3102
+ }>, readonly []> & LeafSummary<"", "listWorkflowDrafts", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3103
+ } & {
3104
+ getWorkflowDraft: MethodPlugin<"getWorkflowDraft", {
3105
+ workflow: string;
3106
+ draft: string;
3107
+ }, Promise<{
3108
+ data: {
3109
+ id: string;
3110
+ workflow_id: string;
3111
+ slug: string;
3112
+ base_version_id: string | null;
3113
+ source_files: Record<string, string>;
3114
+ zapier_durable_version: string;
3115
+ dependencies: Record<string, string> | null;
3116
+ draft_revision: number;
3117
+ status: "open" | "discarded";
3118
+ created_by_user_id: string;
3119
+ last_edited_by_user_id: string | null;
3120
+ last_edited_at: string | null;
3121
+ discarded_at: string | null;
3122
+ created_at: string;
3123
+ updated_at: string;
3124
+ trigger: {
3125
+ selected_api: string;
3126
+ action: string;
3127
+ authentication_id?: string | null | undefined;
3128
+ params?: Record<string, unknown> | undefined;
3129
+ } | null;
3130
+ connections: Record<string, {
3131
+ connection_id: string | number;
3132
+ }> | null;
3133
+ app_versions: Record<string, {
3134
+ implementation_name: string;
3135
+ version?: string | undefined;
3136
+ }> | null;
3137
+ };
3138
+ }>, readonly []> & LeafSummary<"", "getWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3080
3139
  } & {
3081
3140
  listWorkflowRuns: MethodPlugin<"listWorkflowRuns", {
3082
3141
  workflow: string;
@@ -3299,7 +3358,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
3299
3358
  updated_at: string;
3300
3359
  };
3301
3360
  }>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3302
- }> & 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" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
3361
+ }> & 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" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
3303
3362
  declare function createZapierSdk(options?: ZapierSdkOptions): {
3304
3363
  getRegistry: (input?: {
3305
3364
  package?: string | undefined;
@@ -5020,6 +5079,63 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5020
5079
  }> | null;
5021
5080
  };
5022
5081
  }>;
5082
+ listWorkflowDrafts: (input: {
5083
+ workflow: string;
5084
+ status?: "open" | "discarded" | undefined;
5085
+ slug?: string | undefined;
5086
+ pageSize?: number | undefined;
5087
+ cursor?: string | undefined;
5088
+ maxItems?: number | undefined;
5089
+ } & {
5090
+ cursor?: string;
5091
+ pageSize?: number;
5092
+ } & {
5093
+ maxItems?: number;
5094
+ }) => PaginatedSdkResult<{
5095
+ id: string;
5096
+ workflow_id: string;
5097
+ slug: string;
5098
+ base_version_id: string | null;
5099
+ status: "open" | "discarded";
5100
+ last_edited_by_user_id: string | null;
5101
+ last_edited_at: string | null;
5102
+ created_at: string;
5103
+ }>;
5104
+ getWorkflowDraft: (input: {
5105
+ workflow: string;
5106
+ draft: string;
5107
+ }) => Promise<{
5108
+ data: {
5109
+ id: string;
5110
+ workflow_id: string;
5111
+ slug: string;
5112
+ base_version_id: string | null;
5113
+ source_files: Record<string, string>;
5114
+ zapier_durable_version: string;
5115
+ dependencies: Record<string, string> | null;
5116
+ draft_revision: number;
5117
+ status: "open" | "discarded";
5118
+ created_by_user_id: string;
5119
+ last_edited_by_user_id: string | null;
5120
+ last_edited_at: string | null;
5121
+ discarded_at: string | null;
5122
+ created_at: string;
5123
+ updated_at: string;
5124
+ trigger: {
5125
+ selected_api: string;
5126
+ action: string;
5127
+ authentication_id?: string | null | undefined;
5128
+ params?: Record<string, unknown> | undefined;
5129
+ } | null;
5130
+ connections: Record<string, {
5131
+ connection_id: string | number;
5132
+ }> | null;
5133
+ app_versions: Record<string, {
5134
+ implementation_name: string;
5135
+ version?: string | undefined;
5136
+ }> | null;
5137
+ };
5138
+ }>;
5023
5139
  listWorkflowRuns: (input: {
5024
5140
  workflow: string;
5025
5141
  pageSize?: number | undefined;
@@ -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 ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-DeefnmJr.js';
2
- export { e1 as API_ID, N as Action, dZ as ActionEntry, dm as ActionExecutionOptions, X as ActionExecutionResult, Y as ActionField, _ as ActionFieldChoice, bK as ActionItem, cm as ActionKeyProperty, bU as ActionKeyPropertySchema, cn as ActionProperty, bV as ActionPropertySchema, bu as ActionResolverItem, cz as ActionTimeoutMillisecondsProperty, c5 as ActionTimeoutMillisecondsPropertySchema, cy as ActionTimeoutSecondsProperty, c4 as ActionTimeoutSecondsPropertySchema, bv as ActionTypeItem, cl as ActionTypeProperty, bT as ActionTypePropertySchema, di as ApiError, eN as ApiEvent, d$ as ApiPluginOptions, O as App, dn as AppFactoryInput, bI as AppItem, cj as AppKeyProperty, bR as AppKeyPropertySchema, ck as AppProperty, bS as AppPropertySchema, fQ as ApplicationLifecycleEventData, d2 as ApprovalStatus, cE as AppsProperty, ca as AppsPropertySchema, aD as ArrayResolver, eM as AuthEvent, ey as AuthMechanism, cr as AuthenticationIdProperty, bY as AuthenticationIdPropertySchema, fY as BaseEvent, bc as BaseSdkOptionsSchema, b1 as BatchOptions, az as BoundFormatter, fd as CONNECTIONS_ID, ae as CONTEXT, dK as CONTEXT_CACHE_MAX_SIZE, dJ as CONTEXT_CACHE_TTL_MILLISECONDS, bg as CORE_ERROR_SYMBOL, b9 as CORE_OPTIONS_ID, bm as CORE_SIGNAL_SYMBOL, aZ as CallerContext, V as Choice, eS as ClientCredentialsObject, f1 as ClientCredentialsObjectSchema, a1 as Connection, f9 as ConnectionEntry, f8 as ConnectionEntrySchema, cp as ConnectionIdProperty, bX as ConnectionIdPropertySchema, bJ as ConnectionItem, cq as ConnectionProperty, bZ as ConnectionPropertySchema, fb as ConnectionsMap, fa as ConnectionsMapSchema, cG as ConnectionsProperty, cc as ConnectionsPropertySchema, a2 as ConnectionsResponse, aP as ControllerAction, aQ as ControllerAnswerFn, aR as ControllerChoice, aT as ControllerMethodDescription, aS as ControllerMethodSummary, aU as ControllerParameterDescription, aO as ControllerQuestion, bj as CoreCancelledSignal, ac as CoreDisposeError, bh as CoreErrorCode, bi as CoreSignal, eP as Credentials, f6 as CredentialsFunction, f5 as CredentialsFunctionSchema, eR as CredentialsObject, f3 as CredentialsObjectSchema, f7 as CredentialsSchema, fk as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ft as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dX as DEFAULT_CONFIG_PATH, fu as DEFAULT_MAX_APPROVAL_RETRIES, fj as DEFAULT_PAGE_SIZE, bG as DEPRECATION_NOTICE_EVENT, cw as DebugProperty, c2 as DebugPropertySchema, bH as DeprecationNoticePayload, w as DrainTriggerInboxCallback, x as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aH as DynamicListResolver, aL as DynamicMember, aG as DynamicResolver, aI as DynamicSearchResolver, fK as EVENT_EMISSION_ID, fR as EnhancedErrorEventData, cN as ErrorOptions, fP as EventContext, fI as EventEmissionContext, fJ as EventEmitter, fO as EventTransport, dp as FetchPluginProvides, U as Field, cD as FieldsProperty, c9 as FieldsPropertySchema, aJ as FieldsResolver, J as FindFirstAuthenticationPluginProvides, K as FindUniqueAuthenticationPluginProvides, ay as FormattedItem, aA as Formatter, bb as FunctionDeprecation, ba as FunctionRegistryEntry, I as GetAuthenticationPluginProvides, bM as InfoFieldItem, bL as InputFieldItem, co as InputFieldProperty, bW as InputFieldPropertySchema, cs as InputsProperty, b_ as InputsPropertySchema, bF as JsonSseMessage, cM as LeaseLimitProperty, ci as LeaseLimitPropertySchema, cK as LeaseProperty, cg as LeasePropertySchema, cL as LeaseSecondsProperty, ch as LeaseSecondsPropertySchema, y as LeasedTriggerMessageItem, ct as LimitProperty, b$ as LimitPropertySchema, dw as ListActionInputFieldsPluginProvides, du as ListActionsPluginProvides, ds as ListAppsPluginProvides, H as ListAuthenticationsPluginProvides, dA as ListConnectionsPluginProvides, eO as LoadingEvent, dS as MANIFEST_ID, fn as MAX_CONCURRENCY_LIMIT, fi as MAX_PAGE_LIMIT, dY as ManifestEntry, dO as ManifestPluginOptions, fZ as MethodCalledEvent, fS as MethodCalledEventData, bp as MethodOverridePlugin, aK as ModelResolver, Q as Need, $ as NeedsRequest, a0 as NeedsResponse, cu as OffsetProperty, c0 as OffsetPropertySchema, aB as OutputFormatter, cv as OutputProperty, c1 as OutputPropertySchema, bQ as PaginatedSdkFunction, cx as ParamsProperty, c3 as ParamsPropertySchema, eT as PkceCredentialsObject, f2 as PkceCredentialsObjectSchema, bn as Plugin, p as PluginMeta, bo as PluginProvides, aM as PluginSurface, bA as PollOptions, a5 as PositionalMetadata, e4 as RESOLVE_CREDENTIALS_ID, d0 as RateLimitInfo, cB as RecordProperty, c7 as RecordPropertySchema, cC as RecordsProperty, c8 as RecordsPropertySchema, b6 as RelayFetchSchema, b5 as RelayRequestSchema, bz as RequestOptions, ex as ResolveAuthTokenOptions, fc as ResolveConnection, e0 as ResolveCredentialsFn, eY as ResolveCredentialsOptions, bw as ResolvedAppLocator, ez as ResolvedAuth, eQ as ResolvedCredentials, f4 as ResolvedCredentialsSchema, aC as Resolver, aE as ResolverMetadata, bN as RootFieldItem, dM as RunActionPluginProvides, aw as SDK_OPTIONS_ID, eL as SdkEvent, bP as SdkPage, bE as SseMessage, aF as StaticResolver, cA as TableProperty, c6 as TablePropertySchema, cF as TablesProperty, cb as TablesPropertySchema, cI as TriggerInboxKeyProperty, ce as TriggerInboxKeyPropertySchema, cJ as TriggerInboxNameProperty, cf as TriggerInboxNamePropertySchema, cH as TriggerInboxProperty, cd as TriggerInboxPropertySchema, z as TriggerMessageStatus, dV as UpdateManifestEntryOptions, dW as UpdateManifestEntryResult, a3 as UserProfile, bO as UserProfileItem, r as WatchTriggerInboxSchema, fg as ZAPIER_BASE_URL, fp as ZAPIER_MAX_CONCURRENT_REQUESTS, fl as ZAPIER_MAX_NETWORK_RETRIES, fm as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, s as ZapierAbortDrainSignal, c_ as ZapierActionError, cT as ZapierApiError, cU as ZapierAppNotFoundError, d3 as ZapierApprovalError, cR as ZapierAuthenticationError, cY as ZapierBundleError, eI as ZapierCacheEntry, eJ as ZapierCacheSetOptions, cX as ZapierConfigurationError, c$ as ZapierConflictError, cO as ZapierError, cV as ZapierNotFoundError, d1 as ZapierRateLimitError, d4 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cW as ZapierResourceNotFoundError, dj as ZapierSignal, cZ as ZapierTimeoutError, cQ as ZapierUnknownError, cP as ZapierValidationError, e9 as actionKeyResolver, e8 as actionTypeResolver, aa as addPlugin, e3 as apiPlugin, e2 as apiPluginRef, e7 as appKeyResolver, dl as appsPlugin, b0 as batch, fT as buildApplicationLifecycleEvent, b2 as buildCapabilityMessage, fV as buildErrorEvent, fU as buildErrorEventWithContext, fX as buildMethodCalledEvent, fH as cleanupEventListeners, eA as clearTokenCache, ef as clientCredentialsNameResolver, eg as clientIdResolver, bt as composePlugins, eb as connectionIdGenericResolver, ea as connectionIdResolver, ff as connectionsPlugin, fe as connectionsPluginRef, fW as createBaseEvent, dC as createClientCredentialsPlugin, aN as createController, a9 as createCorePlugin, a6 as createFunction, eK as createMemoryCache, a7 as createPaginatedFunction, bs as createPaginatedPluginMethod, br as createPluginMethod, a8 as createPluginStack, ad as createSdk, fA as createTableFieldsPlugin, fx as createTablePlugin, fE as createTableRecordsPlugin, bB as createZapierApi, b7 as createZapierSdkWithoutRegistry, ap as declareMethod, ar as declareOptionalProperty, aj as declarePlugin, aq as declareProperty, ao as defineFormatter, ah as defineLegacyMerge, ak as defineMethod, al as defineMethodOverride, bq as definePlugin, am as defineProperty, an as defineResolver, dD as deleteClientCredentialsPlugin, fB as deleteTableFieldsPlugin, fy as deleteTablePlugin, fF as deleteTableRecordsPlugin, ab as disposeSdk, ek as durableRunIdResolver, fN as eventEmissionHookPlugin, fM as eventEmissionPlugin, fL as eventEmissionPluginRef, dq as fetchPlugin, dH as findFirstConnectionPlugin, dR as findManifestEntry, dI as findUniqueConnectionPlugin, dh as formatErrorMessage, ag as fromFunctionPlugin, f$ as generateEventId, dy as getActionInputFieldsSchemaPlugin, dF as getActionPlugin, bx as getAgent, dE as getAppPlugin, e$ as getBaseUrlFromCredentials, aX as getCallerContext, g5 as getCiPlatform, f0 as getClientIdFromCredentials, dG as getConnectionPlugin, ai as getContext, bf as getCoreErrorCause, be as getCoreErrorCode, g7 as getCpuTime, g0 as getCurrentTimestamp, g6 as getMemoryUsage, bC as getOrCreateApiClient, g2 as getOsInfo, g3 as getPlatformVersions, dQ as getPreferredManifestEntryKey, d_ as getProfilePlugin, au as getRegistryPlugin, g1 as getReleaseId, fw as getTablePlugin, fC as getTableRecordPlugin, eE as getTokenFromCliLogin, g8 as getTtyContext, fq as getZapierApprovalMode, fs as getZapierDefaultApprovalMode, fr as getZapierOpenAutoModeApprovalsInBrowser, fh as getZapierSdkService, eC as injectCliLogin, ee as inputFieldKeyResolver, ed as inputsAllOptionalResolver, ec as inputsResolver, eB as invalidateCachedToken, eH as invalidateCredentialsToken, g4 as isCi, eD as isCliLoginAvailable, eU as isClientCredentials, bl as isCoreCancelledSignal, bd as isCoreError, bk as isCoreSignal, eX as isCredentialsFunction, eW as isCredentialsObject, bD as isPermanentHttpError, eV as isPkceCredentials, a4 as isPositional, u as isZapierAbortDrainSignal, de as isZapierActionError, d8 as isZapierAppNotFoundError, dg as isZapierApprovalError, d7 as isZapierAuthenticationError, dd as isZapierBundleError, db as isZapierConflictError, d5 as isZapierError, d9 as isZapierNotFoundError, df as isZapierRateLimitError, v as isZapierReleaseTriggerMessageSignal, da as isZapierResourceNotFoundError, dk as isZapierSignal, dc as isZapierTimeoutError, d6 as isZapierValidationError, dx as listActionInputFieldChoicesPlugin, dv as listActionInputFieldsPlugin, dt as listActionsPlugin, dr as listAppsPlugin, dB as listClientCredentialsPlugin, dz as listConnectionsPlugin, fz as listTableFieldsPlugin, fD as listTableRecordsPlugin, fv as listTablesPlugin, b3 as logDeprecation, dU as manifestPlugin, dT as manifestPluginRef, at as omitExports, f_ as operationAnnotatorPlugin, fo as parseConcurrencyEnvVar, dP as readManifestFromFile, by as registryPlugin, dN as requestPlugin, b4 as resetDeprecationWarnings, eF as resolveAuth, eG as resolveAuthToken, e_ as resolveCredentials, eZ as resolveCredentialsFromEnv, e6 as resolveCredentialsPlugin, e5 as resolveCredentialsPluginRef, af as resolvePlugin, dL as runActionPlugin, aV as runInMethodScope, aY as runWithCallerContext, aW as runWithTelemetryContext, ax as sdkOptionsPluginRef, as as selectExports, eq as tableFieldIdsResolver, es as tableFieldsResolver, ev as tableFiltersResolver, eh as tableIdResolver, er as tableNameResolver, eo as tableRecordIdResolver, ep as tableRecordIdsResolver, et as tableRecordsResolver, ew as tableSortResolver, eu as tableUpdateRecordsResolver, a_ as toSnakeCase, a$ as toTitleCase, ei as triggerInboxResolver, en as triggerMessagesResolver, fG as updateTableRecordsPlugin, ej as workflowIdResolver, em as workflowRunIdResolver, el as workflowVersionIdResolver, cS as zapierAdaptError, b8 as zapierCoreOptions, av as zapierSdkPlugin } from './index-DeefnmJr.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 ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-BBBkZ80x.js';
2
+ export { e1 as API_ID, N as Action, dZ as ActionEntry, dm as ActionExecutionOptions, X as ActionExecutionResult, Y as ActionField, _ as ActionFieldChoice, bK as ActionItem, cm as ActionKeyProperty, bU as ActionKeyPropertySchema, cn as ActionProperty, bV as ActionPropertySchema, bu as ActionResolverItem, cz as ActionTimeoutMillisecondsProperty, c5 as ActionTimeoutMillisecondsPropertySchema, cy as ActionTimeoutSecondsProperty, c4 as ActionTimeoutSecondsPropertySchema, bv as ActionTypeItem, cl as ActionTypeProperty, bT as ActionTypePropertySchema, di as ApiError, eO as ApiEvent, d$ as ApiPluginOptions, O as App, dn as AppFactoryInput, bI as AppItem, cj as AppKeyProperty, bR as AppKeyPropertySchema, ck as AppProperty, bS as AppPropertySchema, fR as ApplicationLifecycleEventData, d2 as ApprovalStatus, cE as AppsProperty, ca as AppsPropertySchema, aD as ArrayResolver, eN as AuthEvent, ez as AuthMechanism, cr as AuthenticationIdProperty, bY as AuthenticationIdPropertySchema, fZ as BaseEvent, bc as BaseSdkOptionsSchema, b1 as BatchOptions, az as BoundFormatter, fe as CONNECTIONS_ID, ae as CONTEXT, dK as CONTEXT_CACHE_MAX_SIZE, dJ as CONTEXT_CACHE_TTL_MILLISECONDS, bg as CORE_ERROR_SYMBOL, b9 as CORE_OPTIONS_ID, bm as CORE_SIGNAL_SYMBOL, aZ as CallerContext, V as Choice, eT as ClientCredentialsObject, f2 as ClientCredentialsObjectSchema, a1 as Connection, fa as ConnectionEntry, f9 as ConnectionEntrySchema, cp as ConnectionIdProperty, bX as ConnectionIdPropertySchema, bJ as ConnectionItem, cq as ConnectionProperty, bZ as ConnectionPropertySchema, fc as ConnectionsMap, fb as ConnectionsMapSchema, cG as ConnectionsProperty, cc as ConnectionsPropertySchema, a2 as ConnectionsResponse, aP as ControllerAction, aQ as ControllerAnswerFn, aR as ControllerChoice, aT as ControllerMethodDescription, aS as ControllerMethodSummary, aU as ControllerParameterDescription, aO as ControllerQuestion, bj as CoreCancelledSignal, ac as CoreDisposeError, bh as CoreErrorCode, bi as CoreSignal, eQ as Credentials, f7 as CredentialsFunction, f6 as CredentialsFunctionSchema, eS as CredentialsObject, f4 as CredentialsObjectSchema, f8 as CredentialsSchema, fl as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, fu as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, dX as DEFAULT_CONFIG_PATH, fv as DEFAULT_MAX_APPROVAL_RETRIES, fk as DEFAULT_PAGE_SIZE, bG as DEPRECATION_NOTICE_EVENT, cw as DebugProperty, c2 as DebugPropertySchema, bH as DeprecationNoticePayload, w as DrainTriggerInboxCallback, x as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aH as DynamicListResolver, aL as DynamicMember, aG as DynamicResolver, aI as DynamicSearchResolver, fL as EVENT_EMISSION_ID, fS as EnhancedErrorEventData, cN as ErrorOptions, fQ as EventContext, fJ as EventEmissionContext, fK as EventEmitter, fP as EventTransport, dp as FetchPluginProvides, U as Field, cD as FieldsProperty, c9 as FieldsPropertySchema, aJ as FieldsResolver, J as FindFirstAuthenticationPluginProvides, K as FindUniqueAuthenticationPluginProvides, ay as FormattedItem, aA as Formatter, bb as FunctionDeprecation, ba as FunctionRegistryEntry, I as GetAuthenticationPluginProvides, bM as InfoFieldItem, bL as InputFieldItem, co as InputFieldProperty, bW as InputFieldPropertySchema, cs as InputsProperty, b_ as InputsPropertySchema, bF as JsonSseMessage, cM as LeaseLimitProperty, ci as LeaseLimitPropertySchema, cK as LeaseProperty, cg as LeasePropertySchema, cL as LeaseSecondsProperty, ch as LeaseSecondsPropertySchema, y as LeasedTriggerMessageItem, ct as LimitProperty, b$ as LimitPropertySchema, dw as ListActionInputFieldsPluginProvides, du as ListActionsPluginProvides, ds as ListAppsPluginProvides, H as ListAuthenticationsPluginProvides, dA as ListConnectionsPluginProvides, eP as LoadingEvent, dS as MANIFEST_ID, fo as MAX_CONCURRENCY_LIMIT, fj as MAX_PAGE_LIMIT, dY as ManifestEntry, dO as ManifestPluginOptions, f_ as MethodCalledEvent, fT as MethodCalledEventData, bp as MethodOverridePlugin, aK as ModelResolver, Q as Need, $ as NeedsRequest, a0 as NeedsResponse, cu as OffsetProperty, c0 as OffsetPropertySchema, aB as OutputFormatter, cv as OutputProperty, c1 as OutputPropertySchema, bQ as PaginatedSdkFunction, cx as ParamsProperty, c3 as ParamsPropertySchema, eU as PkceCredentialsObject, f3 as PkceCredentialsObjectSchema, bn as Plugin, p as PluginMeta, bo as PluginProvides, aM as PluginSurface, bA as PollOptions, a5 as PositionalMetadata, e4 as RESOLVE_CREDENTIALS_ID, d0 as RateLimitInfo, cB as RecordProperty, c7 as RecordPropertySchema, cC as RecordsProperty, c8 as RecordsPropertySchema, b6 as RelayFetchSchema, b5 as RelayRequestSchema, bz as RequestOptions, ey as ResolveAuthTokenOptions, fd as ResolveConnection, e0 as ResolveCredentialsFn, eZ as ResolveCredentialsOptions, bw as ResolvedAppLocator, eA as ResolvedAuth, eR as ResolvedCredentials, f5 as ResolvedCredentialsSchema, aC as Resolver, aE as ResolverMetadata, bN as RootFieldItem, dM as RunActionPluginProvides, aw as SDK_OPTIONS_ID, eM as SdkEvent, bP as SdkPage, bE as SseMessage, aF as StaticResolver, cA as TableProperty, c6 as TablePropertySchema, cF as TablesProperty, cb as TablesPropertySchema, cI as TriggerInboxKeyProperty, ce as TriggerInboxKeyPropertySchema, cJ as TriggerInboxNameProperty, cf as TriggerInboxNamePropertySchema, cH as TriggerInboxProperty, cd as TriggerInboxPropertySchema, z as TriggerMessageStatus, dV as UpdateManifestEntryOptions, dW as UpdateManifestEntryResult, a3 as UserProfile, bO as UserProfileItem, r as WatchTriggerInboxSchema, fh as ZAPIER_BASE_URL, fq as ZAPIER_MAX_CONCURRENT_REQUESTS, fm as ZAPIER_MAX_NETWORK_RETRIES, fn as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, s as ZapierAbortDrainSignal, c_ as ZapierActionError, cT as ZapierApiError, cU as ZapierAppNotFoundError, d3 as ZapierApprovalError, cR as ZapierAuthenticationError, cY as ZapierBundleError, eJ as ZapierCacheEntry, eK as ZapierCacheSetOptions, cX as ZapierConfigurationError, c$ as ZapierConflictError, cO as ZapierError, cV as ZapierNotFoundError, d1 as ZapierRateLimitError, d4 as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cW as ZapierResourceNotFoundError, dj as ZapierSignal, cZ as ZapierTimeoutError, cQ as ZapierUnknownError, cP as ZapierValidationError, e9 as actionKeyResolver, e8 as actionTypeResolver, aa as addPlugin, e3 as apiPlugin, e2 as apiPluginRef, e7 as appKeyResolver, dl as appsPlugin, b0 as batch, fU as buildApplicationLifecycleEvent, b2 as buildCapabilityMessage, fW as buildErrorEvent, fV as buildErrorEventWithContext, fY as buildMethodCalledEvent, fI as cleanupEventListeners, eB as clearTokenCache, ef as clientCredentialsNameResolver, eg as clientIdResolver, bt as composePlugins, eb as connectionIdGenericResolver, ea as connectionIdResolver, fg as connectionsPlugin, ff as connectionsPluginRef, fX as createBaseEvent, dC as createClientCredentialsPlugin, aN as createController, a9 as createCorePlugin, a6 as createFunction, eL as createMemoryCache, a7 as createPaginatedFunction, bs as createPaginatedPluginMethod, br as createPluginMethod, a8 as createPluginStack, ad as createSdk, fB as createTableFieldsPlugin, fy as createTablePlugin, fF as createTableRecordsPlugin, bB as createZapierApi, b7 as createZapierSdkWithoutRegistry, ap as declareMethod, ar as declareOptionalProperty, aj as declarePlugin, aq as declareProperty, ao as defineFormatter, ah as defineLegacyMerge, ak as defineMethod, al as defineMethodOverride, bq as definePlugin, am as defineProperty, an as defineResolver, dD as deleteClientCredentialsPlugin, fC as deleteTableFieldsPlugin, fz as deleteTablePlugin, fG as deleteTableRecordsPlugin, ab as disposeSdk, ek as durableRunIdResolver, fO as eventEmissionHookPlugin, fN as eventEmissionPlugin, fM as eventEmissionPluginRef, dq as fetchPlugin, dH as findFirstConnectionPlugin, dR as findManifestEntry, dI as findUniqueConnectionPlugin, dh as formatErrorMessage, ag as fromFunctionPlugin, g0 as generateEventId, dy as getActionInputFieldsSchemaPlugin, dF as getActionPlugin, bx as getAgent, dE as getAppPlugin, f0 as getBaseUrlFromCredentials, aX as getCallerContext, g6 as getCiPlatform, f1 as getClientIdFromCredentials, dG as getConnectionPlugin, ai as getContext, bf as getCoreErrorCause, be as getCoreErrorCode, g8 as getCpuTime, g1 as getCurrentTimestamp, g7 as getMemoryUsage, bC as getOrCreateApiClient, g3 as getOsInfo, g4 as getPlatformVersions, dQ as getPreferredManifestEntryKey, d_ as getProfilePlugin, au as getRegistryPlugin, g2 as getReleaseId, fx as getTablePlugin, fD as getTableRecordPlugin, eF as getTokenFromCliLogin, g9 as getTtyContext, fr as getZapierApprovalMode, ft as getZapierDefaultApprovalMode, fs as getZapierOpenAutoModeApprovalsInBrowser, fi as getZapierSdkService, eD as injectCliLogin, ee as inputFieldKeyResolver, ed as inputsAllOptionalResolver, ec as inputsResolver, eC as invalidateCachedToken, eI as invalidateCredentialsToken, g5 as isCi, eE as isCliLoginAvailable, eV as isClientCredentials, bl as isCoreCancelledSignal, bd as isCoreError, bk as isCoreSignal, eY as isCredentialsFunction, eX as isCredentialsObject, bD as isPermanentHttpError, eW as isPkceCredentials, a4 as isPositional, u as isZapierAbortDrainSignal, de as isZapierActionError, d8 as isZapierAppNotFoundError, dg as isZapierApprovalError, d7 as isZapierAuthenticationError, dd as isZapierBundleError, db as isZapierConflictError, d5 as isZapierError, d9 as isZapierNotFoundError, df as isZapierRateLimitError, v as isZapierReleaseTriggerMessageSignal, da as isZapierResourceNotFoundError, dk as isZapierSignal, dc as isZapierTimeoutError, d6 as isZapierValidationError, dx as listActionInputFieldChoicesPlugin, dv as listActionInputFieldsPlugin, dt as listActionsPlugin, dr as listAppsPlugin, dB as listClientCredentialsPlugin, dz as listConnectionsPlugin, fA as listTableFieldsPlugin, fE as listTableRecordsPlugin, fw as listTablesPlugin, b3 as logDeprecation, dU as manifestPlugin, dT as manifestPluginRef, at as omitExports, f$ as operationAnnotatorPlugin, fp as parseConcurrencyEnvVar, dP as readManifestFromFile, by as registryPlugin, dN as requestPlugin, b4 as resetDeprecationWarnings, eG as resolveAuth, eH as resolveAuthToken, e$ as resolveCredentials, e_ as resolveCredentialsFromEnv, e6 as resolveCredentialsPlugin, e5 as resolveCredentialsPluginRef, af as resolvePlugin, dL as runActionPlugin, aV as runInMethodScope, aY as runWithCallerContext, aW as runWithTelemetryContext, ax as sdkOptionsPluginRef, as as selectExports, er as tableFieldIdsResolver, et as tableFieldsResolver, ew as tableFiltersResolver, eh as tableIdResolver, es as tableNameResolver, ep as tableRecordIdResolver, eq as tableRecordIdsResolver, eu as tableRecordsResolver, ex as tableSortResolver, ev as tableUpdateRecordsResolver, a_ as toSnakeCase, a$ as toTitleCase, ei as triggerInboxResolver, eo as triggerMessagesResolver, fH as updateTableRecordsPlugin, em as workflowDraftIdResolver, ej as workflowIdResolver, en as workflowRunIdResolver, el as workflowVersionIdResolver, cS as zapierAdaptError, b8 as zapierCoreOptions, av as zapierSdkPlugin } from './index-BBBkZ80x.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';
@@ -3077,6 +3077,65 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
3077
3077
  }> | null;
3078
3078
  };
3079
3079
  }>, readonly []> & LeafSummary<"", "publishWorkflowVersion", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3080
+ } & {
3081
+ listWorkflowDrafts: MethodPlugin<"listWorkflowDrafts", {
3082
+ workflow: string;
3083
+ status?: "open" | "discarded" | undefined;
3084
+ slug?: string | undefined;
3085
+ pageSize?: number | undefined;
3086
+ cursor?: string | undefined;
3087
+ maxItems?: number | undefined;
3088
+ } & {
3089
+ cursor?: string;
3090
+ pageSize?: number;
3091
+ } & {
3092
+ maxItems?: number;
3093
+ }, PaginatedSdkResult<{
3094
+ id: string;
3095
+ workflow_id: string;
3096
+ slug: string;
3097
+ base_version_id: string | null;
3098
+ status: "open" | "discarded";
3099
+ last_edited_by_user_id: string | null;
3100
+ last_edited_at: string | null;
3101
+ created_at: string;
3102
+ }>, readonly []> & LeafSummary<"", "listWorkflowDrafts", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3103
+ } & {
3104
+ getWorkflowDraft: MethodPlugin<"getWorkflowDraft", {
3105
+ workflow: string;
3106
+ draft: string;
3107
+ }, Promise<{
3108
+ data: {
3109
+ id: string;
3110
+ workflow_id: string;
3111
+ slug: string;
3112
+ base_version_id: string | null;
3113
+ source_files: Record<string, string>;
3114
+ zapier_durable_version: string;
3115
+ dependencies: Record<string, string> | null;
3116
+ draft_revision: number;
3117
+ status: "open" | "discarded";
3118
+ created_by_user_id: string;
3119
+ last_edited_by_user_id: string | null;
3120
+ last_edited_at: string | null;
3121
+ discarded_at: string | null;
3122
+ created_at: string;
3123
+ updated_at: string;
3124
+ trigger: {
3125
+ selected_api: string;
3126
+ action: string;
3127
+ authentication_id?: string | null | undefined;
3128
+ params?: Record<string, unknown> | undefined;
3129
+ } | null;
3130
+ connections: Record<string, {
3131
+ connection_id: string | number;
3132
+ }> | null;
3133
+ app_versions: Record<string, {
3134
+ implementation_name: string;
3135
+ version?: string | undefined;
3136
+ }> | null;
3137
+ };
3138
+ }>, readonly []> & LeafSummary<"", "getWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3080
3139
  } & {
3081
3140
  listWorkflowRuns: MethodPlugin<"listWorkflowRuns", {
3082
3141
  workflow: string;
@@ -3299,7 +3358,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
3299
3358
  updated_at: string;
3300
3359
  };
3301
3360
  }>, readonly []> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never>]>;
3302
- }> & 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" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
3361
+ }> & 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" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "zapier/sdk" | "zapier/experimental-sdk">;
3303
3362
  declare function createZapierSdk(options?: ZapierSdkOptions): {
3304
3363
  getRegistry: (input?: {
3305
3364
  package?: string | undefined;
@@ -5020,6 +5079,63 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
5020
5079
  }> | null;
5021
5080
  };
5022
5081
  }>;
5082
+ listWorkflowDrafts: (input: {
5083
+ workflow: string;
5084
+ status?: "open" | "discarded" | undefined;
5085
+ slug?: string | undefined;
5086
+ pageSize?: number | undefined;
5087
+ cursor?: string | undefined;
5088
+ maxItems?: number | undefined;
5089
+ } & {
5090
+ cursor?: string;
5091
+ pageSize?: number;
5092
+ } & {
5093
+ maxItems?: number;
5094
+ }) => PaginatedSdkResult<{
5095
+ id: string;
5096
+ workflow_id: string;
5097
+ slug: string;
5098
+ base_version_id: string | null;
5099
+ status: "open" | "discarded";
5100
+ last_edited_by_user_id: string | null;
5101
+ last_edited_at: string | null;
5102
+ created_at: string;
5103
+ }>;
5104
+ getWorkflowDraft: (input: {
5105
+ workflow: string;
5106
+ draft: string;
5107
+ }) => Promise<{
5108
+ data: {
5109
+ id: string;
5110
+ workflow_id: string;
5111
+ slug: string;
5112
+ base_version_id: string | null;
5113
+ source_files: Record<string, string>;
5114
+ zapier_durable_version: string;
5115
+ dependencies: Record<string, string> | null;
5116
+ draft_revision: number;
5117
+ status: "open" | "discarded";
5118
+ created_by_user_id: string;
5119
+ last_edited_by_user_id: string | null;
5120
+ last_edited_at: string | null;
5121
+ discarded_at: string | null;
5122
+ created_at: string;
5123
+ updated_at: string;
5124
+ trigger: {
5125
+ selected_api: string;
5126
+ action: string;
5127
+ authentication_id?: string | null | undefined;
5128
+ params?: Record<string, unknown> | undefined;
5129
+ } | null;
5130
+ connections: Record<string, {
5131
+ connection_id: string | number;
5132
+ }> | null;
5133
+ app_versions: Record<string, {
5134
+ implementation_name: string;
5135
+ version?: string | undefined;
5136
+ }> | null;
5137
+ };
5138
+ }>;
5023
5139
  listWorkflowRuns: (input: {
5024
5140
  workflow: string;
5025
5141
  pageSize?: number | undefined;
@@ -1,5 +1,5 @@
1
- import { defineMethod, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, openEnum, durableRunIdResolver, defineResolver, workflowVersionIdResolver, workflowRunIdResolver, ZapierApiError, definePlugin, zapierSdkPlugin, ZapierValidationError, createSdk, zapierCoreOptions, CORE_OPTIONS_ID, SDK_OPTIONS_ID } from './chunk-BLFXMYSW.mjs';
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, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-BLFXMYSW.mjs';
1
+ import { defineMethod, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, openEnum, durableRunIdResolver, defineResolver, workflowVersionIdResolver, workflowDraftIdResolver, workflowRunIdResolver, ZapierApiError, definePlugin, zapierSdkPlugin, ZapierValidationError, createSdk, zapierCoreOptions, CORE_OPTIONS_ID, SDK_OPTIONS_ID } from './chunk-NOPKQ333.mjs';
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-NOPKQ333.mjs';
3
3
  import './chunk-Y6FXYEAI.mjs';
4
4
  import { z } from 'zod';
5
5
 
@@ -91,6 +91,7 @@ var AppVersionBindingSchema2 = z.object({
91
91
  implementation_name: z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
92
92
  version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
93
93
  }).describe("App-version binding: maps a single alias to an app version.");
94
+ var WorkflowDraftStatusSchema = z.enum(["open", "discarded"]).describe("Lifecycle status of a workflow draft.");
94
95
  var WorkflowVersionTriggerConfigSchema = z.object({
95
96
  selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
96
97
  action: z.string().describe("Trigger action key (e.g. 'new_row')"),
@@ -1096,6 +1097,145 @@ var getWorkflowVersionPlugin = defineMethod({
1096
1097
  return { data: GetWorkflowVersionResponseSchema.parse(raw) };
1097
1098
  }
1098
1099
  });
1100
+ var WorkflowDraftSummarySchema = z.object({
1101
+ id: z.string().describe("Workflow draft ID (UUID)"),
1102
+ workflow_id: z.string().describe("Parent workflow ID (UUID)"),
1103
+ slug: z.string().describe(
1104
+ "Human-friendly identifier for URL routing; unique among open drafts per workflow"
1105
+ ),
1106
+ base_version_id: z.string().nullable().describe(
1107
+ "Live version at draft creation or last publish rebase, or null before the workflow's first publish"
1108
+ ),
1109
+ status: WorkflowDraftStatusSchema,
1110
+ last_edited_by_user_id: z.string().nullable().describe("ID of the user who last saved this draft (or null)"),
1111
+ last_edited_at: z.string().nullable().describe("When the draft was last edited (ISO-8601, or null)"),
1112
+ created_at: z.string().describe("When the draft was created (ISO-8601)")
1113
+ });
1114
+ var ListWorkflowDraftsOptionsSchema = z.object({
1115
+ workflow: z.string().uuid().describe("Durable workflow ID"),
1116
+ status: WorkflowDraftStatusSchema.optional().describe(
1117
+ "Filter by draft status (server default: open)"
1118
+ ),
1119
+ slug: z.string().optional().describe("Filter by exact slug match; returns at most one draft"),
1120
+ pageSize: z.number().int().min(1).max(100).optional().describe("Number of drafts per page (max 100)"),
1121
+ cursor: z.string().optional().describe("Pagination cursor"),
1122
+ maxItems: z.number().int().min(1).optional().describe("Maximum total drafts to return across all pages")
1123
+ }).describe(
1124
+ "List drafts for a workflow, most recently edited first (open drafts by default)"
1125
+ );
1126
+ var ListWorkflowDraftsApiResponseSchema = z.object({
1127
+ results: z.array(WorkflowDraftSummarySchema),
1128
+ meta: z.object({
1129
+ limit: z.number(),
1130
+ cursor: z.string().nullable().optional(),
1131
+ next_cursor: z.string().nullable().optional()
1132
+ }),
1133
+ links: z.object({
1134
+ next: z.string().nullable().optional()
1135
+ }).optional()
1136
+ });
1137
+
1138
+ // src/plugins/codeSubstrate/listWorkflowDrafts/index.ts
1139
+ var listWorkflowDraftsPlugin = defineMethod({
1140
+ ...codeSubstrateDefaults,
1141
+ name: "listWorkflowDrafts",
1142
+ imports: [apiPluginRef],
1143
+ type: "list",
1144
+ itemType: "WorkflowDraft",
1145
+ inputSchema: ListWorkflowDraftsOptionsSchema,
1146
+ outputSchema: WorkflowDraftSummarySchema,
1147
+ // The handler already returns a clean `{ data, nextCursor }` page, so the
1148
+ // standard list output (no `adaptPage`) applies.
1149
+ output: { type: "list", defaultPageSize: DEFAULT_PAGE_SIZE },
1150
+ resolvers: { workflow: workflowIdResolver },
1151
+ run: async ({ imports, input }) => {
1152
+ const api = imports.api;
1153
+ const searchParams = {};
1154
+ if (input.status !== void 0) {
1155
+ searchParams.status = input.status;
1156
+ }
1157
+ if (input.slug !== void 0) {
1158
+ searchParams.slug = input.slug;
1159
+ }
1160
+ if (input.pageSize !== void 0) {
1161
+ searchParams.limit = input.pageSize.toString();
1162
+ }
1163
+ if (input.cursor) {
1164
+ searchParams.cursor = input.cursor;
1165
+ }
1166
+ const raw = await api.get(
1167
+ `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts`,
1168
+ {
1169
+ searchParams,
1170
+ authRequired: true,
1171
+ resource: { type: "workflow", id: input.workflow }
1172
+ }
1173
+ );
1174
+ const response = ListWorkflowDraftsApiResponseSchema.parse(raw);
1175
+ return {
1176
+ data: response.results,
1177
+ nextCursor: response.meta.next_cursor ?? void 0
1178
+ };
1179
+ }
1180
+ });
1181
+ var GetWorkflowDraftOptionsSchema = z.object({
1182
+ workflow: z.string().uuid().describe("Durable workflow ID"),
1183
+ draft: z.string().uuid().describe("Workflow draft ID")
1184
+ }).describe("Get full details of a workflow draft including source files");
1185
+ var GetWorkflowDraftResponseSchema = z.object({
1186
+ id: z.string().describe("Workflow draft ID (UUID)"),
1187
+ workflow_id: z.string().describe("Parent workflow ID (UUID)"),
1188
+ slug: z.string().describe(
1189
+ "Human-friendly identifier for URL routing; unique among open drafts per workflow"
1190
+ ),
1191
+ base_version_id: z.string().nullable().describe(
1192
+ "Live version at draft creation or last publish rebase, or null before the workflow's first publish"
1193
+ ),
1194
+ source_files: z.record(z.string(), z.string()).describe("Source files keyed by filename \u2192 contents"),
1195
+ zapier_durable_version: z.string().describe("Pinned semver of @zapier/zapier-durable used by this draft"),
1196
+ dependencies: z.record(z.string(), z.string()).nullable().describe("Additional npm dependencies pinned for this draft (or null)"),
1197
+ draft_revision: z.number().int().describe(
1198
+ "Monotonic revision counter for optimistic concurrency. Echo it back on draft updates to detect concurrent edits."
1199
+ ),
1200
+ status: WorkflowDraftStatusSchema,
1201
+ created_by_user_id: z.string().describe("ID of the user who created (forked) this draft"),
1202
+ last_edited_by_user_id: z.string().nullable().describe("ID of the user who last saved this draft (or null)"),
1203
+ last_edited_at: z.string().nullable().describe("When the draft was last edited (ISO-8601, or null)"),
1204
+ discarded_at: z.string().nullable().describe("When the draft was discarded (ISO-8601), or null while open"),
1205
+ created_at: z.string().describe("When the draft was created (ISO-8601)"),
1206
+ updated_at: z.string().describe("When the draft row was last updated (ISO-8601)"),
1207
+ trigger: WorkflowVersionTriggerConfigSchema.nullable().describe(
1208
+ "Trigger configuration held on this draft, or null for webhook-only workflows."
1209
+ ),
1210
+ connections: z.record(z.string(), ConnectionBindingSchema2).nullable().describe("Connection aliases bound on this draft (or null)."),
1211
+ app_versions: z.record(z.string(), AppVersionBindingSchema2).nullable().describe("App-version pins bound on this draft (or null).")
1212
+ });
1213
+
1214
+ // src/plugins/codeSubstrate/getWorkflowDraft/index.ts
1215
+ var getWorkflowDraftPlugin = defineMethod({
1216
+ ...codeSubstrateDefaults,
1217
+ name: "getWorkflowDraft",
1218
+ imports: [apiPluginRef],
1219
+ itemType: "WorkflowDraft",
1220
+ inputSchema: GetWorkflowDraftOptionsSchema,
1221
+ outputSchema: GetWorkflowDraftResponseSchema,
1222
+ output: "item",
1223
+ resolvers: {
1224
+ workflow: workflowIdResolver,
1225
+ draft: workflowDraftIdResolver
1226
+ },
1227
+ run: async ({ imports, input }) => {
1228
+ const api = imports.api;
1229
+ const raw = await api.get(
1230
+ `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows/${encodeURIComponent(input.workflow)}/drafts/${encodeURIComponent(input.draft)}`,
1231
+ {
1232
+ authRequired: true,
1233
+ resource: { type: "workflow-draft", id: input.draft }
1234
+ }
1235
+ );
1236
+ return { data: GetWorkflowDraftResponseSchema.parse(raw) };
1237
+ }
1238
+ });
1099
1239
  var WorkflowRunStatusSchema = z.union([
1100
1240
  z.enum(["initialized", "started", "finished", "failed", "cancelled"]),
1101
1241
  z.string()
@@ -1351,6 +1491,8 @@ var zapierExperimentalSdkPlugin = definePlugin({
1351
1491
  listWorkflowVersionsPlugin,
1352
1492
  getWorkflowVersionPlugin,
1353
1493
  publishWorkflowVersionPlugin,
1494
+ listWorkflowDraftsPlugin,
1495
+ getWorkflowDraftPlugin,
1354
1496
  listWorkflowRunsPlugin,
1355
1497
  getWorkflowRunPlugin,
1356
1498
  listDurableRunsPlugin,