@zapier/zapier-sdk 0.84.0 → 0.84.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2097,9 +2097,7 @@ function buildMethodEntries(descriptors, context, states) {
2097
2097
  }
2098
2098
  );
2099
2099
  } else if (out.type === "item") {
2100
- const itemCore = async (input) => ({
2101
- data: await callRun(input)
2102
- });
2100
+ const itemCore = async (input) => callRun(input);
2103
2101
  entry.value = createFunction(
2104
2102
  fold(itemCore),
2105
2103
  {
@@ -5344,7 +5342,7 @@ function parseDeprecationDate(value) {
5344
5342
  }
5345
5343
 
5346
5344
  // src/sdk-version.ts
5347
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.0" : void 0) || "unknown";
5345
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.2" : void 0) || "unknown";
5348
5346
 
5349
5347
  // src/utils/open-url.ts
5350
5348
  var nodePrefix = "node:";
@@ -9335,7 +9333,7 @@ var getActionPlugin = defineMethod({
9335
9333
  });
9336
9334
  for await (const action of imports.listActions({ app: appKey }).items()) {
9337
9335
  if ((action.key === actionKey || action.id === actionKey) && action.action_type === actionType) {
9338
- return action;
9336
+ return { data: action };
9339
9337
  }
9340
9338
  }
9341
9339
  throw new ZapierResourceNotFoundError(
@@ -10444,7 +10442,10 @@ var getActionInputFieldsSchemaPlugin = defineMethod({
10444
10442
  connection: connectionIdResolver,
10445
10443
  inputs: inputsAllOptionalResolver
10446
10444
  },
10447
- run: async ({ imports, input }) => {
10445
+ run: async ({
10446
+ imports,
10447
+ input
10448
+ }) => {
10448
10449
  const api = imports.api;
10449
10450
  const getVersionedImplementationId = imports.manifest.getVersionedImplementationId;
10450
10451
  const resolveConnection = imports.connections.resolveConnection;
@@ -10482,7 +10483,7 @@ var getActionInputFieldsSchemaPlugin = defineMethod({
10482
10483
  connectionId: resolvedConnectionId ?? null,
10483
10484
  inputs
10484
10485
  });
10485
- return needsData.schema || {};
10486
+ return { data: needsData.schema || {} };
10486
10487
  }
10487
10488
  });
10488
10489
  var ListConnectionsQuerySchema = connections.ListConnectionsQuerySchema.omit({
@@ -10773,7 +10774,7 @@ var createClientCredentialsPlugin = defineMethod({
10773
10774
  requiredScopes: ["credentials"]
10774
10775
  }
10775
10776
  );
10776
- return response.data;
10777
+ return { data: response.data };
10777
10778
  }
10778
10779
  });
10779
10780
  var DeleteClientCredentialsSchema = zod.z.object({
@@ -10827,7 +10828,7 @@ var getAppPlugin = defineMethod({
10827
10828
  run: async ({ imports, input }) => {
10828
10829
  const appKey = "app" in input ? input.app : input.appKey;
10829
10830
  for await (const app of imports.listApps({ apps: [appKey] }).items()) {
10830
- return app;
10831
+ return { data: app };
10831
10832
  }
10832
10833
  throw new ZapierAppNotFoundError("App not found", { appKey });
10833
10834
  }
@@ -10873,7 +10874,7 @@ var getConnectionPlugin = defineMethod({
10873
10874
  }
10874
10875
  }
10875
10876
  );
10876
- return transformConnectionItem(response.data);
10877
+ return { data: transformConnectionItem(response.data) };
10877
10878
  }
10878
10879
  });
10879
10880
 
@@ -10908,7 +10909,7 @@ var findFirstConnectionPlugin = defineMethod({
10908
10909
  { resourceType: "Connection" }
10909
10910
  );
10910
10911
  }
10911
- return connectionsResponse.data[0];
10912
+ return { data: connectionsResponse.data[0] };
10912
10913
  }
10913
10914
  });
10914
10915
 
