@zapier/zapier-sdk 0.51.0 → 0.52.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.
@@ -150,6 +150,21 @@ function parseIntEnvVar(name) {
150
150
  }
151
151
  var ZAPIER_MAX_NETWORK_RETRIES = parseIntEnvVar("ZAPIER_MAX_NETWORK_RETRIES") ?? 3;
152
152
  var ZAPIER_MAX_NETWORK_RETRY_DELAY_MS = parseIntEnvVar("ZAPIER_MAX_NETWORK_RETRY_DELAY_MS") ?? 6e4;
153
+ var MAX_CONCURRENCY_LIMIT = 1e4;
154
+ function parseConcurrencyEnvVar(name) {
155
+ const value = globalThis.process?.env?.[name];
156
+ if (!value) return void 0;
157
+ if (value === "Infinity") return Infinity;
158
+ if (/^[1-9]\d*$/.test(value)) {
159
+ const parsed = parseInt(value, 10);
160
+ if (parsed <= MAX_CONCURRENCY_LIMIT) return parsed;
161
+ }
162
+ console.warn(
163
+ `[zapier-sdk] Invalid value for ${name}: "${value}" (expected positive integer 1-${MAX_CONCURRENCY_LIMIT} or "Infinity")`
164
+ );
165
+ return void 0;
166
+ }
167
+ var ZAPIER_MAX_CONCURRENT_REQUESTS = parseConcurrencyEnvVar("ZAPIER_MAX_CONCURRENT_REQUESTS") ?? 200;
153
168
  function getZapierApprovalMode() {
154
169
  const value = globalThis.process?.env?.ZAPIER_APPROVAL_MODE;
155
170
  if (value === "disabled" || value === "poll" || value === "throw")
@@ -2177,6 +2192,83 @@ async function pollUntilComplete(options) {
2177
2192
  }
2178
2193
  }
2179
2194
  }
