@krak-stack/auth 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/access.d.ts +1 -3
  2. package/dist/access.js +1 -3
  3. package/dist/admin/api.group.d.ts +36 -36
  4. package/dist/admin/api.group.js +13 -13
  5. package/dist/api.d.ts +2109 -865
  6. package/dist/auth/api.group.d.ts +664 -106
  7. package/dist/auth/api.group.js +8 -8
  8. package/dist/auth/schema.d.ts +537 -70
  9. package/dist/auth/schema.js +26 -10
  10. package/dist/components/admin-organization-form.js +1 -0
  11. package/dist/components/admin-organizations.d.ts +4 -5
  12. package/dist/components/admin-organizations.js +34 -31
  13. package/dist/components/admin-users.d.ts +5 -6
  14. package/dist/components/admin-users.js +51 -50
  15. package/dist/components/api-key-edit-form.js +2 -1
  16. package/dist/components/auth-atoms.d.ts +213 -103
  17. package/dist/components/auth-client-api.d.ts +1412 -2371
  18. package/dist/components/auth-client-api.js +11 -7
  19. package/dist/components/auth-forms.js +6 -1
  20. package/dist/components/auth-provider.d.ts +13 -13
  21. package/dist/components/contact-fields.d.ts +40 -0
  22. package/dist/components/contact-fields.js +86 -0
  23. package/dist/components/member-required.js +2 -2
  24. package/dist/components/organization-switcher.js +101 -193
  25. package/dist/components/user-button.d.ts +73 -0
  26. package/dist/components/user-button.js +179 -29
  27. package/dist/extra/api.group.d.ts +19 -19
  28. package/dist/extra/api.group.js +3 -3
  29. package/dist/extra/schema.d.ts +1 -2
  30. package/dist/extra/schema.js +1 -2
  31. package/dist/query.js +5 -5
  32. package/dist/schema.d.ts +279 -12
  33. package/dist/schema.js +162 -42
  34. package/dist/server/api.group.d.ts +157 -29
  35. package/dist/server/api.group.js +12 -12
  36. package/dist/server/schema.d.ts +64 -0
  37. package/dist/service.d.ts +3380 -2446
  38. package/package.json +4 -4
@@ -2,17 +2,49 @@ import { Schema } from "effect";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
3
3
  import { AuthBadRequest } from "./schema.js";
4
4
  export * from "./schema.js";
5
- export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndpoint.HttpApiEndpoint<"adminBanUser", "POST", "/admin/ban-user", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
5
+ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndpoint.HttpApiEndpoint<"adminBanUser", "POST", "/admin/ban-user", never, never, Schema.toCodecJson<Schema.Struct<{
6
6
  readonly userId: Schema.String;
7
7
  readonly banReason: Schema.optional<Schema.String>;
8
8
  readonly banExpiresIn: Schema.optional<Schema.Number>;
9
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
9
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
10
10
  readonly user: Schema.Struct<{
11
11
  readonly id: Schema.String;
12
12
  readonly name: Schema.String;
13
13
  readonly email: Schema.String;
14
14
  readonly emailVerified: Schema.Boolean;
15
15
  readonly image: Schema.NullOr<Schema.String>;
16
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
17
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
18
+ readonly email: Schema.NonEmptyString;
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 phones: Schema.optional<Schema.$Array<Schema.Struct<{
25
+ readonly number: Schema.NonEmptyString;
26
+ readonly extension: Schema.optional<Schema.String>;
27
+ readonly translations: Schema.$Array<Schema.Struct<{
28
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
29
+ readonly label: Schema.NonEmptyString;
30
+ }>>;
31
+ }>>>;
32
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
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
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
40
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
41
+ readonly url: Schema.NonEmptyString;
42
+ readonly translations: Schema.$Array<Schema.Struct<{
43
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
44
+ readonly label: Schema.NonEmptyString;
45
+ }>>;
46
+ }>>>;
47
+ }>, Schema.Unknown, never, never>>>;
16
48
  readonly role: Schema.NullOr<Schema.String>;
17
49
  readonly banned: Schema.NullOr<Schema.Boolean>;
18
50
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -22,9 +54,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
22
54
  readonly createdAt: Schema.DateFromString;
23
55
  readonly updatedAt: Schema.DateFromString;
24
56
  }>;
25
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"adminImpersonateUser", "POST", "/admin/impersonate-user", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
57
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"adminImpersonateUser", "POST", "/admin/impersonate-user", never, never, Schema.toCodecJson<Schema.Struct<{
26
58
  readonly userId: Schema.String;
27
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
59
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
28
60
  readonly session: Schema.Struct<{
29
61
  readonly id: Schema.String;
30
62
  readonly expiresAt: Schema.DateFromString;
@@ -44,6 +76,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
44
76
  readonly email: Schema.String;
45
77
  readonly emailVerified: Schema.Boolean;
46
78
  readonly image: Schema.NullOr<Schema.String>;
79
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
80
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
81
+ readonly email: Schema.NonEmptyString;
82
+ readonly translations: Schema.$Array<Schema.Struct<{
83
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
84
+ readonly label: Schema.NonEmptyString;
85
+ }>>;
86
+ }>>>;
87
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
88
+ readonly number: Schema.NonEmptyString;
89
+ readonly extension: Schema.optional<Schema.String>;
90
+ readonly translations: Schema.$Array<Schema.Struct<{
91
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
92
+ readonly label: Schema.NonEmptyString;
93
+ }>>;
94
+ }>>>;
95
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
96
+ readonly url: Schema.NonEmptyString;
97
+ readonly translations: Schema.$Array<Schema.Struct<{
98
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
99
+ readonly label: Schema.NonEmptyString;
100
+ }>>;
101
+ }>>>;
102
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
103
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
104
+ readonly url: Schema.NonEmptyString;
105
+ readonly translations: Schema.$Array<Schema.Struct<{
106
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
107
+ readonly label: Schema.NonEmptyString;
108
+ }>>;
109
+ }>>>;
110
+ }>, Schema.Unknown, never, never>>>;
47
111
  readonly role: Schema.NullOr<Schema.String>;
48
112
  readonly banned: Schema.NullOr<Schema.Boolean>;
49
113
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -53,7 +117,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
53
117
  readonly createdAt: Schema.DateFromString;
54
118
  readonly updatedAt: Schema.DateFromString;
55
119
  }>;
56
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"adminStopImpersonating", "POST", "/admin/stop-impersonating", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
120
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"adminStopImpersonating", "POST", "/admin/stop-impersonating", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
57
121
  readonly session: Schema.Struct<{
58
122
  readonly id: Schema.String;
59
123
  readonly expiresAt: Schema.DateFromString;
@@ -73,6 +137,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
73
137
  readonly email: Schema.String;
74
138
  readonly emailVerified: Schema.Boolean;
75
139
  readonly image: Schema.NullOr<Schema.String>;
140
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
141
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
142
+ readonly email: Schema.NonEmptyString;
143
+ readonly translations: Schema.$Array<Schema.Struct<{
144
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
145
+ readonly label: Schema.NonEmptyString;
146
+ }>>;
147
+ }>>>;
148
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
149
+ readonly number: Schema.NonEmptyString;
150
+ readonly extension: Schema.optional<Schema.String>;
151
+ readonly translations: Schema.$Array<Schema.Struct<{
152
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
153
+ readonly label: Schema.NonEmptyString;
154
+ }>>;
155
+ }>>>;
156
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
157
+ readonly url: Schema.NonEmptyString;
158
+ readonly translations: Schema.$Array<Schema.Struct<{
159
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
160
+ readonly label: Schema.NonEmptyString;
161
+ }>>;
162
+ }>>>;
163
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
164
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
165
+ readonly url: Schema.NonEmptyString;
166
+ readonly translations: Schema.$Array<Schema.Struct<{
167
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
168
+ readonly label: Schema.NonEmptyString;
169
+ }>>;
170
+ }>>>;
171
+ }>, Schema.Unknown, never, never>>>;
76
172
  readonly role: Schema.NullOr<Schema.String>;
