@zapier/zapier-sdk 0.110.1 → 0.110.2

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,12 +1,48 @@
1
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-ubhG9-NU.mjs';
2
2
  export { e9 as ACTION_RUNS_PATH, cM as API_ID, z as Action, cI as ActionEntry, c2 as ActionExecutionOptions, K as ActionExecutionResult, O as ActionField, P as ActionFieldChoice, at as ActionItem, b3 as ActionKeyProperty, aB as ActionKeyPropertySchema, b4 as ActionProperty, aC as ActionPropertySchema, ad as ActionResolverItem, bg as ActionTimeoutMillisecondsProperty, aO as ActionTimeoutMillisecondsPropertySchema, bf as ActionTimeoutSecondsProperty, aN as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b2 as ActionTypeProperty, aA as ActionTypePropertySchema, dz as ApiEvent, cL as ApiPluginOptions, H as App, c3 as AppFactoryInput, ar as AppItem, b0 as AppKeyProperty, ay as AppKeyPropertySchema, b1 as AppProperty, az as AppPropertySchema, eE as ApplicationLifecycleEventData, bL as ApprovalStatus, bl as AppsProperty, aT as AppsPropertySchema, dy as AuthEvent, dj as AuthMechanism, b8 as AuthenticationIdProperty, aF as AuthenticationIdPropertySchema, ac as BaseSdkOptionsSchema, a4 as BatchOptions, d$ as CONNECTIONS_ID, cp as CONTEXT_CACHE_MAX_SIZE, co as CONTEXT_CACHE_TTL_MILLISECONDS, a2 as CallerContext, J as Choice, dE as ClientCredentialsObject, dP as ClientCredentialsObjectSchema, U as Connection, dX as ConnectionEntry, dW as ConnectionEntrySchema, b6 as ConnectionIdProperty, aE as ConnectionIdPropertySchema, as as ConnectionItem, b7 as ConnectionProperty, aG as ConnectionPropertySchema, dZ as ConnectionsMap, dY as ConnectionsMapSchema, bn as ConnectionsProperty, aV as ConnectionsPropertySchema, V as ConnectionsResponse, cr as CreateActionRunPluginProvides, dB as Credentials, dU as CredentialsFunction, dT as CredentialsFunctionSchema, dD as CredentialsObject, dR as CredentialsObjectSchema, dV as CredentialsSchema, e8 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ei as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cG as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e7 as DEFAULT_PAGE_SIZE, ap as DEPRECATION_NOTICE_EVENT, bd as DebugProperty, aL as DebugPropertySchema, aq as DeprecationNoticePayload, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, m as DrainTriggerInboxSchema, ez as EVENT_EMISSION_ID, eF as EnhancedErrorEventData, bu as ErrorOptions, eD as EventContext, ex as EventEmissionContext, ey as EventEmitter, c4 as FetchPluginProvides, I as Field, bk as FieldsProperty, aS as FieldsPropertySchema, x as FindFirstAuthenticationPluginProvides, y as FindUniqueAuthenticationPluginProvides, ct as GetActionRunPluginProvides, w as GetAuthenticationPluginProvides, cK as GetProfilePluginProvides, av as InfoFieldItem, au as InputFieldItem, b5 as InputFieldProperty, aD as InputFieldPropertySchema, b9 as InputsProperty, aH as InputsPropertySchema, ao as JsonSseMessage, bt as LeaseLimitProperty, a$ as LeaseLimitPropertySchema, br as LeaseProperty, aZ as LeasePropertySchema, bs as LeaseSecondsProperty, a_ as LeaseSecondsPropertySchema, u as LeasedTriggerMessageItem, ba as LimitProperty, aI as LimitPropertySchema, cb as ListActionInputFieldsPluginProvides, c9 as ListActionsPluginProvides, c7 as ListAppsPluginProvides, v as ListAuthenticationsPluginProvides, cf as ListConnectionsPluginProvides, dA as LoadingEvent, cB as MANIFEST_ID, ec as MAX_CONCURRENCY_LIMIT, e6 as MAX_PAGE_LIMIT, cH as ManifestEntry, cx as ManifestPluginOptions, eM as MethodCalledEvent, eG as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bb as OffsetProperty, aJ as OffsetPropertySchema, bc as OutputProperty, aK as OutputPropertySchema, be as ParamsProperty, aM as ParamsPropertySchema, dF as PkceCredentialsObject, dQ as PkceCredentialsObjectSchema, aj as PollOptions, cP as RESOLVE_CREDENTIALS_ID, bJ as RateLimitInfo, bi as RecordProperty, aQ as RecordPropertySchema, bj as RecordsProperty, aR as RecordsPropertySchema, a9 as RelayFetchSchema, a8 as RelayRequestSchema, ai as RequestOptions, di as ResolveAuthTokenOptions, d_ as ResolveConnection, dK as ResolveCredentialsOptions, af as ResolvedAppLocator, dk as ResolvedAuth, dC as ResolvedCredentials, dS as ResolvedCredentialsSchema, aw as RootFieldItem, cv as RunActionPluginProvides, _ as SDK_OPTIONS_ID, dx as SdkEvent, an as SseMessage, bh as TableProperty, aP as TablePropertySchema, bm as TablesProperty, aU as TablesPropertySchema, bp as TriggerInboxKeyProperty, aX as TriggerInboxKeyPropertySchema, bq as TriggerInboxNameProperty, aY as TriggerInboxNamePropertySchema, bo as TriggerInboxProperty, aW as TriggerInboxPropertySchema, T as TriggerMessageStatus, cE as UpdateManifestEntryOptions, cF as UpdateManifestEntryResult, X as UserProfile, ax as UserProfileItem, n as WatchTriggerInboxSchema, e2 as ZAPIER_BASE_URL, ee as ZAPIER_MAX_CONCURRENT_REQUESTS, ea as ZAPIER_MAX_NETWORK_RETRIES, eb as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, o as ZapierAbortDrainSignal, bH as ZapierActionError, bA as ZapierApiError, bB as ZapierAppNotFoundError, bM as ZapierApprovalError, by as ZapierAuthenticationError, bF as ZapierBundleError, du as ZapierCacheEntry, dv as ZapierCacheSetOptions, bE as ZapierConfigurationError, bI as ZapierConflictError, bv as ZapierError, bC as ZapierNotFoundError, bK as ZapierRateLimitError, bN as ZapierRelayError, p as ZapierReleaseTriggerMessageSignal, bD as ZapierResourceNotFoundError, b$ as ZapierSignal, bG as ZapierTimeoutError, bx as ZapierUnknownError, bw as ZapierValidationError, cU as actionKeyResolver, cT as actionTypeResolver, cO as apiPlugin, cN as apiPluginRef, cS as appKeyResolver, c1 as appsPlugin, a3 as batch, eH as buildApplicationLifecycleEvent, a5 as buildCapabilityMessage, eJ as buildErrorEvent, eI as buildErrorEventWithContext, eL as buildMethodCalledEvent, ew as cleanupEventListeners, dl as clearTokenCache, c_ as clientCredentialsNameResolver, c$ as clientIdResolver, cW as connectionIdGenericResolver, cV as connectionIdResolver, e1 as connectionsPlugin, e0 as connectionsPluginRef, cq as createActionRunPlugin, eK as createBaseEvent, ch as createClientCredentialsPlugin, dw as createMemoryCache, ep as createTableFieldsPlugin, em as createTablePlugin, et as createTableRecordsPlugin, ak as createZapierApi, aa as createZapierSdkWithoutRegistry, ci as deleteClientCredentialsPlugin, eq as deleteTableFieldsPlugin, en as deleteTablePlugin, eu as deleteTableRecordsPlugin, d3 as durableRunIdResolver, eC as eventEmissionHookPlugin, eB as eventEmissionPlugin, eA as eventEmissionPluginRef, c5 as fetchPlugin, cm as findFirstConnectionPlugin, cA as findManifestEntry, cn as findUniqueConnectionPlugin, b_ as formatErrorMessage, eO as generateEventId, cd as getActionInputFieldsSchemaPlugin, ck as getActionPlugin, cs as getActionRunPlugin, ag as getAgent, cj as getAppPlugin, dN as getBaseUrlFromCredentials, a0 as getCallerContext, eU as getCiPlatform, dO as getClientIdFromCredentials, cl as getConnectionPlugin, eW as getCpuTime, eP as getCurrentTimestamp, eV as getMemoryUsage, al as getOrCreateApiClient, eR as getOsInfo, eS as getPlatformVersions, cz as getPreferredManifestEntryKey, cJ as getProfilePlugin, eQ as getReleaseId, el as getTablePlugin, er as getTableRecordPlugin, dq as getTokenFromCliLogin, eX as getTtyContext, ef as getZapierApprovalMode, e5 as getZapierCausationId, e4 as getZapierCorrelationId, eh as getZapierDefaultApprovalMode, eg as getZapierOpenAutoModeApprovalsInBrowser, e3 as getZapierSdkService, dn as injectCliLogin, cZ as inputFieldKeyResolver, cY as inputsAllOptionalResolver, cX as inputsResolver, dm as invalidateCachedToken, dt as invalidateCredentialsToken, eT as isCi, dp as isCliLoginAvailable, dG as isClientCredentials, dJ as isCredentialsFunction, dI as isCredentialsObject, am as isPermanentHttpError, dH as isPkceCredentials, q as isZapierAbortDrainSignal, bX as isZapierActionError, bR as isZapierAppNotFoundError, bZ as isZapierApprovalError, bQ as isZapierAuthenticationError, bW as isZapierBundleError, bU as isZapierConflictError, bO as isZapierError, bS as isZapierNotFoundError, bY as isZapierRateLimitError, r as isZapierReleaseTriggerMessageSignal, bT as isZapierResourceNotFoundError, c0 as isZapierSignal, bV as isZapierTimeoutError, bP as isZapierValidationError, cc as listActionInputFieldChoicesPlugin, ca as listActionInputFieldsPlugin, c8 as listActionsPlugin, c6 as listAppsPlugin, cg as listClientCredentialsPlugin, ce as listConnectionsPlugin, eo as listTableFieldsPlugin, es as listTableRecordsPlugin, ek as listTablesPlugin, a6 as logDeprecation, cD as manifestPlugin, cC as manifestPluginRef, eN as operationAnnotatorPlugin, ed as parseConcurrencyEnvVar, cy as readManifestFromFile, ah as registryPlugin, cw as requestPlugin, a7 as resetDeprecationWarnings, dr as resolveAuth, ds as resolveAuthToken, dM as resolveCredentials, dL as resolveCredentialsFromEnv, cR as resolveCredentialsPlugin, cQ as resolveCredentialsPluginRef, cu as runActionPlugin, a1 as runWithCallerContext, $ as sdkOptionsPluginRef, db as tableFieldIdsResolver, dd as tableFieldsResolver, dg as tableFiltersResolver, d0 as tableIdResolver, dc as tableNameResolver, d9 as tableRecordIdResolver, da as tableRecordIdsResolver, de as tableRecordsResolver, dh as tableSortResolver, df as tableUpdateRecordsResolver, d1 as triggerInboxResolver, d8 as triggerMessagesResolver, ev as updateTableRecordsPlugin, d5 as workflowDraftIdResolver, d6 as workflowDraftRevisionResolver, d2 as workflowIdResolver, d7 as workflowRunIdResolver, d4 as workflowVersionIdResolver, bz as zapierAdaptError, ab as zapierCoreOptions, Y as zapierSdkPlugin } from './index-ubhG9-NU.mjs';
