@krak-stack/auth 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +37 -0
  3. package/dist/admin/api.group.d.ts +4 -4
  4. package/dist/admin/schema.d.ts +6 -6
  5. package/dist/api.d.ts +1577 -1331
  6. package/dist/auth/api.group.d.ts +124 -1
  7. package/dist/auth/api.group.js +36 -1
  8. package/dist/auth/schema.d.ts +38 -0
  9. package/dist/auth/schema.js +38 -0
  10. package/dist/components/account-deletion.js +2 -1
  11. package/dist/components/admin-organization-form.js +3 -2
  12. package/dist/components/admin-organizations.js +3 -3
  13. package/dist/components/admin-users.js +3 -3
  14. package/dist/components/appearance.d.ts +89 -0
  15. package/dist/components/appearance.js +59 -0
  16. package/dist/components/auth-client-api.d.ts +134 -4
  17. package/dist/components/auth-forms.d.ts +5 -1
  18. package/dist/components/auth-forms.js +60 -7
  19. package/dist/components/contact-fields.js +2 -1
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/components/organization-sso-atom.d.ts +71 -0
  22. package/dist/components/organization-sso-atom.js +40 -0
  23. package/dist/components/organization-sso-messages.d.ts +76 -0
  24. package/dist/components/organization-sso-messages.js +77 -0
  25. package/dist/components/organization-sso-settings.d.ts +6 -0
  26. package/dist/components/organization-sso-settings.js +96 -0
  27. package/dist/components/organization-switcher.d.ts +8 -3
  28. package/dist/components/organization-switcher.js +25 -13
  29. package/dist/components/scrollable-dialog.d.ts +3 -2
  30. package/dist/components/scrollable-dialog.js +11 -4
  31. package/dist/components/user-button.d.ts +8 -2
  32. package/dist/components/user-button.js +8 -7
  33. package/dist/service.d.ts +260 -0
  34. package/package.json +3 -3
package/dist/service.d.ts CHANGED
@@ -379,6 +379,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
379
379
  readonly updatedAt: import("effect/Schema").DateFromString;
380
380
  }>;
381
381
  }>>, 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>, never, never>;
382
+ readonly deleteOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganizationSso", "POST", "/api/auth/organization/sso/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
383
+ readonly organizationId: import("effect/Schema").NonEmptyString;
384
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
385
+ readonly success: import("effect/Schema").Boolean;
386
+ }>>, 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>, never, never>;
382
387
  readonly deleteUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
383
388
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
384
389
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -387,6 +392,20 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
387
392
  readonly success: import("effect/Schema").Boolean;
388
393
  readonly message: import("effect/Schema").String;
389
394
  }>>, 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").AuthInternalServerError>, never, never>, never, never>;
395
+ readonly getOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationSso", "GET", "/api/auth/organization/sso", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
396
+ readonly organizationId: import("effect/Schema").NonEmptyString;
397
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
398
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
399
+ readonly organizationId: import("effect/Schema").NonEmptyString;
400
+ readonly providerId: import("effect/Schema").NonEmptyString;
401
+ readonly issuer: import("effect/Schema").NonEmptyString;
402
+ readonly domain: import("effect/Schema").NonEmptyString;
403
+ readonly clientId: import("effect/Schema").NonEmptyString;
404
+ readonly enabled: import("effect/Schema").Boolean;
405
+ readonly domainVerified: import("effect/Schema").Boolean;
406
+ readonly verificationName: import("effect/Schema").NonEmptyString;
407
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
408
+ }>>>, 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>, never, never>;
390
409
  readonly getSession: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
391
410
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
392
411
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -453,6 +472,12 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
453
472
  readonly updatedAt: import("effect/Schema").DateFromString;
454
473
  }>;
455
474
  }>>>, 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>, never, never>;
475
+ readonly getSsoConfig: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSsoConfig", "GET", "/api/auth/sso/config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
476
+ readonly email: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
477
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
478
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
479
+ readonly providerId: import("effect/Schema").NonEmptyString;
480
+ }>>>, 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>, never, never>;
456
481
  readonly linkSocial: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
457
482
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
458
483
  readonly provider: import("effect/Schema").String;
@@ -984,12 +1009,45 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
984
1009
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
985
1010
  readonly status: import("effect/Schema").Boolean;
986
1011
  }>>, 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>, never, never>;
