@zapier/zapier-sdk 0.83.3 → 0.84.1

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.
@@ -1081,6 +1081,21 @@ type StrictPage$1<TResponse> = SdkPage<unknown> & {
1081
1081
  type ItemOf$1<TResponse> = TResponse extends SdkPage<infer TItem> ? TItem : TResponse extends {
1082
1082
  data: readonly (infer TItem)[];
1083
1083
  } ? TItem : never;
1084
+ /**
1085
+ * A response whose only own key is `data`. Gates the item overload of
1086
+ * `defineMethod` the way `StrictPage` gates list-standard: `run` returns the
1087
+ * `{ data }` envelope itself, and an envelope with extra keys is rejected (a
1088
+ * future variant may accept metadata alongside `data`).
1089
+ */
1090
+ type StrictItem<TResponse> = {
1091
+ data: unknown;
1092
+ } & {
1093
+ [K in Exclude<keyof TResponse, "data">]?: never;
1094
+ };
1095
+ /** Data type sourced from an item envelope. */
1096
+ type DataOf<TResponse> = TResponse extends {
1097
+ data: infer TData;
1098
+ } ? TData : never;
1084
1099
  /**
1085
1100
  * A leaf plugin that is a single value (not a function). `value` is a static
1086
1101
  * constant; `get({ imports })` computes the value from imports. Like a
@@ -2095,8 +2110,8 @@ declare function createPluginStack<TRequires = object>(): PluginStack<TRequires,
2095
2110
  *
2096
2111
  * The `output` mode shapes `run`'s result into the public surface and drives
2097
2112
  * the overload that types the call: raw (default, passthrough), `item`
2098
- * (`run` returns `T`, surfaced as `Promise<{ data: T }>`), or `list` (`run`
2099
- * returns one `SdkPage`, surfaced as `PaginatedSdkResult`). See Output.
2113
+ * (`run` returns `{ data: T }`, surfaced as `Promise<{ data: T }>`), or `list`
2114
+ * (`run` returns one `SdkPage`, surfaced as `PaginatedSdkResult`). See Output.
2100
2115
  */
2101
2116
  declare function defineMethod<const TName extends string, TInput, TOutput, const TPositional extends readonly (keyof TInput & string)[] = readonly [], const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2102
2117
  name: TName;
@@ -2125,7 +2140,7 @@ declare function defineMethod<const TName extends string, TInput, TOutput, const
2125
2140
  }) => void | Promise<void>;
2126
2141
  run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TOutput;
2127
2142
  } & LeafMetaFields): MethodPlugin<TName, TInput, TOutput, TPositional> & LeafSummary<TNamespace, TName, TImports>;
2128
- declare function defineMethod<const TName extends string, TInput, TData, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2143
+ declare function defineMethod<const TName extends string, TInput, TResponse extends StrictItem<TResponse>, TData = DataOf<TResponse>, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2129
2144
  name: TName;
2130
2145
  namespace?: TNamespace;
2131
2146
  imports?: TImports & StaticList<TImports>;
@@ -2143,9 +2158,9 @@ declare function defineMethod<const TName extends string, TInput, TData, const T
2143
2158
  state: TState;
2144
2159
  input?: unknown;
2145
2160
  }) => void | Promise<void>;
2146
- run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TData;
2161
+ run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TResponse | Promise<TResponse>;
2147
2162
  } & LeafMetaFields): MethodPlugin<TName, TInput, Promise<{
2148
- data: Awaited<TData>;
2163
+ data: TData;
2149
2164
  }>> & LeafSummary<TNamespace, TName, TImports>;
2150
2165
  declare function defineMethod<const TName extends string, TInput, TResponse extends StrictPage$1<TResponse>, TItem = ItemOf$1<TResponse>, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2151
2166
  name: TName;
