@krak-stack/auth 0.2.31 → 0.3.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 (69) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +175 -1
  3. package/dist/access.d.ts +3 -1
  4. package/dist/admin/api.group.d.ts +41 -41
  5. package/dist/admin/schema.d.ts +23 -23
  6. package/dist/admin/schema.js +21 -19
  7. package/dist/api.d.ts +141 -81
  8. package/dist/auth/api.group.d.ts +37 -19
  9. package/dist/auth/api.group.js +17 -1
  10. package/dist/auth/schema.d.ts +61 -33
  11. package/dist/auth/schema.js +30 -18
  12. package/dist/components/account-deletion-request.d.ts +5 -0
  13. package/dist/components/account-deletion-request.js +7 -0
  14. package/dist/components/account-deletion.d.ts +8 -0
  15. package/dist/components/account-deletion.js +59 -0
  16. package/dist/components/admin-organization-form.js +2 -2
  17. package/dist/components/admin-organizations.js +9 -7
  18. package/dist/components/admin-users.js +6 -6
  19. package/dist/components/api-key-edit-form.js +19 -11
  20. package/dist/components/associated-projects-notice.d.ts +2 -1
  21. package/dist/components/associated-projects-notice.js +7 -3
  22. package/dist/components/auth-atoms.js +1 -2
  23. package/dist/components/auth-client-api.d.ts +94 -61
  24. package/dist/components/auth-forms.d.ts +1 -0
  25. package/dist/components/auth-forms.js +41 -56
  26. package/dist/components/auth-provider.d.ts +3 -1
  27. package/dist/components/deletion-visibility.d.ts +1 -0
  28. package/dist/components/deletion-visibility.js +3 -0
  29. package/dist/components/hooks.d.ts +2 -0
  30. package/dist/components/hooks.js +13 -6
  31. package/dist/components/index.d.ts +3 -0
  32. package/dist/components/index.js +2 -0
  33. package/dist/components/member-required.js +3 -5
  34. package/dist/components/oauth-consent.d.ts +22 -0
  35. package/dist/components/oauth-consent.js +79 -0
  36. package/dist/components/organization-deletion-request.d.ts +17 -0
  37. package/dist/components/organization-deletion-request.js +9 -0
  38. package/dist/components/organization-switcher.d.ts +1 -1
  39. package/dist/components/organization-switcher.js +113 -55
  40. package/dist/components/project-card-list.d.ts +6 -0
  41. package/dist/components/project-card-list.js +4 -0
  42. package/dist/components/user-button.d.ts +29 -1
  43. package/dist/components/user-button.js +145 -47
  44. package/dist/extra/api.group.d.ts +13 -1
  45. package/dist/extra/api.group.js +5 -1
  46. package/dist/extra/schema.d.ts +16 -1
  47. package/dist/extra/schema.js +13 -0
  48. package/dist/oauth/authorization.d.ts +3 -0
  49. package/dist/oauth/authorization.js +39 -0
  50. package/dist/oauth/schema.d.ts +24 -0
  51. package/dist/oauth/schema.js +12 -0
  52. package/dist/oauth/verify.d.ts +13 -0
  53. package/dist/oauth/verify.js +67 -0
  54. package/dist/schema.d.ts +35 -0
  55. package/dist/schema.js +26 -1
  56. package/dist/server/actor.js +2 -4
  57. package/dist/server/index.d.ts +4 -1
  58. package/dist/server/index.js +2 -0
  59. package/dist/server/mcp.d.ts +20 -0
  60. package/dist/server/mcp.js +66 -0
  61. package/dist/server/middleware.d.ts +15 -7
  62. package/dist/server/middleware.js +19 -6
  63. package/dist/server/webhook-layer.d.ts +6 -0
  64. package/dist/server/webhook-layer.js +41 -0
  65. package/dist/server/webhooks.d.ts +44 -0
  66. package/dist/server/webhooks.js +39 -0
  67. package/dist/service.d.ts +118 -46
  68. package/dist/service.js +56 -9
  69. package/package.json +8 -3
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@ import { HttpApi } from "effect/http-api";
2
2
  export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3