1012
+ readonly saveOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"saveOrganizationSso", "POST", "/api/auth/organization/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1013
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1014
+ readonly issuer: import("effect/Schema").NonEmptyString;
1015
+ readonly domain: import("effect/Schema").NonEmptyString;
1016
+ readonly clientId: import("effect/Schema").NonEmptyString;
1017
+ readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1018
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1019
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1020
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1021
+ readonly providerId: import("effect/Schema").NonEmptyString;
1022
+ readonly issuer: import("effect/Schema").NonEmptyString;
1023
+ readonly domain: import("effect/Schema").NonEmptyString;
1024
+ readonly clientId: import("effect/Schema").NonEmptyString;
1025
+ readonly enabled: import("effect/Schema").Boolean;
1026
+ readonly domainVerified: import("effect/Schema").Boolean;
1027
+ readonly verificationName: import("effect/Schema").NonEmptyString;
1028
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1029
+ }>>, 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>, never, never>;
987
1030
  readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
988
1031
  readonly email: import("effect/Schema").String;
989
1032
  readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
990
1033
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
991
1034
  readonly success: import("effect/Schema").Boolean;
992
1035
  }>>, 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>, never, never>;
1036
+ readonly setOrganizationSsoEnabled: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/api/auth/organization/sso/enabled", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1037
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1038
+ readonly enabled: import("effect/Schema").Boolean;
1039
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1040
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1041
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1042
+ readonly providerId: import("effect/Schema").NonEmptyString;
1043
+ readonly issuer: import("effect/Schema").NonEmptyString;
1044
+ readonly domain: import("effect/Schema").NonEmptyString;
1045
+ readonly clientId: import("effect/Schema").NonEmptyString;
1046
+ readonly enabled: import("effect/Schema").Boolean;
1047
+ readonly domainVerified: import("effect/Schema").Boolean;
1048
+ readonly verificationName: import("effect/Schema").NonEmptyString;
1049
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1050
+ }>>, 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>, never, never>;
993
1051
  readonly signInEmail: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
994
1052
  readonly email: import("effect/Schema").String;
995
1053
  readonly password: import("effect/Schema").String;
@@ -1188,6 +1246,64 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1188
1246
  }>>;
1189
1247
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1190
1248
  }>>, 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>, never, never>;
1249
+ readonly signInSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSso", "POST", "/api/auth/sign-in/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1250
+ readonly providerId: import("effect/Schema").NonEmptyString;
1251
+ readonly callbackURL: import("effect/Schema").NonEmptyString;
1252
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1253
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1254
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1255
+ readonly redirect: import("effect/Schema").Boolean;
1256
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1257
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1258
+ readonly id: import("effect/Schema").String;
1259
+ readonly name: import("effect/Schema").String;
1260
+ readonly email: import("effect/Schema").String;
1261
+ readonly emailVerified: import("effect/Schema").Boolean;
1262
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1263
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1264
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1265
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1266
+ readonly email: import("effect/Schema").NonEmptyString;
1267
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1268
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1269
+ readonly label: import("effect/Schema").NonEmptyString;
1270
+ }>>;
1271
+ }>>>;
1272
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1273
+ readonly number: import("effect/Schema").NonEmptyString;
1274
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1275
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1276
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1277
+ readonly label: import("effect/Schema").NonEmptyString;
1278
+ }>>;
1279
+ }>>>;
1280
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1281
+ readonly url: import("effect/Schema").NonEmptyString;
1282
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1283
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1284
+ readonly label: import("effect/Schema").NonEmptyString;
1285
+ }>>;
1286
+ }>>>;
1287
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1288
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1289
+ readonly url: import("effect/Schema").NonEmptyString;
1290
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1291
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1292
+ readonly label: import("effect/Schema").NonEmptyString;
1293
+ }>>;
1294
+ }>>>;
1295
+ }>, import("effect/Schema").Unknown, never, never>>>;
1296
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1297
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1298
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1299
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1300
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1301
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1302
+ readonly createdAt: import("effect/Schema").DateFromString;
1303
+ readonly updatedAt: import("effect/Schema").DateFromString;
1304
+ }>>;
1305
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1306
+ }>>, 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>, never, never>;
1191
1307
  readonly signOut: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1192
1308
  readonly success: import("effect/Schema").Boolean;
1193
1309
  }>>, 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>, never, never>;
@@ -1474,6 +1590,20 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
1474
1590
  readonly updatedAt: import("effect/Schema").DateFromString;
1475
1591
  }>;
1476
1592
  }>>, 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>, never, never>;