@@ -1081,6 +1081,21 @@ type StrictPage$1<TResponse> = SdkPage<unknown> & {
1081
1081
  type ItemOf$1<TResponse> = TResponse extends SdkPage<infer TItem> ? TItem : TResponse extends {
1082
1082
  data: readonly (infer TItem)[];
1083
1083
  } ? TItem : never;
1084
+ /**
1085
+ * A response whose only own key is `data`. Gates the item overload of
1086
+ * `defineMethod` the way `StrictPage` gates list-standard: `run` returns the
1087
+ * `{ data }` envelope itself, and an envelope with extra keys is rejected (a
1088
+ * future variant may accept metadata alongside `data`).
1089
+ */
1090
+ type StrictItem<TResponse> = {
1091
+ data: unknown;
1092
+ } & {
1093
+ [K in Exclude<keyof TResponse, "data">]?: never;
1094
+ };
1095
+ /** Data type sourced from an item envelope. */
1096
+ type DataOf<TResponse> = TResponse extends {
1097
+ data: infer TData;
1098
+ } ? TData : never;
1084
1099
  /**
1085
1100
  * A leaf plugin that is a single value (not a function). `value` is a static
1086
1101
  * constant; `get({ imports })` computes the value from imports. Like a
@@ -2095,8 +2110,8 @@ declare function createPluginStack<TRequires = object>(): PluginStack<TRequires,
2095
2110
  *
2096
2111
  * The `output` mode shapes `run`'s result into the public surface and drives
2097
2112
  * the overload that types the call: raw (default, passthrough), `item`
2098
- * (`run` returns `T`, surfaced as `Promise<{ data: T }>`), or `list` (`run`
2099
- * returns one `SdkPage`, surfaced as `PaginatedSdkResult`). See Output.
2113
+ * (`run` returns `{ data: T }`, surfaced as `Promise<{ data: T }>`), or `list`
2114
+ * (`run` returns one `SdkPage`, surfaced as `PaginatedSdkResult`). See Output.
2100
2115
  */
2101
2116
  declare function defineMethod<const TName extends string, TInput, TOutput, const TPositional extends readonly (keyof TInput & string)[] = readonly [], const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2102
2117
  name: TName;
@@ -2125,7 +2140,7 @@ declare function defineMethod<const TName extends string, TInput, TOutput, const
2125
2140
  }) => void | Promise<void>;
2126
2141
  run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TOutput;
2127
2142
  } & LeafMetaFields): MethodPlugin<TName, TInput, TOutput, TPositional> & LeafSummary<TNamespace, TName, TImports>;
2128
- declare function defineMethod<const TName extends string, TInput, TData, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2143
+ declare function defineMethod<const TName extends string, TInput, TResponse extends StrictItem<TResponse>, TData = DataOf<TResponse>, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2129
2144
  name: TName;
2130
2145
  namespace?: TNamespace;
2131
2146
  imports?: TImports & StaticList<TImports>;
@@ -2143,9 +2158,9 @@ declare function defineMethod<const TName extends string, TInput, TData, const T
2143
2158
  state: TState;
2144
2159
  input?: unknown;
2145
2160
  }) => void | Promise<void>;
2146
- run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TData;
2161
+ run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TResponse | Promise<TResponse>;
2147
2162
  } & LeafMetaFields): MethodPlugin<TName, TInput, Promise<{
2148
- data: Awaited<TData>;
2163
+ data: TData;
2149
2164
  }>> & LeafSummary<TNamespace, TName, TImports>;
2150
2165
  declare function defineMethod<const TName extends string, TInput, TResponse extends StrictPage$1<TResponse>, TItem = ItemOf$1<TResponse>, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
2151
2166
  name: TName;
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.83.3" : void 0) || "unknown";
5345
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.1" : void 0) || "unknown";
5348
5346
 
5349
5347
  // src/utils/open-url.ts
5350
5348
  var nodePrefix = "node:";
@@ -5562,6 +5560,18 @@ var pathConfig = {
5562
5560
  "/durableworkflowzaps": {
5563
5561
  authHeader: "Authorization",
5564
5562
  pathPrefix: "/api/v0/sdk/durableworkflowzaps"
5563
+ },
5564
+ // e.g. /code-substrate-runner -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-runner/...
5565
+ // sdkapi proxies to the code-substrate-runner backend.
5566
+ "/code-substrate-runner": {
5567
+ authHeader: "Authorization",
5568
+ pathPrefix: "/api/v0/sdk/code-substrate-runner"
5569
+ },
5570
+ // e.g. /code-substrate-workflows -> https://sdkapi.zapier.com/api/v0/sdk/code-substrate-workflows/...
5571
+ // sdkapi proxies to the code-substrate-workflows backend.
5572
+ "/code-substrate-workflows": {
5573
+ authHeader: "Authorization",
5574
+ pathPrefix: "/api/v0/sdk/code-substrate-workflows"
5565
5575
  }
5566
5576
  };