3
  readonly userId: import("effect/Schema").String;
4
4
  readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
5
- readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
5
+ readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
6
6
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
7
7
  readonly user: import("effect/Schema").Struct<{
8
8
  readonly id: import("effect/Schema").String;
@@ -237,8 +237,8 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
237
237
  }>>, 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<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
238
238
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
239
239
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
240
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
241
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
240
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
241
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
242
242
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
243
243
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
244
244
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -250,15 +250,15 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
250
250
  readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
251
251
  readonly referenceId: import("effect/Schema").String;
252
252
  readonly configId: import("effect/Schema").String;
253
- readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
254
- readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
253
+ readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
254
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
255
255
  readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
256
256
  readonly enabled: import("effect/Schema").Boolean;
257
257
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
258
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
259
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
260
- readonly requestCount: import("effect/Schema").Number;
261
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
258
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
259
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
260
+ readonly requestCount: import("effect/Schema").Finite;
261
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
262
262
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
263
263
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
264
264
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -267,9 +267,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
267
267
  readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
268
268
  readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
269
269
  }>>;
270
- readonly total: import("effect/Schema").Number;
271
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
272
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
270
+ readonly total: import("effect/Schema").Finite;
271
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
272
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
273
273
  }>>, 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<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
274
274
  readonly newPassword: import("effect/Schema").String;
275
275
  readonly currentPassword: import("effect/Schema").String;
@@ -324,7 +324,14 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
324
324
  readonly createdAt: import("effect/Schema").DateFromString;
325
325
  readonly updatedAt: import("effect/Schema").DateFromString;
326
326
  }>;
327
- }>>, 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<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
327
+ }>>, 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<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
328
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
329
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
330
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
331
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
332
+ readonly success: import("effect/Schema").Boolean;
333
+ readonly message: import("effect/Schema").String;
334
+ }>>, 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> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
328
335
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
329
336
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
330
337
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -534,10 +541,21 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
534
541
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
535
542
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
536
543
  readonly createdAt: import("effect/Schema").DateFromString;
544
+ }>>, 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<"organizationDelete", "POST", "/api/auth/organization/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
545
+ readonly organizationId: import("effect/Schema").NonEmptyString;
546
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
547
+ readonly id: import("effect/Schema").String;
548
+ readonly name: import("effect/Schema").String;
549
+ readonly slug: import("effect/Schema").String;
550
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
551
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
552
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
553
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
554
+ readonly createdAt: import("effect/Schema").DateFromString;
537
555
  }>>, 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<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
538
556
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
539
557
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
540
- readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
558
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
541
559
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
542
560
  readonly id: import("effect/Schema").String;
543
561
  readonly name: import("effect/Schema").String;
@@ -623,7 +641,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
623
641
  readonly organizationId: import("effect/Schema").NonEmptyString;
624
642
  readonly actorUserId: import("effect/Schema").NonEmptyString;
625
643
  readonly targetUserId: import("effect/Schema").NonEmptyString;
626
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
644
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
627
645
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
628
646
  readonly session: import("effect/Schema").Struct<{
629
647
  readonly id: import("effect/Schema").String;
@@ -734,8 +752,8 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
734
752
  readonly expiresAt: import("effect/Schema").DateFromString;
735
753
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
736
754
  }>>>, 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<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
737
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
738
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
755
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
756
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
739
757
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
740
758
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
741
759
  readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -789,7 +807,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
789
807
  }>, import("effect/Schema").Unknown, never, never>>>;
790
808
  }>;
791
809
  }>>;
792
- readonly total: import("effect/Schema").Number;
810
+ readonly total: import("effect/Schema").Finite;
793
811
  }>>, 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<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
794
812
  readonly id: import("effect/Schema").String;
795
813
  readonly email: import("effect/Schema").String;
@@ -1018,7 +1036,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1018
1036
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1019
1037
  readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1020
1038
  readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1021
- readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
1039
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
1022
1040
  readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1023