@@ -10949,7 +10950,7 @@ var findUniqueConnectionPlugin = defineMethod({
10949
10950
  "Multiple connections found matching the specified criteria. Expected exactly one."
10950
10951
  );
10951
10952
  }
10952
- return connectionsResponse.data[0];
10953
+ return { data: connectionsResponse.data[0] };
10953
10954
  }
10954
10955
  });
10955
10956
  var RelayRequestSchema = zod.z.object({
@@ -11064,13 +11065,15 @@ var getProfilePlugin = defineMethod({
11064
11065
  authRequired: true
11065
11066
  });
11066
11067
  return {
11067
- id: String(profile.public_id ?? profile.id),
11068
- first_name: profile.first_name,
11069
- last_name: profile.last_name,
11070
- full_name: `${profile.first_name} ${profile.last_name}`,
11071
- email: profile.email,
11072
- email_confirmed: profile.email_confirmed,
11073
- timezone: profile.timezone
11068
+ data: {
11069
+ id: String(profile.public_id ?? profile.id),
11070
+ first_name: profile.first_name,
11071
+ last_name: profile.last_name,
11072
+ full_name: `${profile.first_name} ${profile.last_name}`,
11073
+ email: profile.email,
11074
+ email_confirmed: profile.email_confirmed,
11075
+ timezone: profile.timezone
11076
+ }
11074
11077
  };
11075
11078
  }
11076
11079
  });
@@ -11127,12 +11130,14 @@ var getConnectionStartUrlPlugin = defineMethod({
11127
11130
  { selected_api: selectedApi },
11128
11131
  { authRequired: true }
11129
11132
  );
11130
- return GetConnectionStartUrlItemSchema.parse({
11131
- url: response.url,
11132
- expiresAt: response.expires_at,
11133
- startedAt: response.started_at,
11134
- app: selectedApi
11135
- });
11133
+ return {
11134
+ data: GetConnectionStartUrlItemSchema.parse({
11135
+ url: response.url,
11136
+ expiresAt: response.expires_at,
11137
+ startedAt: response.started_at,
11138
+ app: selectedApi
11139
+ })
11140
+ };
11136
11141
  }
11137
11142
  });
11138
11143
  var WaitForNewConnectionSchema = zod.z.object({
@@ -11206,11 +11211,13 @@ var waitForNewConnectionPlugin = defineMethod({
11206
11211
  body.data[0]
11207
11212
  )
11208
11213
  });
11209
- return WaitForNewConnectionItemSchema.parse({
11210
- id: String(top.public_id ?? top.id),
11211
- app: appKey,
11212
- title: top.title ?? null
11213
- });
11214
+ return {
11215
+ data: WaitForNewConnectionItemSchema.parse({
11216
+ id: String(top.public_id ?? top.id),
11217
+ app: appKey,
11218
+ title: top.title ?? null
11219
+ })
11220
+ };
11214
11221
  } catch (err) {
11215
11222
  if (err instanceof ZapierTimeoutError) {
11216
11223
  throw new ZapierTimeoutError(
@@ -11311,11 +11318,13 @@ Open this URL to complete the connection:
11311
11318
  timeoutMs: input.timeoutMs,
11312
11319
  pollIntervalMs: input.pollIntervalMs
11313
11320
  });
11314
- return CreateConnectionItemSchema.parse({
11315
- id: fresh.id,
11316
- app: start2.app,
11317
- title: fresh.title ?? null
11318
- });
11321
+ return {
11322
+ data: CreateConnectionItemSchema.parse({
11323
+ id: fresh.id,
11324
+ app: start2.app,
11325
+ title: fresh.title ?? null
11326
+ })
11327
+ };
11319
11328
  }
11320
11329
  });
11321
11330
 
@@ -11652,7 +11661,7 @@ var createTriggerInboxPlugin = defineMethod({
11652
11661
  }
11653
11662
  }
11654
11663
  );
11655
- return TriggerInboxItemSchema.parse(rawResponse);
11664
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11656
11665
  }
11657
11666
  });
11658
11667
  var EnsureTriggerInboxDescription = "Get-or-create a trigger inbox by key. Idempotent on (user, account, key): returns the existing inbox if a matching subscription is registered, creates a new one otherwise. Throws ZapierConflictError if the key exists with a different subscription.";