5567
5577
  var ZapierApiClient = class {
@@ -9323,7 +9333,7 @@ var getActionPlugin = defineMethod({
9323
9333
  });
9324
9334
  for await (const action of imports.listActions({ app: appKey }).items()) {
9325
9335
  if ((action.key === actionKey || action.id === actionKey) && action.action_type === actionType) {
9326
- return action;
9336
+ return { data: action };
9327
9337
  }
9328
9338
  }
9329
9339
  throw new ZapierResourceNotFoundError(
@@ -10432,7 +10442,10 @@ var getActionInputFieldsSchemaPlugin = defineMethod({
10432
10442
  connection: connectionIdResolver,
10433
10443
  inputs: inputsAllOptionalResolver
10434
10444
  },
10435
- run: async ({ imports, input }) => {
10445
+ run: async ({
10446
+ imports,
10447
+ input
10448
+ }) => {
10436
10449
  const api = imports.api;
10437
10450
  const getVersionedImplementationId = imports.manifest.getVersionedImplementationId;
10438
10451
  const resolveConnection = imports.connections.resolveConnection;
@@ -10470,7 +10483,7 @@ var getActionInputFieldsSchemaPlugin = defineMethod({
10470
10483
  connectionId: resolvedConnectionId ?? null,
10471
10484
  inputs
10472
10485
  });
10473
- return needsData.schema || {};
10486
+ return { data: needsData.schema || {} };
10474
10487
  }
10475
10488
  });
10476
10489
  var ListConnectionsQuerySchema = connections.ListConnectionsQuerySchema.omit({
@@ -10761,7 +10774,7 @@ var createClientCredentialsPlugin = defineMethod({
10761
10774
  requiredScopes: ["credentials"]
10762
10775
  }
10763
10776
  );
10764
- return response.data;
10777
+ return { data: response.data };
10765
10778
  }
10766
10779
  });
10767
10780
  var DeleteClientCredentialsSchema = zod.z.object({
@@ -10815,7 +10828,7 @@ var getAppPlugin = defineMethod({
10815
10828
  run: async ({ imports, input }) => {
10816
10829
  const appKey = "app" in input ? input.app : input.appKey;
10817
10830
  for await (const app of imports.listApps({ apps: [appKey] }).items()) {
10818
- return app;
10831
+ return { data: app };
10819
10832
  }
10820
10833
  throw new ZapierAppNotFoundError("App not found", { appKey });
10821
10834
  }
@@ -10861,7 +10874,7 @@ var getConnectionPlugin = defineMethod({
10861
10874
  }
10862
10875
  }
10863
10876
  );
10864
- return transformConnectionItem(response.data);
10877
+ return { data: transformConnectionItem(response.data) };
10865
10878
  }
10866
10879
  });
10867
10880
 
@@ -10896,7 +10909,7 @@ var findFirstConnectionPlugin = defineMethod({
10896
10909
  { resourceType: "Connection" }
10897
10910
  );
10898
10911
  }
10899
- return connectionsResponse.data[0];
10912
+ return { data: connectionsResponse.data[0] };
10900
10913
  }
10901
10914
  });
10902
10915
 
@@ -10937,7 +10950,7 @@ var findUniqueConnectionPlugin = defineMethod({
10937
10950
  "Multiple connections found matching the specified criteria. Expected exactly one."
10938
10951
  );
10939
10952
  }
10940
- return connectionsResponse.data[0];
10953
+ return { data: connectionsResponse.data[0] };
10941
10954
  }
10942
10955
  });
10943
10956
  var RelayRequestSchema = zod.z.object({
@@ -11052,13 +11065,15 @@ var getProfilePlugin = defineMethod({
11052
11065
  authRequired: true
11053
11066
  });
11054
11067
  return {
11055
- id: String(profile.public_id ?? profile.id),
11056
- first_name: profile.first_name,
11057
- last_name: profile.last_name,
11058
- full_name: `${profile.first_name} ${profile.last_name}`,
11059
- email: profile.email,
11060
- email_confirmed: profile.email_confirmed,
11061
- 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
+ }
11062
11077
  };
11063
11078
  }
11064
11079
  });