3
3
  import * as zod from 'zod';
4
+ import { z } from 'zod';
4
5
  import * as zod_v4_core from 'zod/v4/core';
5
6
  import * as _zapier_kitcore from '@zapier/kitcore';
6
7
  export { AggregatePlugin, CoreApiError as ApiError, ArrayResolver, BoundFormatter, CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ContractEntry, ControllerAction, ControllerAnswerFn, ControllerChoice, ControllerMethodDescription, ControllerMethodSummary, ControllerParameterDescription, ControllerQuestion, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, DeclarationSummary, DynamicListResolver, DynamicMember, DynamicResolver, DynamicSearchResolver, FieldsResolver, FormattedItem, Formatter, FunctionDeprecation, FunctionRegistryEntry, LeafSummary, MethodContract, MethodOverridePlugin, MethodPlugin, ModelResolver, NegatableMetadata, OptionalDeclarationSummary, OutputFormatter, PaginatedSdkFunction, PaginatedSdkResult, Plugin, PluginMeta, PluginProvides, PluginSummary, PluginSurface, PositionalMetadata, PropertyPlugin, Resolver, ResolverMetadata, SdkPage, StandInId, StaticResolver, addPlugin, composePlugins, createController, createCorePlugin, createFunction, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, fromFunctionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
7
8
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
8
9
  import '@zapier/policy-context';
9
10
 
11
+ declare const INTERNAL_CREATE_WORKFLOW_FIELDS: readonly ["creationHarness", "creationAccessMethod"];
12
+ declare const CreateWorkflowOptionsSchema: z.ZodObject<{
13
+ name: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ private: z.ZodOptional<z.ZodBoolean>;
16
+ creationHarness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ creationAccessMethod: z.ZodOptional<z.ZodEnum<{
18
+ unknown: "unknown";
19
+ api: "api";
20
+ sdk_cli: "sdk_cli";
21
+ sdk_mcp: "sdk_mcp";
22
+ zapier_mcp: "zapier_mcp";
23
+ editor: "editor";
24
+ }>>;
25
+ is_private: z.ZodOptional<z.ZodBoolean>;
26
+ }, z.core.$strip>;
27
+ type CreateWorkflowOptions = z.infer<typeof CreateWorkflowOptionsSchema>;
28
+ declare const CreateWorkflowResponseSchema: z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ description: z.ZodNullable<z.ZodString>;
32
+ trigger_url: z.ZodString;
33
+ editor_url: z.ZodString;
34
+ enabled: z.ZodBoolean;
35
+ is_private: z.ZodBoolean;
36
+ created_by_user_id: z.ZodNullable<z.ZodString>;
37
+ created_at: z.ZodString;
38
+ creation_client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
+ harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ access_method: z.ZodString;
41
+ sdk_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>>;
43
+ }, z.core.$strip>;
44
+ type CreateWorkflowResponse = z.infer<typeof CreateWorkflowResponseSchema>;
45
+
10
46
  /**
11
47
  * A blocking draft as listed by the 409's `meta.open_drafts` — the element
12
48
  * type of `ZapierConflictError.meta.open_drafts` on the open-draft publish
@@ -7444,6 +7480,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7444
7480
  created_at: string;
7445
7481
  updated_at: string;
7446
7482
  disabled_reason?: "trigger_claim_failed" | null | undefined;
7483
+ creation_client?: {
7484
+ access_method: string;
7485
+ harness?: string | null | undefined;
7486
+ sdk_version?: string | null | undefined;
7487
+ } | null | undefined;
7447
7488
  }>, readonly [], Omit<{
7448
7489
  pageSize?: number | undefined;
7449
7490
  maxItems?: number | undefined;
@@ -7486,6 +7527,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7486
7527
  created_at: string;
7487
7528
  updated_at: string;
7488
7529
  disabled_reason?: "trigger_claim_failed" | null | undefined;
7530
+ creation_client?: {
7531
+ access_method: string;
7532
+ harness?: string | null | undefined;
7533
+ sdk_version?: string | null | undefined;
7534
+ } | null | undefined;
7489
7535
  }>>;
7490
7536
  } & {
7491
7537
  getWorkflow: _zapier_kitcore.MethodPlugin<"getWorkflow", {
@@ -7538,6 +7584,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7538
7584
  version?: string | undefined;
7539
7585
  }> | null;
7540
7586
  } | undefined;
7587
+ creation_client?: {
7588
+ access_method: string;
7589
+ harness?: string | null | undefined;
7590
+ sdk_version?: string | null | undefined;
7591
+ } | null | undefined;
7541
7592
  };
7542
7593
  meta?: _zapier_kitcore.ResponseMeta;
7543
7594
  }>, readonly [], {
@@ -7592,6 +7643,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7592
7643
  version?: string | undefined;
7593
7644
  }> | null;
7594
7645
  } | undefined;
7646
+ creation_client?: {
7647
+ access_method: string;
7648
+ harness?: string | null | undefined;
7649
+ sdk_version?: string | null | undefined;
7650
+ } | null | undefined;
7595
7651
  };
7596
7652
  meta?: _zapier_kitcore.ResponseMeta;
7597
7653
  }>>;
@@ -7600,6 +7656,8 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7600
7656
  name: string;
7601
7657
  description?: string | undefined;
7602
7658
  private?: boolean | undefined;
7659
+ creationHarness?: string | null | undefined;
7660
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
7603
7661
  is_private?: boolean | undefined;
7604
7662
  } & {
7605
7663
  skipOutputDataValidation?: boolean;
@@ -7614,6 +7672,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7614
7672
  is_private: boolean;
7615
7673
  created_by_user_id: string | null;
7616
7674
  created_at: string;
7675
+ creation_client?: {
7676
+ access_method: string;
7677
+ harness?: string | null | undefined;
7678
+ sdk_version?: string | null | undefined;
7679
+ } | null | undefined;
7617
7680
  };
7618
7681
  meta?: _zapier_kitcore.ResponseMeta;
7619
7682
  }>, readonly [], {
@@ -7621,10 +7684,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7621
7684
  name: string;
7622
7685
  is_private?: boolean | undefined;
7623
7686
  private?: boolean | undefined;
7687
+ creationHarness?: string | null | undefined;
7688
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
7624
7689
  }> & _zapier_kitcore.LeafSummary<"", "createWorkflow", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
7625
7690
  name: string;
7626
7691
  description?: string | undefined;
7627
7692
  private?: boolean | undefined;
7693
+ creationHarness?: string | null | undefined;
7694
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
7628
7695
  is_private?: boolean | undefined;
7629
7696
  } & {
7630
7697
  skipOutputDataValidation?: boolean;
@@ -7639,6 +7706,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7639
7706
  is_private: boolean;
7640
7707
  created_by_user_id: string | null;
7641
7708
  created_at: string;
7709
+ creation_client?: {
7710
+ access_method: string;
7711
+ harness?: string | null | undefined;
7712
+ sdk_version?: string | null | undefined;
7713
+ } | null | undefined;
7642
7714
  };
7643
7715
  meta?: _zapier_kitcore.ResponseMeta;
7644
7716
  }>>;
@@ -11970,6 +12042,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
11970
12042
  created_at: string;
11971
12043
  updated_at: string;
11972
12044
  disabled_reason?: "trigger_claim_failed" | null | undefined;
12045
+ creation_client?: {
12046
+ access_method: string;
12047
+ harness?: string | null | undefined;
12048
+ sdk_version?: string | null | undefined;
12049
+ } | null | undefined;
11973
12050
  }>> | _zapier_kitcore.ContractEntry<"getWorkflow", (input: {
11974
12051
  workflow: string;
11975
12052
  } & {
@@ -12020,12 +12097,19 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12020
12097
  version?: string | undefined;
12021
12098
  }> | null;
12022
12099
  } | undefined;
12100
+ creation_client?: {
12101
+ access_method: string;
12102
+ harness?: string | null | undefined;
12103
+ sdk_version?: string | null | undefined;
12104
+ } | null | undefined;
12023
12105
  };
12024
12106
  meta?: _zapier_kitcore.ResponseMeta;
12025
12107
  }>> | _zapier_kitcore.ContractEntry<"createWorkflow", (input: {
12026
12108
  name: string;
12027
12109
  description?: string | undefined;
12028
12110
  private?: boolean | undefined;
12111
+ creationHarness?: string | null | undefined;
12112
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
12029
12113
  is_private?: boolean | undefined;
12030
12114
  } & {
12031
12115
  skipOutputDataValidation?: boolean;
@@ -12040,6 +12124,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12040
12124
  is_private: boolean;
12041
12125
  created_by_user_id: string | null;
12042
12126
  created_at: string;
12127
+ creation_client?: {
12128
+ access_method: string;
12129
+ harness?: string | null | undefined;
12130
+ sdk_version?: string | null | undefined;
12131
+ } | null | undefined;
12043
12132
  };
12044
12133
  meta?: _zapier_kitcore.ResponseMeta;
12045
12134
  }>> | _zapier_kitcore.ContractEntry<"importWorkflow", (input: {
@@ -14835,6 +14924,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14835
14924
  created_at: string;
14836
14925
  updated_at: string;
14837
14926
  disabled_reason?: "trigger_claim_failed" | null | undefined;
14927
+ creation_client?: {
14928
+ access_method: string;
14929
+ harness?: string | null | undefined;
14930
+ sdk_version?: string | null | undefined;
14931
+ } | null | undefined;
14838
14932
  }>;
14839
14933
  getWorkflow: (input: {
14840
14934
  workflow: string;
@@ -14886,6 +14980,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14886
14980
  version?: string | undefined;
14887
14981
  }> | null;
14888
14982
  } | undefined;
14983
+ creation_client?: {
14984
+ access_method: string;
14985
+ harness?: string | null | undefined;
14986
+ sdk_version?: string | null | undefined;
14987
+ } | null | undefined;
14889
14988
  };
14890
14989
  meta?: _zapier_kitcore.ResponseMeta;
14891
14990
  }>;
@@ -14893,6 +14992,8 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14893
14992
  name: string;
14894
14993
  description?: string | undefined;
14895
14994
  private?: boolean | undefined;
14995
+ creationHarness?: string | null | undefined;
14996
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
14896
14997
  is_private?: boolean | undefined;
14897
14998
  } & {
14898
14999
  skipOutputDataValidation?: boolean;
@@ -14907,6 +15008,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14907
15008
  is_private: boolean;
14908
15009
  created_by_user_id: string | null;
14909
15010
  created_at: string;
15011
+ creation_client?: {
15012
+ access_method: string;
15013
+ harness?: string | null | undefined;
15014
+ sdk_version?: string | null | undefined;
15015
+ } | null | undefined;
14910
15016
  };
14911
15017
  meta?: _zapier_kitcore.ResponseMeta;
14912
15018
  }>;
@@ -16058,4 +16164,4 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16058
16164
  interface ZapierSdk extends ReturnType<typeof createZapierSdk> {
16059
16165
  }
16060
16166
 
16061
- export { ApiClient, BaseEvent, ConnectionsProvider, DrainTriggerInboxOptions, EventCallback, EventEmissionConfig, EventTransport, FieldsetItem, Manifest, ManifestProvider, type OpenDraftRef, ResolveCredentialsFn, WatchTriggerInboxOptions, ZapierCache, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, zapierExperimentalSdkPlugin };
16167
+ export { ApiClient, BaseEvent, ConnectionsProvider, type CreateWorkflowOptions, CreateWorkflowOptionsSchema, type CreateWorkflowResponse, CreateWorkflowResponseSchema, DrainTriggerInboxOptions, EventCallback, EventEmissionConfig, EventTransport, FieldsetItem, INTERNAL_CREATE_WORKFLOW_FIELDS, Manifest, ManifestProvider, type OpenDraftRef, ResolveCredentialsFn, WatchTriggerInboxOptions, ZapierCache, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, zapierExperimentalSdkPlugin };
@@ -1,12 +1,48 @@
1
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-ubhG9-NU.js';
2
2
  export { e9 as ACTION_RUNS_PATH, cM as API_ID, z as Action, cI as ActionEntry, c2 as ActionExecutionOptions, K as ActionExecutionResult, O as ActionField, P as ActionFieldChoice, at as ActionItem, b3 as ActionKeyProperty, aB as ActionKeyPropertySchema, b4 as ActionProperty, aC as ActionPropertySchema, ad as ActionResolverItem, bg as ActionTimeoutMillisecondsProperty, aO as ActionTimeoutMillisecondsPropertySchema, bf as ActionTimeoutSecondsProperty, aN as ActionTimeoutSecondsPropertySchema, ae as ActionTypeItem, b2 as ActionTypeProperty, aA as ActionTypePropertySchema, dz as ApiEvent, cL as ApiPluginOptions, H as App, c3 as AppFactoryInput, ar as AppItem, b0 as AppKeyProperty, ay as AppKeyPropertySchema, b1 as AppProperty, az as AppPropertySchema, eE as ApplicationLifecycleEventData, bL as ApprovalStatus, bl as AppsProperty, aT as AppsPropertySchema, dy as AuthEvent, dj as AuthMechanism, b8 as AuthenticationIdProperty, aF as AuthenticationIdPropertySchema, ac as BaseSdkOptionsSchema, a4 as BatchOptions, d$ as CONNECTIONS_ID, cp as CONTEXT_CACHE_MAX_SIZE, co as CONTEXT_CACHE_TTL_MILLISECONDS, a2 as CallerContext, J as Choice, dE as ClientCredentialsObject, dP as ClientCredentialsObjectSchema, U as Connection, dX as ConnectionEntry, dW as ConnectionEntrySchema, b6 as ConnectionIdProperty, aE as ConnectionIdPropertySchema, as as ConnectionItem, b7 as ConnectionProperty, aG as ConnectionPropertySchema, dZ as ConnectionsMap, dY as ConnectionsMapSchema, bn as ConnectionsProperty, aV as ConnectionsPropertySchema, V as ConnectionsResponse, cr as CreateActionRunPluginProvides, dB as Credentials, dU as CredentialsFunction, dT as CredentialsFunctionSchema, dD as CredentialsObject, dR as CredentialsObjectSchema, dV as CredentialsSchema, e8 as DEFAULT_ACTION_TIMEOUT_MILLISECONDS, ei as DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, cG as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e7 as DEFAULT_PAGE_SIZE, ap as DEPRECATION_NOTICE_EVENT, bd as DebugProperty, aL as DebugPropertySchema, aq as DeprecationNoticePayload, s as DrainTriggerInboxCallback, t as DrainTriggerInboxErrorObserver, m as DrainTriggerInboxSchema, ez as EVENT_EMISSION_ID, eF as EnhancedErrorEventData, bu as ErrorOptions, eD as EventContext, ex as EventEmissionContext, ey as EventEmitter, c4 as FetchPluginProvides, I as Field, bk as FieldsProperty, aS as FieldsPropertySchema, x as FindFirstAuthenticationPluginProvides, y as FindUniqueAuthenticationPluginProvides, ct as GetActionRunPluginProvides, w as GetAuthenticationPluginProvides, cK as GetProfilePluginProvides, av as InfoFieldItem, au as InputFieldItem, b5 as InputFieldProperty, aD as InputFieldPropertySchema, b9 as InputsProperty, aH as InputsPropertySchema, ao as JsonSseMessage, bt as LeaseLimitProperty, a$ as LeaseLimitPropertySchema, br as LeaseProperty, aZ as LeasePropertySchema, bs as LeaseSecondsProperty, a_ as LeaseSecondsPropertySchema, u as LeasedTriggerMessageItem, ba as LimitProperty, aI as LimitPropertySchema, cb as ListActionInputFieldsPluginProvides, c9 as ListActionsPluginProvides, c7 as ListAppsPluginProvides, v as ListAuthenticationsPluginProvides, cf as ListConnectionsPluginProvides, dA as LoadingEvent, cB as MANIFEST_ID, ec as MAX_CONCURRENCY_LIMIT, e6 as MAX_PAGE_LIMIT, cH as ManifestEntry, cx as ManifestPluginOptions, eM as MethodCalledEvent, eG as MethodCalledEventData, N as Need, Q as NeedsRequest, S as NeedsResponse, bb as OffsetProperty, aJ as OffsetPropertySchema, bc as OutputProperty, aK as OutputPropertySchema, be as ParamsProperty, aM as ParamsPropertySchema, dF as PkceCredentialsObject, dQ as PkceCredentialsObjectSchema, aj as PollOptions, cP as RESOLVE_CREDENTIALS_ID, bJ as RateLimitInfo, bi as RecordProperty, aQ as RecordPropertySchema, bj as RecordsProperty, aR as RecordsPropertySchema, a9 as RelayFetchSchema, a8 as RelayRequestSchema, ai as RequestOptions, di as ResolveAuthTokenOptions, d_ as ResolveConnection, dK as ResolveCredentialsOptions, af as ResolvedAppLocator, dk as ResolvedAuth, dC as ResolvedCredentials, dS as ResolvedCredentialsSchema, aw as RootFieldItem, cv as RunActionPluginProvides, _ as SDK_OPTIONS_ID, dx as SdkEvent, an as SseMessage, bh as TableProperty, aP as TablePropertySchema, bm as TablesProperty, aU as TablesPropertySchema, bp as TriggerInboxKeyProperty, aX as TriggerInboxKeyPropertySchema, bq as TriggerInboxNameProperty, aY as TriggerInboxNamePropertySchema, bo as TriggerInboxProperty, aW as TriggerInboxPropertySchema, T as TriggerMessageStatus, cE as UpdateManifestEntryOptions, cF as UpdateManifestEntryResult, X as UserProfile, ax as UserProfileItem, n as WatchTriggerInboxSchema, e2 as ZAPIER_BASE_URL, ee as ZAPIER_MAX_CONCURRENT_REQUESTS, ea as ZAPIER_MAX_NETWORK_RETRIES, eb as ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, o as ZapierAbortDrainSignal, bH as ZapierActionError, bA as ZapierApiError, bB as ZapierAppNotFoundError, bM as ZapierApprovalError, by as ZapierAuthenticationError, bF as ZapierBundleError, du as ZapierCacheEntry, dv as ZapierCacheSetOptions, bE as ZapierConfigurationError, bI as ZapierConflictError, bv as ZapierError, bC as ZapierNotFoundError, bK as ZapierRateLimitError, bN as ZapierRelayError, p as ZapierReleaseTriggerMessageSignal, bD as ZapierResourceNotFoundError, b$ as ZapierSignal, bG as ZapierTimeoutError, bx as ZapierUnknownError, bw as ZapierValidationError, cU as actionKeyResolver, cT as actionTypeResolver, cO as apiPlugin, cN as apiPluginRef, cS as appKeyResolver, c1 as appsPlugin, a3 as batch, eH as buildApplicationLifecycleEvent, a5 as buildCapabilityMessage, eJ as buildErrorEvent, eI as buildErrorEventWithContext, eL as buildMethodCalledEvent, ew as cleanupEventListeners, dl as clearTokenCache, c_ as clientCredentialsNameResolver, c$ as clientIdResolver, cW as connectionIdGenericResolver, cV as connectionIdResolver, e1 as connectionsPlugin, e0 as connectionsPluginRef, cq as createActionRunPlugin, eK as createBaseEvent, ch as createClientCredentialsPlugin, dw as createMemoryCache, ep as createTableFieldsPlugin, em as createTablePlugin, et as createTableRecordsPlugin, ak as createZapierApi, aa as createZapierSdkWithoutRegistry, ci as deleteClientCredentialsPlugin, eq as deleteTableFieldsPlugin, en as deleteTablePlugin, eu as deleteTableRecordsPlugin, d3 as durableRunIdResolver, eC as eventEmissionHookPlugin, eB as eventEmissionPlugin, eA as eventEmissionPluginRef, c5 as fetchPlugin, cm as findFirstConnectionPlugin, cA as findManifestEntry, cn as findUniqueConnectionPlugin, b_ as formatErrorMessage, eO as generateEventId, cd as getActionInputFieldsSchemaPlugin, ck as getActionPlugin, cs as getActionRunPlugin, ag as getAgent, cj as getAppPlugin, dN as getBaseUrlFromCredentials, a0 as getCallerContext, eU as getCiPlatform, dO as getClientIdFromCredentials, cl as getConnectionPlugin, eW as getCpuTime, eP as getCurrentTimestamp, eV as getMemoryUsage, al as getOrCreateApiClient, eR as getOsInfo, eS as getPlatformVersions, cz as getPreferredManifestEntryKey, cJ as getProfilePlugin, eQ as getReleaseId, el as getTablePlugin, er as getTableRecordPlugin, dq as getTokenFromCliLogin, eX as getTtyContext, ef as getZapierApprovalMode, e5 as getZapierCausationId, e4 as getZapierCorrelationId, eh as getZapierDefaultApprovalMode, eg as getZapierOpenAutoModeApprovalsInBrowser, e3 as getZapierSdkService, dn as injectCliLogin, cZ as inputFieldKeyResolver, cY as inputsAllOptionalResolver, cX as inputsResolver, dm as invalidateCachedToken, dt as invalidateCredentialsToken, eT as isCi, dp as isCliLoginAvailable, dG as isClientCredentials, dJ as isCredentialsFunction, dI as isCredentialsObject, am as isPermanentHttpError, dH as isPkceCredentials, q as isZapierAbortDrainSignal, bX as isZapierActionError, bR as isZapierAppNotFoundError, bZ as isZapierApprovalError, bQ as isZapierAuthenticationError, bW as isZapierBundleError, bU as isZapierConflictError, bO as isZapierError, bS as isZapierNotFoundError, bY as isZapierRateLimitError, r as isZapierReleaseTriggerMessageSignal, bT as isZapierResourceNotFoundError, c0 as isZapierSignal, bV as isZapierTimeoutError, bP as isZapierValidationError, cc as listActionInputFieldChoicesPlugin, ca as listActionInputFieldsPlugin, c8 as listActionsPlugin, c6 as listAppsPlugin, cg as listClientCredentialsPlugin, ce as listConnectionsPlugin, eo as listTableFieldsPlugin, es as listTableRecordsPlugin, ek as listTablesPlugin, a6 as logDeprecation, cD as manifestPlugin, cC as manifestPluginRef, eN as operationAnnotatorPlugin, ed as parseConcurrencyEnvVar, cy as readManifestFromFile, ah as registryPlugin, cw as requestPlugin, a7 as resetDeprecationWarnings, dr as resolveAuth, ds as resolveAuthToken, dM as resolveCredentials, dL as resolveCredentialsFromEnv, cR as resolveCredentialsPlugin, cQ as resolveCredentialsPluginRef, cu as runActionPlugin, a1 as runWithCallerContext, $ as sdkOptionsPluginRef, db as tableFieldIdsResolver, dd as tableFieldsResolver, dg as tableFiltersResolver, d0 as tableIdResolver, dc as tableNameResolver, d9 as tableRecordIdResolver, da as tableRecordIdsResolver, de as tableRecordsResolver, dh as tableSortResolver, df as tableUpdateRecordsResolver, d1 as triggerInboxResolver, d8 as triggerMessagesResolver, ev as updateTableRecordsPlugin, d5 as workflowDraftIdResolver, d6 as workflowDraftRevisionResolver, d2 as workflowIdResolver, d7 as workflowRunIdResolver, d4 as workflowVersionIdResolver, bz as zapierAdaptError, ab as zapierCoreOptions, Y as zapierSdkPlugin } from './index-ubhG9-NU.js';
3
3
  import * as zod from 'zod';
4
+ import { z } from 'zod';
4
5
  import * as zod_v4_core from 'zod/v4/core';
5
6
  import * as _zapier_kitcore from '@zapier/kitcore';
6
7
  export { AggregatePlugin, CoreApiError as ApiError, ArrayResolver, BoundFormatter, CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ContractEntry, ControllerAction, ControllerAnswerFn, ControllerChoice, ControllerMethodDescription, ControllerMethodSummary, ControllerParameterDescription, ControllerQuestion, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, DeclarationSummary, DynamicListResolver, DynamicMember, DynamicResolver, DynamicSearchResolver, FieldsResolver, FormattedItem, Formatter, FunctionDeprecation, FunctionRegistryEntry, LeafSummary, MethodContract, MethodOverridePlugin, MethodPlugin, ModelResolver, NegatableMetadata, OptionalDeclarationSummary, OutputFormatter, PaginatedSdkFunction, PaginatedSdkResult, Plugin, PluginMeta, PluginProvides, PluginSummary, PluginSurface, PositionalMetadata, PropertyPlugin, Resolver, ResolverMetadata, SdkPage, StandInId, StaticResolver, addPlugin, composePlugins, createController, createCorePlugin, createFunction, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, disposeSdk, fromFunctionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getNegatable, getRegistryPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isPositional, omitExports, resolvePlugin, runInMethodScope, runWithTelemetryContext, selectExports, toSnakeCase, toTitleCase } from '@zapier/kitcore';
7
8
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
8
9
  import '@zapier/policy-context';
9
10
 
11
+ declare const INTERNAL_CREATE_WORKFLOW_FIELDS: readonly ["creationHarness", "creationAccessMethod"];
12
+ declare const CreateWorkflowOptionsSchema: z.ZodObject<{
13
+ name: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ private: z.ZodOptional<z.ZodBoolean>;
16
+ creationHarness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ creationAccessMethod: z.ZodOptional<z.ZodEnum<{
18
+ unknown: "unknown";
19
+ api: "api";
20
+ sdk_cli: "sdk_cli";
21
+ sdk_mcp: "sdk_mcp";
22
+ zapier_mcp: "zapier_mcp";
23
+ editor: "editor";
24
+ }>>;
25
+ is_private: z.ZodOptional<z.ZodBoolean>;
26
+ }, z.core.$strip>;
27
+ type CreateWorkflowOptions = z.infer<typeof CreateWorkflowOptionsSchema>;
28
+ declare const CreateWorkflowResponseSchema: z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ description: z.ZodNullable<z.ZodString>;
32
+ trigger_url: z.ZodString;
33
+ editor_url: z.ZodString;
34
+ enabled: z.ZodBoolean;
35
+ is_private: z.ZodBoolean;
36
+ created_by_user_id: z.ZodNullable<z.ZodString>;
37
+ created_at: z.ZodString;
38
+ creation_client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
+ harness: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ access_method: z.ZodString;
41
+ sdk_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$strip>>>;
43
+ }, z.core.$strip>;
44
+ type CreateWorkflowResponse = z.infer<typeof CreateWorkflowResponseSchema>;
45
+
10
46
  /**
11
47
  * A blocking draft as listed by the 409's `meta.open_drafts` — the element
12
48
  * type of `ZapierConflictError.meta.open_drafts` on the open-draft publish
@@ -7444,6 +7480,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7444
7480
  created_at: string;
7445
7481
  updated_at: string;
7446
7482
  disabled_reason?: "trigger_claim_failed" | null | undefined;
7483
+ creation_client?: {
7484
+ access_method: string;
7485
+ harness?: string | null | undefined;
7486
+ sdk_version?: string | null | undefined;
7487
+ } | null | undefined;
7447
7488
  }>, readonly [], Omit<{
7448
7489
  pageSize?: number | undefined;
7449
7490
  maxItems?: number | undefined;
@@ -7486,6 +7527,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7486
7527
  created_at: string;
7487
7528
  updated_at: string;
7488
7529
  disabled_reason?: "trigger_claim_failed" | null | undefined;
7530
+ creation_client?: {
7531
+ access_method: string;
7532
+ harness?: string | null | undefined;
7533
+ sdk_version?: string | null | undefined;
7534
+ } | null | undefined;
7489
7535
  }>>;
7490
7536
  } & {
7491
7537
  getWorkflow: _zapier_kitcore.MethodPlugin<"getWorkflow", {
@@ -7538,6 +7584,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7538
7584
  version?: string | undefined;
7539
7585
  }> | null;
7540
7586
  } | undefined;
7587
+ creation_client?: {
7588
+ access_method: string;
7589
+ harness?: string | null | undefined;
7590
+ sdk_version?: string | null | undefined;
7591
+ } | null | undefined;
7541
7592
  };
7542
7593
  meta?: _zapier_kitcore.ResponseMeta;
7543
7594
  }>, readonly [], {
@@ -7592,6 +7643,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7592
7643
  version?: string | undefined;
7593
7644
  }> | null;
7594
7645
  } | undefined;
7646
+ creation_client?: {
7647
+ access_method: string;
7648
+ harness?: string | null | undefined;
7649
+ sdk_version?: string | null | undefined;
7650
+ } | null | undefined;
7595
7651
  };
7596
7652
  meta?: _zapier_kitcore.ResponseMeta;
7597
7653
  }>>;
@@ -7600,6 +7656,8 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7600
7656
  name: string;
7601
7657
  description?: string | undefined;
7602
7658
  private?: boolean | undefined;
7659
+ creationHarness?: string | null | undefined;
7660
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
7603
7661
  is_private?: boolean | undefined;
7604
7662
  } & {
7605
7663
  skipOutputDataValidation?: boolean;
@@ -7614,6 +7672,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7614
7672
  is_private: boolean;
7615
7673
  created_by_user_id: string | null;
7616
7674
  created_at: string;
7675
+ creation_client?: {
7676
+ access_method: string;
7677
+ harness?: string | null | undefined;
7678
+ sdk_version?: string | null | undefined;
7679
+ } | null | undefined;
7617
7680
  };
7618
7681
  meta?: _zapier_kitcore.ResponseMeta;
7619
7682
  }>, readonly [], {
@@ -7621,10 +7684,14 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7621
7684
  name: string;
7622
7685
  is_private?: boolean | undefined;
7623
7686
  private?: boolean | undefined;
7687
+ creationHarness?: string | null | undefined;
7688
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
7624
7689
  }> & _zapier_kitcore.LeafSummary<"", "createWorkflow", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.DeclarationSummary<"zapier/api", ApiClient> & _zapier_kitcore.StandInId<"zapier/api">], (input: {
7625
7690
  name: string;
7626
7691
  description?: string | undefined;
7627
7692
  private?: boolean | undefined;
7693
+ creationHarness?: string | null | undefined;
7694
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
7628
7695
  is_private?: boolean | undefined;
7629
7696
  } & {
7630
7697
  skipOutputDataValidation?: boolean;
@@ -7639,6 +7706,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
7639
7706
  is_private: boolean;
7640
7707
  created_by_user_id: string | null;
7641
7708
  created_at: string;
7709
+ creation_client?: {
7710
+ access_method: string;
7711
+ harness?: string | null | undefined;
7712
+ sdk_version?: string | null | undefined;
7713
+ } | null | undefined;
7642
7714
  };
7643
7715
  meta?: _zapier_kitcore.ResponseMeta;
7644
7716
  }>>;
@@ -11970,6 +12042,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
11970
12042
  created_at: string;
11971
12043
  updated_at: string;
11972
12044
  disabled_reason?: "trigger_claim_failed" | null | undefined;
12045
+ creation_client?: {
12046
+ access_method: string;
12047
+ harness?: string | null | undefined;
12048
+ sdk_version?: string | null | undefined;
12049
+ } | null | undefined;
11973
12050
  }>> | _zapier_kitcore.ContractEntry<"getWorkflow", (input: {
11974
12051
  workflow: string;
11975
12052
  } & {
@@ -12020,12 +12097,19 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12020
12097
  version?: string | undefined;
12021
12098
  }> | null;
12022
12099
  } | undefined;
12100
+ creation_client?: {
12101
+ access_method: string;
12102
+ harness?: string | null | undefined;
12103
+ sdk_version?: string | null | undefined;
12104
+ } | null | undefined;
12023
12105
  };
12024
12106
  meta?: _zapier_kitcore.ResponseMeta;
12025
12107
  }>> | _zapier_kitcore.ContractEntry<"createWorkflow", (input: {
12026
12108
  name: string;
12027
12109
  description?: string | undefined;
12028
12110
  private?: boolean | undefined;
12111
+ creationHarness?: string | null | undefined;
12112
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
12029
12113
  is_private?: boolean | undefined;
12030
12114
  } & {
12031
12115
  skipOutputDataValidation?: boolean;
@@ -12040,6 +12124,11 @@ declare const zapierExperimentalSdkPlugin: _zapier_kitcore.AggregatePlugin<"expe
12040
12124
  is_private: boolean;
12041
12125
  created_by_user_id: string | null;
12042
12126
  created_at: string;
12127
+ creation_client?: {
12128
+ access_method: string;
12129
+ harness?: string | null | undefined;
12130
+ sdk_version?: string | null | undefined;
12131
+ } | null | undefined;
12043
12132
  };
12044
12133
  meta?: _zapier_kitcore.ResponseMeta;
12045
12134
  }>> | _zapier_kitcore.ContractEntry<"importWorkflow", (input: {
@@ -14835,6 +14924,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14835
14924
  created_at: string;
14836
14925
  updated_at: string;
14837
14926
  disabled_reason?: "trigger_claim_failed" | null | undefined;
14927
+ creation_client?: {
14928
+ access_method: string;
14929
+ harness?: string | null | undefined;
14930
+ sdk_version?: string | null | undefined;
14931
+ } | null | undefined;
14838
14932
  }>;
14839
14933
  getWorkflow: (input: {
14840
14934
  workflow: string;
@@ -14886,6 +14980,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14886
14980
  version?: string | undefined;
14887
14981
  }> | null;
14888
14982
  } | undefined;
14983
+ creation_client?: {
14984
+ access_method: string;
14985
+ harness?: string | null | undefined;
14986
+ sdk_version?: string | null | undefined;
14987
+ } | null | undefined;
14889
14988
  };
14890
14989
  meta?: _zapier_kitcore.ResponseMeta;
14891
14990
  }>;
@@ -14893,6 +14992,8 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14893
14992
  name: string;
14894
14993
  description?: string | undefined;
14895
14994
  private?: boolean | undefined;
14995
+ creationHarness?: string | null | undefined;
14996
+ creationAccessMethod?: "unknown" | "api" | "sdk_cli" | "sdk_mcp" | "zapier_mcp" | "editor" | undefined;
14896
14997
  is_private?: boolean | undefined;
14897
14998
  } & {
14898
14999
  skipOutputDataValidation?: boolean;
@@ -14907,6 +15008,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
14907
15008
  is_private: boolean;
14908
15009
  created_by_user_id: string | null;
14909
15010
  created_at: string;
15011
+ creation_client?: {
15012
+ access_method: string;
15013
+ harness?: string | null | undefined;
15014
+ sdk_version?: string | null | undefined;
15015
+ } | null | undefined;
14910
15016
  };
14911
15017
  meta?: _zapier_kitcore.ResponseMeta;
14912
15018
  }>;
@@ -16058,4 +16164,4 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
16058
16164
  interface ZapierSdk extends ReturnType<typeof createZapierSdk> {
16059
16165
  }
16060
16166
 
16061
- export { ApiClient, BaseEvent, ConnectionsProvider, DrainTriggerInboxOptions, EventCallback, EventEmissionConfig, EventTransport, FieldsetItem, Manifest, ManifestProvider, type OpenDraftRef, ResolveCredentialsFn, WatchTriggerInboxOptions, ZapierCache, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, zapierExperimentalSdkPlugin };
16167
+ export { ApiClient, BaseEvent, ConnectionsProvider, type CreateWorkflowOptions, CreateWorkflowOptionsSchema, type CreateWorkflowResponse, CreateWorkflowResponseSchema, DrainTriggerInboxOptions, EventCallback, EventEmissionConfig, EventTransport, FieldsetItem, INTERNAL_CREATE_WORKFLOW_FIELDS, Manifest, ManifestProvider, type OpenDraftRef, ResolveCredentialsFn, WatchTriggerInboxOptions, ZapierCache, ZapierFetchInitOptions, type ZapierSdk, ZapierSdkApps, type ZapierSdkOptions, createZapierSdk, zapierExperimentalSdkPlugin };
@@ -1,5 +1,5 @@
1
- import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, zapierSdkPlugin, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-IRHF55YK.mjs';
2
- export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, 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, 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, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-IRHF55YK.mjs';
1
+ import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, SDK_VERSION, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, zapierSdkPlugin, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-YYMYT6JV.mjs';
2
+ export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, 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, 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, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-YYMYT6JV.mjs';
3
3
  import './chunk-Y6FXYEAI.mjs';
4
4
  import { defineMethod, openEnum, defineResolver, defineFormatter, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
5
5
  import { z } from 'zod';
@@ -130,6 +130,18 @@ var AppVersionBindingSchema2 = z.object({
130
130
  version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
131
131
  }).describe("App-version binding: maps a single alias to an app version.");
132
132
  var WorkflowDraftStatusSchema = z.enum(["open", "discarded"]).describe("Lifecycle status of a workflow draft.");
133
+ var WorkflowCreationAccessMethodSchema = z.enum(["sdk_cli", "sdk_mcp", "zapier_mcp", "editor", "api", "unknown"]).describe(
134
+ "Client access method that created this workflow. `sdk_mcp` is package-derived attribution from `@zapier/zapier-sdk-mcp`; `zapier_mcp` is caller-declared attribution."
135
+ );
136
+ var WORKFLOW_CREATION_CLIENT_HARNESS_MAX_LENGTH = 64;
137
+ var WORKFLOW_CREATION_CLIENT_SDK_VERSION_MAX_LENGTH = 64;
138
+ var WorkflowCreationClientSchema = z.object({
139
+ harness: z.string().max(WORKFLOW_CREATION_CLIENT_HARNESS_MAX_LENGTH).nullable().optional().describe("Client harness that created this workflow"),
140
+ access_method: z.string().describe(
141
+ "Client access method that created this workflow (SDK, MCP, etc)"
142
+ ),
143
+ sdk_version: z.string().max(WORKFLOW_CREATION_CLIENT_SDK_VERSION_MAX_LENGTH).nullable().optional().describe("SDK version used to create this workflow")
144
+ }).describe("Client identity recorded when this workflow was created");
133
145
  var WorkflowVersionTriggerConfigSchema = z.object({
134
146
  selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
135
147
  action: z.string().describe("Trigger action key (e.g. 'new_row')"),
@@ -245,7 +257,8 @@ var WorkflowItemSchema = z.object({
245
257
  "Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
246
258
  ),
247
259
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
248
- updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
260
+ updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
261
+ creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
249
262
  });
250
263
  var ListWorkflowsOptionsSchema = z.object({
251
264
  pageSize: z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
@@ -344,7 +357,8 @@ var GetWorkflowResponseSchema = z.object({
344
357
  "Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
345
358
  ),
346
359
  created_at: z.string().describe("When the workflow was created (ISO-8601)"),
347
- updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
360
+ updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
361
+ creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
348
362
  });
349
363
 
350
364
  // src/plugins/codeSubstrate/getWorkflow/index.ts
@@ -370,17 +384,33 @@ var getWorkflowPlugin = defineMethod({
370
384
  return { data: GetWorkflowResponseSchema.parse(raw) };
371
385
  }
372
386
  });
387
+ var INTERNAL_CREATE_WORKFLOW_FIELDS = [
388
+ "creationHarness",
389
+ "creationAccessMethod"
390
+ ];
373
391
  var CreateWorkflowOptionsSchema = z.object({
374
392
  name: z.string().min(1).describe("Workflow name"),
375
393
  description: z.string().optional().describe("Optional description for the workflow"),
376
394
  private: z.boolean().optional().describe(
377
395
  "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
378
396
  ),
397
+ creationHarness: WorkflowCreationClientSchema.shape.harness.describe(
398
+ "Optional client harness that created this workflow; null means the client did not report a harness"
399
+ ).meta({ internal: true }),
400
+ creationAccessMethod: WorkflowCreationAccessMethodSchema.optional().describe(
401
+ WorkflowCreationAccessMethodSchema.description ?? "Client access method that created this workflow"
402
+ ).meta({ internal: true }),
379
403
  /** @deprecated Use `private` instead. */
