@seamapi/types 1.358.0 → 1.360.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/dist/connect.cjs +532 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2726 -1075
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +100 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +100 -0
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +14 -14
- package/lib/seam/connect/models/acs/acs-credential.d.ts +74 -74
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +8 -8
- package/lib/seam/connect/models/acs/acs-system.d.ts +72 -72
- package/lib/seam/connect/models/acs/acs-user.d.ts +104 -104
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +168 -168
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +72 -72
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +96 -96
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +634 -21
- package/lib/seam/connect/models/connected-accounts/connected-account.js +56 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +24 -24
- package/lib/seam/connect/models/devices/device.d.ts +146 -46
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +127 -27
- package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
- package/lib/seam/connect/models/events/connect-webviews.d.ts +4 -4
- package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
- package/lib/seam/connect/models/events/devices.d.ts +188 -128
- package/lib/seam/connect/models/events/devices.js +10 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +144 -115
- package/lib/seam/connect/openapi.d.ts +482 -4
- package/lib/seam/connect/openapi.js +469 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +601 -2
- package/package.json +2 -2
- package/src/lib/seam/connect/model-types.ts +0 -2
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +77 -2
- package/src/lib/seam/connect/models/events/devices.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +502 -2
- package/src/lib/seam/connect/route-types.ts +633 -0
|
@@ -1,93 +1,511 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const account_disconnected: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
created_at: z.ZodString;
|
|
3
4
|
message: z.ZodString;
|
|
4
5
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
5
6
|
}, {
|
|
6
7
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
7
8
|
}>, "strip", z.ZodTypeAny, {
|
|
8
9
|
message: string;
|
|
10
|
+
created_at: string;
|
|
9
11
|
is_connected_account_error: true;
|
|
10
12
|
error_code: "account_disconnected";
|
|
11
13
|
}, {
|
|
12
14
|
message: string;
|
|
15
|
+
created_at: string;
|
|
13
16
|
is_connected_account_error: true;
|
|
14
17
|
error_code: "account_disconnected";
|
|
15
18
|
}>;
|
|
16
19
|
export declare const invalid_credentials: z.ZodObject<z.objectUtil.extendShape<{
|
|
20
|
+
created_at: z.ZodString;
|
|
17
21
|
message: z.ZodString;
|
|
18
22
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
19
23
|
}, {
|
|
20
24
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
21
25
|
}>, "strip", z.ZodTypeAny, {
|
|
22
26
|
message: string;
|
|
27
|
+
created_at: string;
|
|
23
28
|
is_connected_account_error: true;
|
|
24
29
|
error_code: "invalid_credentials";
|
|
25
30
|
}, {
|
|
26
31
|
message: string;
|
|
32
|
+
created_at: string;
|
|
27
33
|
is_connected_account_error: true;
|
|
28
34
|
error_code: "invalid_credentials";
|
|
29
35
|
}>;
|
|
36
|
+
export declare const salto_ks_subscription_limit_exceeded: z.ZodObject<z.objectUtil.extendShape<{
|
|
37
|
+
created_at: z.ZodString;
|
|
38
|
+
message: z.ZodString;
|
|
39
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
40
|
+
}, {
|
|
41
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
42
|
+
salto_ks_metadata: z.ZodObject<{
|
|
43
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
44
|
+
site_id: z.ZodString;
|
|
45
|
+
site_name: z.ZodString;
|
|
46
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
47
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
site_id: string;
|
|
50
|
+
site_name: string;
|
|
51
|
+
subscribed_site_user_count: number;
|
|
52
|
+
site_user_subscription_limit: number;
|
|
53
|
+
}, {
|
|
54
|
+
site_id: string;
|
|
55
|
+
site_name: string;
|
|
56
|
+
subscribed_site_user_count: number;
|
|
57
|
+
site_user_subscription_limit: number;
|
|
58
|
+
}>, "many">;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
sites: {
|
|
61
|
+
site_id: string;
|
|
62
|
+
site_name: string;
|
|
63
|
+
subscribed_site_user_count: number;
|
|
64
|
+
site_user_subscription_limit: number;
|
|
65
|
+
}[];
|
|
66
|
+
}, {
|
|
67
|
+
sites: {
|
|
68
|
+
site_id: string;
|
|
69
|
+
site_name: string;
|
|
70
|
+
subscribed_site_user_count: number;
|
|
71
|
+
site_user_subscription_limit: number;
|
|
72
|
+
}[];
|
|
73
|
+
}>;
|
|
74
|
+
}>, "strip", z.ZodTypeAny, {
|
|
75
|
+
message: string;
|
|
76
|
+
created_at: string;
|
|
77
|
+
is_connected_account_error: true;
|
|
78
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
79
|
+
salto_ks_metadata: {
|
|
80
|
+
sites: {
|
|
81
|
+
site_id: string;
|
|
82
|
+
site_name: string;
|
|
83
|
+
subscribed_site_user_count: number;
|
|
84
|
+
site_user_subscription_limit: number;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
message: string;
|
|
89
|
+
created_at: string;
|
|
90
|
+
is_connected_account_error: true;
|
|
91
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
92
|
+
salto_ks_metadata: {
|
|
93
|
+
sites: {
|
|
94
|
+
site_id: string;
|
|
95
|
+
site_name: string;
|
|
96
|
+
subscribed_site_user_count: number;
|
|
97
|
+
site_user_subscription_limit: number;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
100
|
+
}>;
|
|
30
101
|
export declare const connected_account_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
102
|
+
created_at: z.ZodString;
|
|
31
103
|
message: z.ZodString;
|
|
32
104
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
33
105
|
}, {
|
|
34
106
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
35
107
|
}>, "strip", z.ZodTypeAny, {
|
|
36
108
|
message: string;
|
|
109
|
+
created_at: string;
|
|
37
110
|
is_connected_account_error: true;
|
|
38
111
|
error_code: "account_disconnected";
|
|
39
112
|
}, {
|
|
40
113
|
message: string;
|
|
114
|
+
created_at: string;
|
|
41
115
|
is_connected_account_error: true;
|
|
42
116
|
error_code: "account_disconnected";
|
|
43
117
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
118
|
+
created_at: z.ZodString;
|
|
44
119
|
message: z.ZodString;
|
|
45
120
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
46
121
|
}, {
|
|
47
122
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
48
123
|
}>, "strip", z.ZodTypeAny, {
|
|
49
124
|
message: string;
|
|
125
|
+
created_at: string;
|
|
50
126
|
is_connected_account_error: true;
|
|
51
127
|
error_code: "invalid_credentials";
|
|
52
128
|
}, {
|
|
53
129
|
message: string;
|
|
130
|
+
created_at: string;
|
|
54
131
|
is_connected_account_error: true;
|
|
55
132
|
error_code: "invalid_credentials";
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export declare const unknown_issue_with_connected_account: z.ZodObject<z.objectUtil.extendShape<{
|
|
133
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
134
|
+
created_at: z.ZodString;
|
|
59
135
|
message: z.ZodString;
|
|
136
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
60
137
|
}, {
|
|
61
|
-
|
|
138
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
139
|
+
salto_ks_metadata: z.ZodObject<{
|
|
140
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
141
|
+
site_id: z.ZodString;
|
|
142
|
+
site_name: z.ZodString;
|
|
143
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
144
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
site_id: string;
|
|
147
|
+
site_name: string;
|
|
148
|
+
subscribed_site_user_count: number;
|
|
149
|
+
site_user_subscription_limit: number;
|
|
150
|
+
}, {
|
|
151
|
+
site_id: string;
|
|
152
|
+
site_name: string;
|
|
153
|
+
subscribed_site_user_count: number;
|
|
154
|
+
site_user_subscription_limit: number;
|
|
155
|
+
}>, "many">;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
sites: {
|
|
158
|
+
site_id: string;
|
|
159
|
+
site_name: string;
|
|
160
|
+
subscribed_site_user_count: number;
|
|
161
|
+
site_user_subscription_limit: number;
|
|
162
|
+
}[];
|
|
163
|
+
}, {
|
|
164
|
+
sites: {
|
|
165
|
+
site_id: string;
|
|
166
|
+
site_name: string;
|
|
167
|
+
subscribed_site_user_count: number;
|
|
168
|
+
site_user_subscription_limit: number;
|
|
169
|
+
}[];
|
|
170
|
+
}>;
|
|
62
171
|
}>, "strip", z.ZodTypeAny, {
|
|
63
172
|
message: string;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
173
|
+
created_at: string;
|
|
174
|
+
is_connected_account_error: true;
|
|
175
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
176
|
+
salto_ks_metadata: {
|
|
177
|
+
sites: {
|
|
178
|
+
site_id: string;
|
|
179
|
+
site_name: string;
|
|
180
|
+
subscribed_site_user_count: number;
|
|
181
|
+
site_user_subscription_limit: number;
|
|
182
|
+
}[];
|
|
183
|
+
};
|
|
71
184
|
}, {
|
|
72
|
-
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
73
|
-
}>, "strip", z.ZodTypeAny, {
|
|
74
185
|
message: string;
|
|
75
|
-
|
|
186
|
+
created_at: string;
|
|
187
|
+
is_connected_account_error: true;
|
|
188
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
189
|
+
salto_ks_metadata: {
|
|
190
|
+
sites: {
|
|
191
|
+
site_id: string;
|
|
192
|
+
site_name: string;
|
|
193
|
+
subscribed_site_user_count: number;
|
|
194
|
+
site_user_subscription_limit: number;
|
|
195
|
+
}[];
|
|
196
|
+
};
|
|
197
|
+
}>]>;
|
|
198
|
+
declare const connected_account_error_map: z.ZodObject<{
|
|
199
|
+
account_disconnected: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
200
|
+
created_at: z.ZodString;
|
|
201
|
+
message: z.ZodString;
|
|
202
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
203
|
+
}, {
|
|
204
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
205
|
+
}>, "strip", z.ZodTypeAny, {
|
|
206
|
+
message: string;
|
|
207
|
+
created_at: string;
|
|
208
|
+
is_connected_account_error: true;
|
|
209
|
+
error_code: "account_disconnected";
|
|
210
|
+
}, {
|
|
211
|
+
message: string;
|
|
212
|
+
created_at: string;
|
|
213
|
+
is_connected_account_error: true;
|
|
214
|
+
error_code: "account_disconnected";
|
|
215
|
+
}>>>;
|
|
216
|
+
invalid_credentials: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
217
|
+
created_at: z.ZodString;
|
|
218
|
+
message: z.ZodString;
|
|
219
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
220
|
+
}, {
|
|
221
|
+
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
222
|
+
}>, "strip", z.ZodTypeAny, {
|
|
223
|
+
message: string;
|
|
224
|
+
created_at: string;
|
|
225
|
+
is_connected_account_error: true;
|
|
226
|
+
error_code: "invalid_credentials";
|
|
227
|
+
}, {
|
|
228
|
+
message: string;
|
|
229
|
+
created_at: string;
|
|
230
|
+
is_connected_account_error: true;
|
|
231
|
+
error_code: "invalid_credentials";
|
|
232
|
+
}>>>;
|
|
233
|
+
salto_ks_subscription_limit_exceeded: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
234
|
+
created_at: z.ZodString;
|
|
235
|
+
message: z.ZodString;
|
|
236
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
237
|
+
}, {
|
|
238
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
239
|
+
salto_ks_metadata: z.ZodObject<{
|
|
240
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
241
|
+
site_id: z.ZodString;
|
|
242
|
+
site_name: z.ZodString;
|
|
243
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
244
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
site_id: string;
|
|
247
|
+
site_name: string;
|
|
248
|
+
subscribed_site_user_count: number;
|
|
249
|
+
site_user_subscription_limit: number;
|
|
250
|
+
}, {
|
|
251
|
+
site_id: string;
|
|
252
|
+
site_name: string;
|
|
253
|
+
subscribed_site_user_count: number;
|
|
254
|
+
site_user_subscription_limit: number;
|
|
255
|
+
}>, "many">;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
sites: {
|
|
258
|
+
site_id: string;
|
|
259
|
+
site_name: string;
|
|
260
|
+
subscribed_site_user_count: number;
|
|
261
|
+
site_user_subscription_limit: number;
|
|
262
|
+
}[];
|
|
263
|
+
}, {
|
|
264
|
+
sites: {
|
|
265
|
+
site_id: string;
|
|
266
|
+
site_name: string;
|
|
267
|
+
subscribed_site_user_count: number;
|
|
268
|
+
site_user_subscription_limit: number;
|
|
269
|
+
}[];
|
|
270
|
+
}>;
|
|
271
|
+
}>, "strip", z.ZodTypeAny, {
|
|
272
|
+
message: string;
|
|
273
|
+
created_at: string;
|
|
274
|
+
is_connected_account_error: true;
|
|
275
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
276
|
+
salto_ks_metadata: {
|
|
277
|
+
sites: {
|
|
278
|
+
site_id: string;
|
|
279
|
+
site_name: string;
|
|
280
|
+
subscribed_site_user_count: number;
|
|
281
|
+
site_user_subscription_limit: number;
|
|
282
|
+
}[];
|
|
283
|
+
};
|
|
284
|
+
}, {
|
|
285
|
+
message: string;
|
|
286
|
+
created_at: string;
|
|
287
|
+
is_connected_account_error: true;
|
|
288
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
289
|
+
salto_ks_metadata: {
|
|
290
|
+
sites: {
|
|
291
|
+
site_id: string;
|
|
292
|
+
site_name: string;
|
|
293
|
+
subscribed_site_user_count: number;
|
|
294
|
+
site_user_subscription_limit: number;
|
|
295
|
+
}[];
|
|
296
|
+
};
|
|
297
|
+
}>>>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
account_disconnected?: {
|
|
300
|
+
message: string;
|
|
301
|
+
created_at: string;
|
|
302
|
+
is_connected_account_error: true;
|
|
303
|
+
error_code: "account_disconnected";
|
|
304
|
+
} | null | undefined;
|
|
305
|
+
invalid_credentials?: {
|
|
306
|
+
message: string;
|
|
307
|
+
created_at: string;
|
|
308
|
+
is_connected_account_error: true;
|
|
309
|
+
error_code: "invalid_credentials";
|
|
310
|
+
} | null | undefined;
|
|
311
|
+
salto_ks_subscription_limit_exceeded?: {
|
|
312
|
+
message: string;
|
|
313
|
+
created_at: string;
|
|
314
|
+
is_connected_account_error: true;
|
|
315
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
316
|
+
salto_ks_metadata: {
|
|
317
|
+
sites: {
|
|
318
|
+
site_id: string;
|
|
319
|
+
site_name: string;
|
|
320
|
+
subscribed_site_user_count: number;
|
|
321
|
+
site_user_subscription_limit: number;
|
|
322
|
+
}[];
|
|
323
|
+
};
|
|
324
|
+
} | null | undefined;
|
|
76
325
|
}, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
326
|
+
account_disconnected?: {
|
|
327
|
+
message: string;
|
|
328
|
+
created_at: string;
|
|
329
|
+
is_connected_account_error: true;
|
|
330
|
+
error_code: "account_disconnected";
|
|
331
|
+
} | null | undefined;
|
|
332
|
+
invalid_credentials?: {
|
|
333
|
+
message: string;
|
|
334
|
+
created_at: string;
|
|
335
|
+
is_connected_account_error: true;
|
|
336
|
+
error_code: "invalid_credentials";
|
|
337
|
+
} | null | undefined;
|
|
338
|
+
salto_ks_subscription_limit_exceeded?: {
|
|
339
|
+
message: string;
|
|
340
|
+
created_at: string;
|
|
341
|
+
is_connected_account_error: true;
|
|
342
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
343
|
+
salto_ks_metadata: {
|
|
344
|
+
sites: {
|
|
345
|
+
site_id: string;
|
|
346
|
+
site_name: string;
|
|
347
|
+
subscribed_site_user_count: number;
|
|
348
|
+
site_user_subscription_limit: number;
|
|
349
|
+
}[];
|
|
350
|
+
};
|
|
351
|
+
} | null | undefined;
|
|
352
|
+
}>;
|
|
353
|
+
export type ConnectedAccountErrorMap = z.infer<typeof connected_account_error_map>;
|
|
354
|
+
export declare const unknown_issue_with_connected_account: z.ZodObject<z.objectUtil.extendShape<{
|
|
355
|
+
created_at: z.ZodString;
|
|
80
356
|
message: z.ZodString;
|
|
81
357
|
}, {
|
|
82
358
|
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
83
359
|
}>, "strip", z.ZodTypeAny, {
|
|
84
360
|
message: string;
|
|
361
|
+
created_at: string;
|
|
85
362
|
warning_code: "unknown_issue_with_connected_account";
|
|
86
363
|
}, {
|
|
87
364
|
message: string;
|
|
365
|
+
created_at: string;
|
|
88
366
|
warning_code: "unknown_issue_with_connected_account";
|
|
89
|
-
}
|
|
90
|
-
|
|
367
|
+
}>;
|
|
368
|
+
declare const connected_account_warning_map: z.ZodObject<{
|
|
369
|
+
scheduled_maintenance_window: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
370
|
+
created_at: z.ZodString;
|
|
371
|
+
message: z.ZodString;
|
|
372
|
+
}, {
|
|
373
|
+
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
374
|
+
}>, "strip", z.ZodTypeAny, {
|
|
375
|
+
message: string;
|
|
376
|
+
created_at: string;
|
|
377
|
+
warning_code: "scheduled_maintenance_window";
|
|
378
|
+
}, {
|
|
379
|
+
message: string;
|
|
380
|
+
created_at: string;
|
|
381
|
+
warning_code: "scheduled_maintenance_window";
|
|
382
|
+
}>>>;
|
|
383
|
+
unknown_issue_with_connected_account: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
384
|
+
created_at: z.ZodString;
|
|
385
|
+
message: z.ZodString;
|
|
386
|
+
}, {
|
|
387
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
388
|
+
}>, "strip", z.ZodTypeAny, {
|
|
389
|
+
message: string;
|
|
390
|
+
created_at: string;
|
|
391
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
392
|
+
}, {
|
|
393
|
+
message: string;
|
|
394
|
+
created_at: string;
|
|
395
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
396
|
+
}>>>;
|
|
397
|
+
salto_ks_subscription_limit_almost_reached: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
398
|
+
created_at: z.ZodString;
|
|
399
|
+
message: z.ZodString;
|
|
400
|
+
}, {
|
|
401
|
+
warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
|
|
402
|
+
salto_ks_metadata: z.ZodObject<{
|
|
403
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
404
|
+
site_id: z.ZodString;
|
|
405
|
+
site_name: z.ZodString;
|
|
406
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
407
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
408
|
+
}, "strip", z.ZodTypeAny, {
|
|
409
|
+
site_id: string;
|
|
410
|
+
site_name: string;
|
|
411
|
+
subscribed_site_user_count: number;
|
|
412
|
+
site_user_subscription_limit: number;
|
|
413
|
+
}, {
|
|
414
|
+
site_id: string;
|
|
415
|
+
site_name: string;
|
|
416
|
+
subscribed_site_user_count: number;
|
|
417
|
+
site_user_subscription_limit: number;
|
|
418
|
+
}>, "many">;
|
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
|
420
|
+
sites: {
|
|
421
|
+
site_id: string;
|
|
422
|
+
site_name: string;
|
|
423
|
+
subscribed_site_user_count: number;
|
|
424
|
+
site_user_subscription_limit: number;
|
|
425
|
+
}[];
|
|
426
|
+
}, {
|
|
427
|
+
sites: {
|
|
428
|
+
site_id: string;
|
|
429
|
+
site_name: string;
|
|
430
|
+
subscribed_site_user_count: number;
|
|
431
|
+
site_user_subscription_limit: number;
|
|
432
|
+
}[];
|
|
433
|
+
}>;
|
|
434
|
+
}>, "strip", z.ZodTypeAny, {
|
|
435
|
+
message: string;
|
|
436
|
+
created_at: string;
|
|
437
|
+
salto_ks_metadata: {
|
|
438
|
+
sites: {
|
|
439
|
+
site_id: string;
|
|
440
|
+
site_name: string;
|
|
441
|
+
subscribed_site_user_count: number;
|
|
442
|
+
site_user_subscription_limit: number;
|
|
443
|
+
}[];
|
|
444
|
+
};
|
|
445
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
446
|
+
}, {
|
|
447
|
+
message: string;
|
|
448
|
+
created_at: string;
|
|
449
|
+
salto_ks_metadata: {
|
|
450
|
+
sites: {
|
|
451
|
+
site_id: string;
|
|
452
|
+
site_name: string;
|
|
453
|
+
subscribed_site_user_count: number;
|
|
454
|
+
site_user_subscription_limit: number;
|
|
455
|
+
}[];
|
|
456
|
+
};
|
|
457
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
458
|
+
}>>>;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
unknown_issue_with_connected_account?: {
|
|
461
|
+
message: string;
|
|
462
|
+
created_at: string;
|
|
463
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
464
|
+
} | null | undefined;
|
|
465
|
+
scheduled_maintenance_window?: {
|
|
466
|
+
message: string;
|
|
467
|
+
created_at: string;
|
|
468
|
+
warning_code: "scheduled_maintenance_window";
|
|
469
|
+
} | null | undefined;
|
|
470
|
+
salto_ks_subscription_limit_almost_reached?: {
|
|
471
|
+
message: string;
|
|
472
|
+
created_at: string;
|
|
473
|
+
salto_ks_metadata: {
|
|
474
|
+
sites: {
|
|
475
|
+
site_id: string;
|
|
476
|
+
site_name: string;
|
|
477
|
+
subscribed_site_user_count: number;
|
|
478
|
+
site_user_subscription_limit: number;
|
|
479
|
+
}[];
|
|
480
|
+
};
|
|
481
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
482
|
+
} | null | undefined;
|
|
483
|
+
}, {
|
|
484
|
+
unknown_issue_with_connected_account?: {
|
|
485
|
+
message: string;
|
|
486
|
+
created_at: string;
|
|
487
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
488
|
+
} | null | undefined;
|
|
489
|
+
scheduled_maintenance_window?: {
|
|
490
|
+
message: string;
|
|
491
|
+
created_at: string;
|
|
492
|
+
warning_code: "scheduled_maintenance_window";
|
|
493
|
+
} | null | undefined;
|
|
494
|
+
salto_ks_subscription_limit_almost_reached?: {
|
|
495
|
+
message: string;
|
|
496
|
+
created_at: string;
|
|
497
|
+
salto_ks_metadata: {
|
|
498
|
+
sites: {
|
|
499
|
+
site_id: string;
|
|
500
|
+
site_name: string;
|
|
501
|
+
subscribed_site_user_count: number;
|
|
502
|
+
site_user_subscription_limit: number;
|
|
503
|
+
}[];
|
|
504
|
+
};
|
|
505
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
506
|
+
} | null | undefined;
|
|
507
|
+
}>;
|
|
508
|
+
export type ConnectedAccountWarningMap = z.infer<typeof connected_account_warning_map>;
|
|
91
509
|
export declare const connected_account: z.ZodObject<{
|
|
92
510
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
93
511
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -113,52 +531,189 @@ export declare const connected_account: z.ZodObject<{
|
|
|
113
531
|
account_type: z.ZodOptional<z.ZodString>;
|
|
114
532
|
account_type_display_name: z.ZodString;
|
|
115
533
|
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
534
|
+
created_at: z.ZodString;
|
|
116
535
|
message: z.ZodString;
|
|
117
536
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
118
537
|
}, {
|
|
119
538
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
120
539
|
}>, "strip", z.ZodTypeAny, {
|
|
121
540
|
message: string;
|
|
541
|
+
created_at: string;
|
|
122
542
|
is_connected_account_error: true;
|
|
123
543
|
error_code: "account_disconnected";
|
|
124
544
|
}, {
|
|
125
545
|
message: string;
|
|
546
|
+
created_at: string;
|
|
126
547
|
is_connected_account_error: true;
|
|
127
548
|
error_code: "account_disconnected";
|
|
128
549
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
550
|
+
created_at: z.ZodString;
|
|
129
551
|
message: z.ZodString;
|
|
130
552
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
131
553
|
}, {
|
|
132
554
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
133
555
|
}>, "strip", z.ZodTypeAny, {
|
|
134
556
|
message: string;
|
|
557
|
+
created_at: string;
|
|
135
558
|
is_connected_account_error: true;
|
|
136
559
|
error_code: "invalid_credentials";
|
|
137
560
|
}, {
|
|
138
561
|
message: string;
|
|
562
|
+
created_at: string;
|
|
139
563
|
is_connected_account_error: true;
|
|
140
564
|
error_code: "invalid_credentials";
|
|
565
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
566
|
+
created_at: z.ZodString;
|
|
567
|
+
message: z.ZodString;
|
|
568
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
569
|
+
}, {
|
|
570
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
571
|
+
salto_ks_metadata: z.ZodObject<{
|
|
572
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
573
|
+
site_id: z.ZodString;
|
|
574
|
+
site_name: z.ZodString;
|
|
575
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
576
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
|
+
site_id: string;
|
|
579
|
+
site_name: string;
|
|
580
|
+
subscribed_site_user_count: number;
|
|
581
|
+
site_user_subscription_limit: number;
|
|
582
|
+
}, {
|
|
583
|
+
site_id: string;
|
|
584
|
+
site_name: string;
|
|
585
|
+
subscribed_site_user_count: number;
|
|
586
|
+
site_user_subscription_limit: number;
|
|
587
|
+
}>, "many">;
|
|
588
|
+
}, "strip", z.ZodTypeAny, {
|
|
589
|
+
sites: {
|
|
590
|
+
site_id: string;
|
|
591
|
+
site_name: string;
|
|
592
|
+
subscribed_site_user_count: number;
|
|
593
|
+
site_user_subscription_limit: number;
|
|
594
|
+
}[];
|
|
595
|
+
}, {
|
|
596
|
+
sites: {
|
|
597
|
+
site_id: string;
|
|
598
|
+
site_name: string;
|
|
599
|
+
subscribed_site_user_count: number;
|
|
600
|
+
site_user_subscription_limit: number;
|
|
601
|
+
}[];
|
|
602
|
+
}>;
|
|
603
|
+
}>, "strip", z.ZodTypeAny, {
|
|
604
|
+
message: string;
|
|
605
|
+
created_at: string;
|
|
606
|
+
is_connected_account_error: true;
|
|
607
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
608
|
+
salto_ks_metadata: {
|
|
609
|
+
sites: {
|
|
610
|
+
site_id: string;
|
|
611
|
+
site_name: string;
|
|
612
|
+
subscribed_site_user_count: number;
|
|
613
|
+
site_user_subscription_limit: number;
|
|
614
|
+
}[];
|
|
615
|
+
};
|
|
616
|
+
}, {
|
|
617
|
+
message: string;
|
|
618
|
+
created_at: string;
|
|
619
|
+
is_connected_account_error: true;
|
|
620
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
621
|
+
salto_ks_metadata: {
|
|
622
|
+
sites: {
|
|
623
|
+
site_id: string;
|
|
624
|
+
site_name: string;
|
|
625
|
+
subscribed_site_user_count: number;
|
|
626
|
+
site_user_subscription_limit: number;
|
|
627
|
+
}[];
|
|
628
|
+
};
|
|
141
629
|
}>]>, "many">;
|
|
142
630
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
631
|
+
created_at: z.ZodString;
|
|
143
632
|
message: z.ZodString;
|
|
144
633
|
}, {
|
|
145
634
|
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
146
635
|
}>, "strip", z.ZodTypeAny, {
|
|
147
636
|
message: string;
|
|
637
|
+
created_at: string;
|
|
148
638
|
warning_code: "scheduled_maintenance_window";
|
|
149
639
|
}, {
|
|
150
640
|
message: string;
|
|
641
|
+
created_at: string;
|
|
151
642
|
warning_code: "scheduled_maintenance_window";
|
|
152
643
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
644
|
+
created_at: z.ZodString;
|
|
153
645
|
message: z.ZodString;
|
|
154
646
|
}, {
|
|
155
647
|
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
156
648
|
}>, "strip", z.ZodTypeAny, {
|
|
157
649
|
message: string;
|
|
650
|
+
created_at: string;
|
|
158
651
|
warning_code: "unknown_issue_with_connected_account";
|
|
159
652
|
}, {
|
|
160
653
|
message: string;
|
|
654
|
+
created_at: string;
|
|
161
655
|
warning_code: "unknown_issue_with_connected_account";
|
|
656
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
657
|
+
created_at: z.ZodString;
|
|
658
|
+
message: z.ZodString;
|
|
659
|
+
}, {
|
|
660
|
+
warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
|
|
661
|
+
salto_ks_metadata: z.ZodObject<{
|
|
662
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
663
|
+
site_id: z.ZodString;
|
|
664
|
+
site_name: z.ZodString;
|
|
665
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
666
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
667
|
+
}, "strip", z.ZodTypeAny, {
|
|
668
|
+
site_id: string;
|
|
669
|
+
site_name: string;
|
|
670
|
+
subscribed_site_user_count: number;
|
|
671
|
+
site_user_subscription_limit: number;
|
|
672
|
+
}, {
|
|
673
|
+
site_id: string;
|
|
674
|
+
site_name: string;
|
|
675
|
+
subscribed_site_user_count: number;
|
|
676
|
+
site_user_subscription_limit: number;
|
|
677
|
+
}>, "many">;
|
|
678
|
+
}, "strip", z.ZodTypeAny, {
|
|
679
|
+
sites: {
|
|
680
|
+
site_id: string;
|
|
681
|
+
site_name: string;
|
|
682
|
+
subscribed_site_user_count: number;
|
|
683
|
+
site_user_subscription_limit: number;
|
|
684
|
+
}[];
|
|
685
|
+
}, {
|
|
686
|
+
sites: {
|
|
687
|
+
site_id: string;
|
|
688
|
+
site_name: string;
|
|
689
|
+
subscribed_site_user_count: number;
|
|
690
|
+
site_user_subscription_limit: number;
|
|
691
|
+
}[];
|
|
692
|
+
}>;
|
|
693
|
+
}>, "strip", z.ZodTypeAny, {
|
|
694
|
+
message: string;
|
|
695
|
+
created_at: string;
|
|
696
|
+
salto_ks_metadata: {
|
|
697
|
+
sites: {
|
|
698
|
+
site_id: string;
|
|
699
|
+
site_name: string;
|
|
700
|
+
subscribed_site_user_count: number;
|
|
701
|
+
site_user_subscription_limit: number;
|
|
702
|
+
}[];
|
|
703
|
+
};
|
|
704
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
705
|
+
}, {
|
|
706
|
+
message: string;
|
|
707
|
+
created_at: string;
|
|
708
|
+
salto_ks_metadata: {
|
|
709
|
+
sites: {
|
|
710
|
+
site_id: string;
|
|
711
|
+
site_name: string;
|
|
712
|
+
subscribed_site_user_count: number;
|
|
713
|
+
site_user_subscription_limit: number;
|
|
714
|
+
}[];
|
|
715
|
+
};
|
|
716
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
162
717
|
}>]>, "many">;
|
|
163
718
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
164
719
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
@@ -166,24 +721,53 @@ export declare const connected_account: z.ZodObject<{
|
|
|
166
721
|
account_type_display_name: string;
|
|
167
722
|
errors: ({
|
|
168
723
|
message: string;
|
|
724
|
+
created_at: string;
|
|
169
725
|
is_connected_account_error: true;
|
|
170
726
|
error_code: "account_disconnected";
|
|
171
727
|
} | {
|
|
172
728
|
message: string;
|
|
729
|
+
created_at: string;
|
|
173
730
|
is_connected_account_error: true;
|
|
174
731
|
error_code: "invalid_credentials";
|
|
732
|
+
} | {
|
|
733
|
+
message: string;
|
|
734
|
+
created_at: string;
|
|
735
|
+
is_connected_account_error: true;
|
|
736
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
737
|
+
salto_ks_metadata: {
|
|
738
|
+
sites: {
|
|
739
|
+
site_id: string;
|
|
740
|
+
site_name: string;
|
|
741
|
+
subscribed_site_user_count: number;
|
|
742
|
+
site_user_subscription_limit: number;
|
|
743
|
+
}[];
|
|
744
|
+
};
|
|
175
745
|
})[];
|
|
176
746
|
warnings: ({
|
|
177
747
|
message: string;
|
|
748
|
+
created_at: string;
|
|
178
749
|
warning_code: "unknown_issue_with_connected_account";
|
|
179
750
|
} | {
|
|
180
751
|
message: string;
|
|
752
|
+
created_at: string;
|
|
181
753
|
warning_code: "scheduled_maintenance_window";
|
|
754
|
+
} | {
|
|
755
|
+
message: string;
|
|
756
|
+
created_at: string;
|
|
757
|
+
salto_ks_metadata: {
|
|
758
|
+
sites: {
|
|
759
|
+
site_id: string;
|
|
760
|
+
site_name: string;
|
|
761
|
+
subscribed_site_user_count: number;
|
|
762
|
+
site_user_subscription_limit: number;
|
|
763
|
+
}[];
|
|
764
|
+
};
|
|
765
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
182
766
|
})[];
|
|
183
767
|
custom_metadata: Record<string, string | boolean>;
|
|
184
768
|
automatically_manage_new_devices: boolean;
|
|
185
|
-
connected_account_id?: string | undefined;
|
|
186
769
|
created_at?: string | undefined;
|
|
770
|
+
connected_account_id?: string | undefined;
|
|
187
771
|
user_identifier?: {
|
|
188
772
|
exclusive?: boolean | undefined;
|
|
189
773
|
username?: string | undefined;
|
|
@@ -196,24 +780,53 @@ export declare const connected_account: z.ZodObject<{
|
|
|
196
780
|
account_type_display_name: string;
|
|
197
781
|
errors: ({
|
|
198
782
|
message: string;
|
|
783
|
+
created_at: string;
|
|
199
784
|
is_connected_account_error: true;
|
|
200
785
|
error_code: "account_disconnected";
|
|
201
786
|
} | {
|
|
202
787
|
message: string;
|
|
788
|
+
created_at: string;
|
|
203
789
|
is_connected_account_error: true;
|
|
204
790
|
error_code: "invalid_credentials";
|
|
791
|
+
} | {
|
|
792
|
+
message: string;
|
|
793
|
+
created_at: string;
|
|
794
|
+
is_connected_account_error: true;
|
|
795
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
796
|
+
salto_ks_metadata: {
|
|
797
|
+
sites: {
|
|
798
|
+
site_id: string;
|
|
799
|
+
site_name: string;
|
|
800
|
+
subscribed_site_user_count: number;
|
|
801
|
+
site_user_subscription_limit: number;
|
|
802
|
+
}[];
|
|
803
|
+
};
|
|
205
804
|
})[];
|
|
206
805
|
warnings: ({
|
|
207
806
|
message: string;
|
|
807
|
+
created_at: string;
|
|
208
808
|
warning_code: "unknown_issue_with_connected_account";
|
|
209
809
|
} | {
|
|
210
810
|
message: string;
|
|
811
|
+
created_at: string;
|
|
211
812
|
warning_code: "scheduled_maintenance_window";
|
|
813
|
+
} | {
|
|
814
|
+
message: string;
|
|
815
|
+
created_at: string;
|
|
816
|
+
salto_ks_metadata: {
|
|
817
|
+
sites: {
|
|
818
|
+
site_id: string;
|
|
819
|
+
site_name: string;
|
|
820
|
+
subscribed_site_user_count: number;
|
|
821
|
+
site_user_subscription_limit: number;
|
|
822
|
+
}[];
|
|
823
|
+
};
|
|
824
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
212
825
|
})[];
|
|
213
826
|
custom_metadata: Record<string, string | boolean>;
|
|
214
827
|
automatically_manage_new_devices: boolean;
|
|
215
|
-
connected_account_id?: string | undefined;
|
|
216
828
|
created_at?: string | undefined;
|
|
829
|
+
connected_account_id?: string | undefined;
|
|
217
830
|
user_identifier?: {
|
|
218
831
|
exclusive?: boolean | undefined;
|
|
219
832
|
username?: string | undefined;
|