@@ -11115,12 +11130,14 @@ var getConnectionStartUrlPlugin = defineMethod({
11115
11130
  { selected_api: selectedApi },
11116
11131
  { authRequired: true }
11117
11132
  );
11118
- return GetConnectionStartUrlItemSchema.parse({
11119
- url: response.url,
11120
- expiresAt: response.expires_at,
11121
- startedAt: response.started_at,
11122
- app: selectedApi
11123
- });
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
+ };
11124
11141
  }
11125
11142
  });
11126
11143
  var WaitForNewConnectionSchema = zod.z.object({
@@ -11194,11 +11211,13 @@ var waitForNewConnectionPlugin = defineMethod({
11194
11211
  body.data[0]
11195
11212
  )
11196
11213
  });
11197
- return WaitForNewConnectionItemSchema.parse({
11198
- id: String(top.public_id ?? top.id),
11199
- app: appKey,
11200
- title: top.title ?? null
11201
- });
11214
+ return {
11215
+ data: WaitForNewConnectionItemSchema.parse({
11216
+ id: String(top.public_id ?? top.id),
11217
+ app: appKey,
11218
+ title: top.title ?? null
11219
+ })
11220
+ };
11202
11221
  } catch (err) {
11203
11222
  if (err instanceof ZapierTimeoutError) {
11204
11223
  throw new ZapierTimeoutError(
@@ -11299,11 +11318,13 @@ Open this URL to complete the connection:
11299
11318
  timeoutMs: input.timeoutMs,
11300
11319
  pollIntervalMs: input.pollIntervalMs
11301
11320
  });
11302
- return CreateConnectionItemSchema.parse({
11303
- id: fresh.id,
11304
- app: start2.app,
11305
- title: fresh.title ?? null
11306
- });
11321
+ return {
11322
+ data: CreateConnectionItemSchema.parse({
11323
+ id: fresh.id,
11324
+ app: start2.app,
11325
+ title: fresh.title ?? null
11326
+ })
11327
+ };
11307
11328
  }
11308
11329
  });
11309
11330
 
@@ -11640,7 +11661,7 @@ var createTriggerInboxPlugin = defineMethod({
11640
11661
  }
11641
11662
  }
11642
11663
  );
11643
- return TriggerInboxItemSchema.parse(rawResponse);
11664
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11644
11665
  }
11645
11666
  });
11646
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.";
@@ -11741,7 +11762,7 @@ var ensureTriggerInboxPlugin = defineMethod({
11741
11762
  }
11742
11763
  }
11743
11764
  );
11744
- return TriggerInboxItemSchema.parse(rawResponse);
11765
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11745
11766
  }
11746
11767
  });
11747
11768
  var ListTriggerInboxesSchema = zod.z.object({
@@ -11836,7 +11857,7 @@ var getTriggerInboxPlugin = defineMethod({
11836
11857
  resource: { type: "trigger_inbox", id: inboxId }
11837
11858
  }
11838
11859
  );
11839
- return TriggerInboxItemSchema.parse(rawResponse);
11860
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11840
11861
  }
11841
11862
  });
11842
11863
  var UpdateTriggerInboxSchema = zod.z.object({
@@ -11874,7 +11895,7 @@ var updateTriggerInboxPlugin = defineMethod({
11874
11895
  resource: { type: "trigger_inbox", id: inboxId }
11875
11896
  }
11876
11897
  );
11877
- return TriggerInboxItemSchema.parse(rawResponse);
11898
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11878
11899
  }
11879
11900
  });
11880
11901
  var DeleteTriggerInboxSchema = zod.z.object({
@@ -11939,7 +11960,7 @@ var pauseTriggerInboxPlugin = defineMethod({
11939
11960
  resource: { type: "trigger_inbox", id: inboxId }
11940
11961
  }
11941
11962
  );
11942
- return TriggerInboxItemSchema.parse(rawResponse);
11963
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11943
11964
  }
11944
11965
  });
11945
11966
  var ResumeTriggerInboxSchema = zod.z.object({
@@ -11970,7 +11991,7 @@ var resumeTriggerInboxPlugin = defineMethod({
11970
11991
  resource: { type: "trigger_inbox", id: inboxId }
11971
11992
  }
11972
11993
  );
11973
- return TriggerInboxItemSchema.parse(rawResponse);
11994
+ return { data: TriggerInboxItemSchema.parse(rawResponse) };
11974
11995
  }
11975
11996
  });