1041
  readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1024
1042
  readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -1370,7 +1388,19 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1370
1388
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1371
1389
  readonly id: import("effect/Schema").String;
1372
1390
  readonly key: import("effect/Schema").String;
1373
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1391
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1392
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1393
+ readonly id: import("effect/Schema").String;
1394
+ readonly name: import("effect/Schema").String;
1395
+ readonly ready: import("effect/Schema").Boolean;
1396
+ }>>;
1397
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1398
+ readonly id: import("effect/Schema").String;
1399
+ readonly name: import("effect/Schema").String;
1400
+ readonly personal: import("effect/Schema").Boolean;
1401
+ }>>;
1402
+ readonly adminAccount: import("effect/Schema").Boolean;
1403
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1374
1404
  readonly organizationId: import("effect/Schema").String;
1375
1405
  readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
1376
1406
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -1995,7 +2025,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1995
2025
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1996
2026
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1997
2027
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1998
- readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
2028
+ readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
1999
2029
  readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2000
2030
  readonly id: import("effect/Schema").String;
2001
2031
  readonly name: import("effect/Schema").String;
@@ -2011,26 +2041,26 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2011
2041
  }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2012
2042
  readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
2013
2043
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2014
- readonly totalUsers: import("effect/Schema").Number;
2015
- readonly totalOrganizations: import("effect/Schema").Number;
2016
- readonly totalProjects: import("effect/Schema").Number;
2017
- readonly totalDomains: import("effect/Schema").Number;
2018
- readonly totalApiKeys: import("effect/Schema").Number;
2019
- readonly totalOauthClients: import("effect/Schema").Number;
2020
- readonly dailyActiveUsers: import("effect/Schema").Number;
2044
+ readonly totalUsers: import("effect/Schema").Finite;
2045
+ readonly totalOrganizations: import("effect/Schema").Finite;
2046
+ readonly totalProjects: import("effect/Schema").Finite;
2047
+ readonly totalDomains: import("effect/Schema").Finite;
2048
+ readonly totalApiKeys: import("effect/Schema").Finite;
2049
+ readonly totalOauthClients: import("effect/Schema").Finite;
2050
+ readonly dailyActiveUsers: import("effect/Schema").Finite;
2021
2051
  readonly dailyActiveUsersByDay: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2022
2052
  readonly date: import("effect/Schema").String;
2023
- readonly count: import("effect/Schema").Number;
2053
+ readonly count: import("effect/Schema").Finite;
2024
2054
  }>>;
2025
2055
  readonly signupsByDay: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2026
2056
  readonly date: import("effect/Schema").String;
2027
- readonly count: import("effect/Schema").Number;
2057
+ readonly count: import("effect/Schema").Finite;
2028
2058
  }>>;
2029
2059
  readonly projectConnections: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2030
2060
  readonly projectId: import("effect/Schema").String;
2031
2061
  readonly projectName: import("effect/Schema").String;
2032
- readonly users: import("effect/Schema").Number;
2033
- readonly organizations: import("effect/Schema").Number;
2062
+ readonly users: import("effect/Schema").Finite;
2063
+ readonly organizations: import("effect/Schema").Finite;
2034
2064
  }>>;
2035
2065
  }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2036
2066
  readonly id: import("effect/Schema").String;
@@ -2043,10 +2073,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2043
2073
  readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2044
2074
  readonly enabled: import("effect/Schema").Boolean;
2045
2075
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2046
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2047
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2048
- readonly requestCount: import("effect/Schema").Number;
2049
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2076
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2077
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2078
+ readonly requestCount: import("effect/Schema").Finite;
2079
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2050
2080
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2051
2081
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2052
2082
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -2080,7 +2110,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2080
2110
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2081
2111
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2082
2112
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2083
- readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
2113
+ readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
2084
2114
  readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2085
2115
  readonly id: import("effect/Schema").String;
2086
2116
  readonly name: import("effect/Schema").String;
@@ -2104,10 +2134,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2104
2134
  readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2105
