@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
package/dist/schemas/App.d.ts
CHANGED
|
@@ -1,198 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export { FormattedItem, FormatMetadata } from "../utils/schema-utils";
|
|
3
|
-
export declare const AppItemSchema: z.ZodObject<
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
slug: z.ZodString;
|
|
7
|
-
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
9
|
-
banner: z.ZodOptional<z.ZodString>;
|
|
3
|
+
export declare const AppItemSchema: z.ZodObject<{
|
|
10
4
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
5
|
id: z.ZodNumber;
|
|
12
6
|
name: z.ZodString;
|
|
13
7
|
slug: z.ZodString;
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
22
|
+
banner: z.ZodOptional<z.ZodString>;
|
|
23
|
+
image: z.ZodOptional<z.ZodString>;
|
|
23
24
|
images: z.ZodOptional<z.ZodObject<{
|
|
24
25
|
url_16x16: z.ZodOptional<z.ZodString>;
|
|
25
26
|
url_32x32: z.ZodOptional<z.ZodString>;
|
|
26
27
|
url_64x64: z.ZodOptional<z.ZodString>;
|
|
27
28
|
url_128x128: z.ZodOptional<z.ZodString>;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
url_32x32?: string | undefined;
|
|
36
|
-
url_64x64?: string | undefined;
|
|
37
|
-
url_128x128?: string | undefined;
|
|
38
|
-
}>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
39
36
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
38
|
+
slug: z.ZodString;
|
|
39
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
40
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
40
42
|
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
41
43
|
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
42
44
|
has_searches: z.ZodOptional<z.ZodBoolean>;
|
|
43
45
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
44
46
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
45
47
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
51
48
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
55
49
|
version: z.ZodOptional<z.ZodString>;
|
|
56
50
|
visibility: z.ZodOptional<z.ZodString>;
|
|
57
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
58
|
-
read: z.ZodOptional<z.ZodNumber>;
|
|
59
|
-
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
write: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
search: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
filter: z.ZodOptional<z.ZodNumber>;
|
|
65
|
-
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
search?: number | undefined;
|
|
67
|
-
filter?: number | undefined;
|
|
68
|
-
read?: number | undefined;
|
|
69
|
-
read_bulk?: number | undefined;
|
|
70
|
-
search_and_write?: number | undefined;
|
|
71
|
-
search_or_write?: number | undefined;
|
|
72
|
-
write?: number | undefined;
|
|
73
|
-
}, {
|
|
74
|
-
search?: number | undefined;
|
|
75
|
-
filter?: number | undefined;
|
|
76
|
-
read?: number | undefined;
|
|
77
|
-
read_bulk?: number | undefined;
|
|
78
|
-
search_and_write?: number | undefined;
|
|
79
|
-
search_or_write?: number | undefined;
|
|
80
|
-
write?: number | undefined;
|
|
81
|
-
}>>;
|
|
82
|
-
description: z.ZodOptional<z.ZodString>;
|
|
83
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
84
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
85
51
|
classification: z.ZodOptional<z.ZodString>;
|
|
86
|
-
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
87
|
-
image: z.ZodOptional<z.ZodString>;
|
|
88
|
-
}, "id" | "name"> & {
|
|
89
52
|
title: z.ZodString;
|
|
90
53
|
key: z.ZodString;
|
|
91
54
|
implementation_id: z.ZodString;
|
|
92
|
-
},
|
|
93
|
-
key: string;
|
|
94
|
-
title: string;
|
|
95
|
-
slug: string;
|
|
96
|
-
implementation_id: string;
|
|
97
|
-
categories?: {
|
|
98
|
-
id: number;
|
|
99
|
-
name: string;
|
|
100
|
-
slug: string;
|
|
101
|
-
}[] | undefined;
|
|
102
|
-
actions?: {
|
|
103
|
-
search?: number | undefined;
|
|
104
|
-
filter?: number | undefined;
|
|
105
|
-
read?: number | undefined;
|
|
106
|
-
read_bulk?: number | undefined;
|
|
107
|
-
search_and_write?: number | undefined;
|
|
108
|
-
search_or_write?: number | undefined;
|
|
109
|
-
write?: number | undefined;
|
|
110
|
-
} | undefined;
|
|
111
|
-
description?: string | undefined;
|
|
112
|
-
is_hidden?: boolean | undefined;
|
|
113
|
-
age_in_days?: number | undefined;
|
|
114
|
-
api_docs_url?: string | undefined;
|
|
115
|
-
banner?: string | undefined;
|
|
116
|
-
image?: string | undefined;
|
|
117
|
-
images?: {
|
|
118
|
-
url_16x16?: string | undefined;
|
|
119
|
-
url_32x32?: string | undefined;
|
|
120
|
-
url_64x64?: string | undefined;
|
|
121
|
-
url_128x128?: string | undefined;
|
|
122
|
-
} | undefined;
|
|
123
|
-
is_beta?: boolean | undefined;
|
|
124
|
-
is_built_in?: boolean | undefined;
|
|
125
|
-
is_featured?: boolean | undefined;
|
|
126
|
-
is_premium?: boolean | undefined;
|
|
127
|
-
is_public?: boolean | undefined;
|
|
128
|
-
is_upcoming?: boolean | undefined;
|
|
129
|
-
popularity?: number | undefined;
|
|
130
|
-
primary_color?: string | undefined;
|
|
131
|
-
auth_type?: string | undefined;
|
|
132
|
-
is_deprecated?: boolean | undefined;
|
|
133
|
-
secondary_color?: string | undefined;
|
|
134
|
-
has_filters?: boolean | undefined;
|
|
135
|
-
has_reads?: boolean | undefined;
|
|
136
|
-
has_searches?: boolean | undefined;
|
|
137
|
-
has_searches_or_writes?: boolean | undefined;
|
|
138
|
-
has_upfront_fields?: boolean | undefined;
|
|
139
|
-
has_writes?: boolean | undefined;
|
|
140
|
-
is_invite?: boolean | undefined;
|
|
141
|
-
version?: string | undefined;
|
|
142
|
-
visibility?: string | undefined;
|
|
143
|
-
classification?: string | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
key: string;
|
|
146
|
-
title: string;
|
|
147
|
-
slug: string;
|
|
148
|
-
implementation_id: string;
|
|
149
|
-
categories?: {
|
|
150
|
-
id: number;
|
|
151
|
-
name: string;
|
|
152
|
-
slug: string;
|
|
153
|
-
}[] | undefined;
|
|
154
|
-
actions?: {
|
|
155
|
-
search?: number | undefined;
|
|
156
|
-
filter?: number | undefined;
|
|
157
|
-
read?: number | undefined;
|
|
158
|
-
read_bulk?: number | undefined;
|
|
159
|
-
search_and_write?: number | undefined;
|
|
160
|
-
search_or_write?: number | undefined;
|
|
161
|
-
write?: number | undefined;
|
|
162
|
-
} | undefined;
|
|
163
|
-
description?: string | undefined;
|
|
164
|
-
is_hidden?: boolean | undefined;
|
|
165
|
-
age_in_days?: number | undefined;
|
|
166
|
-
api_docs_url?: string | undefined;
|
|
167
|
-
banner?: string | undefined;
|
|
168
|
-
image?: string | undefined;
|
|
169
|
-
images?: {
|
|
170
|
-
url_16x16?: string | undefined;
|
|
171
|
-
url_32x32?: string | undefined;
|
|
172
|
-
url_64x64?: string | undefined;
|
|
173
|
-
url_128x128?: string | undefined;
|
|
174
|
-
} | undefined;
|
|
175
|
-
is_beta?: boolean | undefined;
|
|
176
|
-
is_built_in?: boolean | undefined;
|
|
177
|
-
is_featured?: boolean | undefined;
|
|
178
|
-
is_premium?: boolean | undefined;
|
|
179
|
-
is_public?: boolean | undefined;
|
|
180
|
-
is_upcoming?: boolean | undefined;
|
|
181
|
-
popularity?: number | undefined;
|
|
182
|
-
primary_color?: string | undefined;
|
|
183
|
-
auth_type?: string | undefined;
|
|
184
|
-
is_deprecated?: boolean | undefined;
|
|
185
|
-
secondary_color?: string | undefined;
|
|
186
|
-
has_filters?: boolean | undefined;
|
|
187
|
-
has_reads?: boolean | undefined;
|
|
188
|
-
has_searches?: boolean | undefined;
|
|
189
|
-
has_searches_or_writes?: boolean | undefined;
|
|
190
|
-
has_upfront_fields?: boolean | undefined;
|
|
191
|
-
has_writes?: boolean | undefined;
|
|
192
|
-
is_invite?: boolean | undefined;
|
|
193
|
-
version?: string | undefined;
|
|
194
|
-
visibility?: string | undefined;
|
|
195
|
-
classification?: string | undefined;
|
|
196
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
197
56
|
export type AppItem = z.infer<typeof AppItemSchema>;
|
|
198
57
|
//# sourceMappingURL=App.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/schemas/App.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/schemas/App.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BzB,CAAC;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/schemas/Auth.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const AuthenticationItemSchema: z.ZodObject<
|
|
3
|
-
|
|
2
|
+
export declare const AuthenticationItemSchema: z.ZodObject<{
|
|
3
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4
|
+
members: z.ZodOptional<z.ZodString>;
|
|
5
|
+
account_id: z.ZodNumber;
|
|
6
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
7
|
date: z.ZodString;
|
|
8
|
+
id: z.ZodNumber;
|
|
5
9
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
6
|
-
account_id: z.ZodNumber;
|
|
7
|
-
customuser_id: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
selected_api: z.ZodString;
|
|
9
10
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
11
|
is_invite_only: z.ZodBoolean;
|
|
11
12
|
is_private: z.ZodBoolean;
|
|
@@ -13,78 +14,25 @@ export declare const AuthenticationItemSchema: z.ZodObject<Omit<{
|
|
|
13
14
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
14
15
|
is_shared: z.ZodOptional<z.ZodString>;
|
|
15
16
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
url: z.ZodOptional<z.ZodString>;
|
|
20
19
|
groups: z.ZodOptional<z.ZodString>;
|
|
21
|
-
members: z.ZodOptional<z.ZodString>;
|
|
22
20
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
23
|
-
}, "customuser_id" | "selected_api"> & {
|
|
24
21
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
25
22
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
26
23
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
24
|
app_key: z.ZodOptional<z.ZodString>;
|
|
28
25
|
app_version: z.ZodOptional<z.ZodString>;
|
|
29
26
|
user_id: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
shared_with_all: boolean;
|
|
37
|
-
url?: string | undefined;
|
|
38
|
-
members?: string | undefined;
|
|
39
|
-
label?: string | null | undefined;
|
|
40
|
-
lastchanged?: string | undefined;
|
|
41
|
-
destination_selected_api?: string | null | undefined;
|
|
42
|
-
is_stale?: string | undefined;
|
|
43
|
-
is_shared?: string | undefined;
|
|
44
|
-
marked_stale_at?: string | null | undefined;
|
|
45
|
-
identifier?: string | null | undefined;
|
|
46
|
-
title?: string | null | undefined;
|
|
47
|
-
groups?: string | undefined;
|
|
48
|
-
permissions?: Record<string, boolean> | undefined;
|
|
49
|
-
user_id?: number | undefined;
|
|
50
|
-
implementation_id?: string | undefined;
|
|
51
|
-
is_expired?: string | undefined;
|
|
52
|
-
expired_at?: string | null | undefined;
|
|
53
|
-
app_key?: string | undefined;
|
|
54
|
-
app_version?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
account_id: number;
|
|
57
|
-
id: number;
|
|
58
|
-
date: string;
|
|
59
|
-
is_invite_only: boolean;
|
|
60
|
-
is_private: boolean;
|
|
61
|
-
shared_with_all: boolean;
|
|
62
|
-
url?: string | undefined;
|
|
63
|
-
members?: string | undefined;
|
|
64
|
-
label?: string | null | undefined;
|
|
65
|
-
lastchanged?: string | undefined;
|
|
66
|
-
destination_selected_api?: string | null | undefined;
|
|
67
|
-
is_stale?: string | undefined;
|
|
68
|
-
is_shared?: string | undefined;
|
|
69
|
-
marked_stale_at?: string | null | undefined;
|
|
70
|
-
identifier?: string | null | undefined;
|
|
71
|
-
title?: string | null | undefined;
|
|
72
|
-
groups?: string | undefined;
|
|
73
|
-
permissions?: Record<string, boolean> | undefined;
|
|
74
|
-
user_id?: number | undefined;
|
|
75
|
-
implementation_id?: string | undefined;
|
|
76
|
-
is_expired?: string | undefined;
|
|
77
|
-
expired_at?: string | null | undefined;
|
|
78
|
-
app_key?: string | undefined;
|
|
79
|
-
app_version?: string | undefined;
|
|
80
|
-
}>;
|
|
81
|
-
export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
82
|
-
id: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const AuthItemSchema: z.ZodObject<{
|
|
29
|
+
url: z.ZodOptional<z.ZodString>;
|
|
30
|
+
members: z.ZodOptional<z.ZodString>;
|
|
31
|
+
account_id: z.ZodNumber;
|
|
32
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
33
|
date: z.ZodString;
|
|
34
|
+
id: z.ZodNumber;
|
|
84
35
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
85
|
-
account_id: z.ZodNumber;
|
|
86
|
-
customuser_id: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
selected_api: z.ZodString;
|
|
88
36
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
37
|
is_invite_only: z.ZodBoolean;
|
|
90
38
|
is_private: z.ZodBoolean;
|
|
@@ -92,70 +40,16 @@ export declare const AuthItemSchema: z.ZodObject<Omit<{
|
|
|
92
40
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
93
41
|
is_shared: z.ZodOptional<z.ZodString>;
|
|
94
42
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
43
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
44
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
-
url: z.ZodOptional<z.ZodString>;
|
|
99
45
|
groups: z.ZodOptional<z.ZodString>;
|
|
100
|
-
members: z.ZodOptional<z.ZodString>;
|
|
101
46
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
102
|
-
}, "customuser_id" | "selected_api"> & {
|
|
103
47
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
104
48
|
is_expired: z.ZodOptional<z.ZodString>;
|
|
105
49
|
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
50
|
app_key: z.ZodOptional<z.ZodString>;
|
|
107
51
|
app_version: z.ZodOptional<z.ZodString>;
|
|
108
52
|
user_id: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
},
|
|
110
|
-
account_id: number;
|
|
111
|
-
id: number;
|
|
112
|
-
date: string;
|
|
113
|
-
is_invite_only: boolean;
|
|
114
|
-
is_private: boolean;
|
|
115
|
-
shared_with_all: boolean;
|
|
116
|
-
url?: string | undefined;
|
|
117
|
-
members?: string | undefined;
|
|
118
|
-
label?: string | null | undefined;
|
|
119
|
-
lastchanged?: string | undefined;
|
|
120
|
-
destination_selected_api?: string | null | undefined;
|
|
121
|
-
is_stale?: string | undefined;
|
|
122
|
-
is_shared?: string | undefined;
|
|
123
|
-
marked_stale_at?: string | null | undefined;
|
|
124
|
-
identifier?: string | null | undefined;
|
|
125
|
-
title?: string | null | undefined;
|
|
126
|
-
groups?: string | undefined;
|
|
127
|
-
permissions?: Record<string, boolean> | undefined;
|
|
128
|
-
user_id?: number | undefined;
|
|
129
|
-
implementation_id?: string | undefined;
|
|
130
|
-
is_expired?: string | undefined;
|
|
131
|
-
expired_at?: string | null | undefined;
|
|
132
|
-
app_key?: string | undefined;
|
|
133
|
-
app_version?: string | undefined;
|
|
134
|
-
}, {
|
|
135
|
-
account_id: number;
|
|
136
|
-
id: number;
|
|
137
|
-
date: string;
|
|
138
|
-
is_invite_only: boolean;
|
|
139
|
-
is_private: boolean;
|
|
140
|
-
shared_with_all: boolean;
|
|
141
|
-
url?: string | undefined;
|
|
142
|
-
members?: string | undefined;
|
|
143
|
-
label?: string | null | undefined;
|
|
144
|
-
lastchanged?: string | undefined;
|
|
145
|
-
destination_selected_api?: string | null | undefined;
|
|
146
|
-
is_stale?: string | undefined;
|
|
147
|
-
is_shared?: string | undefined;
|
|
148
|
-
marked_stale_at?: string | null | undefined;
|
|
149
|
-
identifier?: string | null | undefined;
|
|
150
|
-
title?: string | null | undefined;
|
|
151
|
-
groups?: string | undefined;
|
|
152
|
-
permissions?: Record<string, boolean> | undefined;
|
|
153
|
-
user_id?: number | undefined;
|
|
154
|
-
implementation_id?: string | undefined;
|
|
155
|
-
is_expired?: string | undefined;
|
|
156
|
-
expired_at?: string | null | undefined;
|
|
157
|
-
app_key?: string | undefined;
|
|
158
|
-
app_version?: string | undefined;
|
|
159
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
160
54
|
export type AuthItem = z.infer<typeof AuthItemSchema>;
|
|
161
55
|
//# sourceMappingURL=Auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.d.ts","sourceRoot":"","sources":["../../src/schemas/Auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"Auth.d.ts","sourceRoot":"","sources":["../../src/schemas/Auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;iBAyCpC,CAAC;AAGF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAMvD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/schemas/Field.d.ts
CHANGED
|
@@ -2,19 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const BaseFieldItemSchema: z.ZodObject<{
|
|
3
3
|
type: z.ZodString;
|
|
4
4
|
key: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
key: string;
|
|
7
|
-
type: string;
|
|
8
|
-
}, {
|
|
9
|
-
key: string;
|
|
10
|
-
type: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export declare const InputFieldItemSchema: z.ZodObject<{
|
|
13
7
|
key: z.ZodString;
|
|
14
|
-
} & {
|
|
15
8
|
type: z.ZodLiteral<"input_field">;
|
|
16
9
|
default_value: z.ZodString;
|
|
17
|
-
depends_on: z.ZodArray<z.ZodString
|
|
10
|
+
depends_on: z.ZodArray<z.ZodString>;
|
|
18
11
|
description: z.ZodString;
|
|
19
12
|
invalidates_input_fields: z.ZodBoolean;
|
|
20
13
|
is_required: z.ZodBoolean;
|
|
@@ -24,59 +17,14 @@ export declare const InputFieldItemSchema: z.ZodObject<{
|
|
|
24
17
|
format: z.ZodOptional<z.ZodString>;
|
|
25
18
|
items: z.ZodOptional<z.ZodObject<{
|
|
26
19
|
type: z.ZodString;
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
}, {
|
|
30
|
-
type: string;
|
|
31
|
-
}>>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
key: string;
|
|
34
|
-
type: "input_field";
|
|
35
|
-
depends_on: string[];
|
|
36
|
-
placeholder: string;
|
|
37
|
-
description: string;
|
|
38
|
-
title: string;
|
|
39
|
-
default_value: string;
|
|
40
|
-
invalidates_input_fields: boolean;
|
|
41
|
-
is_required: boolean;
|
|
42
|
-
value_type: string;
|
|
43
|
-
format?: string | undefined;
|
|
44
|
-
items?: {
|
|
45
|
-
type: string;
|
|
46
|
-
} | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
key: string;
|
|
49
|
-
type: "input_field";
|
|
50
|
-
depends_on: string[];
|
|
51
|
-
placeholder: string;
|
|
52
|
-
description: string;
|
|
53
|
-
title: string;
|
|
54
|
-
default_value: string;
|
|
55
|
-
invalidates_input_fields: boolean;
|
|
56
|
-
is_required: boolean;
|
|
57
|
-
value_type: string;
|
|
58
|
-
format?: string | undefined;
|
|
59
|
-
items?: {
|
|
60
|
-
type: string;
|
|
61
|
-
} | undefined;
|
|
62
|
-
}>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
63
22
|
export declare const InfoFieldItemSchema: z.ZodObject<{
|
|
64
23
|
key: z.ZodString;
|
|
65
|
-
} & {
|
|
66
24
|
type: z.ZodLiteral<"info_field">;
|
|
67
25
|
description: z.ZodString;
|
|
68
26
|
title: z.ZodOptional<z.ZodString>;
|
|
69
|
-
},
|
|
70
|
-
key: string;
|
|
71
|
-
type: "info_field";
|
|
72
|
-
description: string;
|
|
73
|
-
title?: string | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
key: string;
|
|
76
|
-
type: "info_field";
|
|
77
|
-
description: string;
|
|
78
|
-
title?: string | undefined;
|
|
79
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
80
28
|
type FieldsetItemType = z.infer<typeof InputFieldItemSchema> | z.infer<typeof InfoFieldItemSchema> | FieldsetItem;
|
|
81
29
|
export interface FieldsetItem {
|
|
82
30
|
type: "fieldset";
|
|
@@ -85,12 +33,11 @@ export interface FieldsetItem {
|
|
|
85
33
|
fields: FieldsetItemType[];
|
|
86
34
|
}
|
|
87
35
|
export declare const FieldsetItemSchema: z.ZodType<FieldsetItem>;
|
|
88
|
-
export declare const RootFieldItemSchema: z.ZodUnion<[z.ZodObject<{
|
|
36
|
+
export declare const RootFieldItemSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
89
37
|
key: z.ZodString;
|
|
90
|
-
} & {
|
|
91
38
|
type: z.ZodLiteral<"input_field">;
|
|
92
39
|
default_value: z.ZodString;
|
|
93
|
-
depends_on: z.ZodArray<z.ZodString
|
|
40
|
+
depends_on: z.ZodArray<z.ZodString>;
|
|
94
41
|
description: z.ZodString;
|
|
95
42
|
invalidates_input_fields: z.ZodBoolean;
|
|
96
43
|
is_required: z.ZodBoolean;
|
|
@@ -100,58 +47,13 @@ export declare const RootFieldItemSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
100
47
|
format: z.ZodOptional<z.ZodString>;
|
|
101
48
|
items: z.ZodOptional<z.ZodObject<{
|
|
102
49
|
type: z.ZodString;
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
}, {
|
|
106
|
-
type: string;
|
|
107
|
-
}>>;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
key: string;
|
|
110
|
-
type: "input_field";
|
|
111
|
-
depends_on: string[];
|
|
112
|
-
placeholder: string;
|
|
113
|
-
description: string;
|
|
114
|
-
title: string;
|
|
115
|
-
default_value: string;
|
|
116
|
-
invalidates_input_fields: boolean;
|
|
117
|
-
is_required: boolean;
|
|
118
|
-
value_type: string;
|
|
119
|
-
format?: string | undefined;
|
|
120
|
-
items?: {
|
|
121
|
-
type: string;
|
|
122
|
-
} | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
key: string;
|
|
125
|
-
type: "input_field";
|
|
126
|
-
depends_on: string[];
|
|
127
|
-
placeholder: string;
|
|
128
|
-
description: string;
|
|
129
|
-
title: string;
|
|
130
|
-
default_value: string;
|
|
131
|
-
invalidates_input_fields: boolean;
|
|
132
|
-
is_required: boolean;
|
|
133
|
-
value_type: string;
|
|
134
|
-
format?: string | undefined;
|
|
135
|
-
items?: {
|
|
136
|
-
type: string;
|
|
137
|
-
} | undefined;
|
|
138
|
-
}>, z.ZodObject<{
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
52
|
key: z.ZodString;
|
|
140
|
-
} & {
|
|
141
53
|
type: z.ZodLiteral<"info_field">;
|
|
142
54
|
description: z.ZodString;
|
|
143
55
|
title: z.ZodOptional<z.ZodString>;
|
|
144
|
-
},
|
|
145
|
-
key: string;
|
|
146
|
-
type: "info_field";
|
|
147
|
-
description: string;
|
|
148
|
-
title?: string | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
key: string;
|
|
151
|
-
type: "info_field";
|
|
152
|
-
description: string;
|
|
153
|
-
title?: string | undefined;
|
|
154
|
-
}>, z.ZodType<FieldsetItem, z.ZodTypeDef, FieldsetItem>]>;
|
|
56
|
+
}, z.core.$strip>, z.ZodType<FieldsetItem, unknown, z.core.$ZodTypeInternals<FieldsetItem, unknown>>]>;
|
|
155
57
|
export type InputFieldItem = z.infer<typeof InputFieldItemSchema>;
|
|
156
58
|
export type InfoFieldItem = z.infer<typeof InfoFieldItemSchema>;
|
|
157
59
|
export type RootFieldItem = z.infer<typeof RootFieldItemSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/schemas/Field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/schemas/Field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAMH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAkFhC,CAAC;AAMF,eAAO,MAAM,mBAAmB;;;;;iBAc/B,CAAC;AAOF,KAAK,gBAAgB,GACjB,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GACpC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GACnC,YAAY,CAAC;AAEjB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAanD,CAAC;AAML,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;sGAI9B,CAAC;AAMH,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,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|