@zapier/zapier-sdk 0.8.0 → 0.8.2

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 (98) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/types.d.ts +5 -4
  3. package/dist/api/types.d.ts.map +1 -1
  4. package/dist/index.cjs +2 -2
  5. package/dist/index.d.mts +372 -372
  6. package/dist/index.mjs +2 -2
  7. package/dist/plugins/findFirstAuthentication/schemas.d.ts +2 -1
  8. package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +1 -1
  9. package/dist/plugins/findUniqueAuthentication/schemas.d.ts +2 -1
  10. package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +1 -1
  11. package/dist/plugins/getAction/schemas.d.ts +2 -1
  12. package/dist/plugins/getAction/schemas.d.ts.map +1 -1
  13. package/dist/plugins/getApp/index.d.ts +2 -2
  14. package/dist/plugins/getApp/index.d.ts.map +1 -1
  15. package/dist/plugins/getApp/schemas.d.ts +1 -1
  16. package/dist/plugins/getApp/schemas.d.ts.map +1 -1
  17. package/dist/plugins/getAuthentication/schemas.d.ts +2 -1
  18. package/dist/plugins/getAuthentication/schemas.d.ts.map +1 -1
  19. package/dist/plugins/getProfile/schemas.d.ts +1 -1
  20. package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
  21. package/dist/plugins/listActions/index.d.ts +2 -2
  22. package/dist/plugins/listActions/index.d.ts.map +1 -1
  23. package/dist/plugins/listActions/schemas.d.ts +2 -1
  24. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  25. package/dist/plugins/listApps/schemas.d.ts +1 -1
  26. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  27. package/dist/plugins/listAuthentications/index.d.ts +2 -2
  28. package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
  29. package/dist/plugins/listAuthentications/schemas.d.ts +2 -1
  30. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  31. package/dist/plugins/listInputFieldChoices/schemas.d.ts +3 -3
  32. package/dist/plugins/listInputFields/index.d.ts +1 -1
  33. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  34. package/dist/plugins/listInputFields/schemas.d.ts +5 -4
  35. package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
  36. package/dist/plugins/lockVersion/index.d.ts +1 -1
  37. package/dist/plugins/lockVersion/index.d.ts.map +1 -1
  38. package/dist/plugins/manifest/index.d.ts +4 -5
  39. package/dist/plugins/manifest/index.d.ts.map +1 -1
  40. package/dist/plugins/manifest/schemas.d.ts +1 -1
  41. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  42. package/dist/plugins/registry/index.d.ts +1 -1
  43. package/dist/plugins/registry/index.d.ts.map +1 -1
  44. package/dist/plugins/request/schemas.d.ts +2 -1
  45. package/dist/plugins/request/schemas.d.ts.map +1 -1
  46. package/dist/plugins/runAction/index.d.ts +1 -1
  47. package/dist/plugins/runAction/index.d.ts.map +1 -1
  48. package/dist/plugins/runAction/schemas.d.ts +7 -6
  49. package/dist/plugins/runAction/schemas.d.ts.map +1 -1
  50. package/dist/sdk.d.ts +1 -1
  51. package/dist/sdk.d.ts.map +1 -1
  52. package/dist/types/functions.d.ts +2 -1
  53. package/dist/types/functions.d.ts.map +1 -1
  54. package/dist/types/functions.js +0 -3
  55. package/dist/types/plugin.d.ts +1 -1
  56. package/dist/types/plugin.d.ts.map +1 -1
  57. package/dist/types/properties.d.ts +2 -2
  58. package/dist/types/properties.d.ts.map +1 -1
  59. package/dist/types/properties.js +2 -2
  60. package/dist/types/sdk.d.ts +17 -17
  61. package/dist/types/sdk.d.ts.map +1 -1
  62. package/dist/utils/function-utils.d.ts +1 -1
  63. package/dist/utils/function-utils.d.ts.map +1 -1
  64. package/dist/utils/validation.d.ts +1 -1
  65. package/dist/utils/validation.d.ts.map +1 -1
  66. package/package.json +1 -1
  67. package/src/api/types.ts +5 -4
  68. package/src/plugins/apps/index.ts +1 -1
  69. package/src/plugins/fetch/index.ts +1 -1
  70. package/src/plugins/findFirstAuthentication/schemas.ts +10 -4
  71. package/src/plugins/findUniqueAuthentication/schemas.ts +12 -5
  72. package/src/plugins/getAction/schemas.ts +14 -6
  73. package/src/plugins/getApp/index.ts +2 -2
  74. package/src/plugins/getApp/schemas.ts +1 -1
  75. package/src/plugins/getAuthentication/schemas.ts +12 -5
  76. package/src/plugins/getProfile/schemas.ts +1 -1
  77. package/src/plugins/listActions/index.ts +2 -2
  78. package/src/plugins/listActions/schemas.ts +8 -3
  79. package/src/plugins/listApps/schemas.ts +1 -1
  80. package/src/plugins/listAuthentications/index.ts +2 -2
  81. package/src/plugins/listAuthentications/schemas.ts +12 -5
  82. package/src/plugins/listInputFields/index.ts +1 -1
  83. package/src/plugins/listInputFields/schemas.ts +14 -6
  84. package/src/plugins/lockVersion/index.ts +1 -1
  85. package/src/plugins/manifest/index.ts +6 -5
  86. package/src/plugins/manifest/schemas.ts +1 -1
  87. package/src/plugins/registry/index.ts +1 -1
  88. package/src/plugins/request/schemas.ts +8 -3
  89. package/src/plugins/runAction/index.ts +1 -1
  90. package/src/plugins/runAction/schemas.ts +12 -6
  91. package/src/sdk.ts +1 -1
  92. package/src/types/functions.ts +2 -1
  93. package/src/types/plugin.ts +1 -1
  94. package/src/types/properties.ts +2 -2
  95. package/src/types/sdk.ts +17 -17
  96. package/src/utils/function-utils.ts +1 -1
  97. package/src/utils/validation.ts +1 -1
  98. package/tsconfig.tsbuildinfo +1 -1