@@ -11753,7 +11762,7 @@ var ensureTriggerInboxPlugin = defineMethod({
11753
11762
  }
11754
11763
  }
11755
11764
  );
11756
- return TriggerInboxItemSchema.parse(rawResponse);
11765
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11757
11766
  }
11758
11767
  });
11759
11768
  var ListTriggerInboxesSchema = zod.z.object({
@@ -11848,7 +11857,7 @@ var getTriggerInboxPlugin = defineMethod({
11848
11857
  resource: { type: "trigger_inbox", id: inboxId }
11849
11858
  }
11850
11859
  );
11851
- return TriggerInboxItemSchema.parse(rawResponse);
11860
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11852
11861
  }
11853
11862
  });
11854
11863
  var UpdateTriggerInboxSchema = zod.z.object({
@@ -11886,7 +11895,7 @@ var updateTriggerInboxPlugin = defineMethod({
11886
11895
  resource: { type: "trigger_inbox", id: inboxId }
11887
11896
  }
11888
11897
  );
11889
- return TriggerInboxItemSchema.parse(rawResponse);
11898
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11890
11899
  }
11891
11900
  });
11892
11901
  var DeleteTriggerInboxSchema = zod.z.object({
@@ -11951,7 +11960,7 @@ var pauseTriggerInboxPlugin = defineMethod({
11951
11960
  resource: { type: "trigger_inbox", id: inboxId }
11952
11961
  }
11953
11962
  );
11954
- return TriggerInboxItemSchema.parse(rawResponse);
11963
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11955
11964
  }
11956
11965
  });
11957
11966
  var ResumeTriggerInboxSchema = zod.z.object({
@@ -11982,7 +11991,7 @@ var resumeTriggerInboxPlugin = defineMethod({
11982
11991
  resource: { type: "trigger_inbox", id: inboxId }
11983
11992
  }
11984
11993
  );
11985
- return TriggerInboxItemSchema.parse(rawResponse);
11994
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11986
11995
  }
11987
11996
  });
11988
11997
  var TriggerMessageStatusSchema = zod.z.union([zod.z.enum(["available", "leased", "acked", "quarantined"]), zod.z.string()]).describe("Message lifecycle status");
@@ -12171,7 +12180,7 @@ var leaseTriggerInboxMessagesPlugin = defineMethod({
12171
12180
  }
12172
12181
  }
12173
12182
  );
12174
- return LeaseTriggerInboxMessagesItemSchema.parse(rawResponse);
12183
+ return { data: LeaseTriggerInboxMessagesItemSchema.parse(rawResponse) };
12175
12184
  }
12176
12185
  });
12177
12186
  var AckTriggerInboxMessagesSchema = zod.z.object({
@@ -12221,7 +12230,7 @@ var ackTriggerInboxMessagesPlugin = defineMethod({
12221
12230
  requestBody,
12222
12231
  { authRequired: true }
12223
12232
  );
12224
- return AckTriggerInboxMessagesItemSchema.parse(rawResponse);
12233
+ return { data: AckTriggerInboxMessagesItemSchema.parse(rawResponse) };
12225
12234
  }
12226
12235
  });
12227
12236
  var ReleaseTriggerInboxMessagesSchema = zod.z.object({
@@ -12271,7 +12280,7 @@ var releaseTriggerInboxMessagesPlugin = defineMethod({
12271
12280
  requestBody,
12272
12281
  { authRequired: true }
12273
12282
  );
12274
- return ReleaseTriggerInboxMessagesItemSchema.parse(rawResponse);
12283
+ return { data: ReleaseTriggerInboxMessagesItemSchema.parse(rawResponse) };
12275
12284
  }
12276
12285
  });
12277
12286
 
@@ -13236,7 +13245,7 @@ var getTablePlugin = defineMethod({
13236
13245
  resource: { type: "table", id: tableId }
13237
13246
  });
13238
13247
  const response = GetTableApiResponseSchema.parse(rawResponse);