77
173
  readonly banned: Schema.NullOr<Schema.Boolean>;
78
174
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -82,15 +178,47 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
82
178
  readonly createdAt: Schema.DateFromString;
83
179
  readonly updatedAt: Schema.DateFromString;
84
180
  }>;
85
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"adminUnbanUser", "POST", "/admin/unban-user", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
181
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"adminUnbanUser", "POST", "/admin/unban-user", never, never, Schema.toCodecJson<Schema.Struct<{
86
182
  readonly userId: Schema.String;
87
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
183
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
88
184
  readonly user: Schema.Struct<{
89
185
  readonly id: Schema.String;
90
186
  readonly name: Schema.String;
91
187
  readonly email: Schema.String;
92
188
  readonly emailVerified: Schema.Boolean;
93
189
  readonly image: Schema.NullOr<Schema.String>;
190
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
191
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
192
+ readonly email: Schema.NonEmptyString;
193
+ readonly translations: Schema.$Array<Schema.Struct<{
194
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
195
+ readonly label: Schema.NonEmptyString;
196
+ }>>;
197
+ }>>>;
198
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
199
+ readonly number: Schema.NonEmptyString;
200
+ readonly extension: Schema.optional<Schema.String>;
201
+ readonly translations: Schema.$Array<Schema.Struct<{
202
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
203
+ readonly label: Schema.NonEmptyString;
204
+ }>>;
205
+ }>>>;
206
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
207
+ readonly url: Schema.NonEmptyString;
208
+ readonly translations: Schema.$Array<Schema.Struct<{
209
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
210
+ readonly label: Schema.NonEmptyString;
211
+ }>>;
212
+ }>>>;
213
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
214
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
215
+ readonly url: Schema.NonEmptyString;
216
+ readonly translations: Schema.$Array<Schema.Struct<{
217
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
218
+ readonly label: Schema.NonEmptyString;
219
+ }>>;
220
+ }>>>;
221
+ }>, Schema.Unknown, never, never>>>;
94
222
  readonly role: Schema.NullOr<Schema.String>;
95
223
  readonly banned: Schema.NullOr<Schema.Boolean>;
96
224
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -100,19 +228,19 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
100
228
  readonly createdAt: Schema.DateFromString;
101
229
  readonly updatedAt: Schema.DateFromString;
102
230
  }>;
103
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"apiKeyDelete", "POST", "/api-key/delete", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
231
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"apiKeyDelete", "POST", "/api-key/delete", never, never, Schema.toCodecJson<Schema.Struct<{
104
232
  readonly configId: Schema.optional<Schema.String>;
105
233
  readonly keyId: Schema.String;
106
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
234
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
107
235
  readonly success: Schema.Boolean;
108
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"apiKeyList", "GET", "/api-key/list", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
236
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"apiKeyList", "GET", "/api-key/list", never, Schema.toCodecStringTree<Schema.Struct<{
109
237
  readonly configId: Schema.optional<Schema.String>;
110
238
  readonly organizationId: Schema.optional<Schema.String>;
111
239
  readonly limit: Schema.optional<Schema.NumberFromString>;
112
240
  readonly offset: Schema.optional<Schema.NumberFromString>;
113
241
  readonly sortBy: Schema.optional<Schema.String>;
114
242
  readonly sortDirection: Schema.optional<Schema.Literals<readonly ["asc", "desc"]>>;
115
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
243
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
116
244
  readonly apiKeys: Schema.$Array<Schema.Struct<{
117
245
  readonly id: Schema.String;
118
246
  readonly name: Schema.NullOr<Schema.String>;
@@ -141,11 +269,11 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
141
269
  readonly total: Schema.Number;
142
270
  readonly limit: Schema.optional<Schema.NullOr<Schema.Number>>;
143
271
  readonly offset: Schema.optional<Schema.NullOr<Schema.Number>>;
144
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"changePassword", "POST", "/change-password", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
272
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"changePassword", "POST", "/change-password", never, never, Schema.toCodecJson<Schema.Struct<{
145
273
  readonly newPassword: Schema.String;
146
274
  readonly currentPassword: Schema.String;
147
275
  readonly revokeOtherSessions: Schema.optional<Schema.Boolean>;
148
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
276
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
149
277
  readonly token: Schema.optional<Schema.NullOr<Schema.String>>;
150
278
  readonly user: Schema.Struct<{
151
279
  readonly id: Schema.String;
@@ -153,6 +281,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
153
281
  readonly email: Schema.String;
154
282
  readonly emailVerified: Schema.Boolean;
155
283
  readonly image: Schema.NullOr<Schema.String>;
284
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
285
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
286
+ readonly email: Schema.NonEmptyString;
287
+ readonly translations: Schema.$Array<Schema.Struct<{
288
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
289
+ readonly label: Schema.NonEmptyString;
290
+ }>>;
291
+ }>>>;
292
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
293
+ readonly number: Schema.NonEmptyString;
294
+ readonly extension: Schema.optional<Schema.String>;
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 websites: Schema.optional<Schema.$Array<Schema.Struct<{
301
+ readonly url: Schema.NonEmptyString;
302
+ readonly translations: Schema.$Array<Schema.Struct<{
303
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
304
+ readonly label: Schema.NonEmptyString;
305
+ }>>;
306
+ }>>>;
307
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
308
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
309
+ readonly url: Schema.NonEmptyString;
310
+ readonly translations: Schema.$Array<Schema.Struct<{
311
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
312
+ readonly label: Schema.NonEmptyString;
313
+ }>>;
314
+ }>>>;
315
+ }>, Schema.Unknown, never, never>>>;
156
316
  readonly role: Schema.NullOr<Schema.String>;
157
317
  readonly banned: Schema.NullOr<Schema.Boolean>;
158
318
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -162,10 +322,10 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
162
322
  readonly createdAt: Schema.DateFromString;
163
323
  readonly updatedAt: Schema.DateFromString;
164
324
  }>;
165
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSession", "GET", "/get-session", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
325
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSession", "GET", "/get-session", never, Schema.toCodecStringTree<Schema.Struct<{
166
326
  readonly disableCookieCache: Schema.optional<Schema.String>;
167
327
  readonly disableRefresh: Schema.optional<Schema.String>;
168
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
328
+ }>>, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
169
329
  readonly session: Schema.Struct<{
170
330
  readonly id: Schema.String;
171
331
  readonly expiresAt: Schema.DateFromString;
@@ -185,6 +345,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
185
345
  readonly email: Schema.String;
186
346
  readonly emailVerified: Schema.Boolean;
187
347
  readonly image: Schema.NullOr<Schema.String>;
348
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
349
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
350
+ readonly email: Schema.NonEmptyString;
351
+ readonly translations: Schema.$Array<Schema.Struct<{
352
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
353
+ readonly label: Schema.NonEmptyString;
354
+ }>>;
355
+ }>>>;
356
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
357
+ readonly number: Schema.NonEmptyString;
358
+ readonly extension: Schema.optional<Schema.String>;
359
+ readonly translations: Schema.$Array<Schema.Struct<{
360
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
361
+ readonly label: Schema.NonEmptyString;
362
+ }>>;
363
+ }>>>;
364
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
365
+ readonly url: Schema.NonEmptyString;
366
+ readonly translations: Schema.$Array<Schema.Struct<{
367
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
368
+ readonly label: Schema.NonEmptyString;
369
+ }>>;
370
+ }>>>;
371
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
372
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
373
+ readonly url: Schema.NonEmptyString;
374
+ readonly translations: Schema.$Array<Schema.Struct<{
375
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
376
+ readonly label: Schema.NonEmptyString;
377
+ }>>;
378
+ }>>>;
379
+ }>, Schema.Unknown, never, never>>>;
188
380
  readonly role: Schema.NullOr<Schema.String>;
