@zapier/zapier-sdk 0.26.0 → 0.27.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 (157) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/CLAUDE.md +6 -6
  3. package/README.md +217 -222
  4. package/dist/api/index.d.ts +1 -1
  5. package/dist/api/index.d.ts.map +1 -1
  6. package/dist/api/types.d.ts +3 -3
  7. package/dist/api/types.d.ts.map +1 -1
  8. package/dist/index.cjs +367 -216
  9. package/dist/index.d.mts +171 -91
  10. package/dist/index.d.ts +6 -5
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +4 -4
  13. package/dist/index.mjs +359 -211
  14. package/dist/plugins/apps/index.d.ts.map +1 -1
  15. package/dist/plugins/apps/index.js +20 -13
  16. package/dist/plugins/apps/schemas.d.ts +6 -2
  17. package/dist/plugins/apps/schemas.d.ts.map +1 -1
  18. package/dist/plugins/apps/schemas.js +7 -3
  19. package/dist/plugins/deprecated/authentications.d.ts +79 -0
  20. package/dist/plugins/deprecated/authentications.d.ts.map +1 -0
  21. package/dist/plugins/deprecated/authentications.js +90 -0
  22. package/dist/plugins/fetch/index.d.ts +4 -0
  23. package/dist/plugins/fetch/index.d.ts.map +1 -1
  24. package/dist/plugins/fetch/index.js +7 -4
  25. package/dist/plugins/fetch/schemas.d.ts +1 -0
  26. package/dist/plugins/fetch/schemas.d.ts.map +1 -1
  27. package/dist/plugins/fetch/schemas.js +3 -1
  28. package/dist/plugins/findFirstConnection/index.d.ts +21 -0
  29. package/dist/plugins/findFirstConnection/index.d.ts.map +1 -0
  30. package/dist/plugins/findFirstConnection/index.js +37 -0
  31. package/dist/plugins/findFirstConnection/index.test.d.ts.map +1 -0
  32. package/dist/plugins/{findFirstAuthentication → findFirstConnection}/index.test.js +43 -43
  33. package/dist/plugins/findFirstConnection/schemas.d.ts +22 -0
  34. package/dist/plugins/findFirstConnection/schemas.d.ts.map +1 -0
  35. package/dist/plugins/findFirstConnection/schemas.js +8 -0
  36. package/dist/plugins/findUniqueConnection/index.d.ts +21 -0
  37. package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -0
  38. package/dist/plugins/findUniqueConnection/index.js +40 -0
  39. package/dist/plugins/findUniqueConnection/index.test.d.ts.map +1 -0
  40. package/dist/plugins/{findUniqueAuthentication → findUniqueConnection}/index.test.js +41 -41
  41. package/dist/plugins/findUniqueConnection/schemas.d.ts +22 -0
  42. package/dist/plugins/findUniqueConnection/schemas.d.ts.map +1 -0
  43. package/dist/plugins/findUniqueConnection/schemas.js +8 -0
  44. package/dist/plugins/getApp/index.js +2 -2
  45. package/dist/plugins/getConnection/index.d.ts +22 -0
  46. package/dist/plugins/getConnection/index.d.ts.map +1 -0
  47. package/dist/plugins/getConnection/index.js +35 -0
  48. package/dist/plugins/getConnection/index.test.d.ts.map +1 -0
  49. package/dist/plugins/{getAuthentication → getConnection}/index.test.js +46 -28
  50. package/dist/plugins/getConnection/schemas.d.ts +13 -0
  51. package/dist/plugins/getConnection/schemas.d.ts.map +1 -0
  52. package/dist/plugins/getConnection/schemas.js +8 -0
  53. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -1
  54. package/dist/plugins/getInputFieldsSchema/index.js +7 -4
  55. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +1 -0
  56. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
  57. package/dist/plugins/getInputFieldsSchema/schemas.js +6 -2
  58. package/dist/plugins/listApps/schemas.js +2 -2
  59. package/dist/plugins/listClientCredentials/schemas.js +2 -2
  60. package/dist/plugins/listConnections/index.d.ts +24 -0
  61. package/dist/plugins/listConnections/index.d.ts.map +1 -0
  62. package/dist/plugins/{listAuthentications → listConnections}/index.js +28 -21
  63. package/dist/plugins/listConnections/index.test.d.ts.map +1 -0
  64. package/dist/plugins/{listAuthentications → listConnections}/index.test.js +219 -198
  65. package/dist/plugins/{listAuthentications → listConnections}/schemas.d.ts +11 -10
  66. package/dist/plugins/listConnections/schemas.d.ts.map +1 -0
  67. package/dist/plugins/listConnections/schemas.js +47 -0
  68. package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
  69. package/dist/plugins/listInputFieldChoices/index.js +8 -5
  70. package/dist/plugins/listInputFieldChoices/schemas.d.ts +1 -0
  71. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
  72. package/dist/plugins/listInputFieldChoices/schemas.js +3 -1
  73. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  74. package/dist/plugins/listInputFields/index.js +7 -4
  75. package/dist/plugins/listInputFields/schemas.d.ts +1 -0
  76. package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
  77. package/dist/plugins/listInputFields/schemas.js +3 -1
  78. package/dist/plugins/manifest/schemas.d.ts +2 -0
  79. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  80. package/dist/plugins/manifest/schemas.js +3 -1
  81. package/dist/plugins/registry/index.d.ts.map +1 -1
  82. package/dist/plugins/registry/index.js +3 -2
  83. package/dist/plugins/request/index.d.ts.map +1 -1
  84. package/dist/plugins/request/index.js +5 -2
  85. package/dist/plugins/request/schemas.d.ts +2 -0
  86. package/dist/plugins/request/schemas.d.ts.map +1 -1
  87. package/dist/plugins/request/schemas.js +3 -1
  88. package/dist/plugins/runAction/index.d.ts.map +1 -1
  89. package/dist/plugins/runAction/index.js +12 -8
  90. package/dist/plugins/runAction/schemas.d.ts +1 -0
  91. package/dist/plugins/runAction/schemas.d.ts.map +1 -1
  92. package/dist/plugins/runAction/schemas.js +4 -2
  93. package/dist/resolvers/connectionId.d.ts +9 -0
  94. package/dist/resolvers/connectionId.d.ts.map +1 -0
  95. package/dist/resolvers/connectionId.js +42 -0
  96. package/dist/resolvers/index.d.ts +5 -1
  97. package/dist/resolvers/index.d.ts.map +1 -1
  98. package/dist/resolvers/index.js +6 -1
  99. package/dist/resolvers/inputFieldKey.d.ts +1 -1
  100. package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
  101. package/dist/resolvers/inputFieldKey.js +2 -2
  102. package/dist/resolvers/inputs.d.ts +1 -1
  103. package/dist/resolvers/inputs.d.ts.map +1 -1
  104. package/dist/resolvers/inputs.js +4 -4
  105. package/dist/schemas/Connection.d.ts +29 -0
  106. package/dist/schemas/Connection.d.ts.map +1 -0
  107. package/dist/schemas/{Auth.js → Connection.js} +5 -7
  108. package/dist/sdk.d.ts +29 -7
  109. package/dist/sdk.d.ts.map +1 -1
  110. package/dist/sdk.js +12 -5
  111. package/dist/sdk.test.js +9 -8
  112. package/dist/services/implementations.d.ts +6 -6
  113. package/dist/services/implementations.d.ts.map +1 -1
  114. package/dist/services/implementations.js +10 -10
  115. package/dist/types/domain.d.ts +4 -4
  116. package/dist/types/domain.d.ts.map +1 -1
  117. package/dist/types/properties.d.ts +5 -1
  118. package/dist/types/properties.d.ts.map +1 -1
  119. package/dist/types/properties.js +4 -2
  120. package/dist/types/sdk.d.ts +12 -9
  121. package/dist/types/sdk.d.ts.map +1 -1
  122. package/package.json +2 -2
  123. package/dist/plugins/findFirstAuthentication/index.d.ts +0 -21
  124. package/dist/plugins/findFirstAuthentication/index.d.ts.map +0 -1
  125. package/dist/plugins/findFirstAuthentication/index.js +0 -36
  126. package/dist/plugins/findFirstAuthentication/index.test.d.ts.map +0 -1
  127. package/dist/plugins/findFirstAuthentication/schemas.d.ts +0 -21
  128. package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +0 -1
  129. package/dist/plugins/findFirstAuthentication/schemas.js +0 -8
  130. package/dist/plugins/findUniqueAuthentication/index.d.ts +0 -21
  131. package/dist/plugins/findUniqueAuthentication/index.d.ts.map +0 -1
  132. package/dist/plugins/findUniqueAuthentication/index.js +0 -39
  133. package/dist/plugins/findUniqueAuthentication/index.test.d.ts.map +0 -1
  134. package/dist/plugins/findUniqueAuthentication/schemas.d.ts +0 -21
  135. package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +0 -1
  136. package/dist/plugins/findUniqueAuthentication/schemas.js +0 -8
  137. package/dist/plugins/getAuthentication/index.d.ts +0 -21
  138. package/dist/plugins/getAuthentication/index.d.ts.map +0 -1
  139. package/dist/plugins/getAuthentication/index.js +0 -29
  140. package/dist/plugins/getAuthentication/index.test.d.ts.map +0 -1
  141. package/dist/plugins/getAuthentication/schemas.d.ts +0 -7
  142. package/dist/plugins/getAuthentication/schemas.d.ts.map +0 -1
  143. package/dist/plugins/getAuthentication/schemas.js +0 -1
  144. package/dist/plugins/listAuthentications/index.d.ts +0 -24
  145. package/dist/plugins/listAuthentications/index.d.ts.map +0 -1
  146. package/dist/plugins/listAuthentications/index.test.d.ts.map +0 -1
  147. package/dist/plugins/listAuthentications/schemas.d.ts.map +0 -1
  148. package/dist/plugins/listAuthentications/schemas.js +0 -32
  149. package/dist/resolvers/authenticationId.d.ts +0 -9
  150. package/dist/resolvers/authenticationId.d.ts.map +0 -1
  151. package/dist/resolvers/authenticationId.js +0 -42
  152. package/dist/schemas/Auth.d.ts +0 -55
  153. package/dist/schemas/Auth.d.ts.map +0 -1
  154. /package/dist/plugins/{findFirstAuthentication → findFirstConnection}/index.test.d.ts +0 -0
  155. /package/dist/plugins/{findUniqueAuthentication → findUniqueConnection}/index.test.d.ts +0 -0
  156. /package/dist/plugins/{getAuthentication → getConnection}/index.test.d.ts +0 -0
  157. /package/dist/plugins/{listAuthentications → listConnections}/index.test.d.ts +0 -0
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var zod = require('zod');
4
4
  var apps = require('@zapier/zapier-sdk-core/v0/schemas/apps');