@@ -7,7 +7,7 @@
7
7
  * ability to catch missing context at compile time.
8
8
  */
9
9
  import type { z } from "zod";
10
- import { BaseSdkOptions } from "./sdk";
10
+ import type { BaseSdkOptions } from "./sdk";
11
11
  export interface PluginDependencies<TSdk = {}, TContext = {}> {
12
12
  sdk: TSdk;
13
13
  context: TContext;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/types/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAA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O,SAAS,MAAM,GACpB,iCAAiC,OAAO,SAAS,GACjD,OAAO,SAAS,MAAM,GACpB,iCAAiC,OAAO,SAAS,GACjD,oDAAoD,MAAM,SAAS,SAAS,MAAM,GAAG,MAAM,SAAS,GAAG,SAAS,gBAAgB,MAAM,QAAQ,SAAS,MAAM,GAAG,MAAM,QAAQ,GAAG,SAAS,EAAE,GAChM,qCAAqC,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CACb,WAAW,GAAG,EAAE,EAChB,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,IACpD,WAAW,GAAG;IAChB,SAAS,CAAC,gBAAgB,EAAE,SAAS,SAAS,cAAc,EAC1D,MAAM,EAAE,MAAM,CACZ,WAAW,GAAG;QAAE,UAAU,IAAI,eAAe,CAAA;KAAE,EAC/C,gBAAgB,EAChB,SAAS,CACV,EACD,OAAO,CAAC,EAAE,GAAG,GACZ,eAAe,SAAS,gBAAgB,GACvC,GAAG,CACD,WAAW,GAAG,oBAAoB,CAAC,SAAS,CAAC,EAC7C,eAAe,GAAG,WAAW,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CACnE,GACD,YAAY,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IACpD,UAAU,IAAI,eAAe,CAAC;CAC/B,CAAC"}
@@ -3,12 +3,12 @@ export declare const AppKeyPropertySchema: z.ZodString;
3
3
  export declare const ActionTypePropertySchema: z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>;
4
4
  export declare const ActionKeyPropertySchema: z.ZodString;
5
5
  export declare const AuthenticationIdPropertySchema: z.ZodNumber;
6
- export declare const InputsPropertySchema: z.ZodRecord<z.ZodString, z.ZodAny>;
6
+ export declare const InputsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
7
  export declare const LimitPropertySchema: z.ZodDefault<z.ZodNumber>;
8
8
  export declare const OffsetPropertySchema: z.ZodDefault<z.ZodNumber>;
9
9
  export declare const OutputPropertySchema: z.ZodString;
10
10
  export declare const DebugPropertySchema: z.ZodDefault<z.ZodBoolean>;
11
- export declare const ParamsPropertySchema: z.ZodRecord<z.ZodString, z.ZodAny>;
11
+ export declare const ParamsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
12
  export type AppKeyProperty = z.infer<typeof AppKeyPropertySchema>;
13
13
  export type ActionTypeProperty = z.infer<typeof ActionTypePropertySchema>;
14
14
  export type ActionKeyProperty = z.infer<typeof ActionKeyPropertySchema>;
@@ -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,aAEhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,6GAW4B,CAAC;AAElE,eAAO,MAAM,uBAAuB,aAGA,CAAC;AAErC,eAAO,MAAM,8BAA8B,aAGY,CAAC;AAExD,eAAO,MAAM,oBAAoB,oCAEa,CAAC;AAE/C,eAAO,MAAM,mBAAmB,2BAMgB,CAAC;AAEjD,eAAO,MAAM,oBAAoB,2BAKoB,CAAC;AAEtD,eAAO,MAAM,oBAAoB,aAA0C,CAAC;AAE5E,eAAO,MAAM,mBAAmB,4BAGG,CAAC;AAEpC,eAAO,MAAM,oBAAoB,oCAEG,CAAC;AAGrC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,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CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,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,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"}
@@ -25,7 +25,7 @@ export const AuthenticationIdPropertySchema = z
25
25
  .int()
26
26
  .describe("Authentication ID to use for this action");
27
27
  export const InputsPropertySchema = z
28
- .record(z.any())
28
+ .record(z.unknown())
29
29
  .describe("Input parameters for the action");
30
30
  export const LimitPropertySchema = z
31
31
  .number()
@@ -46,5 +46,5 @@ export const DebugPropertySchema = z
46
46
  .default(false)
47
47
  .describe("Enable debug logging");
48
48
  export const ParamsPropertySchema = z
49
- .record(z.any())
49
+ .record(z.unknown())
50
50
  .describe("Additional parameters");
@@ -26,23 +26,23 @@ import type { FindUniqueAuthenticationSdkFunction } from "../plugins/findUniqueA
26
26
  import type { RelayRequestSdkFunction } from "../plugins/request/schemas";
27
27
  import type { LockVersionPluginProvides } from "../plugins/lockVersion";
28
28
  import type { z } from "zod";
29
- import { RegistryPluginProvides } from "../plugins/registry";
30
- import { GetProfilePluginProvides } from "../plugins/getProfile";
31
- import { AppsPluginProvides } from "../plugins/apps";
32
- import { FetchPluginProvides } from "../plugins/fetch";
33
- import { ListAppsPluginProvides } from "../plugins/listApps";
34
- import { GetAppPluginProvides } from "../plugins/getApp";
35
- import { ListActionsPluginProvides } from "../plugins/listActions";
36
- import { GetActionPluginProvides } from "../plugins/getAction";
37
- import { RunActionPluginProvides } from "../plugins/runAction";
38
- import { ListAuthenticationsPluginProvides } from "../plugins/listAuthentications";
39
- import { GetAuthenticationPluginProvides } from "../plugins/getAuthentication";
40
- import { FindFirstAuthenticationPluginProvides } from "../plugins/findFirstAuthentication";
41
- import { FindUniqueAuthenticationPluginProvides } from "../plugins/findUniqueAuthentication";
42
- import { ListInputFieldsPluginProvides } from "../plugins/listInputFields";
43
- import { RequestPluginProvides } from "../plugins/request";
44
- import { GetSdkType } from "./plugin";
45
- import { ManifestPluginProvides } from "../plugins/manifest";
29
+ import type { RegistryPluginProvides } from "../plugins/registry";
30
+ import type { GetProfilePluginProvides } from "../plugins/getProfile";
31
+ import type { AppsPluginProvides } from "../plugins/apps";
32
+ import type { FetchPluginProvides } from "../plugins/fetch";
33
+ import type { ListAppsPluginProvides } from "../plugins/listApps";
34
+ import type { GetAppPluginProvides } from "../plugins/getApp";
35
+ import type { ListActionsPluginProvides } from "../plugins/listActions";
36
+ import type { GetActionPluginProvides } from "../plugins/getAction";
37
+ import type { RunActionPluginProvides } from "../plugins/runAction";
38
+ import type { ListAuthenticationsPluginProvides } from "../plugins/listAuthentications";
39
+ import type { GetAuthenticationPluginProvides } from "../plugins/getAuthentication";
40
+ import type { FindFirstAuthenticationPluginProvides } from "../plugins/findFirstAuthentication";
41
+ import type { FindUniqueAuthenticationPluginProvides } from "../plugins/findUniqueAuthentication";
42
+ import type { ListInputFieldsPluginProvides } from "../plugins/listInputFields";
43
+ import type { RequestPluginProvides } from "../plugins/request";
44
+ import type { GetSdkType } from "./plugin";
45
+ import type { ManifestPluginProvides } from "../plugins/manifest";
46
46
  export interface FunctionRegistryEntry {
47
47
  name: string;
48
48
  inputSchema: z.ZodSchema;
@@ -1 +1 @@
1
- {"version":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B,oBAAoB,GACpB,yBAAyB,GACzB,uBAAuB,GACvB,uBAAuB,GACvB,yBAAyB,GACzB,iCAAiC,GACjC,+BAA+B,GAC/B,qCAAqC,GACrC,sCAAsC,GACtC,6BAA6B,GAC7B,qBAAqB,GACrB,wBAAwB,CAC3B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Generic utility functions for creating paginated SDK functions
3
3
  */
4
- import { z } from "zod";
4
+ import type { z } from "zod";
5
5
  /**
6
6
  * Helper function to extract cursor from pagination data
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"function-utils.d.ts","sourceRoot":"","sources":["../../src/utils/function-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GAChD,MAAM,GAAG,SAAS,CAYpB;AAcD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EACR,OAAO,EACP,cAAc,SAAS,QAAQ,GAAG,QAAQ,EAE1C,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,OAAO,CAAC,EAC/C,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,cAMQ,QAAQ,KAAG,OAAO,CAAC,OAAO,CAAC,CAqBxE;AAiDD;;;;;GAKG;AACH,KAAK,eAAe,CAAC,OAAO,IAAI,OAAO,SAAS;IAC9C,IAAI,EAAE,GAAG,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACG,OAAO,GACP;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3C,KAAK,QAAQ,CAAC,OAAO,IAAI,OAAO,SAAS;IAAE,IAAI,EA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AC3C,CA8EF"}
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import type { z } from "zod";
2
2
  export declare function createValidator<TSchema extends z.ZodSchema>(schema: TSchema): (input: unknown) => z.infer<TSchema>;
3
3
  export declare const validateOptions: <TOptions, TSchemaOptions extends TOptions>(schema: z.ZodSchema<TSchemaOptions>, options: TOptions) => any;
4
4
  //# sourceMappingURL=validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,wBAAgB,eAAe,CAAC,OAAO,SAAS,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,IAC/C,OAAO,OAAO,KAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAG7D;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,EAAE,cAAc,SAAS,QAAQ,EACvE,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,EACnC,SAAS,QAAQ,QAGlB,CAAC"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgC7B,wBAAgB,eAAe,CAAC,OAAO,SAAS,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,IAC/C,OAAO,OAAO,KAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAG7D;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,EAAE,cAAc,SAAS,QAAQ,EACvE,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,EACnC,SAAS,QAAQ,QAGlB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
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/api/types.ts CHANGED
@@ -9,8 +9,9 @@
9
9
  * to ensure a single source of truth and eliminate duplication.
10
10
  */
11
11
 
12
- import { z } from "zod";
13
- import {
12
+ import type { SdkEvent } from "../types/events";
13
+ import type { z } from "zod";
14
+ import type {
14
15
  NeedChoicesSchema,
15
16
  NeedSchema,
16
17
  ActionLinksSchema,
@@ -49,7 +50,7 @@ export interface ApiClientOptions {
49
50
  getToken?: () => Promise<string | undefined>;
50
51
  debug?: boolean;
51
52
  fetch?: typeof globalThis.fetch;
52
- onEvent?: (event: any) => void;
53
+ onEvent?: (event: SdkEvent) => void;
53
54
  }
54
55
 
55
56
  export interface ApiClient {
@@ -96,7 +97,7 @@ export interface PollOptions extends RequestOptions {
96
97
  }
97
98
 
98
99
  export interface DebugLogger {
99
- (message: string, data?: any): void;
100
+ (message: string, data?: unknown): void;
100
101
  }
101
102
 
102
103
  // ============================================================================
@@ -1,4 +1,4 @@
1
- import { ActionExecutionOptions } from "./types";
1
+ import type { ActionExecutionOptions } from "./types";
2
2
  import type { ActionProxy } from "./types";
3
3
  import { ZapierValidationError } from "../../types/errors";
4
4
  import type { Plugin, GetSdkType } from "../../types/plugin";
@@ -1,4 +1,4 @@
1
- import { RelayRequestOptions } from "../request/schemas";
1
+ import type { RelayRequestOptions } from "../request/schemas";
2
2
  import type { Plugin, GetSdkType } from "../../types/plugin";
3
3
  import type { RequestPluginProvides } from "../request";
4
4
 
@@ -1,6 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { AppKeyPropertySchema } from "../../types/properties";
3
3
  import type { AuthenticationItem } from "../../types/domain";
4
+ import type {
5
+ ZapierAuthenticationError,
6
+ ZapierApiError,
7
+ ZapierValidationError,
8
+ ZapierUnknownError,
9
+ } from "../../types/errors";
4
10
 
5
11
  // Pure Zod schema - no resolver metadata!
6
12
  export const FindFirstAuthenticationSchema = z
@@ -28,10 +34,10 @@ export type FindFirstAuthenticationOptions = z.infer<
28
34
 
29
35
  // Error union for this function (inherits from listAuthenticationsSafe)
30
36
  export type FindFirstAuthenticationError =
31
- | import("../../types/errors").ZapierAuthenticationError
32
- | import("../../types/errors").ZapierApiError
33
- | import("../../types/errors").ZapierValidationError
34
- | import("../../types/errors").ZapierUnknownError;
37
+ | ZapierAuthenticationError
38
+ | ZapierApiError
39
+ | ZapierValidationError
40
+ | ZapierUnknownError;
35
41
 
36
42
  // SDK function interface
37
43
  export interface FindFirstAuthenticationSdkFunction {
@@ -1,6 +1,13 @@
1
1
  import { z } from "zod";
2
2
  import { AppKeyPropertySchema } from "../../types/properties";
3
3
  import type { AuthenticationItem } from "../../types/domain";
4
+ import type {
5
+ ZapierAuthenticationError,
6
+ ZapierApiError,
7
+ ZapierResourceNotFoundError,
8
+ ZapierValidationError,
9
+ ZapierUnknownError,
10
+ } from "../../types/errors";
4
11
 
5
12
  // Pure Zod schema - no resolver metadata!
6
13
  export const FindUniqueAuthenticationSchema = z
@@ -28,11 +35,11 @@ export type FindUniqueAuthenticationOptions = z.infer<
28
35
 
29
36
  // Error union for this function
30
37
  export type FindUniqueAuthenticationError =
31
- | import("../../types/errors").ZapierAuthenticationError
32
- | import("../../types/errors").ZapierApiError
33
- | import("../../types/errors").ZapierResourceNotFoundError
34
- | import("../../types/errors").ZapierValidationError
35
- | import("../../types/errors").ZapierUnknownError;
38
+ | ZapierAuthenticationError
39
+ | ZapierApiError
40
+ | ZapierResourceNotFoundError
41
+ | ZapierValidationError
42
+ | ZapierUnknownError;
36
43
 
37
44
  // SDK function interface
38
45
  export interface FindUniqueAuthenticationSdkFunction {
@@ -5,6 +5,14 @@ import {
5
5
  ActionKeyPropertySchema,
6
6
  } from "../../types/properties";
7
7
  import type { ActionItem } from "../../types/domain";
8
+ import type {
9
+ ZapierAuthenticationError,
10
+ ZapierApiError,
11
+ ZapierAppNotFoundError,
12
+ ZapierValidationError,
13
+ ZapierResourceNotFoundError,
14
+ ZapierUnknownError,
15
+ } from "../../types/errors";
8
16
 
9
17
  // Pure Zod schema - no resolver metadata!
10
18
  export const GetActionSchema = z
@@ -20,12 +28,12 @@ export type GetActionOptions = z.infer<typeof GetActionSchema>;
20
28
 
21
29
  // Error union for this function (inherits from listActionsSafe + resource not found)
22
30
  export type GetActionError =
23
- | import("../../types/errors").ZapierAuthenticationError
24
- | import("../../types/errors").ZapierApiError
25
- | import("../../types/errors").ZapierAppNotFoundError
26
- | import("../../types/errors").ZapierValidationError
27
- | import("../../types/errors").ZapierResourceNotFoundError
28
- | import("../../types/errors").ZapierUnknownError;
31
+ | ZapierAuthenticationError
32
+ | ZapierApiError
33
+ | ZapierAppNotFoundError
34
+ | ZapierValidationError
35
+ | ZapierResourceNotFoundError
36
+ | ZapierUnknownError;
29
37
 
30
38
  // SDK function interface
31
39
  export interface GetActionSdkFunction {
@@ -5,8 +5,8 @@ import type { GetAppOptions } from "./schemas";
5
5
  import type { AppItem } from "../../types/domain";
6
6
  import { ZapierAppNotFoundError } from "../../types/errors";
7
7
  import type { GetSdkType } from "../../types/plugin";
8
- import { GetImplementation } from "../manifest/schemas";
9
- import { ManifestPluginProvides } from "../manifest";
8
+ import type { GetImplementation } from "../manifest/schemas";
9
+ import type { ManifestPluginProvides } from "../manifest";
10
10
 
11
11
  // GetApp plugin provides interface - getApp goes directly to SDK root
12
12
  export interface GetAppPluginProvides {
@@ -3,7 +3,7 @@ import { AppKeyPropertySchema } from "../../types/properties";
3
3
  import { withOutputSchema } from "../../utils/schema-utils";
4
4
  import { AppItemSchema } from "../../schemas/App";
5
5
  import type { AppItem } from "../../types/domain";
6
- import {
6
+ import type {
7
7
  ZapierApiError,
8
8
  ZapierAppNotFoundError,
9
9
  ZapierValidationError,
@@ -1,5 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import type { AuthenticationItem } from "../../types/domain";
3
+ import type {
4
+ ZapierAuthenticationError,
5
+ ZapierResourceNotFoundError,
6
+ ZapierApiError,
7
+ ZapierValidationError,
8
+ ZapierUnknownError,
9
+ } from "../../types/errors";
3
10
 
4
11
  // Pure Zod schema - no resolver metadata!
5
12
  export const GetAuthenticationSchema = z
@@ -17,11 +24,11 @@ export type GetAuthenticationOptions = z.infer<typeof GetAuthenticationSchema>;
17
24
 
18
25
  // Error union for this function
19
26
  export type GetAuthenticationError =
20
- | import("../../types/errors").ZapierAuthenticationError
21
- | import("../../types/errors").ZapierResourceNotFoundError
22
- | import("../../types/errors").ZapierApiError
23
- | import("../../types/errors").ZapierValidationError
24
- | import("../../types/errors").ZapierUnknownError;
27
+ | ZapierAuthenticationError
28
+ | ZapierResourceNotFoundError
29
+ | ZapierApiError
30
+ | ZapierValidationError
31
+ | ZapierUnknownError;
25
32
 
26
33
  // SDK function interface - ready to be mixed into main SDK interface
27
34
  export interface GetAuthenticationSdkFunction {
@@ -3,7 +3,7 @@ import { withOutputSchema } from "../../utils/schema-utils";
3
3
  import { UserProfileItemSchema } from "../../schemas/UserProfile";
4
4
  import type { FunctionOptions } from "../../types/functions";
5
5
  import type { UserProfileItem } from "../../types/domain";
6
- import { ZapierApiError, ZapierValidationError } from "../../types/errors";
6
+ import type { ZapierApiError, ZapierValidationError } from "../../types/errors";
7
7
 
8
8
  // Union of all possible errors for getProfile
9
9
  export type GetProfileError = ZapierApiError | ZapierValidationError;
@@ -12,8 +12,8 @@ import {
12
12
  ZapierAuthenticationError,
13
13
  } from "../../types/errors";
14
14
  import { createPaginatedFunction } from "../../utils/function-utils";
15
- import { ManifestPluginProvides } from "../manifest";
16
- import { GetVersionedImplementationId } from "../manifest/schemas";
15
+ import type { ManifestPluginProvides } from "../manifest";
16
+ import type { GetVersionedImplementationId } from "../manifest/schemas";
17
17
 
18
18
  export interface ListActionsPluginProvides {
19
19
  listActions: (options?: ListActionsOptions) => Promise<{
@@ -7,6 +7,11 @@ import { withOutputSchema } from "../../utils/schema-utils";
7
7
  import { ActionItemSchema } from "../../schemas/Action";
8
8
  import type { ActionItem } from "../../types/domain";
9
9
  import type { PaginatedSdkFunction } from "../../types/functions";
10
+ import type {
11
+ ZapierAuthenticationError,
12
+ ZapierValidationError,
13
+ ZapierUnknownError,
14
+ } from "../../types/errors";
10
15
 
11
16
  // Pure Zod schema - no resolver metadata!
12
17
  export const ListActionsSchema = withOutputSchema(
@@ -44,9 +49,9 @@ export interface ListActionsPage {
44
49
 
45
50
  // Error union for this function
46
51
  export type ListActionsError =
47
- | import("../../types/errors").ZapierAuthenticationError
48
- | import("../../types/errors").ZapierValidationError
49
- | import("../../types/errors").ZapierUnknownError;
52
+ | ZapierAuthenticationError
53
+ | ZapierValidationError
54
+ | ZapierUnknownError;
50
55
 
51
56
  // SDK function interface
52
57
  export interface ListActionsSdkFunction {
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import type { AppItem } from "../../types/domain";
3
3
  import type { PaginatedSdkFunction } from "../../types/functions";
4
- import { ZapierApiError, ZapierValidationError } from "../../types/errors";
4
+ import type { ZapierApiError, ZapierValidationError } from "../../types/errors";
5
5
  import { AppItemSchema } from "../../schemas/App";
6
6
  import { withOutputSchema } from "../../utils/schema-utils";
7
7
 
@@ -16,8 +16,8 @@ import {
16
16
  createPaginatedFunction,
17
17
  extractCursor,
18
18
  } from "../../utils/function-utils";
19
- import { GetVersionedImplementationId } from "../manifest/schemas";
20
- import { ManifestPluginProvides } from "../manifest";
19
+ import type { GetVersionedImplementationId } from "../manifest/schemas";
20
+ import type { ManifestPluginProvides } from "../manifest";
21
21
 
22
22
  export interface ListAuthenticationsPluginProvides {
23
23
  listAuthentications: (options?: ListAuthenticationsOptions) => Promise<{
@@ -2,6 +2,13 @@ import { z } from "zod";
2
2
  import { AppKeyPropertySchema } from "../../types/properties";
3
3
  import type { PaginatedSdkFunction } from "../../types/functions";
4
4
  import type { AuthenticationItem } from "../../types/domain";
5
+ import type {
6
+ ZapierAuthenticationError,
7
+ ZapierApiError,
8
+ ZapierAppNotFoundError,
9
+ ZapierValidationError,
10
+ ZapierUnknownError,
11
+ } from "../../types/errors";
5
12
 
6
13
  // Pure Zod schema - no resolver metadata!
7
14
  export const ListAuthenticationsSchema = z
@@ -45,11 +52,11 @@ export interface ListAuthenticationsPage {
45
52
 
46
53
  // Error union for this function
47
54
  export type ListAuthenticationsError =
48
- | import("../../types/errors").ZapierAuthenticationError
49
- | import("../../types/errors").ZapierApiError
50
- | import("../../types/errors").ZapierAppNotFoundError
51
- | import("../../types/errors").ZapierValidationError
52
- | import("../../types/errors").ZapierUnknownError;
55
+ | ZapierAuthenticationError
56
+ | ZapierApiError
57
+ | ZapierAppNotFoundError
58
+ | ZapierValidationError
59
+ | ZapierUnknownError;
53
60
 
54
61
  // SDK function interface - ready to be mixed into main SDK interface
55
62
  export interface ListAuthenticationsSdkFunction {
@@ -10,7 +10,7 @@ import {
10
10
  import { ZapierConfigurationError, ZapierApiError } from "../../types/errors";
11
11
  import { createPaginatedFunction } from "../../utils/function-utils";
12
12
  import type { GetAppPluginProvides } from "../getApp";
13
- import { GetVersionedImplementationId } from "../manifest/schemas";
13
+ import type { GetVersionedImplementationId } from "../manifest/schemas";
14
14
 
15
15
  // Enums for input field transformation
16
16
  enum InputFieldType {
@@ -8,6 +8,14 @@ import {
8
8
  } from "../../types/properties";
9
9
  import type { InputFieldItem } from "../../types/domain";
10
10
  import type { PaginatedSdkFunction } from "../../types/functions";
11
+ import type {
12
+ ZapierConfigurationError,
13
+ ZapierApiError,
14
+ ZapierAuthenticationError,
15
+ ZapierAppNotFoundError,
16
+ ZapierValidationError,
17
+ ZapierUnknownError,
18
+ } from "../../types/errors";
11
19
 
12
20
  // Pure Zod schema - no resolver metadata!
13
21
  export const ListInputFieldsSchema = z
@@ -37,12 +45,12 @@ export type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
37
45
 
38
46
  // Error union for this function
39
47
  export type ListInputFieldsError =
40
- | import("../../types/errors").ZapierConfigurationError
41
- | import("../../types/errors").ZapierApiError
42
- | import("../../types/errors").ZapierAuthenticationError
43
- | import("../../types/errors").ZapierAppNotFoundError
44
- | import("../../types/errors").ZapierValidationError
45
- | import("../../types/errors").ZapierUnknownError;
48
+ | ZapierConfigurationError
49
+ | ZapierApiError
50
+ | ZapierAuthenticationError
51
+ | ZapierAppNotFoundError
52
+ | ZapierValidationError
53
+ | ZapierUnknownError;
46
54
 
47
55
  // Page result structure
48
56
  export interface ListInputFieldsPage {
@@ -6,7 +6,7 @@ import type { AppItem } from "../../types/domain";
6
6
  import { readFileSync, writeFileSync, existsSync } from "fs";
7
7
  import { resolve } from "path";
8
8
  import { z } from "zod";
9
- import { ListAppsPluginProvides } from "../listApps";
9
+ import type { ListAppsPluginProvides } from "../listApps";
10
10
 
11
11
  export interface LockVersionPluginProvides {
12
12
  lockVersion: (
@@ -5,13 +5,14 @@ import type {
5
5
  GetManifestEntry,
6
6
  GetVersionedImplementationId,
7
7
  Manifest,
8
+ ManifestPluginOptionsSchema,
8
9
  } from "./schemas";
9
- import { ManifestSchema, ManifestPluginOptionsSchema } from "./schemas";
10
+ import { ManifestSchema } from "./schemas";
10
11
  import type { GetSdkType, Plugin } from "../../types/plugin";
11
- import { z } from "zod";
12
- import { ApiClient } from "../../api";
13
- import { ListAppsPluginProvides } from "../listApps";
14
- import { ImplementationsResponse } from "../../api/types";
12
+ import type { z } from "zod";
13
+ import type { ApiClient } from "../../api";
14
+ import type { ListAppsPluginProvides } from "../listApps";
15
+ import type { ImplementationsResponse } from "../../api/types";
15
16
  import {
16
17
  normalizeImplementationToAppItem,
17
18
  splitVersionedKey,
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { AppItem } from "../../types/domain";
2
+ import type { AppItem } from "../../types/domain";
3
3
 
4
4
  export type ManifestEntry = {
5
5
  implementationName: string;
@@ -1,5 +1,5 @@
1
1
  import type { Plugin } from "../../types/plugin";
2
- import { FunctionRegistryEntry } from "../../types/sdk";
2
+ import type { FunctionRegistryEntry } from "../../types/sdk";
3
3
 
4
4
  export interface RegisterPluginFunctionOptions {}
5
5
 
@@ -1,4 +1,9 @@
1
1
  import { z } from "zod";
2
+ import type {
3
+ ZapierApiError,
4
+ ZapierValidationError,
5
+ ZapierUnknownError,
6
+ } from "../../types/errors";
2
7
 
3
8
  // Pure Zod schema for the request function
4
9
  export const RelayRequestSchema = z
@@ -47,9 +52,9 @@ export type RelayRequestOptions = z.infer<typeof RelayRequestSchema>;
47
52
 
48
53
  // Error union for this function
49
54
  export type RelayRequestError =
50
- | import("../../types/errors").ZapierApiError
51
- | import("../../types/errors").ZapierValidationError
52
- | import("../../types/errors").ZapierUnknownError;
55
+ | ZapierApiError
56
+ | ZapierValidationError
57
+ | ZapierUnknownError;
53
58
 
54
59
  // SDK function interface
55
60
  export interface RelayRequestSdkFunction {
@@ -13,7 +13,7 @@ import {
13
13
  import { createPaginatedFunction } from "../../utils/function-utils";
14
14
  import type { GetActionPluginProvides } from "../getAction";
15
15
  import type { GetAppPluginProvides } from "../getApp";
16
- import { GetVersionedImplementationId } from "../manifest/schemas";
16
+ import type { GetVersionedImplementationId } from "../manifest/schemas";
17
17
 
18
18
  export interface RunActionPluginProvides {
19
19
  runAction: (options?: RunActionOptions) => Promise<{ data: any[] }> &
@@ -7,6 +7,12 @@ import {
7
7
  InputsPropertySchema,
8
8
  } from "../../types/properties";
9
9
  import type { PaginatedSdkFunction } from "../../types/functions";
10
+ import type {
11
+ ZapierActionError,
12
+ ZapierValidationError,
13
+ ZapierConfigurationError,
14
+ ZapierUnknownError,
15
+ } from "../../types/errors";
10
16
 
11
17
  // Pure Zod schema - no resolver metadata!
12
18
  export const RunActionSchema = z
@@ -36,18 +42,18 @@ export type RunActionOptions = z.infer<typeof RunActionSchema>;
36
42
 
37
43
  // Page result structure (for consistency with other paginated functions)
38
44
  export interface RunActionPage {
39
- data: any[];
45
+ data: unknown[];
40
46
  nextCursor?: string;
41
47
  }
42
48
 
43
49
  // Error union for this function
44
50
  export type RunActionError =
45
- | import("../../types/errors").ZapierActionError
46
- | import("../../types/errors").ZapierValidationError
47
- | import("../../types/errors").ZapierConfigurationError
48
- | import("../../types/errors").ZapierUnknownError;
51
+ | ZapierActionError
52
+ | ZapierValidationError
53
+ | ZapierConfigurationError
54
+ | ZapierUnknownError;
49
55
 
50
56
  // SDK function interface - ready to be mixed into main SDK interface
51
57
  export interface RunActionSdkFunction {
52
- runAction: PaginatedSdkFunction<RunActionOptions, any>;
58
+ runAction: PaginatedSdkFunction<RunActionOptions, unknown>;
53
59
  }