@zapier/zapier-sdk 0.15.12 → 0.16.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 (70) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +2 -0
  3. package/dist/api/schemas.d.ts +133 -1488
  4. package/dist/api/schemas.d.ts.map +1 -1
  5. package/dist/api/schemas.js +10 -10
  6. package/dist/index.cjs +27 -27
  7. package/dist/index.d.mts +296 -1830
  8. package/dist/index.mjs +27 -27
  9. package/dist/plugins/apps/schemas.d.ts +2 -12
  10. package/dist/plugins/apps/schemas.d.ts.map +1 -1
  11. package/dist/plugins/apps/schemas.js +1 -1
  12. package/dist/plugins/fetch/schemas.d.ts +12 -18
  13. package/dist/plugins/fetch/schemas.d.ts.map +1 -1
  14. package/dist/plugins/fetch/schemas.js +1 -1
  15. package/dist/plugins/findFirstAuthentication/schemas.d.ts +2 -14
  16. package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +1 -1
  17. package/dist/plugins/findUniqueAuthentication/schemas.d.ts +2 -14
  18. package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +1 -1
  19. package/dist/plugins/getAction/schemas.d.ts +13 -23
  20. package/dist/plugins/getAction/schemas.d.ts.map +1 -1
  21. package/dist/plugins/getApp/schemas.d.ts +2 -6
  22. package/dist/plugins/getApp/schemas.d.ts.map +1 -1
  23. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +12 -15
  24. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
  25. package/dist/plugins/getProfile/schemas.d.ts +1 -1
  26. package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
  27. package/dist/plugins/listActions/schemas.d.ts +13 -27
  28. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  29. package/dist/plugins/listAuthentications/schemas.d.ts +5 -36
  30. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  31. package/dist/plugins/listInputFieldChoices/schemas.d.ts +13 -36
  32. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
  33. package/dist/plugins/listInputFields/schemas.d.ts +12 -21
  34. package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
  35. package/dist/plugins/manifest/schemas.d.ts +6 -90
  36. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  37. package/dist/plugins/manifest/schemas.js +5 -2
  38. package/dist/plugins/request/schemas.d.ts +24 -68
  39. package/dist/plugins/request/schemas.d.ts.map +1 -1
  40. package/dist/plugins/request/schemas.js +1 -1
  41. package/dist/plugins/runAction/schemas.d.ts +12 -21
  42. package/dist/plugins/runAction/schemas.d.ts.map +1 -1
  43. package/dist/schemas/Action.d.ts +13 -30
  44. package/dist/schemas/Action.d.ts.map +1 -1
  45. package/dist/schemas/App.d.ts +30 -171
  46. package/dist/schemas/App.d.ts.map +1 -1
  47. package/dist/schemas/Auth.d.ts +14 -120
  48. package/dist/schemas/Auth.d.ts.map +1 -1
  49. package/dist/schemas/Field.d.ts +10 -108
  50. package/dist/schemas/Field.d.ts.map +1 -1
  51. package/dist/schemas/UserProfile.d.ts +5 -113
  52. package/dist/schemas/UserProfile.d.ts.map +1 -1
  53. package/dist/temporary-internal-core/schemas/apps/index.d.ts +19 -440
  54. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -1
  55. package/dist/temporary-internal-core/schemas/authentications/index.d.ts +23 -327
  56. package/dist/temporary-internal-core/schemas/authentications/index.d.ts.map +1 -1
  57. package/dist/temporary-internal-core/schemas/authentications/index.js +1 -1
  58. package/dist/temporary-internal-core/schemas/implementations/index.d.ts +9 -393
  59. package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -1
  60. package/dist/types/properties.d.ts +11 -2
  61. package/dist/types/properties.d.ts.map +1 -1
  62. package/dist/types/properties.js +2 -2
  63. package/dist/utils/function-utils.d.ts +2 -14
  64. package/dist/utils/function-utils.d.ts.map +1 -1
  65. package/dist/utils/schema-utils.d.ts.map +1 -1
  66. package/dist/utils/schema-utils.js +10 -9
  67. package/dist/utils/validation.d.ts +1 -1
  68. package/dist/utils/validation.d.ts.map +1 -1
  69. package/dist/utils/validation.js +2 -2
  70. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -4,29 +4,29 @@ import * as os from 'os';
4
4
 
5
5
  // src/types/properties.ts
