@zapier/zapier-sdk 0.52.0 → 0.54.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +57 -0
  3. package/dist/experimental.cjs +121 -39
  4. package/dist/experimental.d.mts +31 -2
  5. package/dist/experimental.d.ts +28 -0
  6. package/dist/experimental.d.ts.map +1 -1
  7. package/dist/experimental.js +2 -0
  8. package/dist/experimental.mjs +121 -40
  9. package/dist/{index-DcdtPei-.d.mts → index-SDDmBk2j.d.mts} +105 -10
  10. package/dist/{index-DcdtPei-.d.ts → index-SDDmBk2j.d.ts} +105 -10
  11. package/dist/index.cjs +75 -27
  12. package/dist/index.d.mts +2 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.mjs +75 -28
  16. package/dist/plugins/triggers/ackTriggerInboxMessages/index.d.ts.map +1 -1
  17. package/dist/plugins/triggers/ackTriggerInboxMessages/index.js +2 -1
  18. package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
  19. package/dist/plugins/triggers/createTriggerInbox/index.js +1 -4
  20. package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
  21. package/dist/plugins/triggers/ensureTriggerInbox/index.js +1 -4
  22. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.d.ts.map +1 -1
  23. package/dist/plugins/triggers/leaseTriggerInboxMessages/index.js +5 -1
  24. package/dist/plugins/triggers/listTriggers/index.d.ts +70 -0
  25. package/dist/plugins/triggers/listTriggers/index.d.ts.map +1 -0
  26. package/dist/plugins/triggers/listTriggers/index.js +25 -0
  27. package/dist/plugins/triggers/listTriggers/schemas.d.ts +11 -0
  28. package/dist/plugins/triggers/listTriggers/schemas.d.ts.map +1 -0
  29. package/dist/plugins/triggers/listTriggers/schemas.js +18 -0
  30. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.d.ts.map +1 -1
  31. package/dist/plugins/triggers/releaseTriggerInboxMessages/index.js +2 -1
  32. package/dist/resolvers/appKey.d.ts +7 -2
  33. package/dist/resolvers/appKey.d.ts.map +1 -1
  34. package/dist/resolvers/appKey.js +46 -3
  35. package/dist/resolvers/index.d.ts +1 -0
  36. package/dist/resolvers/index.d.ts.map +1 -1
  37. package/dist/resolvers/index.js +1 -0
  38. package/dist/resolvers/triggerMessages.d.ts +6 -0
  39. package/dist/resolvers/triggerMessages.d.ts.map +1 -0
  40. package/dist/resolvers/triggerMessages.js +22 -0
  41. package/dist/schemas/App.d.ts.map +1 -1
  42. package/dist/schemas/App.js +2 -11
  43. package/dist/utils/domain-utils.d.ts +4 -0
  44. package/dist/utils/domain-utils.d.ts.map +1 -1
  45. package/dist/utils/domain-utils.js +5 -0
  46. package/dist/utils/schema-utils.d.ts +80 -8
  47. package/dist/utils/schema-utils.d.ts.map +1 -1
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.54.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ecfb727: Add type-to-filter to interactive single-select dropdowns: dynamic resolvers (apps, connections, tables, table records, etc.) and SELECT-format field choices. `(Load more...)` remains reachable even when a search yields zero matches, so users can pull the next page and try again.
8
+
9
+ Dynamic resolvers also gain an `inputType: "search"` mode: the CLI prompts for free-form text, hands it to `fetch` as `search`, and either short-circuits on a primitive return (exact match) or renders results as a search-filterable dropdown. Empty results expose `(Use "foo" as-is)` and `(Try a different search)` so a required parameter can never strand the user. The built-in `appKey` resolver now uses this mode (`getApp` for exact match, `listApps --search` for fallback).
10
+
11
+ `DynamicResolver` is now a discriminated union of `DynamicListResolver` and `DynamicSearchResolver`. Note for plugin authors: the `placeholder` field is now typed as `never` on the list variant, so a classic list resolver that was previously setting an unused `placeholder` will see a TypeScript error. Move it into a search-mode variant (`inputType: "search"`) or drop it — the CLI never read it on list resolvers.
12
+
13
+ ## 0.53.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 23352c8: Trigger inbox fixes and additions:
18
+ - Send `connection_id: null` for trigger inboxes without a connection so connection-less apps (e.g. tables) work correctly.
19
+ - Add `listTriggers`, a read variant of `listActions` that lists an app's triggers.
20
+ - Add interactive resolvers to trigger inbox message methods: `ackTriggerInboxMessages` and `releaseTriggerInboxMessages` prompt for `messages` with a multi-select of leased messages; `leaseTriggerInboxMessages` prompts for `leaseLimit` and `leaseSeconds`.
21
+ - CLI: coerce static prompt input to the schema's underlying type so numeric/boolean fields (e.g. `leaseLimit`, `leaseSeconds`) no longer fail Zod validation with "expected number, received string".
22
+
3
23
  ## 0.52.0