189
381
  readonly banned: Schema.NullOr<Schema.Boolean>;
190
382
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -194,7 +386,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
194
386
  readonly createdAt: Schema.DateFromString;
195
387
  readonly updatedAt: Schema.DateFromString;
196
388
  }>;
197
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkSocial", "POST", "/link-social", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
389
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkSocial", "POST", "/link-social", never, never, Schema.toCodecJson<Schema.Struct<{
198
390
  readonly callbackURL: Schema.optional<Schema.String>;
199
391
  readonly provider: Schema.String;
200
392
  readonly idToken: Schema.optional<Schema.Struct<{
@@ -209,7 +401,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
209
401
  readonly errorCallbackURL: Schema.optional<Schema.String>;
210
402
  readonly disableRedirect: Schema.optional<Schema.Boolean>;
211
403
  readonly additionalData: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
212
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
404
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
213
405
  readonly url: Schema.optional<Schema.String>;
214
406
  readonly redirect: Schema.Boolean;
215
407
  readonly token: Schema.optional<Schema.String>;
@@ -219,6 +411,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
219
411
  readonly email: Schema.String;
220
412
  readonly emailVerified: Schema.Boolean;
221
413
  readonly image: Schema.NullOr<Schema.String>;
414
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
415
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
416
+ readonly email: Schema.NonEmptyString;
417
+ readonly translations: Schema.$Array<Schema.Struct<{
418
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
419
+ readonly label: Schema.NonEmptyString;
420
+ }>>;
421
+ }>>>;
422
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
423
+ readonly number: Schema.NonEmptyString;
424
+ readonly extension: Schema.optional<Schema.String>;
425
+ readonly translations: Schema.$Array<Schema.Struct<{
426
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
427
+ readonly label: Schema.NonEmptyString;
428
+ }>>;
429
+ }>>>;
430
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
431
+ readonly url: Schema.NonEmptyString;
432
+ readonly translations: Schema.$Array<Schema.Struct<{
433
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
434
+ readonly label: Schema.NonEmptyString;
435
+ }>>;
436
+ }>>>;
437
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
438
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
439
+ readonly url: Schema.NonEmptyString;
440
+ readonly translations: Schema.$Array<Schema.Struct<{
441
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
442
+ readonly label: Schema.NonEmptyString;
443
+ }>>;
444
+ }>>>;
445
+ }>, Schema.Unknown, never, never>>>;
222
446
  readonly role: Schema.NullOr<Schema.String>;
223
447
  readonly banned: Schema.NullOr<Schema.Boolean>;
224
448
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -229,7 +453,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
229
453
  readonly updatedAt: Schema.DateFromString;
230
454
  }>>;
231
455
  readonly status: Schema.optional<Schema.Boolean>;
232
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listAccounts", "GET", "/list-accounts", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
456
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listAccounts", "GET", "/list-accounts", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
233
457
  readonly id: Schema.String;
234
458
  readonly providerId: Schema.String;
235
459
  readonly createdAt: Schema.DateFromString;
@@ -237,16 +461,16 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
237
461
  readonly accountId: Schema.String;
238
462
  readonly userId: Schema.String;
239
463
  readonly scopes: Schema.$Array<Schema.String>;
