@zapier/zapier-sdk 0.6.3 → 0.6.4

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.
@@ -21,7 +21,7 @@ export const getProfilePlugin = ({ context }) => {
21
21
  context: {
22
22
  meta: {
23
23
  getProfile: {
24
- categories: ["user"],
24
+ categories: ["account"],
25
25
  inputSchema: GetProfileSchema,
26
26
  },
27
27
  },
@@ -2,6 +2,9 @@
2
2
  export const registryPlugin = ({ sdk, context }) => {
3
3
  const metaKeys = Object.keys(context.meta || {});
4
4
  const categoryDefinitions = {
5
+ account: {
6
+ title: "Account",
7
+ },
5
8
  app: {
6
9
  title: "App",
7
10
  titlePlural: "Apps",
@@ -15,9 +18,6 @@ export const registryPlugin = ({ sdk, context }) => {
15
18
  http: {
16
19
  title: "HTTP Request",
17
20
  },
18
- user: {
19
- title: "User",
20
- },
21
21
  utility: {
22
22
  title: "Utility",
23
23
  titlePlural: "Utilities",
package/dist/sdk.d.ts CHANGED
@@ -6,5 +6,92 @@ export interface ZapierSdkOptions extends BaseSdkOptions {
6
6
  export declare function createSdk<TCurrentSdk = {}, TCurrentContext = {
7
7
  meta: Record<string, PluginMeta>;
8
8
  }>(options?: ZapierSdkOptions, initialSdk?: TCurrentSdk, initialContext?: TCurrentContext): Sdk<TCurrentSdk, TCurrentContext>;
9
+ export declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<import("./types/plugin").ExtractSdkProperties<import(".").ApiPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").ListAppsPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").ManifestPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").GetAppPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").ListActionsPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").GetActionPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").ListInputFieldsPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").RunActionPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").LockVersionPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").ListAuthenticationsPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").GetAuthenticationPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").FindFirstAuthenticationPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").FindUniqueAuthenticationPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").RequestPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").FetchPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").AppsPluginProvides> & import("./types/plugin").ExtractSdkProperties<import(".").GetProfilePluginProvides>, {
10
+ meta: Record<string, PluginMeta>;
11
+ } & {
12
+ api: import("./api").ApiClient;
13
+ } & {
14
+ meta: {
15
+ listApps: {
16
+ inputSchema: typeof import("./plugins/listApps/schemas").ListAppsSchema;
17
+ };
18
+ };
19
+ } & {
20
+ getVersionedImplementationId: import("./plugins/manifest/schemas").GetVersionedImplementationId;
21
+ getManifestEntry: import("./plugins/manifest/schemas").GetManifestEntry;
22
+ getImplementation: import("./plugins/manifest/schemas").GetImplementation;
23
+ } & {
24
+ meta: {
25
+ getApp: {
26
+ inputSchema: typeof import("./plugins/getApp/schemas").GetAppSchema;
27
+ };
28
+ };
29
+ } & {
30
+ meta: {
31
+ listActions: {
32
+ inputSchema: typeof import("./plugins/listActions/schemas").ListActionsSchema;
33
+ };
34
+ };
35
+ } & {
36
+ meta: {
37
+ getAction: {
38
+ inputSchema: typeof import("./plugins/getAction/schemas").GetActionSchema;
39
+ };
40
+ };
41
+ } & {
42
+ meta: {
43
+ listInputFields: {
44
+ inputSchema: typeof import("./plugins/listInputFields/schemas").ListInputFieldsSchema;
45
+ };
46
+ };
47
+ } & {
48
+ meta: {
49
+ runAction: {
50
+ inputSchema: typeof import("./plugins/runAction/schemas").RunActionSchema;
51
+ };
52
+ };
53
+ } & {
54
+ meta: {
55
+ lockVersion: {
56
+ inputSchema: typeof import("./plugins/lockVersion/schemas").LockVersionSchema;
57
+ };
58
+ };
59
+ } & {
60
+ meta: {
61
+ listAuthentications: {
62
+ inputSchema: typeof import("./plugins/listAuthentications/schemas").ListAuthenticationsSchema;
63
+ };
64
+ };
65
+ } & {
66
+ meta: {
67
+ getAuthentication: {
68
+ inputSchema: typeof import("./plugins/getAuthentication/schemas").GetAuthenticationSchema;
69
+ };
70
+ };
71
+ } & {
72
+ meta: {
73
+ findFirstAuthentication: {
74
+ inputSchema: typeof import("./plugins/findFirstAuthentication/schemas").FindFirstAuthenticationSchema;
75
+ };
76
+ };
77
+ } & {
78
+ meta: {
79
+ findUniqueAuthentication: {
80
+ inputSchema: typeof import("./plugins/findUniqueAuthentication/schemas").FindUniqueAuthenticationSchema;
81
+ };
82
+ };
83
+ } & {
84
+ meta: {
85
+ request: {
86
+ inputSchema: typeof import(".").RelayRequestSchema;
87
+ };
88
+ };
89
+ } & {
90
+ meta: {
91
+ getProfile: {
92
+ inputSchema: typeof import("./plugins/getProfile/schemas").GetProfileSchema;
93
+ };
94
+ };
95
+ }>;
9
96
  export declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
