@krak-stack/auth 0.2.25 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +25 -0
- package/dist/api.d.ts +36 -0
- package/dist/auth/api.group.d.ts +16 -0
- package/dist/auth/schema.d.ts +11 -0
- package/dist/auth/schema.js +3 -1
- package/dist/components/auth-atoms.d.ts +66 -2
- package/dist/components/auth-atoms.js +12 -3
- package/dist/components/auth-client-api.d.ts +16 -0
- package/dist/components/auth-provider.d.ts +2 -1
- package/dist/components/auth-provider.js +29 -3
- package/dist/schema.d.ts +3 -0
- package/dist/schema.js +5 -0
- package/dist/server/api.group.d.ts +4 -0
- package/dist/server/middleware.js +2 -0
- package/dist/server/schema.d.ts +2 -0
- package/dist/service.d.ts +40 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @krak-stack/auth
|
|
2
2
|
|
|
3
|
+
## 0.2.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8254748: Include trusted OpenTelemetry user.full_name and user.email annotations for cookie sessions and user-owned API keys. Preserve effective-user attribution during impersonation and clear inherited profile fields for anonymous and organization-owned credentials.
|
|
8
|
+
|
|
9
|
+
## 0.2.26
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Automatically synchronize the signed-in user's preferred locale from the existing KrakstackProvider context through KrakstackAuthProvider. Existing consumers need only update the SDK version after the auth server has been deployed with locale support; no selector wrapper, provider prop, or consumer database migration is required. Skip synchronization during impersonation, preserve optimistic session updates with rollback, and expose optional onLocaleSyncError handling. The current interface locale is authoritative, including on provider mount and after a page reload.
|
|
14
|
+
|
|
3
15
|
## 0.2.25
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -116,6 +116,31 @@ import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
|
116
116
|
|
|
117
117
|
See [React components and CSS](https://auth.krakstack.net/en/docs/components) for the provider and component requirements.
|
|
118
118
|
|
|
119
|
+
### Locale syncing
|
|
120
|
+
|
|
121
|
+
Nest `KrakstackAuthProvider` inside `KrakstackProvider`. The auth provider reads
|
|
122
|
+
the registry locale context and saves it to the signed-in user's `locale` when
|
|
123
|
+
it differs. It does not accept a `locale` prop or restore the interface language
|
|
124
|
+
from the saved account preference. Use `LocaleSwitcher` directly from
|
|
125
|
+
`@krak-stack/registry/locale-switcher` with your application's language-change
|
|
126
|
+
callback; no auth-specific selector wrapper is needed.
|
|
127
|
+
|
|
128
|
+
The context is authoritative, including after a Paraglide reload. Public pages
|
|
129
|
+
outside the auth provider change only the browser locale; pages inside it can
|
|
130
|
+
update the account even when the language comes from a localized URL. Signed-out
|
|
131
|
+
visitors do not trigger user updates. An optional `onLocaleSyncError` callback
|
|
132
|
+
lets the application display a localized save error without a retry loop.
|
|
133
|
+
|
|
134
|
+
Existing consumers already nesting `KrakstackAuthProvider` inside
|
|
135
|
+
`KrakstackProvider` only need an SDK version update after the auth server is
|
|
136
|
+
deployed with locale support. No consumer database migration, new provider prop,
|
|
137
|
+
or selector change is required. Impersonated sessions do not sync preferences.
|
|
138
|
+
|
|
139
|
+
Krakstack Auth emails use the recipient's saved language, falling back to the
|
|
140
|
+
request locale and then English when no valid saved preference exists.
|
|
141
|
+
See [locale syncing](https://auth.krakstack.net/en/docs/components#locale-syncing)
|
|
142
|
+
for setup, lifecycle behavior, and background-notification guidance.
|
|
143
|
+
|
|
119
144
|
## Authorization
|
|
120
145
|
|
|
121
146
|
Define project permissions with `defineProjectAccess`, resolve actors with `ActorRequired`, and enforce backend policies with `withPolicy`. Frontend permission helpers control presentation only.
|
package/dist/api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
9
9
|
readonly name: import("effect/Schema").String;
|
|
10
10
|
readonly email: import("effect/Schema").String;
|
|
11
11
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
12
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
12
13
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
13
14
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
14
15
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -72,6 +73,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
72
73
|
readonly name: import("effect/Schema").String;
|
|
73
74
|
readonly email: import("effect/Schema").String;
|
|
74
75
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
76
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
75
77
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
78
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
77
79
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -133,6 +135,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
133
135
|
readonly name: import("effect/Schema").String;
|
|
134
136
|
readonly email: import("effect/Schema").String;
|
|
135
137
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
138
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
136
139
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
137
140
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
138
141
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -183,6 +186,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
183
186
|
readonly name: import("effect/Schema").String;
|
|
184
187
|
readonly email: import("effect/Schema").String;
|
|
185
188
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
189
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
186
190
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
187
191
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
188
192
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -277,6 +281,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
277
281
|
readonly name: import("effect/Schema").String;
|
|
278
282
|
readonly email: import("effect/Schema").String;
|
|
279
283
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
284
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
280
285
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
281
286
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
282
287
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -341,6 +346,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
341
346
|
readonly name: import("effect/Schema").String;
|
|
342
347
|
readonly email: import("effect/Schema").String;
|
|
343
348
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
349
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
344
350
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
345
351
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
346
352
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -407,6 +413,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
407
413
|
readonly name: import("effect/Schema").String;
|
|
408
414
|
readonly email: import("effect/Schema").String;
|
|
409
415
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
416
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
410
417
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
411
418
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
412
419
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -636,6 +643,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
636
643
|
readonly name: import("effect/Schema").String;
|
|
637
644
|
readonly email: import("effect/Schema").String;
|
|
638
645
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
646
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
639
647
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
640
648
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
641
649
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -897,6 +905,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
897
905
|
readonly name: import("effect/Schema").String;
|
|
898
906
|
readonly email: import("effect/Schema").String;
|
|
899
907
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
908
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
900
909
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
901
910
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
902
911
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -955,6 +964,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
955
964
|
readonly name: import("effect/Schema").String;
|
|
956
965
|
readonly email: import("effect/Schema").String;
|
|
957
966
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
967
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
958
968
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
959
969
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
960
970
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1031,6 +1041,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1031
1041
|
readonly name: import("effect/Schema").String;
|
|
1032
1042
|
readonly email: import("effect/Schema").String;
|
|
1033
1043
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1044
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1034
1045
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1035
1046
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1036
1047
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1102,6 +1113,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1102
1113
|
readonly name: import("effect/Schema").String;
|
|
1103
1114
|
readonly email: import("effect/Schema").String;
|
|
1104
1115
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1116
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1105
1117
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1106
1118
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1107
1119
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1155,6 +1167,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1155
1167
|
readonly name: import("effect/Schema").String;
|
|
1156
1168
|
readonly email: import("effect/Schema").String;
|
|
1157
1169
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1170
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1158
1171
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1159
1172
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1160
1173
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1208,6 +1221,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1208
1221
|
readonly name: import("effect/Schema").String;
|
|
1209
1222
|
readonly email: import("effect/Schema").String;
|
|
1210
1223
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1224
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1211
1225
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1212
1226
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1213
1227
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1256,6 +1270,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1256
1270
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1257
1271
|
readonly status: import("effect/Schema").Boolean;
|
|
1258
1272
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1273
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1259
1274
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1260
1275
|
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1261
1276
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1303,6 +1318,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1303
1318
|
readonly name: import("effect/Schema").String;
|
|
1304
1319
|
readonly email: import("effect/Schema").String;
|
|
1305
1320
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1321
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1306
1322
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1307
1323
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1308
1324
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1568,6 +1584,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1568
1584
|
readonly name: import("effect/Schema").String;
|
|
1569
1585
|
readonly email: import("effect/Schema").String;
|
|
1570
1586
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1587
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1571
1588
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1572
1589
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1573
1590
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1740,6 +1757,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1740
1757
|
readonly name: import("effect/Schema").String;
|
|
1741
1758
|
readonly email: import("effect/Schema").String;
|
|
1742
1759
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1760
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1743
1761
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1744
1762
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1745
1763
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1850,6 +1868,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1850
1868
|
readonly name: import("effect/Schema").String;
|
|
1851
1869
|
readonly email: import("effect/Schema").String;
|
|
1852
1870
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1871
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1853
1872
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1854
1873
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1855
1874
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1900,6 +1919,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1900
1919
|
readonly name: import("effect/Schema").String;
|
|
1901
1920
|
readonly email: import("effect/Schema").String;
|
|
1902
1921
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1922
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1903
1923
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1904
1924
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1905
1925
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2350,6 +2370,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2350
2370
|
readonly name: import("effect/Schema").String;
|
|
2351
2371
|
readonly email: import("effect/Schema").String;
|
|
2352
2372
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2373
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2353
2374
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2354
2375
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2355
2376
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2413,6 +2434,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2413
2434
|
readonly name: import("effect/Schema").String;
|
|
2414
2435
|
readonly email: import("effect/Schema").String;
|
|
2415
2436
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2437
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2416
2438
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2417
2439
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2418
2440
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2474,6 +2496,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2474
2496
|
readonly name: import("effect/Schema").String;
|
|
2475
2497
|
readonly email: import("effect/Schema").String;
|
|
2476
2498
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2499
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2477
2500
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2478
2501
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2479
2502
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2524,6 +2547,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2524
2547
|
readonly name: import("effect/Schema").String;
|
|
2525
2548
|
readonly email: import("effect/Schema").String;
|
|
2526
2549
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2550
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2527
2551
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2528
2552
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2529
2553
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2618,6 +2642,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2618
2642
|
readonly name: import("effect/Schema").String;
|
|
2619
2643
|
readonly email: import("effect/Schema").String;
|
|
2620
2644
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2645
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2621
2646
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2622
2647
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2623
2648
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2682,6 +2707,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2682
2707
|
readonly name: import("effect/Schema").String;
|
|
2683
2708
|
readonly email: import("effect/Schema").String;
|
|
2684
2709
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2710
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2685
2711
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2686
2712
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2687
2713
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2748,6 +2774,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2748
2774
|
readonly name: import("effect/Schema").String;
|
|
2749
2775
|
readonly email: import("effect/Schema").String;
|
|
2750
2776
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2777
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2751
2778
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2752
2779
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2753
2780
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -2977,6 +3004,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2977
3004
|
readonly name: import("effect/Schema").String;
|
|
2978
3005
|
readonly email: import("effect/Schema").String;
|
|
2979
3006
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3007
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2980
3008
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2981
3009
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2982
3010
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3238,6 +3266,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3238
3266
|
readonly name: import("effect/Schema").String;
|
|
3239
3267
|
readonly email: import("effect/Schema").String;
|
|
3240
3268
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3269
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3241
3270
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3242
3271
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3243
3272
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3296,6 +3325,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3296
3325
|
readonly name: import("effect/Schema").String;
|
|
3297
3326
|
readonly email: import("effect/Schema").String;
|
|
3298
3327
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3328
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3299
3329
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3300
3330
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3301
3331
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3372,6 +3402,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3372
3402
|
readonly name: import("effect/Schema").String;
|
|
3373
3403
|
readonly email: import("effect/Schema").String;
|
|
3374
3404
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3405
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3375
3406
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3376
3407
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3377
3408
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3443,6 +3474,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3443
3474
|
readonly name: import("effect/Schema").String;
|
|
3444
3475
|
readonly email: import("effect/Schema").String;
|
|
3445
3476
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3477
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3446
3478
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3447
3479
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3448
3480
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3496,6 +3528,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3496
3528
|
readonly name: import("effect/Schema").String;
|
|
3497
3529
|
readonly email: import("effect/Schema").String;
|
|
3498
3530
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3531
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3499
3532
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3500
3533
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3501
3534
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3549,6 +3582,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3549
3582
|
readonly name: import("effect/Schema").String;
|
|
3550
3583
|
readonly email: import("effect/Schema").String;
|
|
3551
3584
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3585
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3552
3586
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3553
3587
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3554
3588
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -3597,6 +3631,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3597
3631
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3598
3632
|
readonly status: import("effect/Schema").Boolean;
|
|
3599
3633
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3634
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3600
3635
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3601
3636
|
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3602
3637
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3644,6 +3679,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3644
3679
|
readonly name: import("effect/Schema").String;
|
|
3645
3680
|
readonly email: import("effect/Schema").String;
|
|
3646
3681
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3682
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3647
3683
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3648
3684
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3649
3685
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
package/dist/auth/api.group.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
12
12
|
readonly name: Schema.String;
|
|
13
13
|
readonly email: Schema.String;
|
|
14
14
|
readonly emailVerified: Schema.Boolean;
|
|
15
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
15
16
|
readonly image: Schema.NullOr<Schema.String>;
|
|
16
17
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
17
18
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -75,6 +76,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
75
76
|
readonly name: Schema.String;
|
|
76
77
|
readonly email: Schema.String;
|
|
77
78
|
readonly emailVerified: Schema.Boolean;
|
|
79
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
78
80
|
readonly image: Schema.NullOr<Schema.String>;
|
|
79
81
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
80
82
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -136,6 +138,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
136
138
|
readonly name: Schema.String;
|
|
137
139
|
readonly email: Schema.String;
|
|
138
140
|
readonly emailVerified: Schema.Boolean;
|
|
141
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
139
142
|
readonly image: Schema.NullOr<Schema.String>;
|
|
140
143
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
141
144
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -186,6 +189,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
186
189
|
readonly name: Schema.String;
|
|
187
190
|
readonly email: Schema.String;
|
|
188
191
|
readonly emailVerified: Schema.Boolean;
|
|
192
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
189
193
|
readonly image: Schema.NullOr<Schema.String>;
|
|
190
194
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
191
195
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -280,6 +284,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
280
284
|
readonly name: Schema.String;
|
|
281
285
|
readonly email: Schema.String;
|
|
282
286
|
readonly emailVerified: Schema.Boolean;
|
|
287
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
283
288
|
readonly image: Schema.NullOr<Schema.String>;
|
|
284
289
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
285
290
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -344,6 +349,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
344
349
|
readonly name: Schema.String;
|
|
345
350
|
readonly email: Schema.String;
|
|
346
351
|
readonly emailVerified: Schema.Boolean;
|
|
352
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
347
353
|
readonly image: Schema.NullOr<Schema.String>;
|
|
348
354
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
349
355
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -410,6 +416,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
410
416
|
readonly name: Schema.String;
|
|
411
417
|
readonly email: Schema.String;
|
|
412
418
|
readonly emailVerified: Schema.Boolean;
|
|
419
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
413
420
|
readonly image: Schema.NullOr<Schema.String>;
|
|
414
421
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
415
422
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -639,6 +646,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
639
646
|
readonly name: Schema.String;
|
|
640
647
|
readonly email: Schema.String;
|
|
641
648
|
readonly emailVerified: Schema.Boolean;
|
|
649
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
642
650
|
readonly image: Schema.NullOr<Schema.String>;
|
|
643
651
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
644
652
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -900,6 +908,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
900
908
|
readonly name: Schema.String;
|
|
901
909
|
readonly email: Schema.String;
|
|
902
910
|
readonly emailVerified: Schema.Boolean;
|
|
911
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
903
912
|
readonly image: Schema.NullOr<Schema.String>;
|
|
904
913
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
905
914
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -958,6 +967,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
958
967
|
readonly name: Schema.String;
|
|
959
968
|
readonly email: Schema.String;
|
|
960
969
|
readonly emailVerified: Schema.Boolean;
|
|
970
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
961
971
|
readonly image: Schema.NullOr<Schema.String>;
|
|
962
972
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
963
973
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1034,6 +1044,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1034
1044
|
readonly name: Schema.String;
|
|
1035
1045
|
readonly email: Schema.String;
|
|
1036
1046
|
readonly emailVerified: Schema.Boolean;
|
|
1047
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1037
1048
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1038
1049
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1039
1050
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1105,6 +1116,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1105
1116
|
readonly name: Schema.String;
|
|
1106
1117
|
readonly email: Schema.String;
|
|
1107
1118
|
readonly emailVerified: Schema.Boolean;
|
|
1119
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1108
1120
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1109
1121
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1110
1122
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1158,6 +1170,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1158
1170
|
readonly name: Schema.String;
|
|
1159
1171
|
readonly email: Schema.String;
|
|
1160
1172
|
readonly emailVerified: Schema.Boolean;
|
|
1173
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1161
1174
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1162
1175
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1163
1176
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1211,6 +1224,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1211
1224
|
readonly name: Schema.String;
|
|
1212
1225
|
readonly email: Schema.String;
|
|
1213
1226
|
readonly emailVerified: Schema.Boolean;
|
|
1227
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1214
1228
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1215
1229
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1216
1230
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1259,6 +1273,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1259
1273
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1260
1274
|
readonly status: Schema.Boolean;
|
|
1261
1275
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateUser", "POST", "/update-user", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1276
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1262
1277
|
readonly name: Schema.optional<Schema.String>;
|
|
1263
1278
|
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1264
1279
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -1306,6 +1321,7 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1306
1321
|
readonly name: Schema.String;
|
|
1307
1322
|
readonly email: Schema.String;
|
|
1308
1323
|
readonly emailVerified: Schema.Boolean;
|
|
1324
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1309
1325
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1310
1326
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1311
1327
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
package/dist/auth/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const AuthUser: Schema.Struct<{
|
|
|
5
5
|
readonly name: Schema.String;
|
|
6
6
|
readonly email: Schema.String;
|
|
7
7
|
readonly emailVerified: Schema.Boolean;
|
|
8
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
8
9
|
readonly image: Schema.NullOr<Schema.String>;
|
|
9
10
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
10
11
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -79,6 +80,7 @@ export declare const AuthSessionResponse: Schema.Struct<{
|
|
|
79
80
|
readonly name: Schema.String;
|
|
80
81
|
readonly email: Schema.String;
|
|
81
82
|
readonly emailVerified: Schema.Boolean;
|
|
83
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
82
84
|
readonly image: Schema.NullOr<Schema.String>;
|
|
83
85
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
84
86
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -141,6 +143,7 @@ export declare const GetSessionResponse: Schema.NullOr<Schema.Struct<{
|
|
|
141
143
|
readonly name: Schema.String;
|
|
142
144
|
readonly email: Schema.String;
|
|
143
145
|
readonly emailVerified: Schema.Boolean;
|
|
146
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
144
147
|
readonly image: Schema.NullOr<Schema.String>;
|
|
145
148
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
146
149
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -274,6 +277,7 @@ declare const AuthInternalServerError_base: Schema.Class<AuthInternalServerError
|
|
|
274
277
|
export declare class AuthInternalServerError extends AuthInternalServerError_base {
|
|
275
278
|
}
|
|
276
279
|
export declare const UpdateUserPayload: Schema.Struct<{
|
|
280
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
277
281
|
readonly name: Schema.optional<Schema.String>;
|
|
278
282
|
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
279
283
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -325,6 +329,7 @@ export declare const SignInEmailResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
325
329
|
readonly name: Schema.String;
|
|
326
330
|
readonly email: Schema.String;
|
|
327
331
|
readonly emailVerified: Schema.Boolean;
|
|
332
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
328
333
|
readonly image: Schema.NullOr<Schema.String>;
|
|
329
334
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
330
335
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -385,6 +390,7 @@ export declare const SignInResponse: Schema.Struct<{
|
|
|
385
390
|
readonly name: Schema.String;
|
|
386
391
|
readonly email: Schema.String;
|
|
387
392
|
readonly emailVerified: Schema.Boolean;
|
|
393
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
388
394
|
readonly image: Schema.NullOr<Schema.String>;
|
|
389
395
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
390
396
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -477,6 +483,7 @@ export declare const SocialRedirectResponse: Schema.Struct<{
|
|
|
477
483
|
readonly name: Schema.String;
|
|
478
484
|
readonly email: Schema.String;
|
|
479
485
|
readonly emailVerified: Schema.Boolean;
|
|
486
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
480
487
|
readonly image: Schema.NullOr<Schema.String>;
|
|
481
488
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
482
489
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -537,6 +544,7 @@ export declare const VerifyEmailOtpResponse: Schema.Struct<{
|
|
|
537
544
|
readonly name: Schema.String;
|
|
538
545
|
readonly email: Schema.String;
|
|
539
546
|
readonly emailVerified: Schema.Boolean;
|
|
547
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
540
548
|
readonly image: Schema.NullOr<Schema.String>;
|
|
541
549
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
542
550
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -604,6 +612,7 @@ export declare const ChangePasswordResponse: Schema.Struct<{
|
|
|
604
612
|
readonly name: Schema.String;
|
|
605
613
|
readonly email: Schema.String;
|
|
606
614
|
readonly emailVerified: Schema.Boolean;
|
|
615
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
607
616
|
readonly image: Schema.NullOr<Schema.String>;
|
|
608
617
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
609
618
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1064,6 +1073,7 @@ export declare const OrganizationImpersonateUserResponse: Schema.Struct<{
|
|
|
1064
1073
|
readonly name: Schema.String;
|
|
1065
1074
|
readonly email: Schema.String;
|
|
1066
1075
|
readonly emailVerified: Schema.Boolean;
|
|
1076
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1067
1077
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1068
1078
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1069
1079
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -1189,6 +1199,7 @@ export declare const AdminUserResponse: Schema.Struct<{
|
|
|
1189
1199
|
readonly name: Schema.String;
|
|
1190
1200
|
readonly email: Schema.String;
|
|
1191
1201
|
readonly emailVerified: Schema.Boolean;
|
|
1202
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1192
1203
|
readonly image: Schema.NullOr<Schema.String>;
|
|
1193
1204
|
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1194
1205
|
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
package/dist/auth/schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Schema, SchemaIssue, SchemaTransformation } from "effect";
|
|
2
|
-
import { User, UserMetadata } from "../schema.js";
|
|
2
|
+
import { User, UserLocale, UserMetadata } from "../schema.js";
|
|
3
3
|
const JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
4
4
|
const StringArrayRecord = Schema.Record(Schema.String, Schema.Array(Schema.String));
|
|
5
5
|
export const AuthRedirectURLFromString = (origin = "http://localhost") => Schema.String.pipe(Schema.decodeTo(Schema.URL.check(Schema.makeFilter((url) => (url.protocol === "http:" || url.protocol === "https:") &&
|
|
@@ -18,6 +18,7 @@ export const AuthUser = Schema.Struct({
|
|
|
18
18
|
name: Schema.String,
|
|
19
19
|
email: Schema.String,
|
|
20
20
|
emailVerified: Schema.Boolean,
|
|
21
|
+
locale: User.fields.locale,
|
|
21
22
|
image: Schema.NullOr(Schema.String),
|
|
22
23
|
metadata: User.fields.metadata,
|
|
23
24
|
role: Schema.NullOr(Schema.String),
|
|
@@ -141,6 +142,7 @@ export class AuthInternalServerError extends Schema.TaggedError()("AuthInternalS
|
|
|
141
142
|
}) {
|
|
142
143
|
}
|
|
143
144
|
export const UpdateUserPayload = Schema.Struct({
|
|
145
|
+
locale: Schema.optional(UserLocale),
|
|
144
146
|
name: Schema.optional(Schema.String),
|
|
145
147
|
image: Schema.optional(Schema.NullOr(Schema.String)),
|
|
146
148
|
metadata: Schema.optional(Schema.NullOr(UserMetadata)),
|