@zapier/zapier-sdk 0.88.0 → 0.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -256,26 +256,67 @@ type PaginatedSdkFunction<TOptions, TItem> = (options: TOptions) => PaginatedSdk
256
256
  * unforgeability the `INTERNAL_CALL` sentinel relies on.
257
257
  */
258
258
  declare const CALL_CONTEXT_BRAND: unique symbol;
259
+ /**
260
+ * The per-invocation annotation bag: an open string-keyed map a head fills with
261
+ * telemetry-shaping fields (via the boundary annotator, a method's pre-run
262
+ * `annotator`, or the run bag's mid-`run` `annotate`) and reads back on the
263
+ * method-lifecycle hook context. Framework-neutral: kitcore does not know or
264
+ * constrain the keys.
265
+ */
266
+ type Annotations = Record<string, unknown>;
267
+ /**
268
+ * Origin of a call's root. `"surface"` = entered through the SDK surface, or a
269
+ * parent-less runtime delegation that still represents real user work;
270
+ * `"internal"` = a framework-internal root minted by kitcore's own machinery,
271
+ * which a head can suppress from telemetry.
272
+ */
273
+ type CallOrigin = "surface" | "internal";
259
274
  interface CallContext {
260
- /** Minted once at the root call; copied verbatim to every nested (child) call. */
261
- callId: string | null;
262
- /** 0 at the outermost call; `parent.depth + 1` for a delegated call. */
263
- depth: number;
275
+ /**
276
+ * Minted once at the root call; copied verbatim to every nested (child) call.
277
+ * `readonly`: method code owns only the `annotations` bag. A child copies this
278
+ * off the live parent when the delegated call fires, so mutating it mid-run
279
+ * would corrupt the child's correlation id.
280
+ */
281
+ readonly callId: string | null;
282
+ /**
283
+ * 0 at the outermost call; `parent.depth + 1` for a delegated call. `readonly`
284
+ * for the same reason as `callId` — a mutated depth would mis-nest children
285
+ * and, where ALS can't correct it (browsers), duplicate telemetry.
286
+ */
287
+ readonly depth: number;
264
288
  /**
265
289
  * Per-invocation scratch space. Never forwarded to callees — a child call
266
290
  * gets a fresh bag — so annotations describe one method's own invocation.
291
+ * Method `run` code contributes through the run bag's `annotate` function
292
+ * rather than writing here directly; the bag reference is fixed, only its
293
+ * contents change.
294
+ */
295
+ readonly annotations: Annotations;
296
+ /**
297
+ * Origin of the call's root, copied verbatim to every child. `"surface"`
298
+ * (the default) marks a surface-origin root — a call that entered through the
299
+ * SDK surface, or a parent-less runtime delegation that still represents real
300
+ * user work (e.g. a delegation proxy reaching another method). `"internal"`
301
+ * marks a framework-internal root minted by kitcore's own build-time machinery
302
+ * (resolver/formatter/dispose/observer twins, `resolvePlugin`), which a head
303
+ * can suppress from telemetry. Orthogonal to `depth`: an internal root is
304
+ * still `depth 0`. `readonly` so a child can't inherit a mutated origin.
267
305
  */
268
- annotations: Record<string, unknown>;
306
+ readonly callOrigin: CallOrigin;
269
307
  readonly [CALL_CONTEXT_BRAND]: true;
270
308
  }
271
309
 
272
310
  /**
273
311
  * Method-call lifecycle hooks. Plugins contribute `onMethodStart` and/or
274
- * `onMethodEnd` on their context; `buildHooks` composes contributions across
275
- * plugins so multiple observers can coexist. Composition is right-additive
276
- * (newer plugins fire after earlier ones); only opt-in methods built through
277
- * `createPluginMethod` / `createPaginatedPluginMethod` trigger the hooks.
312
+ * `onMethodEnd` observers, plus an optional pre-run `annotator` that returns
313
+ * fields merged into the call's annotation bag; `buildHooks` composes each
314
+ * across plugins so multiple contributors coexist. Composition is right-additive
315
+ * (newer plugins fire — and `annotator` fields win — after earlier ones); only
316
+ * opt-in methods built through `createPluginMethod` /
317
+ * `createPaginatedPluginMethod` trigger the hooks.
278
318
  */