240
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"oauthConsent", "POST", "/oauth2/consent", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
464
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"oauthConsent", "POST", "/oauth2/consent", never, never, Schema.toCodecJson<Schema.Struct<{
241
465
  readonly accept: Schema.Boolean;
242
466
  readonly scope: Schema.optional<Schema.String>;
243
467
  readonly oauth_query: Schema.optional<Schema.String>;
244
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
468
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
245
469
  readonly redirect: Schema.Boolean;
246
470
  readonly url: Schema.String;
247
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"oauthPublicClient", "GET", "/oauth2/public-client", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
471
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"oauthPublicClient", "GET", "/oauth2/public-client", never, Schema.toCodecStringTree<Schema.Struct<{
248
472
  readonly client_id: Schema.String;
249
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
473
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
250
474
  readonly client_id: Schema.String;
251
475
  readonly client_name: Schema.optional<Schema.String>;
252
476
  readonly client_uri: Schema.optional<Schema.String>;
@@ -255,9 +479,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
255
479
  readonly tos_uri: Schema.optional<Schema.String>;
256
480
  readonly policy_uri: Schema.optional<Schema.String>;
257
481
  readonly redirect_uris: Schema.$Array<Schema.String>;
258
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/organization/accept-invitation", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
482
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/organization/accept-invitation", never, never, Schema.toCodecJson<Schema.Struct<{
259
483
  readonly invitationId: Schema.String;
260
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
484
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
261
485
  readonly invitation: Schema.NullOr<Schema.Struct<{
262
486
  readonly id: Schema.String;
263
487
  readonly email: Schema.String;
@@ -277,9 +501,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
277
501
  readonly role: Schema.String;
278
502
  readonly createdAt: Schema.DateFromString;
279
503
  }>>;
280
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationCancelInvitation", "POST", "/organization/cancel-invitation", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
504
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationCancelInvitation", "POST", "/organization/cancel-invitation", never, never, Schema.toCodecJson<Schema.Struct<{
281
505
  readonly invitationId: Schema.String;
282
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
506
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
283
507
  readonly id: Schema.String;
284
508
  readonly email: Schema.String;
285
509
  readonly role: Schema.String;
@@ -290,14 +514,14 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
290
514
  readonly status: Schema.String;
291
515
  readonly expiresAt: Schema.DateFromString;
292
516
  readonly createdAt: Schema.optional<Schema.DateFromString>;
293
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationCreate", "POST", "/organization/create", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
517
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationCreate", "POST", "/organization/create", never, never, Schema.toCodecJson<Schema.Struct<{
294
518
  readonly name: Schema.NonEmptyString;
295
519
  readonly slug: Schema.NonEmptyString;
296
520
  readonly logo: Schema.optional<Schema.NullOr<Schema.String>>;
297
521
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
298
522
  readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
299
523
  readonly keepCurrentActiveOrganization: Schema.optional<Schema.Boolean>;
300
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
524
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
301
525
  readonly id: Schema.String;
302
526
  readonly name: Schema.String;
303
527
  readonly slug: Schema.String;
@@ -306,11 +530,11 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
306
530
  readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
307
531
  readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
308
532
  readonly createdAt: Schema.DateFromString;
309
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationGetFull", "GET", "/organization/get-full-organization", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
533
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationGetFull", "GET", "/organization/get-full-organization", never, Schema.toCodecStringTree<Schema.Struct<{
310
534
  readonly organizationId: Schema.optional<Schema.String>;
311
535
  readonly organizationSlug: Schema.optional<Schema.String>;
312
536
  readonly membersLimit: Schema.optional<Schema.NumberFromString>;
313
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
537
+ }>>, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
314
538
  readonly id: Schema.String;
315
539
  readonly name: Schema.String;
316
540
  readonly slug: Schema.String;
@@ -329,16 +553,39 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
329
553
  readonly id: Schema.String;
330
554
  readonly name: Schema.String;
331
555
  readonly email: Schema.String;
332
- readonly emailVerified: Schema.Boolean;
333
- readonly image: Schema.NullOr<Schema.String>;
334
- readonly role: Schema.NullOr<Schema.String>;
335
- readonly banned: Schema.NullOr<Schema.Boolean>;
336
- readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
337
- readonly banExpires: Schema.optional<Schema.NullOr<Schema.DateFromString>>;
338
- readonly twoFactorEnabled: Schema.optional<Schema.Boolean>;
339
- readonly lastLoginMethod: Schema.optional<Schema.NullOr<Schema.String>>;
340
- readonly createdAt: Schema.DateFromString;
341
- readonly updatedAt: Schema.DateFromString;
556
+ readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
557
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
558
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
559
+ readonly email: Schema.NonEmptyString;
560
+ readonly translations: Schema.$Array<Schema.Struct<{
561
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
562
+ readonly label: Schema.NonEmptyString;
563
+ }>>;
564
+ }>>>;
565
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
566
+ readonly number: Schema.NonEmptyString;
567
+ readonly extension: Schema.optional<Schema.String>;
568
+ readonly translations: Schema.$Array<Schema.Struct<{
569
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
570
+ readonly label: Schema.NonEmptyString;
571
+ }>>;
572
+ }>>>;
573
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
574
+ readonly url: Schema.NonEmptyString;
575
+ readonly translations: Schema.$Array<Schema.Struct<{
576
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
577
+ readonly label: Schema.NonEmptyString;
578
+ }>>;
579
+ }>>>;
580
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
581
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
582
+ readonly url: Schema.NonEmptyString;
583
+ readonly translations: Schema.$Array<Schema.Struct<{
584
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
585
+ readonly label: Schema.NonEmptyString;
586
+ }>>;
587
+ }>>>;
588
+ }>, Schema.Unknown, never, never>>>;
342
589
  }>;
343
590
  }>>;
344
591
  readonly invitations: Schema.$Array<Schema.Struct<{
@@ -353,9 +600,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
353
600
  readonly expiresAt: Schema.DateFromString;
354
601
  readonly createdAt: Schema.optional<Schema.DateFromString>;
355
602
  }>>;
356
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationGetInvitation", "GET", "/organization/get-invitation", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
603
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationGetInvitation", "GET", "/organization/get-invitation", never, Schema.toCodecStringTree<Schema.Struct<{
357
604
  readonly id: Schema.String;
358
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
605
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
359
606
  readonly id: Schema.String;
360
607
  readonly email: Schema.String;
361
608
  readonly role: Schema.String;
@@ -368,12 +615,12 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
368
615
  readonly organizationName: Schema.String;
369
616
  readonly organizationSlug: Schema.String;
370
617
  readonly inviterEmail: Schema.String;
371
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationImpersonateUser", "POST", "/organization/impersonate-user", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
618
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationImpersonateUser", "POST", "/organization/impersonate-user", never, never, Schema.toCodecJson<Schema.Struct<{
372
619
  readonly organizationId: Schema.NonEmptyString;
373
620
  readonly actorUserId: Schema.NonEmptyString;
374
621
  readonly targetUserId: Schema.NonEmptyString;
375
622
  readonly expiresInSeconds: Schema.optional<Schema.Number>;
376
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
623
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
377
624
  readonly session: Schema.Struct<{
378
625
  readonly id: Schema.String;
379
626
  readonly expiresAt: Schema.DateFromString;
@@ -393,6 +640,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
393
640
  readonly email: Schema.String;
394
641
  readonly emailVerified: Schema.Boolean;
395
642
  readonly image: Schema.NullOr<Schema.String>;
643
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
644
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
645
+ readonly email: Schema.NonEmptyString;
646
+ readonly translations: Schema.$Array<Schema.Struct<{
647
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
648
+ readonly label: Schema.NonEmptyString;
649
+ }>>;
650
+ }>>>;
651
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
652
+ readonly number: Schema.NonEmptyString;
653
+ readonly extension: Schema.optional<Schema.String>;
654
+ readonly translations: Schema.$Array<Schema.Struct<{
655
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
656
+ readonly label: Schema.NonEmptyString;
657
+ }>>;
658
+ }>>>;
659
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
660
+ readonly url: Schema.NonEmptyString;
661
+ readonly translations: Schema.$Array<Schema.Struct<{
662
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
663
+ readonly label: Schema.NonEmptyString;
664
+ }>>;
665
+ }>>>;
666
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
667
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
668
+ readonly url: Schema.NonEmptyString;
669
+ readonly translations: Schema.$Array<Schema.Struct<{
670
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
671
+ readonly label: Schema.NonEmptyString;
672
+ }>>;
673
+ }>>>;
674
+ }>, Schema.Unknown, never, never>>>;
396
675
  readonly role: Schema.NullOr<Schema.String>;
397
676
  readonly banned: Schema.NullOr<Schema.Boolean>;
398
677
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -402,13 +681,13 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
402
681
  readonly createdAt: Schema.DateFromString;
403
682
  readonly updatedAt: Schema.DateFromString;
404
683
  }>;
405
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationInviteMember", "POST", "/organization/invite-member", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
684
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationInviteMember", "POST", "/organization/invite-member", never, never, Schema.toCodecJson<Schema.Struct<{
406
685
  readonly email: Schema.String;
407
686
  readonly role: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
408
687
  readonly organizationId: Schema.optional<Schema.String>;
409
688
  readonly resend: Schema.optional<Schema.Boolean>;
410
689
  readonly teamId: Schema.optional<Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>>;
411
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
690
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
412
691
  readonly id: Schema.String;
413
692
  readonly email: Schema.String;
414
693
  readonly role: Schema.String;
@@ -419,15 +698,15 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
419
698
  readonly status: Schema.String;
420
699
  readonly expiresAt: Schema.DateFromString;
421
700
  readonly createdAt: Schema.optional<Schema.DateFromString>;
