@krak-stack/auth 0.2.1 → 0.2.3
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/api.d.ts +2395 -1151
- package/dist/auth/api.group.d.ts +578 -20
- package/dist/auth/schema.d.ts +489 -30
- package/dist/auth/schema.js +14 -1
- package/dist/components/auth-atoms.d.ts +130 -20
- package/dist/components/auth-client-api.d.ts +578 -20
- package/dist/components/contact-fields.d.ts +40 -0
- package/dist/components/contact-fields.js +86 -0
- package/dist/components/organization-switcher.js +30 -125
- package/dist/components/user-button.d.ts +73 -0
- package/dist/components/user-button.js +148 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema.d.ts +279 -12
- package/dist/schema.js +162 -42
- package/dist/server/api.group.d.ts +128 -0
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/proxy.d.ts +4 -0
- package/dist/server/proxy.js +33 -2
- package/dist/server/schema.d.ts +64 -0
- package/dist/service.d.ts +1412 -40
- package/package.json +1 -1
package/dist/auth/schema.d.ts
CHANGED
|
@@ -5,6 +5,38 @@ export declare const AuthUser: Schema.Struct<{
|
|
|
5
5
|
readonly email: Schema.String;
|
|
6
6
|
readonly emailVerified: Schema.Boolean;
|
|
7
7
|
readonly image: Schema.NullOr<Schema.String>;
|
|
8
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
9
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly email: Schema.NonEmptyString;
|
|
11
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
12
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
13
|
+
readonly label: Schema.NonEmptyString;
|
|
14
|
+
}>>;
|
|
15
|
+
}>>>;
|
|
16
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
17
|
+
readonly number: Schema.NonEmptyString;
|
|
18
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
19
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
20
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
21
|
+
readonly label: Schema.NonEmptyString;
|
|
22
|
+
}>>;
|
|
23
|
+
}>>>;
|
|
24
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
25
|
+
readonly url: Schema.NonEmptyString;
|
|
26
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
28
|
+
readonly label: Schema.NonEmptyString;
|
|
29
|
+
}>>;
|
|
30
|
+
}>>>;
|
|
31
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
32
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
33
|
+
readonly url: Schema.NonEmptyString;
|
|
34
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
35
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
36
|
+
readonly label: Schema.NonEmptyString;
|
|
37
|
+
}>>;
|
|
38
|
+
}>>>;
|
|
39
|
+
}>, Schema.Unknown, never, never>>>;
|
|
8
40
|
readonly role: Schema.NullOr<Schema.String>;
|
|
9
41
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
10
42
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -47,6 +79,38 @@ export declare const AuthSessionResponse: Schema.Struct<{
|
|
|
47
79
|
readonly email: Schema.String;
|
|
48
80
|
readonly emailVerified: Schema.Boolean;
|
|
49
81
|
readonly image: Schema.NullOr<Schema.String>;
|
|
82
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
83
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
84
|
+
readonly email: Schema.NonEmptyString;
|
|
85
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
86
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
87
|
+
readonly label: Schema.NonEmptyString;
|
|
88
|
+
}>>;
|
|
89
|
+
}>>>;
|
|
90
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
91
|
+
readonly number: Schema.NonEmptyString;
|
|
92
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
93
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
94
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
95
|
+
readonly label: Schema.NonEmptyString;
|
|
96
|
+
}>>;
|
|
97
|
+
}>>>;
|
|
98
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
99
|
+
readonly url: Schema.NonEmptyString;
|
|
100
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
101
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
102
|
+
readonly label: Schema.NonEmptyString;
|
|
103
|
+
}>>;
|
|
104
|
+
}>>>;
|
|
105
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
106
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
107
|
+
readonly url: Schema.NonEmptyString;
|
|
108
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
109
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
110
|
+
readonly label: Schema.NonEmptyString;
|
|
111
|
+
}>>;
|
|
112
|
+
}>>>;
|
|
113
|
+
}>, Schema.Unknown, never, never>>>;
|
|
50
114
|
readonly role: Schema.NullOr<Schema.String>;
|
|
51
115
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
52
116
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -77,6 +141,38 @@ export declare const GetSessionResponse: Schema.NullOr<Schema.Struct<{
|
|
|
77
141
|
readonly email: Schema.String;
|
|
78
142
|
readonly emailVerified: Schema.Boolean;
|
|
79
143
|
readonly image: Schema.NullOr<Schema.String>;
|
|
144
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
145
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
146
|
+
readonly email: Schema.NonEmptyString;
|
|
147
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
148
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
149
|
+
readonly label: Schema.NonEmptyString;
|
|
150
|
+
}>>;
|
|
151
|
+
}>>>;
|
|
152
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
153
|
+
readonly number: Schema.NonEmptyString;
|
|
154
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
155
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
156
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
157
|
+
readonly label: Schema.NonEmptyString;
|
|
158
|
+
}>>;
|
|
159
|
+
}>>>;
|
|
160
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
161
|
+
readonly url: Schema.NonEmptyString;
|
|
162
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
163
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
164
|
+
readonly label: Schema.NonEmptyString;
|
|
165
|
+
}>>;
|
|
166
|
+
}>>>;
|
|
167
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
168
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
169
|
+
readonly url: Schema.NonEmptyString;
|
|
170
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
171
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
172
|
+
readonly label: Schema.NonEmptyString;
|
|
173
|
+
}>>;
|
|
174
|
+
}>>>;
|
|
175
|
+
}>, Schema.Unknown, never, never>>>;
|
|
80
176
|
readonly role: Schema.NullOr<Schema.String>;
|
|
81
177
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
82
178
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -178,6 +274,38 @@ export declare class AuthInternalServerError extends AuthInternalServerError_bas
|
|
|
178
274
|
export declare const UpdateUserPayload: Schema.Struct<{
|
|
179
275
|
readonly name: Schema.optional<Schema.String>;
|
|
180
276
|
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
277
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
278
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
279
|
+
readonly email: Schema.NonEmptyString;
|
|
280
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
281
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
282
|
+
readonly label: Schema.NonEmptyString;
|
|
283
|
+
}>>;
|
|
284
|
+
}>>>;
|
|
285
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
286
|
+
readonly number: Schema.NonEmptyString;
|
|
287
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
288
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
289
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
290
|
+
readonly label: Schema.NonEmptyString;
|
|
291
|
+
}>>;
|
|
292
|
+
}>>>;
|
|
293
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
294
|
+
readonly url: Schema.NonEmptyString;
|
|
295
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
296
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
297
|
+
readonly label: Schema.NonEmptyString;
|
|
298
|
+
}>>;
|
|
299
|
+
}>>>;
|
|
300
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
301
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
302
|
+
readonly url: Schema.NonEmptyString;
|
|
303
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
304
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
305
|
+
readonly label: Schema.NonEmptyString;
|
|
306
|
+
}>>;
|
|
307
|
+
}>>>;
|
|
308
|
+
}>>>;
|
|
181
309
|
}>;
|
|
182
310
|
export declare const SignInEmailPayload: Schema.Struct<{
|
|
183
311
|
readonly email: Schema.String;
|
|
@@ -196,6 +324,38 @@ export declare const SignInEmailResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
196
324
|
readonly email: Schema.String;
|
|
197
325
|
readonly emailVerified: Schema.Boolean;
|
|
198
326
|
readonly image: Schema.NullOr<Schema.String>;
|
|
327
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
328
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
329
|
+
readonly email: Schema.NonEmptyString;
|
|
330
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
331
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
332
|
+
readonly label: Schema.NonEmptyString;
|
|
333
|
+
}>>;
|
|
334
|
+
}>>>;
|
|
335
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
336
|
+
readonly number: Schema.NonEmptyString;
|
|
337
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
338
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
339
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
340
|
+
readonly label: Schema.NonEmptyString;
|
|
341
|
+
}>>;
|
|
342
|
+
}>>>;
|
|
343
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
344
|
+
readonly url: Schema.NonEmptyString;
|
|
345
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
346
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
347
|
+
readonly label: Schema.NonEmptyString;
|
|
348
|
+
}>>;
|
|
349
|
+
}>>>;
|
|
350
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
351
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
352
|
+
readonly url: Schema.NonEmptyString;
|
|
353
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
354
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
355
|
+
readonly label: Schema.NonEmptyString;
|
|
356
|
+
}>>;
|
|
357
|
+
}>>>;
|
|
358
|
+
}>, Schema.Unknown, never, never>>>;
|
|
199
359
|
readonly role: Schema.NullOr<Schema.String>;
|
|
200
360
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
201
361
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -224,6 +384,38 @@ export declare const SignInResponse: Schema.Struct<{
|
|
|
224
384
|
readonly email: Schema.String;
|
|
225
385
|
readonly emailVerified: Schema.Boolean;
|
|
226
386
|
readonly image: Schema.NullOr<Schema.String>;
|
|
387
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
388
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
389
|
+
readonly email: Schema.NonEmptyString;
|
|
390
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
391
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
392
|
+
readonly label: Schema.NonEmptyString;
|
|
393
|
+
}>>;
|
|
394
|
+
}>>>;
|
|
395
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
396
|
+
readonly number: Schema.NonEmptyString;
|
|
397
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
398
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
399
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
400
|
+
readonly label: Schema.NonEmptyString;
|
|
401
|
+
}>>;
|
|
402
|
+
}>>>;
|
|
403
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
404
|
+
readonly url: Schema.NonEmptyString;
|
|
405
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
406
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
407
|
+
readonly label: Schema.NonEmptyString;
|
|
408
|
+
}>>;
|
|
409
|
+
}>>>;
|
|
410
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
411
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
412
|
+
readonly url: Schema.NonEmptyString;
|
|
413
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
414
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
415
|
+
readonly label: Schema.NonEmptyString;
|
|
416
|
+
}>>;
|
|
417
|
+
}>>>;
|
|
418
|
+
}>, Schema.Unknown, never, never>>>;
|
|
227
419
|
readonly role: Schema.NullOr<Schema.String>;
|
|
228
420
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
229
421
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -284,6 +476,38 @@ export declare const SocialRedirectResponse: Schema.Struct<{
|
|
|
284
476
|
readonly email: Schema.String;
|
|
285
477
|
readonly emailVerified: Schema.Boolean;
|
|
286
478
|
readonly image: Schema.NullOr<Schema.String>;
|
|
479
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
480
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
481
|
+
readonly email: Schema.NonEmptyString;
|
|
482
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
483
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
484
|
+
readonly label: Schema.NonEmptyString;
|
|
485
|
+
}>>;
|
|
486
|
+
}>>>;
|
|
487
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
488
|
+
readonly number: Schema.NonEmptyString;
|
|
489
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
490
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
491
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
492
|
+
readonly label: Schema.NonEmptyString;
|
|
493
|
+
}>>;
|
|
494
|
+
}>>>;
|
|
495
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
496
|
+
readonly url: Schema.NonEmptyString;
|
|
497
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
498
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
499
|
+
readonly label: Schema.NonEmptyString;
|
|
500
|
+
}>>;
|
|
501
|
+
}>>>;
|
|
502
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
503
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
504
|
+
readonly url: Schema.NonEmptyString;
|
|
505
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
506
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
507
|
+
readonly label: Schema.NonEmptyString;
|
|
508
|
+
}>>;
|
|
509
|
+
}>>>;
|
|
510
|
+
}>, Schema.Unknown, never, never>>>;
|
|
287
511
|
readonly role: Schema.NullOr<Schema.String>;
|
|
288
512
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
289
513
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -312,6 +536,38 @@ export declare const VerifyEmailOtpResponse: Schema.Struct<{
|
|
|
312
536
|
readonly email: Schema.String;
|
|
313
537
|
readonly emailVerified: Schema.Boolean;
|
|
314
538
|
readonly image: Schema.NullOr<Schema.String>;
|
|
539
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
540
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
541
|
+
readonly email: Schema.NonEmptyString;
|
|
542
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
543
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
544
|
+
readonly label: Schema.NonEmptyString;
|
|
545
|
+
}>>;
|
|
546
|
+
}>>>;
|
|
547
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
548
|
+
readonly number: Schema.NonEmptyString;
|
|
549
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
550
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
551
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
552
|
+
readonly label: Schema.NonEmptyString;
|
|
553
|
+
}>>;
|
|
554
|
+
}>>>;
|
|
555
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
556
|
+
readonly url: Schema.NonEmptyString;
|
|
557
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
558
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
559
|
+
readonly label: Schema.NonEmptyString;
|
|
560
|
+
}>>;
|
|
561
|
+
}>>>;
|
|
562
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
563
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
564
|
+
readonly url: Schema.NonEmptyString;
|
|
565
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
566
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
567
|
+
readonly label: Schema.NonEmptyString;
|
|
568
|
+
}>>;
|
|
569
|
+
}>>>;
|
|
570
|
+
}>, Schema.Unknown, never, never>>>;
|
|
315
571
|
readonly role: Schema.NullOr<Schema.String>;
|
|
316
572
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
317
573
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -347,6 +603,38 @@ export declare const ChangePasswordResponse: Schema.Struct<{
|
|
|
347
603
|
readonly email: Schema.String;
|
|
348
604
|
readonly emailVerified: Schema.Boolean;
|
|
349
605
|
readonly image: Schema.NullOr<Schema.String>;
|
|
606
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
607
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
608
|
+
readonly email: Schema.NonEmptyString;
|
|
609
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
610
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
611
|
+
readonly label: Schema.NonEmptyString;
|
|
612
|
+
}>>;
|
|
613
|
+
}>>>;
|
|
614
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
615
|
+
readonly number: Schema.NonEmptyString;
|
|
616
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
617
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
618
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
619
|
+
readonly label: Schema.NonEmptyString;
|
|
620
|
+
}>>;
|
|
621
|
+
}>>>;
|
|
622
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
623
|
+
readonly url: Schema.NonEmptyString;
|
|
624
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
625
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
626
|
+
readonly label: Schema.NonEmptyString;
|
|
627
|
+
}>>;
|
|
628
|
+
}>>>;
|
|
629
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
630
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
631
|
+
readonly url: Schema.NonEmptyString;
|
|
632
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
633
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
634
|
+
readonly label: Schema.NonEmptyString;
|
|
635
|
+
}>>;
|
|
636
|
+
}>>>;
|
|
637
|
+
}>, Schema.Unknown, never, never>>>;
|
|
350
638
|
readonly role: Schema.NullOr<Schema.String>;
|
|
351
639
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
352
640
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -428,6 +716,44 @@ export declare const AuthMemberRecord: Schema.Struct<{
|
|
|
428
716
|
readonly role: Schema.String;
|
|
429
717
|
readonly createdAt: Schema.DateFromString;
|
|
430
718
|
}>;
|
|
719
|
+
export declare const AuthMemberUser: Schema.Struct<{
|
|
720
|
+
readonly id: Schema.String;
|
|
721
|
+
readonly name: Schema.String;
|
|
722
|
+
readonly email: Schema.String;
|
|
723
|
+
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
724
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
725
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
726
|
+
readonly email: Schema.NonEmptyString;
|
|
727
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
728
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
729
|
+
readonly label: Schema.NonEmptyString;
|
|
730
|
+
}>>;
|
|
731
|
+
}>>>;
|
|
732
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
733
|
+
readonly number: Schema.NonEmptyString;
|
|
734
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
735
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
736
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
737
|
+
readonly label: Schema.NonEmptyString;
|
|
738
|
+
}>>;
|
|
739
|
+
}>>>;
|
|
740
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
741
|
+
readonly url: Schema.NonEmptyString;
|
|
742
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
743
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
744
|
+
readonly label: Schema.NonEmptyString;
|
|
745
|
+
}>>;
|
|
746
|
+
}>>>;
|
|
747
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
748
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
749
|
+
readonly url: Schema.NonEmptyString;
|
|
750
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
751
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
752
|
+
readonly label: Schema.NonEmptyString;
|
|
753
|
+
}>>;
|
|
754
|
+
}>>>;
|
|
755
|
+
}>, Schema.Unknown, never, never>>>;
|
|
756
|
+
}>;
|
|
431
757
|
export declare const AuthMember: Schema.Struct<{
|
|
432
758
|
readonly id: Schema.String;
|
|
433
759
|
readonly organizationId: Schema.String;
|
|
@@ -438,16 +764,39 @@ export declare const AuthMember: Schema.Struct<{
|
|
|
438
764
|
readonly id: Schema.String;
|
|
439
765
|
readonly name: Schema.String;
|
|
440
766
|
readonly email: Schema.String;
|
|
441
|
-
readonly
|
|
442
|
-
readonly
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
767
|
+
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
768
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
769
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
770
|
+
readonly email: Schema.NonEmptyString;
|
|
771
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
772
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
773
|
+
readonly label: Schema.NonEmptyString;
|
|
774
|
+
}>>;
|
|
775
|
+
}>>>;
|
|
776
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
777
|
+
readonly number: Schema.NonEmptyString;
|
|
778
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
779
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
780
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
781
|
+
readonly label: Schema.NonEmptyString;
|
|
782
|
+
}>>;
|
|
783
|
+
}>>>;
|
|
784
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
785
|
+
readonly url: Schema.NonEmptyString;
|
|
786
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
787
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
788
|
+
readonly label: Schema.NonEmptyString;
|
|
789
|
+
}>>;
|
|
790
|
+
}>>>;
|
|
791
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
792
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
793
|
+
readonly url: Schema.NonEmptyString;
|
|
794
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
795
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
796
|
+
readonly label: Schema.NonEmptyString;
|
|
797
|
+
}>>;
|
|
798
|
+
}>>>;
|
|
799
|
+
}>, Schema.Unknown, never, never>>>;
|
|
451
800
|
}>;
|
|
452
801
|
}>;
|
|
453
802
|
export declare const AuthInvitation: Schema.Struct<{
|
|
@@ -481,16 +830,39 @@ export declare const FullAuthOrganization: Schema.Struct<{
|
|
|
481
830
|
readonly id: Schema.String;
|
|
482
831
|
readonly name: Schema.String;
|
|
483
832
|
readonly email: Schema.String;
|
|
484
|
-
readonly
|
|
485
|
-
readonly
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
833
|
+
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
834
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
835
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
836
|
+
readonly email: Schema.NonEmptyString;
|
|
837
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
838
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
839
|
+
readonly label: Schema.NonEmptyString;
|
|
840
|
+
}>>;
|
|
841
|
+
}>>>;
|
|
842
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
843
|
+
readonly number: Schema.NonEmptyString;
|
|
844
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
845
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
846
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
847
|
+
readonly label: Schema.NonEmptyString;
|
|
848
|
+
}>>;
|
|
849
|
+
}>>>;
|
|
850
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
851
|
+
readonly url: Schema.NonEmptyString;
|
|
852
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
853
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
854
|
+
readonly label: Schema.NonEmptyString;
|
|
855
|
+
}>>;
|
|
856
|
+
}>>>;
|
|
857
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
858
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
859
|
+
readonly url: Schema.NonEmptyString;
|
|
860
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
861
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
862
|
+
readonly label: Schema.NonEmptyString;
|
|
863
|
+
}>>;
|
|
864
|
+
}>>>;
|
|
865
|
+
}>, Schema.Unknown, never, never>>>;
|
|
494
866
|
}>;
|
|
495
867
|
}>>;
|
|
496
868
|
readonly invitations: Schema.$Array<Schema.Struct<{
|
|
@@ -555,16 +927,39 @@ export declare const OrganizationListMembersResponse: Schema.Struct<{
|
|
|
555
927
|
readonly id: Schema.String;
|
|
556
928
|
readonly name: Schema.String;
|
|
557
929
|
readonly email: Schema.String;
|
|
558
|
-
readonly
|
|
559
|
-
readonly
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
930
|
+
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
931
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
932
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
933
|
+
readonly email: Schema.NonEmptyString;
|
|
934
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
935
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
936
|
+
readonly label: Schema.NonEmptyString;
|
|
937
|
+
}>>;
|
|
938
|
+
}>>>;
|
|
939
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
940
|
+
readonly number: Schema.NonEmptyString;
|
|
941
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
942
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
943
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
944
|
+
readonly label: Schema.NonEmptyString;
|
|
945
|
+
}>>;
|
|
946
|
+
}>>>;
|
|
947
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
948
|
+
readonly url: Schema.NonEmptyString;
|
|
949
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
950
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
951
|
+
readonly label: Schema.NonEmptyString;
|
|
952
|
+
}>>;
|
|
953
|
+
}>>>;
|
|
954
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
955
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
956
|
+
readonly url: Schema.NonEmptyString;
|
|
957
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
958
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
959
|
+
readonly label: Schema.NonEmptyString;
|
|
960
|
+
}>>;
|
|
961
|
+
}>>>;
|
|
962
|
+
}>, Schema.Unknown, never, never>>>;
|
|
568
963
|
}>;
|
|
569
964
|
}>>;
|
|
570
965
|
readonly total: Schema.Number;
|
|
@@ -668,6 +1063,38 @@ export declare const OrganizationImpersonateUserResponse: Schema.Struct<{
|
|
|
668
1063
|
readonly email: Schema.String;
|
|
669
1064
|
readonly emailVerified: Schema.Boolean;
|
|
670
1065
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1066
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1067
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1068
|
+
readonly email: Schema.NonEmptyString;
|
|
1069
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1070
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1071
|
+
readonly label: Schema.NonEmptyString;
|
|
1072
|
+
}>>;
|
|
1073
|
+
}>>>;
|
|
1074
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1075
|
+
readonly number: Schema.NonEmptyString;
|
|
1076
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
1077
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1078
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1079
|
+
readonly label: Schema.NonEmptyString;
|
|
1080
|
+
}>>;
|
|
1081
|
+
}>>>;
|
|
1082
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1083
|
+
readonly url: Schema.NonEmptyString;
|
|
1084
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1085
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1086
|
+
readonly label: Schema.NonEmptyString;
|
|
1087
|
+
}>>;
|
|
1088
|
+
}>>>;
|
|
1089
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1090
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1091
|
+
readonly url: Schema.NonEmptyString;
|
|
1092
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1093
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1094
|
+
readonly label: Schema.NonEmptyString;
|
|
1095
|
+
}>>;
|
|
1096
|
+
}>>>;
|
|
1097
|
+
}>, Schema.Unknown, never, never>>>;
|
|
671
1098
|
readonly role: Schema.NullOr<Schema.String>;
|
|
672
1099
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
673
1100
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
@@ -760,6 +1187,38 @@ export declare const AdminUserResponse: Schema.Struct<{
|
|
|
760
1187
|
readonly email: Schema.String;
|
|
761
1188
|
readonly emailVerified: Schema.Boolean;
|
|
762
1189
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1190
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1191
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1192
|
+
readonly email: Schema.NonEmptyString;
|
|
1193
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1194
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1195
|
+
readonly label: Schema.NonEmptyString;
|
|
1196
|
+
}>>;
|
|
1197
|
+
}>>>;
|
|
1198
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1199
|
+
readonly number: Schema.NonEmptyString;
|
|
1200
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
1201
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1202
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1203
|
+
readonly label: Schema.NonEmptyString;
|
|
1204
|
+
}>>;
|
|
1205
|
+
}>>>;
|
|
1206
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1207
|
+
readonly url: Schema.NonEmptyString;
|
|
1208
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1209
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1210
|
+
readonly label: Schema.NonEmptyString;
|
|
1211
|
+
}>>;
|
|
1212
|
+
}>>>;
|
|
1213
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1214
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1215
|
+
readonly url: Schema.NonEmptyString;
|
|
1216
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1217
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1218
|
+
readonly label: Schema.NonEmptyString;
|
|
1219
|
+
}>>;
|
|
1220
|
+
}>>>;
|
|
1221
|
+
}>, Schema.Unknown, never, never>>>;
|
|
763
1222
|
readonly role: Schema.NullOr<Schema.String>;
|
|
764
1223
|
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
765
1224
|
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|