13239
- return transformTableItem(response.data);
13248
+ return { data: transformTableItem(response.data) };
13240
13249
  }
13241
13250
  });
13242
13251
  var DeleteTableDescription = "Delete a table by its ID";
@@ -13296,7 +13305,7 @@ var createTablePlugin = defineMethod({
13296
13305
  { authRequired: true }
13297
13306
  );
13298
13307
  const response = CreateTableApiResponseSchema.parse(rawResponse);
13299
- return transformTableItem(response.data);
13308
+ return { data: transformTableItem(response.data) };
13300
13309
  }
13301
13310
  });
13302
13311
 
@@ -13316,10 +13325,8 @@ var listTableFieldsPlugin = defineMethod({
13316
13325
  imports: [apiPluginRef],
13317
13326
  categories: tableCategories,
13318
13327
  itemType: "Field",
13319
- // A field list, but the API returns no cursor: legacy used the non-paginated
13320
- // createPluginMethod (a `createFunction` boundary returning a bare `{ data }`,
13321
- // not an iterator). `output: "item"` reproduces that exactly (same boundary +
13322
- // hooks; run returns the bare array, framework wraps to `{ data }`); the
13328
+ // A field list, but the API returns no cursor, so `output: "item"` returns
13329
+ // `{ data: FieldItem[] }` directly instead of a paginated iterator; the
13323
13330
  // `type: "list"` first-class field keeps the list presentation.
13324
13331
  type: "list",
13325
13332
  inputSchema: ListTableFieldsOptionsInputSchema,
@@ -13348,7 +13355,7 @@ var listTableFieldsPlugin = defineMethod({
13348
13355
  }
13349
13356
  );
13350
13357
  const response = ListTableFieldsApiResponseSchema.parse(rawResponse);
13351
- return response.data.map(transformFieldItem);
13358
+ return { data: response.data.map(transformFieldItem) };
13352
13359
  }
13353
13360
  });
13354
13361
  var FieldChangesetItemSchema = zod.z.object({
@@ -13393,8 +13400,8 @@ var createTableFieldsPlugin = defineMethod({
13393
13400
  returnType: "FieldItem[]",
13394
13401
  inputSchema: CreateTableFieldsOptionsInputSchema,
13395
13402
  outputSchema: FieldItemSchema,
13396
- // `run` returns the field array; `output: "item"` wraps it in `{ data }` to
13397
- // match the legacy `{ data: FieldItem[] }` surface.
13403
+ // Item output with an array payload: callers get `{ data: FieldItem[] }`
13404
+ // directly rather than a paginated list.
13398
13405
  output: "item",
13399
13406
  formatter: tableFieldItemFormatter,
13400
13407
  resolvers: { table: tableIdResolver, fields: tableFieldsResolver },
@@ -13407,7 +13414,9 @@ var createTableFieldsPlugin = defineMethod({
13407
13414
  { authRequired: true, resource: { type: "table", id: tableId } }
13408
13415
  );
13409
13416
  const response = CreateTableFieldsApiResponseSchema.parse(rawResponse);
13410
- return response.data.map((changeset) => transformFieldItem(changeset.new));
13417
+ return {
13418
+ data: response.data.map((changeset) => transformFieldItem(changeset.new))
13419
+ };
13411
13420
  }
13412
13421
  });
13413
13422
  var DeleteTableFieldsDescription = "Delete one or more fields from a table";
@@ -13548,8 +13557,10 @@ var getTableRecordPlugin = defineMethod({
13548
13557
  keyMode: input.keyMode
13549
13558
  });
13550
13559
  return {
13551
- ...transformRecordItem(response.data),
13552
- data: translator.translateOutput(response.data.data)
13560
+ data: {
13561
+ ...transformRecordItem(response.data),
13562
+ data: translator.translateOutput(response.data.data)
13563
+ }
13553
13564
  };
13554
13565
  }
13555
13566
  });