2135
  readonly enabled: import("effect/Schema").Boolean;
2106
2136
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2107
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2108
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2109
- readonly requestCount: import("effect/Schema").Number;
2110
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2137
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2138
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2139
+ readonly requestCount: import("effect/Schema").Finite;
2140
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2111
2141
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2112
2142
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2113
2143
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -2125,10 +2155,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2125
2155
  readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2126
2156
  readonly enabled: import("effect/Schema").Boolean;
2127
2157
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2128
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2129
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2130
- readonly requestCount: import("effect/Schema").Number;
2131
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2158
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2159
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2160
+ readonly requestCount: import("effect/Schema").Finite;
2161
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2132
2162
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2133
2163
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2134
2164
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -2152,10 +2182,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2152
2182
  readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2153
2183
  readonly enabled: import("effect/Schema").Boolean;
2154
2184
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2155
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2156
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2157
- readonly requestCount: import("effect/Schema").Number;
2158
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2185
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2186
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2187
+ readonly requestCount: import("effect/Schema").Finite;
2188
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2159
2189
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2160
2190
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2161
2191
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -2245,7 +2275,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2245
2275
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2246
2276
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2247
2277
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2248
- readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
2278
+ readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
2249
2279
  readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2250
2280
  readonly id: import("effect/Schema").String;
2251
2281
  readonly name: import("effect/Schema").String;
@@ -2365,10 +2395,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2365
2395
  readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2366
2396
  readonly enabled: import("effect/Schema").Boolean;
2367
2397
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2368
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2369
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2370
- readonly requestCount: import("effect/Schema").Number;
2371
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2398
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2399
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2400
+ readonly requestCount: import("effect/Schema").Finite;
2401
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2372
2402
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2373
2403
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2374
2404
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -2381,8 +2411,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2381
2411
  readonly name: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2382
2412
  readonly enabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2383
2413
  readonly rateLimitEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2384
- readonly rateLimitMax: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
2385
- readonly rateLimitTimeWindow: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
2414
+ readonly rateLimitMax: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
2415
+ readonly rateLimitTimeWindow: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
2386
2416
  readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2387
2417
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2388
2418
  readonly id: import("effect/Schema").String;
@@ -2393,10 +2423,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2393
2423
  readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2394
2424
  readonly enabled: import("effect/Schema").Boolean;
2395
2425
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2396
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2397
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2398
- readonly requestCount: import("effect/Schema").Number;
2399
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2426
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2427
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2428
+ readonly requestCount: import("effect/Schema").Finite;
2429
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2400
2430
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2401
2431
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2402
2432
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -2441,7 +2471,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2441
2471
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2442
2472
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2443
2473
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2444
- readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
2474
+ readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Finite>;
2445
2475
  readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2446
2476
  readonly id: import("effect/Schema").String;
2447
2477
  readonly name: import("effect/Schema").String;
@@ -2457,7 +2487,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2457
2487
  }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2458
2488
  readonly userId: import("effect/Schema").String;
2459
2489
  readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
2460
- readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
2490
+ readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
2461
2491
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2462
2492
  readonly user: import("effect/Schema").Struct<{
2463
2493
  readonly id: import("effect/Schema").String;
@@ -2692,8 +2722,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2692
2722
  }>>, 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<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2693
2723
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
2694
2724
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2695
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
2696
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
2725
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
2726
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
2697
2727
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
2698
2728
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
2699
2729
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -2705,15 +2735,15 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2705
2735
  readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
2706
2736
  readonly referenceId: import("effect/Schema").String;
2707
2737
  readonly configId: import("effect/Schema").String;
2708
- readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2709
- readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2738
+ readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2739
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2710
2740
  readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
2711
2741
  readonly enabled: import("effect/Schema").Boolean;
2712
2742
  readonly rateLimitEnabled: import("effect/Schema").Boolean;
2713
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2714
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2715
- readonly requestCount: import("effect/Schema").Number;
2716
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
2743
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2744
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2745
+ readonly requestCount: import("effect/Schema").Finite;
2746
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
2717
2747
  readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