1593
+ readonly verifyOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyOrganizationSso", "POST", "/api/auth/organization/sso/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1594
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1595
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1596
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1597
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1598
+ readonly providerId: import("effect/Schema").NonEmptyString;
1599
+ readonly issuer: import("effect/Schema").NonEmptyString;
1600
+ readonly domain: import("effect/Schema").NonEmptyString;
1601
+ readonly clientId: import("effect/Schema").NonEmptyString;
1602
+ readonly enabled: import("effect/Schema").Boolean;
1603
+ readonly domainVerified: import("effect/Schema").Boolean;
1604
+ readonly verificationName: import("effect/Schema").NonEmptyString;
1605
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1606
+ }>>, 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>, never, never>;
1477
1607
  };
1478
1608
  authExtra: {
1479
1609
  readonly createApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -2511,6 +2641,11 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2511
2641
  readonly updatedAt: import("effect/Schema").DateFromString;
2512
2642
  }>;
2513
2643
  }>>, 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>, never, never>;
2644
+ readonly deleteOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganizationSso", "POST", "/api/auth/organization/sso/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2645
+ readonly organizationId: import("effect/Schema").NonEmptyString;
2646
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2647
+ readonly success: import("effect/Schema").Boolean;
2648
+ }>>, 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>, never, never>;
2514
2649
  readonly deleteUser: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2515
2650
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2516
2651
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -2519,6 +2654,20 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2519
2654
  readonly success: import("effect/Schema").Boolean;
2520
2655
  readonly message: import("effect/Schema").String;
2521
2656
  }>>, 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").AuthInternalServerError>, never, never>, never, never>;
2657
+ readonly getOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationSso", "GET", "/api/auth/organization/sso", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2658
+ readonly organizationId: import("effect/Schema").NonEmptyString;
2659
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2660
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2661
+ readonly organizationId: import("effect/Schema").NonEmptyString;
2662
+ readonly providerId: import("effect/Schema").NonEmptyString;
2663
+ readonly issuer: import("effect/Schema").NonEmptyString;
2664
+ readonly domain: import("effect/Schema").NonEmptyString;
2665
+ readonly clientId: import("effect/Schema").NonEmptyString;
2666
+ readonly enabled: import("effect/Schema").Boolean;
2667
+ readonly domainVerified: import("effect/Schema").Boolean;
2668
+ readonly verificationName: import("effect/Schema").NonEmptyString;
2669
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2670
+ }>>>, 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>, never, never>;
2522
2671
  readonly getSession: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2523
2672
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
2524
2673
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -2585,6 +2734,12 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
2585
2734
  readonly updatedAt: import("effect/Schema").DateFromString;
2586
2735
  }>;
2587
2736
  }>>>, 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>, never, never>;
2737
+ readonly getSsoConfig: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSsoConfig", "GET", "/api/auth/sso/config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2738
+ readonly email: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2739
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2740
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2741
+ readonly providerId: import("effect/Schema").NonEmptyString;
2742
+ }>>>, 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>, never, never>;
2588
2743
  readonly linkSocial: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2589
2744
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2590
2745
  readonly provider: import("effect/Schema").String;
@@ -3116,12 +3271,45 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3116
3271
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3117
3272
  readonly status: import("effect/Schema").Boolean;
3118
3273
  }>>, 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>, never, never>;
3274
+ readonly saveOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"saveOrganizationSso", "POST", "/api/auth/organization/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3275
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3276
+ readonly issuer: import("effect/Schema").NonEmptyString;
3277
+ readonly domain: import("effect/Schema").NonEmptyString;
3278
+ readonly clientId: import("effect/Schema").NonEmptyString;
3279
+ readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3280
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3281
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3282
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3283
+ readonly providerId: import("effect/Schema").NonEmptyString;
3284
+ readonly issuer: import("effect/Schema").NonEmptyString;
3285
+ readonly domain: import("effect/Schema").NonEmptyString;
3286
+ readonly clientId: import("effect/Schema").NonEmptyString;
3287
+ readonly enabled: import("effect/Schema").Boolean;
3288
+ readonly domainVerified: import("effect/Schema").Boolean;
3289
+ readonly verificationName: import("effect/Schema").NonEmptyString;
3290
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3291
+ }>>, 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>, never, never>;
3119
3292
  readonly sendVerificationOtp: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3120
3293
  readonly email: import("effect/Schema").String;
3121
3294
  readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
3122
3295
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3123
3296
  readonly success: import("effect/Schema").Boolean;
3124
3297
  }>>, 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>, never, never>;