422
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationLeave", "POST", "/organization/leave", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
701
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationLeave", "POST", "/organization/leave", never, never, Schema.toCodecJson<Schema.Struct<{
423
702
  readonly organizationId: Schema.String;
424
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
703
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
425
704
  readonly id: Schema.String;
426
705
  readonly organizationId: Schema.String;
427
706
  readonly userId: Schema.String;
428
707
  readonly role: Schema.String;
429
708
  readonly createdAt: Schema.DateFromString;
430
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationList", "GET", "/organization/list", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
709
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationList", "GET", "/organization/list", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
431
710
  readonly id: Schema.String;
432
711
  readonly name: Schema.String;
433
712
  readonly slug: Schema.String;
@@ -436,9 +715,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
436
715
  readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
437
716
  readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
438
717
  readonly createdAt: Schema.DateFromString;
439
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListInvitations", "GET", "/organization/list-invitations", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
718
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListInvitations", "GET", "/organization/list-invitations", never, Schema.toCodecStringTree<Schema.Struct<{
440
719
  readonly organizationId: Schema.optional<Schema.String>;
441
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
720
+ }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
442
721
  readonly id: Schema.String;
443
722
  readonly email: Schema.String;
444
723
  readonly role: Schema.String;
@@ -449,7 +728,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
449
728
  readonly status: Schema.String;
450
729
  readonly expiresAt: Schema.DateFromString;
451
730
  readonly createdAt: Schema.optional<Schema.DateFromString>;
452
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListMembers", "GET", "/organization/list-members", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
731
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListMembers", "GET", "/organization/list-members", never, Schema.toCodecStringTree<Schema.Struct<{
453
732
  readonly limit: Schema.optional<Schema.NumberFromString>;
454
733
  readonly offset: Schema.optional<Schema.NumberFromString>;
455
734
  readonly sortBy: Schema.optional<Schema.String>;
@@ -459,7 +738,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
459
738
  readonly filterOperator: Schema.optional<Schema.String>;
460
739
  readonly organizationId: Schema.optional<Schema.String>;
461
740
  readonly organizationSlug: Schema.optional<Schema.String>;
462
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
741
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
463
742
  readonly members: Schema.$Array<Schema.Struct<{
464
743
  readonly id: Schema.String;
465
744
  readonly organizationId: Schema.String;
@@ -470,20 +749,43 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
470
749
  readonly id: Schema.String;
471
750
  readonly name: Schema.String;
472
751
  readonly email: Schema.String;
473
- readonly emailVerified: Schema.Boolean;
474
- readonly image: Schema.NullOr<Schema.String>;
475
- readonly role: Schema.NullOr<Schema.String>;
476
- readonly banned: Schema.NullOr<Schema.Boolean>;
477
- readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
478
- readonly banExpires: Schema.optional<Schema.NullOr<Schema.DateFromString>>;
479
- readonly twoFactorEnabled: Schema.optional<Schema.Boolean>;
480
- readonly lastLoginMethod: Schema.optional<Schema.NullOr<Schema.String>>;
481
- readonly createdAt: Schema.DateFromString;
482
- readonly updatedAt: Schema.DateFromString;
752
+ readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
753
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
754
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
755
+ readonly email: Schema.NonEmptyString;
756
+ readonly translations: Schema.$Array<Schema.Struct<{
757
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
758
+ readonly label: Schema.NonEmptyString;
759
+ }>>;
760
+ }>>>;
761
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
762
+ readonly number: Schema.NonEmptyString;
763
+ readonly extension: Schema.optional<Schema.String>;
764
+ readonly translations: Schema.$Array<Schema.Struct<{
765
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
766
+ readonly label: Schema.NonEmptyString;
767
+ }>>;
768
+ }>>>;
769
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
770
+ readonly url: 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 socials: Schema.optional<Schema.$Array<Schema.Struct<{
777
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
778
+ readonly url: Schema.NonEmptyString;
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
+ }>, Schema.Unknown, never, never>>>;
483
785
  }>;
484
786
  }>>;
485
787
  readonly total: Schema.Number;
486
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListUserInvitations", "GET", "/organization/list-user-invitations", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
788
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationListUserInvitations", "GET", "/organization/list-user-invitations", never, Schema.toCodecStringTree<Schema.Struct<{}>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
487
789
  readonly id: Schema.String;
488
790
  readonly email: Schema.String;
489
791
  readonly role: Schema.String;
@@ -494,9 +796,9 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
494
796
  readonly status: Schema.String;
495
797
  readonly expiresAt: Schema.DateFromString;
496
798
  readonly createdAt: Schema.optional<Schema.DateFromString>;
497
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationRejectInvitation", "POST", "/organization/reject-invitation", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
799
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationRejectInvitation", "POST", "/organization/reject-invitation", never, never, Schema.toCodecJson<Schema.Struct<{
498
800
  readonly invitationId: Schema.String;
499
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
801
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
500
802
  readonly invitation: Schema.NullOr<Schema.Struct<{
501
803
  readonly id: Schema.String;
502
804
  readonly email: Schema.String;
@@ -516,10 +818,10 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
516
818
  readonly role: Schema.String;
517
819
  readonly createdAt: Schema.DateFromString;
518
820
  }>>;
519
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationRemoveMember", "POST", "/organization/remove-member", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
821
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationRemoveMember", "POST", "/organization/remove-member", never, never, Schema.toCodecJson<Schema.Struct<{
520
822
  readonly memberIdOrEmail: Schema.String;
521
823
  readonly organizationId: Schema.optional<Schema.String>;
522
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
824
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
523
825
  readonly member: Schema.Struct<{
524
826
  readonly id: Schema.String;
525
827
  readonly organizationId: Schema.String;
@@ -527,10 +829,10 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
527
829
  readonly role: Schema.String;
528
830
  readonly createdAt: Schema.DateFromString;
529
831
  }>;
530
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationSetActive", "POST", "/organization/set-active", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
832
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationSetActive", "POST", "/organization/set-active", never, never, Schema.toCodecJson<Schema.Struct<{
531
833
  readonly organizationId: Schema.optional<Schema.NullOr<Schema.String>>;
532
834
  readonly organizationSlug: Schema.optional<Schema.String>;
533
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.NullOr<Schema.Struct<{
835
+ }>>, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
534
836
  readonly id: Schema.String;
535
837
  readonly name: Schema.String;
536
838
  readonly slug: Schema.String;
@@ -539,7 +841,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
539
841
  readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
540
842
  readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
541
843
  readonly createdAt: Schema.DateFromString;
542
- }>>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationUpdate", "POST", "/organization/update", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
844
+ }>>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationUpdate", "POST", "/organization/update", never, never, Schema.toCodecJson<Schema.Struct<{
543
845
  readonly organizationId: Schema.optional<Schema.String>;
544
846
  readonly data: Schema.Struct<{
545
847
  readonly name: Schema.optional<Schema.NonEmptyString>;
@@ -548,7 +850,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
548
850
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
549
851
  readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
550
852
  }>;
551
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
853
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
552
854
  readonly id: Schema.String;
553
855
  readonly name: Schema.String;
554
856
  readonly slug: Schema.String;
@@ -557,39 +859,39 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
557
859
  readonly userId: Schema.optional<Schema.NullOr<Schema.String>>;