319
+
279
320
  interface OnMethodStartContext {
280
321
  methodName: string;
281
322
  args: unknown[];
@@ -287,20 +328,48 @@ interface OnMethodStartContext {
287
328
  * top-level events.
288
329
  */
289
330
  depth: number;
331
+ /** The call's correlation id, copied from the per-call context; `null` where
332
+ * id minting was unavailable. */
333
+ callId: string | null;
334
+ /**
335
+ * Origin of the call's root, copied from the per-call context. `"surface"` =
336
+ * surface-origin (an SDK-surface call or a runtime delegation — real user
337
+ * work); `"internal"` = a framework-internal call minted by kitcore's own
338
+ * machinery (resolver/formatter/dispose/observer twins, `resolvePlugin`).
339
+ * Orthogonal to `depth` (an internal call is still `depth 0`); a head can drop
340
+ * internal-origin calls from telemetry.
341
+ */
342
+ callOrigin: CallOrigin;
343
+ /**
344
+ * The call's annotation bag, carried live from the per-call context. At
345
+ * `onMethodStart` it holds the early-knowable fields (boundary annotator +
346
+ * a method's pre-run `annotator`); by `onMethodEnd` any mid-`run` writes
347
+ * are visible too (same object reference throughout the call).
348
+ */
349
+ annotations: Annotations;
290
350
  }
291
351
  type OnMethodStart = (ctx: OnMethodStartContext) => void;
292
- interface OnMethodEndContext {
293
- methodName: string;
294
- args: unknown[];
295
- isPaginated: boolean;
296
- depth: number;
352
+ interface OnMethodEndContext extends OnMethodStartContext {
297
353
  durationMs: number;
298
354
  error?: Error;
299
355
  }
300
356
  type OnMethodEnd = (ctx: OnMethodEndContext) => void;
357
+ /**
358
+ * A composed pre-run annotator: given a call's method name and (normalized,
359
+ * pre-validation) input, it returns {@link Annotations} the boundary merges into
360
+ * the call's bag before `onMethodStart`. Unlike the `void` lifecycle observers,
361
+ * this one returns a value; composition merges the returned bags rather than
362
+ * chaining side effects. A contributor with nothing to add returns an empty bag,
363
+ * so absence is modelled by no annotator rather than an `undefined` return.
364
+ */
365
+ type ComposedAnnotator = (ctx: {
366
+ methodName: string;
367
+ input: unknown;
368
+ }) => Annotations;
301
369
  interface MethodHooks {
302
370
  onMethodStart?: OnMethodStart;
303
371
  onMethodEnd?: OnMethodEnd;
372
+ annotator?: ComposedAnnotator;
304
373
  }
305
374
  interface FormattedItem {
306
375
  title: string;
@@ -684,13 +753,42 @@ type ImportsOf<TImports extends ImportsInput> = TImports extends readonly [] ? R
684
753
  /**
685
754
  * The bag a method body receives. `imports` is the dependency-narrowed reach;
686
755
  * `state` is the plugin's private constructor result (undefined when none);
687
- * `input` is the canonical call argument.
756
+ * `input` is the canonical call argument; `callContext` is the live per-call
757
+ * context (call identity plus the annotation bag the boundary reads back on the
758
+ * lifecycle hooks); `annotate` merges mid-run-derived telemetry fields into that
759
+ * bag. Prefer `annotate` over writing `callContext.annotations` directly.
688
760
  */
689
761
  interface MethodRunBag<TImports, TInput, TState = unknown> {
690
762
  imports: TImports;
691
763
  state: TState;
692
764
  input: TInput;
765
+ callContext: CallContext;
766
+ /** Merge mid-run-derived telemetry fields into the call's annotation bag. The
767
+ * declarative pre-run sibling is the method's `annotator` config; both add
768
+ * to the same bag, one during `run`, one before it. */
769
+ annotate: (metadata: Annotations) => void;
693
770
  }
771
+ /**
772
+ * A method's declarative pre-`run` annotator: given the method's raw,
773
+ * pre-validation `input`, it returns {@link Annotations} the boundary merges
774
+ * into the call's bag before `onMethodStart`. The input is `unknown` because
775
+ * schema coercion/transformation has not run; an annotator must narrow it before
776
+ * reading fields. A provider with nothing to add returns an empty bag, so absence
777
+ * is modelled by no provider rather than an `undefined` return.
778
+ */
779
+ type MethodAnnotator = (bag: {
780
+ input: unknown;
781
+ }) => Annotations;
782
+ /**
783
+ * A hook's declarative pre-`run` annotator: like {@link MethodAnnotator} but
784
+ * cross-cutting, so it also receives the `methodName` and the hook's `state`.
785
+ * Many hooks' annotators coexist; the boundary composes them.
786
+ */
787
+ type HookAnnotator<TState = unknown> = (bag: {
788
+ methodName: string;
789
+ input: unknown;
790
+ state: TState;
791
+ }) => Annotations;
694
792
  /** Shared plumbing for the method attachments: each declares its own
695
793
  * dependencies. Resolvers and formatters are otherwise separate concepts. */
696
794
  interface MethodAttachment {
@@ -1083,6 +1181,14 @@ interface MethodPlugin<TName extends string = string, TInput = unknown, TOutput
1083
1181
  resolvers?: Record<string, Resolver>;
1084
1182
  /** Output formatter (method attachment). Bound into the entry at createSdk. */
1085
1183
  formatter?: Formatter;
1184
+ /** Declarative pre-`run` annotator: the boundary invokes it before
1185
+ * `onMethodStart` with the (pre-validation) `input`, and merges its returned
1186
+ * `Annotations` into the call's bag. Runs synchronously and receives only
1187
+ * `input` — the per-method sibling of the run bag's mid-`run` `annotate`,
1188
+ * which is where fields needing imports or async work are written. For
1189
+ * telemetry fields knowable before the method's own work; never passed to
1190
+ * `run`. */
1191
+ annotator?: MethodAnnotator;
1086
1192
  run: (bag: MethodRunBag<any, TInput, any>) => TOutput;
1087
1193
  /** How `run`'s result is shaped into the public surface (see Output in the
1088
1194
  * design doc). Omitted is "raw". Stored loosely; the precise per-mode typing
@@ -1341,6 +1447,9 @@ interface HookPlugin<TName extends string = string> {
1341
1447
  state: unknown;
1342
1448
  }) => void;
1343
1449
  };
1450
+ /** Composable pre-run annotator: returns `Annotations` merged into the call's
1451
+ * bag before `onMethodStart`. Coexists with other hooks' annotators. */
1452
+ annotator?: HookAnnotator;
1344
1453
  }
1345
1454
  type AnyPlugin = AnyLeafPlugin | AnyAggregatePlugin | AnyLegacyPlugin | HookPlugin | MethodOverridePlugin;
1346
1455
  /**
@@ -1386,10 +1495,16 @@ interface MethodEntry {
1386
1495
  * on legacy graph entries (they bind `value`). */
1387
1496
  internalValue?: (input: any) => any;
1388
1497
  /** Produce the import-facing twin for a given call context: with a context,
1389
- * the twin mints a fresh child per invocation (callee inherits `callId`, sits
1390
- * one level deeper); without one it is the parent-less `internalValue`.
1391
- * `buildImports` binds this. Absent on legacy graph entries. */
1392
- bindInternal?: (ctx?: CallContext) => (...args: any[]) => any;
1498
+ * the twin mints a fresh child per invocation (callee inherits `callId`, its
1499
+ * origin, and sits one level deeper); without one it is parent-less — the
1500
+ * surface-origin `internalValue` by default, or a framework-internal root when
1501
+ * `frameworkOrigin` is set (kitcore's own build-time passes request it, so
1502
+ * their delegated calls can be dropped from telemetry). `buildImports` binds
1503
+ * this. Absent on legacy graph entries. */
1504
+ bindInternal?: (opts: {
1505
+ ctx?: CallContext;
1506
+ frameworkOrigin?: boolean;
1507
+ }) => (...args: any[]) => any;
1393
1508
  chain: MiddlewareWrap[];
1394
1509
  /** Carried from the descriptor for the registry / CLI / MCP / docs. */
1395
1510
  inputSchema?: z.ZodType;
@@ -2200,6 +2315,7 @@ declare function defineMethod<const TName extends string, TInput, TOutput, const
2200
2315
  skipInputValidation?: boolean;
2201
2316
  resolvers?: Record<string, Resolver>;
2202
2317
  formatter?: Formatter;
2318
+ annotator?: MethodAnnotator;
2203
2319
  output?: "raw" | {
2204
2320
  type: "raw";
2205
2321
  };
@@ -2221,6 +2337,7 @@ declare function defineMethod<const TName extends string, TInput, TResponse exte
2221
2337
  inputSchema?: z.ZodType<TInput>;
2222
2338
  resolvers?: Record<string, Resolver>;
2223
2339
  formatter?: Formatter;
2340
+ annotator?: MethodAnnotator;
2224
2341
  output: "item" | {
2225
2342
  type: "item";
2226
2343
  };
@@ -2243,6 +2360,7 @@ declare function defineMethod<const TName extends string, TInput, TResponse exte
2243
2360
  inputSchema?: z.ZodType<TInput>;
2244
2361
  resolvers?: Record<string, Resolver>;
2245
2362
  formatter?: Formatter;
2363
+ annotator?: MethodAnnotator;
2246
2364
  output: "list" | {
2247
2365
  type: "list";
2248
2366
  adaptPage?: undefined;
@@ -2265,6 +2383,7 @@ declare function defineMethod<const TName extends string, TInput, TResponse, TIt
2265
2383
  inputSchema?: z.ZodType<TInput>;
2266
2384
  resolvers?: Record<string, Resolver>;
2267
2385
  formatter?: Formatter;
2386
+ annotator?: MethodAnnotator;
2268
2387
  output: {
2269
2388
  type: "list";
2270
2389
  adaptPage: (response: TResponse) => SdkPage<TItem>;
@@ -3289,6 +3408,10 @@ declare function createFunction<TOptions, TResult, TSchemaOptions extends TOptio
3289
3408
  sdk: FunctionSdk;
3290
3409
  schema?: z.ZodSchema<TSchemaOptions>;
3291
3410
  name?: string;
3411
+ /** Pre-run per-method annotator (see applyAnnotations): invoked before
3412
+ * onMethodStart with the normalized input, its result merged into the
3413
+ * call's annotation bag. */
3414
+ annotator?: (input: unknown) => Annotations;
3292
3415
  /** Live read of the method's deprecation meta (see signalDeprecation). */
3293
3416
  getDeprecation?: () => FunctionDeprecation | undefined;
3294
3417
  }): (callOptions?: TOptions) => Promise<TResult>;
@@ -3325,6 +3448,8 @@ declare function createPaginatedFunction<TUserOptions, TResponse, TItem = ItemTy
3325
3448
  * would collapse `TItem` to `unknown`.
3326
3449
  */
3327
3450
  adaptPage?: (response: TResponse) => SdkPage<NoInfer<TItem>>;
3451
+ /** Pre-run per-method annotator (see applyAnnotations). */
3452
+ annotator?: (input: unknown) => Annotations;
3328
3453
  /** Live read of the method's deprecation meta (see signalDeprecation). */
3329
3454
  getDeprecation?: () => FunctionDeprecation | undefined;
3330
3455
  }): (options?: TUserOptions & {
@@ -4185,6 +4310,14 @@ declare function buildApplicationLifecycleEvent(data: ApplicationLifecycleEventD
4185
4310
  declare function buildErrorEventWithContext(data: EnhancedErrorEventData, context?: EventContext): ErrorOccurredEvent;
4186
4311
  declare function buildMethodCalledEvent(data: MethodCalledEventData, context?: EventContext): MethodCalledEvent;
4187
4312
 
4313
+ /**
4314
+ * Registers {@link zapierAnnotate} as a composable annotator on the hook
4315
+ * channel. Contributed through the plugin graph rather than a singleton core
4316
+ * option, so other plugins can add their own annotators alongside it. Pure
4317
+ * input→Annotations, so it needs no imports or state.
4318
+ */
4319
+ declare const operationAnnotatorPlugin: HookPlugin<string>;
4320
+
4188
4321
  /**
4189
4322
  * Simple utility functions for event emission
4190
4323
  * These are pure functions that can be used to populate common event fields
@@ -13378,6 +13511,8 @@ declare const durableRunIdResolver: Resolver;
13378
13511
 
13379
13512
  declare const workflowVersionIdResolver: Resolver;
13380
13513
 
13514
+ declare const workflowDraftIdResolver: Resolver;
13515
+
13381
13516
  declare const workflowRunIdResolver: Resolver;
13382
13517
 
13383
13518
  declare const triggerMessagesResolver: Resolver;
@@ -13836,4 +13971,4 @@ declare function getAgent(): string | null;
13836
13971
  */
13837
13972
  declare const registryPlugin: (_sdk: {}) => {};
13838
13973
 
13839
- export { type NeedsRequest as $, type AggregatePlugin as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type ListAuthenticationsPluginProvides as H, type GetAuthenticationPluginProvides as I, type FindFirstAuthenticationPluginProvides as J, type FindUniqueAuthenticationPluginProvides as K, type LeafSummary as L, type MethodPlugin as M, type Action as N, type App as O, type PropertyPlugin as P, type Need as Q, type RegistryResult as R, type SdkContext as S, type TriggerInboxCommandSharedFields as T, type Field as U, type Choice as V, type WatchTriggerInboxOptions as W, type ActionExecutionResult as X, type ActionField as Y, type ZapierFetchInitOptions as Z, type ActionFieldChoice as _, type ApiClient as a, toTitleCase as a$, type NeedsResponse as a0, type Connection as a1, type ConnectionsResponse as a2, type UserProfile as a3, isPositional as a4, type PositionalMetadata as a5, createFunction as a6, createPaginatedFunction as a7, createPluginStack as a8, createCorePlugin as a9, type Formatter as aA, type OutputFormatter as aB, type Resolver$1 as aC, type ArrayResolver$1 as aD, type ResolverMetadata as aE, type StaticResolver$1 as aF, type DynamicResolver$1 as aG, type DynamicListResolver as aH, type DynamicSearchResolver as aI, type FieldsResolver as aJ, type Resolver as aK, type DynamicMember as aL, type PluginSurface as aM, createController as aN, type ControllerQuestion as aO, type ControllerAction as aP, type ControllerAnswerFn as aQ, type ControllerChoice as aR, type ControllerMethodSummary as aS, type ControllerMethodDescription as aT, type ControllerParameterDescription as aU, runInMethodScope as aV, runWithTelemetryContext as aW, getCallerContext as aX, runWithCallerContext as aY, type CallerContext as aZ, toSnakeCase as a_, addPlugin as aa, disposeSdk as ab, CoreDisposeError as ac, createSdk as ad, CONTEXT as ae, resolvePlugin as af, fromFunctionPlugin as ag, defineLegacyMerge as ah, getContext as ai, declarePlugin as aj, defineMethod as ak, defineMethodOverride as al, defineProperty as am, defineResolver as an, defineFormatter as ao, declareMethod as ap, declareProperty as aq, declareOptionalProperty as ar, selectExports as as, omitExports as at, getRegistryPlugin as au, zapierSdkPlugin as av, SDK_OPTIONS_ID as aw, sdkOptionsPluginRef as ax, type FormattedItem as ay, type BoundFormatter as az, type PluginSummary as b, LimitPropertySchema as b$, batch as b0, type BatchOptions as b1, buildCapabilityMessage as b2, logDeprecation as b3, resetDeprecationWarnings as b4, RelayRequestSchema as b5, RelayFetchSchema as b6, createZapierSdkWithoutRegistry as b7, zapierCoreOptions as b8, CORE_OPTIONS_ID as b9, type PollOptions as bA, createZapierApi as bB, getOrCreateApiClient as bC, isPermanentHttpError as bD, type SseMessage as bE, type JsonSseMessage as bF, DEPRECATION_NOTICE_EVENT as bG, type DeprecationNoticePayload as bH, type AppItem as bI, type ConnectionItem as bJ, type ActionItem$1 as bK, type InputFieldItem as bL, type InfoFieldItem as bM, type RootFieldItem as bN, type UserProfileItem as bO, type SdkPage as bP, type PaginatedSdkFunction as bQ, AppKeyPropertySchema as bR, AppPropertySchema as bS, ActionTypePropertySchema as bT, ActionKeyPropertySchema as bU, ActionPropertySchema as bV, InputFieldPropertySchema as bW, ConnectionIdPropertySchema as bX, AuthenticationIdPropertySchema as bY, ConnectionPropertySchema as bZ, InputsPropertySchema as b_, type FunctionRegistryEntry as ba, type FunctionDeprecation as bb, BaseSdkOptionsSchema as bc, isCoreError as bd, getCoreErrorCode as be, getCoreErrorCause as bf, CORE_ERROR_SYMBOL as bg, CoreErrorCode as bh, CoreSignal as bi, CoreCancelledSignal as bj, isCoreSignal as bk, isCoreCancelledSignal as bl, CORE_SIGNAL_SYMBOL as bm, type Plugin as bn, type PluginProvides as bo, type MethodOverridePlugin as bp, definePlugin as bq, createPluginMethod as br, createPaginatedPluginMethod as bs, composePlugins as bt, type ActionItem as bu, type ActionTypeItem as bv, type ResolvedAppLocator as bw, getAgent as bx, registryPlugin as by, type RequestOptions as bz, type PaginatedSdkResult as c, ZapierConflictError as c$, OffsetPropertySchema as c0, OutputPropertySchema as c1, DebugPropertySchema as c2, ParamsPropertySchema as c3, ActionTimeoutSecondsPropertySchema as c4, ActionTimeoutMillisecondsPropertySchema as c5, TablePropertySchema as c6, RecordPropertySchema as c7, RecordsPropertySchema as c8, FieldsPropertySchema as c9, type TableProperty as cA, type RecordProperty as cB, type RecordsProperty as cC, type FieldsProperty as cD, type AppsProperty as cE, type TablesProperty as cF, type ConnectionsProperty as cG, type TriggerInboxProperty as cH, type TriggerInboxKeyProperty as cI, type TriggerInboxNameProperty as cJ, type LeaseProperty as cK, type LeaseSecondsProperty as cL, type LeaseLimitProperty as cM, type ErrorOptions as cN, ZapierError as cO, ZapierValidationError as cP, ZapierUnknownError as cQ, ZapierAuthenticationError as cR, zapierAdaptError as cS, ZapierApiError as cT, ZapierAppNotFoundError as cU, ZapierNotFoundError as cV, ZapierResourceNotFoundError as cW, ZapierConfigurationError as cX, ZapierBundleError as cY, ZapierTimeoutError as cZ, ZapierActionError as c_, AppsPropertySchema as ca, TablesPropertySchema as cb, ConnectionsPropertySchema as cc, TriggerInboxPropertySchema as cd, TriggerInboxKeyPropertySchema as ce, TriggerInboxNamePropertySchema as cf, LeasePropertySchema as cg, LeaseSecondsPropertySchema as ch, LeaseLimitPropertySchema as ci, type AppKeyProperty as cj, type AppProperty as ck, type ActionTypeProperty as cl, type ActionKeyProperty as cm, type ActionProperty as cn, type InputFieldProperty as co, type ConnectionIdProperty as cp, type ConnectionProperty as cq, type AuthenticationIdProperty as cr, type InputsProperty as cs, type LimitProperty as ct, type OffsetProperty as cu, type OutputProperty as cv, type DebugProperty as cw, type ParamsProperty as cx, type ActionTimeoutSecondsProperty as cy, type ActionTimeoutMillisecondsProperty as cz, type ManifestProvider as d, type ApiPluginOptions as d$, type RateLimitInfo as d0, ZapierRateLimitError as d1, type ApprovalStatus as d2, ZapierApprovalError as d3, ZapierRelayError as d4, isZapierError as d5, isZapierValidationError as d6, isZapierAuthenticationError as d7, isZapierAppNotFoundError as d8, isZapierNotFoundError as d9, type ListConnectionsPluginProvides as dA, listClientCredentialsPlugin as dB, createClientCredentialsPlugin as dC, deleteClientCredentialsPlugin as dD, getAppPlugin as dE, getActionPlugin as dF, getConnectionPlugin as dG, findFirstConnectionPlugin as dH, findUniqueConnectionPlugin as dI, CONTEXT_CACHE_TTL_MILLISECONDS as dJ, CONTEXT_CACHE_MAX_SIZE as dK, runActionPlugin as dL, type RunActionPluginProvides as dM, requestPlugin as dN, type ManifestPluginOptions as dO, readManifestFromFile as dP, getPreferredManifestEntryKey as dQ, findManifestEntry as dR, MANIFEST_ID as dS, manifestPluginRef as dT, manifestPlugin as dU, type UpdateManifestEntryOptions as dV, type UpdateManifestEntryResult as dW, DEFAULT_CONFIG_PATH as dX, type ManifestEntry as dY, type ActionEntry as dZ, getProfilePlugin as d_, isZapierResourceNotFoundError as da, isZapierConflictError as db, isZapierTimeoutError as dc, isZapierBundleError as dd, isZapierActionError as de, isZapierRateLimitError as df, isZapierApprovalError as dg, formatErrorMessage as dh, type CoreApiError as di, ZapierSignal as dj, isZapierSignal as dk, appsPlugin as dl, type ActionExecutionOptions as dm, type AppFactoryInput as dn, type FetchPluginProvides as dp, fetchPlugin as dq, listAppsPlugin as dr, type ListAppsPluginProvides as ds, listActionsPlugin as dt, type ListActionsPluginProvides as du, listActionInputFieldsPlugin as dv, type ListActionInputFieldsPluginProvides as dw, listActionInputFieldChoicesPlugin as dx, getActionInputFieldsSchemaPlugin as dy, listConnectionsPlugin as dz, type CapabilitiesContext as e, getBaseUrlFromCredentials as e$, type ResolveCredentialsFn as e0, API_ID as e1, apiPluginRef as e2, apiPlugin as e3, RESOLVE_CREDENTIALS_ID as e4, resolveCredentialsPluginRef as e5, resolveCredentialsPlugin as e6, appKeyResolver as e7, actionTypeResolver as e8, actionKeyResolver as e9, clearTokenCache as eA, invalidateCachedToken as eB, injectCliLogin as eC, isCliLoginAvailable as eD, getTokenFromCliLogin as eE, resolveAuth as eF, resolveAuthToken as eG, invalidateCredentialsToken as eH, type ZapierCacheEntry as eI, type ZapierCacheSetOptions as eJ, createMemoryCache as eK, type SdkEvent as eL, type AuthEvent as eM, type ApiEvent as eN, type LoadingEvent as eO, type Credentials as eP, type ResolvedCredentials as eQ, type CredentialsObject as eR, type ClientCredentialsObject as eS, type PkceCredentialsObject as eT, isClientCredentials as eU, isPkceCredentials as eV, isCredentialsObject as eW, isCredentialsFunction as eX, type ResolveCredentialsOptions as eY, resolveCredentialsFromEnv as eZ, resolveCredentials as e_, connectionIdResolver as ea, connectionIdGenericResolver as eb, inputsResolver as ec, inputsAllOptionalResolver as ed, inputFieldKeyResolver as ee, clientCredentialsNameResolver as ef, clientIdResolver as eg, tableIdResolver as eh, triggerInboxResolver as ei, workflowIdResolver as ej, durableRunIdResolver as ek, workflowVersionIdResolver as el, workflowRunIdResolver as em, triggerMessagesResolver as en, tableRecordIdResolver as eo, tableRecordIdsResolver as ep, tableFieldIdsResolver as eq, tableNameResolver as er, tableFieldsResolver as es, tableRecordsResolver as et, tableUpdateRecordsResolver as eu, tableFiltersResolver as ev, tableSortResolver as ew, type ResolveAuthTokenOptions as ex, AuthMechanism as ey, type ResolvedAuth as ez, type CoreOptions as f, getCurrentTimestamp as f$, getClientIdFromCredentials as f0, ClientCredentialsObjectSchema as f1, PkceCredentialsObjectSchema as f2, CredentialsObjectSchema as f3, ResolvedCredentialsSchema as f4, CredentialsFunctionSchema as f5, type CredentialsFunction as f6, CredentialsSchema as f7, ConnectionEntrySchema as f8, type ConnectionEntry as f9, createTableFieldsPlugin as fA, deleteTableFieldsPlugin as fB, getTableRecordPlugin as fC, listTableRecordsPlugin as fD, createTableRecordsPlugin as fE, deleteTableRecordsPlugin as fF, updateTableRecordsPlugin as fG, cleanupEventListeners as fH, type EventEmissionContext as fI, type EventEmitter as fJ, EVENT_EMISSION_ID as fK, eventEmissionPluginRef as fL, eventEmissionPlugin as fM, eventEmissionHookPlugin as fN, type EventTransport as fO, type EventContext as fP, type ApplicationLifecycleEventData as fQ, type EnhancedErrorEventData as fR, type MethodCalledEventData as fS, buildApplicationLifecycleEvent as fT, buildErrorEventWithContext as fU, buildErrorEvent as fV, createBaseEvent as fW, buildMethodCalledEvent as fX, type BaseEvent as fY, type MethodCalledEvent as fZ, generateEventId as f_, ConnectionsMapSchema as fa, type ConnectionsMap as fb, type ResolveConnection as fc, CONNECTIONS_ID as fd, connectionsPluginRef as fe, connectionsPlugin as ff, ZAPIER_BASE_URL as fg, getZapierSdkService as fh, MAX_PAGE_LIMIT as fi, DEFAULT_PAGE_SIZE as fj, DEFAULT_ACTION_TIMEOUT_MILLISECONDS as fk, ZAPIER_MAX_NETWORK_RETRIES as fl, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS as fm, MAX_CONCURRENCY_LIMIT as fn, parseConcurrencyEnvVar as fo, ZAPIER_MAX_CONCURRENT_REQUESTS as fp, getZapierApprovalMode as fq, getZapierOpenAutoModeApprovalsInBrowser as fr, getZapierDefaultApprovalMode as fs, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS as ft, DEFAULT_MAX_APPROVAL_RETRIES as fu, listTablesPlugin as fv, getTablePlugin as fw, createTablePlugin as fx, deleteTablePlugin as fy, listTableFieldsPlugin as fz, type ActionProxy as g, getReleaseId as g0, getOsInfo as g1, getPlatformVersions as g2, isCi as g3, getCiPlatform as g4, getMemoryUsage as g5, getCpuTime as g6, getTtyContext as g7, createZapierSdk as g8, type ZapierSdkOptions as g9, type ZapierSdk as ga, type ZapierSdkApps as h, type DrainTriggerInboxOptions as i, type Manifest as j, type EventEmissionConfig as k, type ZapierCache as l, type ListActionsOptions as m, type ListActionInputFieldsOptions as n, type ListActionInputFieldChoicesOptions as o, type PluginMeta as p, DrainTriggerInboxSchema as q, WatchTriggerInboxSchema as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, isZapierAbortDrainSignal as u, isZapierReleaseTriggerMessageSignal as v, type DrainTriggerInboxCallback as w, type DrainTriggerInboxErrorObserver as x, type LeasedTriggerMessageItem as y, type TriggerMessageStatus as z };
13974
+ export { type NeedsRequest as $, type AggregatePlugin as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type ListAuthenticationsPluginProvides as H, type GetAuthenticationPluginProvides as I, type FindFirstAuthenticationPluginProvides as J, type FindUniqueAuthenticationPluginProvides as K, type LeafSummary as L, type MethodPlugin as M, type Action as N, type App as O, type PropertyPlugin as P, type Need as Q, type RegistryResult as R, type SdkContext as S, type TriggerInboxCommandSharedFields as T, type Field as U, type Choice as V, type WatchTriggerInboxOptions as W, type ActionExecutionResult as X, type ActionField as Y, type ZapierFetchInitOptions as Z, type ActionFieldChoice as _, type ApiClient as a, toTitleCase as a$, type NeedsResponse as a0, type Connection as a1, type ConnectionsResponse as a2, type UserProfile as a3, isPositional as a4, type PositionalMetadata as a5, createFunction as a6, createPaginatedFunction as a7, createPluginStack as a8, createCorePlugin as a9, type Formatter as aA, type OutputFormatter as aB, type Resolver$1 as aC, type ArrayResolver$1 as aD, type ResolverMetadata as aE, type StaticResolver$1 as aF, type DynamicResolver$1 as aG, type DynamicListResolver as aH, type DynamicSearchResolver as aI, type FieldsResolver as aJ, type Resolver as aK, type DynamicMember as aL, type PluginSurface as aM, createController as aN, type ControllerQuestion as aO, type ControllerAction as aP, type ControllerAnswerFn as aQ, type ControllerChoice as aR, type ControllerMethodSummary as aS, type ControllerMethodDescription as aT, type ControllerParameterDescription as aU, runInMethodScope as aV, runWithTelemetryContext as aW, getCallerContext as aX, runWithCallerContext as aY, type CallerContext as aZ, toSnakeCase as a_, addPlugin as aa, disposeSdk as ab, CoreDisposeError as ac, createSdk as ad, CONTEXT as ae, resolvePlugin as af, fromFunctionPlugin as ag, defineLegacyMerge as ah, getContext as ai, declarePlugin as aj, defineMethod as ak, defineMethodOverride as al, defineProperty as am, defineResolver as an, defineFormatter as ao, declareMethod as ap, declareProperty as aq, declareOptionalProperty as ar, selectExports as as, omitExports as at, getRegistryPlugin as au, zapierSdkPlugin as av, SDK_OPTIONS_ID as aw, sdkOptionsPluginRef as ax, type FormattedItem as ay, type BoundFormatter as az, type PluginSummary as b, LimitPropertySchema as b$, batch as b0, type BatchOptions as b1, buildCapabilityMessage as b2, logDeprecation as b3, resetDeprecationWarnings as b4, RelayRequestSchema as b5, RelayFetchSchema as b6, createZapierSdkWithoutRegistry as b7, zapierCoreOptions as b8, CORE_OPTIONS_ID as b9, type PollOptions as bA, createZapierApi as bB, getOrCreateApiClient as bC, isPermanentHttpError as bD, type SseMessage as bE, type JsonSseMessage as bF, DEPRECATION_NOTICE_EVENT as bG, type DeprecationNoticePayload as bH, type AppItem as bI, type ConnectionItem as bJ, type ActionItem$1 as bK, type InputFieldItem as bL, type InfoFieldItem as bM, type RootFieldItem as bN, type UserProfileItem as bO, type SdkPage as bP, type PaginatedSdkFunction as bQ, AppKeyPropertySchema as bR, AppPropertySchema as bS, ActionTypePropertySchema as bT, ActionKeyPropertySchema as bU, ActionPropertySchema as bV, InputFieldPropertySchema as bW, ConnectionIdPropertySchema as bX, AuthenticationIdPropertySchema as bY, ConnectionPropertySchema as bZ, InputsPropertySchema as b_, type FunctionRegistryEntry as ba, type FunctionDeprecation as bb, BaseSdkOptionsSchema as bc, isCoreError as bd, getCoreErrorCode as be, getCoreErrorCause as bf, CORE_ERROR_SYMBOL as bg, CoreErrorCode as bh, CoreSignal as bi, CoreCancelledSignal as bj, isCoreSignal as bk, isCoreCancelledSignal as bl, CORE_SIGNAL_SYMBOL as bm, type Plugin as bn, type PluginProvides as bo, type MethodOverridePlugin as bp, definePlugin as bq, createPluginMethod as br, createPaginatedPluginMethod as bs, composePlugins as bt, type ActionItem as bu, type ActionTypeItem as bv, type ResolvedAppLocator as bw, getAgent as bx, registryPlugin as by, type RequestOptions as bz, type PaginatedSdkResult as c, ZapierConflictError as c$, OffsetPropertySchema as c0, OutputPropertySchema as c1, DebugPropertySchema as c2, ParamsPropertySchema as c3, ActionTimeoutSecondsPropertySchema as c4, ActionTimeoutMillisecondsPropertySchema as c5, TablePropertySchema as c6, RecordPropertySchema as c7, RecordsPropertySchema as c8, FieldsPropertySchema as c9, type TableProperty as cA, type RecordProperty as cB, type RecordsProperty as cC, type FieldsProperty as cD, type AppsProperty as cE, type TablesProperty as cF, type ConnectionsProperty as cG, type TriggerInboxProperty as cH, type TriggerInboxKeyProperty as cI, type TriggerInboxNameProperty as cJ, type LeaseProperty as cK, type LeaseSecondsProperty as cL, type LeaseLimitProperty as cM, type ErrorOptions as cN, ZapierError as cO, ZapierValidationError as cP, ZapierUnknownError as cQ, ZapierAuthenticationError as cR, zapierAdaptError as cS, ZapierApiError as cT, ZapierAppNotFoundError as cU, ZapierNotFoundError as cV, ZapierResourceNotFoundError as cW, ZapierConfigurationError as cX, ZapierBundleError as cY, ZapierTimeoutError as cZ, ZapierActionError as c_, AppsPropertySchema as ca, TablesPropertySchema as cb, ConnectionsPropertySchema as cc, TriggerInboxPropertySchema as cd, TriggerInboxKeyPropertySchema as ce, TriggerInboxNamePropertySchema as cf, LeasePropertySchema as cg, LeaseSecondsPropertySchema as ch, LeaseLimitPropertySchema as ci, type AppKeyProperty as cj, type AppProperty as ck, type ActionTypeProperty as cl, type ActionKeyProperty as cm, type ActionProperty as cn, type InputFieldProperty as co, type ConnectionIdProperty as cp, type ConnectionProperty as cq, type AuthenticationIdProperty as cr, type InputsProperty as cs, type LimitProperty as ct, type OffsetProperty as cu, type OutputProperty as cv, type DebugProperty as cw, type ParamsProperty as cx, type ActionTimeoutSecondsProperty as cy, type ActionTimeoutMillisecondsProperty as cz, type ManifestProvider as d, type ApiPluginOptions as d$, type RateLimitInfo as d0, ZapierRateLimitError as d1, type ApprovalStatus as d2, ZapierApprovalError as d3, ZapierRelayError as d4, isZapierError as d5, isZapierValidationError as d6, isZapierAuthenticationError as d7, isZapierAppNotFoundError as d8, isZapierNotFoundError as d9, type ListConnectionsPluginProvides as dA, listClientCredentialsPlugin as dB, createClientCredentialsPlugin as dC, deleteClientCredentialsPlugin as dD, getAppPlugin as dE, getActionPlugin as dF, getConnectionPlugin as dG, findFirstConnectionPlugin as dH, findUniqueConnectionPlugin as dI, CONTEXT_CACHE_TTL_MILLISECONDS as dJ, CONTEXT_CACHE_MAX_SIZE as dK, runActionPlugin as dL, type RunActionPluginProvides as dM, requestPlugin as dN, type ManifestPluginOptions as dO, readManifestFromFile as dP, getPreferredManifestEntryKey as dQ, findManifestEntry as dR, MANIFEST_ID as dS, manifestPluginRef as dT, manifestPlugin as dU, type UpdateManifestEntryOptions as dV, type UpdateManifestEntryResult as dW, DEFAULT_CONFIG_PATH as dX, type ManifestEntry as dY, type ActionEntry as dZ, getProfilePlugin as d_, isZapierResourceNotFoundError as da, isZapierConflictError as db, isZapierTimeoutError as dc, isZapierBundleError as dd, isZapierActionError as de, isZapierRateLimitError as df, isZapierApprovalError as dg, formatErrorMessage as dh, type CoreApiError as di, ZapierSignal as dj, isZapierSignal as dk, appsPlugin as dl, type ActionExecutionOptions as dm, type AppFactoryInput as dn, type FetchPluginProvides as dp, fetchPlugin as dq, listAppsPlugin as dr, type ListAppsPluginProvides as ds, listActionsPlugin as dt, type ListActionsPluginProvides as du, listActionInputFieldsPlugin as dv, type ListActionInputFieldsPluginProvides as dw, listActionInputFieldChoicesPlugin as dx, getActionInputFieldsSchemaPlugin as dy, listConnectionsPlugin as dz, type CapabilitiesContext as e, resolveCredentials as e$, type ResolveCredentialsFn as e0, API_ID as e1, apiPluginRef as e2, apiPlugin as e3, RESOLVE_CREDENTIALS_ID as e4, resolveCredentialsPluginRef as e5, resolveCredentialsPlugin as e6, appKeyResolver as e7, actionTypeResolver as e8, actionKeyResolver as e9, type ResolvedAuth as eA, clearTokenCache as eB, invalidateCachedToken as eC, injectCliLogin as eD, isCliLoginAvailable as eE, getTokenFromCliLogin as eF, resolveAuth as eG, resolveAuthToken as eH, invalidateCredentialsToken as eI, type ZapierCacheEntry as eJ, type ZapierCacheSetOptions as eK, createMemoryCache as eL, type SdkEvent as eM, type AuthEvent as eN, type ApiEvent as eO, type LoadingEvent as eP, type Credentials as eQ, type ResolvedCredentials as eR, type CredentialsObject as eS, type ClientCredentialsObject as eT, type PkceCredentialsObject as eU, isClientCredentials as eV, isPkceCredentials as eW, isCredentialsObject as eX, isCredentialsFunction as eY, type ResolveCredentialsOptions as eZ, resolveCredentialsFromEnv as e_, connectionIdResolver as ea, connectionIdGenericResolver as eb, inputsResolver as ec, inputsAllOptionalResolver as ed, inputFieldKeyResolver as ee, clientCredentialsNameResolver as ef, clientIdResolver as eg, tableIdResolver as eh, triggerInboxResolver as ei, workflowIdResolver as ej, durableRunIdResolver as ek, workflowVersionIdResolver as el, workflowDraftIdResolver as em, workflowRunIdResolver as en, triggerMessagesResolver as eo, tableRecordIdResolver as ep, tableRecordIdsResolver as eq, tableFieldIdsResolver as er, tableNameResolver as es, tableFieldsResolver as et, tableRecordsResolver as eu, tableUpdateRecordsResolver as ev, tableFiltersResolver as ew, tableSortResolver as ex, type ResolveAuthTokenOptions as ey, AuthMechanism as ez, type CoreOptions as f, operationAnnotatorPlugin as f$, getBaseUrlFromCredentials as f0, getClientIdFromCredentials as f1, ClientCredentialsObjectSchema as f2, PkceCredentialsObjectSchema as f3, CredentialsObjectSchema as f4, ResolvedCredentialsSchema as f5, CredentialsFunctionSchema as f6, type CredentialsFunction as f7, CredentialsSchema as f8, ConnectionEntrySchema as f9, listTableFieldsPlugin as fA, createTableFieldsPlugin as fB, deleteTableFieldsPlugin as fC, getTableRecordPlugin as fD, listTableRecordsPlugin as fE, createTableRecordsPlugin as fF, deleteTableRecordsPlugin as fG, updateTableRecordsPlugin as fH, cleanupEventListeners as fI, type EventEmissionContext as fJ, type EventEmitter as fK, EVENT_EMISSION_ID as fL, eventEmissionPluginRef as fM, eventEmissionPlugin as fN, eventEmissionHookPlugin as fO, type EventTransport as fP, type EventContext as fQ, type ApplicationLifecycleEventData as fR, type EnhancedErrorEventData as fS, type MethodCalledEventData as fT, buildApplicationLifecycleEvent as fU, buildErrorEventWithContext as fV, buildErrorEvent as fW, createBaseEvent as fX, buildMethodCalledEvent as fY, type BaseEvent as fZ, type MethodCalledEvent as f_, type ConnectionEntry as fa, ConnectionsMapSchema as fb, type ConnectionsMap as fc, type ResolveConnection as fd, CONNECTIONS_ID as fe, connectionsPluginRef as ff, connectionsPlugin as fg, ZAPIER_BASE_URL as fh, getZapierSdkService as fi, MAX_PAGE_LIMIT as fj, DEFAULT_PAGE_SIZE as fk, DEFAULT_ACTION_TIMEOUT_MILLISECONDS as fl, ZAPIER_MAX_NETWORK_RETRIES as fm, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS as fn, MAX_CONCURRENCY_LIMIT as fo, parseConcurrencyEnvVar as fp, ZAPIER_MAX_CONCURRENT_REQUESTS as fq, getZapierApprovalMode as fr, getZapierOpenAutoModeApprovalsInBrowser as fs, getZapierDefaultApprovalMode as ft, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS as fu, DEFAULT_MAX_APPROVAL_RETRIES as fv, listTablesPlugin as fw, getTablePlugin as fx, createTablePlugin as fy, deleteTablePlugin as fz, type ActionProxy as g, generateEventId as g0, getCurrentTimestamp as g1, getReleaseId as g2, getOsInfo as g3, getPlatformVersions as g4, isCi as g5, getCiPlatform as g6, getMemoryUsage as g7, getCpuTime as g8, getTtyContext as g9, createZapierSdk as ga, type ZapierSdkOptions as gb, type ZapierSdk as gc, type ZapierSdkApps as h, type DrainTriggerInboxOptions as i, type Manifest as j, type EventEmissionConfig as k, type ZapierCache as l, type ListActionsOptions as m, type ListActionInputFieldsOptions as n, type ListActionInputFieldChoicesOptions as o, type PluginMeta as p, DrainTriggerInboxSchema as q, WatchTriggerInboxSchema as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, isZapierAbortDrainSignal as u, isZapierReleaseTriggerMessageSignal as v, type DrainTriggerInboxCallback as w, type DrainTriggerInboxErrorObserver as x, type LeasedTriggerMessageItem as y, type TriggerMessageStatus as z };