10
97
  //# sourceMappingURL=sdk.d.ts.map
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,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EACV,GAAG,EAIH,UAAU,EACX,MAAM,gBAAgB,CAAC;AAyBxB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAG3D,wBAAgB,SAAS,CACvB,WAAW,GAAG,EAAE,EAChB,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,EAEtD,OAAO,GAAE,gBAAqB,EAC9B,UAAU,GAAE,WAA+B,EAC3C,cAAc,GAAE,eAAiD,GAChE,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAqEnC;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,CAyCzE"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EACV,GAAG,EAIH,UAAU,EACX,MAAM,gBAAgB,CAAC;AAyBxB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAG3D,wBAAgB,SAAS,CACvB,WAAW,GAAG,EAAE,EAChB,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,EAEtD,OAAO,GAAE,gBAAqB,EAC9B,UAAU,GAAE,WAA+B,EAC3C,cAAc,GAAE,eAAiD,GAChE,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAqEnC;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,gBAAqB;UA5EjD,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkHrD;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,CAMzE"}
package/dist/sdk.js CHANGED
@@ -72,7 +72,7 @@ export function createSdk(options = {}, initialSdk = {}, initialContext = { meta
72
72
  },
73
73
  };
74
74
  }
75
- export function createZapierSdk(options = {}) {
75
+ export function createZapierSdkWithoutRegistry(options = {}) {
76
76
  return (createSdk(options)
77
77
  // Provides the API client in context
78
78
  .addPlugin(apiPlugin)
@@ -99,7 +99,10 @@ export function createZapierSdk(options = {}) {
99
99
  // Magic apps plugin
100
100
  .addPlugin(appsPlugin)
101
101
  // Profile
102
- .addPlugin(getProfilePlugin)
102
+ .addPlugin(getProfilePlugin));
103
+ }
104
+ export function createZapierSdk(options = {}) {
105
+ return (createZapierSdkWithoutRegistry(options)
103
106
  // Register plugins for CLI/MCP metadata
104
107
  .addPlugin(registryPlugin));
105
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
package/src/index.ts CHANGED
@@ -5,6 +5,21 @@ export * from "./types/properties";
5
5
  export * from "./types/errors";
6
6
  export * from "./plugins/apps";
7
7
  export * from "./plugins/fetch";
8
+ export * from "./plugins/listApps";
9
+ export * from "./plugins/listActions";
10
+ export * from "./plugins/listInputFields";
11
+ export * from "./plugins/listAuthentications";
12
+ export * from "./plugins/getApp";
13
+ export * from "./plugins/getAction";
14
+ export * from "./plugins/getAuthentication";
15
+ export * from "./plugins/findFirstAuthentication";
16
+ export * from "./plugins/findUniqueAuthentication";
17
+ export * from "./plugins/runAction";
18
+ export * from "./plugins/request";
19
+ export * from "./plugins/manifest";
20
+ export * from "./plugins/lockVersion";
21
+ export * from "./plugins/getProfile";
22
+ export * from "./plugins/api";
8
23
 
9
24
  // Export API types directly (no longer re-exported from domain)
10
25
  export type {
@@ -26,6 +41,7 @@ export type {
26
41
  // Export schema utilities for CLI
27
42
  export { isPositional } from "./utils/schema-utils";
28
43
  export { hasResolver } from "./resolvers";
44
+ export { createFunction } from "./utils/function-utils";
29
45
 
30
46
  // Export auth utilities for CLI use
31
47
  export * from "./auth";
@@ -41,7 +57,12 @@ export {
41
57
  } from "./plugins/request/schemas";
42
58
 
43
59
  // Export the main combined SDK and new flexible SDK creator
44
- export { createZapierSdk, createSdk, ZapierSdkOptions } from "./sdk";
60
+ export {
61
+ createZapierSdk,
62
+ createZapierSdkWithoutRegistry,
63
+ createSdk,
64
+ ZapierSdkOptions,
65
+ } from "./sdk";
45
66
 
46
67
  // Export SDK types from types (not sdk.ts to avoid circular imports)
47
68
  export type { FunctionRegistryEntry } from "./types/sdk";
@@ -56,5 +77,8 @@ export type {
56
77
  Sdk,
57
78
  } from "./types/plugin";
58
79
 
80
+ // Export registry plugin for manual use
81
+ export { registryPlugin } from "./plugins/registry";
82
+
59
83
  // Export ZapierSdk from sdk.ts (it's now ReturnType<typeof createZapierSdk>)
60
84
  export type { ZapierSdk } from "./types/sdk";
@@ -47,7 +47,7 @@ export const getProfilePlugin: Plugin<
47
47
  context: {
48
48
  meta: {
49
49
  getProfile: {
50
- categories: ["user"],
50
+ categories: ["account"],
51
51
  inputSchema: GetProfileSchema,
52
52
  },
53
53
  },
@@ -27,6 +27,9 @@ export const registryPlugin: Plugin<
27
27
  string,
28
28
  { title: string; titlePlural?: string }
29
29
  > = {
30
+ account: {
31
+ title: "Account",
32
+ },
30
33
  app: {
31
34
  title: "App",
32
35
  titlePlural: "Apps",
@@ -40,9 +43,6 @@ export const registryPlugin: Plugin<
40
43
  http: {
41
44
  title: "HTTP Request",
42
45
  },
43
- user: {
44
- title: "User",
45
- },
46
46
  utility: {
47
47
  title: "Utility",
48
48
  titlePlural: "Utilities",
package/src/sdk.ts CHANGED
@@ -117,7 +117,7 @@ export function createSdk<
117
117
  };
118
118
  }
119
119
 
120
- export function createZapierSdk(options: ZapierSdkOptions = {}): ZapierSdk {
120
+ export function createZapierSdkWithoutRegistry(options: ZapierSdkOptions = {}) {
121
121
  return (
122
122
  createSdk(options)
123
123
  // Provides the API client in context
@@ -154,7 +154,12 @@ export function createZapierSdk(options: ZapierSdkOptions = {}): ZapierSdk {
154
154
 
155
155
  // Profile
156
156
  .addPlugin(getProfilePlugin)
157
+ );
158
+ }
157
159
 
160
+ export function createZapierSdk(options: ZapierSdkOptions = {}): ZapierSdk {
161
+ return (
162
+ createZapierSdkWithoutRegistry(options)
158
163
  // Register plugins for CLI/MCP metadata
159
164
  .addPlugin(registryPlugin)
160
165
  );