11976
11997
  var TriggerMessageStatusSchema = zod.z.union([zod.z.enum(["available", "leased", "acked", "quarantined"]), zod.z.string()]).describe("Message lifecycle status");
@@ -12159,7 +12180,7 @@ var leaseTriggerInboxMessagesPlugin = defineMethod({
12159
12180
  }
12160
12181
  }
12161
12182
  );
12162
- return LeaseTriggerInboxMessagesItemSchema.parse(rawResponse);
12183
+ return { data: LeaseTriggerInboxMessagesItemSchema.parse(rawResponse) };
12163
12184
  }
12164
12185
  });
12165
12186
  var AckTriggerInboxMessagesSchema = zod.z.object({
@@ -12209,7 +12230,7 @@ var ackTriggerInboxMessagesPlugin = defineMethod({
12209
12230
  requestBody,
12210
12231
  { authRequired: true }
12211
12232
  );
12212
- return AckTriggerInboxMessagesItemSchema.parse(rawResponse);
12233
+ return { data: AckTriggerInboxMessagesItemSchema.parse(rawResponse) };
12213
12234
  }
12214
12235
  });
12215
12236
  var ReleaseTriggerInboxMessagesSchema = zod.z.object({
@@ -12259,7 +12280,7 @@ var releaseTriggerInboxMessagesPlugin = defineMethod({
12259
12280
  requestBody,
12260
12281
  { authRequired: true }
12261
12282
  );
12262
- return ReleaseTriggerInboxMessagesItemSchema.parse(rawResponse);
12283
+ return { data: ReleaseTriggerInboxMessagesItemSchema.parse(rawResponse) };
12263
12284
  }
12264
12285
  });
12265
12286
 
@@ -13224,7 +13245,7 @@ var getTablePlugin = defineMethod({
13224
13245
  resource: { type: "table", id: tableId }
13225
13246
  });
13226
13247
  const response = GetTableApiResponseSchema.parse(rawResponse);
13227
- return transformTableItem(response.data);
13248
+ return { data: transformTableItem(response.data) };
13228
13249
  }
13229
13250
  });
13230
13251
  var DeleteTableDescription = "Delete a table by its ID";
@@ -13284,7 +13305,7 @@ var createTablePlugin = defineMethod({
13284
13305
  { authRequired: true }
13285
13306
  );
13286
13307
  const response = CreateTableApiResponseSchema.parse(rawResponse);
13287
- return transformTableItem(response.data);
13308
+ return { data: transformTableItem(response.data) };
13288
13309
  }
13289
13310
  });
13290
13311
 
@@ -13304,10 +13325,8 @@ var listTableFieldsPlugin = defineMethod({
13304
13325
  imports: [apiPluginRef],
13305
13326
  categories: tableCategories,
13306
13327
  itemType: "Field",
13307
- // A field list, but the API returns no cursor: legacy used the non-paginated
13308
- // createPluginMethod (a `createFunction` boundary returning a bare `{ data }`,
13309
- // not an iterator). `output: "item"` reproduces that exactly (same boundary +
13310
- // 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
13311
13330
  // `type: "list"` first-class field keeps the list presentation.
13312
13331
  type: "list",
13313
13332
  inputSchema: ListTableFieldsOptionsInputSchema,
@@ -13336,7 +13355,7 @@ var listTableFieldsPlugin = defineMethod({
13336
13355
  }
13337
13356
  );
13338
13357
  const response = ListTableFieldsApiResponseSchema.parse(rawResponse);
13339
- return response.data.map(transformFieldItem);
13358
+ return { data: response.data.map(transformFieldItem) };
13340
13359
  }
13341
13360
  });