2718
2748
  readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
2719
2749
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -2722,9 +2752,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2722
2752
  readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
2723
2753
  readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
2724
2754
  }>>;
2725
- readonly total: import("effect/Schema").Number;
2726
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
2727
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
2755
+ readonly total: import("effect/Schema").Finite;
2756
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
2757
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
2728
2758
  }>>, 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<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2729
2759
  readonly newPassword: import("effect/Schema").String;
2730
2760
  readonly currentPassword: import("effect/Schema").String;
@@ -2779,7 +2809,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2779
2809
  readonly createdAt: import("effect/Schema").DateFromString;
2780
2810
  readonly updatedAt: import("effect/Schema").DateFromString;
2781
2811
  }>;
2782
- }>>, 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<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2812
+ }>>, 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<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2813
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2814
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2815
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2816
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2817
+ readonly success: import("effect/Schema").Boolean;
2818
+ readonly message: import("effect/Schema").String;
2819
+ }>>, 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> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2783
2820
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
2784
2821
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
2785
2822
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -2989,10 +3026,21 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2989
3026
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2990
3027
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2991
3028
  readonly createdAt: import("effect/Schema").DateFromString;
3029
+ }>>, 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<"organizationDelete", "POST", "/api/auth/organization/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3030
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3031
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3032
+ readonly id: import("effect/Schema").String;
3033
+ readonly name: import("effect/Schema").String;
3034
+ readonly slug: import("effect/Schema").String;
3035
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3036
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
3037
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3038
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3039
+ readonly createdAt: import("effect/Schema").DateFromString;
2992
3040
  }>>, 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<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2993
3041
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2994
3042
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
2995
- readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
3043
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
2996
3044
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2997
3045
  readonly id: import("effect/Schema").String;
2998
3046
  readonly name: import("effect/Schema").String;
@@ -3078,7 +3126,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3078
3126
  readonly organizationId: import("effect/Schema").NonEmptyString;
3079
3127
  readonly actorUserId: import("effect/Schema").NonEmptyString;
3080
3128
  readonly targetUserId: import("effect/Schema").NonEmptyString;
3081
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
3129
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
3082
3130
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3083
3131
  readonly session: import("effect/Schema").Struct<{
3084
3132
  readonly id: import("effect/Schema").String;
@@ -3189,8 +3237,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3189
3237
  readonly expiresAt: import("effect/Schema").DateFromString;
3190
3238
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
3191
3239
  }>>>, 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<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3192
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
3193
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
3240
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
3241
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
3194
3242
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
3195
3243
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
3196
3244
  readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3244,7 +3292,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3244
3292
  }>, import("effect/Schema").Unknown, never, never>>>;
3245
3293
  }>;
3246
3294
  }>>;
3247
- readonly total: import("effect/Schema").Number;
3295
+ readonly total: import("effect/Schema").Finite;
3248
3296
  }>>, 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<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3249
3297
  readonly id: import("effect/Schema").String;
3250
3298
  readonly email: import("effect/Schema").String;
@@ -3473,7 +3521,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3473
3521
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
3474
3522
  readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
3475
3523
  readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
3476
- readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
3524
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
3477
3525
  readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
3478
3526
  readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
3479
3527
  readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3825,7 +3873,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3825
3873
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3826
3874
  readonly id: import("effect/Schema").String;
3827
3875
  readonly key: import("effect/Schema").String;
3828
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3876
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3877
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3878
+ readonly id: import("effect/Schema").String;
3879
+ readonly name: import("effect/Schema").String;
3880
+ readonly ready: import("effect/Schema").Boolean;
3881
+ }>>;
3882
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3883
+ readonly id: import("effect/Schema").String;
3884
+ readonly name: import("effect/Schema").String;
3885
+ readonly personal: import("effect/Schema").Boolean;
3886
+ }>>;
3887
+ readonly adminAccount: import("effect/Schema").Boolean;
3888
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3829
3889
  readonly organizationId: import("effect/Schema").String;
3830
3890
  readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
3831
3891
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{