558
860
  readonly parentId: Schema.optional<Schema.NullOr<Schema.String>>;
559
861
  readonly createdAt: Schema.DateFromString;
560
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/organization/update-member-role", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
862
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/organization/update-member-role", never, never, Schema.toCodecJson<Schema.Struct<{
561
863
  readonly role: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.String>]>;
562
864
  readonly memberId: Schema.String;
563
865
  readonly organizationId: Schema.optional<Schema.String>;
564
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
866
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
565
867
  readonly id: Schema.String;
566
868
  readonly organizationId: Schema.String;
567
869
  readonly userId: Schema.String;
568
870
  readonly role: Schema.String;
569
871
  readonly createdAt: Schema.DateFromString;
570
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"requestPasswordReset", "POST", "/request-password-reset", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
872
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"requestPasswordReset", "POST", "/request-password-reset", never, never, Schema.toCodecJson<Schema.Struct<{
571
873
  readonly email: Schema.String;
572
874
  readonly redirectTo: Schema.optional<Schema.String>;
573
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
875
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
574
876
  readonly status: Schema.Boolean;
575
877
  readonly message: Schema.String;
576
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resetPassword", "POST", "/reset-password", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
878
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resetPassword", "POST", "/reset-password", never, never, Schema.toCodecJson<Schema.Struct<{
577
879
  readonly newPassword: Schema.String;
578
880
  readonly token: Schema.optional<Schema.String>;
579
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
881
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
580
882
  readonly status: Schema.Boolean;
581
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sendVerificationOtp", "POST", "/email-otp/send-verification-otp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
883
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sendVerificationOtp", "POST", "/email-otp/send-verification-otp", never, never, Schema.toCodecJson<Schema.Struct<{
582
884
  readonly email: Schema.String;
583
885
  readonly type: Schema.Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
584
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
886
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
585
887
  readonly success: Schema.Boolean;
586
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInEmail", "POST", "/sign-in/email", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
888
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInEmail", "POST", "/sign-in/email", never, never, Schema.toCodecJson<Schema.Struct<{
587
889
  readonly email: Schema.String;
588
890
  readonly password: Schema.String;
589
891
  readonly callbackURL: Schema.optional<Schema.String>;
590
892
  readonly rememberMe: Schema.optional<Schema.Boolean>;
591
893
  readonly oauth_query: Schema.optional<Schema.String>;
592
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Union<readonly [Schema.Struct<{
894
+ }>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
593
895
  readonly redirect: Schema.Boolean;
594
896
  readonly token: Schema.String;
595
897
  readonly url: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -599,6 +901,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
599
901
  readonly email: Schema.String;
600
902
  readonly emailVerified: Schema.Boolean;
601
903
  readonly image: Schema.NullOr<Schema.String>;
904
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
905
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
906
+ readonly email: Schema.NonEmptyString;
907
+ readonly translations: Schema.$Array<Schema.Struct<{
908
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
909
+ readonly label: Schema.NonEmptyString;
910
+ }>>;
911
+ }>>>;
912
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
913
+ readonly number: Schema.NonEmptyString;
914
+ readonly extension: Schema.optional<Schema.String>;
915
+ readonly translations: Schema.$Array<Schema.Struct<{
916
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
917
+ readonly label: Schema.NonEmptyString;
918
+ }>>;
919
+ }>>>;
920
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
921
+ readonly url: Schema.NonEmptyString;
922
+ readonly translations: Schema.$Array<Schema.Struct<{
923
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
924
+ readonly label: Schema.NonEmptyString;
925
+ }>>;
926
+ }>>>;
927
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
928
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
929
+ readonly url: Schema.NonEmptyString;
930
+ readonly translations: Schema.$Array<Schema.Struct<{
931
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
932
+ readonly label: Schema.NonEmptyString;
933
+ }>>;
934
+ }>>>;
935
+ }>, Schema.Unknown, never, never>>>;
602
936
  readonly role: Schema.NullOr<Schema.String>;
603
937
  readonly banned: Schema.NullOr<Schema.Boolean>;
604
938
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -612,12 +946,12 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
612
946
  readonly twoFactorRedirect: Schema.Literal<true>;
613
947
  readonly twoFactorMethods: Schema.$Array<Schema.String>;
614
948
  readonly url: Schema.optional<Schema.NullOr<Schema.String>>;
615
- }>]>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInEmailOtp", "POST", "/sign-in/email-otp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
949
+ }>]>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInEmailOtp", "POST", "/sign-in/email-otp", never, never, Schema.toCodecJson<Schema.Struct<{
616
950
  readonly email: Schema.String;
617
951
  readonly otp: Schema.String;
618
952
  readonly name: Schema.optional<Schema.String>;
619
953
  readonly image: Schema.optional<Schema.String>;
620
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
954
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
621
955
  readonly token: Schema.optional<Schema.String>;
622
956
  readonly user: Schema.Struct<{
623
957
  readonly id: Schema.String;
@@ -625,6 +959,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
625
959
  readonly email: Schema.String;
626
960
  readonly emailVerified: Schema.Boolean;
627
961
  readonly image: Schema.NullOr<Schema.String>;
962
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
963
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
964
+ readonly email: Schema.NonEmptyString;
965
+ readonly translations: Schema.$Array<Schema.Struct<{
966
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
967
+ readonly label: Schema.NonEmptyString;
968
+ }>>;
969
+ }>>>;
970
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
971
+ readonly number: Schema.NonEmptyString;
972
+ readonly extension: Schema.optional<Schema.String>;
973
+ readonly translations: Schema.$Array<Schema.Struct<{
974
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
975
+ readonly label: Schema.NonEmptyString;
976
+ }>>;
977
+ }>>>;
978
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
979
+ readonly url: Schema.NonEmptyString;
980
+ readonly translations: Schema.$Array<Schema.Struct<{
981
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
982
+ readonly label: Schema.NonEmptyString;
983
+ }>>;
984
+ }>>>;
985
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
986
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
987
+ readonly url: Schema.NonEmptyString;
988
+ readonly translations: Schema.$Array<Schema.Struct<{
989
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
990
+ readonly label: Schema.NonEmptyString;
991
+ }>>;
992
+ }>>>;
993
+ }>, Schema.Unknown, never, never>>>;
628
994
  readonly role: Schema.NullOr<Schema.String>;
629
995
  readonly banned: Schema.NullOr<Schema.Boolean>;
630
996
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -634,7 +1000,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
634
1000
  readonly createdAt: Schema.DateFromString;
635
1001
  readonly updatedAt: Schema.DateFromString;
636
1002
  }>;
637
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInSocial", "POST", "/sign-in/social", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1003
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInSocial", "POST", "/sign-in/social", never, never, Schema.toCodecJson<Schema.Struct<{
638
1004
  readonly callbackURL: Schema.optional<Schema.String>;
639
1005
  readonly newUserCallbackURL: Schema.optional<Schema.String>;
640
1006
  readonly errorCallbackURL: Schema.optional<Schema.String>;
@@ -659,7 +1025,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
659
1025
  readonly loginHint: Schema.optional<Schema.String>;
660
1026
  readonly additionalData: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
661
1027
  readonly oauth_query: Schema.optional<Schema.String>;