2195
+
2196
+ // src/api/concurrency.ts
2197
+ var NO_OP_RELEASE = () => {
2198
+ };
2199
+ var NO_OP_SEMAPHORE = {
2200
+ acquire: async () => NO_OP_RELEASE,
2201
+ tryAcquire: () => NO_OP_RELEASE
2202
+ };
2203
+ function createSemaphore(maxPermits) {
2204
+ if (maxPermits === Infinity) {
2205
+ return NO_OP_SEMAPHORE;
2206
+ }
2207
+ if (!Number.isInteger(maxPermits) || maxPermits <= 0) {
2208
+ throw new Error(
2209
+ `maxPermits must be a positive integer or Infinity, got: ${maxPermits}`
2210
+ );
2211
+ }
2212
+ let permits = maxPermits;
2213
+ const waiters = [];
2214
+ const release = () => {
2215
+ const next = waiters.shift();
2216
+ if (next) {
2217
+ next.grant();
2218
+ } else {
2219
+ permits++;
2220
+ }
2221
+ };
2222
+ const makeReleaseOnce = () => {
2223
+ let released = false;
2224
+ return () => {
2225
+ if (released) return;
2226
+ released = true;
2227
+ release();
2228
+ };
2229
+ };
2230
+ return {
2231
+ tryAcquire() {
2232
+ if (permits > 0) {
2233
+ permits--;
2234
+ return makeReleaseOnce();
2235
+ }
2236
+ return null;
2237
+ },
2238
+ async acquire(signal) {
2239
+ if (signal?.aborted) {
2240
+ throw signal.reason ?? new DOMException("Aborted", "AbortError");
2241
+ }
2242
+ if (permits > 0) {
2243
+ permits--;
2244
+ return makeReleaseOnce();
2245
+ }
2246
+ return new Promise((resolve2, reject) => {
2247
+ const onAbort = () => {
2248
+ const idx = waiters.indexOf(waiter);
2249
+ if (idx !== -1) {
2250
+ waiters.splice(idx, 1);
2251
+ waiter.cancel(
2252
+ signal?.reason ?? new DOMException("Aborted", "AbortError")
2253
+ );
2254
+ }
2255
+ };
2256
+ const waiter = {
2257
+ grant: () => {
2258
+ signal?.removeEventListener("abort", onAbort);
2259
+ resolve2(makeReleaseOnce());
2260
+ },
2261
+ cancel: (reason) => {
2262
+ signal?.removeEventListener("abort", onAbort);
2263
+ reject(reason);
2264
+ }
2265
+ };
2266
+ signal?.addEventListener("abort", onAbort);
2267
+ waiters.push(waiter);
2268
+ });
2269
+ }
2270
+ };
2271
+ }
2180
2272
  var ClientCredentialsObjectSchema = zod.z.object({
2181
2273
  type: zod.z.enum(["client_credentials"]).optional().meta({ internal: true }),
2182
2274
  clientId: zod.z.string().describe("OAuth client ID for authentication.").meta({ valueHint: "id" }),
@@ -2771,7 +2863,7 @@ async function invalidateCredentialsToken(options) {
2771
2863
  }
2772
2864
 
2773
2865
  // src/sdk-version.ts
2774
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.51.0" : void 0) || "unknown";
2866
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.52.0" : void 0) || "unknown";
2775
2867
 
2776
2868
  // src/utils/open-url.ts
2777
2869
  var nodePrefix = "node:";
@@ -2981,9 +3073,61 @@ var ZapierApiClient = class {
2981
3073
  await sleep(delayMs, init?.signal ?? void 0);
2982
3074
  }
2983
3075
  };
3076
+ /**
3077
+ * Wrap an outbound HTTP call with the concurrency semaphore. Used by both
3078
+ * `rawFetch` (path-based) and the approval-poll path (absolute URL); each
3079
+ * caller acquires per-attempt, so 429 retry sleep is held but the gap
3080
+ * between approval polls and the human-approval wait are not.
3081
+ *
3082
+ * The release is registered in a finally that wraps the entire post-
3083
+ * acquire flow — including the `wait_end` event emission — so a throwing
3084
+ * `onEvent` handler can never leak a permit.
3085
+ *
3086
+ * Slot lifetime is intentionally tied to "fetch resolves" (headers
3087
+ * received), NOT to "response body fully consumed". WHATWG `fetch()`
3088
+ * resolves once headers are in; the body is still streaming. We rely on
3089
+ * that boundary so streaming responses (SSE, long-running chunked reads)
3090
+ * don't pin a permit for the lifetime of the stream — a single SSE
3091
+ * consumer would otherwise hold one of N slots for as long as the
3092
+ * connection stays open. Do not move the release into a path that awaits
3093
+ * body consumption (e.g. `parseResult` / `response.text()`); doing so
3094
+ * would silently break streaming consumers without failing any of the
3095
+ * short-request tests.
3096
+ */
3097
+ this.withSemaphore = async (context, fn) => {
3098
+ const fastRelease = this.semaphore.tryAcquire();
3099
+ let waitStart = null;
3100
+ let release = fastRelease;
3101
+ if (release === null) {
3102
+ waitStart = Date.now();
3103
+ this.emitEvent("api:concurrency_wait_start", {
3104
+ url: context.url,
3105
+ method: context.method
3106
+ });
3107
+ release = await this.semaphore.acquire(context.signal ?? void 0);
3108
+ }
3109
+ const acquiredRelease = release;
3110
+ try {
3111
+ if (waitStart !== null) {
3112
+ this.emitEvent("api:concurrency_wait_end", {
3113
+ url: context.url,
3114
+ method: context.method,
3115
+ waitedMs: Date.now() - waitStart
3116
+ });
3117
+ }
3118
+ return await fn();
3119
+ } finally {
3120
+ acquiredRelease();
3121
+ }
3122
+ };
2984
3123
  /**
2985
3124
  * Perform a request with auth, header merging, and rate-limit (429) retries.
2986
3125
  * Does NOT handle 403 approval_required — that's routed by `fetch`.
3126
+ *
3127
+ * Concurrency: a semaphore slot is held across the entire call, including
3128
+ * the 429 retry sleep inside `rawFetchUrl`. That keeps backpressure
3129
+ * coherent — when the server is rate-limiting us, we don't dump more
3130
+ * parallelism into the queue.
2987
3131
  */
2988
3132
  this.rawFetch = async (path, init) => {
2989
3133
  if (!path.startsWith("/")) {
@@ -2992,7 +3136,10 @@ var ZapierApiClient = class {
2992
3136
  );
2993
3137
  }
2994
3138
  const { url, pathConfig: pathConfig2 } = this.buildUrl(path, init?.searchParams);
2995
- return this.rawFetchUrl(url, init, pathConfig2);
3139
+ return this.withSemaphore(
3140
+ { url, method: init?.method ?? "GET", signal: init?.signal },
3141
+ () => this.rawFetchUrl(url, init, pathConfig2)
3142
+ );
2996
3143
  };
2997
3144
  /**
2998
3145
  * Approval-aware HTTP fetch.
@@ -3100,6 +3247,15 @@ var ZapierApiClient = class {
3100
3247
  };
3101
3248
  this.maxNetworkRetries = options.maxNetworkRetries ?? ZAPIER_MAX_NETWORK_RETRIES;
3102
3249
  this.maxNetworkRetryDelayMs = options.maxNetworkRetryDelayMs ?? ZAPIER_MAX_NETWORK_RETRY_DELAY_MS;
3250
+ const requested = options.maxConcurrentRequests;
3251
+ const limit = requested === void 0 || Number.isNaN(requested) ? ZAPIER_MAX_CONCURRENT_REQUESTS : requested;
3252
+ if (limit !== Infinity && (!Number.isInteger(limit) || limit < 1 || limit > MAX_CONCURRENCY_LIMIT)) {
3253
+ throw new ZapierConfigurationError(
3254
+ `Invalid maxConcurrentRequests: ${limit} (expected positive integer 1-${MAX_CONCURRENCY_LIMIT} or Infinity)`,
3255
+ { configType: "maxConcurrentRequests" }
3256
+ );
3257
+ }
3258
+ this.semaphore = createSemaphore(limit);
3103
3259
  }
3104
3260
  // Emit an event if onEvent handler is configured
3105
3261
  emitEvent(type, payload) {
@@ -3477,10 +3633,16 @@ var ZapierApiClient = class {
3477
3633
  // poll_url is an absolute URL supplied by the server, so we use
3478
3634
  // rawFetchUrl directly (skipping path resolution) but still share
3479
3635
  // auth + interactive-header + 429-retry with the rest of the SDK.
3480
- fetchPoll: () => this.rawFetchUrl(approval.poll_url, {
3481
- method: "GET",
3482
- headers: { Accept: "application/json" }
3483
- }),
3636
+ // Each individual poll request goes through the concurrency
3637
+ // semaphore — but we deliberately do not hold a slot across the
3638
+ // sleep between polls or across the human-approval wait.
3639
+ fetchPoll: () => this.withSemaphore(
3640
+ { url: approval.poll_url, method: "GET" },
3641
+ () => this.rawFetchUrl(approval.poll_url, {
3642
+ method: "GET",
3643
+ headers: { Accept: "application/json" }
3644
+ })
3645
+ ),
3484
3646
  timeoutMs,
3485
3647
  isPending: (body2) => {
3486
3648
  const parsed = PollApprovalResponseSchema.safeParse(body2);
@@ -3582,6 +3744,7 @@ var apiPlugin = definePlugin(
3582
3744
  debug = false,
3583
3745
  maxNetworkRetries = ZAPIER_MAX_NETWORK_RETRIES,
3584
3746
  maxNetworkRetryDelayMs = ZAPIER_MAX_NETWORK_RETRY_DELAY_MS,
3747
+ maxConcurrentRequests = ZAPIER_MAX_CONCURRENT_REQUESTS,
3585
3748
  approvalTimeoutMs,
3586
3749
  maxApprovalRetries,
3587
3750
  approvalMode,
@@ -3596,6 +3759,7 @@ var apiPlugin = definePlugin(
3596
3759
  onEvent,
3597
3760
  maxNetworkRetries,
3598
3761
  maxNetworkRetryDelayMs,
3762
+ maxConcurrentRequests,
3599
3763
  approvalTimeoutMs,
3600
3764
  maxApprovalRetries,
3601
3765
  approvalMode,
@@ -10301,6 +10465,24 @@ var BaseSdkOptionsSchema = zod.z.object({
10301
10465
  * Default is 60000 (60 seconds).
10302
10466
  */
10303
10467
  maxNetworkRetryDelayMs: zod.z.number().optional().describe("Max delay in ms to wait for retry (default: 60000).").meta({ valueHint: "ms" }),
10468
+ /**
10469
+ * Maximum number of concurrent in-flight HTTP requests per client.
10470
+ * Requests beyond this limit queue in FIFO order until a slot frees.
10471
+ * Pass `Infinity` to disable. Default: 200.
10472
+ *
10473
+ * The description and meta are duplicated across the outer wrapper and
10474
+ * the inner numeric branch because the SDK and CLI doc generators walk
10475
+ * the schema differently — the SDK reader looks at wrappers only, while
10476
+ * the CLI reader recurses into union branches.
10477
+ */
10478
+ maxConcurrentRequests: zod.z.union([
10479
+ zod.z.number().int().min(1).max(MAX_CONCURRENCY_LIMIT).describe(
10480
+ `Max concurrent in-flight HTTP requests (default: 200, max: ${MAX_CONCURRENCY_LIMIT}).`
10481
+ ).meta({ valueHint: "count" }),
10482
+ zod.z.literal(Infinity)
10483
+ ]).optional().describe(
10484
+ `Max concurrent in-flight HTTP requests (default: 200, max: ${MAX_CONCURRENCY_LIMIT}).`
10485
+ ).meta({ valueHint: "count" }),
10304
10486
  approvalTimeoutMs: zod.z.number().optional().describe("Timeout in ms for approval polling. Default: 600000 (10 min).").meta({ valueHint: "ms" }),
10305
10487
  maxApprovalRetries: zod.z.number().optional().describe(
10306
10488
  "Maximum number of sequential approval rounds per request (one per gating policy) before giving up. Default: 2."
@@ -10370,6 +10552,7 @@ exports.LeaseLimitPropertySchema = LeaseLimitPropertySchema;
10370
10552
  exports.LeasePropertySchema = LeasePropertySchema;
10371
10553
  exports.LeaseSecondsPropertySchema = LeaseSecondsPropertySchema;
10372
10554
  exports.LimitPropertySchema = LimitPropertySchema;
10555
+ exports.MAX_CONCURRENCY_LIMIT = MAX_CONCURRENCY_LIMIT;
10373
10556
  exports.MAX_PAGE_LIMIT = MAX_PAGE_LIMIT;
10374
10557
  exports.OffsetPropertySchema = OffsetPropertySchema;
10375
10558
  exports.OutputPropertySchema = OutputPropertySchema;
@@ -10385,6 +10568,7 @@ exports.TablesPropertySchema = TablesPropertySchema;
10385
10568
  exports.TriggerInboxNamePropertySchema = TriggerInboxNamePropertySchema;
10386
10569
  exports.TriggerInboxPropertySchema = TriggerInboxPropertySchema;
10387
10570
  exports.ZAPIER_BASE_URL = ZAPIER_BASE_URL;
10571
+ exports.ZAPIER_MAX_CONCURRENT_REQUESTS = ZAPIER_MAX_CONCURRENT_REQUESTS;
10388
10572
  exports.ZAPIER_MAX_NETWORK_RETRIES = ZAPIER_MAX_NETWORK_RETRIES;
10389
10573
  exports.ZAPIER_MAX_NETWORK_RETRY_DELAY_MS = ZAPIER_MAX_NETWORK_RETRY_DELAY_MS;
10390
10574
  exports.ZapierAbortDrainSignal = ZapierAbortDrainSignal;
@@ -10496,6 +10680,7 @@ exports.listTableRecordsPlugin = listTableRecordsPlugin;
10496
10680
  exports.listTablesPlugin = listTablesPlugin;
10497
10681
  exports.logDeprecation = logDeprecation;
10498
10682
  exports.manifestPlugin = manifestPlugin;
10683
+ exports.parseConcurrencyEnvVar = parseConcurrencyEnvVar;
10499
10684
  exports.readManifestFromFile = readManifestFromFile;
10500
10685
  exports.registryPlugin = registryPlugin;
10501
10686
  exports.requestPlugin = requestPlugin;
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-C52BjTXh.mjs';
2
- export { u as Action, cg as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aU as ActionItem, bv as ActionKeyProperty, b3 as ActionKeyPropertySchema, bw as ActionProperty, b4 as ActionPropertySchema, aq as ActionResolverItem, bH as ActionTimeoutMsProperty, bf as ActionTimeoutMsPropertySchema, ar as ActionTypeItem, bu as ActionTypeProperty, b2 as ActionTypePropertySchema, bU as ApiError, dB as ApiEvent, c_ as ApiPluginOptions, d0 as ApiPluginProvides, v as App, ch as AppFactoryInput, aS as AppItem, bs as AppKeyProperty, b0 as AppKeyPropertySchema, bt as AppProperty, b1 as AppPropertySchema, aB as ApplicationLifecycleEventData, c9 as ApprovalStatus, cf as AppsPluginProvides, bM as AppsProperty, bk as AppsPropertySchema, a0 as ArrayResolver, dA as AuthEvent, bA as AuthenticationIdProperty, b7 as AuthenticationIdPropertySchema, ax as BaseEvent, aj as BaseSdkOptionsSchema, a8 as BatchOptions, cN as CONTEXT_CACHE_MAX_SIZE, cM as CONTEXT_CACHE_TTL_MS, x as Choice, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, K as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, by as ConnectionIdProperty, b6 as ConnectionIdPropertySchema, aT as ConnectionItem, bz as ConnectionProperty, b8 as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, e2 as ConnectionsPluginProvides, bO as ConnectionsProperty, bm as ConnectionsPropertySchema, O as ConnectionsResponse, cz as CreateClientCredentialsPluginProvides, eo as CreateTableFieldsPluginProvides, ei as CreateTablePluginProvides, ew as CreateTableRecordsPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MS, eb as DEFAULT_APPROVAL_TIMEOUT_MS, cW as DEFAULT_CONFIG_PATH, ec as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, bF as DebugProperty, bd as DebugPropertySchema, cB as DeleteClientCredentialsPluginProvides, eq as DeleteTableFieldsPluginProvides, ek as DeleteTablePluginProvides, ey as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, aC as EnhancedErrorEventData, bV as ErrorOptions, dD as EventCallback, aA as EventContext, az as EventEmissionProvides, cj as FetchPluginProvides, w as Field, bL as FieldsProperty, bj as FieldsPropertySchema, a3 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cJ as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cL as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ai as FunctionDeprecation, aZ as FunctionOptions, ah as FunctionRegistryEntry, ct as GetActionInputFieldsSchemaPluginProvides, cF as GetActionPluginProvides, cD as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cH as GetConnectionPluginProvides, cZ as GetProfilePluginProvides, eg as GetTablePluginProvides, es as GetTableRecordPluginProvides, aW as InfoFieldItem, aV as InputFieldItem, bx as InputFieldProperty, b5 as InputFieldPropertySchema, bB as InputsProperty, b9 as InputsPropertySchema, bT as LeaseLimitProperty, br as LeaseLimitPropertySchema, bR as LeaseProperty, bp as LeasePropertySchema, bS as LeaseSecondsProperty, bq as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bC as LimitProperty, ba as LimitPropertySchema, cr as ListActionInputFieldChoicesPluginProvides, cp as ListActionInputFieldsPluginProvides, cn as ListActionsPluginProvides, cl as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cx as ListClientCredentialsPluginProvides, cv as ListConnectionsPluginProvides, em as ListTableFieldsPluginProvides, eu as ListTableRecordsPluginProvides, ee as ListTablesPluginProvides, dC as LoadingEvent, e5 as MAX_PAGE_LIMIT, cX as ManifestEntry, cS as ManifestPluginOptions, cV as ManifestPluginProvides, ay as MethodCalledEvent, aD as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bD as OffsetProperty, bb as OffsetPropertySchema, _ as OutputFormatter, bE as OutputProperty, bc as OutputPropertySchema, a$ as PaginatedSdkFunction, bG as ParamsProperty, be as ParamsPropertySchema, dI as PkceCredentialsObject, dT as PkceCredentialsObjectSchema, ak as Plugin, al as PluginProvides, au as PollOptions, c7 as RateLimitInfo, bJ as RecordProperty, bh as RecordPropertySchema, bK as RecordsProperty, bi as RecordsPropertySchema, ad as RelayFetchSchema, ac as RelayRequestSchema, at as RequestOptions, cR as RequestPluginProvides, dm as ResolveAuthTokenOptions, dN as ResolveCredentialsOptions, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aX as RootFieldItem, cP as RunActionPluginProvides, dz as SdkEvent, a_ as SdkPage, a2 as StaticResolver, bI as TableProperty, bg as TablePropertySchema, bN as TablesProperty, bl as TablesPropertySchema, bQ as TriggerInboxNameProperty, bo as TriggerInboxNamePropertySchema, bP as TriggerInboxProperty, bn as TriggerInboxPropertySchema, T as TriggerMessageStatus, eA as UpdateTableRecordsPluginProvides, Q as UserProfile, aY as UserProfileItem, e3 as ZAPIER_BASE_URL, e8 as ZAPIER_MAX_NETWORK_RETRIES, e9 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c5 as ZapierActionError, bX as ZapierApiError, bY as ZapierAppNotFoundError, ca as ZapierApprovalError, b$ as ZapierAuthenticationError, c3 as ZapierBundleError, dv as ZapierCache, dw as ZapierCacheEntry, dx as ZapierCacheSetOptions, c2 as ZapierConfigurationError, c6 as ZapierConflictError, bW as ZapierError, c0 as ZapierNotFoundError, c8 as ZapierRateLimitError, cb as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c1 as ZapierResourceNotFoundError, cd as ZapierSignal, c4 as ZapierTimeoutError, b_ as ZapierUnknownError, bZ as ZapierValidationError, d3 as actionKeyResolver, d2 as actionTypeResolver, c$ as apiPlugin, d1 as appKeyResolver, ce as appsPlugin, d5 as authenticationIdGenericResolver, d4 as authenticationIdResolver, a7 as batch, aN as buildApplicationLifecycleEvent, a9 as buildCapabilityMessage, aP as buildErrorEvent, aO as buildErrorEventWithContext, aR as buildMethodCalledEvent, dn as clearTokenCache, d9 as clientCredentialsNameResolver, da as clientIdResolver, ap as composePlugins, d5 as connectionIdGenericResolver, d4 as connectionIdResolver, e1 as connectionsPlugin, aQ as createBaseEvent, cy as createClientCredentialsPlugin, V as createFunction, dy as createMemoryCache, ag as createOptionsPlugin, ao as createPaginatedPluginMethod, an as createPluginMethod, af as createSdk, en as createTableFieldsPlugin, eh as createTablePlugin, ev as createTableRecordsPlugin, av as createZapierApi, ae as createZapierSdkWithoutRegistry, am as definePlugin, cA as deleteClientCredentialsPlugin, ep as deleteTableFieldsPlugin, ej as deleteTablePlugin, ex as deleteTableRecordsPlugin, ci as fetchPlugin, cI as findFirstConnectionPlugin, cK as findUniqueConnectionPlugin, cc as formatErrorMessage, aE as generateEventId, cs as getActionInputFieldsSchemaPlugin, cE as getActionPlugin, cC as getAppPlugin, dQ as getBaseUrlFromCredentials, aK as getCiPlatform, dR as getClientIdFromCredentials, cG as getConnectionPlugin, aM as getCpuTime, aF as getCurrentTimestamp, aL as getMemoryUsage, aw as getOrCreateApiClient, aH as getOsInfo, aI as getPlatformVersions, cT as getPreferredManifestEntryKey, cY as getProfilePlugin, aG as getReleaseId, ef as getTablePlugin, er as getTableRecordPlugin, ds as getTokenFromCliLogin, ea as getZapierApprovalMode, e4 as getZapierSdkService, dq as injectCliLogin, d8 as inputFieldKeyResolver, d7 as inputsAllOptionalResolver, d6 as inputsResolver, dp as invalidateCachedToken, du as invalidateCredentialsToken, aJ as isCi, dr as isCliLoginAvailable, dJ as isClientCredentials, dM as isCredentialsFunction, dL as isCredentialsObject, dK as isPkceCredentials, S as isPositional, cq as listActionInputFieldChoicesPlugin, co as listActionInputFieldsPlugin, cm as listActionsPlugin, ck as listAppsPlugin, cw as listClientCredentialsPlugin, cu as listConnectionsPlugin, el as listTableFieldsPlugin, et as listTableRecordsPlugin, ed as listTablesPlugin, aa as logDeprecation, cU as manifestPlugin, as as registryPlugin, cQ as requestPlugin, ab as resetDeprecationWarnings, dt as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cO as runActionPlugin, a4 as runWithTelemetryContext, df as tableFieldIdsResolver, dh as tableFieldsResolver, dk as tableFiltersResolver, db as tableIdResolver, dg as tableNameResolver, dd as tableRecordIdResolver, de as tableRecordIdsResolver, di as tableRecordsResolver, dl as tableSortResolver, dj as tableUpdateRecordsResolver, a5 as toSnakeCase, a6 as toTitleCase, dc as triggerInboxResolver, ez as updateTableRecordsPlugin } from './index-C52BjTXh.mjs';
1
+ import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-DcdtPei-.mjs';
2
+ export { u as Action, cg as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aU as ActionItem, bv as ActionKeyProperty, b3 as ActionKeyPropertySchema, bw as ActionProperty, b4 as ActionPropertySchema, aq as ActionResolverItem, bH as ActionTimeoutMsProperty, bf as ActionTimeoutMsPropertySchema, ar as ActionTypeItem, bu as ActionTypeProperty, b2 as ActionTypePropertySchema, bU as ApiError, dB as ApiEvent, c_ as ApiPluginOptions, d0 as ApiPluginProvides, v as App, ch as AppFactoryInput, aS as AppItem, bs as AppKeyProperty, b0 as AppKeyPropertySchema, bt as AppProperty, b1 as AppPropertySchema, aB as ApplicationLifecycleEventData, c9 as ApprovalStatus, cf as AppsPluginProvides, bM as AppsProperty, bk as AppsPropertySchema, a0 as ArrayResolver, dA as AuthEvent, bA as AuthenticationIdProperty, b7 as AuthenticationIdPropertySchema, ax as BaseEvent, aj as BaseSdkOptionsSchema, a8 as BatchOptions, cN as CONTEXT_CACHE_MAX_SIZE, cM as CONTEXT_CACHE_TTL_MS, x as Choice, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, K as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, by as ConnectionIdProperty, b6 as ConnectionIdPropertySchema, aT as ConnectionItem, bz as ConnectionProperty, b8 as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, e2 as ConnectionsPluginProvides, bO as ConnectionsProperty, bm as ConnectionsPropertySchema, O as ConnectionsResponse, cz as CreateClientCredentialsPluginProvides, er as CreateTableFieldsPluginProvides, el as CreateTablePluginProvides, ez as CreateTableRecordsPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MS, ee as DEFAULT_APPROVAL_TIMEOUT_MS, cW as DEFAULT_CONFIG_PATH, ef as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, bF as DebugProperty, bd as DebugPropertySchema, cB as DeleteClientCredentialsPluginProvides, et as DeleteTableFieldsPluginProvides, en as DeleteTablePluginProvides, eB as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, aC as EnhancedErrorEventData, bV as ErrorOptions, dD as EventCallback, aA as EventContext, az as EventEmissionProvides, cj as FetchPluginProvides, w as Field, bL as FieldsProperty, bj as FieldsPropertySchema, a3 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cJ as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cL as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ai as FunctionDeprecation, aZ as FunctionOptions, ah as FunctionRegistryEntry, ct as GetActionInputFieldsSchemaPluginProvides, cF as GetActionPluginProvides, cD as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cH as GetConnectionPluginProvides, cZ as GetProfilePluginProvides, ej as GetTablePluginProvides, ev as GetTableRecordPluginProvides, aW as InfoFieldItem, aV as InputFieldItem, bx as InputFieldProperty, b5 as InputFieldPropertySchema, bB as InputsProperty, b9 as InputsPropertySchema, bT as LeaseLimitProperty, br as LeaseLimitPropertySchema, bR as LeaseProperty, bp as LeasePropertySchema, bS as LeaseSecondsProperty, bq as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bC as LimitProperty, ba as LimitPropertySchema, cr as ListActionInputFieldChoicesPluginProvides, cp as ListActionInputFieldsPluginProvides, cn as ListActionsPluginProvides, cl as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cx as ListClientCredentialsPluginProvides, cv as ListConnectionsPluginProvides, ep as ListTableFieldsPluginProvides, ex as ListTableRecordsPluginProvides, eh as ListTablesPluginProvides, dC as LoadingEvent, ea as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cX as ManifestEntry, cS as ManifestPluginOptions, cV as ManifestPluginProvides, ay as MethodCalledEvent, aD as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bD as OffsetProperty, bb as OffsetPropertySchema, _ as OutputFormatter, bE as OutputProperty, bc as OutputPropertySchema, a$ as PaginatedSdkFunction, bG as ParamsProperty, be as ParamsPropertySchema, dI as PkceCredentialsObject, dT as PkceCredentialsObjectSchema, ak as Plugin, al as PluginProvides, au as PollOptions, c7 as RateLimitInfo, bJ as RecordProperty, bh as RecordPropertySchema, bK as RecordsProperty, bi as RecordsPropertySchema, ad as RelayFetchSchema, ac as RelayRequestSchema, at as RequestOptions, cR as RequestPluginProvides, dm as ResolveAuthTokenOptions, dN as ResolveCredentialsOptions, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aX as RootFieldItem, cP as RunActionPluginProvides, dz as SdkEvent, a_ as SdkPage, a2 as StaticResolver, bI as TableProperty, bg as TablePropertySchema, bN as TablesProperty, bl as TablesPropertySchema, bQ as TriggerInboxNameProperty, bo as TriggerInboxNamePropertySchema, bP as TriggerInboxProperty, bn as TriggerInboxPropertySchema, T as TriggerMessageStatus, eD as UpdateTableRecordsPluginProvides, Q as UserProfile, aY as UserProfileItem, e3 as ZAPIER_BASE_URL, ec as ZAPIER_MAX_CONCURRENT_REQUESTS, e8 as ZAPIER_MAX_NETWORK_RETRIES, e9 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c5 as ZapierActionError, bX as ZapierApiError, bY as ZapierAppNotFoundError, ca as ZapierApprovalError, b$ as ZapierAuthenticationError, c3 as ZapierBundleError, dv as ZapierCache, dw as ZapierCacheEntry, dx as ZapierCacheSetOptions, c2 as ZapierConfigurationError, c6 as ZapierConflictError, bW as ZapierError, c0 as ZapierNotFoundError, c8 as ZapierRateLimitError, cb as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c1 as ZapierResourceNotFoundError, cd as ZapierSignal, c4 as ZapierTimeoutError, b_ as ZapierUnknownError, bZ as ZapierValidationError, d3 as actionKeyResolver, d2 as actionTypeResolver, c$ as apiPlugin, d1 as appKeyResolver, ce as appsPlugin, d5 as authenticationIdGenericResolver, d4 as authenticationIdResolver, a7 as batch, aN as buildApplicationLifecycleEvent, a9 as buildCapabilityMessage, aP as buildErrorEvent, aO as buildErrorEventWithContext, aR as buildMethodCalledEvent, dn as clearTokenCache, d9 as clientCredentialsNameResolver, da as clientIdResolver, ap as composePlugins, d5 as connectionIdGenericResolver, d4 as connectionIdResolver, e1 as connectionsPlugin, aQ as createBaseEvent, cy as createClientCredentialsPlugin, V as createFunction, dy as createMemoryCache, ag as createOptionsPlugin, ao as createPaginatedPluginMethod, an as createPluginMethod, af as createSdk, eq as createTableFieldsPlugin, ek as createTablePlugin, ey as createTableRecordsPlugin, av as createZapierApi, ae as createZapierSdkWithoutRegistry, am as definePlugin, cA as deleteClientCredentialsPlugin, es as deleteTableFieldsPlugin, em as deleteTablePlugin, eA as deleteTableRecordsPlugin, ci as fetchPlugin, cI as findFirstConnectionPlugin, cK as findUniqueConnectionPlugin, cc as formatErrorMessage, aE as generateEventId, cs as getActionInputFieldsSchemaPlugin, cE as getActionPlugin, cC as getAppPlugin, dQ as getBaseUrlFromCredentials, aK as getCiPlatform, dR as getClientIdFromCredentials, cG as getConnectionPlugin, aM as getCpuTime, aF as getCurrentTimestamp, aL as getMemoryUsage, aw as getOrCreateApiClient, aH as getOsInfo, aI as getPlatformVersions, cT as getPreferredManifestEntryKey, cY as getProfilePlugin, aG as getReleaseId, ei as getTablePlugin, eu as getTableRecordPlugin, ds as getTokenFromCliLogin, ed as getZapierApprovalMode, e4 as getZapierSdkService, dq as injectCliLogin, d8 as inputFieldKeyResolver, d7 as inputsAllOptionalResolver, d6 as inputsResolver, dp as invalidateCachedToken, du as invalidateCredentialsToken, aJ as isCi, dr as isCliLoginAvailable, dJ as isClientCredentials, dM as isCredentialsFunction, dL as isCredentialsObject, dK as isPkceCredentials, S as isPositional, cq as listActionInputFieldChoicesPlugin, co as listActionInputFieldsPlugin, cm as listActionsPlugin, ck as listAppsPlugin, cw as listClientCredentialsPlugin, cu as listConnectionsPlugin, eo as listTableFieldsPlugin, ew as listTableRecordsPlugin, eg as listTablesPlugin, aa as logDeprecation, cU as manifestPlugin, eb as parseConcurrencyEnvVar, as as registryPlugin, cQ as requestPlugin, ab as resetDeprecationWarnings, dt as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cO as runActionPlugin, a4 as runWithTelemetryContext, df as tableFieldIdsResolver, dh as tableFieldsResolver, dk as tableFiltersResolver, db as tableIdResolver, dg as tableNameResolver, dd as tableRecordIdResolver, de as tableRecordIdsResolver, di as tableRecordsResolver, dl as tableSortResolver, dj as tableUpdateRecordsResolver, a5 as toSnakeCase, a6 as toTitleCase, dc as triggerInboxResolver, eC as updateTableRecordsPlugin } from './index-DcdtPei-.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';
@@ -216,13 +216,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
216
216
  } & {
217
217
  listActions: (options?: (({
218
218
  app: string;
219
- actionType?: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run" | undefined;
219
+ actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
220
220
  pageSize?: number | undefined;
221
221
  maxItems?: number | undefined;
222
222
  cursor?: string | undefined;
223
223
  } | {
224
224
  appKey: string;
225
- actionType?: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run" | undefined;
225
+ actionType?: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run" | undefined;
226
226
  pageSize?: number | undefined;
227
227
  maxItems?: number | undefined;
228
228
  cursor?: string | undefined;
@@ -234,7 +234,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
234
234
  description: string;
235
235
  key: string;
236
236
  app_key: string;
237
- action_type: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
237
+ action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
238
238
  title: string;
239
239
  type: "action";
240
240
  id?: string | undefined;
@@ -251,18 +251,18 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
251
251
  } & {
252
252
  getAction: (options?: {
253
253
  app: string;
254
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
254
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
255
255
  action: string;
256
256
  } | {
257
257
  appKey: string;
258
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
258
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
259
259
  actionKey: string;
260
260
  } | undefined) => Promise<{
261
261
  data: {
262
262
  description: string;
263
263
  key: string;
264
264
  app_key: string;
265
- action_type: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
265
+ action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
266
266
  title: string;
267
267
  type: "action";
268
268
  id?: string | undefined;
@@ -280,7 +280,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
280
280
  } & {
281
281
  listActionInputFields: (options?: (({
282
282
  app: string;
283
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
283
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
284
284
  action: string;
285
285
  connection?: string | number | undefined;
286
286
  connectionId?: string | number | null | undefined;
@@ -291,7 +291,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
291
291
  cursor?: string | undefined;
292
292
  } | {
293
293
  appKey: string;
294
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
294
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
295
295
  actionKey: string;
296
296
  connection?: string | number | undefined;
297
297
  connectionId?: string | number | null | undefined;
@@ -334,7 +334,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
334
334
  } & {
335
335
  getActionInputFieldsSchema: (options?: {
336
336
  app: string;
337
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
337
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
338
338
  action: string;
339
339
  connection?: string | number | undefined;
340
340
  connectionId?: string | number | null | undefined;
@@ -342,7 +342,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
342
342
  inputs?: Record<string, unknown> | undefined;
343
343
  } | {
344
344
  appKey: string;
345
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
345
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
346
346
  actionKey: string;
347
347
  connection?: string | number | undefined;
348
348
  connectionId?: string | number | null | undefined;
@@ -360,7 +360,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
360
360
  } & {
361
361
  listActionInputFieldChoices: (options?: (({
362
362
  app: string;
363
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
363
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
364
364
  action: string;
365
365
  inputField: string;
366
366
  connection?: string | number | undefined;
@@ -373,7 +373,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
373
373
  cursor?: string | undefined;
374
374
  } | {
375
375
  appKey: string;
376
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
376
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
377
377
  actionKey: string;
378
378
  inputFieldKey: string;
379
379
  connection?: string | number | undefined;
@@ -403,7 +403,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
403
403
  } & {
404
404
  listInputFields: (options?: (({
405
405
  app: string;
406
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
406
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
407
407
  action: string;
408
408
  connection?: string | number | undefined;
409
409
  connectionId?: string | number | null | undefined;
@@ -414,7 +414,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
414
414
  cursor?: string | undefined;
415
415
  } | {
416
416
  appKey: string;
417
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
417
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
418
418
  actionKey: string;
419
419
  connection?: string | number | undefined;
420
420
  connectionId?: string | number | null | undefined;
@@ -459,13 +459,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
459
459
  _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
460
460
  };
461
461
  actionType: zod.ZodEnum<{
462
+ filter: "filter";
462
463
  search: "search";
463
464
  read: "read";
464
465
  read_bulk: "read_bulk";
465
466
  write: "write";
466
467
  search_or_write: "search_or_write";
467
468
  search_and_write: "search_and_write";
468
- filter: "filter";
469
469
  run: "run";
470
470
  }>;
471
471
  action: zod.ZodString & {
@@ -483,13 +483,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
483
483
  _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
484
484
  };
485
485
  actionType: zod.ZodEnum<{
486
+ filter: "filter";
486
487
  search: "search";
487
488
  read: "read";
488
489
  read_bulk: "read_bulk";
489
490
  write: "write";
490
491
  search_or_write: "search_or_write";
491
492
  search_and_write: "search_and_write";
492
- filter: "filter";
493
493
  run: "run";
494
494
  }>;
495
495
  actionKey: zod.ZodString;
@@ -529,7 +529,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
529
529
  } & {
530
530
  getInputFieldsSchema: (options?: {
531
531
  app: string;
532
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
532
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
533
533
  action: string;
534
534
  connection?: string | number | undefined;
535
535
  connectionId?: string | number | null | undefined;
@@ -537,7 +537,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
537
537
  inputs?: Record<string, unknown> | undefined;
538
538
  } | {
539
539
  appKey: string;
540
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
540
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
541
541
  actionKey: string;
542
542
  connection?: string | number | undefined;
543
543
  connectionId?: string | number | null | undefined;
@@ -556,13 +556,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
556
556
  _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
557
557
  };
558
558
  actionType: zod.ZodEnum<{
559
+ filter: "filter";
559
560
  search: "search";
560
561
  read: "read";
561
562
  read_bulk: "read_bulk";
562
563
  write: "write";
563
564
  search_or_write: "search_or_write";
564
565
  search_and_write: "search_and_write";
565
- filter: "filter";
566
566
  run: "run";
567
567
  }>;
568
568
  action: zod.ZodString & {
@@ -577,13 +577,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
577
577
  _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
578
578
  };
579
579
  actionType: zod.ZodEnum<{
580
+ filter: "filter";
580
581
  search: "search";
581
582
  read: "read";
582
583
  read_bulk: "read_bulk";
583
584
  write: "write";
584
585
  search_or_write: "search_or_write";
585
586
  search_and_write: "search_and_write";
586
- filter: "filter";
587
587
  run: "run";
588
588
  }>;
589
589
  actionKey: zod.ZodString;
@@ -598,7 +598,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
598
598
  } & {
599
599
  listInputFieldChoices: (options?: (({
600
600
  app: string;
601
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
601
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
602
602
  action: string;
603
603
  inputField: string;
604
604
  connection?: string | number | undefined;
@@ -611,7 +611,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
611
611
  cursor?: string | undefined;
612
612
  } | {
613
613
  appKey: string;
614
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
614
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
615
615
  actionKey: string;
616
616
  inputFieldKey: string;
617
617
  connection?: string | number | undefined;
@@ -643,13 +643,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
643
643
  _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
644
644
  };
645
645
  actionType: zod.ZodEnum<{
646
+ filter: "filter";
646
647
  search: "search";
647
648
  read: "read";
648
649
  read_bulk: "read_bulk";
649
650
  write: "write";
650
651
  search_or_write: "search_or_write";
651
652
  search_and_write: "search_and_write";
652
- filter: "filter";
653
653
  run: "run";
654
654
  }>;
655
655
  action: zod.ZodString & {
@@ -671,13 +671,13 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
671
671
  _def: zod_v4_core.$ZodStringDef & PositionalMetadata;
672
672
  };
673
673
  actionType: zod.ZodEnum<{
674
+ filter: "filter";
674
675
  search: "search";
675
676
  read: "read";
676
677
  read_bulk: "read_bulk";
677
678
  write: "write";
678
679
  search_or_write: "search_or_write";
679
680
  search_and_write: "search_and_write";
680
- filter: "filter";
681
681
  run: "run";
682
682
  }>;
683
683
  actionKey: zod.ZodString;
@@ -704,7 +704,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
704
704
  } & {
705
705
  runAction: (options?: (({
706
706
  app: string;
707
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
707
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
708
708
  action: string;
709
709
  connection?: string | number | undefined;
710
710
  connectionId?: string | number | null | undefined;
@@ -716,7 +716,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
716
716
  cursor?: string | undefined;
717
717
  } | {
718
718
  appKey: string;
719
- actionType: "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "filter" | "run";
719
+ actionType: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
720
720
  actionKey: string;
721
721
  connection?: string | number | undefined;
722
722
  connectionId?: string | number | null | undefined;