6
6
  function withFormatter(schema, formatMeta) {
7
- Object.assign(schema._def, {
7
+ Object.assign(schema._zod.def, {
8
8
  formatMeta
9
9
  });
10
10
  return schema;
11
11
  }
12
12
  function withPositional(schema) {
13
- Object.assign(schema._def, {
13
+ Object.assign(schema._zod.def, {
14
14
  positionalMeta: { positional: true }
15
15
  });
16
16
  return schema;
17
17
  }
18
18
  function schemaHasPositionalMeta(schema) {
19
- return "positionalMeta" in schema._def;
19
+ return "positionalMeta" in schema._zod.def;
20
20
  }
21
21
  function isPositional(schema) {
22
- if (schemaHasPositionalMeta(schema) && schema._def.positionalMeta?.positional) {
22
+ if (schemaHasPositionalMeta(schema) && schema._zod.def.positionalMeta?.positional) {
23
23
  return true;
24
24
  }
25
25
  if (schema instanceof z.ZodOptional) {
26
- return isPositional(schema._def.innerType);
26
+ return isPositional(schema._zod.def.innerType);
27
27
  }
28
28
  if (schema instanceof z.ZodDefault) {
29
- return isPositional(schema._def.innerType);
29
+ return isPositional(schema._zod.def.innerType);
30
30
  }
31
31
  return false;
32
32
  }
@@ -51,12 +51,12 @@ var ActionTypePropertySchema = z.enum([
51
51
  ]).describe("Action type that matches the action's defined type");
52
52
  var ActionKeyPropertySchema = z.string().min(1).describe("Action key to execute");
53
53
  var AuthenticationIdPropertySchema = z.number().int().describe("Authentication ID to use for this action");
54
- var InputsPropertySchema = z.record(z.unknown()).describe("Input parameters for the action");
54
+ var InputsPropertySchema = z.record(z.string(), z.unknown()).describe("Input parameters for the action");
55
55
  var LimitPropertySchema = z.number().int().min(1).max(MAX_PAGE_LIMIT).default(50).describe("Maximum number of items to return");
56
56
  var OffsetPropertySchema = z.number().int().min(0).default(0).describe("Number of items to skip for pagination");
57
57
  var OutputPropertySchema = z.string().describe("Output file path");
58
58
  var DebugPropertySchema = z.boolean().default(false).describe("Enable debug logging");
59
- var ParamsPropertySchema = z.record(z.unknown()).describe("Additional parameters");
59
+ var ParamsPropertySchema = z.record(z.string(), z.unknown()).describe("Additional parameters");
60
60
 
61
61
  // src/types/errors.ts
62
62
  var ZapierError = class extends Error {
@@ -193,7 +193,7 @@ HTTP Status: ${error.statusCode}`;
193
193
  return message;
194
194
  }
195
195
  var ActionExecutionInputSchema = z.object({
196
- inputs: z.record(z.unknown()).optional(),
196
+ inputs: z.record(z.string(), z.unknown()).optional(),
197
197
  authenticationId: z.number().optional()
198
198
  }).describe(
199
199
  "Execute an action with the given inputs for the bound app, as an alternative to runAction"
@@ -354,7 +354,7 @@ var appsPlugin = ({ sdk }) => {
354
354
  var FetchUrlSchema = z.union([z.string(), z.instanceof(URL)]).describe("The URL to fetch");
355
355
  var FetchInitSchema = z.object({
356
356
  method: z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
357
- headers: z.record(z.string()).optional(),
357
+ headers: z.record(z.string(), z.string()).optional(),
358
358
  body: z.union([
359
359
  z.string(),
360
360
  z.instanceof(FormData),
@@ -574,7 +574,7 @@ var paginate = paginateBuffered;
574
574
  var validate = (schema, input) => {
575
575
  const result = schema.safeParse(input);
576
576
  if (!result.success) {
577
- const errorMessages = result.error.errors.map((error) => {
577
+ const errorMessages = result.error.issues.map((error) => {
578
578
  const path = error.path.length > 0 ? error.path.join(".") : "input";
579
579
  return `${path}: ${error.message}`;
580
580
  });
@@ -582,7 +582,7 @@ var validate = (schema, input) => {
582
582
  ${errorMessages.join("\n ")}`;
583
583
  throw new ZapierValidationError(message, {
584
584
  details: {
585
- zodErrors: result.error.errors,
585
+ zodErrors: result.error.issues,
586
586
  input
587
587
  }
588
588
  });
@@ -1022,7 +1022,7 @@ var AuthenticationSchema = z.object({
1022
1022
  url: z.string().optional(),
1023
1023
  groups: z.string().optional(),
1024
1024
  members: z.string().optional(),
1025
- permissions: z.record(z.boolean()).optional()
1025
+ permissions: z.record(z.string(), z.boolean()).optional()
1026
1026
  });
1027
1027
  z.object({
1028
1028
  count: z.number(),
@@ -1046,7 +1046,7 @@ var UserProfileSchema = z.object({
1046
1046
  email_confirmed: z.boolean(),
1047
1047
  timezone: z.string(),
1048
1048
  photo_url: z.string(),
1049
- has_seen_notifications: z.record(z.boolean().nullable()),
1049
+ has_seen_notifications: z.record(z.string(), z.boolean().nullable()),
1050
1050
  signup: z.string(),
1051
1051
  since_signup: z.string(),
1052
1052
  has_activated: z.boolean(),
@@ -1068,11 +1068,11 @@ var UserProfileSchema = z.object({
1068
1068
  is_temporary: z.boolean(),
1069
1069
  banner_message: z.string(),
1070
1070
  enable_totp_2fa: z.boolean(),
1071
- viewed_help: z.record(z.boolean()),
1071
+ viewed_help: z.record(z.string(), z.boolean()),
1072
1072
  show_editor_migration_mesaging: z.boolean(),
1073
- switches: z.record(z.unknown()),
1074
- organizations: z.array(z.record(z.unknown()).nullable()),
1075
- primary_organization: z.record(z.unknown()).nullable(),
1073
+ switches: z.record(z.string(), z.unknown()),
1074
+ organizations: z.array(z.record(z.string(), z.unknown()).nullable()),
1075
+ primary_organization: z.record(z.string(), z.unknown()).nullable(),
1076
1076
  has_active_zaps: z.boolean(),
1077
1077
  has_google_sso: z.boolean(),
1078
1078
  auth_realm: z.string(),
@@ -1140,14 +1140,14 @@ z.object({
1140
1140
  action: z.string(),
1141
1141
  type_of: z.string(),
1142
1142
  authentication_id: z.number().optional(),
1143
- params: z.record(z.unknown()).optional()
1143
+ params: z.record(z.string(), z.unknown()).optional()
1144
1144
  });
1145
1145
  z.object({
1146
1146
  success: z.boolean(),
1147
1147
  needs: z.array(NeedSchema).optional(),
1148
1148
  errors: z.array(z.string()).optional(),
1149
1149
  last_fetched_at: z.string().optional(),
1150
- schema: z.record(z.unknown()).optional()
1150
+ schema: z.record(z.string(), z.unknown()).optional()
1151
1151
  });
1152
1152
  var ImplementationSchema = z.object({
1153
1153
  selected_api: z.string(),
@@ -1163,7 +1163,7 @@ var ImplementationSchema = z.object({
1163
1163
  is_hidden: z.string().optional(),
1164
1164
  name: z.string().optional(),
1165
1165
  slug: z.string().optional(),
1166
- images: z.record(z.string().nullable()).optional(),
1166
+ images: z.record(z.string(), z.string().nullable()).optional(),
1167
1167
  primary_color: z.string().optional(),
1168
1168
  secondary_color: z.string().optional(),
1169
1169
  current_implementation: z.string().optional(),
@@ -1250,7 +1250,7 @@ z.object({
1250
1250
  authentication_id: z.number().optional().describe(
1251
1251
  "If the app needs auth, provide an `authentication_id` that has the `selected_api` of the app you want to run. Can be any auth visible to the user (including shared)."
1252
1252
  ),
1253
- params: z.record(z.unknown()).optional().describe(
1253
+ params: z.record(z.string(), z.unknown()).optional().describe(
1254
1254
  "Object that matches the input the node would normally get. Has all the same keys/types as the `needs` of the action."
1255
1255
  ),
1256
1256
  page: z.number().optional().default(0),
@@ -2464,7 +2464,7 @@ var AuthenticationSchema2 = z.object({
2464
2464
  url: z.string().optional(),
2465
2465
  groups: z.string().optional(),
2466
2466
  members: z.string().optional(),
2467
- permissions: z.record(z.boolean()).optional()
2467
+ permissions: z.record(z.string(), z.boolean()).optional()
2468
2468
  });
2469
2469
  z.object({
2470
2470
  count: z.number(),
@@ -2783,7 +2783,7 @@ var RelayRequestSchema = z.object({
2783
2783
  "Optional JSON string authentication template to bypass Notary lookup"
2784
2784
  ),
2785
2785
  headers: z.union([
2786
- z.record(z.string()),
2786
+ z.record(z.string(), z.string()),
2787
2787
  z.instanceof(Headers),
2788
2788
  z.array(z.tuple([z.string(), z.string()]))
2789
2789
  ]).optional().describe("Request headers")
@@ -2920,8 +2920,8 @@ var ActionEntrySchema = z.object({
2920
2920
  actionKey: z.string().describe("Action key identifier"),
2921
2921
  actionType: z.string().describe("Action type (e.g., 'read', 'write', 'search')"),
2922
2922
  authenticationId: z.number().nullable().optional().describe("Authentication ID used"),
2923
- inputs: z.record(z.unknown()).optional().describe("Resolved input values"),
2924
- schema: z.record(z.unknown()).describe(
2923
+ inputs: z.record(z.string(), z.unknown()).optional().describe("Resolved input values"),
2924
+ schema: z.record(z.string(), z.unknown()).describe(
2925
2925
  "Complete JSON Schema from getInputFieldsSchema (includes $schema, type, properties, required, etc.)"
2926
2926
  ),
2927
2927
  createdAt: z.string().describe("ISO 8601 timestamp when created")
@@ -4986,7 +4986,7 @@ function getCpuTime() {
4986
4986
 
4987
4987
  // package.json
4988
4988
  var package_default = {
4989
- version: "0.15.12"};
4989
+ version: "0.16.0"};
4990
4990
 
4991
4991
  // src/plugins/eventEmission/builders.ts
4992
4992
  function createBaseEvent(context = {}) {
@@ -2,21 +2,11 @@ import { z } from "zod";
2
2
  export declare const ActionExecutionInputSchema: z.ZodObject<{
3
3
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4
4
  authenticationId: z.ZodOptional<z.ZodNumber>;
5
- }, "strip", z.ZodTypeAny, {
6
- authenticationId?: number | undefined;
7
- inputs?: Record<string, unknown> | undefined;
8
- }, {
9
- authenticationId?: number | undefined;
10
- inputs?: Record<string, unknown> | undefined;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type ActionExecutionOptions = z.infer<typeof ActionExecutionInputSchema>;
13
7
  export declare const AppFactoryInputSchema: z.ZodObject<{
14
8
  authenticationId: z.ZodNumber;
15
- }, "strip", z.ZodTypeAny, {
16
- authenticationId: number;
17
- }, {
18
- authenticationId: number;
19
- }>;
9
+ }, z.core.$strip>;
20
10
  export type AppFactoryInput = z.infer<typeof AppFactoryInputSchema>;
21
11
  interface BaseActionTypeProxy {
22
12
  [action: string]: (options?: ActionExecutionOptions) => Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/apps/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;EAOpC,CAAC;AAGJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEhF,eAAO,MAAM,qBAAqB;;;;;;EAIgB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,UAAU,mBAAmB;IAC3B,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAC;QAC9D,IAAI,EAAE,GAAG,EAAE,CAAC;QACZ,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,GACA,aAAa,CAAC;QAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG;QACpD,KAAK,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC;KAC7B,CAAC;CACL;AAGD,UAAU,eAAe;IACvB,KAAK,EAAE,CACL,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,CAAC,EAAE,WAAW,GAAG;QACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,KACE,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxB;AAGD,KAAK,eAAe,GAAG,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEtE,UAAU,QAAQ;IAChB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC;CACjC;AAED,UAAU,UAAU;IAClB,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CAAC;CACtC;AAGD,KAAK,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;CACpC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/apps/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;iBAOpC,CAAC;AAGJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEhF,eAAO,MAAM,qBAAqB;;iBAIgB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,UAAU,mBAAmB;IAC3B,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAC;QAC9D,IAAI,EAAE,GAAG,EAAE,CAAC;QACZ,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC,GACA,aAAa,CAAC;QAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG;QACpD,KAAK,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC;KAC7B,CAAC;CACL;AAGD,UAAU,eAAe;IACvB,KAAK,EAAE,CACL,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,IAAI,CAAC,EAAE,WAAW,GAAG;QACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,KACE,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxB;AAGD,KAAK,eAAe,GAAG,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEtE,UAAU,QAAQ;IAChB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC;CACjC;AAED,UAAU,UAAU;IAClB,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CAAC;CACtC;AAGD,KAAK,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;CACpC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export const ActionExecutionInputSchema = z
3
3
  .object({
4
- inputs: z.record(z.unknown()).optional(),
4
+ inputs: z.record(z.string(), z.unknown()).optional(),
5
5
  authenticationId: z.number().optional(),
6
6
  })
7
7
  .describe("Execute an action with the given inputs for the bound app, as an alternative to runAction");
@@ -1,25 +1,19 @@
1
1
  import { z } from "zod";
2
- export declare const FetchUrlSchema: z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>;
2
+ export declare const FetchUrlSchema: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<URL, URL>]>;
3
3
  export declare const FetchInitSchema: z.ZodOptional<z.ZodObject<{
4
- method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>>;
4
+ method: z.ZodOptional<z.ZodEnum<{
5
+ POST: "POST";
6
+ GET: "GET";
7
+ PUT: "PUT";
8
+ DELETE: "DELETE";
9
+ PATCH: "PATCH";
10
+ HEAD: "HEAD";
11
+ OPTIONS: "OPTIONS";
12
+ }>>;
5
13
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
- body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<FormData, z.ZodTypeDef, FormData>, z.ZodType<URLSearchParams, z.ZodTypeDef, URLSearchParams>]>>;
14
+ body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<FormData, FormData>, z.ZodCustom<URLSearchParams, URLSearchParams>]>>;
7
15
  authenticationId: z.ZodOptional<z.ZodNumber>;
8
16
  callbackUrl: z.ZodOptional<z.ZodString>;
9
17
  authenticationTemplate: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
12
- authenticationId?: number | undefined;
13
- headers?: Record<string, string> | undefined;
14
- body?: string | FormData | URLSearchParams | undefined;
15
- callbackUrl?: string | undefined;
16
- authenticationTemplate?: string | undefined;
17
- }, {
18
- method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
19
- authenticationId?: number | undefined;
20
- headers?: Record<string, string> | undefined;
21
- body?: string | FormData | URLSearchParams | undefined;
22
- callbackUrl?: string | undefined;
23
- authenticationTemplate?: string | undefined;
24
- }>>;
18
+ }, z.core.$strip>>;
25
19
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc,8DAEI,CAAC;AAEhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;GA6ByB,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc,2DAEI,CAAC;AAEhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;kBA6ByB,CAAC"}
@@ -8,7 +8,7 @@ export const FetchInitSchema = z
8
8
  method: z
9
9
  .enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"])
10
10
  .optional(),
11
- headers: z.record(z.string()).optional(),
11
+ headers: z.record(z.string(), z.string()).optional(),
12
12
  body: z
13
13
  .union([
14
14
  z.string(),
@@ -3,25 +3,13 @@ import type { AuthenticationItem } from "../../types/domain";
3
3
  import type { ZapierAuthenticationError, ZapierApiError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
4
4
  export declare const FindFirstAuthenticationSchema: z.ZodObject<{
5
5
  appKey: z.ZodOptional<z.ZodString & {
6
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
6
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
7
7
  }>;
8
8
  search: z.ZodOptional<z.ZodString>;
9
9
  title: z.ZodOptional<z.ZodString>;
10
10
  accountId: z.ZodOptional<z.ZodString>;
11
11
  owner: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- search?: string | undefined;
14
- title?: string | undefined;
15
- appKey?: string | undefined;
16
- accountId?: string | undefined;
17
- owner?: string | undefined;
18
- }, {
19
- search?: string | undefined;
20
- title?: string | undefined;
21
- appKey?: string | undefined;
22
- accountId?: string | undefined;
23
- owner?: string | undefined;
24
- }>;
12
+ }, z.core.$strip>;
25
13
  export type FindFirstAuthenticationOptions = z.infer<typeof FindFirstAuthenticationSchema>;
26
14
  export type FindFirstAuthenticationError = ZapierAuthenticationError | ZapierApiError | ZapierValidationError | ZapierUnknownError;
27
15
  export interface FindFirstAuthenticationSdkFunction {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/findFirstAuthentication/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;EAgBwB,CAAC;AAGnE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,6BAA6B,CACrC,CAAC;AAGF,MAAM,MAAM,4BAA4B,GACpC,yBAAyB,GACzB,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,kCAAkC;IACjD,uBAAuB,EAAE,CACvB,OAAO,CAAC,EAAE,8BAA8B,KACrC,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;CACnD"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/findFirstAuthentication/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,6BAA6B;;;;;;;;iBAgBwB,CAAC;AAGnE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,6BAA6B,CACrC,CAAC;AAGF,MAAM,MAAM,4BAA4B,GACpC,yBAAyB,GACzB,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,kCAAkC;IACjD,uBAAuB,EAAE,CACvB,OAAO,CAAC,EAAE,8BAA8B,KACrC,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;CACnD"}
@@ -3,25 +3,13 @@ import type { AuthenticationItem } from "../../types/domain";
3
3
  import type { ZapierAuthenticationError, ZapierApiError, ZapierResourceNotFoundError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
4
4
  export declare const FindUniqueAuthenticationSchema: z.ZodObject<{
5
5
  appKey: z.ZodOptional<z.ZodString & {
6
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
6
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
7
7
  }>;
8
8
  search: z.ZodOptional<z.ZodString>;
9
9
  title: z.ZodOptional<z.ZodString>;
10
10
  accountId: z.ZodOptional<z.ZodString>;
11
11
  owner: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- search?: string | undefined;
14
- title?: string | undefined;
15
- appKey?: string | undefined;
16
- accountId?: string | undefined;
17
- owner?: string | undefined;
18
- }, {
19
- search?: string | undefined;
20
- title?: string | undefined;
21
- appKey?: string | undefined;
22
- accountId?: string | undefined;
23
- owner?: string | undefined;
24
- }>;
12
+ }, z.core.$strip>;
25
13
  export type FindUniqueAuthenticationOptions = z.infer<typeof FindUniqueAuthenticationSchema>;
26
14
  export type FindUniqueAuthenticationError = ZapierAuthenticationError | ZapierApiError | ZapierResourceNotFoundError | ZapierValidationError | ZapierUnknownError;
27
15
  export interface FindUniqueAuthenticationSdkFunction {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/findUniqueAuthentication/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;EAgBsB,CAAC;AAGlE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAGF,MAAM,MAAM,6BAA6B,GACrC,yBAAyB,GACzB,cAAc,GACd,2BAA2B,GAC3B,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,mCAAmC;IAClD,wBAAwB,EAAE,CACxB,OAAO,CAAC,EAAE,+BAA+B,KACtC,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,CAAA;KAAE,CAAC,CAAC;CAC5C"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/findUniqueAuthentication/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,8BAA8B;;;;;;;;iBAgBsB,CAAC;AAGlE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAGF,MAAM,MAAM,6BAA6B,GACrC,yBAAyB,GACzB,cAAc,GACd,2BAA2B,GAC3B,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,mCAAmC;IAClD,wBAAwB,EAAE,CACxB,OAAO,CAAC,EAAE,+BAA+B,KACtC,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,CAAA;KAAE,CAAC,CAAC;CAC5C"}
@@ -3,33 +3,23 @@ import type { ActionItem } from "../../types/domain";
3
3
  import type { ZapierAuthenticationError, ZapierApiError, ZapierAppNotFoundError, ZapierValidationError, ZapierResourceNotFoundError, ZapierUnknownError } from "../../types/errors";
4
4
  export declare const GetActionSchema: z.ZodObject<{
5
5
  appKey: z.ZodString & {
6
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
6
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
7
7
  };
8
- actionType: z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>;
8
+ actionType: z.ZodEnum<{
9
+ search: "search";
10
+ filter: "filter";
11
+ read: "read";
12
+ read_bulk: "read_bulk";
13
+ run: "run";
14
+ search_and_write: "search_and_write";
15
+ search_or_write: "search_or_write";
16
+ write: "write";
17
+ }>;
9
18
  actionKey: z.ZodString;
10
- } & {
11
19
  _telemetry: z.ZodOptional<z.ZodObject<{
12
20
  isNested: z.ZodOptional<z.ZodBoolean>;
13
- }, "strip", z.ZodTypeAny, {
14
- isNested?: boolean | undefined;
15
- }, {
16
- isNested?: boolean | undefined;
17
- }>>;
18
- }, "strip", z.ZodTypeAny, {
19
- appKey: string;
20
- actionKey: string;
21
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
22
- _telemetry?: {
23
- isNested?: boolean | undefined;
24
- } | undefined;
25
- }, {
26
- appKey: string;
27
- actionKey: string;
28
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
29
- _telemetry?: {
30
- isNested?: boolean | undefined;
31
- } | undefined;
32
- }>;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>;
33
23
  export type GetActionOptions = z.infer<typeof GetActionSchema>;
34
24
  export type GetActionError = ZapierAuthenticationError | ZapierApiError | ZapierAppNotFoundError | ZapierValidationError | ZapierResourceNotFoundError | ZapierUnknownError;
35
25
  export interface GetActionSdkFunction {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOmC,CAAC;AAGhE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG/D,MAAM,MAAM,cAAc,GACtB,yBAAyB,GACzB,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,2BAA2B,GAC3B,kBAAkB,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CACzE"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;iBAOmC,CAAC;AAGhE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG/D,MAAM,MAAM,cAAc,GACtB,yBAAyB,GACzB,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,2BAA2B,GAC3B,kBAAkB,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CACzE"}
@@ -4,13 +4,9 @@ import type { ZapierApiError, ZapierAppNotFoundError, ZapierValidationError } fr
4
4
  export type GetAppError = ZapierAppNotFoundError | ZapierApiError | ZapierValidationError;
5
5
  export declare const GetAppSchema: z.ZodObject<{
6
6
  appKey: z.ZodString & {
7
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
7
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
8
8
  };
9
- }, "strip", z.ZodTypeAny, {
10
- appKey: string;
11
- }, {
12
- appKey: string;
13
- }>;
9
+ }, z.core.$strip>;
14
10
  export type GetAppOptions = z.infer<typeof GetAppSchema>;
15
11
  export interface GetAppSdkFunction {
16
12
  getApp: (options: GetAppOptions) => Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getApp/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAK5B,MAAM,MAAM,WAAW,GACnB,sBAAsB,GACtB,cAAc,GACd,qBAAqB,CAAC;AAG1B,eAAO,MAAM,YAAY;;;;;;;;EAMmC,CAAC;AAG7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGzD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAChE"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getApp/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAK5B,MAAM,MAAM,WAAW,GACnB,sBAAsB,GACtB,cAAc,GACd,qBAAqB,CAAC;AAG1B,eAAO,MAAM,YAAY;;;;iBAMmC,CAAC;AAG7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGzD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAChE"}
@@ -2,25 +2,22 @@ import { z } from "zod";
2
2
  import type { ZapierConfigurationError, ZapierApiError, ZapierAuthenticationError, ZapierAppNotFoundError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
3
3
  export declare const GetInputFieldsSchemaSchema: z.ZodObject<{
4
4
  appKey: z.ZodString & {
5
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
5
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
6
6
  };
7
- actionType: z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>;
7
+ actionType: z.ZodEnum<{
8
+ search: "search";
9
+ filter: "filter";
10
+ read: "read";
11
+ read_bulk: "read_bulk";
12
+ run: "run";
13
+ search_and_write: "search_and_write";
14
+ search_or_write: "search_or_write";
15
+ write: "write";
16
+ }>;
8
17
  actionKey: z.ZodString;
9
18
  authenticationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
19
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
- }, "strip", z.ZodTypeAny, {
12
- appKey: string;
13
- actionKey: string;
14
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
15
- authenticationId?: number | null | undefined;
16
- inputs?: Record<string, unknown> | undefined;
17
- }, {
18
- appKey: string;
19
- actionKey: string;
20
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
21
- authenticationId?: number | null | undefined;
22
- inputs?: Record<string, unknown> | undefined;
23
- }>;
20
+ }, z.core.$strip>;
24
21
  export type GetInputFieldsSchemaOptions = z.infer<typeof GetInputFieldsSchemaSchema>;
25
22
  export type GetInputFieldsSchemaError = ZapierConfigurationError | ZapierApiError | ZapierAuthenticationError | ZapierAppNotFoundError | ZapierValidationError | ZapierUnknownError;
26
23
  export interface GetInputFieldsSchemaSdkFunction {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getInputFieldsSchema/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;EAsBpC,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,+BAA+B;IAC9C,oBAAoB,EAAE,CACpB,OAAO,EAAE,2BAA2B,KACjC,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;CACjD"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getInputFieldsSchema/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;iBAsBpC,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,+BAA+B;IAC9C,oBAAoB,EAAE,CACpB,OAAO,EAAE,2BAA2B,KACjC,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;CACjD"}
@@ -3,7 +3,7 @@ import type { FunctionOptions } from "../../types/functions";
3
3
  import type { UserProfileItem } from "../../types/domain";
4
4
  import type { ZapierApiError, ZapierValidationError } from "../../types/errors";
5
5
  export type GetProfileError = ZapierApiError | ZapierValidationError;
6
- export declare const GetProfileSchema: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
6
+ export declare const GetProfileSchema: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
7
  export type GetProfileOptions = z.infer<typeof GetProfileSchema> & FunctionOptions;
8
8
  export interface GetProfileSdkFunction {
9
9
  getProfile: (options?: GetProfileOptions) => Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getProfile/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,qBAAqB,CAAC;AAGrE,eAAO,MAAM,gBAAgB,+DAGwB,CAAC;AAGtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,GAC9D,eAAe,CAAC;AAGlB,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,CACV,OAAO,CAAC,EAAE,iBAAiB,KACxB,OAAO,CAAC;QAAE,IAAI,EAAE,eAAe,CAAA;KAAE,CAAC,CAAC;CACzC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/getProfile/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,qBAAqB,CAAC;AAGrE,eAAO,MAAM,gBAAgB,+CAGwB,CAAC;AAGtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,GAC9D,eAAe,CAAC;AAGlB,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,CACV,OAAO,CAAC,EAAE,iBAAiB,KACxB,OAAO,CAAC;QAAE,IAAI,EAAE,eAAe,CAAA;KAAE,CAAC,CAAC;CACzC"}
@@ -4,39 +4,25 @@ import type { PaginatedSdkFunction } from "../../types/functions";
4
4
  import type { ZapierAuthenticationError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
5
5
  export declare const ListActionsSchema: z.ZodObject<{
6
6
  appKey: z.ZodString & {
7
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
7
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
8
8
  };
9
- actionType: z.ZodOptional<z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>>;
9
+ actionType: z.ZodOptional<z.ZodEnum<{
10
+ search: "search";
11
+ filter: "filter";
12
+ read: "read";
13
+ read_bulk: "read_bulk";
14
+ run: "run";
15
+ search_and_write: "search_and_write";
16
+ search_or_write: "search_or_write";
17
+ write: "write";
18
+ }>>;
10
19
  pageSize: z.ZodOptional<z.ZodNumber>;
11
20
  maxItems: z.ZodOptional<z.ZodNumber>;
12
21
  cursor: z.ZodOptional<z.ZodString>;
13
- } & {
14
22
  _telemetry: z.ZodOptional<z.ZodObject<{
15
23
  isNested: z.ZodOptional<z.ZodBoolean>;
16
- }, "strip", z.ZodTypeAny, {
17
- isNested?: boolean | undefined;
18
- }, {
19
- isNested?: boolean | undefined;
20
- }>>;
21
- }, "strip", z.ZodTypeAny, {
22
- appKey: string;
23
- actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
24
- cursor?: string | undefined;
25
- maxItems?: number | undefined;
26
- pageSize?: number | undefined;
27
- _telemetry?: {
28
- isNested?: boolean | undefined;
29
- } | undefined;
30
- }, {
31
- appKey: string;
32
- actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
33
- cursor?: string | undefined;
34
- maxItems?: number | undefined;
35
- pageSize?: number | undefined;
36
- _telemetry?: {
37
- isNested?: boolean | undefined;
38
- } | undefined;
39
- }>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
40
26
  export type ListActionsOptions = z.infer<typeof ListActionsSchema>;
41
27
  export interface ListActionsPage {
42
28
  data: ActionItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listActions/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBoB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAGnE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,gBAAgB,GACxB,yBAAyB,GACzB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,oBAAoB,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;CACnE"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listActions/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;iBAqBoB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAGnE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,gBAAgB,GACxB,yBAAyB,GACzB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,oBAAoB,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;CACnE"}
@@ -4,51 +4,20 @@ import type { AuthenticationItem } from "../../types/domain";
4
4
  import type { ZapierAuthenticationError, ZapierApiError, ZapierAppNotFoundError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
5
5
  export declare const ListAuthenticationsSchema: z.ZodObject<{
6
6
  appKey: z.ZodOptional<z.ZodString & {
7
- _def: z.ZodStringDef & import("../..").PositionalMetadata;
7
+ _def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
8
8
  }>;
9
- authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  search: z.ZodOptional<z.ZodString>;
11
11
  title: z.ZodOptional<z.ZodString>;
12
12
  accountId: z.ZodOptional<z.ZodString>;
13
- owner: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"me">]>>;
13
+ owner: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"me">]>>;
14
14
  pageSize: z.ZodOptional<z.ZodNumber>;
15
15
  maxItems: z.ZodOptional<z.ZodNumber>;
16
16
  cursor: z.ZodOptional<z.ZodString>;
17
- } & {
18
17
  _telemetry: z.ZodOptional<z.ZodObject<{
19
18
  isNested: z.ZodOptional<z.ZodBoolean>;
20
- }, "strip", z.ZodTypeAny, {
21
- isNested?: boolean | undefined;
22
- }, {
23
- isNested?: boolean | undefined;
24
- }>>;
25
- }, "strip", z.ZodTypeAny, {
26
- search?: string | undefined;
27
- title?: string | undefined;
28
- appKey?: string | undefined;
29
- cursor?: string | undefined;
30
- maxItems?: number | undefined;
31
- pageSize?: number | undefined;
32
- _telemetry?: {
33
- isNested?: boolean | undefined;
34
- } | undefined;
35
- accountId?: string | undefined;
36
- owner?: string | undefined;
37
- authenticationIds?: string[] | undefined;
38
- }, {
39
- search?: string | undefined;
40
- title?: string | undefined;
41
- appKey?: string | undefined;
42
- cursor?: string | undefined;
43
- maxItems?: number | undefined;
44
- pageSize?: number | undefined;
45
- _telemetry?: {
46
- isNested?: boolean | undefined;
47
- } | undefined;
48
- accountId?: string | undefined;
49
- owner?: string | undefined;
50
- authenticationIds?: string[] | undefined;
51
- }>;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>;
52
21
  export type ListAuthenticationsOptions = z.infer<typeof ListAuthenticationsSchema>;
53
22
  export interface ListAuthenticationsPage {
54
23
  data: AuthenticationItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listAuthentications/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC+B,CAAC;AAGtE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAGF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,wBAAwB,GAChC,yBAAyB,GACzB,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,8BAA8B;IAC7C,mBAAmB,EAAE,oBAAoB,CACvC,0BAA0B,EAC1B,kBAAkB,CACnB,CAAC;CACH"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listAuthentications/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBAqC+B,CAAC;AAGtE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAGF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,wBAAwB,GAChC,yBAAyB,GACzB,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,8BAA8B;IAC7C,mBAAmB,EAAE,oBAAoB,CACvC,0BAA0B,EAC1B,kBAAkB,CACnB,CAAC;CACH"}