662
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1028
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
663
1029
  readonly url: Schema.optional<Schema.String>;
664
1030
  readonly redirect: Schema.Boolean;
665
1031
  readonly token: Schema.optional<Schema.String>;
@@ -669,6 +1035,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
669
1035
  readonly email: Schema.String;
670
1036
  readonly emailVerified: Schema.Boolean;
671
1037
  readonly image: Schema.NullOr<Schema.String>;
1038
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
1039
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
1040
+ readonly email: Schema.NonEmptyString;
1041
+ readonly translations: Schema.$Array<Schema.Struct<{
1042
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1043
+ readonly label: Schema.NonEmptyString;
1044
+ }>>;
1045
+ }>>>;
1046
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
1047
+ readonly number: Schema.NonEmptyString;
1048
+ readonly extension: Schema.optional<Schema.String>;
1049
+ readonly translations: Schema.$Array<Schema.Struct<{
1050
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1051
+ readonly label: Schema.NonEmptyString;
1052
+ }>>;
1053
+ }>>>;
1054
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
1055
+ readonly url: Schema.NonEmptyString;
1056
+ readonly translations: Schema.$Array<Schema.Struct<{
1057
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1058
+ readonly label: Schema.NonEmptyString;
1059
+ }>>;
1060
+ }>>>;
1061
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
1062
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1063
+ readonly url: Schema.NonEmptyString;
1064
+ readonly translations: Schema.$Array<Schema.Struct<{
1065
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1066
+ readonly label: Schema.NonEmptyString;
1067
+ }>>;
1068
+ }>>>;
1069
+ }>, Schema.Unknown, never, never>>>;
672
1070
  readonly role: Schema.NullOr<Schema.String>;
673
1071
  readonly banned: Schema.NullOr<Schema.Boolean>;
674
1072
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -679,28 +1077,28 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
679
1077
  readonly updatedAt: Schema.DateFromString;
680
1078
  }>>;
681
1079
  readonly status: Schema.optional<Schema.Boolean>;
682
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signOut", "POST", "/sign-out", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1080
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signOut", "POST", "/sign-out", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
683
1081
  readonly success: Schema.Boolean;
684
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorDisable", "POST", "/two-factor/disable", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1082
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorDisable", "POST", "/two-factor/disable", never, never, Schema.toCodecJson<Schema.Struct<{
685
1083
  readonly password: Schema.optional<Schema.String>;
686
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1084
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
687
1085
  readonly status: Schema.Boolean;
688
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorEnable", "POST", "/two-factor/enable", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1086
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorEnable", "POST", "/two-factor/enable", never, never, Schema.toCodecJson<Schema.Struct<{
689
1087
  readonly password: Schema.optional<Schema.String>;
690
1088
  readonly issuer: Schema.optional<Schema.String>;
691
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1089
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
692
1090
  readonly totpURI: Schema.String;
693
1091
  readonly backupCodes: Schema.$Array<Schema.String>;
694
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorSendOtp", "POST", "/two-factor/send-otp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1092
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorSendOtp", "POST", "/two-factor/send-otp", never, never, Schema.toCodecJson<Schema.Struct<{
695
1093
  readonly trustDevice: Schema.optional<Schema.Boolean>;
696
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1094
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
697
1095
  readonly status: Schema.Boolean;
698
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/two-factor/verify-backup-code", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1096
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/two-factor/verify-backup-code", never, never, Schema.toCodecJson<Schema.Struct<{
699
1097
  readonly code: Schema.String;
700
1098
  readonly disableSession: Schema.optional<Schema.Boolean>;
701
1099
  readonly trustDevice: Schema.optional<Schema.Boolean>;
702
1100
  readonly oauth_query: Schema.optional<Schema.String>;
703
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1101
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
704
1102
  readonly token: Schema.optional<Schema.String>;
705
1103
  readonly user: Schema.Struct<{
706
1104
  readonly id: Schema.String;
@@ -708,6 +1106,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
708
1106
  readonly email: Schema.String;
709
1107
  readonly emailVerified: Schema.Boolean;
710
1108
  readonly image: Schema.NullOr<Schema.String>;
1109
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
1110
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
1111
+ readonly email: Schema.NonEmptyString;
1112
+ readonly translations: Schema.$Array<Schema.Struct<{
1113
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1114
+ readonly label: Schema.NonEmptyString;
1115
+ }>>;
1116
+ }>>>;
1117
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
1118
+ readonly number: Schema.NonEmptyString;
1119
+ readonly extension: Schema.optional<Schema.String>;
1120
+ readonly translations: Schema.$Array<Schema.Struct<{
1121
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1122
+ readonly label: Schema.NonEmptyString;
1123
+ }>>;
1124
+ }>>>;
1125
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
1126
+ readonly url: Schema.NonEmptyString;
1127
+ readonly translations: Schema.$Array<Schema.Struct<{
1128
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1129
+ readonly label: Schema.NonEmptyString;
1130
+ }>>;
1131
+ }>>>;
1132
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
1133
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1134
+ readonly url: Schema.NonEmptyString;
1135
+ readonly translations: Schema.$Array<Schema.Struct<{
1136
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1137
+ readonly label: Schema.NonEmptyString;
1138
+ }>>;
1139
+ }>>>;
1140
+ }>, Schema.Unknown, never, never>>>;
711
1141
  readonly role: Schema.NullOr<Schema.String>;
712
1142
  readonly banned: Schema.NullOr<Schema.Boolean>;
713
1143
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -717,11 +1147,11 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
717
1147
  readonly createdAt: Schema.DateFromString;
718
1148
  readonly updatedAt: Schema.DateFromString;
719
1149
  }>;
720
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/two-factor/verify-otp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1150
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/two-factor/verify-otp", never, never, Schema.toCodecJson<Schema.Struct<{
721
1151
  readonly code: Schema.String;
722
1152
  readonly trustDevice: Schema.optional<Schema.Boolean>;
723
1153
  readonly oauth_query: Schema.optional<Schema.String>;
724
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1154
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
725
1155
  readonly token: Schema.optional<Schema.String>;
726
1156
  readonly user: Schema.Struct<{
727
1157
  readonly id: Schema.String;
@@ -729,6 +1159,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
729
1159
  readonly email: Schema.String;
730
1160
  readonly emailVerified: Schema.Boolean;
731
1161
  readonly image: Schema.NullOr<Schema.String>;
1162
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
1163
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
1164
+ readonly email: Schema.NonEmptyString;
1165
+ readonly translations: Schema.$Array<Schema.Struct<{
1166
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1167
+ readonly label: Schema.NonEmptyString;
1168
+ }>>;
1169
+ }>>>;
1170
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
1171
+ readonly number: Schema.NonEmptyString;
1172
+ readonly extension: Schema.optional<Schema.String>;
1173
+ readonly translations: Schema.$Array<Schema.Struct<{
1174
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1175
+ readonly label: Schema.NonEmptyString;
1176
+ }>>;
1177
+ }>>>;
1178
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
1179
+ readonly url: Schema.NonEmptyString;
1180
+ readonly translations: Schema.$Array<Schema.Struct<{
1181
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1182
+ readonly label: Schema.NonEmptyString;
1183
+ }>>;
1184
+ }>>>;
1185
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
1186
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1187
+ readonly url: Schema.NonEmptyString;
1188
+ readonly translations: Schema.$Array<Schema.Struct<{
1189
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1190
+ readonly label: Schema.NonEmptyString;
1191
+ }>>;
1192
+ }>>>;
1193
+ }>, Schema.Unknown, never, never>>>;
732
1194
  readonly role: Schema.NullOr<Schema.String>;
