@zapier/zapier-sdk 0.84.4 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -105,11 +105,13 @@ const { data: moreApps } = await zapier.listApps({ cursor: nextCursor });
105
105
 
106
106
  ```typescript
107
107
  // Iterate over pages (each page has { data, nextCursor })
108
- for await (const page of zapier.listApps()) {
108
+ for await (const page of zapier.listApps().pages()) {
109
109
  console.log(`Got ${page.data.length} apps`);
110
110
  }
111
111
  ```
112
112
 
113
+ Iterating the result directly (`for await (const page of zapier.listApps())`) still works but is deprecated: the result is also a promise, so returning it from an `async` function silently collapses it to the first page. `.pages()` returns a plain iterable that survives that boundary.
114
+
113
115
  ### Iterate Individual Items
114
116
 
115
117
  ```typescript
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.85.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 769751e: Paginated list results now expose `.pages()`, a plain async iterable over pages. Unlike iterating the result directly (which still works but is deprecated), `.pages()` is not also a promise, so returning it from an `async` function no longer silently collapses it to the first page. `.items()` is unchanged and remains the way to iterate individual items across pages. The `toIterable()` helper is deprecated in favor of `.pages()` and now logs a deprecation warning.
8
+
3
9
  ## 0.84.4
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -215,9 +215,9 @@ console.log({
215
215
  secondPageApps,
216
216
  });
217
217
 
218
- // List methods also return an iterable for all pages.
218
+ // Use `.pages()` to iterate over all pages.
219
219
  // Be careful with lots of pages, note the `search` to filter.
220
- for await (const page of zapier.listApps({ search: "slack" })) {
220
+ for await (const page of zapier.listApps({ search: "slack" }).pages()) {
221
221
  const { data: apps } = page;
222
222
  console.log({
223
223
  apps,
@@ -569,12 +569,14 @@ const { data: inputFieldChoices, nextCursor } =
569
569
  });
570
570
 
571
571
  // Or iterate over all pages
572
- for await (const page of zapier.listActionInputFieldChoices({
573
- app: "example-app",
574
- actionType: "read",
575
- action: "example-action",
576
- inputField: "example-input-field",
577
- })) {
572
+ for await (const page of zapier
573
+ .listActionInputFieldChoices({
574
+ app: "example-app",
575
+ actionType: "read",
576
+ action: "example-action",
577
+ inputField: "example-input-field",
578
+ })
579
+ .pages()) {
578
580
  // Do something with each page
579
581
  }
580
582
 
@@ -663,11 +665,13 @@ const { data: rootFields, nextCursor } = await zapier.listActionInputFields({
663
665
  });
664
666
 
665
667
  // Or iterate over all pages
666
- for await (const page of zapier.listActionInputFields({
667
- app: "example-app",
668
- actionType: "read",
669
- action: "example-action",
670
- })) {
668
+ for await (const page of zapier
669
+ .listActionInputFields({
670
+ app: "example-app",
671
+ actionType: "read",
672
+ action: "example-action",
673
+ })
674
+ .pages()) {
671
675
  // Do something with each page
672
676
  }
673
677
 
@@ -724,9 +728,11 @@ const { data: actions, nextCursor } = await zapier.listActions({
724
728
  });
725
729
 
726
730
  // Or iterate over all pages
727
- for await (const page of zapier.listActions({
728
- app: "example-app",
729
- })) {
731
+ for await (const page of zapier
732
+ .listActions({
733
+ app: "example-app",
734
+ })
735
+ .pages()) {
730
736
  // Do something with each page
731
737
  }
732
738
 
@@ -772,11 +778,13 @@ const { data: actionResults, nextCursor } = await zapier.runAction({
772
778
  });
773
779
 
774
780
  // Or iterate over all pages
775
- for await (const page of zapier.runAction({
776
- app: "example-app",
777
- actionType: "read",
778
- action: "example-action",
779
- })) {
781
+ for await (const page of zapier
782
+ .runAction({
783
+ app: "example-app",
784
+ actionType: "read",
785
+ action: "example-action",
786
+ })
787
+ .pages()) {
780
788
  // Do something with each page
781
789
  }
782
790
 
@@ -836,7 +844,7 @@ const { data: actionResults, nextCursor } =
836
844
  await zapier.apps.appKey.actionType.actionKey();
837
845
 
838
846
  // Or iterate over all pages
839
- for await (const page of zapier.apps.appKey.actionType.actionKey()) {
847
+ for await (const page of zapier.apps.appKey.actionType.actionKey().pages()) {
840
848
  // Do something with each page
841
849
  }
842
850
 
@@ -998,7 +1006,7 @@ List all available apps with optional filtering
998
1006
  const { data: apps, nextCursor } = await zapier.listApps();
999
1007
 
1000
1008
  // Or iterate over all pages
1001
- for await (const page of zapier.listApps()) {
1009
+ for await (const page of zapier.listApps().pages()) {
1002
1010
  // Do something with each page
1003
1011
  }
1004
1012
 
@@ -1093,7 +1101,7 @@ const { data: clientCredentials, nextCursor } =
1093
1101
  await zapier.listClientCredentials();
1094
1102
 
1095
1103
  // Or iterate over all pages
1096
- for await (const page of zapier.listClientCredentials()) {
1104
+ for await (const page of zapier.listClientCredentials().pages()) {
1097
1105
  // Do something with each page
1098
1106
  }
1099
1107
 
@@ -1480,7 +1488,7 @@ List run-once durable runs for the authenticated account, newest first
1480
1488
  const { data: durableRuns, nextCursor } = await zapier.listDurableRuns();
1481
1489
 
1482
1490
  // Or iterate over all pages
1483
- for await (const page of zapier.listDurableRuns()) {
1491
+ for await (const page of zapier.listDurableRuns().pages()) {
1484
1492
  // Do something with each page
1485
1493
  }
1486
1494
 
@@ -1529,9 +1537,11 @@ const { data: workflowRuns, nextCursor } = await zapier.listWorkflowRuns({
1529
1537
  });
1530
1538
 
1531
1539
  // Or iterate over all pages
1532
- for await (const page of zapier.listWorkflowRuns({
1533
- workflow: "example-workflow",
1534
- })) {
1540
+ for await (const page of zapier
1541
+ .listWorkflowRuns({
1542
+ workflow: "example-workflow",
1543
+ })
1544
+ .pages()) {
1535
1545
  // Do something with each page
1536
1546
  }
1537
1547
 
@@ -1585,9 +1595,11 @@ const { data: workflowVersions, nextCursor } =
1585
1595
  });
1586
1596
 
1587
1597
  // Or iterate over all pages
1588
- for await (const page of zapier.listWorkflowVersions({
1589
- workflow: "example-workflow",
1590
- })) {
1598
+ for await (const page of zapier
1599
+ .listWorkflowVersions({
1600
+ workflow: "example-workflow",
1601
+ })
1602
+ .pages()) {
1591
1603
  // Do something with each page
1592
1604
  }
1593
1605
 
@@ -1647,7 +1659,7 @@ List all active durable workflows for the authenticated account
1647
1659
  const { data: workflows, nextCursor } = await zapier.listWorkflows();
1648
1660
 
1649
1661
  // Or iterate over all pages
1650
- for await (const page of zapier.listWorkflows()) {
1662
+ for await (const page of zapier.listWorkflows().pages()) {
1651
1663
  // Do something with each page
1652
1664
  }
1653
1665
 
@@ -2115,7 +2127,7 @@ List available connections with optional filtering
2115
2127
  const { data: connections, nextCursor } = await zapier.listConnections();
2116
2128
 
2117
2129
  // Or iterate over all pages
2118
- for await (const page of zapier.listConnections()) {
2130
+ for await (const page of zapier.listConnections().pages()) {
2119
2131
  // Do something with each page
2120
2132
  }
2121
2133
 
@@ -2482,9 +2494,11 @@ const { data: fields, nextCursor } = await zapier.listTableFields({
2482
2494
  });
2483
2495
 
2484
2496
  // Or iterate over all pages
2485
- for await (const page of zapier.listTableFields({
2486
- table: "example-table",
2487
- })) {
2497
+ for await (const page of zapier
2498
+ .listTableFields({
2499
+ table: "example-table",
2500
+ })
2501
+ .pages()) {
2488
2502
  // Do something with each page
2489
2503
  }
2490
2504
 
@@ -2542,9 +2556,11 @@ const { data: records, nextCursor } = await zapier.listTableRecords({
2542
2556
  });
2543
2557
 
2544
2558
  // Or iterate over all pages
2545
- for await (const page of zapier.listTableRecords({
2546
- table: "example-table",
2547
- })) {
2559
+ for await (const page of zapier
2560
+ .listTableRecords({
2561
+ table: "example-table",
2562
+ })
2563
+ .pages()) {
2548
2564
  // Do something with each page
2549
2565
  }
2550
2566
 
@@ -2599,7 +2615,7 @@ List tables available to the authenticated user
2599
2615
  const { data: tables, nextCursor } = await zapier.listTables();
2600
2616
 
2601
2617
  // Or iterate over all pages
2602
- for await (const page of zapier.listTables()) {
2618
+ for await (const page of zapier.listTables().pages()) {
2603
2619
  // Do something with each page
2604
2620
  }
2605
2621
 
@@ -2987,9 +3003,11 @@ const { data: triggerMessages, nextCursor } =
2987
3003
  });
2988
3004
 
2989
3005
  // Or iterate over all pages
2990
- for await (const page of zapier.listTriggerInboxMessages({
2991
- inbox: "example-inbox",
2992
- })) {
3006
+ for await (const page of zapier
3007
+ .listTriggerInboxMessages({
3008
+ inbox: "example-inbox",
3009
+ })
3010
+ .pages()) {
2993
3011
  // Do something with each page
2994
3012
  }
2995
3013
 
@@ -3044,7 +3062,7 @@ List all trigger inboxes for the authenticated user
3044
3062
  const { data: triggerInboxs, nextCursor } = await zapier.listTriggerInboxes();
3045
3063
 
3046
3064
  // Or iterate over all pages
3047
- for await (const page of zapier.listTriggerInboxes()) {
3065
+ for await (const page of zapier.listTriggerInboxes().pages()) {
3048
3066
  // Do something with each page
3049
3067
  }
3050
3068
 
@@ -3096,11 +3114,13 @@ const { data: inputFieldChoices, nextCursor } =
3096
3114
  });
3097
3115
 
3098
3116
  // Or iterate over all pages
3099
- for await (const page of zapier.listTriggerInputFieldChoices({
3100
- app: "example-app",
3101
- action: "example-action",
3102
- inputField: "example-input-field",
3103
- })) {
3117
+ for await (const page of zapier
3118
+ .listTriggerInputFieldChoices({
3119
+ app: "example-app",
3120
+ action: "example-action",
3121
+ inputField: "example-input-field",
3122
+ })
3123
+ .pages()) {
3104
3124
  // Do something with each page
3105
3125
  }
3106
3126
 
@@ -3186,10 +3206,12 @@ const { data: rootFields, nextCursor } = await zapier.listTriggerInputFields({
3186
3206
  });
3187
3207
 
3188
3208
  // Or iterate over all pages
3189
- for await (const page of zapier.listTriggerInputFields({
3190
- app: "example-app",
3191
- action: "example-action",
3192
- })) {
3209
+ for await (const page of zapier
3210
+ .listTriggerInputFields({
3211
+ app: "example-app",
3212
+ action: "example-action",
3213
+ })
3214
+ .pages()) {
3193
3215
  // Do something with each page
3194
3216
  }
3195
3217
 
@@ -3244,9 +3266,11 @@ const { data: actions, nextCursor } = await zapier.listTriggers({
3244
3266
  });
3245
3267
 
3246
3268
  // Or iterate over all pages
3247
- for await (const page of zapier.listTriggers({
3248
- app: "example-app",
3249
- })) {
3269
+ for await (const page of zapier
3270
+ .listTriggers({
3271
+ app: "example-app",
3272
+ })
3273
+ .pages()) {
3250
3274
  // Do something with each page
3251
3275
  }
3252
3276
 
@@ -410,51 +410,36 @@ function decodeConcatCursor(incoming) {
410
410
  }
411
411
  return { index: 0, cursor: incoming };
412
412
  }
413
- function concatPaginated({
413
+ async function concatLists({
414
414
  sources,
415
415
  pageSize = 100,
416
416
  cursor
417
417
  }) {
418
418
  if (sources.length === 0) {
419
- const empty = { data: [] };
420
- return Object.assign(Promise.resolve(empty), {
421
- [Symbol.asyncIterator]: async function* () {
422
- yield empty;
423
- }
424
- });
419
+ return { data: [] };
425
420
  }
426
421
  const pageFunction = async (options) => {
427
- let { index, cursor: sourceCursor } = decodeConcatCursor(options.cursor);
422
+ let { index, cursor: listCursor } = decodeConcatCursor(options.cursor);
428
423
  while (index < sources.length) {
429
- const page = await sources[index]({ cursor: sourceCursor });
430
- const hasMoreInSource = page.nextCursor != null;
431
- if (page.data.length === 0 && !hasMoreInSource) {
424
+ const page = await sources[index]({ cursor: listCursor });
425
+ const hasMoreInList = page.nextCursor != null;
426
+ if (page.data.length === 0 && !hasMoreInList) {
432
427
  index++;
433
- sourceCursor = void 0;
428
+ listCursor = void 0;
434
429
  continue;
435
430
  }
436
431
  return {
437
432
  data: page.data,
438
- nextCursor: hasMoreInSource ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
433
+ nextCursor: hasMoreInList ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
439
434
  };
440
435
  }
441
436
  return { data: [] };
442
437
  };
443
- const iterator = paginateBuffered(pageFunction, { pageSize, cursor });
444
- const firstPagePromise = iterator.next().then((result) => {
445
- if (result.done) {
446
- return { data: [] };
447
- }
448
- return result.value;
449
- });
450
- return Object.assign(firstPagePromise, {
451
- [Symbol.asyncIterator]: async function* () {
452
- yield await firstPagePromise;
453
- for await (const page of { [Symbol.asyncIterator]: () => iterator }) {
454
- yield page;
455
- }
456
- }
457
- });
438
+ const result = await paginateBuffered(pageFunction, {
439
+ pageSize,
440
+ cursor
441
+ }).next();
442
+ return result.done ? { data: [] } : result.value;
458
443
  }
459
444
  var parseOrThrow = (schema, input, { adaptError } = {}) => {
460
445
  const result = schema.safeParse(input);
@@ -789,6 +774,13 @@ function createPaginatedFunction(coreFn, options) {
789
774
  [Symbol.asyncIterator]() {
790
775
  return pageStream;
791
776
  },
777
+ pages: function() {
778
+ return {
779
+ [Symbol.asyncIterator]() {
780
+ return pageStream;
781
+ }
782
+ };
783
+ },
792
784
  items: function() {
793
785
  return {
794
786
  [Symbol.asyncIterator]: async function* () {
@@ -5283,7 +5275,7 @@ function parseDeprecationDate(value) {
5283
5275
  }
5284
5276
 
5285
5277
  // src/sdk-version.ts
5286
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.4" : void 0) || "unknown";
5278
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.85.0" : void 0) || "unknown";
5287
5279
 
5288
5280
  // src/utils/open-url.ts
5289
5281
  var nodePrefix = "node:";
@@ -8590,13 +8582,13 @@ var tableIdResolver = defineResolver({
8590
8582
  listItems: ({ imports, context, cursor }) => {
8591
8583
  const includeShared = context?.includeShared;
8592
8584
  if (includeShared) {
8593
- return concatPaginated({
8585
+ return concatLists({
8594
8586
  sources: [
8595
- ({ cursor: sourceCursor }) => imports.listTablesInternal({ cursor: sourceCursor }),
8596
- ({ cursor: sourceCursor }) => imports.listTablesInternal({
8587
+ ({ cursor: listCursor }) => imports.listTablesInternal({ cursor: listCursor }),
8588
+ ({ cursor: listCursor }) => imports.listTablesInternal({
8597
8589
  includeShared: true,
8598
8590
  includePersonal: false,
8599
- cursor: sourceCursor
8591
+ cursor: listCursor
8600
8592
  })
8601
8593
  ],
8602
8594
  cursor
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-ChZuXQDn.mjs';
2
- export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, fx as EventContext, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, dG as ManifestEntry, dw as ManifestPluginOptions, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, r as WatchTriggerInboxSchema, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-ChZuXQDn.mjs';
1
+ import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-BxgeAXDh.mjs';
2
+ export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, fx as EventContext, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, dG as ManifestEntry, dw as ManifestPluginOptions, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, r as WatchTriggerInboxSchema, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-BxgeAXDh.mjs';
3
3
  import * as zod from 'zod';
4
4
  import * as zod_v4_core from 'zod/v4/core';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
@@ -1,5 +1,5 @@
1
- import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-ChZuXQDn.js';
2
- export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, fx as EventContext, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, dG as ManifestEntry, dw as ManifestPluginOptions, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, r as WatchTriggerInboxSchema, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-ChZuXQDn.js';
1
+ import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-BxgeAXDh.js';
2
+ export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, fx as EventContext, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, dG as ManifestEntry, dw as ManifestPluginOptions, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, r as WatchTriggerInboxSchema, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-BxgeAXDh.js';
3
3
  import * as zod from 'zod';
4
4
  import * as zod_v4_core from 'zod/v4/core';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
@@ -408,51 +408,36 @@ function decodeConcatCursor(incoming) {
408
408
  }
409
409
  return { index: 0, cursor: incoming };
410
410
  }
411
- function concatPaginated({
411
+ async function concatLists({
412
412
  sources,
413
413
  pageSize = 100,
414
414
  cursor
415
415
  }) {
416
416
  if (sources.length === 0) {
417
- const empty = { data: [] };
418
- return Object.assign(Promise.resolve(empty), {
419
- [Symbol.asyncIterator]: async function* () {
420
- yield empty;
421
- }
422
- });
417
+ return { data: [] };
423
418
  }
424
419
  const pageFunction = async (options) => {
425
- let { index, cursor: sourceCursor } = decodeConcatCursor(options.cursor);
420
+ let { index, cursor: listCursor } = decodeConcatCursor(options.cursor);
426
421
  while (index < sources.length) {
427
- const page = await sources[index]({ cursor: sourceCursor });
428
- const hasMoreInSource = page.nextCursor != null;
429
- if (page.data.length === 0 && !hasMoreInSource) {
422
+ const page = await sources[index]({ cursor: listCursor });
423
+ const hasMoreInList = page.nextCursor != null;
424
+ if (page.data.length === 0 && !hasMoreInList) {
430
425
  index++;
431
- sourceCursor = void 0;
426
+ listCursor = void 0;
432
427
  continue;
433
428
  }
434
429
  return {
435
430
  data: page.data,
436
- nextCursor: hasMoreInSource ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
431
+ nextCursor: hasMoreInList ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
437
432
  };
438
433
  }
439
434
  return { data: [] };
440
435
  };
441
- const iterator = paginateBuffered(pageFunction, { pageSize, cursor });
442
- const firstPagePromise = iterator.next().then((result) => {
443
- if (result.done) {
444
- return { data: [] };
445
- }
446
- return result.value;
447
- });
448
- return Object.assign(firstPagePromise, {
449
- [Symbol.asyncIterator]: async function* () {
450
- yield await firstPagePromise;
451
- for await (const page of { [Symbol.asyncIterator]: () => iterator }) {
452
- yield page;
453
- }
454
- }
455
- });
436
+ const result = await paginateBuffered(pageFunction, {
437
+ pageSize,
438
+ cursor
439
+ }).next();
440
+ return result.done ? { data: [] } : result.value;
456
441
  }
457
442
  var parseOrThrow = (schema, input, { adaptError } = {}) => {
458
443
  const result = schema.safeParse(input);
@@ -787,6 +772,13 @@ function createPaginatedFunction(coreFn, options) {
787
772
  [Symbol.asyncIterator]() {
788
773
  return pageStream;
789
774
  },
775
+ pages: function() {
776
+ return {
777
+ [Symbol.asyncIterator]() {
778
+ return pageStream;
779
+ }
780
+ };
781
+ },
790
782
  items: function() {
791
783
  return {
792
784
  [Symbol.asyncIterator]: async function* () {
@@ -5281,7 +5273,7 @@ function parseDeprecationDate(value) {
5281
5273
  }
5282
5274
 
5283
5275
  // src/sdk-version.ts
5284
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.4" : void 0) || "unknown";
5276
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.85.0" : void 0) || "unknown";
5285
5277
 
5286
5278
  // src/utils/open-url.ts
5287
5279
  var nodePrefix = "node:";
@@ -8588,13 +8580,13 @@ var tableIdResolver = defineResolver({
8588
8580
  listItems: ({ imports, context, cursor }) => {
8589
8581
  const includeShared = context?.includeShared;
8590
8582
  if (includeShared) {
8591
- return concatPaginated({
8583
+ return concatLists({
8592
8584
  sources: [
8593
- ({ cursor: sourceCursor }) => imports.listTablesInternal({ cursor: sourceCursor }),
8594
- ({ cursor: sourceCursor }) => imports.listTablesInternal({
8585
+ ({ cursor: listCursor }) => imports.listTablesInternal({ cursor: listCursor }),
8586
+ ({ cursor: listCursor }) => imports.listTablesInternal({
8595
8587
  includeShared: true,
8596
8588
  includePersonal: false,
8597
- cursor: sourceCursor
8589
+ cursor: listCursor
8598
8590
  })
8599
8591
  ],
8600
8592
  cursor
@@ -229,27 +229,43 @@ interface SdkPage<T = unknown> {
229
229
  nextCursor?: string;
230
230
  }
231
231
  /**
232
- * Return type of every paginated SDK method. The same value is both:
232
+ * Return type of every paginated SDK method. The documented surface is:
233
233
  *
234
- * - a Promise that resolves to the first page (`SdkPage<TItem>`), and
235
- * - an AsyncIterable that yields each page in turn,
234
+ * - `await` the result for the first page (`SdkPage<TItem>`),
235
+ * - `.pages()` for an AsyncIterable over pages, and
236
+ * - `.items()` for an AsyncIterable over individual items across pages.
236
237
  *
237
- * with an `.items()` method that returns an AsyncIterable over individual
238
- * items across all pages. Named so paginated plugin signatures serialize
239
- * as `PaginatedSdkResult<AppItem>` in `.d.ts` rather than expanding the
240
- * full triple-intersection at every callsite.
238
+ * `.pages()` and `.items()` return plain iterables (not thenables), so they
239
+ * survive being returned from an `async` function; the result itself is a
240
+ * thenable, so an `async` boundary silently collapses it to the first page.
241
+ * Named so paginated plugin signatures serialize as
242
+ * `PaginatedSdkResult<AppItem>` in `.d.ts` rather than expanding the full
243
+ * intersection at every callsite.
241
244
  *
242
245
  * The faces share one underlying cursor, so a result is consumed once:
243
246
  *
244
247
  * - `await` / `.then()` read the buffered first page without starting the
245
248
  * stream, so awaiting is a repeatable peek and you can still iterate the
246
249
  * result afterward.
247
- * - The page-iterable and `.items()` are two views over one page stream, so
248
- * consuming either drains the other: the second view yields nothing (it
249
- * does not replay page 1). To read a result more than once, call the
250
- * method again for a fresh result.
250
+ * - `.pages()`, `.items()`, and the deprecated bare iteration are views
251
+ * over one page stream, so consuming any view drains the others: the
252
+ * second view yields nothing (it does not replay page 1). To read a
253
+ * result more than once, call the method again for a fresh result.
251
254
  */
252
- interface PaginatedSdkResult<TItem> extends Promise<SdkPage<TItem>>, AsyncIterable<SdkPage<TItem>> {
255
+ interface PaginatedSdkResult<TItem> extends Promise<SdkPage<TItem>> {
256
+ /**
257
+ * @deprecated Iterate `.pages()` instead. Bare iteration works but is easy
258
+ * to break: because the result is also a thenable, an `async` boundary
259
+ * collapses it to its first page and the iterable is silently lost.
260
+ *
261
+ * Deliberately no runtime deprecation warning: this face is not scheduled
262
+ * for deletion (removing it is a breaking change deferred to a separate
263
+ * decision), and structural consumers such as the CLI's page streaming
264
+ * detect pagination via `Symbol.asyncIterator`, so a warning would fire on
265
+ * the SDK's own machinery.
266
+ */
267
+ [Symbol.asyncIterator](): AsyncIterator<SdkPage<TItem>>;
268
+ pages(): AsyncIterable<SdkPage<TItem>>;
253
269
  items(): AsyncIterable<TItem>;
254
270
  }
255
271
  type PaginatedSdkFunction<TOptions, TItem> = (options: TOptions) => PaginatedSdkResult<TItem>;
@@ -229,27 +229,43 @@ interface SdkPage<T = unknown> {
229
229
  nextCursor?: string;
230
230
  }
231
231
  /**
232
- * Return type of every paginated SDK method. The same value is both:
232
+ * Return type of every paginated SDK method. The documented surface is:
233
233
  *
234
- * - a Promise that resolves to the first page (`SdkPage<TItem>`), and
235
- * - an AsyncIterable that yields each page in turn,
234
+ * - `await` the result for the first page (`SdkPage<TItem>`),
235
+ * - `.pages()` for an AsyncIterable over pages, and
236
+ * - `.items()` for an AsyncIterable over individual items across pages.
236
237
  *
237
- * with an `.items()` method that returns an AsyncIterable over individual
238
- * items across all pages. Named so paginated plugin signatures serialize
239
- * as `PaginatedSdkResult<AppItem>` in `.d.ts` rather than expanding the
240
- * full triple-intersection at every callsite.
238
+ * `.pages()` and `.items()` return plain iterables (not thenables), so they
239
+ * survive being returned from an `async` function; the result itself is a
240
+ * thenable, so an `async` boundary silently collapses it to the first page.
241
+ * Named so paginated plugin signatures serialize as
242
+ * `PaginatedSdkResult<AppItem>` in `.d.ts` rather than expanding the full
243
+ * intersection at every callsite.
241
244
  *
242
245
  * The faces share one underlying cursor, so a result is consumed once:
243
246
  *
244
247
  * - `await` / `.then()` read the buffered first page without starting the
245
248
  * stream, so awaiting is a repeatable peek and you can still iterate the
246
249
  * result afterward.
247
- * - The page-iterable and `.items()` are two views over one page stream, so
248
- * consuming either drains the other: the second view yields nothing (it
249
- * does not replay page 1). To read a result more than once, call the
250
- * method again for a fresh result.
250
+ * - `.pages()`, `.items()`, and the deprecated bare iteration are views
251
+ * over one page stream, so consuming any view drains the others: the
252
+ * second view yields nothing (it does not replay page 1). To read a
253
+ * result more than once, call the method again for a fresh result.
251
254
  */
252
- interface PaginatedSdkResult<TItem> extends Promise<SdkPage<TItem>>, AsyncIterable<SdkPage<TItem>> {
255
+ interface PaginatedSdkResult<TItem> extends Promise<SdkPage<TItem>> {
256
+ /**
257
+ * @deprecated Iterate `.pages()` instead. Bare iteration works but is easy
258
+ * to break: because the result is also a thenable, an `async` boundary
259
+ * collapses it to its first page and the iterable is silently lost.
260
+ *
261
+ * Deliberately no runtime deprecation warning: this face is not scheduled
262
+ * for deletion (removing it is a breaking change deferred to a separate
263
+ * decision), and structural consumers such as the CLI's page streaming
264
+ * detect pagination via `Symbol.asyncIterator`, so a warning would fire on
265
+ * the SDK's own machinery.
266
+ */
267
+ [Symbol.asyncIterator](): AsyncIterator<SdkPage<TItem>>;
268
+ pages(): AsyncIterable<SdkPage<TItem>>;
253
269
  items(): AsyncIterable<TItem>;
254
270
  }
255
271
  type PaginatedSdkFunction<TOptions, TItem> = (options: TOptions) => PaginatedSdkResult<TItem>;
package/dist/index.cjs CHANGED
@@ -410,51 +410,36 @@ function decodeConcatCursor(incoming) {
410
410
  }
411
411
  return { index: 0, cursor: incoming };
412
412
  }
413
- function concatPaginated({
413
+ async function concatLists({
414
414
  sources,
415
415
  pageSize = 100,
416
416
  cursor
417
417
  }) {
418
418
  if (sources.length === 0) {
419
- const empty = { data: [] };
420
- return Object.assign(Promise.resolve(empty), {
421
- [Symbol.asyncIterator]: async function* () {
422
- yield empty;
423
- }
424
- });
419
+ return { data: [] };
425
420
  }
426
421
  const pageFunction = async (options) => {
427
- let { index, cursor: sourceCursor } = decodeConcatCursor(options.cursor);
422
+ let { index, cursor: listCursor } = decodeConcatCursor(options.cursor);
428
423
  while (index < sources.length) {
429
- const page = await sources[index]({ cursor: sourceCursor });
430
- const hasMoreInSource = page.nextCursor != null;
431
- if (page.data.length === 0 && !hasMoreInSource) {
424
+ const page = await sources[index]({ cursor: listCursor });
425
+ const hasMoreInList = page.nextCursor != null;
426
+ if (page.data.length === 0 && !hasMoreInList) {
432
427
  index++;
433
- sourceCursor = void 0;
428
+ listCursor = void 0;
434
429
  continue;
435
430
  }
436
431
  return {
437
432
  data: page.data,
438
- nextCursor: hasMoreInSource ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
433
+ nextCursor: hasMoreInList ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
439
434
  };
440
435
  }
441
436
  return { data: [] };
442
437
  };
443
- const iterator = paginateBuffered(pageFunction, { pageSize, cursor });
444
- const firstPagePromise = iterator.next().then((result) => {
445
- if (result.done) {
446
- return { data: [] };
447
- }
448
- return result.value;
449
- });
450
- return Object.assign(firstPagePromise, {
451
- [Symbol.asyncIterator]: async function* () {
452
- yield await firstPagePromise;
453
- for await (const page of { [Symbol.asyncIterator]: () => iterator }) {
454
- yield page;
455
- }
456
- }
457
- });
438
+ const result = await paginateBuffered(pageFunction, {
439
+ pageSize,
440
+ cursor
441
+ }).next();
442
+ return result.done ? { data: [] } : result.value;
458
443
  }
459
444
  var parseOrThrow = (schema, input, { adaptError } = {}) => {
460
445
  const result = schema.safeParse(input);
@@ -789,6 +774,13 @@ function createPaginatedFunction(coreFn, options) {
789
774
  [Symbol.asyncIterator]() {
790
775
  return pageStream;
791
776
  },
777
+ pages: function() {
778
+ return {
779
+ [Symbol.asyncIterator]() {
780
+ return pageStream;
781
+ }
782
+ };
783
+ },
792
784
  items: function() {
793
785
  return {
794
786
  [Symbol.asyncIterator]: async function* () {
@@ -5429,7 +5421,7 @@ function parseDeprecationDate(value) {
5429
5421
  }
5430
5422
 
5431
5423
  // src/sdk-version.ts
5432
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.4" : void 0) || "unknown";
5424
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.85.0" : void 0) || "unknown";
5433
5425
 
5434
5426
  // src/utils/open-url.ts
5435
5427
  var nodePrefix = "node:";
@@ -8578,13 +8570,13 @@ var tableIdResolver = defineResolver({
8578
8570
  listItems: ({ imports, context, cursor }) => {
8579
8571
  const includeShared = context?.includeShared;
8580
8572
  if (includeShared) {
8581
- return concatPaginated({
8573
+ return concatLists({
8582
8574
  sources: [
8583
- ({ cursor: sourceCursor }) => imports.listTablesInternal({ cursor: sourceCursor }),
8584
- ({ cursor: sourceCursor }) => imports.listTablesInternal({
8575
+ ({ cursor: listCursor }) => imports.listTablesInternal({ cursor: listCursor }),
8576
+ ({ cursor: listCursor }) => imports.listTablesInternal({
8585
8577
  includeShared: true,
8586
8578
  includePersonal: false,
8587
- cursor: sourceCursor
8579
+ cursor: listCursor
8588
8580
  })
8589
8581
  ],
8590
8582
  cursor
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, E as EventCallback, fx as EventContext, k as EventEmissionConfig, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, L as LeafSummary, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, j as Manifest, dG as ManifestEntry, dw as ManifestPluginOptions, d as ManifestProvider, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, c as PaginatedSdkResult, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, b as PluginSummary, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, W as WatchTriggerInboxOptions, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, l as ZapierCache, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, Z as ZapierFetchInitOptions, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, fU as ZapierSdk, h as ZapierSdkApps, fT as ZapierSdkOptions, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, fS as createZapierSdk, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-ChZuXQDn.mjs';
1
+ export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, E as EventCallback, fx as EventContext, k as EventEmissionConfig, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, L as LeafSummary, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, j as Manifest, dG as ManifestEntry, dw as ManifestPluginOptions, d as ManifestProvider, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, c as PaginatedSdkResult, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, b as PluginSummary, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, W as WatchTriggerInboxOptions, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, l as ZapierCache, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, Z as ZapierFetchInitOptions, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, fU as ZapierSdk, h as ZapierSdkApps, fT as ZapierSdkOptions, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, fS as createZapierSdk, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-BxgeAXDh.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 { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, E as EventCallback, fx as EventContext, k as EventEmissionConfig, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, L as LeafSummary, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, j as Manifest, dG as ManifestEntry, dw as ManifestPluginOptions, d as ManifestProvider, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, c as PaginatedSdkResult, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, b as PluginSummary, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, W as WatchTriggerInboxOptions, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, l as ZapierCache, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, Z as ZapierFetchInitOptions, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, fU as ZapierSdk, h as ZapierSdkApps, fT as ZapierSdkOptions, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, fS as createZapierSdk, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-ChZuXQDn.js';
1
+ export { dL as API_ID, J as Action, dH as ActionEntry, d4 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bH as ActionItem, ci as ActionKeyProperty, bR as ActionKeyPropertySchema, cj as ActionProperty, bS as ActionPropertySchema, br as ActionResolverItem, cu as ActionTimeoutMsProperty, c1 as ActionTimeoutMsPropertySchema, bs as ActionTypeItem, ch as ActionTypeProperty, bQ as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d1 as ApiError, ev as ApiEvent, dJ as ApiPluginOptions, K as App, d5 as AppFactoryInput, bF as AppItem, cf as AppKeyProperty, bO as AppKeyPropertySchema, cg as AppProperty, bP as AppPropertySchema, fy as ApplicationLifecycleEventData, cZ as ApprovalStatus, cz as AppsProperty, c6 as AppsPropertySchema, aB as ArrayResolver, eu as AuthEvent, eg as AuthMechanism, cn as AuthenticationIdProperty, bV as AuthenticationIdPropertySchema, fG as BaseEvent, ba as BaseSdkOptionsSchema, a$ as BatchOptions, ax as BoundFormatter, eX as CONNECTIONS_ID, ac as CONTEXT, ds as CONTEXT_CACHE_MAX_SIZE, dr as CONTEXT_CACHE_TTL_MS, be as CORE_ERROR_SYMBOL, b7 as CORE_OPTIONS_ID, bj as CORE_SIGNAL_SYMBOL, aX as CallerContext, Q as Choice, eA as ClientCredentialsObject, eL as ClientCredentialsObjectSchema, $ as Connection, eT as ConnectionEntry, eS as ConnectionEntrySchema, cl as ConnectionIdProperty, bU as ConnectionIdPropertySchema, bG as ConnectionItem, cm as ConnectionProperty, bW as ConnectionPropertySchema, eV as ConnectionsMap, eU as ConnectionsMapSchema, cB as ConnectionsProperty, c8 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aP as ControllerChoice, aR as ControllerMethodDescription, aQ as ControllerMethodSummary, aS as ControllerParameterDescription, aM as ControllerQuestion, bh as CoreCancelledSignal, aa as CoreDisposeError, bf as CoreErrorCode, bg as CoreSignal, ex as Credentials, eQ as CredentialsFunction, eP as CredentialsFunctionSchema, ez as CredentialsObject, eN as CredentialsObjectSchema, eR as CredentialsSchema, f2 as DEFAULT_ACTION_TIMEOUT_MS, fb as DEFAULT_APPROVAL_TIMEOUT_MS, dF as DEFAULT_CONFIG_PATH, fc as DEFAULT_MAX_APPROVAL_RETRIES, f1 as DEFAULT_PAGE_SIZE, bD as DEPRECATION_NOTICE_EVENT, cs as DebugProperty, b$ as DebugPropertySchema, bE as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fs as EVENT_EMISSION_ID, fz as EnhancedErrorEventData, cI as ErrorOptions, E as EventCallback, fx as EventContext, k as EventEmissionConfig, fq as EventEmissionContext, fr as EventEmitter, fw as EventTransport, d6 as FetchPluginProvides, O as Field, cy as FieldsProperty, c5 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b9 as FunctionDeprecation, b8 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bJ as InfoFieldItem, bI as InputFieldItem, ck as InputFieldProperty, bT as InputFieldPropertySchema, co as InputsProperty, bX as InputsPropertySchema, bC as JsonSseMessage, L as LeafSummary, cH as LeaseLimitProperty, ce as LeaseLimitPropertySchema, cF as LeaseProperty, cc as LeasePropertySchema, cG as LeaseSecondsProperty, cd as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, cp as LimitProperty, bY as LimitPropertySchema, dd as ListActionInputFieldsPluginProvides, db as ListActionsPluginProvides, d9 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dh as ListConnectionsPluginProvides, ew as LoadingEvent, dA as MANIFEST_ID, f5 as MAX_CONCURRENCY_LIMIT, f0 as MAX_PAGE_LIMIT, j as Manifest, dG as ManifestEntry, dw as ManifestPluginOptions, d as ManifestProvider, fH as MethodCalledEvent, fA as MethodCalledEventData, bm as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cq as OffsetProperty, bZ as OffsetPropertySchema, az as OutputFormatter, cr as OutputProperty, b_ as OutputPropertySchema, bN as PaginatedSdkFunction, c as PaginatedSdkResult, ct as ParamsProperty, c0 as ParamsPropertySchema, eB as PkceCredentialsObject, eM as PkceCredentialsObjectSchema, bk as Plugin, p as PluginMeta, bl as PluginProvides, b as PluginSummary, aK as PluginSurface, bx as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dO as RESOLVE_CREDENTIALS_ID, cX as RateLimitInfo, cw as RecordProperty, c3 as RecordPropertySchema, cx as RecordsProperty, c4 as RecordsPropertySchema, b4 as RelayFetchSchema, b3 as RelayRequestSchema, bw as RequestOptions, ef as ResolveAuthTokenOptions, eW as ResolveConnection, dK as ResolveCredentialsFn, eG as ResolveCredentialsOptions, bt as ResolvedAppLocator, eh as ResolvedAuth, ey as ResolvedCredentials, eO as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bK as RootFieldItem, du as RunActionPluginProvides, au as SDK_OPTIONS_ID, et as SdkEvent, bM as SdkPage, bB as SseMessage, aD as StaticResolver, cv as TableProperty, c2 as TablePropertySchema, cA as TablesProperty, c7 as TablesPropertySchema, cD as TriggerInboxKeyProperty, ca as TriggerInboxKeyPropertySchema, cE as TriggerInboxNameProperty, cb as TriggerInboxNamePropertySchema, cC as TriggerInboxProperty, c9 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dD as UpdateManifestEntryOptions, dE as UpdateManifestEntryResult, a1 as UserProfile, bL as UserProfileItem, W as WatchTriggerInboxOptions, e_ as ZAPIER_BASE_URL, f7 as ZAPIER_MAX_CONCURRENT_REQUESTS, f3 as ZAPIER_MAX_NETWORK_RETRIES, f4 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cV as ZapierActionError, cO as ZapierApiError, cP as ZapierAppNotFoundError, c_ as ZapierApprovalError, cM as ZapierAuthenticationError, cT as ZapierBundleError, l as ZapierCache, eq as ZapierCacheEntry, er as ZapierCacheSetOptions, cS as ZapierConfigurationError, cW as ZapierConflictError, cJ as ZapierError, Z as ZapierFetchInitOptions, cQ as ZapierNotFoundError, cY as ZapierRateLimitError, c$ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cR as ZapierResourceNotFoundError, fU as ZapierSdk, h as ZapierSdkApps, fT as ZapierSdkOptions, d2 as ZapierSignal, cU as ZapierTimeoutError, cL as ZapierUnknownError, cK as ZapierValidationError, dT as actionKeyResolver, dS as actionTypeResolver, a8 as addPlugin, dN as apiPlugin, dM as apiPluginRef, dR as appKeyResolver, d3 as appsPlugin, a_ as batch, fB as buildApplicationLifecycleEvent, b0 as buildCapabilityMessage, fD as buildErrorEvent, fC as buildErrorEventWithContext, fF as buildMethodCalledEvent, fp as cleanupEventListeners, ei as clearTokenCache, dZ as clientCredentialsNameResolver, d_ as clientIdResolver, bq as composePlugins, dV as connectionIdGenericResolver, dU as connectionIdResolver, eZ as connectionsPlugin, eY as connectionsPluginRef, fE as createBaseEvent, dj as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, es as createMemoryCache, a5 as createPaginatedFunction, bp as createPaginatedPluginMethod, bo as createPluginMethod, a6 as createPluginStack, ab as createSdk, fi as createTableFieldsPlugin, ff as createTablePlugin, fm as createTableRecordsPlugin, by as createZapierApi, fS as createZapierSdk, b5 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, bn as definePlugin, ak as defineProperty, al as defineResolver, dk as deleteClientCredentialsPlugin, fj as deleteTableFieldsPlugin, fg as deleteTablePlugin, fn as deleteTableRecordsPlugin, a9 as disposeSdk, e2 as durableRunIdResolver, fv as eventEmissionHookPlugin, fu as eventEmissionPlugin, ft as eventEmissionPluginRef, d7 as fetchPlugin, dp as findFirstConnectionPlugin, dz as findManifestEntry, dq as findUniqueConnectionPlugin, d0 as formatErrorMessage, ae as fromFunctionPlugin, fI as generateEventId, df as getActionInputFieldsSchemaPlugin, dm as getActionPlugin, bu as getAgent, dl as getAppPlugin, eJ as getBaseUrlFromCredentials, aV as getCallerContext, fO as getCiPlatform, eK as getClientIdFromCredentials, dn as getConnectionPlugin, ag as getContext, bd as getCoreErrorCause, bc as getCoreErrorCode, fQ as getCpuTime, fJ as getCurrentTimestamp, fP as getMemoryUsage, bz as getOrCreateApiClient, fL as getOsInfo, fM as getPlatformVersions, dy as getPreferredManifestEntryKey, dI as getProfilePlugin, as as getRegistryPlugin, fK as getReleaseId, fe as getTablePlugin, fk as getTableRecordPlugin, em as getTokenFromCliLogin, fR as getTtyContext, f8 as getZapierApprovalMode, fa as getZapierDefaultApprovalMode, f9 as getZapierOpenAutoModeApprovalsInBrowser, e$ as getZapierSdkService, ek as injectCliLogin, dY as inputFieldKeyResolver, dX as inputsAllOptionalResolver, dW as inputsResolver, ej as invalidateCachedToken, ep as invalidateCredentialsToken, fN as isCi, el as isCliLoginAvailable, eC as isClientCredentials, bb as isCoreError, bi as isCoreSignal, eF as isCredentialsFunction, eE as isCredentialsObject, bA as isPermanentHttpError, eD as isPkceCredentials, a2 as isPositional, de as listActionInputFieldChoicesPlugin, dc as listActionInputFieldsPlugin, da as listActionsPlugin, d8 as listAppsPlugin, di as listClientCredentialsPlugin, dg as listConnectionsPlugin, fh as listTableFieldsPlugin, fl as listTableRecordsPlugin, fd as listTablesPlugin, b1 as logDeprecation, dC as manifestPlugin, dB as manifestPluginRef, ar as omitExports, f6 as parseConcurrencyEnvVar, dx as readManifestFromFile, bv as registryPlugin, dv as requestPlugin, b2 as resetDeprecationWarnings, en as resolveAuth, eo as resolveAuthToken, eI as resolveCredentials, eH as resolveCredentialsFromEnv, dQ as resolveCredentialsPlugin, dP as resolveCredentialsPluginRef, ad as resolvePlugin, dt as runActionPlugin, aT as runInMethodScope, aW as runWithCallerContext, aU as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e8 as tableFieldIdsResolver, ea as tableFieldsResolver, ed as tableFiltersResolver, d$ as tableIdResolver, e9 as tableNameResolver, e6 as tableRecordIdResolver, e7 as tableRecordIdsResolver, eb as tableRecordsResolver, ee as tableSortResolver, ec as tableUpdateRecordsResolver, aY as toSnakeCase, aZ as toTitleCase, e0 as triggerInboxResolver, e5 as triggerMessagesResolver, fo as updateTableRecordsPlugin, e1 as workflowIdResolver, e4 as workflowRunIdResolver, e3 as workflowVersionIdResolver, cN as zapierAdaptError, b6 as zapierCoreOptions, at as zapierSdkPlugin } from './index-BxgeAXDh.js';
2
2
  import 'zod';
3
3
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
4
4
  import '@zapier/policy-context';
package/dist/index.mjs CHANGED
@@ -408,51 +408,36 @@ function decodeConcatCursor(incoming) {
408
408
  }
409
409
  return { index: 0, cursor: incoming };
410
410
  }
411
- function concatPaginated({
411
+ async function concatLists({
412
412
  sources,
413
413
  pageSize = 100,
414
414
  cursor
415
415
  }) {
416
416
  if (sources.length === 0) {
417
- const empty = { data: [] };
418
- return Object.assign(Promise.resolve(empty), {
419
- [Symbol.asyncIterator]: async function* () {
420
- yield empty;
421
- }
422
- });
417
+ return { data: [] };
423
418
  }
424
419
  const pageFunction = async (options) => {
425
- let { index, cursor: sourceCursor } = decodeConcatCursor(options.cursor);
420
+ let { index, cursor: listCursor } = decodeConcatCursor(options.cursor);
426
421
  while (index < sources.length) {
427
- const page = await sources[index]({ cursor: sourceCursor });
428
- const hasMoreInSource = page.nextCursor != null;
429
- if (page.data.length === 0 && !hasMoreInSource) {
422
+ const page = await sources[index]({ cursor: listCursor });
423
+ const hasMoreInList = page.nextCursor != null;
424
+ if (page.data.length === 0 && !hasMoreInList) {
430
425
  index++;
431
- sourceCursor = void 0;
426
+ listCursor = void 0;
432
427
  continue;
433
428
  }
434
429
  return {
435
430
  data: page.data,
436
- nextCursor: hasMoreInSource ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
431
+ nextCursor: hasMoreInList ? encodeConcatCursor(index, page.nextCursor) : index < sources.length - 1 ? encodeConcatCursor(index + 1, void 0) : void 0
437
432
  };
438
433
  }
439
434
  return { data: [] };
440
435
  };
441
- const iterator = paginateBuffered(pageFunction, { pageSize, cursor });
442
- const firstPagePromise = iterator.next().then((result) => {
443
- if (result.done) {
444
- return { data: [] };
445
- }
446
- return result.value;
447
- });
448
- return Object.assign(firstPagePromise, {
449
- [Symbol.asyncIterator]: async function* () {
450
- yield await firstPagePromise;
451
- for await (const page of { [Symbol.asyncIterator]: () => iterator }) {
452
- yield page;
453
- }
454
- }
455
- });
436
+ const result = await paginateBuffered(pageFunction, {
437
+ pageSize,
438
+ cursor
439
+ }).next();
440
+ return result.done ? { data: [] } : result.value;
456
441
  }
457
442
  var parseOrThrow = (schema, input, { adaptError } = {}) => {
458
443
  const result = schema.safeParse(input);
@@ -787,6 +772,13 @@ function createPaginatedFunction(coreFn, options) {
787
772
  [Symbol.asyncIterator]() {
788
773
  return pageStream;
789
774
  },
775
+ pages: function() {
776
+ return {
777
+ [Symbol.asyncIterator]() {
778
+ return pageStream;
779
+ }
780
+ };
781
+ },
790
782
  items: function() {
791
783
  return {
792
784
  [Symbol.asyncIterator]: async function* () {
@@ -5427,7 +5419,7 @@ function parseDeprecationDate(value) {
5427
5419
  }
5428
5420
 
5429
5421
  // src/sdk-version.ts
5430
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.84.4" : void 0) || "unknown";
5422
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.85.0" : void 0) || "unknown";
5431
5423
 
5432
5424
  // src/utils/open-url.ts
5433
5425
  var nodePrefix = "node:";
@@ -8576,13 +8568,13 @@ var tableIdResolver = defineResolver({
8576
8568
  listItems: ({ imports, context, cursor }) => {
8577
8569
  const includeShared = context?.includeShared;
8578
8570
  if (includeShared) {
8579
- return concatPaginated({
8571
+ return concatLists({
8580
8572
  sources: [
8581
- ({ cursor: sourceCursor }) => imports.listTablesInternal({ cursor: sourceCursor }),
8582
- ({ cursor: sourceCursor }) => imports.listTablesInternal({
8573
+ ({ cursor: listCursor }) => imports.listTablesInternal({ cursor: listCursor }),
8574
+ ({ cursor: listCursor }) => imports.listTablesInternal({
8583
8575
  includeShared: true,
8584
8576
  includePersonal: false,
8585
- cursor: sourceCursor
8577
+ cursor: listCursor
8586
8578
  })
8587
8579
  ],
8588
8580
  cursor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.84.4",
3
+ "version": "0.85.0",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -95,7 +95,7 @@
95
95
  "tsup": "^8.5.0",
96
96
  "typescript": "^5.8.3",
97
97
  "vitest": "^4.1.4",
98
- "@zapier/kitcore": "0.7.0"
98
+ "@zapier/kitcore": "0.8.0"
99
99
  },
100
100
  "scripts": {
101
101
  "build": "tsup",