13342
13361
  var FieldChangesetItemSchema = zod.z.object({
@@ -13381,8 +13400,8 @@ var createTableFieldsPlugin = defineMethod({
13381
13400
  returnType: "FieldItem[]",
13382
13401
  inputSchema: CreateTableFieldsOptionsInputSchema,
13383
13402
  outputSchema: FieldItemSchema,
13384
- // `run` returns the field array; `output: "item"` wraps it in `{ data }` to
13385
- // match the legacy `{ data: FieldItem[] }` surface.
13403
+ // Item output with an array payload: callers get `{ data: FieldItem[] }`
13404
+ // directly rather than a paginated list.
13386
13405
  output: "item",
13387
13406
  formatter: tableFieldItemFormatter,
13388
13407
  resolvers: { table: tableIdResolver, fields: tableFieldsResolver },
@@ -13395,7 +13414,9 @@ var createTableFieldsPlugin = defineMethod({
13395
13414
  { authRequired: true, resource: { type: "table", id: tableId } }
13396
13415
  );
13397
13416
  const response = CreateTableFieldsApiResponseSchema.parse(rawResponse);
13398
- return response.data.map((changeset) => transformFieldItem(changeset.new));
13417
+ return {
13418
+ data: response.data.map((changeset) => transformFieldItem(changeset.new))
13419
+ };
13399
13420
  }
13400
13421
  });
13401
13422
  var DeleteTableFieldsDescription = "Delete one or more fields from a table";
@@ -13536,8 +13557,10 @@ var getTableRecordPlugin = defineMethod({
13536
13557
  keyMode: input.keyMode
13537
13558
  });
13538
13559
  return {
13539
- ...transformRecordItem(response.data),
13540
- data: translator.translateOutput(response.data.data)
13560
+ data: {
13561
+ ...transformRecordItem(response.data),
13562
+ data: translator.translateOutput(response.data.data)
13563
+ }
13541
13564
  };
13542
13565
  }
13543
13566
  });
@@ -13716,8 +13739,8 @@ var createTableRecordsPlugin = defineMethod({
13716
13739
  returnType: "RecordItem[]",
13717
13740
  inputSchema: CreateTableRecordsOptionsInputSchema,
13718
13741
  outputSchema: RecordItemSchema,
13719
- // `run` returns the record array; `output: "item"` wraps it in `{ data }` to
13720
- // match the legacy `{ data: RecordItem[] }` surface.
13742
+ // Item output with an array payload: callers get `{ data: RecordItem[] }`
13743
+ // directly rather than a paginated list.
13721
13744
  output: "item",
13722
13745
  resolvers: { table: tableIdResolver, records: tableRecordsResolver },
13723
13746
  formatter: tableRecordFormatter,
@@ -13743,10 +13766,12 @@ var createTableRecordsPlugin = defineMethod({
13743
13766
  for (const changeset of response.data) {
13744
13767
  throwOnRecordErrors(changeset.new);
13745
13768
  }
13746
- return response.data.map((changeset) => ({
13747
- ...transformRecordItem(changeset.new),
13748
- data: translator.translateOutput(changeset.new.data)
13749
- }));
13769
+ return {
13770
+ data: response.data.map((changeset) => ({
13771
+ ...transformRecordItem(changeset.new),
13772
+ data: translator.translateOutput(changeset.new.data)
13773
+ }))
13774
+ };
13750
13775
  }
13751
13776
  });
13752
13777
  var DeleteTableRecordsDescription = "Delete one or more records from a table";
@@ -13826,8 +13851,8 @@ var updateTableRecordsPlugin = defineMethod({
13826
13851
  returnType: "RecordItem[]",
13827
13852
  inputSchema: UpdateTableRecordsOptionsInputSchema,
13828
13853
  outputSchema: RecordItemSchema,
13829
- // `run` returns the record array; `output: "item"` wraps it in `{ data }` to
13830
- // match the legacy `{ data: RecordItem[] }` surface.
13854
+ // Item output with an array payload: callers get `{ data: RecordItem[] }`
13855
+ // directly rather than a paginated list.
13831
13856
  output: "item",
13832
13857
  resolvers: { table: tableIdResolver, records: tableUpdateRecordsResolver },
13833
13858
  formatter: tableRecordFormatter,
@@ -13854,10 +13879,12 @@ var updateTableRecordsPlugin = defineMethod({
13854
13879
  for (const changeset of response.data) {
13855
13880
  throwOnRecordErrors(changeset.new);
13856
13881
  }
13857
- return response.data.map((changeset) => ({
13858
- ...transformRecordItem(changeset.new),
13859
- data: translator.translateOutput(changeset.new.data)
13860
- }));
13882
+ return {
13883
+ data: response.data.map((changeset) => ({
13884
+ ...transformRecordItem(changeset.new),
13885
+ data: translator.translateOutput(changeset.new.data)
13886
+ }))
13887
+ };
13861
13888
  }
13862
13889
  });
13863
13890
 
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-BTKFTcSZ.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-BTKFTcSZ.js';
2
2
  import 'zod';
3
3
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
4
4
  import '@zapier/policy-context';