3298
+ readonly setOrganizationSsoEnabled: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/api/auth/organization/sso/enabled", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3299
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3300
+ readonly enabled: import("effect/Schema").Boolean;
3301
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3302
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3303
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3304
+ readonly providerId: import("effect/Schema").NonEmptyString;
3305
+ readonly issuer: import("effect/Schema").NonEmptyString;
3306
+ readonly domain: import("effect/Schema").NonEmptyString;
3307
+ readonly clientId: import("effect/Schema").NonEmptyString;
3308
+ readonly enabled: import("effect/Schema").Boolean;
3309
+ readonly domainVerified: import("effect/Schema").Boolean;
3310
+ readonly verificationName: import("effect/Schema").NonEmptyString;
3311
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3312
+ }>>, 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>, never, never>;
3125
3313
  readonly signInEmail: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3126
3314
  readonly email: import("effect/Schema").String;
3127
3315
  readonly password: import("effect/Schema").String;
@@ -3320,6 +3508,64 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3320
3508
  }>>;
3321
3509
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3322
3510
  }>>, 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>, never, never>;
3511
+ readonly signInSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSso", "POST", "/api/auth/sign-in/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3512
+ readonly providerId: import("effect/Schema").NonEmptyString;
3513
+ readonly callbackURL: import("effect/Schema").NonEmptyString;
3514
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3515
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3516
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
3517
+ readonly redirect: import("effect/Schema").Boolean;
3518
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
3519
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
3520
+ readonly id: import("effect/Schema").String;
3521
+ readonly name: import("effect/Schema").String;
3522
+ readonly email: import("effect/Schema").String;
3523
+ readonly emailVerified: import("effect/Schema").Boolean;
3524
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
3525
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
3526
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
3527
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3528
+ readonly email: import("effect/Schema").NonEmptyString;
3529
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3530
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3531
+ readonly label: import("effect/Schema").NonEmptyString;
3532
+ }>>;
3533
+ }>>>;
3534
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3535
+ readonly number: import("effect/Schema").NonEmptyString;
3536
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
3537
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3538
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3539
+ readonly label: import("effect/Schema").NonEmptyString;
3540
+ }>>;
3541
+ }>>>;
3542
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3543
+ readonly url: import("effect/Schema").NonEmptyString;
3544
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3545
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3546
+ readonly label: import("effect/Schema").NonEmptyString;
3547
+ }>>;
3548
+ }>>>;
3549
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3550
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
3551
+ readonly url: import("effect/Schema").NonEmptyString;
3552
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3553
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3554
+ readonly label: import("effect/Schema").NonEmptyString;
3555
+ }>>;
3556
+ }>>>;
3557
+ }>, import("effect/Schema").Unknown, never, never>>>;
3558
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
3559
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
3560
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3561
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
3562
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3563
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3564
+ readonly createdAt: import("effect/Schema").DateFromString;
3565
+ readonly updatedAt: import("effect/Schema").DateFromString;
3566
+ }>>;
3567
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3568
+ }>>, 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>, never, never>;
3323
3569
  readonly signOut: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3324
3570
  readonly success: import("effect/Schema").Boolean;
3325
3571
  }>>, 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>, never, never>;
@@ -3606,6 +3852,20 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
3606
3852
  readonly updatedAt: import("effect/Schema").DateFromString;
3607
3853
  }>;
3608
3854
  }>>, 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>, never, never>;
3855
+ readonly verifyOrganizationSso: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyOrganizationSso", "POST", "/api/auth/organization/sso/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3856
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3857
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3858
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3859
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3860
+ readonly providerId: import("effect/Schema").NonEmptyString;
3861
+ readonly issuer: import("effect/Schema").NonEmptyString;
3862
+ readonly domain: import("effect/Schema").NonEmptyString;
3863
+ readonly clientId: import("effect/Schema").NonEmptyString;
3864
+ readonly enabled: import("effect/Schema").Boolean;
3865
+ readonly domainVerified: import("effect/Schema").Boolean;
3866
+ readonly verificationName: import("effect/Schema").NonEmptyString;
3867
+ readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3868
+ }>>, 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>, never, never>;
3609
3869
  };
3610
3870
  authExtra: {
3611
3871
  readonly createApiKey: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/auth",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Effect HttpApi clients and schemas for KrakStack Auth.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -81,10 +81,10 @@
81
81
  "react-qr-code": "^2.2.0"
82
82
  },
83
83
  "devDependencies": {
84
- "@krak-stack/registry": "0.1.61"
84
+ "@krak-stack/registry": "0.10.2"
85
85
  },
86
86
  "peerDependencies": {
87
- "@krak-stack/registry": "^0.1.61",
87
+ "@krak-stack/registry": "^0.10.2",
88
88
  "@tanstack/react-router": "^1.170.15",
89
89
  "effect": "^4.1.0",
90
90
  "input-otp": "^1.5.0",