5
- var authentications = require('@zapier/zapier-sdk-core/v0/schemas/authentications');
5
+ var connections = require('@zapier/zapier-sdk-core/v0/schemas/connections');
6
6
  var clientCredentials = require('@zapier/zapier-sdk-core/v0/schemas/client-credentials');
7
7
  var promises = require('timers/promises');
8
8
  var os = require('os');
@@ -84,7 +84,8 @@ var ActionTypePropertySchema = zod.z.enum([
84
84
  "filter"
85
85
  ]).describe("Action type that matches the action's defined type");
86
86
  var ActionKeyPropertySchema = zod.z.string().min(1).describe("Action key to execute");
87
- var AuthenticationIdPropertySchema = zod.z.union([zod.z.string(), zod.z.number().int().positive()]).describe("Authentication ID to use for this action");
87
+ var ConnectionIdPropertySchema = zod.z.union([zod.z.string(), zod.z.number().int().positive()]).describe("Connection ID to use for this action");
88
+ var AuthenticationIdPropertySchema = ConnectionIdPropertySchema;
88
89
  var InputsPropertySchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input parameters for the action");
89
90
  var LimitPropertySchema = zod.z.number().int().min(1).max(MAX_PAGE_LIMIT).default(50).describe("Maximum number of items to return");
90
91
  var OffsetPropertySchema = zod.z.number().int().min(0).default(0).describe("Number of items to skip for pagination");