380
404
  is_private: z.boolean().optional().describe(
381
405
  "If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
382
406
  ).meta({ deprecated: true })
383
- }).describe(
407
+ }).refine(
408
+ ({ creationHarness, creationAccessMethod }) => creationHarness === void 0 || creationAccessMethod !== void 0,
409
+ {
410
+ message: "creationAccessMethod is required when creationHarness is provided",
411
+ path: ["creationAccessMethod"]
412
+ }
413
+ ).describe(
384
414
  "Create a durable workflow container. Starts disabled with no version; publish a version to add code."
385
415
  );
386
416
  var CreateWorkflowResponseSchema = z.object({
@@ -396,7 +426,8 @@ var CreateWorkflowResponseSchema = z.object({
396
426
  "Whether the workflow is private to the creating user. False means account-visible."
397
427
  ),
398
428
  created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
399
- created_at: z.string().describe("When the workflow was created (ISO-8601)")
429
+ created_at: z.string().describe("When the workflow was created (ISO-8601)"),
430
+ creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
400
431
  });
401
432
 
402
433
  // src/plugins/codeSubstrate/createWorkflow/index.ts
@@ -420,6 +451,13 @@ var createWorkflowPlugin = defineMethod({
420
451
  if (isPrivate !== void 0) {
421
452
  body.is_private = isPrivate;
422
453
  }
454
+ if (input.creationAccessMethod !== void 0) {
455
+ body.creation_client = {
456
+ ...input.creationHarness === void 0 ? {} : { harness: input.creationHarness },
457
+ access_method: input.creationAccessMethod,
458
+ sdk_version: SDK_VERSION
459
+ };
460
+ }
423
461
  const raw = await api.post(
424
462
  `${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`,
425
463
  body,
@@ -3351,4 +3389,4 @@ function createZapierSdk(options = {}) {
3351
3389
  });
3352
3390
  }
3353
3391
 
3354
- export { createZapierSdk, zapierExperimentalSdkPlugin };
3392
+ export { CreateWorkflowOptionsSchema, CreateWorkflowResponseSchema, INTERNAL_CREATE_WORKFLOW_FIELDS, createZapierSdk, zapierExperimentalSdkPlugin };