@zapier/zapier-sdk 0.78.0 → 0.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.79.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d67227b: Display trusted SDK deprecation notices from Zapier API responses. The SDK sniffs `zapier-sdk-deprecation-*` response headers (never on relay responses), warns once per notice id per process — with no opt-out — and emits an `api:deprecation_notice` event for wrappers. The CLI additionally renders notices as a boxed stderr warning after command output, and the MCP server attaches them to every tool result so agents relay the warning to users.
8
+
3
9
  ## 0.78.0
4
10
 
5
11
  ### Minor Changes
@@ -4320,8 +4320,63 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
4320
4320
  }
4321
4321
  }
4322
4322
 
4323
+ // src/api/deprecation.ts
4324
+ var DEPRECATION_MESSAGE_HEADER = "zapier-sdk-deprecation-message";
4325
+ var DEPRECATION_ID_HEADER = "zapier-sdk-deprecation-id";
4326
+ var DEPRECATION_NOTICE_EVENT = "api:deprecation_notice";
4327
+ var displayedNoticeIds = /* @__PURE__ */ new Set();
4328
+ function handleDeprecationNotice({
4329
+ response,
4330
+ canSendDeprecationMessaging,
4331
+ onEvent
4332
+ }) {
4333
+ try {
4334
+ sniffDeprecationNotice({ response, canSendDeprecationMessaging, onEvent });
4335
+ } catch {
4336
+ }
4337
+ }
4338
+ function sniffDeprecationNotice({
4339
+ response,
4340
+ canSendDeprecationMessaging,
4341
+ onEvent
4342
+ }) {
4343
+ if (!canSendDeprecationMessaging) return;
4344
+ const message = response.headers?.get(DEPRECATION_MESSAGE_HEADER);
4345
+ if (!message) return;
4346
+ const id = response.headers.get(DEPRECATION_ID_HEADER) ?? message;
4347
+ if (!displayedNoticeIds.has(id)) {
4348
+ displayedNoticeIds.add(id);
4349
+ console.warn(`[zapier-sdk] Deprecation: ${message}`);
4350
+ }
4351
+ if (onEvent) {
4352
+ const payload = { id, message };
4353
+ const deprecation = parseDeprecationDate(
4354
+ response.headers.get("deprecation")
4355
+ );
4356
+ if (deprecation !== void 0) payload.deprecation = deprecation;
4357
+ const maybePromise = onEvent({
4358
+ type: DEPRECATION_NOTICE_EVENT,
4359
+ payload: { ...payload },
4360
+ timestamp: Date.now()
4361
+ });
4362
+ if (isPromiseLike(maybePromise)) {
4363
+ void Promise.resolve(maybePromise).catch(() => {
4364
+ });
4365
+ }
4366
+ }
4367
+ }
4368
+ function isPromiseLike(value) {
4369
+ return (typeof value === "object" || typeof value === "function") && value !== null && "then" in value && typeof value.then === "function";
4370
+ }
4371
+ function parseDeprecationDate(value) {
4372
+ if (!value) return void 0;
4373
+ const match = /^@(-?\d+)$/.exec(value.trim());
4374
+ if (!match) return void 0;
4375
+ return Number(match[1]) * 1e3;
4376
+ }
4377
+
4323
4378
  // src/sdk-version.ts
4324
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.78.0" : void 0) || "unknown";
4379
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.79.0" : void 0) || "unknown";
4325
4380
 
4326
4381
  // src/utils/open-url.ts
4327
4382
  var nodePrefix = "node:";
@@ -4433,6 +4488,30 @@ var PollApprovalResponseSchema = zod.z.object({
4433
4488
  reason: zod.z.string().optional()
4434
4489
  });
4435
4490
  var APPROVAL_MAX_POLLING_INTERVAL_MS = 5e3;
