@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
@@ -5,7 +5,7 @@ export declare const inputFieldKeyResolver: DynamicResolver<InputFieldItem, {
5
5
  appKey: string;
6
6
  actionKey: string;
7
7
  actionType: ActionTypeProperty;
8
- authenticationId: string | number;
8
+ connectionId: string | number;
9
9
  inputs?: Record<string, unknown>;
10
10
  }>;
11
11
  //# sourceMappingURL=inputFieldKey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inputFieldKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/inputFieldKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiC9D,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,cAAc,EACd;IACE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CA0BF,CAAC"}
1
+ {"version":3,"file":"inputFieldKey.d.ts","sourceRoot":"","sources":["../../src/resolvers/inputFieldKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiC9D,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,cAAc,EACd;IACE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CA0BF,CAAC"}
@@ -23,13 +23,13 @@ function flattenRootFieldset(rootFieldset) {
23
23
  }
24
24
  export const inputFieldKeyResolver = {
25
25
  type: "dynamic",
26
- depends: ["appKey", "actionKey", "actionType", "authenticationId"],
26
+ depends: ["appKey", "actionKey", "actionType", "connectionId"],
27
27
  fetch: async (sdk, resolvedParams) => {
28
28
  const fieldsResponse = await sdk.listInputFields({
29
29
  appKey: resolvedParams.appKey,
30
30
  actionKey: resolvedParams.actionKey,
31
31
  actionType: resolvedParams.actionType,
32
- authenticationId: resolvedParams.authenticationId,
32
+ connectionId: resolvedParams.connectionId,
33
33
  inputs: resolvedParams.inputs, // Pass along currently resolved inputs
34
34
  });
35
35
  // Flatten the fieldset structure for field selection
@@ -7,7 +7,7 @@ type InputsResolver = {
7
7
  appKey: string;
8
8
  actionKey: string;
9
9
  actionType: ActionTypeProperty;
10
- authenticationId: string | number;
10
+ connectionId: string | number;
11
11
  inputs?: Record<string, unknown>;
12
12
  }) => Promise<RootFieldItem[]>;
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/resolvers/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAuBrD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,CACL,GAAG,EAAE,GAAG,EACR,cAAc,EAAE;QACd,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,kBAAkB,CAAC;QAC/B,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;QAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,KACE,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAa5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,cAcvC,CAAC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/resolvers/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAuBrD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,CACL,GAAG,EAAE,GAAG,EACR,cAAc,EAAE;QACd,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,kBAAkB,CAAC;QAC/B,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;QAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,KACE,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAa5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,cAcvC,CAAC"}
@@ -21,13 +21,13 @@ function makeFieldsOptional(fields) {
21
21
  }
22
22
  export const inputsResolver = {
23
23
  type: "fields",
24
- depends: ["appKey", "actionKey", "actionType", "authenticationId"],
24
+ depends: ["appKey", "actionKey", "actionType", "connectionId"],
25
25
  fetch: async (sdk, resolvedParams) => {
26
26
  const fieldsResponse = await sdk.listInputFields({
27
27
  appKey: resolvedParams.appKey,
28
28
  actionKey: resolvedParams.actionKey,
29
29
  actionType: resolvedParams.actionType,
30
- authenticationId: resolvedParams.authenticationId,
30
+ connectionId: resolvedParams.connectionId,
31
31
  inputs: resolvedParams.inputs, // Pass along currently resolved inputs
32
32
  });
33
33
  return fieldsResponse.data;
@@ -35,13 +35,13 @@ export const inputsResolver = {
35
35
  };
36
36
  export const inputsAllOptionalResolver = {
37
37
  type: "fields",
38
- depends: ["appKey", "actionKey", "actionType", "authenticationId"],
38
+ depends: ["appKey", "actionKey", "actionType", "connectionId"],
39
39
  fetch: async (sdk, resolvedParams) => {
40
40
  const fieldsResponse = await sdk.listInputFields({
41
41
  appKey: resolvedParams.appKey,
42
42
  actionKey: resolvedParams.actionKey,
43
43
  actionType: resolvedParams.actionType,
44
- authenticationId: resolvedParams.authenticationId,
44
+ connectionId: resolvedParams.connectionId,
45
45
  inputs: resolvedParams.inputs, // Pass along currently resolved inputs
46
46
  });
47
47
  // Return nested structure with all fields marked as optional.
@@ -0,0 +1,29 @@
1
+ import type { z } from "zod";
2
+ export declare const ConnectionItemSchema: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ date: z.ZodString;
5
+ is_invite_only: z.ZodBoolean;
6
+ lastchanged: z.ZodOptional<z.ZodString>;
7
+ destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ is_private: z.ZodBoolean;
9
+ shared_with_all: z.ZodBoolean;
10
+ is_stale: z.ZodOptional<z.ZodString>;
11
+ is_shared: z.ZodOptional<z.ZodString>;
12
+ marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ url: z.ZodOptional<z.ZodString>;
16
+ groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
+ members: z.ZodOptional<z.ZodString>;
18
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
19
+ id: z.ZodString;
20
+ account_id: z.ZodString;
21
+ implementation_id: z.ZodOptional<z.ZodString>;
22
+ profile_id: z.ZodOptional<z.ZodString>;
23
+ is_expired: z.ZodOptional<z.ZodString>;
24
+ expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ app_key: z.ZodOptional<z.ZodString>;
26
+ app_version: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ export type ConnectionItem = z.infer<typeof ConnectionItemSchema>;
29
+ //# sourceMappingURL=Connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../src/schemas/Connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQ7B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBA6B/B,CAAC;AAMH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { withFormatter } from "../utils/schema-utils";
2
- import { AuthenticationItemSchema as AuthenticationItemSchemaBase } from "@zapier/zapier-sdk-core/v0/schemas/authentications";
2
+ import { ConnectionItemSchema as ConnectionItemSchemaBase } from "@zapier/zapier-sdk-core/v0/schemas/connections";
3
3
  // ============================================================================
4
- // Authentication Item Schema (extends API schema with computed fields and formatting)
4
+ // Connection Item Schema (extends API schema with computed fields and formatting)
5
5
  // ============================================================================
6
- export const AuthenticationItemSchema = withFormatter(AuthenticationItemSchemaBase, {
6
+ export const ConnectionItemSchema = withFormatter(ConnectionItemSchemaBase, {
7
7
  format: (item) => {
8
8
  const details = [];
9
9
  if (item.identifier) {
@@ -18,16 +18,14 @@ export const AuthenticationItemSchema = withFormatter(AuthenticationItemSchemaBa
18
18
  });
19
19
  if (item.marked_stale_at) {
20
20
  details.push({
21
- text: `⚠️ Marked stale: ${new Date(item.marked_stale_at).toLocaleDateString()}`,
21
+ text: `Warning: Marked stale: ${new Date(item.marked_stale_at).toLocaleDateString()}`,
22
22
  style: "warning",
23
23
  });
24
24
  }
25
25
  return {
26
- title: item.title || `Authentication ${item.id}`,
26
+ title: item.title || `Connection ${item.id}`,
27
27
  id: item.id?.toString(),
28
28
  details,
29
29
  };
30
30
  },
31
31
  });
32
- // Legacy alias for backward compatibility
33
- export const AuthItemSchema = AuthenticationItemSchema;
package/dist/sdk.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare function createSdk<TCurrentSdk = {}, TCurrentContext extends {
13
13
  getContext(): TCurrentContext;
14
14
  }, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
15
15
  };
16
- export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<import("./plugins/eventEmission").EventEmissionProvides> & ExtractSdkProperties<import(".").ApiPluginProvides> & ExtractSdkProperties<import(".").ManifestPluginProvides> & ExtractSdkProperties<import(".").ListAppsPluginProvides> & ExtractSdkProperties<import(".").GetAppPluginProvides> & ExtractSdkProperties<import(".").ListActionsPluginProvides> & ExtractSdkProperties<import(".").GetActionPluginProvides> & ExtractSdkProperties<import(".").ListInputFieldsPluginProvides> & ExtractSdkProperties<import("./plugins/getInputFieldsSchema").GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<import("./plugins/listInputFieldChoices").ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<import(".").RunActionPluginProvides> & ExtractSdkProperties<import(".").ListAuthenticationsPluginProvides> & ExtractSdkProperties<import(".").GetAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<import(".").ListClientCredentialsPluginProvides> & ExtractSdkProperties<import(".").CreateClientCredentialsPluginProvides> & ExtractSdkProperties<import(".").DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<import(".").FetchPluginProvides> & ExtractSdkProperties<import(".").RequestPluginProvides> & ExtractSdkProperties<import(".").AppsPluginProvides> & ExtractSdkProperties<import(".").GetProfilePluginProvides>, {
16
+ export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<import("./plugins/eventEmission").EventEmissionProvides> & ExtractSdkProperties<import(".").ApiPluginProvides> & ExtractSdkProperties<import(".").ManifestPluginProvides> & ExtractSdkProperties<import(".").ListAppsPluginProvides> & ExtractSdkProperties<import(".").GetAppPluginProvides> & ExtractSdkProperties<import(".").ListActionsPluginProvides> & ExtractSdkProperties<import(".").GetActionPluginProvides> & ExtractSdkProperties<import(".").ListInputFieldsPluginProvides> & ExtractSdkProperties<import("./plugins/getInputFieldsSchema").GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<import("./plugins/listInputFieldChoices").ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<import(".").RunActionPluginProvides> & ExtractSdkProperties<import(".").ListConnectionsPluginProvides> & ExtractSdkProperties<import(".").GetConnectionPluginProvides> & ExtractSdkProperties<import(".").FindFirstConnectionPluginProvides> & ExtractSdkProperties<import(".").FindUniqueConnectionPluginProvides> & ExtractSdkProperties<import(".").ListAuthenticationsPluginProvides> & ExtractSdkProperties<import(".").GetAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<import(".").FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<import(".").ListClientCredentialsPluginProvides> & ExtractSdkProperties<import(".").CreateClientCredentialsPluginProvides> & ExtractSdkProperties<import(".").DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<import(".").FetchPluginProvides> & ExtractSdkProperties<import(".").RequestPluginProvides> & ExtractSdkProperties<import(".").AppsPluginProvides> & ExtractSdkProperties<import(".").GetProfilePluginProvides>, {
17
17
  meta: Record<string, PluginMeta>;
18
18
  } & import(".").EventEmissionContext & {
19
19
  api: import("./api").ApiClient;
@@ -92,30 +92,52 @@ export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOption
92
92
  inputSchema: typeof import("./plugins/runAction/schemas").RunActionSchema;
93
93
  };
94
94
  };
95
+ } & {
96
+ meta: {
97
+ listConnections: {
98
+ inputSchema: typeof import("./plugins/listConnections/schemas").ListConnectionsQuerySchema;
99
+ };
100
+ };
101
+ } & {
102
+ meta: {
103
+ getConnection: {
104
+ inputSchema: typeof import("./plugins/getConnection/schemas").GetConnectionParamSchema;
105
+ };
106
+ };
107
+ } & {
108
+ meta: {
109
+ findFirstConnection: {
110
+ inputSchema: typeof import("./plugins/findFirstConnection/schemas").FindFirstConnectionSchema;
111
+ };
112
+ };
113
+ } & {
114
+ meta: {
115
+ findUniqueConnection: {
116
+ inputSchema: typeof import("./plugins/findUniqueConnection/schemas").FindUniqueConnectionSchema;
117
+ };
118
+ };
95
119
  } & {
96
120
  meta: {
97
121
  listAuthentications: {
98
- inputSchema: typeof import("./plugins/listAuthentications/schemas").ListAuthenticationsQuerySchema;
122
+ inputSchema: typeof import("./plugins/listConnections/schemas").ListConnectionsQuerySchema;
99
123
  };
100
124
  };
101
125
  } & {
102
126
  meta: {
103
127
  getAuthentication: {
104
- inputSchema: import("zod").ZodObject<{
105
- authenticationId: import("zod").ZodString;
106
- }, import("zod/v4/core").$strip>;
128
+ inputSchema: typeof import("./plugins/getConnection/schemas").GetConnectionParamSchema;
107
129
  };
108
130
  };
109
131
  } & {
110
132
  meta: {
111
133
  findFirstAuthentication: {
112
- inputSchema: typeof import("./plugins/findFirstAuthentication/schemas").FindFirstAuthenticationSchema;
134
+ inputSchema: typeof import("./plugins/findFirstConnection/schemas").FindFirstConnectionSchema;
113
135
  };
114
136
  };
115
137
  } & {
116
138
  meta: {
117
139
  findUniqueAuthentication: {
118
- inputSchema: typeof import("./plugins/findUniqueAuthentication/schemas").FindUniqueAuthenticationSchema;
140
+ inputSchema: typeof import("./plugins/findUniqueConnection/schemas").FindUniqueConnectionSchema;
119
141
  };
120
142
  };
121
143
  } & {
package/dist/sdk.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EACV,GAAG,EACH,MAAM,EACN,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AA8BxB,MAAM,WAAW,gBAAiB,SAAQ,cA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10
10
  import { getActionPlugin } from "./plugins/getAction";
11
11
  import { runActionPlugin } from "./plugins/runAction";
12
- import { listAuthenticationsPlugin } from "./plugins/listAuthentications";
13
- import { getAuthenticationPlugin } from "./plugins/getAuthentication";
14
- import { findFirstAuthenticationPlugin } from "./plugins/findFirstAuthentication";
15
- import { findUniqueAuthenticationPlugin } from "./plugins/findUniqueAuthentication";
12
+ import { listConnectionsPlugin } from "./plugins/listConnections";
13
+ import { getConnectionPlugin } from "./plugins/getConnection";
14
+ import { findFirstConnectionPlugin } from "./plugins/findFirstConnection";
15
+ import { findUniqueConnectionPlugin } from "./plugins/findUniqueConnection";
16
+ // Deprecated authentication plugins (thin wrappers for backward compatibility)
17
+ import { listAuthenticationsPlugin, getAuthenticationPlugin, findFirstAuthenticationPlugin, findUniqueAuthenticationPlugin, } from "./plugins/deprecated/authentications";
16
18
  import { listClientCredentialsPlugin } from "./plugins/listClientCredentials";
17
19
  import { createClientCredentialsPlugin } from "./plugins/createClientCredentials";
18
20
  import { deleteClientCredentialsPlugin } from "./plugins/deleteClientCredentials";
@@ -95,7 +97,12 @@ export function createZapierSdkWithoutRegistry(options = {}) {
95
97
  .addPlugin(listInputFieldChoicesPlugin)
96
98
  // Run action
97
99
  .addPlugin(runActionPlugin)
98
- // Authentications
100
+ // Connections
101
+ .addPlugin(listConnectionsPlugin)
102
+ .addPlugin(getConnectionPlugin)
103
+ .addPlugin(findFirstConnectionPlugin)
104
+ .addPlugin(findUniqueConnectionPlugin)
105
+ // Deprecated authentication plugins (thin wrappers for backward compatibility)
99
106
  .addPlugin(listAuthenticationsPlugin)
100
107
  .addPlugin(getAuthenticationPlugin)
101
108
  .addPlugin(findFirstAuthenticationPlugin)
package/dist/sdk.test.js CHANGED
@@ -4,16 +4,17 @@ import { createZapierSdk, createSdk } from "./sdk";
4
4
  describe("Flat Plugin System", () => {
5
5
  it("should create SDK with all expected methods", () => {
6
6
  const sdk = createZapierSdk();
7
- // Test that all core methods are available
8
- expect(sdk.listApps).toBeDefined();
7
+ // Test that methods are available (one from each category)
8
+ expect(sdk.listApps).toBeDefined(); // app
9
+ expect(sdk.runAction).toBeDefined(); // action
10
+ expect(sdk.listConnections).toBeDefined(); // connection
11
+ expect(sdk.fetch).toBeDefined(); // http
12
+ expect(sdk.listClientCredentials).toBeDefined(); // client-credentials
13
+ expect(sdk.getProfile).toBeDefined(); // account
14
+ expect(sdk.apps).toBeDefined(); // apps proxy
15
+ // Deprecated methods (kept for backward compatibility)
9
16
  expect(sdk.listAuthentications).toBeDefined();
10
- expect(sdk.getAuthentication).toBeDefined();
11
- expect(sdk.runAction).toBeDefined();
12
17
  expect(sdk.request).toBeDefined();
13
- // Test that plugin methods are available
14
- expect(sdk.fetch).toBeDefined();
15
- expect(sdk.apps).toBeDefined();
16
- expect(sdk.getProfile).toBeDefined();
17
18
  // Test that getContext method is available
18
19
  expect(sdk.getContext).toBeDefined();
19
20
  expect(typeof sdk.getContext).toBe("function");
@@ -22,17 +22,17 @@ import type { NeedsResponse, NeedChoicesResponse } from "../api/types";
22
22
  * @param params.selectedApi - Versioned implementation ID (e.g., "SlackCLIAPI@1.21.1")
23
23
  * @param params.action - Action key
24
24
  * @param params.actionType - Action type (read, write, etc.)
25
- * @param params.authenticationId - Authentication ID (null to skip authentication)
25
+ * @param params.connectionId - Connection ID (null to skip connection)
26
26
  * @param params.inputs - Input values that may affect available fields
27
27
  * @returns Promise resolving to NeedsResponse
28
28
  * @throws {ZapierApiError} When the API request fails or returns success: false
29
29
  */
30
- export declare function fetchImplementationNeeds({ api, selectedApi, action, actionType, authenticationId, inputs, }: {
30
+ export declare function fetchImplementationNeeds({ api, selectedApi, action, actionType, connectionId, inputs, }: {
31
31
  api: ApiClient;
32
32
  selectedApi: string;
33
33
  action: string;
34
34
  actionType: string;
35
- authenticationId: string | number | null;
35
+ connectionId: string | number | null;
36
36
  inputs?: Record<string, unknown>;
37
37
  }): Promise<NeedsResponse>;
38
38
  /**
@@ -46,17 +46,17 @@ export declare function fetchImplementationNeeds({ api, selectedApi, action, act
46
46
  * @param params.api - API client instance
47
47
  * @param params.actionId - Action ID (e.g., "core:123")
48
48
  * @param params.inputFieldId - Input field key
49
- * @param params.authenticationId - Authentication ID (null to skip authentication)
49
+ * @param params.connectionId - Connection ID (null to skip connection)
50
50
  * @param params.inputs - Input values that may affect available choices
51
51
  * @param params.page - Page number for pagination (0-indexed)
52
52
  * @returns Promise resolving to NeedChoicesResponse
53
53
  * @throws {ZapierApiError} When the API request fails or returns success: false
54
54
  */
55
- export declare function fetchImplementationChoices({ api, actionId, inputFieldId, authenticationId, inputs, page, }: {
55
+ export declare function fetchImplementationChoices({ api, actionId, inputFieldId, connectionId, inputs, page, }: {
56
56
  api: ApiClient;
57
57
  actionId: string;
58
58
  inputFieldId: string;
59
- authenticationId: string | number | null;
59
+ connectionId: string | number | null;
60
60
  inputs?: Record<string, unknown>;
61
61
  page: number;
62
62
  }): Promise<NeedChoicesResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"implementations.d.ts","sourceRoot":"","sources":["../../src/services/implementations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAEV,aAAa,EAEb,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,GAAG,EACH,WAAW,EACX,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,MAAM,GACP,EAAE;IACD,GAAG,EAAE,SAAS,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,GAAG,OAAO,CAAC,aAAa,CAAC,CA4BzB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,0BAA0B,CAAC,EAC/C,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,IAAI,GACL,EAAE;IACD,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA4B/B"}
1
+ {"version":3,"file":"implementations.d.ts","sourceRoot":"","sources":["../../src/services/implementations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAEV,aAAa,EAEb,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,GAAG,EACH,WAAW,EACX,MAAM,EACN,UAAU,EACV,YAAY,EACZ,MAAM,GACP,EAAE;IACD,GAAG,EAAE,SAAS,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,GAAG,OAAO,CAAC,aAAa,CAAC,CA4BzB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,0BAA0B,CAAC,EAC/C,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,IAAI,GACL,EAAE;IACD,GAAG,EAAE,SAAS,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA4B/B"}
@@ -22,21 +22,21 @@ import { coerceToNumericId } from "../utils/id-utils";
22
22
  * @param params.selectedApi - Versioned implementation ID (e.g., "SlackCLIAPI@1.21.1")
23
23
  * @param params.action - Action key
24
24
  * @param params.actionType - Action type (read, write, etc.)
25
- * @param params.authenticationId - Authentication ID (null to skip authentication)
25
+ * @param params.connectionId - Connection ID (null to skip connection)
26
26
  * @param params.inputs - Input values that may affect available fields
27
27
  * @returns Promise resolving to NeedsResponse
28
28
  * @throws {ZapierApiError} When the API request fails or returns success: false
29
29
  */
30
- export async function fetchImplementationNeeds({ api, selectedApi, action, actionType, authenticationId, inputs, }) {
30
+ export async function fetchImplementationNeeds({ api, selectedApi, action, actionType, connectionId, inputs, }) {
31
31
  const request = {
32
32
  selected_api: selectedApi,
33
33
  action,
34
34
  type_of: actionType,
35
35
  params: inputs || {},
36
36
  };
37
- // Only include authentication_id if it's not null (skip authentication when null)
38
- if (authenticationId !== null) {
39
- request.authentication_id = coerceToNumericId("authentication_id", authenticationId);
37
+ // Only include authentication_id if connectionId is not null (API still expects authentication_id)
38
+ if (connectionId !== null) {
39
+ request.authentication_id = coerceToNumericId("authentication_id", connectionId);
40
40
  }
41
41
  const response = await api.post("/zapier/api/v4/implementations/needs/", request);
42
42
  if (!response.success) {
@@ -55,22 +55,22 @@ export async function fetchImplementationNeeds({ api, selectedApi, action, actio
55
55
  * @param params.api - API client instance
56
56
  * @param params.actionId - Action ID (e.g., "core:123")
57
57
  * @param params.inputFieldId - Input field key
58
- * @param params.authenticationId - Authentication ID (null to skip authentication)
58
+ * @param params.connectionId - Connection ID (null to skip connection)
59
59
  * @param params.inputs - Input values that may affect available choices
60
60
  * @param params.page - Page number for pagination (0-indexed)
61
61
  * @returns Promise resolving to NeedChoicesResponse
62
62
  * @throws {ZapierApiError} When the API request fails or returns success: false
63
63
  */
64
- export async function fetchImplementationChoices({ api, actionId, inputFieldId, authenticationId, inputs, page, }) {
64
+ export async function fetchImplementationChoices({ api, actionId, inputFieldId, connectionId, inputs, page, }) {
65
65
  const request = {
66
66
  action_id: actionId,
67
67
  input_field_id: inputFieldId,
68
68
  page,
69
69
  params: inputs || {},
70
70
  };
71
- // Only include authentication_id if it's not null (skip authentication when null)
72
- if (authenticationId !== null) {
73
- request.authentication_id = coerceToNumericId("authentication_id", authenticationId);
71
+ // Only include authentication_id if connectionId is not null (API still expects authentication_id)
72
+ if (connectionId !== null) {
73
+ request.authentication_id = coerceToNumericId("authentication_id", connectionId);
74
74
  }
75
75
  const response = await api.post("/zapier/api/v4/implementations/choices/", request);
76
76
  if (!response.success) {
@@ -4,7 +4,7 @@ import type { z } from "zod";
4
4
  * These types are inferred from Item schemas and represent transformed/formatted data.
5
5
  */
6
6
  import type { AppItemSchema } from "../schemas/App";
7
- import type { AuthenticationItemSchema } from "../schemas/Auth";
7
+ import type { ConnectionItemSchema } from "../schemas/Connection";
8
8
  import type { ActionItemSchema } from "../schemas/Action";
9
9
  import type { InputFieldItemSchema, InfoFieldItemSchema, RootFieldItemSchema } from "../schemas/Field";
10
10
  import type { UserProfileItemSchema } from "../schemas/UserProfile";
@@ -15,10 +15,10 @@ import type { FieldsetItem } from "../schemas/Field";
15
15
  */
16
16
  export type AppItem = z.infer<typeof AppItemSchema>;
17
17
  /**
18
- * Represents an authentication item returned by listAuthentications functions
19
- * Inferred from AuthenticationItemSchema which extends the base Authentication API schema
18
+ * Represents a connection item returned by listConnections functions
19
+ * Inferred from ConnectionItemSchema which extends the base Connection API schema
20
20
  */
21
- export type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;
21
+ export type ConnectionItem = z.infer<typeof ConnectionItemSchema>;
22
22
  /**
23
23
  * Represents an action item returned by listActions functions
24
24
  * Inferred from ActionItemSchema which extends the base Action API schema
@@ -1 +1 @@
1
- {"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/types/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;GAGG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KA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AK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -13,6 +13,8 @@ export declare const ActionTypePropertySchema: z.ZodEnum<{
13
13
  write: "write";
14
14
  }>;
15
15
  export declare const ActionKeyPropertySchema: z.ZodString;
16
+ export declare const ConnectionIdPropertySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
17
+ /** @deprecated Use ConnectionIdPropertySchema instead */
16
18
  export declare const AuthenticationIdPropertySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
17
19
  export declare const InputsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
20
  export declare const LimitPropertySchema: z.ZodDefault<z.ZodNumber>;
@@ -24,7 +26,9 @@ export declare const ActionTimeoutMsPropertySchema: z.ZodOptional<z.ZodNumber>;
24
26
  export type AppKeyProperty = z.infer<typeof AppKeyPropertySchema>;
25
27
  export type ActionTypeProperty = z.infer<typeof ActionTypePropertySchema>;
26
28
  export type ActionKeyProperty = z.infer<typeof ActionKeyPropertySchema>;
27
- export type AuthenticationIdProperty = z.infer<typeof AuthenticationIdPropertySchema>;
29
+ export type ConnectionIdProperty = z.infer<typeof ConnectionIdPropertySchema>;
30
+ /** @deprecated Use ConnectionIdProperty instead */
31
+ export type AuthenticationIdProperty = ConnectionIdProperty;
28
32
  export type InputsProperty = z.infer<typeof InputsPropertySchema>;
29
33
  export type LimitProperty = z.infer<typeof LimitPropertySchema>;
30
34
  export type OffsetProperty = z.infer<typeof OffsetPropertySchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB;;CAKhC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;E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,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC"}
@@ -23,9 +23,11 @@ export const ActionKeyPropertySchema = z
23
23
  .string()
24
24
  .min(1)
25
25
  .describe("Action key to execute");
26
- export const AuthenticationIdPropertySchema = z
26
+ export const ConnectionIdPropertySchema = z
27
27
  .union([z.string(), z.number().int().positive()])
28
- .describe("Authentication ID to use for this action");
28
+ .describe("Connection ID to use for this action");
29
+ /** @deprecated Use ConnectionIdPropertySchema instead */
30
+ export const AuthenticationIdPropertySchema = ConnectionIdPropertySchema;
29
31
  export const InputsPropertySchema = z
30
32
  .record(z.string(), z.unknown())
31
33
  .describe("Input parameters for the action");
@@ -28,9 +28,9 @@ export interface BaseSdkOptions {
28
28
  eventEmission?: EventEmissionConfig;
29
29
  }
30
30
  import type { ListInputFieldsSdkFunction } from "../plugins/listInputFields/schemas";
31
- import type { GetAuthenticationSdkFunction } from "../plugins/getAuthentication/schemas";
32
- import type { FindFirstAuthenticationSdkFunction } from "../plugins/findFirstAuthentication/schemas";
33
- import type { FindUniqueAuthenticationSdkFunction } from "../plugins/findUniqueAuthentication/schemas";
31
+ import type { GetConnectionSdkFunction } from "../plugins/getConnection/schemas";
32
+ import type { FindFirstConnectionSdkFunction } from "../plugins/findFirstConnection/schemas";
33
+ import type { FindUniqueConnectionSdkFunction } from "../plugins/findUniqueConnection/schemas";
34
34
  import type { RelayRequestSdkFunction } from "../plugins/request/schemas";
35
35
  import type { z } from "zod";
36
36
  import type { RegistryPluginProvides } from "../plugins/registry";
@@ -45,10 +45,11 @@ import type { GetAppPluginProvides } from "../plugins/getApp";
45
45
  import type { ListActionsPluginProvides } from "../plugins/listActions";
46
46
  import type { GetActionPluginProvides } from "../plugins/getAction";
47
47
  import type { RunActionPluginProvides } from "../plugins/runAction";
48
- import type { ListAuthenticationsPluginProvides } from "../plugins/listAuthentications";
49
- import type { GetAuthenticationPluginProvides } from "../plugins/getAuthentication";
50
- import type { FindFirstAuthenticationPluginProvides } from "../plugins/findFirstAuthentication";
51
- import type { FindUniqueAuthenticationPluginProvides } from "../plugins/findUniqueAuthentication";
48
+ import type { ListConnectionsPluginProvides } from "../plugins/listConnections";
49
+ import type { GetConnectionPluginProvides } from "../plugins/getConnection";
50
+ import type { FindFirstConnectionPluginProvides } from "../plugins/findFirstConnection";
51
+ import type { FindUniqueConnectionPluginProvides } from "../plugins/findUniqueConnection";
52
+ import type { ListAuthenticationsPluginProvides, GetAuthenticationPluginProvides, FindFirstAuthenticationPluginProvides, FindUniqueAuthenticationPluginProvides } from "../plugins/deprecated/authentications";
52
53
  import type { ListClientCredentialsPluginProvides } from "../plugins/listClientCredentials";
53
54
  import type { CreateClientCredentialsPluginProvides } from "../plugins/createClientCredentials";
54
55
  import type { DeleteClientCredentialsPluginProvides } from "../plugins/deleteClientCredentials";
@@ -80,10 +81,12 @@ export interface FunctionRegistryEntry {
80
81
  packages?: string[];
81
82
  /** Confirmation prompt type - prompts user before executing */
82
83
  confirm?: "create-secret" | "delete";
84
+ /** Parameters that are deprecated and should be hidden from generated docs */
85
+ deprecatedParameters?: string[];
83
86
  }
84
- export interface ZapierSdkFunctions extends ListInputFieldsSdkFunction, GetAuthenticationSdkFunction, FindFirstAuthenticationSdkFunction, FindUniqueAuthenticationSdkFunction, RelayRequestSdkFunction {
87
+ export interface ZapierSdkFunctions extends ListInputFieldsSdkFunction, GetConnectionSdkFunction, FindFirstConnectionSdkFunction, FindUniqueConnectionSdkFunction, RelayRequestSdkFunction {
85
88
  }
86
- export interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
89
+ export interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListConnectionsPluginProvides & GetConnectionPluginProvides & FindFirstConnectionPluginProvides & FindUniqueConnectionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
87
90
  apps: ActionProxy & ZapierSdkApps;
88
91
  }
89
92
  //# sourceMappingURL=sdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/types/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE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kC,GAElC,iCAAiC,GACjC,+BAA+B,GAC/B,qCAAqC,GACrC,sCAAsC,GACtC,mCAAmC,GACnC,qCAAqC,GACrC,qCAAqC,GACrC,6BAA6B,GAC7B,kCAAkC,GAClC,mCAAmC,GACnC,qBAAqB,GACrB,wBAAwB,GACxB,qBAAqB,GACrB,iBAAiB,CACpB;IAED,IAAI,EAAE,WAAW,GAAG,aAAa,CAAC;CACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -37,7 +37,7 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@zapier/zapier-sdk-core": "^0.7.2",
40
+ "@zapier/zapier-sdk-core": "^0.8.0",
41
41
  "zod": "4.2.1"
42
42
  },
43
43
  "devDependencies": {
@@ -1,21 +0,0 @@
1
- import type { Plugin, GetSdkType } from "../../types/plugin";
2
- import type { AuthenticationItem } from "../../types/domain";
3
- import { FindFirstAuthenticationSchema, type FindFirstAuthenticationOptions } from "./schemas";
4
- import type { ListAuthenticationsPluginProvides } from "../listAuthentications";
5
- import type { EventEmissionContext } from "../eventEmission";
6
- export interface FindFirstAuthenticationPluginProvides {
7
- findFirstAuthentication: (options?: FindFirstAuthenticationOptions) => Promise<{
8
- data: AuthenticationItem;
9
- }>;
10
- context: {
11
- meta: {
12
- findFirstAuthentication: {
13
- inputSchema: typeof FindFirstAuthenticationSchema;
14
- };
15
- };
16
- };
17
- }
18
- export declare const findFirstAuthenticationPlugin: Plugin<GetSdkType<ListAuthenticationsPluginProvides>, // requires listAuthentications in SDK
19
- EventEmissionContext, // requires eventEmission in context
20
- FindFirstAuthenticationPluginProvides>;
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/findFirstAuthentication/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,KAAK,8BAA8B,EACpC,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAGhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D,MAAM,WAAW,qCAAqC;IACpD,uBAAuB,EAAE,CACvB,OAAO,CAAC,EAAE,8BAA8B,KACrC,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,CAAA;KAAE,CAAC,CAAC;IAC3C,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,uBAAuB,EAAE;gBACvB,WAAW,EAAE,OAAO,6BAA6B,CAAC;aACnD,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAChD,UAAU,CAAC,iCAAiC,CAAC,EAAE,sCAAsC;AACrF,oBAAoB,EAAE,oCAAoC;AAC1D,qCAAqC,CA+CtC,CAAC"}