@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.
- package/CHANGELOG.md +19 -0
- package/LICENSE +2 -0
- package/dist/api/schemas.d.ts +133 -1488
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +10 -10
- package/dist/index.cjs +27 -27
- package/dist/index.d.mts +296 -1830
- package/dist/index.mjs +27 -27
- package/dist/plugins/apps/schemas.d.ts +2 -12
- package/dist/plugins/apps/schemas.d.ts.map +1 -1
- package/dist/plugins/apps/schemas.js +1 -1
- package/dist/plugins/fetch/schemas.d.ts +12 -18
- package/dist/plugins/fetch/schemas.d.ts.map +1 -1
- package/dist/plugins/fetch/schemas.js +1 -1
- package/dist/plugins/findFirstAuthentication/schemas.d.ts +2 -14
- package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +1 -1
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts +2 -14
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +1 -1
- package/dist/plugins/getAction/schemas.d.ts +13 -23
- package/dist/plugins/getAction/schemas.d.ts.map +1 -1
- package/dist/plugins/getApp/schemas.d.ts +2 -6
- package/dist/plugins/getApp/schemas.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +12 -15
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
- package/dist/plugins/getProfile/schemas.d.ts +1 -1
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.d.ts +13 -27
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.d.ts +5 -36
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +13 -36
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.d.ts +12 -21
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.d.ts +6 -90
- package/dist/plugins/manifest/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.js +5 -2
- package/dist/plugins/request/schemas.d.ts +24 -68
- package/dist/plugins/request/schemas.d.ts.map +1 -1
- package/dist/plugins/request/schemas.js +1 -1
- package/dist/plugins/runAction/schemas.d.ts +12 -21
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/schemas/Action.d.ts +13 -30
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/App.d.ts +30 -171
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/Auth.d.ts +14 -120
- package/dist/schemas/Auth.d.ts.map +1 -1
- package/dist/schemas/Field.d.ts +10 -108
- package/dist/schemas/Field.d.ts.map +1 -1
- package/dist/schemas/UserProfile.d.ts +5 -113
- package/dist/schemas/UserProfile.d.ts.map +1 -1
- package/dist/temporary-internal-core/schemas/apps/index.d.ts +19 -440
- package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -1
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts +23 -327
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts.map +1 -1
- package/dist/temporary-internal-core/schemas/authentications/index.js +1 -1
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts +9 -393
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -1
- package/dist/types/properties.d.ts +11 -2
- package/dist/types/properties.d.ts.map +1 -1
- package/dist/types/properties.js +2 -2
- package/dist/utils/function-utils.d.ts +2 -14
- package/dist/utils/function-utils.d.ts.map +1 -1
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/dist/utils/schema-utils.js +10 -9
- package/dist/utils/validation.d.ts +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +2 -2
- package/package.json +4 -4
|
@@ -6,23 +6,22 @@ export declare const InputFieldChoiceItemSchema: z.ZodObject<{
|
|
|
6
6
|
label: z.ZodOptional<z.ZodString>;
|
|
7
7
|
sample: z.ZodOptional<z.ZodString>;
|
|
8
8
|
value: z.ZodOptional<z.ZodString>;
|
|
9
|
-
},
|
|
10
|
-
key?: string | undefined;
|
|
11
|
-
value?: string | undefined;
|
|
12
|
-
label?: string | undefined;
|
|
13
|
-
sample?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
key?: string | undefined;
|
|
16
|
-
value?: string | undefined;
|
|
17
|
-
label?: string | undefined;
|
|
18
|
-
sample?: string | undefined;
|
|
19
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
20
10
|
export type InputFieldChoiceItem = z.infer<typeof InputFieldChoiceItemSchema>;
|
|
21
11
|
export declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
22
12
|
appKey: z.ZodString & {
|
|
23
|
-
_def: z.ZodStringDef & import("../..").PositionalMetadata;
|
|
13
|
+
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
24
14
|
};
|
|
25
|
-
actionType: z.ZodEnum<
|
|
15
|
+
actionType: z.ZodEnum<{
|
|
16
|
+
search: "search";
|
|
17
|
+
filter: "filter";
|
|
18
|
+
read: "read";
|
|
19
|
+
read_bulk: "read_bulk";
|
|
20
|
+
run: "run";
|
|
21
|
+
search_and_write: "search_and_write";
|
|
22
|
+
search_or_write: "search_or_write";
|
|
23
|
+
write: "write";
|
|
24
|
+
}>;
|
|
26
25
|
actionKey: z.ZodString;
|
|
27
26
|
inputFieldKey: z.ZodString;
|
|
28
27
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -31,29 +30,7 @@ export declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
|
31
30
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
32
31
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
33
32
|
cursor: z.ZodOptional<z.ZodString>;
|
|
34
|
-
},
|
|
35
|
-
appKey: string;
|
|
36
|
-
actionKey: string;
|
|
37
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
38
|
-
inputFieldKey: string;
|
|
39
|
-
page?: number | undefined;
|
|
40
|
-
authenticationId?: number | null | undefined;
|
|
41
|
-
inputs?: Record<string, unknown> | undefined;
|
|
42
|
-
cursor?: string | undefined;
|
|
43
|
-
maxItems?: number | undefined;
|
|
44
|
-
pageSize?: number | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
appKey: string;
|
|
47
|
-
actionKey: string;
|
|
48
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
49
|
-
inputFieldKey: string;
|
|
50
|
-
page?: number | undefined;
|
|
51
|
-
authenticationId?: number | null | undefined;
|
|
52
|
-
inputs?: Record<string, unknown> | undefined;
|
|
53
|
-
cursor?: string | undefined;
|
|
54
|
-
maxItems?: number | undefined;
|
|
55
|
-
pageSize?: number | undefined;
|
|
56
|
-
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
57
34
|
export type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
|
|
58
35
|
export type ListInputFieldChoicesError = ZapierConfigurationError | ZapierApiError | ZapierAuthenticationError | ZapierAppNotFoundError | ZapierValidationError | ZapierUnknownError;
|
|
59
36
|
export interface ListInputFieldChoicesPage {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFieldChoices/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFieldChoices/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,0BAA0B;;;;;iBA0BrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;iBAsCmC,CAAC;AAG5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CACnC,CAAC;AAGF,MAAM,MAAM,0BAA0B,GAClC,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB,EAAE,oBAAoB,CACzC,4BAA4B,EAC5B,oBAAoB,CACrB,CAAC;CACH"}
|
|
@@ -4,34 +4,25 @@ import type { PaginatedSdkFunction } from "../../types/functions";
|
|
|
4
4
|
import type { ZapierConfigurationError, ZapierApiError, ZapierAuthenticationError, ZapierAppNotFoundError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
|
|
5
5
|
export declare const ListInputFieldsSchema: 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.ZodEnum<
|
|
9
|
+
actionType: 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
|
actionKey: z.ZodString;
|
|
11
20
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
21
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
22
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
14
23
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
15
24
|
cursor: z.ZodOptional<z.ZodString>;
|
|
16
|
-
},
|
|
17
|
-
appKey: string;
|
|
18
|
-
actionKey: string;
|
|
19
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
20
|
-
authenticationId?: number | null | undefined;
|
|
21
|
-
inputs?: Record<string, unknown> | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
maxItems?: number | undefined;
|
|
24
|
-
pageSize?: number | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
appKey: string;
|
|
27
|
-
actionKey: string;
|
|
28
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
29
|
-
authenticationId?: number | null | undefined;
|
|
30
|
-
inputs?: Record<string, unknown> | undefined;
|
|
31
|
-
cursor?: string | undefined;
|
|
32
|
-
maxItems?: number | undefined;
|
|
33
|
-
pageSize?: number | undefined;
|
|
34
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
35
26
|
export type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
|
|
36
27
|
export type ListInputFieldsError = ZapierConfigurationError | ZapierApiError | ZapierAuthenticationError | ZapierAppNotFoundError | ZapierValidationError | ZapierUnknownError;
|
|
37
28
|
export interface ListInputFieldsPage {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/listInputFields/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;iBAqBgC,CAAC;AAGnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAG3E,MAAM,MAAM,oBAAoB,GAC5B,wBAAwB,GACxB,cAAc,GACd,yBAAyB,GACzB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,oBAAoB,CACnC,sBAAsB,EACtB,aAAa,EAAE,CAChB,CAAC;CACH"}
|
|
@@ -20,23 +20,7 @@ export declare const ActionEntrySchema: z.ZodObject<{
|
|
|
20
20
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
21
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
22
22
|
createdAt: z.ZodString;
|
|
23
|
-
},
|
|
24
|
-
schema: Record<string, unknown>;
|
|
25
|
-
appKey: string;
|
|
26
|
-
actionKey: string;
|
|
27
|
-
actionType: string;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
authenticationId?: number | null | undefined;
|
|
30
|
-
inputs?: Record<string, unknown> | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
schema: Record<string, unknown>;
|
|
33
|
-
appKey: string;
|
|
34
|
-
actionKey: string;
|
|
35
|
-
actionType: string;
|
|
36
|
-
createdAt: string;
|
|
37
|
-
authenticationId?: number | null | undefined;
|
|
38
|
-
inputs?: Record<string, unknown> | undefined;
|
|
39
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
40
24
|
export type ActionEntry = z.infer<typeof ActionEntrySchema>;
|
|
41
25
|
export type Manifest = {
|
|
42
26
|
apps: Record<string, ManifestEntry>;
|
|
@@ -52,13 +36,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
52
36
|
apps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
53
37
|
implementationName: z.ZodString;
|
|
54
38
|
version: z.ZodString;
|
|
55
|
-
},
|
|
56
|
-
version: string;
|
|
57
|
-
implementationName: string;
|
|
58
|
-
}, {
|
|
59
|
-
version: string;
|
|
60
|
-
implementationName: string;
|
|
61
|
-
}>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
62
40
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
63
41
|
appKey: z.ZodString;
|
|
64
42
|
actionKey: z.ZodString;
|
|
@@ -67,75 +45,13 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
67
45
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
46
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
69
47
|
createdAt: z.ZodString;
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
appKey: string;
|
|
73
|
-
actionKey: string;
|
|
74
|
-
actionType: string;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
authenticationId?: number | null | undefined;
|
|
77
|
-
inputs?: Record<string, unknown> | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
schema: Record<string, unknown>;
|
|
80
|
-
appKey: string;
|
|
81
|
-
actionKey: string;
|
|
82
|
-
actionType: string;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
authenticationId?: number | null | undefined;
|
|
85
|
-
inputs?: Record<string, unknown> | undefined;
|
|
86
|
-
}>>>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
apps: Record<string, {
|
|
89
|
-
version: string;
|
|
90
|
-
implementationName: string;
|
|
91
|
-
}>;
|
|
92
|
-
actions?: Record<string, {
|
|
93
|
-
schema: Record<string, unknown>;
|
|
94
|
-
appKey: string;
|
|
95
|
-
actionKey: string;
|
|
96
|
-
actionType: string;
|
|
97
|
-
createdAt: string;
|
|
98
|
-
authenticationId?: number | null | undefined;
|
|
99
|
-
inputs?: Record<string, unknown> | undefined;
|
|
100
|
-
}> | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
apps: Record<string, {
|
|
103
|
-
version: string;
|
|
104
|
-
implementationName: string;
|
|
105
|
-
}>;
|
|
106
|
-
actions?: Record<string, {
|
|
107
|
-
schema: Record<string, unknown>;
|
|
108
|
-
appKey: string;
|
|
109
|
-
actionKey: string;
|
|
110
|
-
actionType: string;
|
|
111
|
-
createdAt: string;
|
|
112
|
-
authenticationId?: number | null | undefined;
|
|
113
|
-
inputs?: Record<string, unknown> | undefined;
|
|
114
|
-
}> | undefined;
|
|
115
|
-
}>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
116
50
|
export declare const ManifestPluginOptionsSchema: z.ZodObject<{
|
|
117
51
|
manifestPath: z.ZodOptional<z.ZodString>;
|
|
118
52
|
manifest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
119
53
|
implementationName: z.ZodString;
|
|
120
54
|
version: z.ZodOptional<z.ZodString>;
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
version?: string | undefined;
|
|
124
|
-
}, {
|
|
125
|
-
implementationName: string;
|
|
126
|
-
version?: string | undefined;
|
|
127
|
-
}>>>;
|
|
128
|
-
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
manifestPath?: string | undefined;
|
|
130
|
-
manifest?: Record<string, {
|
|
131
|
-
implementationName: string;
|
|
132
|
-
version?: string | undefined;
|
|
133
|
-
}> | undefined;
|
|
134
|
-
}, {
|
|
135
|
-
manifestPath?: string | undefined;
|
|
136
|
-
manifest?: Record<string, {
|
|
137
|
-
implementationName: string;
|
|
138
|
-
version?: string | undefined;
|
|
139
|
-
}> | undefined;
|
|
140
|
-
}>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
141
57
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/manifest/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,mBAAmB,EAAG,WAAoB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CACzC,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/manifest/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,mBAAmB,EAAG,WAAoB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CACzC,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;iBAqB5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,EAC5B,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,KAAK,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAkB8C,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;;iBAYtC,CAAC"}
|
|
@@ -15,9 +15,12 @@ export const ActionEntrySchema = z.object({
|
|
|
15
15
|
.nullable()
|
|
16
16
|
.optional()
|
|
17
17
|
.describe("Authentication ID used"),
|
|
18
|
-
inputs: z
|
|
18
|
+
inputs: z
|
|
19
|
+
.record(z.string(), z.unknown())
|
|
20
|
+
.optional()
|
|
21
|
+
.describe("Resolved input values"),
|
|
19
22
|
schema: z
|
|
20
|
-
.record(z.unknown())
|
|
23
|
+
.record(z.string(), z.unknown())
|
|
21
24
|
.describe("Complete JSON Schema from getInputFieldsSchema (includes $schema, type, properties, required, etc.)"),
|
|
22
25
|
createdAt: z.string().describe("ISO 8601 timestamp when created"),
|
|
23
26
|
});
|
|
@@ -2,47 +2,25 @@ import { z } from "zod";
|
|
|
2
2
|
import type { ZapierApiError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
|
|
3
3
|
export declare const RelayRequestSchema: z.ZodObject<{
|
|
4
4
|
url: z.ZodString;
|
|
5
|
-
method: z.ZodOptional<z.ZodEnum<
|
|
5
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
POST: "POST";
|
|
7
|
+
GET: "GET";
|
|
8
|
+
PUT: "PUT";
|
|
9
|
+
DELETE: "DELETE";
|
|
10
|
+
PATCH: "PATCH";
|
|
11
|
+
HEAD: "HEAD";
|
|
12
|
+
OPTIONS: "OPTIONS";
|
|
13
|
+
}>>;
|
|
6
14
|
body: z.ZodOptional<z.ZodAny>;
|
|
7
15
|
authenticationId: z.ZodOptional<z.ZodNumber>;
|
|
8
16
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
9
17
|
authenticationTemplate: z.ZodOptional<z.ZodString>;
|
|
10
|
-
headers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.
|
|
11
|
-
} & {
|
|
18
|
+
headers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodCustom<Headers, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>]>>;
|
|
12
19
|
relayBaseUrl: z.ZodOptional<z.ZodString>;
|
|
13
|
-
} & {
|
|
14
20
|
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
15
21
|
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
}, {
|
|
19
|
-
isNested?: boolean | undefined;
|
|
20
|
-
}>>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
url: string;
|
|
23
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
24
|
-
authenticationId?: number | undefined;
|
|
25
|
-
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
26
|
-
body?: any;
|
|
27
|
-
_telemetry?: {
|
|
28
|
-
isNested?: boolean | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
callbackUrl?: string | undefined;
|
|
31
|
-
authenticationTemplate?: string | undefined;
|
|
32
|
-
relayBaseUrl?: string | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
url: string;
|
|
35
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
36
|
-
authenticationId?: number | undefined;
|
|
37
|
-
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
38
|
-
body?: any;
|
|
39
|
-
_telemetry?: {
|
|
40
|
-
isNested?: boolean | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
callbackUrl?: string | undefined;
|
|
43
|
-
authenticationTemplate?: string | undefined;
|
|
44
|
-
relayBaseUrl?: string | undefined;
|
|
45
|
-
}>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
46
24
|
export type RelayRequestOptions = z.infer<typeof RelayRequestSchema>;
|
|
47
25
|
export type RelayRequestError = ZapierApiError | ZapierValidationError | ZapierUnknownError;
|
|
48
26
|
export interface RelayRequestSdkFunction {
|
|
@@ -50,47 +28,25 @@ export interface RelayRequestSdkFunction {
|
|
|
50
28
|
}
|
|
51
29
|
export declare const RelayFetchSchema: z.ZodObject<{
|
|
52
30
|
url: z.ZodString;
|
|
53
|
-
method: z.ZodOptional<z.ZodEnum<
|
|
31
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
POST: "POST";
|
|
33
|
+
GET: "GET";
|
|
34
|
+
PUT: "PUT";
|
|
35
|
+
DELETE: "DELETE";
|
|
36
|
+
PATCH: "PATCH";
|
|
37
|
+
HEAD: "HEAD";
|
|
38
|
+
OPTIONS: "OPTIONS";
|
|
39
|
+
}>>;
|
|
54
40
|
body: z.ZodOptional<z.ZodAny>;
|
|
55
41
|
authenticationId: z.ZodOptional<z.ZodNumber>;
|
|
56
42
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
57
43
|
authenticationTemplate: z.ZodOptional<z.ZodString>;
|
|
58
|
-
headers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.
|
|
59
|
-
} & {
|
|
44
|
+
headers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodCustom<Headers, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>]>>;
|
|
60
45
|
relayBaseUrl: z.ZodOptional<z.ZodString>;
|
|
61
|
-
} & {
|
|
62
46
|
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
63
47
|
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
}, {
|
|
67
|
-
isNested?: boolean | undefined;
|
|
68
|
-
}>>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
url: string;
|
|
71
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
72
|
-
authenticationId?: number | undefined;
|
|
73
|
-
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
74
|
-
body?: any;
|
|
75
|
-
_telemetry?: {
|
|
76
|
-
isNested?: boolean | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
callbackUrl?: string | undefined;
|
|
79
|
-
authenticationTemplate?: string | undefined;
|
|
80
|
-
relayBaseUrl?: string | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
url: string;
|
|
83
|
-
method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
84
|
-
authenticationId?: number | undefined;
|
|
85
|
-
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
86
|
-
body?: any;
|
|
87
|
-
_telemetry?: {
|
|
88
|
-
isNested?: boolean | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
callbackUrl?: string | undefined;
|
|
91
|
-
authenticationTemplate?: string | undefined;
|
|
92
|
-
relayBaseUrl?: string | undefined;
|
|
93
|
-
}>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
94
50
|
export type RelayFetchOptions = RelayRequestOptions;
|
|
95
51
|
export interface RelayFetchSdkFunction {
|
|
96
52
|
fetch: (options: RelayFetchOptions) => Promise<Response>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;iBAwC+C,CAAC;AAG/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAGrE,MAAM,MAAM,iBAAiB,GACzB,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC9D;AAGD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;iBAAqB,CAAC;AACnD,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AACpD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC1D"}
|
|
@@ -28,7 +28,7 @@ export const RelayRequestSchema = z
|
|
|
28
28
|
.describe("Optional JSON string authentication template to bypass Notary lookup"),
|
|
29
29
|
headers: z
|
|
30
30
|
.union([
|
|
31
|
-
z.record(z.string()),
|
|
31
|
+
z.record(z.string(), z.string()),
|
|
32
32
|
z.instanceof(Headers),
|
|
33
33
|
z.array(z.tuple([z.string(), z.string()])),
|
|
34
34
|
])
|
|
@@ -3,34 +3,25 @@ import type { PaginatedSdkFunction } from "../../types/functions";
|
|
|
3
3
|
import type { ZapierActionError, ZapierValidationError, ZapierConfigurationError, ZapierUnknownError } from "../../types/errors";
|
|
4
4
|
export declare const RunActionSchema: 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<
|
|
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
19
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
20
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
21
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
13
22
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
14
23
|
cursor: z.ZodOptional<z.ZodString>;
|
|
15
|
-
},
|
|
16
|
-
appKey: string;
|
|
17
|
-
actionKey: string;
|
|
18
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
19
|
-
authenticationId?: number | null | undefined;
|
|
20
|
-
inputs?: Record<string, unknown> | undefined;
|
|
21
|
-
cursor?: string | undefined;
|
|
22
|
-
maxItems?: number | undefined;
|
|
23
|
-
pageSize?: number | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
appKey: string;
|
|
26
|
-
actionKey: string;
|
|
27
|
-
actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
28
|
-
authenticationId?: number | null | undefined;
|
|
29
|
-
inputs?: Record<string, unknown> | undefined;
|
|
30
|
-
cursor?: string | undefined;
|
|
31
|
-
maxItems?: number | undefined;
|
|
32
|
-
pageSize?: number | undefined;
|
|
33
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
34
25
|
export type RunActionOptions = z.infer<typeof RunActionSchema>;
|
|
35
26
|
export interface RunActionPage {
|
|
36
27
|
data: unknown[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;iBAqB0B,CAAC;AAGvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG/D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,oBAAoB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;CAC5D"}
|
package/dist/schemas/Action.d.ts
CHANGED
|
@@ -1,41 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ActionItemSchema: z.ZodObject<
|
|
3
|
-
id: z.ZodOptional<z.ZodString>;
|
|
4
|
-
type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
|
|
2
|
+
export declare const ActionItemSchema: z.ZodObject<{
|
|
5
3
|
key: z.ZodString;
|
|
6
|
-
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
5
|
description: z.ZodString;
|
|
8
6
|
is_important: z.ZodOptional<z.ZodBoolean>;
|
|
9
7
|
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
selected_api: z.ZodOptional<z.ZodString>;
|
|
11
|
-
}, "type" | "selected_api" | "name"> & {
|
|
12
8
|
app_key: z.ZodString;
|
|
13
9
|
app_version: z.ZodOptional<z.ZodString>;
|
|
14
|
-
action_type: z.ZodEnum<
|
|
10
|
+
action_type: z.ZodEnum<{
|
|
11
|
+
search: "search";
|
|
12
|
+
filter: "filter";
|
|
13
|
+
read: "read";
|
|
14
|
+
read_bulk: "read_bulk";
|
|
15
|
+
run: "run";
|
|
16
|
+
search_and_write: "search_and_write";
|
|
17
|
+
search_or_write: "search_or_write";
|
|
18
|
+
write: "write";
|
|
19
|
+
}>;
|
|
15
20
|
title: z.ZodString;
|
|
16
21
|
type: z.ZodLiteral<"action">;
|
|
17
|
-
},
|
|
18
|
-
key: string;
|
|
19
|
-
type: "action";
|
|
20
|
-
description: string;
|
|
21
|
-
title: string;
|
|
22
|
-
app_key: string;
|
|
23
|
-
action_type: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
24
|
-
id?: string | undefined;
|
|
25
|
-
is_important?: boolean | undefined;
|
|
26
|
-
is_hidden?: boolean | undefined;
|
|
27
|
-
app_version?: string | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
key: string;
|
|
30
|
-
type: "action";
|
|
31
|
-
description: string;
|
|
32
|
-
title: string;
|
|
33
|
-
app_key: string;
|
|
34
|
-
action_type: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
|
|
35
|
-
id?: string | undefined;
|
|
36
|
-
is_important?: boolean | undefined;
|
|
37
|
-
is_hidden?: boolean | undefined;
|
|
38
|
-
app_version?: string | undefined;
|
|
39
|
-
}>;
|
|
22
|
+
}, z.core.$strip>;
|
|
40
23
|
export type ActionItem = z.infer<typeof ActionItemSchema>;
|
|
41
24
|
//# sourceMappingURL=Action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/schemas/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/schemas/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;iBAqC5B,CAAC;AAMF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|