4491
+ function validateSdkPath(path) {
4492
+ if (!path.startsWith("/") || path.startsWith("//")) {
4493
+ throw new ZapierValidationError(
4494
+ `fetch expects a path starting with a single '/', got: ${path}`
4495
+ );
4496
+ }
4497
+ }
4498
+ function findPathConfigEntries({
4499
+ path,
4500
+ matchResolvedGatewayPath = false
4501
+ }) {
4502
+ const pathSegments = path.split("/").filter(Boolean);
4503
+ return Object.entries(pathConfig).filter(([configPath, config]) => {
4504
+ if (!matchResolvedGatewayPath) {
4505
+ return path === configPath || path.startsWith(`${configPath}/`);
4506
+ }
4507
+ const prefixSegments = (config.pathPrefix ?? configPath).split("/").filter(Boolean);
4508
+ return pathSegments.some(
4509
+ (_, startIndex) => prefixSegments.every(
4510
+ (segment, offset) => pathSegments[startIndex + offset] === segment
4511
+ )
4512
+ );
4513
+ }).map(([configPath, config]) => ({ configPath, config }));
4514
+ }
4436
4515
  function parseRateLimitHeaders(response) {
4437
4516
  const info = {};
4438
4517
  const retryAfter = response.headers.get("retry-after");
@@ -4477,8 +4556,18 @@ var pathConfig = {
4477
4556
  // e.g. /relay -> https://sdkapi.zapier.com/api/v0/sdk/relay/...
4478
4557
  "/relay": {
4479
4558
  authHeader: "X-Relay-Authorization",
4480
- pathPrefix: "/api/v0/sdk/relay"
4559
+ pathPrefix: "/api/v0/sdk/relay",
4560
+ omitDeprecationMessaging: true
4561
+ },
4562
+ // The concrete gateway form of the relay route. Callers that pass the
4563
+ // already-prefixed path reach the same third-party upstreams, so it must
4564
+ // classify as relay too; without this entry it would match nothing and
4565
+ // sniff deprecation headers off a relay response.
4566
+ "/api/v0/sdk/relay": {
4567
+ omitDeprecationMessaging: true
4481
4568
  },
4569
+ // Concrete sdkapi routes that do not live behind /api/v0/sdk/<service>.
4570
+ "/api/v0": {},
4482
4571
  // e.g. /zapier -> https://sdkapi.zapier.com/api/v0/sdk/zapier/...
4483
4572
  "/zapier": {
4484
4573
  authHeader: "Authorization",
@@ -4627,17 +4716,50 @@ var ZapierApiClient = class {
4627
4716
  * parallelism into the queue.
4628
4717
  */
4629
4718
  this.rawFetch = async (path, init) => {
4630
- if (!path.startsWith("/")) {
4631
- throw new ZapierValidationError(
4632
- `fetch expects a path starting with '/', got: ${path}`
4633
- );
4634
- }
4719
+ validateSdkPath(path);
4635
4720
  const { url, pathConfig: pathConfig2 } = this.buildUrl(path, init?.searchParams);
4636
4721
  return this.withSemaphore(
4637
4722
  { url, method: init?.method ?? "GET", signal: init?.signal },
4638
4723
  () => this.rawFetchUrl(url, init, pathConfig2)
4639
4724
  );
4640
4725
  };
4726
+ this.runApprovalFetchLoop = async ({
4727
+ path,
4728
+ init,
4729
+ maxRetries,
4730
+ approvalMode,
4731
+ approvalContext
4732
+ }) => {
4733
+ for (let attempt = 0; attempt <= maxRetries; attempt++) {
4734
+ const response = await this.rawFetch(path, init);
4735
+ if (response.status !== 403) {
4736
+ return { response };
4737
+ }
4738
+ const errorType = response.headers.get("x-zapier-error-type");
4739
+ if (errorType !== "approval_required") {
4740
+ return { response };
4741
+ }
4742
+ if (attempt === maxRetries) {
4743
+ return { response };
4744
+ }
4745
+ if (approvalMode === "disabled") {
4746
+ return { response };
4747
+ }
4748
+ if (!approvalContext) {
4749
+ return { response };
4750
+ }
4751
+ try {
4752
+ await this.runOneApprovalRound(
4753
+ approvalContext,
4754
+ approvalMode,
4755
+ init?.signal ?? void 0
4756
+ );
4757
+ } catch (error) {
4758
+ return { response, approvalRoundError: error };
4759
+ }
4760
+ }
4761
+ throw new ZapierApiError("Approval retry loop ended unexpectedly");
4762
+ };
4641
4763
  /**
4642
4764
  * Approval-aware HTTP fetch.
4643
4765
  *
@@ -4667,46 +4789,62 @@ var ZapierApiClient = class {
4667
4789
  * `max_retries_exceeded` instead.
4668
4790
  */
4669
4791
  this.fetch = async (path, init) => {
4792
+ validateSdkPath(path);
4670
4793
  const maxRetries = this.options.maxApprovalRetries ?? DEFAULT_MAX_APPROVAL_RETRIES;
4671
- for (let attempt = 0; attempt <= maxRetries; attempt++) {
4672
- const response = await this.rawFetch(path, init);
4673
- if (response.status !== 403) return response;
4674
- const errorType = response.headers.get("x-zapier-error-type");
4675
- if (errorType === "request_denied_by_policy") {
4676
- const { data } = await this.parseResult(response);
4677
- const { message, errors } = this.parseErrorResponse({
4678
- status: response.status,
4679
- statusText: response.statusText,
4680
- data
4681
- });
4682
- throw new ZapierApprovalError(
4683
- message || "Request explicitly denied by policy",
4684
- {
4685
- status: "policy_denied",
4686
- statusCode: response.status,
4687
- errors
4688
- }
4689
- );
4690
- }
4691
- if (errorType !== "approval_required") return response;
4692
- if (attempt === maxRetries) break;
4693
- const mode = this.options.approvalMode ?? getZapierApprovalMode() ?? getZapierDefaultApprovalMode();
4694
- if (mode === "disabled") {
4695
- throw new ZapierApprovalError(
4696
- "Approvals are disabled. Set approvalMode to 'poll' or 'throw' (or ZAPIER_APPROVAL_MODE) to enable.",
4697
- { status: "approval_required" }
4698
- );
4699
- }
4700
- if (!init?.approvalContext) {
4701
- throw new ZapierApiError(
4702
- `Received 403 approval_required for ${path}, but the caller did not provide an approvalContext builder. Every approval-capable request must pass approvalContext so the SDK can create the approval with the correct policy context.`,
4703
- { statusCode: 403 }
4704
- );
4705
- }
4706
- await this.runOneApprovalRound(
4707
- init.approvalContext,
4708
- mode,
4709
- init.signal ?? void 0
4794
+ const { canSendDeprecationMessaging } = this.buildUrl(
4795
+ path,
4796
+ init?.searchParams
4797
+ );
4798
+ const approvalMode = this.options.approvalMode ?? getZapierApprovalMode() ?? getZapierDefaultApprovalMode();
4799
+ const approvalContext = init?.approvalContext;
4800
+ const { response, approvalRoundError } = await this.runApprovalFetchLoop({
4801
+ path,
4802
+ init,
4803
+ maxRetries,
4804
+ approvalMode,
4805
+ approvalContext
4806
+ });
4807
+ handleDeprecationNotice({
4808
+ response,
4809
+ canSendDeprecationMessaging,
4810
+ onEvent: this.options.onEvent
4811
+ });
4812
+ if (response.status !== 403) {
4813
+ return response;
4814
+ }
4815
+ const errorType = response.headers.get("x-zapier-error-type");
4816
+ if (errorType === "request_denied_by_policy") {
4817
+ const { data } = await this.parseResult(response);
4818
+ const { message, errors } = this.parseErrorResponse({
4819
+ status: response.status,
4820
+ statusText: response.statusText,
4821
+ data
4822
+ });
4823
+ throw new ZapierApprovalError(
4824
+ message || "Request explicitly denied by policy",
4825
+ {
4826
+ status: "policy_denied",
4827
+ statusCode: response.status,
4828
+ errors
4829
+ }
4830
+ );
4831
+ }
4832
+ if (errorType !== "approval_required") {
4833
+ return response;
4834
+ }
4835
+ if (approvalRoundError) {
4836
+ throw approvalRoundError;
4837
+ }
4838
+ if (approvalMode === "disabled") {
4839
+ throw new ZapierApprovalError(
4840
+ "Approvals are disabled. Set approvalMode to 'poll' or 'throw' (or ZAPIER_APPROVAL_MODE) to enable.",
4841
+ { status: "approval_required" }
4842
+ );
4843
+ }
4844
+ if (!approvalContext) {
4845
+ throw new ZapierApiError(
4846
+ `Received 403 approval_required for ${path}, but the caller did not provide an approvalContext builder. Every approval-capable request must pass approvalContext so the SDK can create the approval with the correct policy context.`,
4847
+ { statusCode: 403 }
4710
4848
  );
4711
4849
  }
4712
4850
  throw new ZapierApprovalError(
@@ -4968,40 +5106,60 @@ var ZapierApiClient = class {
4968
5106
  }
4969
5107
  // Apply any special routing logic for configured paths.
4970
5108
  applyPathConfiguration(path) {
4971
- const matchingPathKey = Object.keys(pathConfig).find(
4972
- (configPath) => path === configPath || path.startsWith(configPath + "/")
4973
- );
4974
- const config = matchingPathKey ? pathConfig[matchingPathKey] : void 0;
5109
+ const matchingPathEntries = findPathConfigEntries({ path });
5110
+ const routingMatch = matchingPathEntries[0];
5111
+ const buildResult = (url2) => {
5112
+ const resolvedPathEntries = findPathConfigEntries({
5113
+ path: url2.pathname,
5114
+ matchResolvedGatewayPath: true
5115
+ });
5116
+ const deprecationPathMatches = [
5117
+ ...matchingPathEntries,
5118
+ ...resolvedPathEntries
5119
+ ];
5120
+ const canSendDeprecationMessaging = deprecationPathMatches.length > 0 && deprecationPathMatches.every(
5121
+ ({ config }) => config.omitDeprecationMessaging !== true
5122
+ );
5123
+ return {
5124
+ url: url2,
5125
+ pathConfig: routingMatch?.config,
5126
+ canSendDeprecationMessaging
5127
+ };
5128
+ };
4975
5129
  let finalPath = path;
4976
- if (config && "pathPrefix" in config && config.pathPrefix && matchingPathKey) {
4977
- const pathWithoutPrefix = path.slice(matchingPathKey.length) || "/";
4978
- finalPath = `${config.pathPrefix}${pathWithoutPrefix}`;
5130
+ if (routingMatch?.config.pathPrefix) {
5131
+ const pathWithoutPrefix = path.slice(routingMatch.configPath.length) || "/";
5132
+ finalPath = `${routingMatch.config.pathPrefix}${pathWithoutPrefix}`;
4979
5133
  }
4980
5134
  const zapierBaseUrl = getZapierBaseUrl(this.options.baseUrl);
4981
5135
  if (zapierBaseUrl === this.options.baseUrl.replace(/\/$/, "")) {
4982
5136
  const originalBaseUrl = new URL(this.options.baseUrl);
4983
5137
  const finalBaseUrl = `https://sdkapi.${originalBaseUrl.hostname}`;
4984
- return {
4985
- url: new URL(finalPath, finalBaseUrl),
4986
- pathConfig: config
4987
- };
5138
+ const url2 = new URL(finalPath, finalBaseUrl);
5139
+ return buildResult(url2);
4988
5140
  }
4989
5141
  const baseUrl = new URL(this.options.baseUrl);
4990
5142
  const basePath = baseUrl.pathname.replace(/\/$/, "");
4991
- return {
4992
- url: new URL(basePath + finalPath, baseUrl.origin),
4993
- pathConfig: config
4994
- };
5143
+ const url = new URL(basePath + finalPath, baseUrl.origin);
5144
+ return buildResult(url);
4995
5145
  }
4996
5146
  // Helper to build full URLs and return routing info
4997
5147
  buildUrl(path, searchParams) {
4998
- const { url, pathConfig: config } = this.applyPathConfiguration(path);
5148
+ const {
5149
+ url,
5150
+ pathConfig: config,
5151
+ canSendDeprecationMessaging
5152
+ } = this.applyPathConfiguration(path);
4999
5153
  if (searchParams) {
5000
5154
  Object.entries(searchParams).forEach(([key, value]) => {
5001
5155
  url.searchParams.set(key, value);
5002
5156
  });
5003
5157
  }
5004
- return { url: url.toString(), pathConfig: config };
5158
+ return {
5159
+ url: url.toString(),
5160
+ pathConfig: config,
5161
+ canSendDeprecationMessaging
5162
+ };
5005
5163
  }
5006
5164
  // Helper to build headers
5007
5165
  async buildHeaders(options = {}, pathConfig2) {
@@ -14214,6 +14372,7 @@ exports.DEFAULT_APPROVAL_TIMEOUT_MS = DEFAULT_APPROVAL_TIMEOUT_MS;
14214
14372
  exports.DEFAULT_CONFIG_PATH = DEFAULT_CONFIG_PATH;
14215
14373
  exports.DEFAULT_MAX_APPROVAL_RETRIES = DEFAULT_MAX_APPROVAL_RETRIES;
14216
14374
  exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
14375
+ exports.DEPRECATION_NOTICE_EVENT = DEPRECATION_NOTICE_EVENT;
14217
14376
  exports.DebugPropertySchema = DebugPropertySchema;
14218
14377
  exports.FieldsPropertySchema = FieldsPropertySchema;
14219
14378
  exports.InputFieldPropertySchema = InputFieldPropertySchema;
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-BgbftweS.mjs';
2
- export { H as Action, cv as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b7 as ActionItem, bJ as ActionKeyProperty, bh as ActionKeyPropertySchema, bK as ActionProperty, bi as ActionPropertySchema, aW as ActionResolverItem, bV as ActionTimeoutMsProperty, bt as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bI as ActionTypeProperty, bg as ActionTypePropertySchema, cr as ApiError, dX as ApiEvent, dc as ApiPluginOptions, de as ApiPluginProvides, I as App, cw as AppFactoryInput, b5 as AppItem, bG as AppKeyProperty, be as AppKeyPropertySchema, bH as AppProperty, bf as AppPropertySchema, f5 as ApplicationLifecycleEventData, cn as ApprovalStatus, cu as AppsPluginProvides, b_ as AppsProperty, by as AppsPropertySchema, al as ArrayResolver, dW as AuthEvent, dH as AuthMechanism, bO as AuthenticationIdProperty, bl as AuthenticationIdPropertySchema, fd as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d0 as CONTEXT_CACHE_MAX_SIZE, c$ as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e1 as ClientCredentialsObject, ec as ClientCredentialsObjectSchema, $ as Connection, ek as ConnectionEntry, ej as ConnectionEntrySchema, bM as ConnectionIdProperty, bk as ConnectionIdPropertySchema, b6 as ConnectionItem, bN as ConnectionProperty, bm as ConnectionPropertySchema, em as ConnectionsMap, el as ConnectionsMapSchema, eo as ConnectionsPluginProvides, c0 as ConnectionsProperty, bA as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cO as CreateClientCredentialsPluginProvides, eP as CreateTableFieldsPluginProvides, eJ as CreateTablePluginProvides, eX as CreateTableRecordsPluginProvides, d_ as Credentials, eh as CredentialsFunction, eg as CredentialsFunctionSchema, e0 as CredentialsObject, ee as CredentialsObjectSchema, ei as CredentialsSchema, et as DEFAULT_ACTION_TIMEOUT_MS, eC as DEFAULT_APPROVAL_TIMEOUT_MS, d9 as DEFAULT_CONFIG_PATH, eD as DEFAULT_MAX_APPROVAL_RETRIES, es as DEFAULT_PAGE_SIZE, bT as DebugProperty, br as DebugPropertySchema, cQ as DeleteClientCredentialsPluginProvides, eR as DeleteTableFieldsPluginProvides, eL as DeleteTablePluginProvides, eZ as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ao as DynamicListResolver, ap as DynamicSearchResolver, f6 as EnhancedErrorEventData, c6 as ErrorOptions, dZ as EventCallback, f4 as EventContext, f1 as EventEmissionConfig, f3 as EventEmissionProvides, cy as FetchPluginProvides, J as Field, bZ as FieldsProperty, bx as FieldsPropertySchema, aq as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cY as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, c_ as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cI as GetActionInputFieldsSchemaPluginProvides, cU as GetActionPluginProvides, cS as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cW as GetConnectionPluginProvides, eH as GetTablePluginProvides, eT as GetTableRecordPluginProvides, b9 as InfoFieldItem, b8 as InputFieldItem, bL as InputFieldProperty, bj as InputFieldPropertySchema, bP as InputsProperty, bn as InputsPropertySchema, b4 as JsonSseMessage, c5 as LeaseLimitProperty, bF as LeaseLimitPropertySchema, c3 as LeaseProperty, bD as LeasePropertySchema, c4 as LeaseSecondsProperty, bE as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bQ as LimitProperty, bo as LimitPropertySchema, cG as ListActionInputFieldChoicesPluginProvides, cE as ListActionInputFieldsPluginProvides, cC as ListActionsPluginProvides, cA as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cM as ListClientCredentialsPluginProvides, cK as ListConnectionsPluginProvides, eN as ListTableFieldsPluginProvides, eV as ListTableRecordsPluginProvides, eF as ListTablesPluginProvides, dY as LoadingEvent, ew as MAX_CONCURRENCY_LIMIT, er as MAX_PAGE_LIMIT, da as ManifestEntry, d5 as ManifestPluginOptions, d8 as ManifestPluginProvides, fe as MethodCalledEvent, f7 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bR as OffsetProperty, bp as OffsetPropertySchema, bS as OutputProperty, bq as OutputPropertySchema, bd as PaginatedSdkFunction, bU as ParamsProperty, bs as ParamsPropertySchema, e2 as PkceCredentialsObject, ed as PkceCredentialsObjectSchema, aQ as Plugin, aR as PluginProvides, a$ as PollOptions, cl as RateLimitInfo, bX as RecordProperty, bv as RecordPropertySchema, bY as RecordsProperty, bw as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d4 as RequestPluginProvides, dG as ResolveAuthTokenOptions, e7 as ResolveCredentialsOptions, dI as ResolvedAuth, d$ as ResolvedCredentials, ef as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, ba as RootFieldItem, d2 as RunActionPluginProvides, dV as SdkEvent, bc as SdkPage, b3 as SseMessage, an as StaticResolver, bW as TableProperty, bu as TablePropertySchema, b$ as TablesProperty, bz as TablesPropertySchema, c2 as TriggerInboxNameProperty, bC as TriggerInboxNamePropertySchema, c1 as TriggerInboxProperty, bB as TriggerInboxPropertySchema, T as TriggerMessageStatus, e$ as UpdateTableRecordsPluginProvides, a1 as UserProfile, bb as UserProfileItem, ep as ZAPIER_BASE_URL, ey as ZAPIER_MAX_CONCURRENT_REQUESTS, eu as ZAPIER_MAX_NETWORK_RETRIES, ev as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cj as ZapierActionError, cc as ZapierApiError, cd as ZapierAppNotFoundError, co as ZapierApprovalError, ca as ZapierAuthenticationError, ch as ZapierBundleError, dR as ZapierCache, dS as ZapierCacheEntry, dT as ZapierCacheSetOptions, cg as ZapierConfigurationError, ck as ZapierConflictError, c7 as ZapierError, ce as ZapierNotFoundError, cm as ZapierRateLimitError, cp as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cf as ZapierResourceNotFoundError, cs as ZapierSignal, ci as ZapierTimeoutError, c9 as ZapierUnknownError, c8 as ZapierValidationError, dh as actionKeyResolver, dg as actionTypeResolver, a6 as addPlugin, dd as apiPlugin, df as appKeyResolver, ct as appsPlugin, dj as authenticationIdGenericResolver, di as authenticationIdResolver, ay as batch, f8 as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fa as buildErrorEvent, f9 as buildErrorEventWithContext, fc as buildMethodCalledEvent, f0 as cleanupEventListeners, dJ as clearTokenCache, dn as clientCredentialsNameResolver, dp as clientIdResolver, aV as composePlugins, dj as connectionIdGenericResolver, di as connectionIdResolver, en as connectionsPlugin, fb as createBaseEvent, cN as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dU as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eO as createTableFieldsPlugin, eI as createTablePlugin, eW as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cP as deleteClientCredentialsPlugin, eQ as deleteTableFieldsPlugin, eK as deleteTablePlugin, eY as deleteTableRecordsPlugin, dt as durableRunIdResolver, f2 as eventEmissionPlugin, cx as fetchPlugin, cX as findFirstConnectionPlugin, cZ as findUniqueConnectionPlugin, cq as formatErrorMessage, a8 as fromFunctionPlugin, ff as generateEventId, cH as getActionInputFieldsSchemaPlugin, cT as getActionPlugin, aY as getAgent, cR as getAppPlugin, ea as getBaseUrlFromCredentials, at as getCallerContext, fl as getCiPlatform, eb as getClientIdFromCredentials, cV as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fn as getCpuTime, fg as getCurrentTimestamp, fm as getMemoryUsage, b1 as getOrCreateApiClient, fi as getOsInfo, fj as getPlatformVersions, d6 as getPreferredManifestEntryKey, db as getProfilePlugin, fh as getReleaseId, eG as getTablePlugin, eS as getTableRecordPlugin, dN as getTokenFromCliLogin, fo as getTtyContext, ez as getZapierApprovalMode, eB as getZapierDefaultApprovalMode, eA as getZapierOpenAutoModeApprovalsInBrowser, eq as getZapierSdkService, dL as injectCliLogin, dm as inputFieldKeyResolver, dl as inputsAllOptionalResolver, dk as inputsResolver, dK as invalidateCachedToken, dQ as invalidateCredentialsToken, fk as isCi, dM as isCliLoginAvailable, e3 as isClientCredentials, aL as isCoreError, e6 as isCredentialsFunction, e5 as isCredentialsObject, b2 as isPermanentHttpError, e4 as isPkceCredentials, a2 as isPositional, cF as listActionInputFieldChoicesPlugin, cD as listActionInputFieldsPlugin, cB as listActionsPlugin, cz as listAppsPlugin, cL as listClientCredentialsPlugin, cJ as listConnectionsPlugin, eM as listTableFieldsPlugin, eU as listTableRecordsPlugin, eE as listTablesPlugin, aB as logDeprecation, d7 as manifestPlugin, ex as parseConcurrencyEnvVar, aZ as registryPlugin, d3 as requestPlugin, aC as resetDeprecationWarnings, dO as resolveAuth, dP as resolveAuthToken, e9 as resolveCredentials, e8 as resolveCredentialsFromEnv, d1 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dz as tableFieldIdsResolver, dB as tableFieldsResolver, dE as tableFiltersResolver, dq as tableIdResolver, dA as tableNameResolver, dx as tableRecordIdResolver, dy as tableRecordIdsResolver, dC as tableRecordsResolver, dF as tableSortResolver, dD as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dr as triggerInboxResolver, dw as triggerMessagesResolver, e_ as updateTableRecordsPlugin, ds as workflowIdResolver, dv as workflowRunIdResolver, du as workflowVersionIdResolver, cb as zapierAdaptError, ag as zapierSdkPlugin } from './index-BgbftweS.mjs';
1
+ import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-DgX1b0Sv.mjs';
2
+ export { H as Action, cx as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b9 as ActionItem, bL as ActionKeyProperty, bj as ActionKeyPropertySchema, bM as ActionProperty, bk as ActionPropertySchema, aW as ActionResolverItem, bX as ActionTimeoutMsProperty, bv as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bK as ActionTypeProperty, bi as ActionTypePropertySchema, ct as ApiError, dZ as ApiEvent, de as ApiPluginOptions, dg as ApiPluginProvides, I as App, cy as AppFactoryInput, b7 as AppItem, bI as AppKeyProperty, bg as AppKeyPropertySchema, bJ as AppProperty, bh as AppPropertySchema, f7 as ApplicationLifecycleEventData, cp as ApprovalStatus, cw as AppsPluginProvides, c0 as AppsProperty, bA as AppsPropertySchema, al as ArrayResolver, dY as AuthEvent, dJ as AuthMechanism, bQ as AuthenticationIdProperty, bn as AuthenticationIdPropertySchema, ff as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d2 as CONTEXT_CACHE_MAX_SIZE, d1 as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e3 as ClientCredentialsObject, ee as ClientCredentialsObjectSchema, $ as Connection, em as ConnectionEntry, el as ConnectionEntrySchema, bO as ConnectionIdProperty, bm as ConnectionIdPropertySchema, b8 as ConnectionItem, bP as ConnectionProperty, bo as ConnectionPropertySchema, eo as ConnectionsMap, en as ConnectionsMapSchema, eq as ConnectionsPluginProvides, c2 as ConnectionsProperty, bC as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cQ as CreateClientCredentialsPluginProvides, eR as CreateTableFieldsPluginProvides, eL as CreateTablePluginProvides, eZ as CreateTableRecordsPluginProvides, e0 as Credentials, ej as CredentialsFunction, ei as CredentialsFunctionSchema, e2 as CredentialsObject, eg as CredentialsObjectSchema, ek as CredentialsSchema, ev as DEFAULT_ACTION_TIMEOUT_MS, eE as DEFAULT_APPROVAL_TIMEOUT_MS, db as DEFAULT_CONFIG_PATH, eF as DEFAULT_MAX_APPROVAL_RETRIES, eu as DEFAULT_PAGE_SIZE, b5 as DEPRECATION_NOTICE_EVENT, bV as DebugProperty, bt as DebugPropertySchema, cS as DeleteClientCredentialsPluginProvides, eT as DeleteTableFieldsPluginProvides, eN as DeleteTablePluginProvides, e$ as DeleteTableRecordsPluginProvides, b6 as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ao as DynamicListResolver, ap as DynamicSearchResolver, f8 as EnhancedErrorEventData, c8 as ErrorOptions, d$ as EventCallback, f6 as EventContext, f3 as EventEmissionConfig, f5 as EventEmissionProvides, cA as FetchPluginProvides, J as Field, b$ as FieldsProperty, bz as FieldsPropertySchema, aq as FieldsResolver, y as FindFirstAuthenticationPluginProvides, c_ as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, d0 as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cK as GetActionInputFieldsSchemaPluginProvides, cW as GetActionPluginProvides, cU as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cY as GetConnectionPluginProvides, eJ as GetTablePluginProvides, eV as GetTableRecordPluginProvides, bb as InfoFieldItem, ba as InputFieldItem, bN as InputFieldProperty, bl as InputFieldPropertySchema, bR as InputsProperty, bp as InputsPropertySchema, b4 as JsonSseMessage, c7 as LeaseLimitProperty, bH as LeaseLimitPropertySchema, c5 as LeaseProperty, bF as LeasePropertySchema, c6 as LeaseSecondsProperty, bG as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bS as LimitProperty, bq as LimitPropertySchema, cI as ListActionInputFieldChoicesPluginProvides, cG as ListActionInputFieldsPluginProvides, cE as ListActionsPluginProvides, cC as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cO as ListClientCredentialsPluginProvides, cM as ListConnectionsPluginProvides, eP as ListTableFieldsPluginProvides, eX as ListTableRecordsPluginProvides, eH as ListTablesPluginProvides, d_ as LoadingEvent, ey as MAX_CONCURRENCY_LIMIT, et as MAX_PAGE_LIMIT, dc as ManifestEntry, d7 as ManifestPluginOptions, da as ManifestPluginProvides, fg as MethodCalledEvent, f9 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bT as OffsetProperty, br as OffsetPropertySchema, bU as OutputProperty, bs as OutputPropertySchema, bf as PaginatedSdkFunction, bW as ParamsProperty, bu as ParamsPropertySchema, e4 as PkceCredentialsObject, ef as PkceCredentialsObjectSchema, aQ as Plugin, aR as PluginProvides, a$ as PollOptions, cn as RateLimitInfo, bZ as RecordProperty, bx as RecordPropertySchema, b_ as RecordsProperty, by as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d6 as RequestPluginProvides, dI as ResolveAuthTokenOptions, e9 as ResolveCredentialsOptions, dK as ResolvedAuth, e1 as ResolvedCredentials, eh as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, bc as RootFieldItem, d4 as RunActionPluginProvides, dX as SdkEvent, be as SdkPage, b3 as SseMessage, an as StaticResolver, bY as TableProperty, bw as TablePropertySchema, c1 as TablesProperty, bB as TablesPropertySchema, c4 as TriggerInboxNameProperty, bE as TriggerInboxNamePropertySchema, c3 as TriggerInboxProperty, bD as TriggerInboxPropertySchema, T as TriggerMessageStatus, f1 as UpdateTableRecordsPluginProvides, a1 as UserProfile, bd as UserProfileItem, er as ZAPIER_BASE_URL, eA as ZAPIER_MAX_CONCURRENT_REQUESTS, ew as ZAPIER_MAX_NETWORK_RETRIES, ex as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cl as ZapierActionError, ce as ZapierApiError, cf as ZapierAppNotFoundError, cq as ZapierApprovalError, cc as ZapierAuthenticationError, cj as ZapierBundleError, dT as ZapierCache, dU as ZapierCacheEntry, dV as ZapierCacheSetOptions, ci as ZapierConfigurationError, cm as ZapierConflictError, c9 as ZapierError, cg as ZapierNotFoundError, co as ZapierRateLimitError, cr as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, ch as ZapierResourceNotFoundError, cu as ZapierSignal, ck as ZapierTimeoutError, cb as ZapierUnknownError, ca as ZapierValidationError, dj as actionKeyResolver, di as actionTypeResolver, a6 as addPlugin, df as apiPlugin, dh as appKeyResolver, cv as appsPlugin, dl as authenticationIdGenericResolver, dk as authenticationIdResolver, ay as batch, fa as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fc as buildErrorEvent, fb as buildErrorEventWithContext, fe as buildMethodCalledEvent, f2 as cleanupEventListeners, dL as clearTokenCache, dq as clientCredentialsNameResolver, dr as clientIdResolver, aV as composePlugins, dl as connectionIdGenericResolver, dk as connectionIdResolver, ep as connectionsPlugin, fd as createBaseEvent, cP as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dW as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eQ as createTableFieldsPlugin, eK as createTablePlugin, eY as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cR as deleteClientCredentialsPlugin, eS as deleteTableFieldsPlugin, eM as deleteTablePlugin, e_ as deleteTableRecordsPlugin, dv as durableRunIdResolver, f4 as eventEmissionPlugin, cz as fetchPlugin, cZ as findFirstConnectionPlugin, c$ as findUniqueConnectionPlugin, cs as formatErrorMessage, a8 as fromFunctionPlugin, fh as generateEventId, cJ as getActionInputFieldsSchemaPlugin, cV as getActionPlugin, aY as getAgent, cT as getAppPlugin, ec as getBaseUrlFromCredentials, at as getCallerContext, fn as getCiPlatform, ed as getClientIdFromCredentials, cX as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fp as getCpuTime, fi as getCurrentTimestamp, fo as getMemoryUsage, b1 as getOrCreateApiClient, fk as getOsInfo, fl as getPlatformVersions, d8 as getPreferredManifestEntryKey, dd as getProfilePlugin, fj as getReleaseId, eI as getTablePlugin, eU as getTableRecordPlugin, dP as getTokenFromCliLogin, fq as getTtyContext, eB as getZapierApprovalMode, eD as getZapierDefaultApprovalMode, eC as getZapierOpenAutoModeApprovalsInBrowser, es as getZapierSdkService, dN as injectCliLogin, dp as inputFieldKeyResolver, dn as inputsAllOptionalResolver, dm as inputsResolver, dM as invalidateCachedToken, dS as invalidateCredentialsToken, fm as isCi, dO as isCliLoginAvailable, e5 as isClientCredentials, aL as isCoreError, e8 as isCredentialsFunction, e7 as isCredentialsObject, b2 as isPermanentHttpError, e6 as isPkceCredentials, a2 as isPositional, cH as listActionInputFieldChoicesPlugin, cF as listActionInputFieldsPlugin, cD as listActionsPlugin, cB as listAppsPlugin, cN as listClientCredentialsPlugin, cL as listConnectionsPlugin, eO as listTableFieldsPlugin, eW as listTableRecordsPlugin, eG as listTablesPlugin, aB as logDeprecation, d9 as manifestPlugin, ez as parseConcurrencyEnvVar, aZ as registryPlugin, d5 as requestPlugin, aC as resetDeprecationWarnings, dQ as resolveAuth, dR as resolveAuthToken, eb as resolveCredentials, ea as resolveCredentialsFromEnv, d3 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dB as tableFieldIdsResolver, dD as tableFieldsResolver, dG as tableFiltersResolver, ds as tableIdResolver, dC as tableNameResolver, dz as tableRecordIdResolver, dA as tableRecordIdsResolver, dE as tableRecordsResolver, dH as tableSortResolver, dF as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dt as triggerInboxResolver, dy as triggerMessagesResolver, f0 as updateTableRecordsPlugin, du as workflowIdResolver, dx as workflowRunIdResolver, dw as workflowVersionIdResolver, cd as zapierAdaptError, ag as zapierSdkPlugin } from './index-DgX1b0Sv.mjs';
3
3
  import * as zod_v4_core from 'zod/v4/core';
4
4
  import * as zod from 'zod';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-BgbftweS.js';
2
- export { H as Action, cv as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b7 as ActionItem, bJ as ActionKeyProperty, bh as ActionKeyPropertySchema, bK as ActionProperty, bi as ActionPropertySchema, aW as ActionResolverItem, bV as ActionTimeoutMsProperty, bt as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bI as ActionTypeProperty, bg as ActionTypePropertySchema, cr as ApiError, dX as ApiEvent, dc as ApiPluginOptions, de as ApiPluginProvides, I as App, cw as AppFactoryInput, b5 as AppItem, bG as AppKeyProperty, be as AppKeyPropertySchema, bH as AppProperty, bf as AppPropertySchema, f5 as ApplicationLifecycleEventData, cn as ApprovalStatus, cu as AppsPluginProvides, b_ as AppsProperty, by as AppsPropertySchema, al as ArrayResolver, dW as AuthEvent, dH as AuthMechanism, bO as AuthenticationIdProperty, bl as AuthenticationIdPropertySchema, fd as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d0 as CONTEXT_CACHE_MAX_SIZE, c$ as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e1 as ClientCredentialsObject, ec as ClientCredentialsObjectSchema, $ as Connection, ek as ConnectionEntry, ej as ConnectionEntrySchema, bM as ConnectionIdProperty, bk as ConnectionIdPropertySchema, b6 as ConnectionItem, bN as ConnectionProperty, bm as ConnectionPropertySchema, em as ConnectionsMap, el as ConnectionsMapSchema, eo as ConnectionsPluginProvides, c0 as ConnectionsProperty, bA as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cO as CreateClientCredentialsPluginProvides, eP as CreateTableFieldsPluginProvides, eJ as CreateTablePluginProvides, eX as CreateTableRecordsPluginProvides, d_ as Credentials, eh as CredentialsFunction, eg as CredentialsFunctionSchema, e0 as CredentialsObject, ee as CredentialsObjectSchema, ei as CredentialsSchema, et as DEFAULT_ACTION_TIMEOUT_MS, eC as DEFAULT_APPROVAL_TIMEOUT_MS, d9 as DEFAULT_CONFIG_PATH, eD as DEFAULT_MAX_APPROVAL_RETRIES, es as DEFAULT_PAGE_SIZE, bT as DebugProperty, br as DebugPropertySchema, cQ as DeleteClientCredentialsPluginProvides, eR as DeleteTableFieldsPluginProvides, eL as DeleteTablePluginProvides, eZ as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ao as DynamicListResolver, ap as DynamicSearchResolver, f6 as EnhancedErrorEventData, c6 as ErrorOptions, dZ as EventCallback, f4 as EventContext, f1 as EventEmissionConfig, f3 as EventEmissionProvides, cy as FetchPluginProvides, J as Field, bZ as FieldsProperty, bx as FieldsPropertySchema, aq as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cY as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, c_ as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cI as GetActionInputFieldsSchemaPluginProvides, cU as GetActionPluginProvides, cS as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cW as GetConnectionPluginProvides, eH as GetTablePluginProvides, eT as GetTableRecordPluginProvides, b9 as InfoFieldItem, b8 as InputFieldItem, bL as InputFieldProperty, bj as InputFieldPropertySchema, bP as InputsProperty, bn as InputsPropertySchema, b4 as JsonSseMessage, c5 as LeaseLimitProperty, bF as LeaseLimitPropertySchema, c3 as LeaseProperty, bD as LeasePropertySchema, c4 as LeaseSecondsProperty, bE as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bQ as LimitProperty, bo as LimitPropertySchema, cG as ListActionInputFieldChoicesPluginProvides, cE as ListActionInputFieldsPluginProvides, cC as ListActionsPluginProvides, cA as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cM as ListClientCredentialsPluginProvides, cK as ListConnectionsPluginProvides, eN as ListTableFieldsPluginProvides, eV as ListTableRecordsPluginProvides, eF as ListTablesPluginProvides, dY as LoadingEvent, ew as MAX_CONCURRENCY_LIMIT, er as MAX_PAGE_LIMIT, da as ManifestEntry, d5 as ManifestPluginOptions, d8 as ManifestPluginProvides, fe as MethodCalledEvent, f7 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bR as OffsetProperty, bp as OffsetPropertySchema, bS as OutputProperty, bq as OutputPropertySchema, bd as PaginatedSdkFunction, bU as ParamsProperty, bs as ParamsPropertySchema, e2 as PkceCredentialsObject, ed as PkceCredentialsObjectSchema, aQ as Plugin, aR as PluginProvides, a$ as PollOptions, cl as RateLimitInfo, bX as RecordProperty, bv as RecordPropertySchema, bY as RecordsProperty, bw as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d4 as RequestPluginProvides, dG as ResolveAuthTokenOptions, e7 as ResolveCredentialsOptions, dI as ResolvedAuth, d$ as ResolvedCredentials, ef as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, ba as RootFieldItem, d2 as RunActionPluginProvides, dV as SdkEvent, bc as SdkPage, b3 as SseMessage, an as StaticResolver, bW as TableProperty, bu as TablePropertySchema, b$ as TablesProperty, bz as TablesPropertySchema, c2 as TriggerInboxNameProperty, bC as TriggerInboxNamePropertySchema, c1 as TriggerInboxProperty, bB as TriggerInboxPropertySchema, T as TriggerMessageStatus, e$ as UpdateTableRecordsPluginProvides, a1 as UserProfile, bb as UserProfileItem, ep as ZAPIER_BASE_URL, ey as ZAPIER_MAX_CONCURRENT_REQUESTS, eu as ZAPIER_MAX_NETWORK_RETRIES, ev as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cj as ZapierActionError, cc as ZapierApiError, cd as ZapierAppNotFoundError, co as ZapierApprovalError, ca as ZapierAuthenticationError, ch as ZapierBundleError, dR as ZapierCache, dS as ZapierCacheEntry, dT as ZapierCacheSetOptions, cg as ZapierConfigurationError, ck as ZapierConflictError, c7 as ZapierError, ce as ZapierNotFoundError, cm as ZapierRateLimitError, cp as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cf as ZapierResourceNotFoundError, cs as ZapierSignal, ci as ZapierTimeoutError, c9 as ZapierUnknownError, c8 as ZapierValidationError, dh as actionKeyResolver, dg as actionTypeResolver, a6 as addPlugin, dd as apiPlugin, df as appKeyResolver, ct as appsPlugin, dj as authenticationIdGenericResolver, di as authenticationIdResolver, ay as batch, f8 as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fa as buildErrorEvent, f9 as buildErrorEventWithContext, fc as buildMethodCalledEvent, f0 as cleanupEventListeners, dJ as clearTokenCache, dn as clientCredentialsNameResolver, dp as clientIdResolver, aV as composePlugins, dj as connectionIdGenericResolver, di as connectionIdResolver, en as connectionsPlugin, fb as createBaseEvent, cN as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dU as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eO as createTableFieldsPlugin, eI as createTablePlugin, eW as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cP as deleteClientCredentialsPlugin, eQ as deleteTableFieldsPlugin, eK as deleteTablePlugin, eY as deleteTableRecordsPlugin, dt as durableRunIdResolver, f2 as eventEmissionPlugin, cx as fetchPlugin, cX as findFirstConnectionPlugin, cZ as findUniqueConnectionPlugin, cq as formatErrorMessage, a8 as fromFunctionPlugin, ff as generateEventId, cH as getActionInputFieldsSchemaPlugin, cT as getActionPlugin, aY as getAgent, cR as getAppPlugin, ea as getBaseUrlFromCredentials, at as getCallerContext, fl as getCiPlatform, eb as getClientIdFromCredentials, cV as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fn as getCpuTime, fg as getCurrentTimestamp, fm as getMemoryUsage, b1 as getOrCreateApiClient, fi as getOsInfo, fj as getPlatformVersions, d6 as getPreferredManifestEntryKey, db as getProfilePlugin, fh as getReleaseId, eG as getTablePlugin, eS as getTableRecordPlugin, dN as getTokenFromCliLogin, fo as getTtyContext, ez as getZapierApprovalMode, eB as getZapierDefaultApprovalMode, eA as getZapierOpenAutoModeApprovalsInBrowser, eq as getZapierSdkService, dL as injectCliLogin, dm as inputFieldKeyResolver, dl as inputsAllOptionalResolver, dk as inputsResolver, dK as invalidateCachedToken, dQ as invalidateCredentialsToken, fk as isCi, dM as isCliLoginAvailable, e3 as isClientCredentials, aL as isCoreError, e6 as isCredentialsFunction, e5 as isCredentialsObject, b2 as isPermanentHttpError, e4 as isPkceCredentials, a2 as isPositional, cF as listActionInputFieldChoicesPlugin, cD as listActionInputFieldsPlugin, cB as listActionsPlugin, cz as listAppsPlugin, cL as listClientCredentialsPlugin, cJ as listConnectionsPlugin, eM as listTableFieldsPlugin, eU as listTableRecordsPlugin, eE as listTablesPlugin, aB as logDeprecation, d7 as manifestPlugin, ex as parseConcurrencyEnvVar, aZ as registryPlugin, d3 as requestPlugin, aC as resetDeprecationWarnings, dO as resolveAuth, dP as resolveAuthToken, e9 as resolveCredentials, e8 as resolveCredentialsFromEnv, d1 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dz as tableFieldIdsResolver, dB as tableFieldsResolver, dE as tableFiltersResolver, dq as tableIdResolver, dA as tableNameResolver, dx as tableRecordIdResolver, dy as tableRecordIdsResolver, dC as tableRecordsResolver, dF as tableSortResolver, dD as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dr as triggerInboxResolver, dw as triggerMessagesResolver, e_ as updateTableRecordsPlugin, ds as workflowIdResolver, dv as workflowRunIdResolver, du as workflowVersionIdResolver, cb as zapierAdaptError, ag as zapierSdkPlugin } from './index-BgbftweS.js';
1
+ import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver$1, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as RegistryResult, S as SdkContext } from './index-DgX1b0Sv.js';
2
+ export { H as Action, cx as ActionExecutionOptions, Q as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, b9 as ActionItem, bL as ActionKeyProperty, bj as ActionKeyPropertySchema, bM as ActionProperty, bk as ActionPropertySchema, aW as ActionResolverItem, bX as ActionTimeoutMsProperty, bv as ActionTimeoutMsPropertySchema, aX as ActionTypeItem, bK as ActionTypeProperty, bi as ActionTypePropertySchema, ct as ApiError, dZ as ApiEvent, de as ApiPluginOptions, dg as ApiPluginProvides, I as App, cy as AppFactoryInput, b7 as AppItem, bI as AppKeyProperty, bg as AppKeyPropertySchema, bJ as AppProperty, bh as AppPropertySchema, f7 as ApplicationLifecycleEventData, cp as ApprovalStatus, cw as AppsPluginProvides, c0 as AppsProperty, bA as AppsPropertySchema, al as ArrayResolver, dY as AuthEvent, dJ as AuthMechanism, bQ as AuthenticationIdProperty, bn as AuthenticationIdPropertySchema, ff as BaseEvent, aK as BaseSdkOptionsSchema, az as BatchOptions, ai as BoundFormatter, d2 as CONTEXT_CACHE_MAX_SIZE, d1 as CONTEXT_CACHE_TTL_MS, aO as CORE_ERROR_SYMBOL, av as CallerContext, K as Choice, e3 as ClientCredentialsObject, ee as ClientCredentialsObjectSchema, $ as Connection, em as ConnectionEntry, el as ConnectionEntrySchema, bO as ConnectionIdProperty, bm as ConnectionIdPropertySchema, b8 as ConnectionItem, bP as ConnectionProperty, bo as ConnectionPropertySchema, eo as ConnectionsMap, en as ConnectionsMapSchema, eq as ConnectionsPluginProvides, c2 as ConnectionsProperty, bC as ConnectionsPropertySchema, a0 as ConnectionsResponse, aP as CoreErrorCode, cQ as CreateClientCredentialsPluginProvides, eR as CreateTableFieldsPluginProvides, eL as CreateTablePluginProvides, eZ as CreateTableRecordsPluginProvides, e0 as Credentials, ej as CredentialsFunction, ei as CredentialsFunctionSchema, e2 as CredentialsObject, eg as CredentialsObjectSchema, ek as CredentialsSchema, ev as DEFAULT_ACTION_TIMEOUT_MS, eE as DEFAULT_APPROVAL_TIMEOUT_MS, db as DEFAULT_CONFIG_PATH, eF as DEFAULT_MAX_APPROVAL_RETRIES, eu as DEFAULT_PAGE_SIZE, b5 as DEPRECATION_NOTICE_EVENT, bV as DebugProperty, bt as DebugPropertySchema, cS as DeleteClientCredentialsPluginProvides, eT as DeleteTableFieldsPluginProvides, eN as DeleteTablePluginProvides, e$ as DeleteTableRecordsPluginProvides, b6 as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ao as DynamicListResolver, ap as DynamicSearchResolver, f8 as EnhancedErrorEventData, c8 as ErrorOptions, d$ as EventCallback, f6 as EventContext, f3 as EventEmissionConfig, f5 as EventEmissionProvides, cA as FetchPluginProvides, J as Field, b$ as FieldsProperty, bz as FieldsPropertySchema, aq as FieldsResolver, y as FindFirstAuthenticationPluginProvides, c_ as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, d0 as FindUniqueConnectionPluginProvides, ah as FormattedItem, aj as Formatter, aJ as FunctionDeprecation, aI as FunctionRegistryEntry, cK as GetActionInputFieldsSchemaPluginProvides, cW as GetActionPluginProvides, cU as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cY as GetConnectionPluginProvides, eJ as GetTablePluginProvides, eV as GetTableRecordPluginProvides, bb as InfoFieldItem, ba as InputFieldItem, bN as InputFieldProperty, bl as InputFieldPropertySchema, bR as InputsProperty, bp as InputsPropertySchema, b4 as JsonSseMessage, c7 as LeaseLimitProperty, bH as LeaseLimitPropertySchema, c5 as LeaseProperty, bF as LeasePropertySchema, c6 as LeaseSecondsProperty, bG as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bS as LimitProperty, bq as LimitPropertySchema, cI as ListActionInputFieldChoicesPluginProvides, cG as ListActionInputFieldsPluginProvides, cE as ListActionsPluginProvides, cC as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cO as ListClientCredentialsPluginProvides, cM as ListConnectionsPluginProvides, eP as ListTableFieldsPluginProvides, eX as ListTableRecordsPluginProvides, eH as ListTablesPluginProvides, d_ as LoadingEvent, ey as MAX_CONCURRENCY_LIMIT, et as MAX_PAGE_LIMIT, dc as ManifestEntry, d7 as ManifestPluginOptions, da as ManifestPluginProvides, fg as MethodCalledEvent, f9 as MethodCalledEventData, N as Need, Y as NeedsRequest, _ as NeedsResponse, bT as OffsetProperty, br as OffsetPropertySchema, bU as OutputProperty, bs as OutputPropertySchema, bf as PaginatedSdkFunction, bW as ParamsProperty, bu as ParamsPropertySchema, e4 as PkceCredentialsObject, ef as PkceCredentialsObjectSchema, aQ as Plugin, aR as PluginProvides, a$ as PollOptions, cn as RateLimitInfo, bZ as RecordProperty, bx as RecordPropertySchema, b_ as RecordsProperty, by as RecordsPropertySchema, aE as RelayFetchSchema, aD as RelayRequestSchema, a_ as RequestOptions, d6 as RequestPluginProvides, dI as ResolveAuthTokenOptions, e9 as ResolveCredentialsOptions, dK as ResolvedAuth, e1 as ResolvedCredentials, eh as ResolvedCredentialsSchema, ak as Resolver, am as ResolverMetadata, bc as RootFieldItem, d4 as RunActionPluginProvides, dX as SdkEvent, be as SdkPage, b3 as SseMessage, an as StaticResolver, bY as TableProperty, bw as TablePropertySchema, c1 as TablesProperty, bB as TablesPropertySchema, c4 as TriggerInboxNameProperty, bE as TriggerInboxNamePropertySchema, c3 as TriggerInboxProperty, bD as TriggerInboxPropertySchema, T as TriggerMessageStatus, f1 as UpdateTableRecordsPluginProvides, a1 as UserProfile, bd as UserProfileItem, er as ZAPIER_BASE_URL, eA as ZAPIER_MAX_CONCURRENT_REQUESTS, ew as ZAPIER_MAX_NETWORK_RETRIES, ex as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cl as ZapierActionError, ce as ZapierApiError, cf as ZapierAppNotFoundError, cq as ZapierApprovalError, cc as ZapierAuthenticationError, cj as ZapierBundleError, dT as ZapierCache, dU as ZapierCacheEntry, dV as ZapierCacheSetOptions, ci as ZapierConfigurationError, cm as ZapierConflictError, c9 as ZapierError, cg as ZapierNotFoundError, co as ZapierRateLimitError, cr as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, ch as ZapierResourceNotFoundError, cu as ZapierSignal, ck as ZapierTimeoutError, cb as ZapierUnknownError, ca as ZapierValidationError, dj as actionKeyResolver, di as actionTypeResolver, a6 as addPlugin, df as apiPlugin, dh as appKeyResolver, cv as appsPlugin, dl as authenticationIdGenericResolver, dk as authenticationIdResolver, ay as batch, fa as buildApplicationLifecycleEvent, aA as buildCapabilityMessage, fc as buildErrorEvent, fb as buildErrorEventWithContext, fe as buildMethodCalledEvent, f2 as cleanupEventListeners, dL as clearTokenCache, dq as clientCredentialsNameResolver, dr as clientIdResolver, aV as composePlugins, dl as connectionIdGenericResolver, dk as connectionIdResolver, ep as connectionsPlugin, fd as createBaseEvent, cP as createClientCredentialsPlugin, a5 as createCorePlugin, a3 as createFunction, dW as createMemoryCache, aG as createOptionsPlugin, aU as createPaginatedPluginMethod, aT as createPluginMethod, a4 as createPluginStack, a7 as createSdk, eQ as createTableFieldsPlugin, eK as createTablePlugin, eY as createTableRecordsPlugin, b0 as createZapierApi, aH as createZapierCoreStack, aF as createZapierSdkWithoutRegistry, aa as dangerousContextPlugin, ae as declareMethod, af as declareProperty, a9 as defineLegacyMerge, ac as defineMethod, aS as definePlugin, ad as defineProperty, cR as deleteClientCredentialsPlugin, eS as deleteTableFieldsPlugin, eM as deleteTablePlugin, e_ as deleteTableRecordsPlugin, dv as durableRunIdResolver, f4 as eventEmissionPlugin, cz as fetchPlugin, cZ as findFirstConnectionPlugin, c$ as findUniqueConnectionPlugin, cs as formatErrorMessage, a8 as fromFunctionPlugin, fh as generateEventId, cJ as getActionInputFieldsSchemaPlugin, cV as getActionPlugin, aY as getAgent, cT as getAppPlugin, ec as getBaseUrlFromCredentials, at as getCallerContext, fn as getCiPlatform, ed as getClientIdFromCredentials, cX as getConnectionPlugin, ab as getContext, aN as getCoreErrorCause, aM as getCoreErrorCode, fp as getCpuTime, fi as getCurrentTimestamp, fo as getMemoryUsage, b1 as getOrCreateApiClient, fk as getOsInfo, fl as getPlatformVersions, d8 as getPreferredManifestEntryKey, dd as getProfilePlugin, fj as getReleaseId, eI as getTablePlugin, eU as getTableRecordPlugin, dP as getTokenFromCliLogin, fq as getTtyContext, eB as getZapierApprovalMode, eD as getZapierDefaultApprovalMode, eC as getZapierOpenAutoModeApprovalsInBrowser, es as getZapierSdkService, dN as injectCliLogin, dp as inputFieldKeyResolver, dn as inputsAllOptionalResolver, dm as inputsResolver, dM as invalidateCachedToken, dS as invalidateCredentialsToken, fm as isCi, dO as isCliLoginAvailable, e5 as isClientCredentials, aL as isCoreError, e8 as isCredentialsFunction, e7 as isCredentialsObject, b2 as isPermanentHttpError, e6 as isPkceCredentials, a2 as isPositional, cH as listActionInputFieldChoicesPlugin, cF as listActionInputFieldsPlugin, cD as listActionsPlugin, cB as listAppsPlugin, cN as listClientCredentialsPlugin, cL as listConnectionsPlugin, eO as listTableFieldsPlugin, eW as listTableRecordsPlugin, eG as listTablesPlugin, aB as logDeprecation, d9 as manifestPlugin, ez as parseConcurrencyEnvVar, aZ as registryPlugin, d5 as requestPlugin, aC as resetDeprecationWarnings, dQ as resolveAuth, dR as resolveAuthToken, eb as resolveCredentials, ea as resolveCredentialsFromEnv, d3 as runActionPlugin, ar as runInMethodScope, au as runWithCallerContext, as as runWithTelemetryContext, dB as tableFieldIdsResolver, dD as tableFieldsResolver, dG as tableFiltersResolver, ds as tableIdResolver, dC as tableNameResolver, dz as tableRecordIdResolver, dA as tableRecordIdsResolver, dE as tableRecordsResolver, dH as tableSortResolver, dF as tableUpdateRecordsResolver, aw as toSnakeCase, ax as toTitleCase, dt as triggerInboxResolver, dy as triggerMessagesResolver, f0 as updateTableRecordsPlugin, du as workflowIdResolver, dx as workflowRunIdResolver, dw as workflowVersionIdResolver, cd as zapierAdaptError, ag as zapierSdkPlugin } from './index-DgX1b0Sv.js';
3
3
  import * as zod_v4_core from 'zod/v4/core';
4
4
  import * as zod from 'zod';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';