4
24
 
5
25
  ### Minor Changes
package/README.md CHANGED
@@ -59,6 +59,7 @@
59
59
  - [`listTriggerInboxes`](#listtriggerinboxes--experimental)
60
60
  - [`listTriggerInputFieldChoices`](#listtriggerinputfieldchoices--experimental)
61
61
  - [`listTriggerInputFields`](#listtriggerinputfields--experimental)
62
+ - [`listTriggers`](#listtriggers--experimental)
62
63
  - [`pauseTriggerInbox`](#pausetriggerinbox--experimental)
63
64
  - [`releaseTriggerInboxMessages`](#releasetriggerinboxmessages--experimental)
64
65
  - [`resumeTriggerInbox`](#resumetriggerinbox--experimental)
@@ -2342,6 +2343,62 @@ for await (const rootField of zapier
2342
2343
  }
2343
2344
  ```
2344
2345
 
2346
+ #### `listTriggers` 🧪 _experimental_
2347
+
2348
+ List all triggers for a specific app
2349
+
2350
+ **Parameters:**
2351
+
2352
+ | Name | Type | Required | Default | Possible Values | Description |
2353
+ | -------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------- |
2354
+ | `options` | `object` | ✅ | — | — | |
2355
+ | ​ ↳ `app` | `string` | ✅ | — | — | App key of triggers to list (e.g., 'SlackCLIAPI' or slug like 'github') |
2356
+ | ​ ↳ `pageSize` | `number` | ❌ | — | — | Number of triggers per page |
2357
+ | ​ ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
2358
+ | ​ ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
2359
+
2360
+ **Returns:** `Promise<PaginatedResult<ActionItem>>`
2361
+
2362
+ | Name | Type | Required | Possible Values | Description |
2363
+ | ------------------ | ---------- | -------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
2364
+ | `data[]` | `object[]` | ✅ | — | |
2365
+ | ​ ↳ `id` | `string` | ❌ | — | |
2366
+ | ​ ↳ `key` | `string` | ✅ | — | |
2367
+ | ​ ↳ `description` | `string` | ✅ | — | |
2368
+ | ​ ↳ `is_important` | `boolean` | ❌ | — | |
2369
+ | ​ ↳ `is_hidden` | `boolean` | ❌ | — | |
2370
+ | ​ ↳ `app_key` | `string` | ✅ | — | |
2371
+ | ​ ↳ `app_version` | `string` | ❌ | — | |
2372
+ | ​ ↳ `action_type` | `string` | ✅ | `filter`, `read`, `read_bulk`, `run`, `search`, `search_and_write`, `search_or_write`, `write` | |
2373
+ | ​ ↳ `title` | `string` | ✅ | — | |
2374
+ | ​ ↳ `type` | `string` | ✅ | `action` | |
2375
+ | `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
2376
+
2377
+ **Example:**
2378
+
2379
+ ```typescript
2380
+ // Get first page and a cursor for the second page
2381
+ const { data: actions, nextCursor } = await zapier.listTriggers({
2382
+ app: "example-app",
2383
+ });
2384
+
2385
+ // Or iterate over all pages
2386
+ for await (const page of zapier.listTriggers({
2387
+ app: "example-app",
2388
+ })) {
2389
+ // Do something with each page
2390
+ }
2391
+
2392
+ // Or iterate over individual items across all pages
2393
+ for await (const action of zapier
2394
+ .listTriggers({
2395
+ app: "example-app",
2396
+ })
2397
+ .items()) {
2398
+ // Do something with each action
2399
+ }
2400
+ ```
2401
+
2345
2402
  #### `pauseTriggerInbox` 🧪 _experimental_
2346
2403
 
2347
2404
  Pause a trigger inbox; events stop being collected
@@ -1399,6 +1399,18 @@ var FetchInitSchema = zod.z.object({
1399
1399
  aliases: { connectionId: "connection", authenticationId: "connection" }
1400
1400
  });
1401
1401
 
1402
+ // src/utils/string-utils.ts
1403
+ function toTitleCase(input) {
1404
+ return input.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-]+/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
1405
+ }
1406
+ function toSnakeCase(input) {
1407
+ let result = input.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s\-]+/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").toLowerCase();
1408
+ if (/^[0-9]/.test(result)) {
1409
+ result = "_" + result;
1410
+ }
1411
+ return result;
1412
+ }
1413
+
1402
1414
  // src/utils/domain-utils.ts
1403
1415
  function isConnectionId(value) {
1404
1416
  return /^\d+$/.test(value) || isUuid(value);
@@ -1545,6 +1557,12 @@ function toAppLocator(appKey) {
1545
1557
  function isResolvedAppLocator(appLocator) {
1546
1558
  return !!appLocator.implementationName;
1547
1559
  }
1560
+ function getAppKeyList(app) {
1561
+ const keys = new Set(
1562
+ [app.slug, toSnakeCase(app.slug), app.key].filter(Boolean)
1563
+ );
1564
+ return Array.from(keys);
1565
+ }
1548
1566
 
1549
1567
  // src/utils/abort-utils.ts
1550
1568
  function getAbortSignalApi() {
@@ -2863,7 +2881,7 @@ async function invalidateCredentialsToken(options) {
2863
2881
  }
2864
2882
 
2865
2883
  // src/sdk-version.ts
2866
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.52.0" : void 0) || "unknown";
2884
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.54.0" : void 0) || "unknown";
2867
2885
 
2868
2886
  // src/utils/open-url.ts
2869
2887
  var nodePrefix = "node:";
@@ -3858,34 +3876,12 @@ var ListAppsSchema = apps.ListAppsQuerySchema.omit({
3858
3876
  // SDK specific property for pagination/iterable helpers
3859
3877
  cursor: zod.z.string().optional().describe("Cursor to start from")
3860
3878
  }).describe("List all available apps with optional filtering");
3861
-
3862
- // src/utils/string-utils.ts
3863
- function toTitleCase(input) {
3864
- return input.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-]+/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
3865
- }
3866
- function toSnakeCase(input) {
3867
- let result = input.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s\-]+/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").toLowerCase();
3868
- if (/^[0-9]/.test(result)) {
3869
- result = "_" + result;
3870
- }
3871
- return result;
3872
- }
3873
-
3874
- // src/schemas/App.ts
3875
3879
  var AppItemSchema = withFormatter(apps.AppItemSchema, {
3876
3880
  format: (item) => {
3877
- const additionalKeys = [];
3878
- if (item.slug && item.slug !== item.key) {
3879
- additionalKeys.push(item.slug);
3880
- const snakeCaseSlug = toSnakeCase(item.slug);
3881
- if (snakeCaseSlug !== item.slug && snakeCaseSlug !== item.key) {
3882
- additionalKeys.push(snakeCaseSlug);
3883
- }
3884
- }
3885
3881
  return {
3886
3882
  title: item.title,
3887
3883
  key: item.key,
3888
- keys: [item.key, ...additionalKeys],
3884
+ keys: getAppKeyList(item),
3889
3885
  description: item.description,
3890
3886
  details: []
3891
3887
  };
@@ -3955,9 +3951,37 @@ var GetAppInputSchema = zod.z.union([GetAppSchema, GetAppSchemaDeprecated]).desc
3955
3951
 
3956
3952
  // src/resolvers/appKey.ts
3957
3953
  var appKeyResolver = {
3958
- type: "static",
3959
- inputType: "text",
3960
- placeholder: "Enter app key (e.g., 'SlackCLIAPI' or slug like 'github')"
3954
+ type: "dynamic",
3955
+ inputType: "search",
3956
+ placeholder: "e.g., 'slack' or 'SlackCLIAPI' or 'mail'",
3957
+ // Try the user's typed string as an exact app locator first; getApp accepts
3958
+ // a slug, key, or implementation id. If that hits, short-circuit with the
3959
+ // input — every variant the user could have typed is already a valid value
3960
+ // anywhere else app is required, so no canonicalization needed here. If
3961
+ // getApp 404s, fall back to a search; any other error (auth, network,
3962
+ // rate-limit) propagates so the user sees the real problem.
3963
+ fetch: async (sdk, { search }) => {
3964
+ if (!search) return [];
3965
+ try {
3966
+ await sdk.getApp({ app: search });
3967
+ return search;
3968
+ } catch (err) {
3969
+ if (!(err instanceof ZapierAppNotFoundError) && !(err instanceof ZapierNotFoundError)) {
3970
+ throw err;
3971
+ }
3972
+ }
3973
+ const page = await sdk.listApps({ search });
3974
+ return page.data;
3975
+ },
3976
+ prompt: (apps) => ({
3977
+ type: "list",
3978
+ name: "app",
3979
+ message: "Select app:",
3980
+ choices: apps.map((app) => ({
3981
+ name: app.title ? `${app.title} (${getAppKeyList(app).join(", ")})` : app.key,
3982
+ value: app.key
3983
+ }))
3984
+ })
3961
3985
  };
3962
3986
 
3963
3987
  // src/resolvers/actionType.ts
@@ -4222,6 +4246,29 @@ var triggerInboxResolver = {
4222
4246
  }))
4223
4247
  })
4224
4248
  };
4249
+
4250
+ // src/resolvers/triggerMessages.ts
4251
+ var triggerMessagesResolver = {
4252
+ type: "dynamic",
4253
+ depends: ["inbox"],
4254
+ fetch: async (sdk, params) => toIterable(
4255
+ sdk.listTriggerInboxMessages({
4256
+ inbox: params.inbox
4257
+ })
4258
+ ),
4259
+ prompt: (messages) => ({
4260
+ type: "checkbox",
4261
+ name: "messages",
4262
+ message: "Select messages:",
4263
+ // Only leased messages are eligible to ack or release. Acked messages
4264
+ // are gone from the inbox already; available/quarantined ones can't be
4265
+ // operated on by these methods.
4266
+ choices: messages.filter((message) => message.status === "leased").map((message) => ({
4267
+ name: `${message.id} (${message.status}, lease_count: ${message.message_attributes.lease_count})`,
4268
+ value: message.id
4269
+ }))
4270
+ })
4271
+ };
4225
4272
  function formatFieldValue(v) {
4226
4273
  if (v == null) return "";
4227
4274
  if (typeof v === "object") {
@@ -9015,15 +9062,13 @@ var createTriggerInboxPlugin = definePlugin(
9015
9062
  subscription: {
9016
9063
  app_key: selectedApi,
9017
9064
  action_key: actionKey,
9018
- inputs
9065
+ inputs,
9066
+ connection_id: resolvedConnectionId ?? null
9019
9067
  }
9020
9068
  };
9021
9069
  if (notificationUrl !== void 0) {
9022
9070
  requestBody.notification_url = notificationUrl;
9023
9071
  }
9024
- if (resolvedConnectionId !== void 0 && resolvedConnectionId !== null) {
9025
- requestBody.subscription.connection_id = resolvedConnectionId;
9026
- }
9027
9072
  const rawResponse = await api.post(
9028
9073
  "/trigger-inbox/api/v1/inboxes",
9029
9074
  requestBody,
@@ -9104,15 +9149,13 @@ var ensureTriggerInboxPlugin = definePlugin(
9104
9149
  subscription: {
9105
9150
  app_key: selectedApi,
9106
9151
  action_key: actionKey,
9107
- inputs
9152
+ inputs,
9153
+ connection_id: resolvedConnectionId ?? null
9108
9154
  }
9109
9155
  };
9110
9156
  if (notificationUrl !== void 0) {
9111
9157
  requestBody.notification_url = notificationUrl;
9112
9158
  }
9113
- if (resolvedConnectionId !== void 0 && resolvedConnectionId !== null) {
9114
- requestBody.subscription.connection_id = resolvedConnectionId;
9115
- }
9116
9159
  const rawResponse = await api.post(
9117
9160
  "/trigger-inbox/api/v1/inboxes",
9118
9161
  requestBody,
@@ -9573,7 +9616,11 @@ var leaseTriggerInboxMessagesPlugin = definePlugin(
9573
9616
  itemType: "TriggerInboxLease",
9574
9617
  inputSchema: LeaseTriggerInboxMessagesSchema,
9575
9618
  outputSchema: LeaseTriggerInboxMessagesItemSchema,
9576
- resolvers: { inbox: triggerInboxResolver },
9619
+ resolvers: {
9620
+ inbox: triggerInboxResolver,
9621
+ leaseLimit: { type: "static", inputType: "text" },
9622
+ leaseSeconds: { type: "static", inputType: "text" }
9623
+ },
9577
9624
  handler: async ({ sdk: sdk2, options }) => {
9578
9625
  const { inbox, leaseLimit, leaseSeconds, signal } = options;
9579
9626
  const inboxId = await resolveTriggerInboxId({
@@ -9637,7 +9684,8 @@ var ackTriggerInboxMessagesPlugin = definePlugin(
9637
9684
  // No way to look up a lease — leases are short-lived, only the
9638
9685
  // most recent leaseTriggerInboxMessages caller knows the ID.
9639
9686
  // Static resolver prompts for free-text input.
9640
- lease: { type: "static", inputType: "text" }
9687
+ lease: { type: "static", inputType: "text" },
9688
+ messages: triggerMessagesResolver
9641
9689
  },
9642
9690
  handler: async ({ sdk: sdk2, options }) => {
9643
9691
  const { inbox, lease, messages } = options;
@@ -9688,7 +9736,8 @@ var releaseTriggerInboxMessagesPlugin = definePlugin(
9688
9736
  // No way to look up a lease — leases are short-lived, only the
9689
9737
  // most recent leaseTriggerInboxMessages caller knows the ID.
9690
9738
  // Static resolver prompts for free-text input.
9691
- lease: { type: "static", inputType: "text" }
9739
+ lease: { type: "static", inputType: "text" },
9740
+ messages: triggerMessagesResolver
9692
9741
  },
9693
9742
  handler: async ({ sdk: sdk2, options }) => {
9694
9743
  const { inbox, lease, messages } = options;
@@ -10225,6 +10274,38 @@ var watchTriggerInboxPlugin = definePlugin(
10225
10274
  };
10226
10275
  }
10227
10276
  );
10277
+ var ListTriggersSchema = zod.z.object({
10278
+ app: AppPropertySchema.describe(
10279
+ "App key of triggers to list (e.g., 'SlackCLIAPI' or slug like 'github')"
10280
+ ),
10281
+ pageSize: zod.z.number().min(1).optional().describe("Number of triggers per page"),
10282
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
10283
+ cursor: zod.z.string().optional().describe("Cursor to start from")
10284
+ }).describe("List all triggers for a specific app");
10285
+
10286
+ // src/plugins/triggers/listTriggers/index.ts
10287
+ var listTriggersPlugin = definePlugin(
10288
+ (sdk) => createPaginatedPluginMethod(sdk, {
10289
+ ...triggersDefaults,
10290
+ name: "listTriggers",
10291
+ type: "list",
10292
+ itemType: "Action",
10293
+ inputSchema: ListTriggersSchema,
10294
+ outputSchema: ActionItemSchema,
10295
+ defaultPageSize: DEFAULT_PAGE_SIZE,
10296
+ resolvers: { app: appKeyResolver },
10297
+ handler: async ({
10298
+ sdk: sdk2,
10299
+ options
10300
+ }) => {
10301
+ const result = await sdk2.listActions({
10302
+ ...options,
10303
+ actionType: "read"
10304
+ });
10305
+ return { data: result.data, nextCursor: result.nextCursor };
10306
+ }
10307
+ })
10308
+ );
10228
10309
  var ListTriggerInputFieldsSchema = zod.z.object({
10229
10310
  app: AppPropertySchema,
10230
10311
  action: ActionPropertySchema,
@@ -10516,7 +10597,7 @@ var registryPlugin = definePlugin((_sdk) => {
10516
10597
 
10517
10598
  // src/experimental.ts
10518
10599
  function createZapierSdk2(options = {}) {
10519
- return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
10600
+ return createSdk().addPlugin(createOptionsPlugin(options)).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(capabilitiesPlugin).addPlugin(connectionsPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listActionInputFieldsPlugin).addPlugin(getActionInputFieldsSchemaPlugin).addPlugin(listActionInputFieldChoicesPlugin).addPlugin(listInputFieldsDeprecatedPlugin).addPlugin(getInputFieldsSchemaDeprecatedPlugin).addPlugin(listInputFieldChoicesDeprecatedPlugin).addPlugin(runActionPlugin).addPlugin(listConnectionsPlugin).addPlugin(getConnectionPlugin).addPlugin(findFirstConnectionPlugin).addPlugin(findUniqueConnectionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(createTriggerInboxPlugin).addPlugin(ensureTriggerInboxPlugin).addPlugin(listTriggerInboxesPlugin).addPlugin(getTriggerInboxPlugin).addPlugin(updateTriggerInboxPlugin).addPlugin(deleteTriggerInboxPlugin).addPlugin(pauseTriggerInboxPlugin).addPlugin(resumeTriggerInboxPlugin).addPlugin(listTriggerInboxMessagesPlugin).addPlugin(leaseTriggerInboxMessagesPlugin).addPlugin(ackTriggerInboxMessagesPlugin).addPlugin(releaseTriggerInboxMessagesPlugin).addPlugin(drainTriggerInboxPlugin).addPlugin(watchTriggerInboxPlugin).addPlugin(listTriggersPlugin).addPlugin(listTriggerInputFieldsPlugin).addPlugin(listTriggerInputFieldChoicesPlugin).addPlugin(getTriggerInputFieldsSchemaPlugin).addPlugin(listTablesPlugin).addPlugin(getTablePlugin).addPlugin(deleteTablePlugin).addPlugin(createTablePlugin).addPlugin(listTableFieldsPlugin).addPlugin(createTableFieldsPlugin).addPlugin(deleteTableFieldsPlugin).addPlugin(getTableRecordPlugin).addPlugin(listTableRecordsPlugin).addPlugin(createTableRecordsPlugin).addPlugin(deleteTableRecordsPlugin).addPlugin(updateTableRecordsPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
10520
10601
  }
10521
10602
 
10522
10603
  exports.ActionKeyPropertySchema = ActionKeyPropertySchema;
@@ -10703,4 +10784,5 @@ exports.tableUpdateRecordsResolver = tableUpdateRecordsResolver;
10703
10784
  exports.toSnakeCase = toSnakeCase;
10704
10785
  exports.toTitleCase = toTitleCase;
10705
10786
  exports.triggerInboxResolver = triggerInboxResolver;
10787
+ exports.triggerMessagesResolver = triggerMessagesResolver;
10706
10788
  exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
@@ -1,9 +1,10 @@
1
- import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-DcdtPei-.mjs';
2
- export { u as Action, cg as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aU as ActionItem, bv as ActionKeyProperty, b3 as ActionKeyPropertySchema, bw as ActionProperty, b4 as ActionPropertySchema, aq as ActionResolverItem, bH as ActionTimeoutMsProperty, bf as ActionTimeoutMsPropertySchema, ar as ActionTypeItem, bu as ActionTypeProperty, b2 as ActionTypePropertySchema, bU as ApiError, dB as ApiEvent, c_ as ApiPluginOptions, d0 as ApiPluginProvides, v as App, ch as AppFactoryInput, aS as AppItem, bs as AppKeyProperty, b0 as AppKeyPropertySchema, bt as AppProperty, b1 as AppPropertySchema, aB as ApplicationLifecycleEventData, c9 as ApprovalStatus, cf as AppsPluginProvides, bM as AppsProperty, bk as AppsPropertySchema, a0 as ArrayResolver, dA as AuthEvent, bA as AuthenticationIdProperty, b7 as AuthenticationIdPropertySchema, ax as BaseEvent, aj as BaseSdkOptionsSchema, a8 as BatchOptions, cN as CONTEXT_CACHE_MAX_SIZE, cM as CONTEXT_CACHE_TTL_MS, x as Choice, dH as ClientCredentialsObject, dS as ClientCredentialsObjectSchema, K as Connection, d_ as ConnectionEntry, dZ as ConnectionEntrySchema, by as ConnectionIdProperty, b6 as ConnectionIdPropertySchema, aT as ConnectionItem, bz as ConnectionProperty, b8 as ConnectionPropertySchema, e0 as ConnectionsMap, d$ as ConnectionsMapSchema, e2 as ConnectionsPluginProvides, bO as ConnectionsProperty, bm as ConnectionsPropertySchema, O as ConnectionsResponse, cz as CreateClientCredentialsPluginProvides, er as CreateTableFieldsPluginProvides, el as CreateTablePluginProvides, ez as CreateTableRecordsPluginProvides, dE as Credentials, dX as CredentialsFunction, dW as CredentialsFunctionSchema, dG as CredentialsObject, dU as CredentialsObjectSchema, dY as CredentialsSchema, e7 as DEFAULT_ACTION_TIMEOUT_MS, ee as DEFAULT_APPROVAL_TIMEOUT_MS, cW as DEFAULT_CONFIG_PATH, ef as DEFAULT_MAX_APPROVAL_RETRIES, e6 as DEFAULT_PAGE_SIZE, bF as DebugProperty, bd as DebugPropertySchema, cB as DeleteClientCredentialsPluginProvides, et as DeleteTableFieldsPluginProvides, en as DeleteTablePluginProvides, eB as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, aC as EnhancedErrorEventData, bV as ErrorOptions, dD as EventCallback, aA as EventContext, az as EventEmissionProvides, cj as FetchPluginProvides, w as Field, bL as FieldsProperty, bj as FieldsPropertySchema, a3 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cJ as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cL as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ai as FunctionDeprecation, aZ as FunctionOptions, ah as FunctionRegistryEntry, ct as GetActionInputFieldsSchemaPluginProvides, cF as GetActionPluginProvides, cD as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cH as GetConnectionPluginProvides, cZ as GetProfilePluginProvides, ej as GetTablePluginProvides, ev as GetTableRecordPluginProvides, aW as InfoFieldItem, aV as InputFieldItem, bx as InputFieldProperty, b5 as InputFieldPropertySchema, bB as InputsProperty, b9 as InputsPropertySchema, bT as LeaseLimitProperty, br as LeaseLimitPropertySchema, bR as LeaseProperty, bp as LeasePropertySchema, bS as LeaseSecondsProperty, bq as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bC as LimitProperty, ba as LimitPropertySchema, cr as ListActionInputFieldChoicesPluginProvides, cp as ListActionInputFieldsPluginProvides, cn as ListActionsPluginProvides, cl as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cx as ListClientCredentialsPluginProvides, cv as ListConnectionsPluginProvides, ep as ListTableFieldsPluginProvides, ex as ListTableRecordsPluginProvides, eh as ListTablesPluginProvides, dC as LoadingEvent, ea as MAX_CONCURRENCY_LIMIT, e5 as MAX_PAGE_LIMIT, cX as ManifestEntry, cS as ManifestPluginOptions, cV as ManifestPluginProvides, ay as MethodCalledEvent, aD as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bD as OffsetProperty, bb as OffsetPropertySchema, _ as OutputFormatter, bE as OutputProperty, bc as OutputPropertySchema, a$ as PaginatedSdkFunction, bG as ParamsProperty, be as ParamsPropertySchema, dI as PkceCredentialsObject, dT as PkceCredentialsObjectSchema, ak as Plugin, al as PluginProvides, au as PollOptions, c7 as RateLimitInfo, bJ as RecordProperty, bh as RecordPropertySchema, bK as RecordsProperty, bi as RecordsPropertySchema, ad as RelayFetchSchema, ac as RelayRequestSchema, at as RequestOptions, cR as RequestPluginProvides, dm as ResolveAuthTokenOptions, dN as ResolveCredentialsOptions, dF as ResolvedCredentials, dV as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aX as RootFieldItem, cP as RunActionPluginProvides, dz as SdkEvent, a_ as SdkPage, a2 as StaticResolver, bI as TableProperty, bg as TablePropertySchema, bN as TablesProperty, bl as TablesPropertySchema, bQ as TriggerInboxNameProperty, bo as TriggerInboxNamePropertySchema, bP as TriggerInboxProperty, bn as TriggerInboxPropertySchema, T as TriggerMessageStatus, eD as UpdateTableRecordsPluginProvides, Q as UserProfile, aY as UserProfileItem, e3 as ZAPIER_BASE_URL, ec as ZAPIER_MAX_CONCURRENT_REQUESTS, e8 as ZAPIER_MAX_NETWORK_RETRIES, e9 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c5 as ZapierActionError, bX as ZapierApiError, bY as ZapierAppNotFoundError, ca as ZapierApprovalError, b$ as ZapierAuthenticationError, c3 as ZapierBundleError, dv as ZapierCache, dw as ZapierCacheEntry, dx as ZapierCacheSetOptions, c2 as ZapierConfigurationError, c6 as ZapierConflictError, bW as ZapierError, c0 as ZapierNotFoundError, c8 as ZapierRateLimitError, cb as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c1 as ZapierResourceNotFoundError, cd as ZapierSignal, c4 as ZapierTimeoutError, b_ as ZapierUnknownError, bZ as ZapierValidationError, d3 as actionKeyResolver, d2 as actionTypeResolver, c$ as apiPlugin, d1 as appKeyResolver, ce as appsPlugin, d5 as authenticationIdGenericResolver, d4 as authenticationIdResolver, a7 as batch, aN as buildApplicationLifecycleEvent, a9 as buildCapabilityMessage, aP as buildErrorEvent, aO as buildErrorEventWithContext, aR as buildMethodCalledEvent, dn as clearTokenCache, d9 as clientCredentialsNameResolver, da as clientIdResolver, ap as composePlugins, d5 as connectionIdGenericResolver, d4 as connectionIdResolver, e1 as connectionsPlugin, aQ as createBaseEvent, cy as createClientCredentialsPlugin, V as createFunction, dy as createMemoryCache, ag as createOptionsPlugin, ao as createPaginatedPluginMethod, an as createPluginMethod, af as createSdk, eq as createTableFieldsPlugin, ek as createTablePlugin, ey as createTableRecordsPlugin, av as createZapierApi, ae as createZapierSdkWithoutRegistry, am as definePlugin, cA as deleteClientCredentialsPlugin, es as deleteTableFieldsPlugin, em as deleteTablePlugin, eA as deleteTableRecordsPlugin, ci as fetchPlugin, cI as findFirstConnectionPlugin, cK as findUniqueConnectionPlugin, cc as formatErrorMessage, aE as generateEventId, cs as getActionInputFieldsSchemaPlugin, cE as getActionPlugin, cC as getAppPlugin, dQ as getBaseUrlFromCredentials, aK as getCiPlatform, dR as getClientIdFromCredentials, cG as getConnectionPlugin, aM as getCpuTime, aF as getCurrentTimestamp, aL as getMemoryUsage, aw as getOrCreateApiClient, aH as getOsInfo, aI as getPlatformVersions, cT as getPreferredManifestEntryKey, cY as getProfilePlugin, aG as getReleaseId, ei as getTablePlugin, eu as getTableRecordPlugin, ds as getTokenFromCliLogin, ed as getZapierApprovalMode, e4 as getZapierSdkService, dq as injectCliLogin, d8 as inputFieldKeyResolver, d7 as inputsAllOptionalResolver, d6 as inputsResolver, dp as invalidateCachedToken, du as invalidateCredentialsToken, aJ as isCi, dr as isCliLoginAvailable, dJ as isClientCredentials, dM as isCredentialsFunction, dL as isCredentialsObject, dK as isPkceCredentials, S as isPositional, cq as listActionInputFieldChoicesPlugin, co as listActionInputFieldsPlugin, cm as listActionsPlugin, ck as listAppsPlugin, cw as listClientCredentialsPlugin, cu as listConnectionsPlugin, eo as listTableFieldsPlugin, ew as listTableRecordsPlugin, eg as listTablesPlugin, aa as logDeprecation, cU as manifestPlugin, eb as parseConcurrencyEnvVar, as as registryPlugin, cQ as requestPlugin, ab as resetDeprecationWarnings, dt as resolveAuthToken, dP as resolveCredentials, dO as resolveCredentialsFromEnv, cO as runActionPlugin, a4 as runWithTelemetryContext, df as tableFieldIdsResolver, dh as tableFieldsResolver, dk as tableFiltersResolver, db as tableIdResolver, dg as tableNameResolver, dd as tableRecordIdResolver, de as tableRecordIdsResolver, di as tableRecordsResolver, dl as tableSortResolver, dj as tableUpdateRecordsResolver, a5 as toSnakeCase, a6 as toTitleCase, dc as triggerInboxResolver, eC as updateTableRecordsPlugin } from './index-DcdtPei-.mjs';
1
+ import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-SDDmBk2j.mjs';
2
+ export { u as Action, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, eu as CreateTableFieldsPluginProvides, eo as CreateTablePluginProvides, eC as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, eh as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ew as DeleteTableFieldsPluginProvides, eq as DeleteTablePluginProvides, eE as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, em as GetTablePluginProvides, ey as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, es as ListTableFieldsPluginProvides, eA as ListTableRecordsPluginProvides, ek as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, eG as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, et as createTableFieldsPlugin, en as createTablePlugin, eB as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, ep as deleteTablePlugin, eD as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, el as getTablePlugin, ex as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, er as listTableFieldsPlugin, ez as listTableRecordsPlugin, ej as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eF as updateTableRecordsPlugin } from './index-SDDmBk2j.mjs';
3
3
  import * as zod_v4_core from 'zod/v4/core';
4
4
  import * as zod from 'zod';
5
5
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
6
6
  import '@zapier/policy-context';
7
+ import '@zapier/zapier-sdk-core/v0/schemas/apps';
7
8
  import '@zapier/zapier-sdk-cli/login';
8
9
 
9
10
  interface ZapierSdkOptions extends BaseSdkOptions {
@@ -1844,6 +1845,34 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
1844
1845
  };
1845
1846
  };
1846
1847
  };
1848
+ } & {
1849
+ listTriggers: (options?: ({
1850
+ app: string;
1851
+ pageSize?: number | undefined;
1852
+ maxItems?: number | undefined;
1853
+ cursor?: string | undefined;
1854
+ } & {
1855
+ cursor?: string;
1856
+ pageSize?: number;
1857
+ maxItems?: number;
1858
+ }) | undefined) => PaginatedSdkResult<{
1859
+ description: string;
1860
+ key: string;
1861
+ app_key: string;
1862
+ action_type: "filter" | "search" | "read" | "read_bulk" | "write" | "search_or_write" | "search_and_write" | "run";
1863
+ title: string;
1864
+ type: "action";
1865
+ id?: string | undefined;
1866
+ is_hidden?: boolean | undefined;
1867
+ is_important?: boolean | undefined;
1868
+ app_version?: string | undefined;
1869
+ }>;
1870
+ } & {
1871
+ context: {
1872
+ meta: {
1873
+ listTriggers: PluginMeta;
1874
+ };
1875
+ };
1847
1876
  } & {
1848
1877
  listTriggerInputFields: (options?: ({
1849
1878
  app: string;
@@ -1860,6 +1860,34 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
1860
1860
  };
1861
1861
  };
1862
1862
  };
1863
+ } & {
1864
+ listTriggers: (options?: ({
1865
+ app: string;
1866
+ pageSize?: number | undefined;
1867
+ maxItems?: number | undefined;
1868
+ cursor?: string | undefined;
1869
+ } & {
1870
+ cursor?: string;
1871
+ pageSize?: number;
1872
+ maxItems?: number;
1873
+ }) | undefined) => import("./index").PaginatedSdkResult<{
1874
+ description: string;
1875
+ key: string;
1876
+ app_key: string;
1877
+ action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
1878
+ title: string;
1879
+ type: "action";
1880
+ id?: string | undefined;
1881
+ is_important?: boolean | undefined;
1882
+ is_hidden?: boolean | undefined;
1883
+ app_version?: string | undefined;
1884
+ }>;
1885
+ } & {
1886
+ context: {
1887
+ meta: {
1888
+ listTriggers: PluginMeta;
1889
+ };
1890
+ };
1863
1891
  } & {
1864
1892
  listTriggerInputFields: (options?: ({
1865
1893
  app: string;
@@ -1 +1 @@
1
- {"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAuEjD,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA8FgkL,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAT/5L;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAM3D,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -55,6 +55,7 @@ import { ackTriggerInboxMessagesPlugin } from "./plugins/triggers/ackTriggerInbo
55
55
  import { releaseTriggerInboxMessagesPlugin } from "./plugins/triggers/releaseTriggerInboxMessages";
56
56
  import { drainTriggerInboxPlugin } from "./plugins/triggers/drainTriggerInbox";
57
57
  import { watchTriggerInboxPlugin } from "./plugins/triggers/watchTriggerInbox";
58
+ import { listTriggersPlugin } from "./plugins/triggers/listTriggers";
58
59
  import { listTriggerInputFieldsPlugin } from "./plugins/triggers/listTriggerInputFields";
59
60
  import { listTriggerInputFieldChoicesPlugin } from "./plugins/triggers/listTriggerInputFieldChoices";
60
61
  import { getTriggerInputFieldsSchemaPlugin } from "./plugins/triggers/getTriggerInputFieldsSchema";
@@ -132,6 +133,7 @@ export function createZapierSdk(options = {}) {
132
133
  .addPlugin(releaseTriggerInboxMessagesPlugin)
133
134
  .addPlugin(drainTriggerInboxPlugin)
134
135
  .addPlugin(watchTriggerInboxPlugin)
136
+ .addPlugin(listTriggersPlugin)
135
137
  .addPlugin(listTriggerInputFieldsPlugin)
136
138
  .addPlugin(listTriggerInputFieldChoicesPlugin)
137
139
  .addPlugin(getTriggerInputFieldsSchemaPlugin)