@@ -13728,8 +13739,8 @@ var createTableRecordsPlugin = defineMethod({
13728
13739
  returnType: "RecordItem[]",
13729
13740
  inputSchema: CreateTableRecordsOptionsInputSchema,
13730
13741
  outputSchema: RecordItemSchema,
13731
- // `run` returns the record array; `output: "item"` wraps it in `{ data }` to
13732
- // match the legacy `{ data: RecordItem[] }` surface.
13742
+ // Item output with an array payload: callers get `{ data: RecordItem[] }`
13743
+ // directly rather than a paginated list.
13733
13744
  output: "item",
13734
13745
  resolvers: { table: tableIdResolver, records: tableRecordsResolver },
13735
13746
  formatter: tableRecordFormatter,
@@ -13755,10 +13766,12 @@ var createTableRecordsPlugin = defineMethod({
13755
13766
  for (const changeset of response.data) {
13756
13767
  throwOnRecordErrors(changeset.new);
13757
13768
  }
13758
- return response.data.map((changeset) => ({
13759
- ...transformRecordItem(changeset.new),
13760
- data: translator.translateOutput(changeset.new.data)
13761
- }));
13769
+ return {
13770
+ data: response.data.map((changeset) => ({
13771
+ ...transformRecordItem(changeset.new),
13772
+ data: translator.translateOutput(changeset.new.data)
13773
+ }))
13774
+ };
13762
13775
  }
13763
13776
  });
13764
13777
  var DeleteTableRecordsDescription = "Delete one or more records from a table";
@@ -13838,8 +13851,8 @@ var updateTableRecordsPlugin = defineMethod({
13838
13851
  returnType: "RecordItem[]",
13839
13852
  inputSchema: UpdateTableRecordsOptionsInputSchema,
13840
13853
  outputSchema: RecordItemSchema,
13841
- // `run` returns the record array; `output: "item"` wraps it in `{ data }` to
13842
- // match the legacy `{ data: RecordItem[] }` surface.
13854
+ // Item output with an array payload: callers get `{ data: RecordItem[] }`
13855
+ // directly rather than a paginated list.
13843
13856
  output: "item",
13844
13857
  resolvers: { table: tableIdResolver, records: tableUpdateRecordsResolver },
13845
13858
  formatter: tableRecordFormatter,
@@ -13866,10 +13879,12 @@ var updateTableRecordsPlugin = defineMethod({
13866
13879
  for (const changeset of response.data) {
13867
13880
  throwOnRecordErrors(changeset.new);
13868
13881
  }
13869
- return response.data.map((changeset) => ({
13870
- ...transformRecordItem(changeset.new),
13871
- data: translator.translateOutput(changeset.new.data)
13872
- }));
13882
+ return {
13883
+ data: response.data.map((changeset) => ({
13884
+ ...transformRecordItem(changeset.new),
13885
+ data: translator.translateOutput(changeset.new.data)
13886
+ }))
13887
+ };
13873
13888
  }
13874
13889
  });
13875
13890
 
@@ -14075,6 +14090,7 @@ function buildErrorEvent(data, context = {}) {
14075
14090
  app_version_id: context.app_version_id,
14076
14091
  environment: context.environment,
14077
14092
  ...data,
14093
+ ...getTtyContext(),
14078
14094
  agent: getAgent(),
14079
14095
  caller_package: context.caller_package ?? null,
14080
14096
  caller_package_version: context.caller_package_version ?? null,
@@ -14124,6 +14140,7 @@ function buildErrorEventWithContext(data, context = {}) {
14124
14140
  environment: context.environment ?? (globalThis.process?.env?.NODE_ENV || null),
14125
14141
  execution_time_before_error_ms: executionTime,
14126
14142
  ...data,
14143
+ ...getTtyContext(),
14127
14144
  agent: getAgent(),
14128
14145
  caller_package: context.caller_package ?? null,
14129
14146
  caller_package_version: context.caller_package_version ?? null,
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index--H-bce1q.mjs';
1
+ export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-DxgpC5hV.mjs';
2
2
  import 'zod';
3
3
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
4
4
  import '@zapier/policy-context';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index--H-bce1q.js';
1
+ export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-DxgpC5hV.js';
2
2
  import 'zod';
3
3
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
4
4
  import '@zapier/policy-context';