@@ -231,14 +232,18 @@ HTTP Status: ${error.statusCode}`;
231
232
  }
232
233
  var ActionExecutionInputSchema = zod.z.object({
233
234
  inputs: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
235
+ connectionId: ConnectionIdPropertySchema.optional(),
236
+ /** @deprecated Use connectionId instead */
234
237
  authenticationId: AuthenticationIdPropertySchema.optional(),
235
238
  timeoutMs: ActionTimeoutMsPropertySchema
236
239
  }).describe(
237
240
  "Execute an action with the given inputs for the bound app, as an alternative to runAction"
238
241
  );
239
242
  var AppFactoryInputSchema = zod.z.object({
240
- authenticationId: AuthenticationIdPropertySchema
241
- }).describe("Bind an authentication ID to an app");
243
+ connectionId: ConnectionIdPropertySchema.optional(),
244
+ /** @deprecated Use connectionId instead */
245
+ authenticationId: AuthenticationIdPropertySchema.optional()
246
+ }).describe("Bind a connection ID to an app");
242
247
  function getStringProperty(obj, key) {
243
248
  if (typeof obj === "object" && obj !== null && key in obj) {
244
249
  const value = obj[key];
@@ -271,13 +276,14 @@ function createActionFunction(appKey, actionType, actionKey, options, pinnedAuth
271
276
  const { sdk } = options;
272
277
  const {
273
278
  inputs,
279
+ connectionId: providedConnectionId,
274
280
  authenticationId: providedAuthenticationId,
275
281
  timeoutMs
276
282
  } = actionOptions;
277
- const authenticationId = pinnedAuthId ?? providedAuthenticationId;
278
- if (!authenticationId) {
283
+ const resolvedConnectionId = pinnedAuthId ?? providedConnectionId ?? providedAuthenticationId;
284
+ if (!resolvedConnectionId) {
279
285
  throw new ZapierValidationError(
280
- `Authentication ID is required. Either use the factory pattern: sdk.apps.${appKey}({ authenticationId }) or provide authenticationId in the action call.`
286
+ `Connection ID is required. Either use the factory pattern: sdk.apps.${appKey}({ connectionId }) or provide connectionId in the action call.`
281
287
  );
282
288
  }
283
289
  return sdk.runAction({
@@ -285,7 +291,7 @@ function createActionFunction(appKey, actionType, actionKey, options, pinnedAuth
285
291
  actionType,
286
292
  actionKey,
287
293
  inputs,
288
- authenticationId,
294
+ connectionId: resolvedConnectionId,
289
295
  timeoutMs
290
296
  });
291
297
  };
@@ -294,15 +300,15 @@ function createActionTypeProxy(appKey, actionType, options, pinnedAuthId) {
294
300
  if (actionType === "fetch") {
295
301
  return async (url, init) => {
296
302
  const { sdk } = options;
297
- const authenticationId = pinnedAuthId ?? init?.authenticationId;
298
- if (!authenticationId) {
303
+ const resolvedConnectionId = pinnedAuthId ?? init?.connectionId ?? init?.authenticationId;
304
+ if (!resolvedConnectionId) {
299
305
  throw new ZapierValidationError(
300
- `Authentication ID is required for fetch. Either use the factory pattern: sdk.apps.${appKey}({ authenticationId }).fetch(...) or provide authenticationId in the fetch call.`
306
+ `Connection ID is required for fetch. Either use the factory pattern: sdk.apps.${appKey}({ connectionId }).fetch(...) or provide connectionId in the fetch call.`
301
307
  );
302
308
  }
303
309
  return sdk.fetch(url, {
304
310
  ...init,
305
- authenticationId
311
+ connectionId: resolvedConnectionId
306
312
  });
307
313
  };
308
314
  }
@@ -344,11 +350,13 @@ function createPinnedAppProxy(appKey, options, pinnedAuthId) {
344
350
  }
345
351
  function createAppProxy(appKey, options) {
346
352
  const appFactory = (factoryOptions) => {
347
- return createPinnedAppProxy(
348
- appKey,
349
- options,
350
- factoryOptions.authenticationId
351
- );
353
+ const resolvedConnectionId = factoryOptions.connectionId ?? factoryOptions.authenticationId;
354
+ if (!resolvedConnectionId) {
355
+ throw new ZapierValidationError(
356
+ `Connection ID is required. Use sdk.apps.${appKey}({ connectionId: "..." })`
357
+ );
358
+ }
359
+ return createPinnedAppProxy(appKey, options, resolvedConnectionId);
352
360
  };
353
361
  return new Proxy(appFactory, {
354
362
  get(_, actionType) {
@@ -380,7 +388,8 @@ var appsPlugin = ({ sdk }) => {
380
388
  packages: ["sdk"],
381
389
  type: "function",
382
390
  inputSchema: AppFactoryInputSchema,
383
- returnType: "AppProxy"
391
+ returnType: "AppProxy",
392
+ deprecatedParameters: ["authenticationId"]
384
393
  },
385
394
  "apps.{appKey}.{actionType}.{actionKey}": {
386
395
  categories: ["app"],
@@ -388,7 +397,8 @@ var appsPlugin = ({ sdk }) => {
388
397
  type: "list",
389
398
  inputSchema: ActionExecutionInputSchema,
390
399
  itemType: "ActionResult",
391
- outputSchema: ActionResultItemSchema
400
+ outputSchema: ActionResultItemSchema,
401
+ deprecatedParameters: ["authenticationId"]
392
402
  }
393
403
  }
394
404
  }
@@ -408,6 +418,8 @@ var FetchInitSchema = zod.z.object({
408
418
  ]).optional().describe(
409
419
  "Request body \u2014 plain objects and JSON strings are auto-detected and Content-Type is set accordingly"
410
420
  ),
421
+ connectionId: ConnectionIdPropertySchema.optional(),
422
+ /** @deprecated Use connectionId instead */
411
423
  authenticationId: AuthenticationIdPropertySchema.optional(),
412
424
  callbackUrl: zod.z.string().optional().describe("URL to send async response to (makes request async)")
413
425
  }).optional().describe(
@@ -479,7 +491,14 @@ var fetchPlugin = ({ context }) => {
479
491
  const startTime = Date.now();
480
492
  const isNested = init?._telemetry?.isNested === true;
481
493
  try {
482
- const { authenticationId, callbackUrl, _telemetry, ...fetchInit } = init || {};
494
+ const {
495
+ connectionId,
496
+ authenticationId,
497
+ callbackUrl,
498
+ _telemetry,
499
+ ...fetchInit
500
+ } = init || {};
501
+ const resolvedConnectionId = connectionId ?? authenticationId;
483
502
  const relayPath = transformUrlToRelayPath(url);
484
503
  const headers = normalizeHeaders(
485
504
  fetchInit.headers
@@ -495,10 +514,10 @@ var fetchPlugin = ({ context }) => {
495
514
  headers["Content-Type"] = inferred;
496
515
  }
497
516
  }
498
- if (authenticationId) {
517
+ if (resolvedConnectionId) {
499
518
  headers["X-Relay-Authentication-Id"] = coerceToNumericId(
500
- "authenticationId",
501
- authenticationId
519
+ "connectionId",
520
+ resolvedConnectionId
502
521
  ).toString();
503
522
  }
504
523
  if (callbackUrl) {
@@ -540,14 +559,15 @@ var fetchPlugin = ({ context }) => {
540
559
  context: {
541
560
  meta: {
542
561
  fetch: {
543
- description: "Make authenticated HTTP requests to any API through Zapier's Relay service. Pass an authenticationId to automatically inject the user's stored credentials (OAuth tokens, API keys, etc.) into the outgoing request. Mirrors the native fetch(url, init?) signature with additional Zapier-specific options.",
562
+ description: "Make authenticated HTTP requests to any API through Zapier's Relay service. Pass a connectionId to automatically inject the user's stored credentials (OAuth tokens, API keys, etc.) into the outgoing request. Mirrors the native fetch(url, init?) signature with additional Zapier-specific options.",
544
563
  packages: ["sdk", "cli", "mcp"],
545
564
  categories: ["http"],
546
565
  returnType: "Response",
547
566
  inputParameters: [
548
567
  { name: "url", schema: FetchUrlSchema },
549
568
  { name: "init", schema: FetchInitSchema }
550
- ]
569
+ ],
570
+ deprecatedParameters: ["authenticationId"]
551
571
  }
552
572
  }
553
573
  }
@@ -935,9 +955,9 @@ var ListAppsSchema = apps.ListAppsQuerySchema.omit({
935
955
  ),
936
956
  // Override pageSize to make optional (base has default value)
937
957
  pageSize: zod.z.number().min(1).optional().describe("Number of apps per page"),
938
- // SDK specific property for pagination/iterator helpers
958
+ // SDK specific property for pagination/iterable helpers
939
959
  maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
940
- // SDK specific property for pagination/iterator helpers
960
+ // SDK specific property for pagination/iterable helpers
941
961
  cursor: zod.z.string().optional().describe("Cursor to start from")
942
962
  }).merge(TelemetryMarkerSchema).describe("List all available apps with optional filtering");
943
963
 
@@ -1546,8 +1566,8 @@ var actionKeyResolver = {
1546
1566
  })
1547
1567
  };
1548
1568
 
1549
- // src/resolvers/authenticationId.ts
1550
- var authenticationIdResolver = {
1569
+ // src/resolvers/connectionId.ts
1570
+ var connectionIdResolver = {
1551
1571
  type: "dynamic",
1552
1572
  depends: ["appKey"],
1553
1573
  fetch: async (sdk, resolvedParams) => {
@@ -1557,34 +1577,36 @@ var authenticationIdResolver = {
1557
1577
  if (resolvedParams.appKey) {
1558
1578
  listOptions.appKey = resolvedParams.appKey;
1559
1579
  }
1560
- const myAuths = await sdk.listAuthentications({
1580
+ const myConnections = await sdk.listConnections({
1561
1581
  ...listOptions,
1562
1582
  owner: "me"
1563
1583
  });
1564
- const allAuths = await sdk.listAuthentications(listOptions);
1565
- const otherAuths = allAuths.data.filter(
1566
- (auth) => !myAuths.data.some((myAuth) => myAuth.id === auth.id)
1584
+ const allConnections = await sdk.listConnections(listOptions);
1585
+ const otherConnections = allConnections.data.filter(
1586
+ (connection) => !myConnections.data.some(
1587
+ (myConnection) => myConnection.id === connection.id
1588
+ )
1567
1589
  );
1568
- return [...myAuths.data, ...otherAuths];
1590
+ return [...myConnections.data, ...otherConnections];
1569
1591
  },
1570
- prompt: (auths, params) => ({
1592
+ prompt: (connections, params) => ({
1571
1593
  type: "list",
1572
- name: "authenticationId",
1573
- message: params.appKey ? `Select authentication for ${params.appKey}:` : "Select authentication:",
1594
+ name: "connectionId",
1595
+ message: params.appKey ? `Select connection for ${params.appKey}:` : "Select connection:",
1574
1596
  choices: [
1575
- ...auths.map((auth) => ({
1576
- name: `${auth.title || auth.label || "Authentication"} (ID: ${auth.id})`,
1577
- value: auth.id
1597
+ ...connections.map((connection) => ({
1598
+ name: `${connection.title || connection.label || "Connection"} (ID: ${connection.id})`,
1599
+ value: connection.id
1578
1600
  })),
1579
1601
  {
1580
- name: "\u2197 Skip authentication (may fail)",
1602
+ name: "-> Skip connection (may fail)",
1581
1603
  value: null
1582
1604
  }
1583
1605
  ]
1584
1606
  })
1585
1607
  };
1586
- var authenticationIdGenericResolver = {
1587
- ...authenticationIdResolver,
1608
+ var connectionIdGenericResolver = {
1609
+ ...connectionIdResolver,
1588
1610
  depends: []
1589
1611
  };
1590
1612
 
@@ -1608,13 +1630,13 @@ function makeFieldsOptional(fields) {
1608
1630
  }
1609
1631
  var inputsResolver = {
1610
1632
  type: "fields",
1611
- depends: ["appKey", "actionKey", "actionType", "authenticationId"],
1633
+ depends: ["appKey", "actionKey", "actionType", "connectionId"],
1612
1634
  fetch: async (sdk, resolvedParams) => {
1613
1635
  const fieldsResponse = await sdk.listInputFields({
1614
1636
  appKey: resolvedParams.appKey,
1615
1637
  actionKey: resolvedParams.actionKey,
1616
1638
  actionType: resolvedParams.actionType,
1617
- authenticationId: resolvedParams.authenticationId,
1639
+ connectionId: resolvedParams.connectionId,
1618
1640
  inputs: resolvedParams.inputs
1619
1641
  // Pass along currently resolved inputs
1620
1642
  });
@@ -1623,13 +1645,13 @@ var inputsResolver = {
1623
1645
  };
1624
1646
  var inputsAllOptionalResolver = {
1625
1647
  type: "fields",
1626
- depends: ["appKey", "actionKey", "actionType", "authenticationId"],
1648
+ depends: ["appKey", "actionKey", "actionType", "connectionId"],
1627
1649
  fetch: async (sdk, resolvedParams) => {
1628
1650
  const fieldsResponse = await sdk.listInputFields({
1629
1651
  appKey: resolvedParams.appKey,
1630
1652
  actionKey: resolvedParams.actionKey,
1631
1653
  actionType: resolvedParams.actionType,
1632
- authenticationId: resolvedParams.authenticationId,
1654
+ connectionId: resolvedParams.connectionId,
1633
1655
  inputs: resolvedParams.inputs
1634
1656
  // Pass along currently resolved inputs
1635
1657
  });
@@ -1656,13 +1678,13 @@ function flattenRootFieldset(rootFieldset) {
1656
1678
  }
1657
1679
  var inputFieldKeyResolver = {
1658
1680
  type: "dynamic",
1659
- depends: ["appKey", "actionKey", "actionType", "authenticationId"],
1681
+ depends: ["appKey", "actionKey", "actionType", "connectionId"],
1660
1682
  fetch: async (sdk, resolvedParams) => {
1661
1683
  const fieldsResponse = await sdk.listInputFields({
1662
1684
  appKey: resolvedParams.appKey,
1663
1685
  actionKey: resolvedParams.actionKey,
1664
1686
  actionType: resolvedParams.actionType,
1665
- authenticationId: resolvedParams.authenticationId,
1687
+ connectionId: resolvedParams.connectionId,
1666
1688
  inputs: resolvedParams.inputs
1667
1689
  // Pass along currently resolved inputs
1668
1690
  });
@@ -1794,6 +1816,8 @@ var ListInputFieldsSchema = zod.z.object({
1794
1816
  appKey: AppKeyPropertySchema,
1795
1817
  actionType: ActionTypePropertySchema,
1796
1818
  actionKey: ActionKeyPropertySchema,
1819
+ connectionId: ConnectionIdPropertySchema.nullable().optional(),
1820
+ /** @deprecated Use connectionId instead */
1797
1821
  authenticationId: AuthenticationIdPropertySchema.nullable().optional(),
1798
1822
  inputs: InputsPropertySchema.optional().describe(
1799
1823
  "Current input values that may affect available fields"
@@ -1926,7 +1950,7 @@ async function fetchImplementationNeeds({
1926
1950
  selectedApi,
1927
1951
  action,
1928
1952
  actionType,
1929
- authenticationId,
1953
+ connectionId,
1930
1954
  inputs
1931
1955
  }) {
1932
1956
  const request = {
@@ -1935,10 +1959,10 @@ async function fetchImplementationNeeds({
1935
1959
  type_of: actionType,
1936
1960
  params: inputs || {}
1937
1961
  };
1938
- if (authenticationId !== null) {
1962
+ if (connectionId !== null) {
1939
1963
  request.authentication_id = coerceToNumericId(
1940
1964
  "authentication_id",
1941
- authenticationId
1965
+ connectionId
1942
1966
  );
1943
1967
  }
1944
1968
  const response = await api.post(
@@ -1956,7 +1980,7 @@ async function fetchImplementationChoices({
1956
1980
  api,
1957
1981
  actionId,
1958
1982
  inputFieldId,
1959
- authenticationId,
1983
+ connectionId,
1960
1984
  inputs,
1961
1985
  page
1962
1986
  }) {
@@ -1966,10 +1990,10 @@ async function fetchImplementationChoices({
1966
1990
  page,
1967
1991
  params: inputs || {}
1968
1992
  };
1969
- if (authenticationId !== null) {
1993
+ if (connectionId !== null) {
1970
1994
  request.authentication_id = coerceToNumericId(
1971
1995
  "authentication_id",
1972
- authenticationId
1996
+ connectionId
1973
1997
  );
1974
1998
  }
1975
1999
  const response = await api.post(
@@ -2090,9 +2114,11 @@ var listInputFieldsPlugin = ({ sdk, context }) => {
2090
2114
  appKey,
2091
2115
  actionKey,
2092
2116
  actionType,
2093
- authenticationId = null,
2117
+ connectionId,
2118
+ authenticationId,
2094
2119
  inputs
2095
2120
  } = options;
2121
+ const resolvedConnectionId = connectionId ?? authenticationId ?? null;
2096
2122
  const selectedApi = await getVersionedImplementationId(appKey);
2097
2123
  if (!selectedApi) {
2098
2124
  throw new ZapierConfigurationError(
@@ -2110,7 +2136,7 @@ var listInputFieldsPlugin = ({ sdk, context }) => {
2110
2136
  selectedApi,
2111
2137
  action: action.key,
2112
2138
  actionType,
2113
- authenticationId,
2139
+ connectionId: resolvedConnectionId,
2114
2140
  inputs
2115
2141
  });
2116
2142
  const rootFieldset = transformNeedsToFields(needsData.needs || []);
@@ -2141,68 +2167,78 @@ var listInputFieldsPlugin = ({ sdk, context }) => {
2141
2167
  appKey: appKeyResolver,
2142
2168
  actionType: actionTypeResolver,
2143
2169
  actionKey: actionKeyResolver,
2144
- authenticationId: authenticationIdResolver,
2170
+ connectionId: connectionIdResolver,
2145
2171
  inputs: inputsAllOptionalResolver
2146
- }
2172
+ },
2173
+ deprecatedParameters: ["authenticationId"]
2147
2174
  }
2148
2175
  }
2149
2176
  }
2150
2177
  };
2151
2178
  };
2152
- var ListAuthenticationsQuerySchema = authentications.ListAuthenticationsQuerySchema.omit(
2153
- {
2154
- offset: true
2155
- }
2156
- ).extend({
2179
+ var ListConnectionsQuerySchema = connections.ListConnectionsQuerySchema.omit({
2180
+ offset: true,
2181
+ // Omit snake_case fields, we'll add camelCase versions
2182
+ app_key: true,
2183
+ connection_ids: true,
2184
+ account_id: true,
2185
+ is_expired: true,
2186
+ page_size: true
2187
+ }).extend({
2157
2188
  // Override appKey with our custom schema (array type, different description)
2158
2189
  appKey: AppKeyPropertySchema.optional().describe(
2159
- "App key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github')"
2190
+ "App key of connections to list (e.g., 'SlackCLIAPI' or slug like 'github')"
2160
2191
  ),
2161
- // Override authenticationIds to be an array instead of comma-separated string
2162
- authenticationIds: zod.z.array(zod.z.string()).optional().describe("List of authentication IDs to filter by"),
2163
- // Override pageSize to make optional (needs to be fixed in `zapier-sdk-core`)
2164
- pageSize: zod.z.number().min(1).optional().describe("Number of authentications per page"),
2165
- // SDK specific property for pagination/iterator helpers
2192
+ // Override connectionIds to be an array instead of comma-separated string
2193
+ connectionIds: zod.z.array(zod.z.string()).optional().describe("List of connection IDs to filter by"),
2194
+ /** @deprecated Use connectionIds instead */
2195
+ authenticationIds: zod.z.array(zod.z.string()).optional().describe(
2196
+ "List of authentication IDs to filter by (deprecated, use connectionIds)"
2197
+ ),
2198
+ // camelCase account ID
2199
+ accountId: zod.z.string().optional().describe("Account ID to filter by"),
2200
+ // camelCase isExpired
2201
+ isExpired: zod.z.boolean().optional().describe("Filter by expired status"),
2202
+ // Override pageSize to make optional
2203
+ pageSize: zod.z.number().min(1).optional().describe("Number of connections per page"),
2204
+ // SDK specific property for pagination/iterable helpers
2166
2205
  maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
2167
- // SDK specific property for pagination/iterator helpers
2206
+ // SDK specific property for pagination/iterable helpers
2168
2207
  cursor: zod.z.string().optional().describe("Cursor to start from")
2169
- }).merge(TelemetryMarkerSchema).describe("List available authentications with optional filtering");
2170
- var AuthenticationItemSchema = withFormatter(
2171
- authentications.AuthenticationItemSchema,
2172
- {
2173
- format: (item) => {
2174
- const details = [];
2175
- if (item.identifier) {
2176
- details.push({
2177
- text: `Identifier: ${item.identifier}`,
2178
- style: "accent"
2179
- });
2180
- }
2208
+ }).merge(TelemetryMarkerSchema).describe("List available connections with optional filtering");
2209
+ var ConnectionItemSchema = withFormatter(connections.ConnectionItemSchema, {
2210
+ format: (item) => {
2211
+ const details = [];
2212
+ if (item.identifier) {
2181
2213
  details.push({
2182
- text: `Account: ${item.account_id} | Private: ${item.is_private} | Shared: ${item.shared_with_all}`,
2183
- style: "dim"
2214
+ text: `Identifier: ${item.identifier}`,
2215
+ style: "accent"
2184
2216
  });
2185
- if (item.marked_stale_at) {
2186
- details.push({
2187
- text: `\u26A0\uFE0F Marked stale: ${new Date(item.marked_stale_at).toLocaleDateString()}`,
2188
- style: "warning"
2189
- });
2190
- }
2191
- return {
2192
- title: item.title || `Authentication ${item.id}`,
2193
- id: item.id?.toString(),
2194
- details
2195
- };
2196
2217
  }
2218
+ details.push({
2219
+ text: `Account: ${item.account_id} | Private: ${item.is_private} | Shared: ${item.shared_with_all}`,
2220
+ style: "dim"
2221
+ });
2222
+ if (item.marked_stale_at) {
2223
+ details.push({
2224
+ text: `Warning: Marked stale: ${new Date(item.marked_stale_at).toLocaleDateString()}`,
2225
+ style: "warning"
2226
+ });
2227
+ }
2228
+ return {
2229
+ title: item.title || `Connection ${item.id}`,
2230
+ id: item.id?.toString(),
2231
+ details
2232
+ };
2197
2233
  }
2198
- );
2234
+ });
2199
2235
 
2200
- // src/plugins/listAuthentications/index.ts
2201
- var listAuthenticationsPlugin = ({ context }) => {
2202
- async function listAuthenticationsPage(options) {
2236
+ // src/plugins/listConnections/index.ts
2237
+ var listConnectionsPlugin = ({ context }) => {
2238
+ async function listConnectionsPage(options) {
2203
2239
  const { api, getVersionedImplementationId } = context;
2204
2240
  const searchParams = {
2205
- pageSize: options.pageSize.toString()
2241
+ page_size: options.pageSize.toString()
2206
2242
  };
2207
2243
  if (options.appKey) {
2208
2244
  const implementationId = await getVersionedImplementationId(
@@ -2210,11 +2246,14 @@ var listAuthenticationsPlugin = ({ context }) => {
2210
2246
  );
2211
2247
  if (implementationId) {
2212
2248
  const [versionlessSelectedApi] = splitVersionedKey(implementationId);
2213
- searchParams.appKey = versionlessSelectedApi;
2249
+ searchParams.app_key = versionlessSelectedApi;
2250
+ } else {
2251
+ searchParams.app_key = options.appKey;
2214
2252
  }
2215
2253
  }
2216
- if (options.authenticationIds && options.authenticationIds.length > 0) {
2217
- searchParams.authenticationIds = options.authenticationIds.join(",");
2254
+ const resolvedConnectionIds = options.connectionIds ?? options.authenticationIds;
2255
+ if (resolvedConnectionIds && resolvedConnectionIds.length > 0) {
2256
+ searchParams.connection_ids = resolvedConnectionIds.join(",");
2218
2257
  }
2219
2258
  if (options.search) {
2220
2259
  searchParams.search = options.search;
@@ -2223,31 +2262,31 @@ var listAuthenticationsPlugin = ({ context }) => {
2223
2262
  searchParams.title = options.title;
2224
2263
  }
2225
2264
  if (options.accountId) {
2226
- searchParams.accountId = options.accountId;
2265
+ searchParams.account_id = options.accountId;
2227
2266
  }
2228
2267
  if (options.owner) {
2229
2268
  searchParams.owner = options.owner;
2230
2269
  }
2231
2270
  if (options.isExpired !== void 0) {
2232
- searchParams.isExpired = options.isExpired.toString();
2271
+ searchParams.is_expired = options.isExpired.toString();
2233
2272
  }
2234
2273
  if (options.cursor) {
2235
2274
  searchParams.offset = options.cursor;
2236
2275
  }
2237
2276
  const response = await api.get(
2238
- "/api/v0/authentications",
2277
+ "/api/v0/connections",
2239
2278
  {
2240
2279
  searchParams,
2241
2280
  customErrorHandler: ({ status }) => {
2242
2281
  if (status === 401) {
2243
2282
  return new ZapierAuthenticationError(
2244
- `Authentication failed. Your token may not have permission to access authentications or may be expired. (HTTP ${status})`,
2283
+ `Authentication failed. Your token may not have permission to access connections or may be expired. (HTTP ${status})`,
2245
2284
  { statusCode: status }
2246
2285
  );
2247
2286
  }
2248
2287
  if (status === 403) {
2249
2288
  return new ZapierAuthenticationError(
2250
- `Access forbidden. Your token may not have the required scopes to list authentications. (HTTP ${status})`,
2289
+ `Access forbidden. Your token may not have the required scopes to list connections. (HTTP ${status})`,
2251
2290
  { statusCode: status }
2252
2291
  );
2253
2292
  }
@@ -2258,26 +2297,27 @@ var listAuthenticationsPlugin = ({ context }) => {
2258
2297
  );
2259
2298
  return response;
2260
2299
  }
2261
- const methodName = stripPageSuffix(listAuthenticationsPage.name);
2262
- const listAuthenticationsDefinition = createPaginatedFunction(
2263
- listAuthenticationsPage,
2264
- ListAuthenticationsQuerySchema,
2300
+ const methodName = stripPageSuffix(listConnectionsPage.name);
2301
+ const listConnectionsDefinition = createPaginatedFunction(
2302
+ listConnectionsPage,
2303
+ ListConnectionsQuerySchema,
2265
2304
  createTelemetryCallback(context.eventEmission.emitMethodCalled, methodName),
2266
2305
  methodName
2267
2306
  );
2268
2307
  return {
2269
- listAuthentications: listAuthenticationsDefinition,
2308
+ listConnections: listConnectionsDefinition,
2270
2309
  context: {
2271
2310
  meta: {
2272
- listAuthentications: {
2273
- categories: ["authentication"],
2311
+ listConnections: {
2312
+ categories: ["connection"],
2274
2313
  type: "list",
2275
- itemType: "Authentication",
2276
- inputSchema: ListAuthenticationsQuerySchema,
2277
- outputSchema: AuthenticationItemSchema,
2314
+ itemType: "Connection",
2315
+ inputSchema: ListConnectionsQuerySchema,
2316
+ outputSchema: ConnectionItemSchema,
2278
2317
  resolvers: {
2279
2318
  appKey: appKeyResolver
2280
- }
2319
+ },
2320
+ deprecatedParameters: ["authenticationIds"]
2281
2321
  }
2282
2322
  }
2283
2323
  }
@@ -2288,9 +2328,9 @@ var ListClientCredentialsQuerySchema = clientCredentials.ListClientCredentialsQu
2288
2328
  }).extend({
2289
2329
  // Override pageSize to make optional
2290
2330
  pageSize: zod.z.number().min(1).optional().describe("Number of credentials per page"),
2291
- // SDK specific property for pagination/iterator helpers
2331
+ // SDK specific property for pagination/iterable helpers
2292
2332
  maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
2293
- // SDK specific property for pagination/iterator helpers
2333
+ // SDK specific property for pagination/iterable helpers
2294
2334
  cursor: zod.z.string().optional().describe("Cursor to start from")
2295
2335
  }).merge(TelemetryMarkerSchema).describe("List client credentials for the authenticated user");
2296
2336
  var ClientCredentialsItemSchema = withFormatter(
@@ -2523,11 +2563,11 @@ var GetAppSchema = zod.z.object({
2523
2563
  // src/plugins/getApp/index.ts
2524
2564
  var getAppPlugin = ({ sdk, context }) => {
2525
2565
  async function getApp(options) {
2526
- const appsIterator = sdk.listApps({
2566
+ const appsIterable = sdk.listApps({
2527
2567
  appKeys: [options.appKey],
2528
2568
  _telemetry: { isNested: true }
2529
2569
  }).items();
2530
- for await (const app of appsIterator) {
2570
+ for await (const app of appsIterable) {
2531
2571
  return {
2532
2572
  data: app
2533
2573
  };
@@ -2610,142 +2650,156 @@ var getActionPlugin = ({ sdk, context }) => {
2610
2650
  }
2611
2651
  };
2612
2652
  };
2613
- var getAuthenticationPlugin = ({ context }) => {
2614
- async function getAuthentication(options) {
2653
+ var GetConnectionParamSchema = zod.z.object({
2654
+ connectionId: ConnectionIdPropertySchema.optional(),
2655
+ /** @deprecated Use connectionId instead */
2656
+ authenticationId: ConnectionIdPropertySchema.optional()
2657
+ });
2658
+
2659
+ // src/plugins/getConnection/index.ts
2660
+ var getConnectionPlugin = ({ context }) => {
2661
+ async function getConnection(options) {
2615
2662
  const { api } = context;
2663
+ const resolvedConnectionId = options.connectionId ?? options.authenticationId;
2664
+ if (!resolvedConnectionId) {
2665
+ throw new Error("connectionId is required");
2666
+ }
2616
2667
  return await api.get(
2617
- `/api/v0/authentications/${encodeURIComponent(options.authenticationId)}`
2668
+ `/api/v0/connections/${encodeURIComponent(String(resolvedConnectionId))}`
2618
2669
  );
2619
2670
  }
2620
- const getAuthenticationDefinition = createFunction(
2621
- getAuthentication,
2622
- authentications.GetAuthenticationParamSchema,
2671
+ const getConnectionDefinition = createFunction(
2672
+ getConnection,
2673
+ GetConnectionParamSchema,
2623
2674
  createTelemetryCallback(
2624
2675
  context.eventEmission.emitMethodCalled,
2625
- getAuthentication.name
2676
+ getConnection.name
2626
2677
  )
2627
2678
  );
2628
2679
  return {
2629
- getAuthentication: getAuthenticationDefinition,
2680
+ getConnection: getConnectionDefinition,
2630
2681
  context: {
2631
2682
  meta: {
2632
- getAuthentication: {
2633
- categories: ["authentication"],
2683
+ getConnection: {
2684
+ categories: ["connection"],
2634
2685
  type: "item",
2635
- itemType: "Authentication",
2636
- inputSchema: authentications.GetAuthenticationParamSchema,
2637
- outputSchema: AuthenticationItemSchema,
2686
+ itemType: "Connection",
2687
+ inputSchema: GetConnectionParamSchema,
2688
+ outputSchema: ConnectionItemSchema,
2638
2689
  resolvers: {
2639
- authenticationId: authenticationIdGenericResolver
2640
- }
2690
+ connectionId: connectionIdGenericResolver
2691
+ },
2692
+ deprecatedParameters: ["authenticationId"]
2641
2693
  }
2642
2694
  }
2643
2695
  }
2644
2696
  };
2645
2697
  };
2646
2698
 
2647
- // src/plugins/findFirstAuthentication/schemas.ts
2648
- var FindFirstAuthenticationSchema = ListAuthenticationsQuerySchema.omit({
2649
- authenticationIds: true,
2699
+ // src/plugins/findFirstConnection/schemas.ts
2700
+ var FindFirstConnectionSchema = ListConnectionsQuerySchema.omit({
2701
+ connectionIds: true,
2650
2702
  pageSize: true,
2651
2703
  maxItems: true,
2652
2704
  cursor: true,
2653
2705
  _telemetry: true
2654
- }).describe("Find the first authentication matching the criteria");
2706
+ }).describe("Find the first connection matching the criteria");
2655
2707
 
2656
- // src/plugins/findFirstAuthentication/index.ts
2657
- var findFirstAuthenticationPlugin = ({ sdk, context }) => {
2658
- async function findFirstAuthentication(options = {}) {
2659
- const authsResponse = await sdk.listAuthentications({
2708
+ // src/plugins/findFirstConnection/index.ts
2709
+ var findFirstConnectionPlugin = ({ sdk, context }) => {
2710
+ async function findFirstConnection(options = {}) {
2711
+ const connectionsResponse = await sdk.listConnections({
2660
2712
  ...options,
2661
2713
  maxItems: 1,
2662
2714
  _telemetry: { isNested: true }
2663
2715
  });
2664
- if (authsResponse.data.length === 0) {
2716
+ if (connectionsResponse.data.length === 0) {
2665
2717
  throw new ZapierResourceNotFoundError(
2666
- "No authentication found matching the specified criteria",
2667
- { resourceType: "Authentication" }
2718
+ "No connection found matching the specified criteria",
2719
+ { resourceType: "Connection" }
2668
2720
  );
2669
2721
  }
2670
2722
  return {
2671
- data: authsResponse.data[0]
2723
+ data: connectionsResponse.data[0]
2672
2724
  };
2673
2725
  }
2674
- const findFirstAuthenticationDefinition = createFunction(
2675
- findFirstAuthentication,
2676
- FindFirstAuthenticationSchema,
2726
+ const findFirstConnectionDefinition = createFunction(
2727
+ findFirstConnection,
2728
+ FindFirstConnectionSchema,
2677
2729
  createTelemetryCallback(
2678
2730
  context.eventEmission.emitMethodCalled,
2679
- findFirstAuthentication.name
2731
+ findFirstConnection.name
2680
2732
  )
2681
2733
  );
2682
2734
  return {
2683
- findFirstAuthentication: findFirstAuthenticationDefinition,
2735
+ findFirstConnection: findFirstConnectionDefinition,
2684
2736
  context: {
2685
2737
  meta: {
2686
- findFirstAuthentication: {
2687
- categories: ["authentication"],
2738
+ findFirstConnection: {
2739
+ categories: ["connection"],
2688
2740
  type: "item",
2689
- itemType: "Authentication",
2690
- inputSchema: FindFirstAuthenticationSchema,
2691
- outputSchema: AuthenticationItemSchema
2741
+ itemType: "Connection",
2742
+ inputSchema: FindFirstConnectionSchema,
2743
+ outputSchema: ConnectionItemSchema,
2744
+ deprecatedParameters: ["authenticationIds"]
2692
2745
  }
2693
2746
  }
2694
2747
  }
2695
2748
  };
2696
2749
  };
2697
2750
 
2698
- // src/plugins/findUniqueAuthentication/schemas.ts
2699
- var FindUniqueAuthenticationSchema = ListAuthenticationsQuerySchema.omit({
2700
- authenticationIds: true,
2751
+ // src/plugins/findUniqueConnection/schemas.ts
2752
+ var FindUniqueConnectionSchema = ListConnectionsQuerySchema.omit({
2753
+ connectionIds: true,
2701
2754
  pageSize: true,
2702
2755
  maxItems: true,
2703
2756
  cursor: true,
2704
2757
  _telemetry: true
2705
- }).describe("Find a unique authentication matching the criteria");
2758
+ }).describe("Find a unique connection matching the criteria");
2706
2759
 
2707
- // src/plugins/findUniqueAuthentication/index.ts
2708
- var findUniqueAuthenticationPlugin = ({ sdk, context }) => {
2709
- async function findUniqueAuthentication(options = {}) {
2710
- const authsResponse = await sdk.listAuthentications({
2760
+ // src/plugins/findUniqueConnection/index.ts
2761
+ var findUniqueConnectionPlugin = ({ sdk, context }) => {
2762
+ async function findUniqueConnection(options = {}) {
2763
+ const connectionsResponse = await sdk.listConnections({
2711
2764
  ...options,
2712
2765
  maxItems: 2,
2713
2766
  // Get up to 2 to check for uniqueness
2714
2767
  _telemetry: { isNested: true }
2715
2768
  });
2716
- if (authsResponse.data.length === 0) {
2769
+ if (connectionsResponse.data.length === 0) {
2717
2770
  throw new ZapierResourceNotFoundError(
2718
- "No authentication found matching the specified criteria",
2719
- { resourceType: "Authentication" }
2771
+ "No connection found matching the specified criteria",
2772
+ { resourceType: "Connection" }
2720
2773
  );
2721
2774
  }
2722
- if (authsResponse.data.length > 1) {
2775
+ if (connectionsResponse.data.length > 1) {
2723
2776
  throw new ZapierValidationError(
2724
- "Multiple authentications found matching the specified criteria. Expected exactly one."
2777
+ "Multiple connections found matching the specified criteria. Expected exactly one."
2725
2778
  );
2726
2779
  }
2727
2780
  return {
2728
- data: authsResponse.data[0]
2781
+ data: connectionsResponse.data[0]
2729
2782
  };
2730
2783
  }
2731
- const findUniqueAuthenticationDefinition = createFunction(
2732
- findUniqueAuthentication,
2733
- FindUniqueAuthenticationSchema,
2784
+ const findUniqueConnectionDefinition = createFunction(
2785
+ findUniqueConnection,
2786
+ FindUniqueConnectionSchema,
2734
2787
  createTelemetryCallback(
2735
2788
  context.eventEmission.emitMethodCalled,
2736
- findUniqueAuthentication.name
2789
+ findUniqueConnection.name
2737
2790
  )
2738
2791
  );
2739
2792
  return {
2740
- findUniqueAuthentication: findUniqueAuthenticationDefinition,
2793
+ findUniqueConnection: findUniqueConnectionDefinition,
2741
2794
  context: {
2742
2795
  meta: {
2743
- findUniqueAuthentication: {
2744
- categories: ["authentication"],
2796
+ findUniqueConnection: {
2797
+ categories: ["connection"],
2745
2798
  type: "item",
2746
- itemType: "Authentication",
2747
- inputSchema: FindUniqueAuthenticationSchema,
2748
- outputSchema: AuthenticationItemSchema
2799
+ itemType: "Connection",
2800
+ inputSchema: FindUniqueConnectionSchema,
2801
+ outputSchema: ConnectionItemSchema,
2802
+ deprecatedParameters: ["authenticationIds"]
2749
2803
  }
2750
2804
  }
2751
2805
  }
@@ -2755,7 +2809,9 @@ var RunActionSchema = zod.z.object({
2755
2809
  appKey: AppKeyPropertySchema,
2756
2810
  actionType: ActionTypePropertySchema,
2757
2811
  actionKey: ActionKeyPropertySchema,
2758
- authenticationId: AuthenticationIdPropertySchema.nullable().optional(),
2812
+ connectionId: ConnectionIdPropertySchema.nullable().optional(),
2813
+ /** @deprecated Use connectionId instead */
2814
+ authenticationId: ConnectionIdPropertySchema.nullable().optional(),
2759
2815
  inputs: InputsPropertySchema.optional().describe(
2760
2816
  "Input parameters for the action"
2761
2817
  ),
@@ -2775,7 +2831,7 @@ async function executeAction(actionOptions) {
2775
2831
  actionKey,
2776
2832
  actionType,
2777
2833
  executionOptions,
2778
- authenticationId,
2834
+ connectionId,
2779
2835
  timeoutMs
2780
2836
  } = actionOptions;
2781
2837
  const selectedApi = await context.getVersionedImplementationId(appKey);
@@ -2792,8 +2848,8 @@ async function executeAction(actionOptions) {
2792
2848
  action_type: actionType,
2793
2849
  inputs: executionOptions.inputs || {}
2794
2850
  };
2795
- if (authenticationId !== null && authenticationId !== void 0) {
2796
- runRequestData.authentication_id = authenticationId;
2851
+ if (connectionId !== null && connectionId !== void 0) {
2852
+ runRequestData.authentication_id = connectionId;
2797
2853
  }
2798
2854
  const runRequest = {
2799
2855
  data: runRequestData
@@ -2821,10 +2877,12 @@ var runActionPlugin = ({ sdk, context }) => {
2821
2877
  appKey,
2822
2878
  actionKey,
2823
2879
  actionType,
2880
+ connectionId,
2824
2881
  authenticationId,
2825
2882
  inputs = {},
2826
2883
  timeoutMs
2827
2884
  } = options;
2885
+ const resolvedConnectionId = connectionId ?? authenticationId;
2828
2886
  const actionData = await sdk.getAction({
2829
2887
  appKey,
2830
2888
  actionKey,
@@ -2847,7 +2905,7 @@ var runActionPlugin = ({ sdk, context }) => {
2847
2905
  actionKey,
2848
2906
  actionType,
2849
2907
  executionOptions: { inputs },
2850
- authenticationId,
2908
+ connectionId: resolvedConnectionId,
2851
2909
  timeoutMs
2852
2910
  });
2853
2911
  if (result.errors && result.errors.length > 0) {
@@ -2886,9 +2944,10 @@ var runActionPlugin = ({ sdk, context }) => {
2886
2944
  appKey: appKeyResolver,
2887
2945
  actionType: actionTypeResolver,
2888
2946
  actionKey: actionKeyResolver,
2889
- authenticationId: authenticationIdResolver,
2947
+ connectionId: connectionIdResolver,
2890
2948
  inputs: inputsResolver
2891
- }
2949
+ },
2950
+ deprecatedParameters: ["authenticationId"]
2892
2951
  }
2893
2952
  }
2894
2953
  }
@@ -2898,6 +2957,8 @@ var RelayRequestSchema = zod.z.object({
2898
2957
  url: zod.z.string().url().describe("The URL to request (will be proxied through Relay)"),
2899
2958
  method: zod.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional().describe("HTTP method"),
2900
2959
  body: zod.z.any().optional().describe("Request body as a string"),
2960
+ connectionId: ConnectionIdPropertySchema.optional(),
2961
+ /** @deprecated Use connectionId instead */
2901
2962
  authenticationId: AuthenticationIdPropertySchema.optional(),
2902
2963
  callbackUrl: zod.z.string().url().optional().describe("URL to send async response to (makes request async)"),
2903
2964
  headers: zod.z.union([
@@ -2923,12 +2984,21 @@ function resetDeprecationWarnings() {
2923
2984
  var requestPlugin = ({ sdk, context }) => {
2924
2985
  async function request(options) {
2925
2986
  logDeprecation("request() is deprecated. Use fetch() instead.");
2926
- const { url, method, body, headers, authenticationId, callbackUrl } = options;
2927
- return sdk.fetch(url, {
2987
+ const {
2988
+ url,
2928
2989
  method,
2929
2990
  body,
2930
2991
  headers,
2992
+ connectionId,
2931
2993
  authenticationId,
2994
+ callbackUrl
2995
+ } = options;
2996
+ const resolvedConnectionId = connectionId ?? authenticationId;
2997
+ return sdk.fetch(url, {
2998
+ method,
2999
+ body,
3000
+ headers,
3001
+ connectionId: resolvedConnectionId,
2932
3002
  callbackUrl,
2933
3003
  _telemetry: { isNested: true }
2934
3004
  });
@@ -2949,7 +3019,8 @@ var requestPlugin = ({ sdk, context }) => {
2949
3019
  packages: ["cli", "mcp"],
2950
3020
  categories: ["http", "deprecated"],
2951
3021
  returnType: "Response",
2952
- inputSchema: RelayRequestSchema
3022
+ inputSchema: RelayRequestSchema,
3023
+ deprecatedParameters: ["authenticationId"]
2953
3024
  }
2954
3025
  }
2955
3026
  }
@@ -3020,6 +3091,8 @@ var ActionEntrySchema = zod.z.object({
3020
3091
  appKey: zod.z.string().describe("App key (slug or implementation name)"),
3021
3092
  actionKey: zod.z.string().describe("Action key identifier"),
3022
3093
  actionType: zod.z.string().describe("Action type (e.g., 'read', 'write', 'search')"),
3094
+ connectionId: ConnectionIdPropertySchema.nullable().optional(),
3095
+ /** @deprecated Use connectionId instead */
3023
3096
  authenticationId: AuthenticationIdPropertySchema.nullable().optional(),
3024
3097
  inputs: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Resolved input values"),
3025
3098
  schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe(
@@ -4634,8 +4707,8 @@ var registryPlugin = ({ sdk, context }) => {
4634
4707
  title: "App",
4635
4708
  titlePlural: "Apps"
4636
4709
  },
4637
- authentication: {
4638
- title: "Authentication"
4710
+ connection: {
4711
+ title: "Connection"
4639
4712
  },
4640
4713
  action: {
4641
4714
  title: "Action"
@@ -4681,7 +4754,8 @@ var registryPlugin = ({ sdk, context }) => {
4681
4754
  resolvers: meta.resolvers,
4682
4755
  packages: meta.packages,
4683
4756
  // Auto-infer confirm: "delete" from type: "delete" (all deletes should confirm)
4684
- confirm: meta.confirm ?? (meta.type === "delete" ? "delete" : void 0)
4757
+ confirm: meta.confirm ?? (meta.type === "delete" ? "delete" : void 0),
4758
+ deprecatedParameters: meta.deprecatedParameters
4685
4759
  };
4686
4760
  }).sort((a, b) => a.name.localeCompare(b.name));
4687
4761
  const knownCategories = Object.keys(categoryDefinitions);
@@ -4729,6 +4803,68 @@ var registryPlugin = ({ sdk, context }) => {
4729
4803
  getRegistry
4730
4804
  };
4731
4805
  };
4806
+
4807
+ // src/plugins/deprecated/authentications.ts
4808
+ var listAuthenticationsPlugin = ({ sdk }) => ({
4809
+ listAuthentications: sdk.listConnections,
4810
+ context: {
4811
+ meta: {
4812
+ listAuthentications: {
4813
+ packages: ["cli", "mcp"],
4814
+ categories: ["connection", "deprecated"],
4815
+ type: "list",
4816
+ itemType: "Connection",
4817
+ inputSchema: ListConnectionsQuerySchema,
4818
+ outputSchema: ConnectionItemSchema
4819
+ }
4820
+ }
4821
+ }
4822
+ });
4823
+ var getAuthenticationPlugin = ({ sdk }) => ({
4824
+ getAuthentication: sdk.getConnection,
4825
+ context: {
4826
+ meta: {
4827
+ getAuthentication: {
4828
+ packages: ["cli", "mcp"],
4829
+ categories: ["connection", "deprecated"],
4830
+ type: "item",
4831
+ itemType: "Connection",
4832
+ inputSchema: GetConnectionParamSchema,
4833
+ outputSchema: ConnectionItemSchema
4834
+ }
4835
+ }
4836
+ }
4837
+ });
4838
+ var findFirstAuthenticationPlugin = ({ sdk }) => ({
4839
+ findFirstAuthentication: sdk.findFirstConnection,
4840
+ context: {
4841
+ meta: {
4842
+ findFirstAuthentication: {
4843
+ packages: ["cli", "mcp"],
4844
+ categories: ["connection", "deprecated"],
4845
+ type: "item",
4846
+ itemType: "Connection",
4847
+ inputSchema: FindFirstConnectionSchema,
4848
+ outputSchema: ConnectionItemSchema
4849
+ }
4850
+ }
4851
+ }
4852
+ });
4853
+ var findUniqueAuthenticationPlugin = ({ sdk }) => ({
4854
+ findUniqueAuthentication: sdk.findUniqueConnection,
4855
+ context: {
4856
+ meta: {
4857
+ findUniqueAuthentication: {
4858
+ packages: ["cli", "mcp"],
4859
+ categories: ["connection", "deprecated"],
4860
+ type: "item",
4861
+ itemType: "Connection",
4862
+ inputSchema: FindUniqueConnectionSchema,
4863
+ outputSchema: ConnectionItemSchema
4864
+ }
4865
+ }
4866
+ }
4867
+ });
4732
4868
  var GetInputFieldsSchemaSchema = zod.z.object({
4733
4869
  appKey: AppKeyPropertySchema.describe(
4734
4870
  "App key (e.g., 'SlackCLIAPI' or slug like 'github') to get the input schema for"
@@ -4739,8 +4875,12 @@ var GetInputFieldsSchemaSchema = zod.z.object({
4739
4875
  actionKey: ActionKeyPropertySchema.describe(
4740
4876
  "Action key to get the input schema for"
4741
4877
  ),
4878
+ connectionId: ConnectionIdPropertySchema.nullable().optional().describe(
4879
+ "Connection ID to use when fetching the schema. Required if the action needs a connection to determine available fields."
4880
+ ),
4881
+ /** @deprecated Use connectionId instead */
4742
4882
  authenticationId: AuthenticationIdPropertySchema.nullable().optional().describe(
4743
- "Authentication ID to use when fetching the schema. Required if the action needs authentication to determine available fields."
4883
+ "Authentication ID to use when fetching the schema. Required if the action needs a connection to determine available fields."
4744
4884
  ),
4745
4885
  inputs: InputsPropertySchema.optional().describe(
4746
4886
  "Current input values that may affect the schema (e.g., when fields depend on other field values)"
@@ -4757,9 +4897,11 @@ var getInputFieldsSchemaPlugin = ({ sdk, context }) => {
4757
4897
  appKey,
4758
4898
  actionKey,
4759
4899
  actionType,
4760
- authenticationId = null,
4900
+ connectionId,
4901
+ authenticationId,
4761
4902
  inputs
4762
4903
  } = options;
4904
+ const resolvedConnectionId = connectionId ?? authenticationId ?? null;
4763
4905
  const selectedApi = await getVersionedImplementationId(appKey);
4764
4906
  if (!selectedApi) {
4765
4907
  throw new ZapierConfigurationError(
@@ -4777,7 +4919,7 @@ var getInputFieldsSchemaPlugin = ({ sdk, context }) => {
4777
4919
  selectedApi,
4778
4920
  action: action.key,
4779
4921
  actionType,
4780
- authenticationId,
4922
+ connectionId: resolvedConnectionId,
4781
4923
  inputs
4782
4924
  });
4783
4925
  return {
@@ -4805,9 +4947,10 @@ var getInputFieldsSchemaPlugin = ({ sdk, context }) => {
4805
4947
  appKey: appKeyResolver,
4806
4948
  actionType: actionTypeResolver,
4807
4949
  actionKey: actionKeyResolver,
4808
- authenticationId: authenticationIdResolver,
4950
+ connectionId: connectionIdResolver,
4809
4951
  inputs: inputsAllOptionalResolver
4810
- }
4952
+ },
4953
+ deprecatedParameters: ["authenticationId"]
4811
4954
  }
4812
4955
  }
4813
4956
  }
@@ -4841,6 +4984,8 @@ var ListInputFieldChoicesSchema = zod.z.object({
4841
4984
  // Input field specification
4842
4985
  inputFieldKey: zod.z.string().min(1).describe("Input field key to get choices for."),
4843
4986
  // Common parameters
4987
+ connectionId: ConnectionIdPropertySchema.nullable().optional(),
4988
+ /** @deprecated Use connectionId instead */
4844
4989
  authenticationId: AuthenticationIdPropertySchema.nullable().optional(),
4845
4990
  inputs: InputsPropertySchema.optional().describe(
4846
4991
  "Current input values that may affect available choices"
@@ -4869,11 +5014,13 @@ var listInputFieldChoicesPlugin = ({ context, sdk }) => {
4869
5014
  actionType,
4870
5015
  actionKey,
4871
5016
  inputFieldKey,
4872
- authenticationId = null,
5017
+ connectionId,
5018
+ authenticationId,
4873
5019
  inputs,
4874
5020
  page,
4875
5021
  cursor
4876
5022
  } = options;
5023
+ const resolvedConnectionId = connectionId ?? authenticationId ?? null;
4877
5024
  const selectedApi = await getVersionedImplementationId(appKey);
4878
5025
  if (!selectedApi) {
4879
5026
  throw new ZapierConfigurationError(
@@ -4891,7 +5038,7 @@ var listInputFieldChoicesPlugin = ({ context, sdk }) => {
4891
5038
  selectedApi,
4892
5039
  action: action.key,
4893
5040
  actionType,
4894
- authenticationId,
5041
+ connectionId: resolvedConnectionId,
4895
5042
  inputs
4896
5043
  });
4897
5044
  const targetNeed = needsData.needs?.find(
@@ -4915,7 +5062,7 @@ var listInputFieldChoicesPlugin = ({ context, sdk }) => {
4915
5062
  api,
4916
5063
  actionId: action.id,
4917
5064
  inputFieldId: inputFieldKey,
4918
- authenticationId,
5065
+ connectionId: resolvedConnectionId,
4919
5066
  inputs,
4920
5067
  page: requestPage
4921
5068
  });
@@ -4962,10 +5109,11 @@ var listInputFieldChoicesPlugin = ({ context, sdk }) => {
4962
5109
  appKey: appKeyResolver,
4963
5110
  actionType: actionTypeResolver,
4964
5111
  actionKey: actionKeyResolver,
4965
- authenticationId: authenticationIdResolver,
5112
+ connectionId: connectionIdResolver,
4966
5113
  inputFieldKey: inputFieldKeyResolver,
4967
5114
  inputs: inputsAllOptionalResolver
4968
- }
5115
+ },
5116
+ deprecatedParameters: ["authenticationId"]
4969
5117
  }
4970
5118
  }
4971
5119
  }
@@ -5131,7 +5279,7 @@ function getCpuTime() {
5131
5279
 
5132
5280
  // package.json
5133
5281
  var package_default = {
5134
- version: "0.26.0"};
5282
+ version: "0.27.0"};
5135
5283
 
5136
5284
  // src/plugins/eventEmission/builders.ts
5137
5285
  function createBaseEvent(context = {}) {
@@ -5585,7 +5733,7 @@ function createSdk(options = {}, initialSdk = {}, initialContext = { meta: {} })
5585
5733
  };
5586
5734
  }
5587
5735
  function createZapierSdkWithoutRegistry(options = {}) {
5588
- return createSdk(options).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listInputFieldsPlugin).addPlugin(getInputFieldsSchemaPlugin).addPlugin(listInputFieldChoicesPlugin).addPlugin(runActionPlugin).addPlugin(listAuthenticationsPlugin).addPlugin(getAuthenticationPlugin).addPlugin(findFirstAuthenticationPlugin).addPlugin(findUniqueAuthenticationPlugin).addPlugin(listClientCredentialsPlugin).addPlugin(createClientCredentialsPlugin).addPlugin(deleteClientCredentialsPlugin).addPlugin(fetchPlugin).addPlugin(requestPlugin).addPlugin(appsPlugin).addPlugin(getProfilePlugin);
5736
+ return createSdk(options).addPlugin(eventEmissionPlugin).addPlugin(apiPlugin).addPlugin(manifestPlugin).addPlugin(listAppsPlugin).addPlugin(getAppPlugin).addPlugin(listActionsPlugin).addPlugin(getActionPlugin).addPlugin(listInputFieldsPlugin).addPlugin(getInputFieldsSchemaPlugin).addPlugin(listInputFieldChoicesPlugin).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(appsPlugin).addPlugin(getProfilePlugin);
5589
5737
  }
5590
5738
  function createZapierSdk(options = {}) {
5591
5739
  return createZapierSdkWithoutRegistry(options).addPlugin(registryPlugin);
@@ -5596,6 +5744,7 @@ exports.ActionTimeoutMsPropertySchema = ActionTimeoutMsPropertySchema;
5596
5744
  exports.ActionTypePropertySchema = ActionTypePropertySchema;
5597
5745
  exports.AppKeyPropertySchema = AppKeyPropertySchema;
5598
5746
  exports.AuthenticationIdPropertySchema = AuthenticationIdPropertySchema;
5747
+ exports.ConnectionIdPropertySchema = ConnectionIdPropertySchema;
5599
5748
  exports.DEFAULT_ACTION_TIMEOUT_MS = DEFAULT_ACTION_TIMEOUT_MS;
5600
5749
  exports.DEFAULT_CONFIG_PATH = DEFAULT_CONFIG_PATH;
5601
5750
  exports.DebugPropertySchema = DebugPropertySchema;
@@ -5633,8 +5782,8 @@ exports.actionTypeResolver = actionTypeResolver;
5633
5782
  exports.apiPlugin = apiPlugin;
5634
5783
  exports.appKeyResolver = appKeyResolver;
5635
5784
  exports.appsPlugin = appsPlugin;
5636
- exports.authenticationIdGenericResolver = authenticationIdGenericResolver;
5637
- exports.authenticationIdResolver = authenticationIdResolver;
5785
+ exports.authenticationIdGenericResolver = connectionIdGenericResolver;
5786
+ exports.authenticationIdResolver = connectionIdResolver;
5638
5787
  exports.batch = batch;
5639
5788
  exports.buildApplicationLifecycleEvent = buildApplicationLifecycleEvent;
5640
5789
  exports.buildErrorEvent = buildErrorEvent;
@@ -5643,6 +5792,8 @@ exports.buildMethodCalledEvent = buildMethodCalledEvent;
5643
5792
  exports.clearTokenCache = clearTokenCache;
5644
5793
  exports.clientCredentialsNameResolver = clientCredentialsNameResolver;
5645
5794
  exports.clientIdResolver = clientIdResolver;
5795
+ exports.connectionIdGenericResolver = connectionIdGenericResolver;
5796
+ exports.connectionIdResolver = connectionIdResolver;
5646
5797
  exports.createBaseEvent = createBaseEvent;
5647
5798
  exports.createClientCredentialsPlugin = createClientCredentialsPlugin;
5648
5799
  exports.createFunction = createFunction;
@@ -5651,17 +5802,17 @@ exports.createZapierSdk = createZapierSdk;
5651
5802
  exports.createZapierSdkWithoutRegistry = createZapierSdkWithoutRegistry;
5652
5803
  exports.deleteClientCredentialsPlugin = deleteClientCredentialsPlugin;
5653
5804
  exports.fetchPlugin = fetchPlugin;
5654
- exports.findFirstAuthenticationPlugin = findFirstAuthenticationPlugin;
5805
+ exports.findFirstConnectionPlugin = findFirstConnectionPlugin;
5655
5806
  exports.findManifestEntry = findManifestEntry;
5656
- exports.findUniqueAuthenticationPlugin = findUniqueAuthenticationPlugin;
5807
+ exports.findUniqueConnectionPlugin = findUniqueConnectionPlugin;
5657
5808
  exports.formatErrorMessage = formatErrorMessage;
5658
5809
  exports.generateEventId = generateEventId;
5659
5810
  exports.getActionPlugin = getActionPlugin;
5660
5811
  exports.getAppPlugin = getAppPlugin;
5661
- exports.getAuthenticationPlugin = getAuthenticationPlugin;
5662
5812
  exports.getBaseUrlFromCredentials = getBaseUrlFromCredentials;
5663
5813
  exports.getCiPlatform = getCiPlatform;
5664
5814
  exports.getClientIdFromCredentials = getClientIdFromCredentials;
5815
+ exports.getConnectionPlugin = getConnectionPlugin;
5665
5816
  exports.getCpuTime = getCpuTime;
5666
5817
  exports.getCurrentTimestamp = getCurrentTimestamp;
5667
5818
  exports.getMemoryUsage = getMemoryUsage;
@@ -5684,8 +5835,8 @@ exports.isPkceCredentials = isPkceCredentials;
5684
5835
  exports.isPositional = isPositional;
5685
5836
  exports.listActionsPlugin = listActionsPlugin;
5686
5837
  exports.listAppsPlugin = listAppsPlugin;
5687
- exports.listAuthenticationsPlugin = listAuthenticationsPlugin;
5688
5838
  exports.listClientCredentialsPlugin = listClientCredentialsPlugin;
5839
+ exports.listConnectionsPlugin = listConnectionsPlugin;
5689
5840
  exports.listInputFieldsPlugin = listInputFieldsPlugin;
5690
5841
  exports.logDeprecation = logDeprecation;
5691
5842
  exports.manifestPlugin = manifestPlugin;