733
1195
  readonly banned: Schema.NullOr<Schema.Boolean>;
734
1196
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -738,11 +1200,11 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
738
1200
  readonly createdAt: Schema.DateFromString;
739
1201
  readonly updatedAt: Schema.DateFromString;
740
1202
  }>;
741
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/two-factor/verify-totp", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1203
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/two-factor/verify-totp", never, never, Schema.toCodecJson<Schema.Struct<{
742
1204
  readonly code: Schema.String;
743
1205
  readonly trustDevice: Schema.optional<Schema.Boolean>;
744
1206
  readonly oauth_query: Schema.optional<Schema.String>;
745
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1207
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
746
1208
  readonly token: Schema.optional<Schema.String>;
747
1209
  readonly user: Schema.Struct<{
748
1210
  readonly id: Schema.String;
@@ -750,6 +1212,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
750
1212
  readonly email: Schema.String;
751
1213
  readonly emailVerified: Schema.Boolean;
752
1214
  readonly image: Schema.NullOr<Schema.String>;
1215
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
1216
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
1217
+ readonly email: Schema.NonEmptyString;
1218
+ readonly translations: Schema.$Array<Schema.Struct<{
1219
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1220
+ readonly label: Schema.NonEmptyString;
1221
+ }>>;
1222
+ }>>>;
1223
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
1224
+ readonly number: Schema.NonEmptyString;
1225
+ readonly extension: Schema.optional<Schema.String>;
1226
+ readonly translations: Schema.$Array<Schema.Struct<{
1227
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1228
+ readonly label: Schema.NonEmptyString;
1229
+ }>>;
1230
+ }>>>;
1231
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
1232
+ readonly url: Schema.NonEmptyString;
1233
+ readonly translations: Schema.$Array<Schema.Struct<{
1234
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1235
+ readonly label: Schema.NonEmptyString;
1236
+ }>>;
1237
+ }>>>;
1238
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
1239
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1240
+ readonly url: Schema.NonEmptyString;
1241
+ readonly translations: Schema.$Array<Schema.Struct<{
1242
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1243
+ readonly label: Schema.NonEmptyString;
1244
+ }>>;
1245
+ }>>>;
1246
+ }>, Schema.Unknown, never, never>>>;
753
1247
  readonly role: Schema.NullOr<Schema.String>;
754
1248
  readonly banned: Schema.NullOr<Schema.Boolean>;
755
1249
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -759,20 +1253,52 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
759
1253
  readonly createdAt: Schema.DateFromString;
760
1254
  readonly updatedAt: Schema.DateFromString;
761
1255
  }>;
762
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink-account", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1256
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink-account", never, never, Schema.toCodecJson<Schema.Struct<{
763
1257
  readonly providerId: Schema.String;
764
1258
  readonly accountId: Schema.optional<Schema.String>;
765
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1259
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
766
1260
  readonly status: Schema.Boolean;
767
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateUser", "POST", "/update-user", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1261
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateUser", "POST", "/update-user", never, never, Schema.toCodecJson<Schema.Struct<{
768
1262
  readonly name: Schema.optional<Schema.String>;
769
1263
  readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
770
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1264
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.Struct<{
1265
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
1266
+ readonly email: Schema.NonEmptyString;
1267
+ readonly translations: Schema.$Array<Schema.Struct<{
1268
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1269
+ readonly label: Schema.NonEmptyString;
1270
+ }>>;
1271
+ }>>>;
1272
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
1273
+ readonly number: Schema.NonEmptyString;
1274
+ readonly extension: Schema.optional<Schema.String>;
1275
+ readonly translations: Schema.$Array<Schema.Struct<{
1276
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1277
+ readonly label: Schema.NonEmptyString;
1278
+ }>>;
1279
+ }>>>;
1280
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
1281
+ readonly url: Schema.NonEmptyString;
1282
+ readonly translations: Schema.$Array<Schema.Struct<{
1283
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1284
+ readonly label: Schema.NonEmptyString;
1285
+ }>>;
1286
+ }>>>;
1287
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
1288
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1289
+ readonly url: Schema.NonEmptyString;
1290
+ readonly translations: Schema.$Array<Schema.Struct<{
1291
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1292
+ readonly label: Schema.NonEmptyString;
1293
+ }>>;
1294
+ }>>>;
1295
+ }>>>;
1296
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
771
1297
  readonly status: Schema.Boolean;
772
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"verifyEmailOtp", "POST", "/email-otp/verify-email", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1298
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"verifyEmailOtp", "POST", "/email-otp/verify-email", never, never, Schema.toCodecJson<Schema.Struct<{
773
1299
  readonly email: Schema.String;
774
1300
  readonly otp: Schema.String;
775
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
1301
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
776
1302
  readonly status: Schema.Literal<true>;
777
1303
  readonly token: Schema.NullOr<Schema.String>;
778
1304
  readonly user: Schema.Struct<{
@@ -781,6 +1307,38 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
781
1307
  readonly email: Schema.String;
782
1308
  readonly emailVerified: Schema.Boolean;
783
1309
  readonly image: Schema.NullOr<Schema.String>;
1310
+ readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
1311
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
1312
+ readonly email: Schema.NonEmptyString;
1313
+ readonly translations: Schema.$Array<Schema.Struct<{
1314
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1315
+ readonly label: Schema.NonEmptyString;
1316
+ }>>;
1317
+ }>>>;
1318
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
1319
+ readonly number: Schema.NonEmptyString;
1320
+ readonly extension: Schema.optional<Schema.String>;
1321
+ readonly translations: Schema.$Array<Schema.Struct<{
1322
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1323
+ readonly label: Schema.NonEmptyString;
1324
+ }>>;
1325
+ }>>>;
1326
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
1327
+ readonly url: Schema.NonEmptyString;
1328
+ readonly translations: Schema.$Array<Schema.Struct<{
1329
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1330
+ readonly label: Schema.NonEmptyString;
1331
+ }>>;
1332
+ }>>>;
1333
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
1334
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1335
+ readonly url: Schema.NonEmptyString;
1336
+ readonly translations: Schema.$Array<Schema.Struct<{
1337
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
1338
+ readonly label: Schema.NonEmptyString;
1339
+ }>>;
1340
+ }>>>;
1341
+ }>, Schema.Unknown, never, never>>>;
784
1342
  readonly role: Schema.NullOr<Schema.String>;
785
1343
  readonly banned: Schema.NullOr<Schema.Boolean>;
786
1344
  readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -790,4 +1348,4 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
790
1348
  readonly createdAt: Schema.DateFromString;
791
1349
  readonly updatedAt: Schema.DateFromString;
792
1350
  }>;
793
- }>>, HttpApiEndpoint.Json<typeof AuthBadRequest>, never, never>, false>;
1351
+ }>>, Schema.toCodecJson<typeof AuthBadRequest>, never, never>, false>;