@krak-stack/auth 0.2.31 → 0.2.32

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 (37) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +79 -1
  3. package/dist/api.d.ts +1453 -1393
  4. package/dist/auth/api.group.d.ts +19 -1
  5. package/dist/auth/api.group.js +17 -1
  6. package/dist/auth/schema.d.ts +12 -0
  7. package/dist/auth/schema.js +12 -0
  8. package/dist/components/account-deletion-request.d.ts +5 -0
  9. package/dist/components/account-deletion-request.js +7 -0
  10. package/dist/components/account-deletion.d.ts +8 -0
  11. package/dist/components/account-deletion.js +59 -0
  12. package/dist/components/admin-organizations.js +3 -2
  13. package/dist/components/associated-projects-notice.js +1 -1
  14. package/dist/components/auth-client-api.d.ts +33 -0
  15. package/dist/components/deletion-visibility.d.ts +1 -0
  16. package/dist/components/deletion-visibility.js +3 -0
  17. package/dist/components/organization-deletion-request.d.ts +17 -0
  18. package/dist/components/organization-deletion-request.js +9 -0
  19. package/dist/components/organization-switcher.js +31 -2
  20. package/dist/components/user-button.d.ts +29 -1
  21. package/dist/components/user-button.js +39 -2
  22. package/dist/extra/api.group.d.ts +13 -1
  23. package/dist/extra/api.group.js +5 -1
  24. package/dist/extra/schema.d.ts +13 -0
  25. package/dist/extra/schema.js +13 -0
  26. package/dist/schema.d.ts +35 -0
  27. package/dist/schema.js +25 -0
  28. package/dist/server/index.d.ts +2 -1
  29. package/dist/server/index.js +1 -0
  30. package/dist/server/middleware.d.ts +10 -2
  31. package/dist/server/middleware.js +4 -1
  32. package/dist/server/webhook-layer.d.ts +6 -0
  33. package/dist/server/webhook-layer.js +37 -0
  34. package/dist/server/webhooks.d.ts +38 -0
  35. package/dist/server/webhooks.js +39 -0
  36. package/dist/service.d.ts +66 -0
  37. package/package.json +7 -3
package/dist/api.d.ts CHANGED
@@ -1,10 +1,58 @@
1
1
  import { HttpApi } from "effect/http-api";
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
- readonly userId: import("effect/Schema").String;
4
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
5
- readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
6
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
7
- readonly user: import("effect/Schema").Struct<{
2
+ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"users", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3
+ readonly id: import("effect/Schema").NonEmptyString;
4
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
5
+ readonly id: import("effect/Schema").String;
6
+ readonly name: import("effect/Schema").String;
7
+ readonly email: import("effect/Schema").String;
8
+ readonly emailVerified: import("effect/Schema").Boolean;
9
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
10
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
11
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
12
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
13
+ readonly email: import("effect/Schema").NonEmptyString;
14
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
15
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
16
+ readonly label: import("effect/Schema").NonEmptyString;
17
+ }>>;
18
+ }>>>;
19
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
20
+ readonly number: import("effect/Schema").NonEmptyString;
21
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
22
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
23
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
24
+ readonly label: import("effect/Schema").NonEmptyString;
25
+ }>>;
26
+ }>>>;
27
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
28
+ readonly url: import("effect/Schema").NonEmptyString;
29
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
30
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
31
+ readonly label: import("effect/Schema").NonEmptyString;
32
+ }>>;
33
+ }>>>;
34
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
35
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
36
+ readonly url: import("effect/Schema").NonEmptyString;
37
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
38
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
39
+ readonly label: import("effect/Schema").NonEmptyString;
40
+ }>>;
41
+ }>>>;
42
+ }>, import("effect/Schema").Unknown, never, never>>>;
43
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
44
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
45
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
46
+ readonly createdAt: import("effect/Schema").Date;
47
+ readonly updatedAt: import("effect/Schema").Date;
48
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
49
+ readonly userId: import("effect/Schema").NonEmptyString;
50
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
51
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
52
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
53
+ readonly ids: import("effect/Schema").NonEmptyString;
54
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
55
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
8
56
  readonly id: import("effect/Schema").String;
9
57
  readonly name: import("effect/Schema").String;
10
58
  readonly email: import("effect/Schema").String;
@@ -45,91 +93,100 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
45
93
  }>, import("effect/Schema").Unknown, never, never>>>;
46
94
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
47
95
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
48
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
49
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
50
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
51
96
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
52
- readonly createdAt: import("effect/Schema").DateFromString;
53
- readonly updatedAt: import("effect/Schema").DateFromString;
54
- }>;
55
- }>>, 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<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
56
- readonly userId: import("effect/Schema").String;
97
+ readonly createdAt: import("effect/Schema").Date;
98
+ readonly updatedAt: import("effect/Schema").Date;
99
+ }>>;
100
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
101
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
102
+ readonly hostname: import("effect/Schema").NonEmptyString;
103
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
104
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
105
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
106
+ readonly managed: import("effect/Schema").Boolean;
57
107
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
58
- readonly session: import("effect/Schema").Struct<{
59
- readonly id: import("effect/Schema").String;
60
- readonly expiresAt: import("effect/Schema").DateFromString;
61
- readonly token: import("effect/Schema").String;
62
- readonly createdAt: import("effect/Schema").DateFromString;
63
- readonly updatedAt: import("effect/Schema").DateFromString;
64
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
65
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
66
- readonly userId: import("effect/Schema").String;
67
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
68
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
69
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
70
- }>;
71
- readonly user: import("effect/Schema").Struct<{
72
- readonly id: import("effect/Schema").String;
73
- readonly name: import("effect/Schema").String;
74
- readonly email: import("effect/Schema").String;
75
- readonly emailVerified: import("effect/Schema").Boolean;
76
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
77
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
78
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
79
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
80
- readonly email: import("effect/Schema").NonEmptyString;
81
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
82
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
83
- readonly label: import("effect/Schema").NonEmptyString;
84
- }>>;
85
- }>>>;
86
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
87
- readonly number: import("effect/Schema").NonEmptyString;
88
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
89
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
90
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
91
- readonly label: import("effect/Schema").NonEmptyString;
92
- }>>;
93
- }>>>;
94
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
95
- readonly url: import("effect/Schema").NonEmptyString;
96
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
97
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
98
- readonly label: import("effect/Schema").NonEmptyString;
99
- }>>;
100
- }>>>;
101
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
102
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
103
- readonly url: import("effect/Schema").NonEmptyString;
104
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
105
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
106
- readonly label: import("effect/Schema").NonEmptyString;
107
- }>>;
108
- }>>>;
109
- }>, import("effect/Schema").Unknown, never, never>>>;
110
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
111
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
112
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
113
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
114
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
115
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
116
- readonly createdAt: import("effect/Schema").DateFromString;
117
- readonly updatedAt: import("effect/Schema").DateFromString;
118
- }>;
119
- }>>, 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<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
120
- readonly session: import("effect/Schema").Struct<{
121
- readonly id: import("effect/Schema").String;
122
- readonly expiresAt: import("effect/Schema").DateFromString;
123
- readonly token: import("effect/Schema").String;
124
- readonly createdAt: import("effect/Schema").DateFromString;
125
- readonly updatedAt: import("effect/Schema").DateFromString;
126
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
127
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
128
- readonly userId: import("effect/Schema").String;
129
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
130
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
132
- }>;
108
+ readonly id: import("effect/Schema").String;
109
+ readonly hostname: import("effect/Schema").String;
110
+ readonly rootHostname: import("effect/Schema").String;
111
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
112
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
113
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
114
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
115
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
116
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
117
+ readonly hostnameId: import("effect/Schema").String;
118
+ readonly managed: import("effect/Schema").Boolean;
119
+ readonly active: import("effect/Schema").Boolean;
120
+ readonly createdAt: import("effect/Schema").Date;
121
+ readonly updatedAt: import("effect/Schema").Date;
122
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
123
+ readonly id: import("effect/Schema").NonEmptyString;
124
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
125
+ readonly id: import("effect/Schema").String;
126
+ readonly hostname: import("effect/Schema").String;
127
+ readonly rootHostname: import("effect/Schema").String;
128
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
129
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
130
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
132
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
133
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
134
+ readonly hostnameId: import("effect/Schema").String;
135
+ readonly managed: import("effect/Schema").Boolean;
136
+ readonly active: import("effect/Schema").Boolean;
137
+ readonly createdAt: import("effect/Schema").Date;
138
+ readonly updatedAt: import("effect/Schema").Date;
139
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
140
+ readonly id: import("effect/Schema").NonEmptyString;
141
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
142
+ readonly id: import("effect/Schema").String;
143
+ readonly hostname: import("effect/Schema").String;
144
+ readonly rootHostname: import("effect/Schema").String;
145
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
146
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
147
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
148
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
149
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
150
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
151
+ readonly hostnameId: import("effect/Schema").String;
152
+ readonly managed: import("effect/Schema").Boolean;
153
+ readonly active: import("effect/Schema").Boolean;
154
+ readonly createdAt: import("effect/Schema").Date;
155
+ readonly updatedAt: import("effect/Schema").Date;
156
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
157
+ readonly hostname: import("effect/Schema").NonEmptyString;
158
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
159
+ readonly id: import("effect/Schema").String;
160
+ readonly hostname: import("effect/Schema").String;
161
+ readonly rootHostname: import("effect/Schema").String;
162
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
163
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
164
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
165
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
166
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
167
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
168
+ readonly hostnameId: import("effect/Schema").String;
169
+ readonly managed: import("effect/Schema").Boolean;
170
+ readonly active: import("effect/Schema").Boolean;
171
+ readonly createdAt: import("effect/Schema").Date;
172
+ readonly updatedAt: import("effect/Schema").Date;
173
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
174
+ readonly id: import("effect/Schema").NonEmptyString;
175
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
176
+ readonly required: import("effect/Schema").Boolean;
177
+ readonly status: import("effect/Schema").String;
178
+ readonly type: import("effect/Schema").String;
179
+ readonly name: import("effect/Schema").String;
180
+ readonly value: import("effect/Schema").String;
181
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
182
+ readonly organizationId: import("effect/Schema").NonEmptyString;
183
+ readonly userId: import("effect/Schema").NonEmptyString;
184
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
185
+ readonly id: import("effect/Schema").String;
186
+ readonly organizationId: import("effect/Schema").String;
187
+ readonly userId: import("effect/Schema").String;
188
+ readonly role: import("effect/Schema").String;
189
+ readonly createdAt: import("effect/Schema").Date;
133
190
  readonly user: import("effect/Schema").Struct<{
134
191
  readonly id: import("effect/Schema").String;
135
192
  readonly name: import("effect/Schema").String;
@@ -171,111 +228,138 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
171
228
  }>, import("effect/Schema").Unknown, never, never>>>;
172
229
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
173
230
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
174
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
175
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
176
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
177
231
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
178
- readonly createdAt: import("effect/Schema").DateFromString;
179
- readonly updatedAt: import("effect/Schema").DateFromString;
232
+ readonly createdAt: import("effect/Schema").Date;
233
+ readonly updatedAt: import("effect/Schema").Date;
180
234
  }>;
181
- }>>, 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<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
182
- readonly userId: import("effect/Schema").String;
183
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
184
- readonly user: import("effect/Schema").Struct<{
185
- readonly id: import("effect/Schema").String;
186
- readonly name: import("effect/Schema").String;
187
- readonly email: import("effect/Schema").String;
188
- readonly emailVerified: import("effect/Schema").Boolean;
189
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
190
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
191
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
192
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
193
- readonly email: import("effect/Schema").NonEmptyString;
194
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
195
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
196
- readonly label: import("effect/Schema").NonEmptyString;
197
- }>>;
198
- }>>>;
199
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
200
- readonly number: import("effect/Schema").NonEmptyString;
201
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
202
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
203
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
204
- readonly label: import("effect/Schema").NonEmptyString;
205
- }>>;
206
- }>>>;
207
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
208
- readonly url: import("effect/Schema").NonEmptyString;
209
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
210
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
211
- readonly label: import("effect/Schema").NonEmptyString;
212
- }>>;
213
- }>>>;
214
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
215
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
216
- readonly url: import("effect/Schema").NonEmptyString;
217
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
218
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
219
- readonly label: import("effect/Schema").NonEmptyString;
220
- }>>;
221
- }>>>;
222
- }>, import("effect/Schema").Unknown, never, never>>>;
223
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
224
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
225
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
226
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
227
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
228
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
229
- readonly createdAt: import("effect/Schema").DateFromString;
230
- readonly updatedAt: import("effect/Schema").DateFromString;
231
- }>;
232
- }>>, 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<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
233
- readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
234
- readonly keyId: import("effect/Schema").String;
235
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
236
- readonly success: import("effect/Schema").Boolean;
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
- readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
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>;
242
- readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
243
- readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
244
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
245
- readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
246
- readonly id: import("effect/Schema").String;
247
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
248
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
249
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
250
- readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
251
- readonly referenceId: import("effect/Schema").String;
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>;
255
- readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
256
- readonly enabled: import("effect/Schema").Boolean;
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>;
262
- readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
263
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
264
- readonly createdAt: import("effect/Schema").DateFromString;
265
- readonly updatedAt: import("effect/Schema").DateFromString;
266
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
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
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
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>>;
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
- readonly newPassword: import("effect/Schema").String;
275
- readonly currentPassword: import("effect/Schema").String;
276
- readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
277
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
278
- readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
235
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
236
+ readonly id: import("effect/Schema").NonEmptyString;
237
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
238
+ readonly id: import("effect/Schema").String;
239
+ readonly name: import("effect/Schema").String;
240
+ readonly slug: import("effect/Schema").String;
241
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
242
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
243
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
244
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
245
+ readonly name: import("effect/Schema").String;
246
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
247
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
248
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
249
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
250
+ }>>;
251
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
252
+ readonly email: import("effect/Schema").NonEmptyString;
253
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
254
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
255
+ readonly label: import("effect/Schema").NonEmptyString;
256
+ }>>;
257
+ }>>>;
258
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
259
+ readonly number: import("effect/Schema").NonEmptyString;
260
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
261
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
262
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
263
+ readonly label: import("effect/Schema").NonEmptyString;
264
+ }>>;
265
+ }>>>;
266
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
267
+ readonly url: import("effect/Schema").NonEmptyString;
268
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
269
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
270
+ readonly label: import("effect/Schema").NonEmptyString;
271
+ }>>;
272
+ }>>>;
273
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
274
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
275
+ readonly url: import("effect/Schema").NonEmptyString;
276
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
277
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
278
+ readonly label: import("effect/Schema").NonEmptyString;
279
+ }>>;
280
+ }>>>;
281
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
282
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
283
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
284
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
285
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
286
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
287
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
288
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
289
+ readonly label: import("effect/Schema").NonEmptyString;
290
+ }>>;
291
+ }>>>;
292
+ }>, import("effect/Schema").Unknown, never, never>>;
293
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
294
+ readonly createdAt: import("effect/Schema").Date;
295
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
296
+ readonly organizationId: import("effect/Schema").NonEmptyString;
297
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
298
+ readonly id: import("effect/Schema").String;
299
+ readonly name: import("effect/Schema").String;
300
+ readonly slug: import("effect/Schema").String;
301
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
302
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
303
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
304
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
305
+ readonly name: import("effect/Schema").String;
306
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
307
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
308
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
309
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
310
+ }>>;
311
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
312
+ readonly email: import("effect/Schema").NonEmptyString;
313
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
314
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
315
+ readonly label: import("effect/Schema").NonEmptyString;
316
+ }>>;
317
+ }>>>;
318
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
319
+ readonly number: import("effect/Schema").NonEmptyString;
320
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
321
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
322
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
323
+ readonly label: import("effect/Schema").NonEmptyString;
324
+ }>>;
325
+ }>>>;
326
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
327
+ readonly url: import("effect/Schema").NonEmptyString;
328
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
329
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
330
+ readonly label: import("effect/Schema").NonEmptyString;
331
+ }>>;
332
+ }>>>;
333
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
334
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
335
+ readonly url: import("effect/Schema").NonEmptyString;
336
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
337
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
338
+ readonly label: import("effect/Schema").NonEmptyString;
339
+ }>>;
340
+ }>>>;
341
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
342
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
343
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
344
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
345
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
346
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
347
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
348
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
349
+ readonly label: import("effect/Schema").NonEmptyString;
350
+ }>>;
351
+ }>>>;
352
+ }>, import("effect/Schema").Unknown, never, never>>;
353
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
354
+ readonly createdAt: import("effect/Schema").Date;
355
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
356
+ readonly organizationId: import("effect/Schema").NonEmptyString;
357
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
358
+ readonly id: import("effect/Schema").String;
359
+ readonly organizationId: import("effect/Schema").String;
360
+ readonly userId: import("effect/Schema").String;
361
+ readonly role: import("effect/Schema").String;
362
+ readonly createdAt: import("effect/Schema").Date;
279
363
  readonly user: import("effect/Schema").Struct<{
280
364
  readonly id: import("effect/Schema").String;
281
365
  readonly name: import("effect/Schema").String;
@@ -317,38 +401,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
317
401
  }>, import("effect/Schema").Unknown, never, never>>>;
318
402
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
319
403
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
320
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
321
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
322
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
323
404
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
324
- readonly createdAt: import("effect/Schema").DateFromString;
325
- readonly updatedAt: import("effect/Schema").DateFromString;
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<{
328
- readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
329
- readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
330
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
331
- readonly session: import("effect/Schema").Struct<{
332
- readonly id: import("effect/Schema").String;
333
- readonly expiresAt: import("effect/Schema").DateFromString;
334
- readonly token: import("effect/Schema").String;
335
- readonly createdAt: import("effect/Schema").DateFromString;
336
- readonly updatedAt: import("effect/Schema").DateFromString;
337
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
338
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
339
- readonly userId: import("effect/Schema").String;
340
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
341
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
342
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
405
+ readonly createdAt: import("effect/Schema").Date;
406
+ readonly updatedAt: import("effect/Schema").Date;
343
407
  }>;
344
- readonly user: import("effect/Schema").Struct<{
408
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
409
+ readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
410
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
411
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
412
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
345
413
  readonly id: import("effect/Schema").String;
346
414
  readonly name: import("effect/Schema").String;
347
- readonly email: import("effect/Schema").String;
348
- readonly emailVerified: import("effect/Schema").Boolean;
349
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
350
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
351
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
415
+ readonly slug: import("effect/Schema").String;
416
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
417
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
418
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
419
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
420
+ readonly name: import("effect/Schema").String;
421
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
422
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
423
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
424
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
425
+ }>>;
352
426
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
353
427
  readonly email: import("effect/Schema").NonEmptyString;
354
428
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -379,8 +453,208 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
379
453
  readonly label: import("effect/Schema").NonEmptyString;
380
454
  }>>;
381
455
  }>>>;
382
- }>, import("effect/Schema").Unknown, never, never>>>;
383
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
456
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
457
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
458
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
459
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
460
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
461
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
462
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
463
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
464
+ readonly label: import("effect/Schema").NonEmptyString;
465
+ }>>;
466
+ }>>>;
467
+ }>, import("effect/Schema").Unknown, never, never>>;
468
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
469
+ readonly createdAt: import("effect/Schema").Date;
470
+ }>>;
471
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
472
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
473
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
474
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
475
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
476
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
477
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
478
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
479
+ readonly id: import("effect/Schema").String;
480
+ readonly key: import("effect/Schema").String;
481
+ }>>, 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<{
482
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
483
+ readonly id: import("effect/Schema").String;
484
+ readonly name: import("effect/Schema").String;
485
+ readonly ready: import("effect/Schema").Boolean;
486
+ }>>;
487
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
488
+ readonly id: import("effect/Schema").String;
489
+ readonly name: import("effect/Schema").String;
490
+ readonly personal: import("effect/Schema").Boolean;
491
+ }>>;
492
+ readonly adminAccount: import("effect/Schema").Boolean;
493
+ }>>, 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<{
494
+ readonly organizationId: import("effect/Schema").String;
495
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
496
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
497
+ readonly id: import("effect/Schema").String;
498
+ readonly name: import("effect/Schema").String;
499
+ readonly slug: import("effect/Schema").String;
500
+ readonly displayName: import("effect/Schema").String;
501
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
502
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
503
+ readonly email: import("effect/Schema").NonEmptyString;
504
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
505
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
506
+ readonly label: import("effect/Schema").NonEmptyString;
507
+ }>>;
508
+ }>>>;
509
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
510
+ readonly number: import("effect/Schema").NonEmptyString;
511
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
512
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
513
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
514
+ readonly label: import("effect/Schema").NonEmptyString;
515
+ }>>;
516
+ }>>>;
517
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
518
+ readonly url: import("effect/Schema").NonEmptyString;
519
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
520
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
521
+ readonly label: import("effect/Schema").NonEmptyString;
522
+ }>>;
523
+ }>>>;
524
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
525
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
526
+ readonly url: import("effect/Schema").NonEmptyString;
527
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
528
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
529
+ readonly label: import("effect/Schema").NonEmptyString;
530
+ }>>;
531
+ }>>>;
532
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
533
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
534
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
535
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
536
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
537
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
538
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
539
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
540
+ readonly label: import("effect/Schema").NonEmptyString;
541
+ }>>;
542
+ readonly formatted: import("effect/Schema").String;
543
+ }>>>;
544
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
545
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
546
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
547
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
548
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
549
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
550
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
551
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
552
+ readonly projectKey: import("effect/Schema").String;
553
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
554
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
555
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
556
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
557
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
558
+ readonly authOptions: import("effect/Schema").Struct<{
559
+ readonly emailPassword: import("effect/Schema").Boolean;
560
+ readonly emailOtp: import("effect/Schema").Boolean;
561
+ readonly google: import("effect/Schema").Boolean;
562
+ }>;
563
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
564
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
565
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
566
+ readonly id: import("effect/Schema").String;
567
+ readonly name: import("effect/Schema").String;
568
+ }>>>, 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<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
569
+ readonly newPassword: import("effect/Schema").NonEmptyString;
570
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
571
+ readonly ok: import("effect/Schema").Boolean;
572
+ }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
573
+ keyId: import("effect/Schema").NonEmptyString;
574
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
575
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
576
+ readonly name: import("effect/Schema").NonEmptyString;
577
+ readonly enabled: import("effect/Schema").Boolean;
578
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
579
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
580
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
581
+ readonly ok: import("effect/Schema").Boolean;
582
+ }>>, 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<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
583
+ readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
584
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
585
+ readonly url: import("effect/Schema").String;
586
+ }>>, 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<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
587
+ readonly key: import("effect/Schema").NonEmptyString;
588
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
589
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
590
+ readonly valid: import("effect/Schema").Boolean;
591
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
592
+ readonly message: import("effect/Schema").String;
593
+ readonly code: import("effect/Schema").String;
594
+ }>>;
595
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
596
+ readonly id: import("effect/Schema").String;
597
+ readonly configId: import("effect/Schema").String;
598
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
599
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
600
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
601
+ readonly referenceId: import("effect/Schema").String;
602
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
603
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
604
+ readonly createdAt: import("effect/Schema").Date;
605
+ readonly updatedAt: import("effect/Schema").Date;
606
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
607
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
608
+ }>>;
609
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
610
+ readonly password: import("effect/Schema").NonEmptyString;
611
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
612
+ readonly ok: import("effect/Schema").Boolean;
613
+ }>>, 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>, 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<{
614
+ readonly userId: import("effect/Schema").String;
615
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
616
+ readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
617
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
618
+ readonly user: import("effect/Schema").Struct<{
619
+ readonly id: import("effect/Schema").String;
620
+ readonly name: import("effect/Schema").String;
621
+ readonly email: import("effect/Schema").String;
622
+ readonly emailVerified: import("effect/Schema").Boolean;
623
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
624
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
625
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
626
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
627
+ readonly email: import("effect/Schema").NonEmptyString;
628
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
629
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
630
+ readonly label: import("effect/Schema").NonEmptyString;
631
+ }>>;
632
+ }>>>;
633
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
634
+ readonly number: import("effect/Schema").NonEmptyString;
635
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
636
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
637
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
638
+ readonly label: import("effect/Schema").NonEmptyString;
639
+ }>>;
640
+ }>>>;
641
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
642
+ readonly url: import("effect/Schema").NonEmptyString;
643
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
644
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
645
+ readonly label: import("effect/Schema").NonEmptyString;
646
+ }>>;
647
+ }>>>;
648
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
649
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
650
+ readonly url: import("effect/Schema").NonEmptyString;
651
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
652
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
653
+ readonly label: import("effect/Schema").NonEmptyString;
654
+ }>>;
655
+ }>>>;
656
+ }>, import("effect/Schema").Unknown, never, never>>>;
657
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
384
658
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
385
659
  readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
386
660
  readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
@@ -389,26 +663,23 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
389
663
  readonly createdAt: import("effect/Schema").DateFromString;
390
664
  readonly updatedAt: import("effect/Schema").DateFromString;
391
665
  }>;
392
- }>>>, 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<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
393
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
394
- readonly provider: import("effect/Schema").String;
395
- readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
396
- readonly token: import("effect/Schema").String;
397
- readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
398
- readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
399
- readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
400
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
401
- }>>;
402
- readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
403
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
404
- readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
405
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
406
- readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
666
+ }>>, 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<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
667
+ readonly userId: import("effect/Schema").String;
407
668
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
408
- readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
409
- readonly redirect: import("effect/Schema").Boolean;
410
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
411
- readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
669
+ readonly session: import("effect/Schema").Struct<{
670
+ readonly id: import("effect/Schema").String;
671
+ readonly expiresAt: import("effect/Schema").DateFromString;
672
+ readonly token: import("effect/Schema").String;
673
+ readonly createdAt: import("effect/Schema").DateFromString;
674
+ readonly updatedAt: import("effect/Schema").DateFromString;
675
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
676
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
677
+ readonly userId: import("effect/Schema").String;
678
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
679
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
680
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
681
+ }>;
682
+ readonly user: import("effect/Schema").Struct<{
412
683
  readonly id: import("effect/Schema").String;
413
684
  readonly name: import("effect/Schema").String;
414
685
  readonly email: import("effect/Schema").String;
@@ -455,176 +726,8 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
455
726
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
456
727
  readonly createdAt: import("effect/Schema").DateFromString;
457
728
  readonly updatedAt: import("effect/Schema").DateFromString;
458
- }>>;
459
- readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
460
- }>>, 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<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
461
- readonly id: import("effect/Schema").String;
462
- readonly providerId: import("effect/Schema").String;
463
- readonly createdAt: import("effect/Schema").DateFromString;
464
- readonly updatedAt: import("effect/Schema").DateFromString;
465
- readonly accountId: import("effect/Schema").String;
466
- readonly userId: import("effect/Schema").String;
467
- readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
468
- }>>>, 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<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
469
- readonly accept: import("effect/Schema").Boolean;
470
- readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
471
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
472
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
473
- readonly redirect: import("effect/Schema").Boolean;
474
- readonly url: import("effect/Schema").String;
475
- }>>, 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<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
476
- readonly client_id: import("effect/Schema").String;
477
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
478
- readonly client_id: import("effect/Schema").String;
479
- readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
480
- readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
481
- readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
482
- readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
483
- readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
484
- readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
485
- readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
486
- }>>, 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<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
487
- readonly invitationId: import("effect/Schema").String;
488
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
489
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
490
- readonly id: import("effect/Schema").String;
491
- readonly email: import("effect/Schema").String;
492
- readonly role: import("effect/Schema").String;
493
- readonly organizationId: import("effect/Schema").String;
494
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
495
- readonly inviterId: import("effect/Schema").String;
496
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
497
- readonly status: import("effect/Schema").String;
498
- readonly expiresAt: import("effect/Schema").DateFromString;
499
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
500
- }>>;
501
- readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
502
- readonly id: import("effect/Schema").String;
503
- readonly organizationId: import("effect/Schema").String;
504
- readonly userId: import("effect/Schema").String;
505
- readonly role: import("effect/Schema").String;
506
- readonly createdAt: import("effect/Schema").DateFromString;
507
- }>>;
508
- }>>, 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<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
509
- readonly invitationId: import("effect/Schema").String;
510
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
511
- readonly id: import("effect/Schema").String;
512
- readonly email: import("effect/Schema").String;
513
- readonly role: import("effect/Schema").String;
514
- readonly organizationId: import("effect/Schema").String;
515
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
516
- readonly inviterId: import("effect/Schema").String;
517
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
518
- readonly status: import("effect/Schema").String;
519
- readonly expiresAt: import("effect/Schema").DateFromString;
520
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
521
- }>>, 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<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
522
- readonly name: import("effect/Schema").NonEmptyString;
523
- readonly slug: import("effect/Schema").NonEmptyString;
524
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
525
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
526
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
527
- readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
528
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
529
- readonly id: import("effect/Schema").String;
530
- readonly name: import("effect/Schema").String;
531
- readonly slug: import("effect/Schema").String;
532
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
533
- 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]>>>;
534
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
535
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
536
- readonly createdAt: import("effect/Schema").DateFromString;
537
- }>>, 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
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
539
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
540
- readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
541
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
542
- readonly id: import("effect/Schema").String;
543
- readonly name: import("effect/Schema").String;
544
- readonly slug: import("effect/Schema").String;
545
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
546
- 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]>>>;
547
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
548
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
549
- readonly createdAt: import("effect/Schema").DateFromString;
550
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
551
- readonly id: import("effect/Schema").String;
552
- readonly organizationId: import("effect/Schema").String;
553
- readonly userId: import("effect/Schema").String;
554
- readonly role: import("effect/Schema").String;
555
- readonly createdAt: import("effect/Schema").DateFromString;
556
- readonly user: import("effect/Schema").Struct<{
557
- readonly id: import("effect/Schema").String;
558
- readonly name: import("effect/Schema").String;
559
- readonly email: import("effect/Schema").String;
560
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
561
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
562
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
563
- readonly email: import("effect/Schema").NonEmptyString;
564
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
565
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
566
- readonly label: import("effect/Schema").NonEmptyString;
567
- }>>;
568
- }>>>;
569
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
570
- readonly number: import("effect/Schema").NonEmptyString;
571
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
572
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
573
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
574
- readonly label: import("effect/Schema").NonEmptyString;
575
- }>>;
576
- }>>>;
577
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
578
- readonly url: import("effect/Schema").NonEmptyString;
579
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
580
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
581
- readonly label: import("effect/Schema").NonEmptyString;
582
- }>>;
583
- }>>>;
584
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
585
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
586
- readonly url: import("effect/Schema").NonEmptyString;
587
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
588
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
589
- readonly label: import("effect/Schema").NonEmptyString;
590
- }>>;
591
- }>>>;
592
- }>, import("effect/Schema").Unknown, never, never>>>;
593
- }>;
594
- }>>;
595
- readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
596
- readonly id: import("effect/Schema").String;
597
- readonly email: import("effect/Schema").String;
598
- readonly role: import("effect/Schema").String;
599
- readonly organizationId: import("effect/Schema").String;
600
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
601
- readonly inviterId: import("effect/Schema").String;
602
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
603
- readonly status: import("effect/Schema").String;
604
- readonly expiresAt: import("effect/Schema").DateFromString;
605
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
606
- }>>;
607
- }>>>, 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<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
608
- readonly id: import("effect/Schema").String;
609
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
610
- readonly id: import("effect/Schema").String;
611
- readonly email: import("effect/Schema").String;
612
- readonly role: import("effect/Schema").String;
613
- readonly organizationId: import("effect/Schema").String;
614
- readonly inviterId: import("effect/Schema").String;
615
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
616
- readonly status: import("effect/Schema").String;
617
- readonly expiresAt: import("effect/Schema").DateFromString;
618
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
619
- readonly organizationName: import("effect/Schema").String;
620
- readonly organizationSlug: import("effect/Schema").String;
621
- readonly inviterEmail: import("effect/Schema").String;
622
- }>>, 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<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
623
- readonly organizationId: import("effect/Schema").NonEmptyString;
624
- readonly actorUserId: import("effect/Schema").NonEmptyString;
625
- readonly targetUserId: import("effect/Schema").NonEmptyString;
626
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
627
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
729
+ }>;
730
+ }>>, 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<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
628
731
  readonly session: import("effect/Schema").Struct<{
629
732
  readonly id: import("effect/Schema").String;
630
733
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -686,220 +789,104 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
686
789
  readonly createdAt: import("effect/Schema").DateFromString;
687
790
  readonly updatedAt: import("effect/Schema").DateFromString;
688
791
  }>;
689
- }>>, 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<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
690
- readonly email: import("effect/Schema").String;
691
- readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
692
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
693
- readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
694
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
792
+ }>>, 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<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
793
+ readonly userId: import("effect/Schema").String;
695
794
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
696
- readonly id: import("effect/Schema").String;
697
- readonly email: import("effect/Schema").String;
698
- readonly role: import("effect/Schema").String;
699
- readonly organizationId: import("effect/Schema").String;
700
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
701
- readonly inviterId: import("effect/Schema").String;
702
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
703
- readonly status: import("effect/Schema").String;
704
- readonly expiresAt: import("effect/Schema").DateFromString;
705
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
706
- }>>, 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<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
707
- readonly organizationId: import("effect/Schema").String;
795
+ readonly user: import("effect/Schema").Struct<{
796
+ readonly id: import("effect/Schema").String;
797
+ readonly name: import("effect/Schema").String;
798
+ readonly email: import("effect/Schema").String;
799
+ readonly emailVerified: import("effect/Schema").Boolean;
800
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
801
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
802
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
803
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
804
+ readonly email: import("effect/Schema").NonEmptyString;
805
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
806
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
807
+ readonly label: import("effect/Schema").NonEmptyString;
808
+ }>>;
809
+ }>>>;
810
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
811
+ readonly number: import("effect/Schema").NonEmptyString;
812
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
813
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
814
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
815
+ readonly label: import("effect/Schema").NonEmptyString;
816
+ }>>;
817
+ }>>>;
818
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
819
+ readonly url: import("effect/Schema").NonEmptyString;
820
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
821
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
822
+ readonly label: import("effect/Schema").NonEmptyString;
823
+ }>>;
824
+ }>>>;
825
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
826
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
827
+ readonly url: import("effect/Schema").NonEmptyString;
828
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
829
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
830
+ readonly label: import("effect/Schema").NonEmptyString;
831
+ }>>;
832
+ }>>>;
833
+ }>, import("effect/Schema").Unknown, never, never>>>;
834
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
835
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
836
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
837
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
838
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
839
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
840
+ readonly createdAt: import("effect/Schema").DateFromString;
841
+ readonly updatedAt: import("effect/Schema").DateFromString;
842
+ }>;
843
+ }>>, 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<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
844
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
845
+ readonly keyId: import("effect/Schema").String;
708
846
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
709
- readonly id: import("effect/Schema").String;
710
- readonly organizationId: import("effect/Schema").String;
711
- readonly userId: import("effect/Schema").String;
712
- readonly role: import("effect/Schema").String;
713
- readonly createdAt: import("effect/Schema").DateFromString;
714
- }>>, 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<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
715
- readonly id: import("effect/Schema").String;
716
- readonly name: import("effect/Schema").String;
717
- readonly slug: import("effect/Schema").String;
718
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
719
- 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]>>>;
720
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
721
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
722
- readonly createdAt: import("effect/Schema").DateFromString;
723
- }>>>, 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<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
847
+ readonly success: import("effect/Schema").Boolean;
848
+ }>>, 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<{
849
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
724
850
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
725
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
726
- readonly id: import("effect/Schema").String;
727
- readonly email: import("effect/Schema").String;
728
- readonly role: import("effect/Schema").String;
729
- readonly organizationId: import("effect/Schema").String;
730
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
731
- readonly inviterId: import("effect/Schema").String;
732
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
733
- readonly status: import("effect/Schema").String;
734
- readonly expiresAt: import("effect/Schema").DateFromString;
735
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
736
- }>>>, 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
851
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
738
852
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
739
853
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
740
854
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
741
- readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
742
- readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
743
- readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
744
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
745
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
746
855
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
747
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
856
+ readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
748
857
  readonly id: import("effect/Schema").String;
749
- readonly organizationId: import("effect/Schema").String;
750
- readonly userId: import("effect/Schema").String;
751
- readonly role: import("effect/Schema").String;
752
- readonly createdAt: import("effect/Schema").DateFromString;
753
- readonly user: import("effect/Schema").Struct<{
754
- readonly id: import("effect/Schema").String;
755
- readonly name: import("effect/Schema").String;
756
- readonly email: import("effect/Schema").String;
757
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
758
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
759
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
760
- readonly email: import("effect/Schema").NonEmptyString;
761
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
762
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
763
- readonly label: import("effect/Schema").NonEmptyString;
764
- }>>;
765
- }>>>;
766
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
767
- readonly number: import("effect/Schema").NonEmptyString;
768
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
769
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
770
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
771
- readonly label: import("effect/Schema").NonEmptyString;
772
- }>>;
773
- }>>>;
774
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
775
- readonly url: import("effect/Schema").NonEmptyString;
776
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
777
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
778
- readonly label: import("effect/Schema").NonEmptyString;
779
- }>>;
780
- }>>>;
781
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
782
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
783
- readonly url: import("effect/Schema").NonEmptyString;
784
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
785
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
786
- readonly label: import("effect/Schema").NonEmptyString;
787
- }>>;
788
- }>>>;
789
- }>, import("effect/Schema").Unknown, never, never>>>;
790
- }>;
791
- }>>;
792
- readonly total: import("effect/Schema").Number;
793
- }>>, 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
- readonly id: import("effect/Schema").String;
795
- readonly email: import("effect/Schema").String;
796
- readonly role: import("effect/Schema").String;
797
- readonly organizationId: import("effect/Schema").String;
798
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
799
- readonly inviterId: import("effect/Schema").String;
800
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
801
- readonly status: import("effect/Schema").String;
802
- readonly expiresAt: import("effect/Schema").DateFromString;
803
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
804
- }>>>, 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<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
805
- readonly invitationId: import("effect/Schema").String;
806
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
807
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
808
- readonly id: import("effect/Schema").String;
809
- readonly email: import("effect/Schema").String;
810
- readonly role: import("effect/Schema").String;
811
- readonly organizationId: import("effect/Schema").String;
812
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
813
- readonly inviterId: import("effect/Schema").String;
814
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
815
- readonly status: import("effect/Schema").String;
816
- readonly expiresAt: import("effect/Schema").DateFromString;
817
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
818
- }>>;
819
- readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
820
- readonly id: import("effect/Schema").String;
821
- readonly organizationId: import("effect/Schema").String;
822
- readonly userId: import("effect/Schema").String;
823
- readonly role: import("effect/Schema").String;
858
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
859
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
860
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
861
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
862
+ readonly referenceId: import("effect/Schema").String;
863
+ readonly configId: import("effect/Schema").String;
864
+ readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
865
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
866
+ readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
867
+ readonly enabled: import("effect/Schema").Boolean;
868
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
869
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
870
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
871
+ readonly requestCount: import("effect/Schema").Number;
872
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
873
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
874
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
824
875
  readonly createdAt: import("effect/Schema").DateFromString;
876
+ readonly updatedAt: import("effect/Schema").DateFromString;
877
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
878
+ 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>>>>;
879
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
825
880
  }>>;
826
- }>>, 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<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
827
- readonly memberIdOrEmail: import("effect/Schema").String;
828
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
829
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
830
- readonly member: import("effect/Schema").Struct<{
831
- readonly id: import("effect/Schema").String;
832
- readonly organizationId: import("effect/Schema").String;
833
- readonly userId: import("effect/Schema").String;
834
- readonly role: import("effect/Schema").String;
835
- readonly createdAt: import("effect/Schema").DateFromString;
836
- }>;
837
- }>>, 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<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
838
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
839
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
840
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
841
- readonly id: import("effect/Schema").String;
842
- readonly name: import("effect/Schema").String;
843
- readonly slug: import("effect/Schema").String;
844
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
845
- 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]>>>;
846
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
847
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
848
- readonly createdAt: import("effect/Schema").DateFromString;
849
- }>>>, 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<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
850
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
851
- readonly data: import("effect/Schema").Struct<{
852
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
853
- readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
854
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
855
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
856
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
857
- }>;
858
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
859
- readonly id: import("effect/Schema").String;
860
- readonly name: import("effect/Schema").String;
861
- readonly slug: import("effect/Schema").String;
862
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
863
- 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]>>>;
864
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
865
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
866
- readonly createdAt: import("effect/Schema").DateFromString;
867
- }>>, 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<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
868
- readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
869
- readonly memberId: import("effect/Schema").String;
870
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
871
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
872
- readonly id: import("effect/Schema").String;
873
- readonly organizationId: import("effect/Schema").String;
874
- readonly userId: import("effect/Schema").String;
875
- readonly role: import("effect/Schema").String;
876
- readonly createdAt: import("effect/Schema").DateFromString;
877
- }>>, 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<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
878
- readonly email: import("effect/Schema").String;
879
- readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
880
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
881
- readonly status: import("effect/Schema").Boolean;
882
- readonly message: import("effect/Schema").String;
883
- }>>, 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<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
881
+ readonly total: import("effect/Schema").Number;
882
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
883
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
884
+ }>>, 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<{
884
885
  readonly newPassword: import("effect/Schema").String;
885
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
886
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
887
- readonly status: import("effect/Schema").Boolean;
888
- }>>, 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<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
889
- readonly email: import("effect/Schema").String;
890
- readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
886
+ readonly currentPassword: import("effect/Schema").String;
887
+ readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
891
888
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
892
- readonly success: import("effect/Schema").Boolean;
893
- }>>, 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<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
894
- readonly email: import("effect/Schema").String;
895
- readonly password: import("effect/Schema").String;
896
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
897
- readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
898
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
899
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
900
- readonly redirect: import("effect/Schema").Boolean;
901
- readonly token: import("effect/Schema").String;
902
- readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
889
+ readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
903
890
  readonly user: import("effect/Schema").Struct<{
904
891
  readonly id: import("effect/Schema").String;
905
892
  readonly name: import("effect/Schema").String;
@@ -948,17 +935,30 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
948
935
  readonly createdAt: import("effect/Schema").DateFromString;
949
936
  readonly updatedAt: import("effect/Schema").DateFromString;
950
937
  }>;
951
- }>, import("effect/Schema").Struct<{
952
- readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
953
- readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
954
- readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
955
- }>]>>, 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<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
956
- readonly email: import("effect/Schema").String;
957
- readonly otp: import("effect/Schema").String;
958
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
959
- readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
960
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
938
+ }>>, 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<{
939
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
961
940
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
941
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
942
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
943
+ readonly success: import("effect/Schema").Boolean;
944
+ readonly message: import("effect/Schema").String;
945
+ }>>, 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<{
946
+ readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
947
+ readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
948
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
949
+ readonly session: import("effect/Schema").Struct<{
950
+ readonly id: import("effect/Schema").String;
951
+ readonly expiresAt: import("effect/Schema").DateFromString;
952
+ readonly token: import("effect/Schema").String;
953
+ readonly createdAt: import("effect/Schema").DateFromString;
954
+ readonly updatedAt: import("effect/Schema").DateFromString;
955
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
956
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
957
+ readonly userId: import("effect/Schema").String;
958
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
959
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
960
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
961
+ }>;
962
962
  readonly user: import("effect/Schema").Struct<{
963
963
  readonly id: import("effect/Schema").String;
964
964
  readonly name: import("effect/Schema").String;
@@ -1007,31 +1007,21 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1007
1007
  readonly createdAt: import("effect/Schema").DateFromString;
1008
1008
  readonly updatedAt: import("effect/Schema").DateFromString;
1009
1009
  }>;
1010
- }>>, 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<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1010
+ }>>>, 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<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1011
1011
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1012
- readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1013
- readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1014
1012
  readonly provider: import("effect/Schema").String;
1015
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1016
1013
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1017
1014
  readonly token: import("effect/Schema").String;
1018
1015
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1019
1016
  readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1020
1017
  readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1021
- readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
1022
- readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1023
- readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1024
- readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
1025
- readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
1026
- }>>;
1027
- readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1028
- }>>;
1018
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1029
1019
  }>>;
1030
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1031
1020
  readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1032
- readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1021
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1022
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1023
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1033
1024
  readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1034
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1035
1025
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1036
1026
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1037
1027
  readonly redirect: import("effect/Schema").Boolean;
@@ -1085,83 +1075,198 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1085
1075
  readonly updatedAt: import("effect/Schema").DateFromString;
1086
1076
  }>>;
1087
1077
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1088
- }>>, 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<"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<{
1089
- readonly success: import("effect/Schema").Boolean;
1090
- }>>, 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<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1091
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1092
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1093
- readonly status: import("effect/Schema").Boolean;
1094
- }>>, 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<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1095
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1096
- readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1097
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1098
- readonly totpURI: import("effect/Schema").String;
1099
- readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1100
- }>>, 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<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1101
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1102
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1103
- readonly status: import("effect/Schema").Boolean;
1104
- }>>, 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<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1105
- readonly code: import("effect/Schema").String;
1106
- readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1107
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1078
+ }>>, 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<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1079
+ readonly id: import("effect/Schema").String;
1080
+ readonly providerId: import("effect/Schema").String;
1081
+ readonly createdAt: import("effect/Schema").DateFromString;
1082
+ readonly updatedAt: import("effect/Schema").DateFromString;
1083
+ readonly accountId: import("effect/Schema").String;
1084
+ readonly userId: import("effect/Schema").String;
1085
+ readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
1086
+ }>>>, 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<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1087
+ readonly accept: import("effect/Schema").Boolean;
1088
+ readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
1108
1089
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1109
1090
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1110
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1111
- readonly user: import("effect/Schema").Struct<{
1091
+ readonly redirect: import("effect/Schema").Boolean;
1092
+ readonly url: import("effect/Schema").String;
1093
+ }>>, 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<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1094
+ readonly client_id: import("effect/Schema").String;
1095
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1096
+ readonly client_id: import("effect/Schema").String;
1097
+ readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
1098
+ readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1099
+ readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1100
+ readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1101
+ readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1102
+ readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1103
+ readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
1104
+ }>>, 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<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1105
+ readonly invitationId: import("effect/Schema").String;
1106
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1107
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1112
1108
  readonly id: import("effect/Schema").String;
1113
- readonly name: import("effect/Schema").String;
1114
1109
  readonly email: import("effect/Schema").String;
1115
- readonly emailVerified: import("effect/Schema").Boolean;
1116
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1117
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1118
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1119
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1120
- readonly email: import("effect/Schema").NonEmptyString;
1121
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1122
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1123
- readonly label: import("effect/Schema").NonEmptyString;
1124
- }>>;
1125
- }>>>;
1126
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1127
- readonly number: import("effect/Schema").NonEmptyString;
1128
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1129
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1130
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1131
- readonly label: import("effect/Schema").NonEmptyString;
1132
- }>>;
1133
- }>>>;
1134
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1135
- readonly url: import("effect/Schema").NonEmptyString;
1136
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1137
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1138
- readonly label: import("effect/Schema").NonEmptyString;
1139
- }>>;
1140
- }>>>;
1141
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1142
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1143
- readonly url: import("effect/Schema").NonEmptyString;
1144
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1145
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1146
- readonly label: import("effect/Schema").NonEmptyString;
1147
- }>>;
1148
- }>>>;
1149
- }>, import("effect/Schema").Unknown, never, never>>>;
1150
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1151
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1152
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1153
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1154
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1155
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1110
+ readonly role: import("effect/Schema").String;
1111
+ readonly organizationId: import("effect/Schema").String;
1112
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1113
+ readonly inviterId: import("effect/Schema").String;
1114
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1115
+ readonly status: import("effect/Schema").String;
1116
+ readonly expiresAt: import("effect/Schema").DateFromString;
1117
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1118
+ }>>;
1119
+ readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1120
+ readonly id: import("effect/Schema").String;
1121
+ readonly organizationId: import("effect/Schema").String;
1122
+ readonly userId: import("effect/Schema").String;
1123
+ readonly role: import("effect/Schema").String;
1124
+ readonly createdAt: import("effect/Schema").DateFromString;
1125
+ }>>;
1126
+ }>>, 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<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1127
+ readonly invitationId: import("effect/Schema").String;
1128
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1129
+ readonly id: import("effect/Schema").String;
1130
+ readonly email: import("effect/Schema").String;
1131
+ readonly role: import("effect/Schema").String;
1132
+ readonly organizationId: import("effect/Schema").String;
1133
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1134
+ readonly inviterId: import("effect/Schema").String;
1135
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1136
+ readonly status: import("effect/Schema").String;
1137
+ readonly expiresAt: import("effect/Schema").DateFromString;
1138
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1139
+ }>>, 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<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1140
+ readonly name: import("effect/Schema").NonEmptyString;
1141
+ readonly slug: import("effect/Schema").NonEmptyString;
1142
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1143
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1144
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1145
+ readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1146
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1147
+ readonly id: import("effect/Schema").String;
1148
+ readonly name: import("effect/Schema").String;
1149
+ readonly slug: import("effect/Schema").String;
1150
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1151
+ 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]>>>;
1152
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1153
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1154
+ readonly createdAt: import("effect/Schema").DateFromString;
1155
+ }>>, 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<{
1156
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1157
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1158
+ readonly id: import("effect/Schema").String;
1159
+ readonly name: import("effect/Schema").String;
1160
+ readonly slug: import("effect/Schema").String;
1161
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1162
+ 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]>>>;
1163
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1164
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1165
+ readonly createdAt: import("effect/Schema").DateFromString;
1166
+ }>>, 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<{
1167
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1168
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1169
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1170
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1171
+ readonly id: import("effect/Schema").String;
1172
+ readonly name: import("effect/Schema").String;
1173
+ readonly slug: import("effect/Schema").String;
1174
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1175
+ 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]>>>;
1176
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1177
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1178
+ readonly createdAt: import("effect/Schema").DateFromString;
1179
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1180
+ readonly id: import("effect/Schema").String;
1181
+ readonly organizationId: import("effect/Schema").String;
1182
+ readonly userId: import("effect/Schema").String;
1183
+ readonly role: import("effect/Schema").String;
1184
+ readonly createdAt: import("effect/Schema").DateFromString;
1185
+ readonly user: import("effect/Schema").Struct<{
1186
+ readonly id: import("effect/Schema").String;
1187
+ readonly name: import("effect/Schema").String;
1188
+ readonly email: import("effect/Schema").String;
1189
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1190
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1191
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1192
+ readonly email: import("effect/Schema").NonEmptyString;
1193
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1194
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1195
+ readonly label: import("effect/Schema").NonEmptyString;
1196
+ }>>;
1197
+ }>>>;
1198
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1199
+ readonly number: import("effect/Schema").NonEmptyString;
1200
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1201
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1202
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1203
+ readonly label: import("effect/Schema").NonEmptyString;
1204
+ }>>;
1205
+ }>>>;
1206
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1207
+ readonly url: import("effect/Schema").NonEmptyString;
1208
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1209
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1210
+ readonly label: import("effect/Schema").NonEmptyString;
1211
+ }>>;
1212
+ }>>>;
1213
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1214
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1215
+ readonly url: import("effect/Schema").NonEmptyString;
1216
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1217
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1218
+ readonly label: import("effect/Schema").NonEmptyString;
1219
+ }>>;
1220
+ }>>>;
1221
+ }>, import("effect/Schema").Unknown, never, never>>>;
1222
+ }>;
1223
+ }>>;
1224
+ readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1225
+ readonly id: import("effect/Schema").String;
1226
+ readonly email: import("effect/Schema").String;
1227
+ readonly role: import("effect/Schema").String;
1228
+ readonly organizationId: import("effect/Schema").String;
1229
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1230
+ readonly inviterId: import("effect/Schema").String;
1231
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1232
+ readonly status: import("effect/Schema").String;
1233
+ readonly expiresAt: import("effect/Schema").DateFromString;
1234
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1235
+ }>>;
1236
+ }>>>, 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<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1237
+ readonly id: import("effect/Schema").String;
1238
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1239
+ readonly id: import("effect/Schema").String;
1240
+ readonly email: import("effect/Schema").String;
1241
+ readonly role: import("effect/Schema").String;
1242
+ readonly organizationId: import("effect/Schema").String;
1243
+ readonly inviterId: import("effect/Schema").String;
1244
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1245
+ readonly status: import("effect/Schema").String;
1246
+ readonly expiresAt: import("effect/Schema").DateFromString;
1247
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1248
+ readonly organizationName: import("effect/Schema").String;
1249
+ readonly organizationSlug: import("effect/Schema").String;
1250
+ readonly inviterEmail: import("effect/Schema").String;
1251
+ }>>, 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<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1252
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1253
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
1254
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
1255
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
1256
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1257
+ readonly session: import("effect/Schema").Struct<{
1258
+ readonly id: import("effect/Schema").String;
1259
+ readonly expiresAt: import("effect/Schema").DateFromString;
1260
+ readonly token: import("effect/Schema").String;
1156
1261
  readonly createdAt: import("effect/Schema").DateFromString;
1157
1262
  readonly updatedAt: import("effect/Schema").DateFromString;
1263
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1264
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1265
+ readonly userId: import("effect/Schema").String;
1266
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1267
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1268
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1158
1269
  }>;
1159
- }>>, 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<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1160
- readonly code: import("effect/Schema").String;
1161
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1162
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1163
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1164
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1165
1270
  readonly user: import("effect/Schema").Struct<{
1166
1271
  readonly id: import("effect/Schema").String;
1167
1272
  readonly name: import("effect/Schema").String;
@@ -1210,109 +1315,220 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1210
1315
  readonly createdAt: import("effect/Schema").DateFromString;
1211
1316
  readonly updatedAt: import("effect/Schema").DateFromString;
1212
1317
  }>;
1213
- }>>, 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<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1214
- readonly code: import("effect/Schema").String;
1215
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1216
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1318
+ }>>, 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<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1319
+ readonly email: import("effect/Schema").String;
1320
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1321
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1322
+ readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1323
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
1217
1324
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1218
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1219
- readonly user: import("effect/Schema").Struct<{
1220
- readonly id: import("effect/Schema").String;
1221
- readonly name: import("effect/Schema").String;
1222
- readonly email: import("effect/Schema").String;
1223
- readonly emailVerified: import("effect/Schema").Boolean;
1224
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1225
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1226
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1227
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1228
- readonly email: import("effect/Schema").NonEmptyString;
1229
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1230
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1231
- readonly label: import("effect/Schema").NonEmptyString;
1232
- }>>;
1233
- }>>>;
1234
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1235
- readonly number: import("effect/Schema").NonEmptyString;
1236
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1237
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1238
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1239
- readonly label: import("effect/Schema").NonEmptyString;
1240
- }>>;
1241
- }>>>;
1242
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1243
- readonly url: import("effect/Schema").NonEmptyString;
1244
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1245
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1246
- readonly label: import("effect/Schema").NonEmptyString;
1247
- }>>;
1248
- }>>>;
1249
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1250
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1251
- readonly url: import("effect/Schema").NonEmptyString;
1252
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1253
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1254
- readonly label: import("effect/Schema").NonEmptyString;
1255
- }>>;
1256
- }>>>;
1257
- }>, import("effect/Schema").Unknown, never, never>>>;
1258
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1259
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1260
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1261
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1262
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1263
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1325
+ readonly id: import("effect/Schema").String;
1326
+ readonly email: import("effect/Schema").String;
1327
+ readonly role: import("effect/Schema").String;
1328
+ readonly organizationId: import("effect/Schema").String;
1329
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1330
+ readonly inviterId: import("effect/Schema").String;
1331
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1332
+ readonly status: import("effect/Schema").String;
1333
+ readonly expiresAt: import("effect/Schema").DateFromString;
1334
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1335
+ }>>, 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<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1336
+ readonly organizationId: import("effect/Schema").String;
1337
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1338
+ readonly id: import("effect/Schema").String;
1339
+ readonly organizationId: import("effect/Schema").String;
1340
+ readonly userId: import("effect/Schema").String;
1341
+ readonly role: import("effect/Schema").String;
1342
+ readonly createdAt: import("effect/Schema").DateFromString;
1343
+ }>>, 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<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1344
+ readonly id: import("effect/Schema").String;
1345
+ readonly name: import("effect/Schema").String;
1346
+ readonly slug: import("effect/Schema").String;
1347
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1348
+ 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]>>>;
1349
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1350
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1351
+ readonly createdAt: import("effect/Schema").DateFromString;
1352
+ }>>>, 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<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1353
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1354
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1355
+ readonly id: import("effect/Schema").String;
1356
+ readonly email: import("effect/Schema").String;
1357
+ readonly role: import("effect/Schema").String;
1358
+ readonly organizationId: import("effect/Schema").String;
1359
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1360
+ readonly inviterId: import("effect/Schema").String;
1361
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1362
+ readonly status: import("effect/Schema").String;
1363
+ readonly expiresAt: import("effect/Schema").DateFromString;
1364
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1365
+ }>>>, 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<{
1366
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1367
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1368
+ readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
1369
+ readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
1370
+ readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
1371
+ readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
1372
+ readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
1373
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1374
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1375
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1376
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1377
+ readonly id: import("effect/Schema").String;
1378
+ readonly organizationId: import("effect/Schema").String;
1379
+ readonly userId: import("effect/Schema").String;
1380
+ readonly role: import("effect/Schema").String;
1381
+ readonly createdAt: import("effect/Schema").DateFromString;
1382
+ readonly user: import("effect/Schema").Struct<{
1383
+ readonly id: import("effect/Schema").String;
1384
+ readonly name: import("effect/Schema").String;
1385
+ readonly email: import("effect/Schema").String;
1386
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1387
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1388
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1389
+ readonly email: import("effect/Schema").NonEmptyString;
1390
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1391
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1392
+ readonly label: import("effect/Schema").NonEmptyString;
1393
+ }>>;
1394
+ }>>>;
1395
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1396
+ readonly number: import("effect/Schema").NonEmptyString;
1397
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1398
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1399
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1400
+ readonly label: import("effect/Schema").NonEmptyString;
1401
+ }>>;
1402
+ }>>>;
1403
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1404
+ readonly url: import("effect/Schema").NonEmptyString;
1405
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1406
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1407
+ readonly label: import("effect/Schema").NonEmptyString;
1408
+ }>>;
1409
+ }>>>;
1410
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1411
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1412
+ readonly url: import("effect/Schema").NonEmptyString;
1413
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1414
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1415
+ readonly label: import("effect/Schema").NonEmptyString;
1416
+ }>>;
1417
+ }>>>;
1418
+ }>, import("effect/Schema").Unknown, never, never>>>;
1419
+ }>;
1420
+ }>>;
1421
+ readonly total: import("effect/Schema").Number;
1422
+ }>>, 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<{
1423
+ readonly id: import("effect/Schema").String;
1424
+ readonly email: import("effect/Schema").String;
1425
+ readonly role: import("effect/Schema").String;
1426
+ readonly organizationId: import("effect/Schema").String;
1427
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1428
+ readonly inviterId: import("effect/Schema").String;
1429
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1430
+ readonly status: import("effect/Schema").String;
1431
+ readonly expiresAt: import("effect/Schema").DateFromString;
1432
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1433
+ }>>>, 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<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1434
+ readonly invitationId: import("effect/Schema").String;
1435
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1436
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1437
+ readonly id: import("effect/Schema").String;
1438
+ readonly email: import("effect/Schema").String;
1439
+ readonly role: import("effect/Schema").String;
1440
+ readonly organizationId: import("effect/Schema").String;
1441
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1442
+ readonly inviterId: import("effect/Schema").String;
1443
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1444
+ readonly status: import("effect/Schema").String;
1445
+ readonly expiresAt: import("effect/Schema").DateFromString;
1446
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1447
+ }>>;
1448
+ readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1449
+ readonly id: import("effect/Schema").String;
1450
+ readonly organizationId: import("effect/Schema").String;
1451
+ readonly userId: import("effect/Schema").String;
1452
+ readonly role: import("effect/Schema").String;
1453
+ readonly createdAt: import("effect/Schema").DateFromString;
1454
+ }>>;
1455
+ }>>, 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<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1456
+ readonly memberIdOrEmail: import("effect/Schema").String;
1457
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1458
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1459
+ readonly member: import("effect/Schema").Struct<{
1460
+ readonly id: import("effect/Schema").String;
1461
+ readonly organizationId: import("effect/Schema").String;
1462
+ readonly userId: import("effect/Schema").String;
1463
+ readonly role: import("effect/Schema").String;
1264
1464
  readonly createdAt: import("effect/Schema").DateFromString;
1265
- readonly updatedAt: import("effect/Schema").DateFromString;
1266
1465
  }>;
1267
- }>>, 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<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1268
- readonly providerId: import("effect/Schema").String;
1269
- readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1466
+ }>>, 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<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1467
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1468
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1469
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1470
+ readonly id: import("effect/Schema").String;
1471
+ readonly name: import("effect/Schema").String;
1472
+ readonly slug: import("effect/Schema").String;
1473
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1474
+ 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]>>>;
1475
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1476
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1477
+ readonly createdAt: import("effect/Schema").DateFromString;
1478
+ }>>>, 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<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1479
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1480
+ readonly data: import("effect/Schema").Struct<{
1481
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1482
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1483
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1484
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1485
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1486
+ }>;
1487
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1488
+ readonly id: import("effect/Schema").String;
1489
+ readonly name: import("effect/Schema").String;
1490
+ readonly slug: import("effect/Schema").String;
1491
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1492
+ 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]>>>;
1493
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1494
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1495
+ readonly createdAt: import("effect/Schema").DateFromString;
1496
+ }>>, 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<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1497
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1498
+ readonly memberId: import("effect/Schema").String;
1499
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1500
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1501
+ readonly id: import("effect/Schema").String;
1502
+ readonly organizationId: import("effect/Schema").String;
1503
+ readonly userId: import("effect/Schema").String;
1504
+ readonly role: import("effect/Schema").String;
1505
+ readonly createdAt: import("effect/Schema").DateFromString;
1506
+ }>>, 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<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1507
+ readonly email: import("effect/Schema").String;
1508
+ readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
1270
1509
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1271
1510
  readonly status: import("effect/Schema").Boolean;
1272
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1273
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1274
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1275
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1276
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1277
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1278
- readonly email: import("effect/Schema").NonEmptyString;
1279
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1280
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1281
- readonly label: import("effect/Schema").NonEmptyString;
1282
- }>>;
1283
- }>>>;
1284
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1285
- readonly number: import("effect/Schema").NonEmptyString;
1286
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1287
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1288
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1289
- readonly label: import("effect/Schema").NonEmptyString;
1290
- }>>;
1291
- }>>>;
1292
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1293
- readonly url: import("effect/Schema").NonEmptyString;
1294
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1295
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1296
- readonly label: import("effect/Schema").NonEmptyString;
1297
- }>>;
1298
- }>>>;
1299
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1300
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1301
- readonly url: import("effect/Schema").NonEmptyString;
1302
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1303
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1304
- readonly label: import("effect/Schema").NonEmptyString;
1305
- }>>;
1306
- }>>>;
1307
- }>>>;
1511
+ readonly message: import("effect/Schema").String;
1512
+ }>>, 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<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1513
+ readonly newPassword: import("effect/Schema").String;
1514
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1308
1515
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1309
1516
  readonly status: import("effect/Schema").Boolean;
1310
- }>>, 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<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1517
+ }>>, 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<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1311
1518
  readonly email: import("effect/Schema").String;
1312
- readonly otp: import("effect/Schema").String;
1519
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1313
1520
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1314
- readonly status: import("effect/Schema").Literal<true>;
1315
- readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1521
+ readonly success: import("effect/Schema").Boolean;
1522
+ }>>, 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<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1523
+ readonly email: import("effect/Schema").String;
1524
+ readonly password: import("effect/Schema").String;
1525
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1526
+ readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1527
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1528
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1529
+ readonly redirect: import("effect/Schema").Boolean;
1530
+ readonly token: import("effect/Schema").String;
1531
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1316
1532
  readonly user: import("effect/Schema").Struct<{
1317
1533
  readonly id: import("effect/Schema").String;
1318
1534
  readonly name: import("effect/Schema").String;
@@ -1340,245 +1556,38 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1340
1556
  readonly url: import("effect/Schema").NonEmptyString;
1341
1557
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1342
1558
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1343
- readonly label: import("effect/Schema").NonEmptyString;
1344
- }>>;
1345
- }>>>;
1346
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1347
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1348
- readonly url: import("effect/Schema").NonEmptyString;
1349
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1350
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1351
- readonly label: import("effect/Schema").NonEmptyString;
1352
- }>>;
1353
- }>>>;
1354
- }>, import("effect/Schema").Unknown, never, never>>>;
1355
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1356
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1357
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1358
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1359
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1360
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1361
- readonly createdAt: import("effect/Schema").DateFromString;
1362
- readonly updatedAt: import("effect/Schema").DateFromString;
1363
- }>;
1364
- }>>, 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>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1365
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1366
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1367
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1368
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1369
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1370
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1371
- readonly id: import("effect/Schema").String;
1372
- 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<{
1374
- readonly organizationId: import("effect/Schema").String;
1375
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
1376
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1377
- readonly id: import("effect/Schema").String;
1378
- readonly name: import("effect/Schema").String;
1379
- readonly slug: import("effect/Schema").String;
1380
- readonly displayName: import("effect/Schema").String;
1381
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1382
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1383
- readonly email: import("effect/Schema").NonEmptyString;
1384
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1385
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1386
- readonly label: import("effect/Schema").NonEmptyString;
1387
- }>>;
1388
- }>>>;
1389
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1390
- readonly number: import("effect/Schema").NonEmptyString;
1391
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1392
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1393
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1394
- readonly label: import("effect/Schema").NonEmptyString;
1395
- }>>;
1396
- }>>>;
1397
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1398
- readonly url: import("effect/Schema").NonEmptyString;
1399
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1400
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1401
- readonly label: import("effect/Schema").NonEmptyString;
1402
- }>>;
1403
- }>>>;
1404
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1405
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1406
- readonly url: import("effect/Schema").NonEmptyString;
1407
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1408
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1409
- readonly label: import("effect/Schema").NonEmptyString;
1410
- }>>;
1411
- }>>>;
1412
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1413
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1414
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1415
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1416
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1417
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1418
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1419
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1420
- readonly label: import("effect/Schema").NonEmptyString;
1421
- }>>;
1422
- readonly formatted: import("effect/Schema").String;
1423
- }>>>;
1424
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1425
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
1426
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1427
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1428
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
1429
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
1430
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1431
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1432
- readonly projectKey: import("effect/Schema").String;
1433
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1434
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
1435
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1436
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1437
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
1438
- readonly authOptions: import("effect/Schema").Struct<{
1439
- readonly emailPassword: import("effect/Schema").Boolean;
1440
- readonly emailOtp: import("effect/Schema").Boolean;
1441
- readonly google: import("effect/Schema").Boolean;
1442
- }>;
1443
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1444
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1445
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1446
- readonly id: import("effect/Schema").String;
1447
- readonly name: import("effect/Schema").String;
1448
- }>>>, 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<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1449
- readonly newPassword: import("effect/Schema").NonEmptyString;
1450
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1451
- readonly ok: import("effect/Schema").Boolean;
1452
- }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1453
- keyId: import("effect/Schema").NonEmptyString;
1454
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1455
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1456
- readonly name: import("effect/Schema").NonEmptyString;
1457
- readonly enabled: import("effect/Schema").Boolean;
1458
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1459
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1460
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1461
- readonly ok: import("effect/Schema").Boolean;
1462
- }>>, 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<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
1463
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
1464
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1465
- readonly url: import("effect/Schema").String;
1466
- }>>, 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<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1467
- readonly key: import("effect/Schema").NonEmptyString;
1468
- readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
1469
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1470
- readonly valid: import("effect/Schema").Boolean;
1471
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1472
- readonly message: import("effect/Schema").String;
1473
- readonly code: import("effect/Schema").String;
1474
- }>>;
1475
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1476
- readonly id: import("effect/Schema").String;
1477
- readonly configId: import("effect/Schema").String;
1478
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1479
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1480
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1481
- readonly referenceId: import("effect/Schema").String;
1482
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1483
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1484
- readonly createdAt: import("effect/Schema").Date;
1485
- readonly updatedAt: import("effect/Schema").Date;
1486
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1487
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1488
- }>>;
1489
- }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1490
- readonly password: import("effect/Schema").NonEmptyString;
1491
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1492
- readonly ok: import("effect/Schema").Boolean;
1493
- }>>, 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>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1494
- readonly hostname: import("effect/Schema").NonEmptyString;
1495
- readonly rootHostname: import("effect/Schema").NonEmptyString;
1496
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1497
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1498
- readonly managed: import("effect/Schema").Boolean;
1499
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1500
- readonly id: import("effect/Schema").String;
1501
- readonly hostname: import("effect/Schema").String;
1502
- readonly rootHostname: import("effect/Schema").String;
1503
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1504
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1505
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1506
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1507
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1508
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1509
- readonly hostnameId: import("effect/Schema").String;
1510
- readonly managed: import("effect/Schema").Boolean;
1511
- readonly active: import("effect/Schema").Boolean;
1512
- readonly createdAt: import("effect/Schema").Date;
1513
- readonly updatedAt: import("effect/Schema").Date;
1514
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1515
- readonly id: import("effect/Schema").NonEmptyString;
1516
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1517
- readonly id: import("effect/Schema").String;
1518
- readonly hostname: import("effect/Schema").String;
1519
- readonly rootHostname: import("effect/Schema").String;
1520
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1521
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1522
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1523
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1524
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1525
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1526
- readonly hostnameId: import("effect/Schema").String;
1527
- readonly managed: import("effect/Schema").Boolean;
1528
- readonly active: import("effect/Schema").Boolean;
1529
- readonly createdAt: import("effect/Schema").Date;
1530
- readonly updatedAt: import("effect/Schema").Date;
1531
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1532
- readonly id: import("effect/Schema").NonEmptyString;
1533
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1534
- readonly id: import("effect/Schema").String;
1535
- readonly hostname: import("effect/Schema").String;
1536
- readonly rootHostname: import("effect/Schema").String;
1537
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1538
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1539
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1540
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1541
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1542
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1543
- readonly hostnameId: import("effect/Schema").String;
1544
- readonly managed: import("effect/Schema").Boolean;
1545
- readonly active: import("effect/Schema").Boolean;
1546
- readonly createdAt: import("effect/Schema").Date;
1547
- readonly updatedAt: import("effect/Schema").Date;
1548
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1549
- readonly hostname: import("effect/Schema").NonEmptyString;
1550
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1551
- readonly id: import("effect/Schema").String;
1552
- readonly hostname: import("effect/Schema").String;
1553
- readonly rootHostname: import("effect/Schema").String;
1554
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1555
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1556
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1557
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1558
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1559
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1560
- readonly hostnameId: import("effect/Schema").String;
1561
- readonly managed: import("effect/Schema").Boolean;
1562
- readonly active: import("effect/Schema").Boolean;
1563
- readonly createdAt: import("effect/Schema").Date;
1564
- readonly updatedAt: import("effect/Schema").Date;
1565
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1566
- readonly id: import("effect/Schema").NonEmptyString;
1567
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1568
- readonly required: import("effect/Schema").Boolean;
1569
- readonly status: import("effect/Schema").String;
1570
- readonly type: import("effect/Schema").String;
1571
- readonly name: import("effect/Schema").String;
1572
- readonly value: import("effect/Schema").String;
1573
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1574
- readonly organizationId: import("effect/Schema").NonEmptyString;
1575
- readonly userId: import("effect/Schema").NonEmptyString;
1576
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1577
- readonly id: import("effect/Schema").String;
1578
- readonly organizationId: import("effect/Schema").String;
1579
- readonly userId: import("effect/Schema").String;
1580
- readonly role: import("effect/Schema").String;
1581
- readonly createdAt: import("effect/Schema").Date;
1559
+ readonly label: import("effect/Schema").NonEmptyString;
1560
+ }>>;
1561
+ }>>>;
1562
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1563
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1564
+ readonly url: import("effect/Schema").NonEmptyString;
1565
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1566
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1567
+ readonly label: import("effect/Schema").NonEmptyString;
1568
+ }>>;
1569
+ }>>>;
1570
+ }>, import("effect/Schema").Unknown, never, never>>>;
1571
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1572
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1573
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1574
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1575
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1576
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1577
+ readonly createdAt: import("effect/Schema").DateFromString;
1578
+ readonly updatedAt: import("effect/Schema").DateFromString;
1579
+ }>;
1580
+ }>, import("effect/Schema").Struct<{
1581
+ readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
1582
+ readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
1583
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1584
+ }>]>>, 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<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1585
+ readonly email: import("effect/Schema").String;
1586
+ readonly otp: import("effect/Schema").String;
1587
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1588
+ readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
1589
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1590
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1582
1591
  readonly user: import("effect/Schema").Struct<{
1583
1592
  readonly id: import("effect/Schema").String;
1584
1593
  readonly name: import("effect/Schema").String;
@@ -1620,138 +1629,114 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1620
1629
  }>, import("effect/Schema").Unknown, never, never>>>;
1621
1630
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1622
1631
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1632
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1633
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1634
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1623
1635
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1624
- readonly createdAt: import("effect/Schema").Date;
1625
- readonly updatedAt: import("effect/Schema").Date;
1636
+ readonly createdAt: import("effect/Schema").DateFromString;
1637
+ readonly updatedAt: import("effect/Schema").DateFromString;
1626
1638
  }>;
1627
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1628
- readonly id: import("effect/Schema").NonEmptyString;
1629
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1630
- readonly id: import("effect/Schema").String;
1631
- readonly name: import("effect/Schema").String;
1632
- readonly slug: import("effect/Schema").String;
1633
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1634
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1635
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1636
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1637
- readonly name: import("effect/Schema").String;
1638
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1639
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1640
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1641
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1642
- }>>;
1643
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1644
- readonly email: import("effect/Schema").NonEmptyString;
1645
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1646
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1647
- readonly label: import("effect/Schema").NonEmptyString;
1648
- }>>;
1649
- }>>>;
1650
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1651
- readonly number: import("effect/Schema").NonEmptyString;
1652
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1653
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1654
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1655
- readonly label: import("effect/Schema").NonEmptyString;
1656
- }>>;
1657
- }>>>;
1658
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1659
- readonly url: import("effect/Schema").NonEmptyString;
1660
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1661
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1662
- readonly label: import("effect/Schema").NonEmptyString;
1663
- }>>;
1664
- }>>>;
1665
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1666
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1667
- readonly url: import("effect/Schema").NonEmptyString;
1668
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1669
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1670
- readonly label: import("effect/Schema").NonEmptyString;
1671
- }>>;
1672
- }>>>;
1673
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1674
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1675
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1676
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1677
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1678
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1679
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1680
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1681
- readonly label: import("effect/Schema").NonEmptyString;
1639
+ }>>, 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<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1640
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1641
+ readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1642
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1643
+ readonly provider: import("effect/Schema").String;
1644
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1645
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1646
+ readonly token: import("effect/Schema").String;
1647
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1648
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1649
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1650
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
1651
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1652
+ readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1653
+ readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
1654
+ readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
1682
1655
  }>>;
1683
- }>>>;
1684
- }>, import("effect/Schema").Unknown, never, never>>;
1685
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1686
- readonly createdAt: import("effect/Schema").Date;
1687
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1688
- readonly organizationId: import("effect/Schema").NonEmptyString;
1689
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1690
- readonly id: import("effect/Schema").String;
1691
- readonly name: import("effect/Schema").String;
1692
- readonly slug: import("effect/Schema").String;
1693
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1694
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1695
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1696
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1697
- readonly name: import("effect/Schema").String;
1698
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1699
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1700
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1701
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1656
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1702
1657
  }>>;
1703
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1704
- readonly email: import("effect/Schema").NonEmptyString;
1705
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1706
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1707
- readonly label: import("effect/Schema").NonEmptyString;
1708
- }>>;
1709
- }>>>;
1710
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1711
- readonly number: import("effect/Schema").NonEmptyString;
1712
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1713
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1714
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1715
- readonly label: import("effect/Schema").NonEmptyString;
1716
- }>>;
1717
- }>>>;
1718
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1719
- readonly url: import("effect/Schema").NonEmptyString;
1720
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1721
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1722
- readonly label: import("effect/Schema").NonEmptyString;
1723
- }>>;
1724
- }>>>;
1725
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1726
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1727
- readonly url: import("effect/Schema").NonEmptyString;
1728
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1729
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1730
- readonly label: import("effect/Schema").NonEmptyString;
1731
- }>>;
1732
- }>>>;
1733
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1734
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1735
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1736
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1737
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1738
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1739
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1740
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1741
- readonly label: import("effect/Schema").NonEmptyString;
1742
- }>>;
1743
- }>>>;
1744
- }>, import("effect/Schema").Unknown, never, never>>;
1745
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1746
- readonly createdAt: import("effect/Schema").Date;
1747
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1748
- readonly organizationId: import("effect/Schema").NonEmptyString;
1749
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1750
- readonly id: import("effect/Schema").String;
1751
- readonly organizationId: import("effect/Schema").String;
1752
- readonly userId: import("effect/Schema").String;
1753
- readonly role: import("effect/Schema").String;
1754
- readonly createdAt: import("effect/Schema").Date;
1658
+ }>>;
1659
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1660
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1661
+ readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1662
+ readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1663
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1664
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1665
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1666
+ readonly redirect: import("effect/Schema").Boolean;
1667
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1668
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1669
+ readonly id: import("effect/Schema").String;
1670
+ readonly name: import("effect/Schema").String;
1671
+ readonly email: import("effect/Schema").String;
1672
+ readonly emailVerified: import("effect/Schema").Boolean;
1673
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1674
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1675
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1676
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1677
+ readonly email: import("effect/Schema").NonEmptyString;
1678
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1679
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1680
+ readonly label: import("effect/Schema").NonEmptyString;
1681
+ }>>;
1682
+ }>>>;
1683
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1684
+ readonly number: import("effect/Schema").NonEmptyString;
1685
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1686
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1687
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1688
+ readonly label: import("effect/Schema").NonEmptyString;
1689
+ }>>;
1690
+ }>>>;
1691
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1692
+ readonly url: import("effect/Schema").NonEmptyString;
1693
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1694
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1695
+ readonly label: import("effect/Schema").NonEmptyString;
1696
+ }>>;
1697
+ }>>>;
1698
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1699
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1700
+ readonly url: import("effect/Schema").NonEmptyString;
1701
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1702
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1703
+ readonly label: import("effect/Schema").NonEmptyString;
1704
+ }>>;
1705
+ }>>>;
1706
+ }>, import("effect/Schema").Unknown, never, never>>>;
1707
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1708
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1709
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1710
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1711
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1712
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1713
+ readonly createdAt: import("effect/Schema").DateFromString;
1714
+ readonly updatedAt: import("effect/Schema").DateFromString;
1715
+ }>>;
1716
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1717
+ }>>, 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<"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<{
1718
+ readonly success: import("effect/Schema").Boolean;
1719
+ }>>, 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<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1720
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1721
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1722
+ readonly status: import("effect/Schema").Boolean;
1723
+ }>>, 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<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1724
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1725
+ readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1726
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1727
+ readonly totpURI: import("effect/Schema").String;
1728
+ readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1729
+ }>>, 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<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1730
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1731
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1732
+ readonly status: import("effect/Schema").Boolean;
1733
+ }>>, 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<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1734
+ readonly code: import("effect/Schema").String;
1735
+ readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1736
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1737
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1738
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1739
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1755
1740
  readonly user: import("effect/Schema").Struct<{
1756
1741
  readonly id: import("effect/Schema").String;
1757
1742
  readonly name: import("effect/Schema").String;
@@ -1793,28 +1778,27 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1793
1778
  }>, import("effect/Schema").Unknown, never, never>>>;
1794
1779
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1795
1780
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1781
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1782
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1783
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1796
1784
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1797
- readonly createdAt: import("effect/Schema").Date;
1798
- readonly updatedAt: import("effect/Schema").Date;
1785
+ readonly createdAt: import("effect/Schema").DateFromString;
1786
+ readonly updatedAt: import("effect/Schema").DateFromString;
1799
1787
  }>;
1800
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1801
- readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1802
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1803
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1804
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1788
+ }>>, 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<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1789
+ readonly code: import("effect/Schema").String;
1790
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1791
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1792
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1793
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1794
+ readonly user: import("effect/Schema").Struct<{
1805
1795
  readonly id: import("effect/Schema").String;
1806
1796
  readonly name: import("effect/Schema").String;
1807
- readonly slug: import("effect/Schema").String;
1808
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1809
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1810
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1811
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1812
- readonly name: import("effect/Schema").String;
1813
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1814
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1815
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1816
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1817
- }>>;
1797
+ readonly email: import("effect/Schema").String;
1798
+ readonly emailVerified: import("effect/Schema").Boolean;
1799
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1800
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1801
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1818
1802
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1819
1803
  readonly email: import("effect/Schema").NonEmptyString;
1820
1804
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1845,32 +1829,80 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1845
1829
  readonly label: import("effect/Schema").NonEmptyString;
1846
1830
  }>>;
1847
1831
  }>>>;
1848
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1849
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1850
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1851
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1852
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1853
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1832
+ }>, import("effect/Schema").Unknown, never, never>>>;
1833
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1834
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1835
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1836
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1837
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1838
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1839
+ readonly createdAt: import("effect/Schema").DateFromString;
1840
+ readonly updatedAt: import("effect/Schema").DateFromString;
1841
+ }>;
1842
+ }>>, 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<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1843
+ readonly code: import("effect/Schema").String;
1844
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1845
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1846
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1847
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1848
+ readonly user: import("effect/Schema").Struct<{
1849
+ readonly id: import("effect/Schema").String;
1850
+ readonly name: import("effect/Schema").String;
1851
+ readonly email: import("effect/Schema").String;
1852
+ readonly emailVerified: import("effect/Schema").Boolean;
1853
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1854
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1855
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1856
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1857
+ readonly email: import("effect/Schema").NonEmptyString;
1854
1858
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1855
1859
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1856
1860
  readonly label: import("effect/Schema").NonEmptyString;
1857
1861
  }>>;
1858
1862
  }>>>;
1859
- }>, import("effect/Schema").Unknown, never, never>>;
1860
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1861
- readonly createdAt: import("effect/Schema").Date;
1862
- }>>;
1863
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1864
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"users", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1865
- readonly id: import("effect/Schema").NonEmptyString;
1866
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1867
- readonly id: import("effect/Schema").String;
1868
- readonly name: import("effect/Schema").String;
1869
- readonly email: import("effect/Schema").String;
1870
- readonly emailVerified: import("effect/Schema").Boolean;
1863
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1864
+ readonly number: import("effect/Schema").NonEmptyString;
1865
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1866
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1867
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1868
+ readonly label: import("effect/Schema").NonEmptyString;
1869
+ }>>;
1870
+ }>>>;
1871
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1872
+ readonly url: import("effect/Schema").NonEmptyString;
1873
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1874
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1875
+ readonly label: import("effect/Schema").NonEmptyString;
1876
+ }>>;
1877
+ }>>>;
1878
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1879
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1880
+ readonly url: import("effect/Schema").NonEmptyString;
1881
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1882
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1883
+ readonly label: import("effect/Schema").NonEmptyString;
1884
+ }>>;
1885
+ }>>>;
1886
+ }>, import("effect/Schema").Unknown, never, never>>>;
1887
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1888
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1889
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1890
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1891
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1892
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1893
+ readonly createdAt: import("effect/Schema").DateFromString;
1894
+ readonly updatedAt: import("effect/Schema").DateFromString;
1895
+ }>;
1896
+ }>>, 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<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1897
+ readonly providerId: import("effect/Schema").String;
1898
+ readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1899
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1900
+ readonly status: import("effect/Schema").Boolean;
1901
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1871
1902
  readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1872
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1873
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1903
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1904
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1905
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1874
1906
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1875
1907
  readonly email: import("effect/Schema").NonEmptyString;
1876
1908
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1901,67 +1933,206 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1901
1933
  readonly label: import("effect/Schema").NonEmptyString;
1902
1934
  }>>;
1903
1935
  }>>>;
1904
- }>, import("effect/Schema").Unknown, never, never>>>;
1905
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1906
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1907
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1908
- readonly createdAt: import("effect/Schema").Date;
1909
- readonly updatedAt: import("effect/Schema").Date;
1910
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1911
- readonly userId: import("effect/Schema").NonEmptyString;
1912
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1913
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
1914
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1915
- readonly ids: import("effect/Schema").NonEmptyString;
1936
+ }>>>;
1937
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1938
+ readonly status: import("effect/Schema").Boolean;
1939
+ }>>, 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<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1940
+ readonly email: import("effect/Schema").String;
1941
+ readonly otp: import("effect/Schema").String;
1942
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1943
+ readonly status: import("effect/Schema").Literal<true>;
1944
+ readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1945
+ readonly user: import("effect/Schema").Struct<{
1946
+ readonly id: import("effect/Schema").String;
1947
+ readonly name: import("effect/Schema").String;
1948
+ readonly email: import("effect/Schema").String;
1949
+ readonly emailVerified: import("effect/Schema").Boolean;
1950
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1951
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1952
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1953
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1954
+ readonly email: import("effect/Schema").NonEmptyString;
1955
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1956
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1957
+ readonly label: import("effect/Schema").NonEmptyString;
1958
+ }>>;
1959
+ }>>>;
1960
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1961
+ readonly number: import("effect/Schema").NonEmptyString;
1962
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1963
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1964
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1965
+ readonly label: import("effect/Schema").NonEmptyString;
1966
+ }>>;
1967
+ }>>>;
1968
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1969
+ readonly url: import("effect/Schema").NonEmptyString;
1970
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1971
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1972
+ readonly label: import("effect/Schema").NonEmptyString;
1973
+ }>>;
1974
+ }>>>;
1975
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1976
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1977
+ readonly url: import("effect/Schema").NonEmptyString;
1978
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1979
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1980
+ readonly label: import("effect/Schema").NonEmptyString;
1981
+ }>>;
1982
+ }>>>;
1983
+ }>, import("effect/Schema").Unknown, never, never>>>;
1984
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1985
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1986
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1987
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1988
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1989
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1990
+ readonly createdAt: import("effect/Schema").DateFromString;
1991
+ readonly updatedAt: import("effect/Schema").DateFromString;
1992
+ }>;
1993
+ }>>, 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>, false>>;
1994
+ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1995
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1996
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1997
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1998
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1999
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2000
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2001
+ readonly id: import("effect/Schema").String;
2002
+ readonly key: import("effect/Schema").String;
2003
+ }>>, 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<{
2004
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2005
+ readonly id: import("effect/Schema").String;
2006
+ readonly name: import("effect/Schema").String;
2007
+ readonly ready: import("effect/Schema").Boolean;
2008
+ }>>;
2009
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2010
+ readonly id: import("effect/Schema").String;
2011
+ readonly name: import("effect/Schema").String;
2012
+ readonly personal: import("effect/Schema").Boolean;
2013
+ }>>;
2014
+ readonly adminAccount: import("effect/Schema").Boolean;
2015
+ }>>, 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<{
2016
+ readonly organizationId: import("effect/Schema").String;
2017
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
2018
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2019
+ readonly id: import("effect/Schema").String;
2020
+ readonly name: import("effect/Schema").String;
2021
+ readonly slug: import("effect/Schema").String;
2022
+ readonly displayName: import("effect/Schema").String;
2023
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
2024
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2025
+ readonly email: import("effect/Schema").NonEmptyString;
2026
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2027
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2028
+ readonly label: import("effect/Schema").NonEmptyString;
2029
+ }>>;
2030
+ }>>>;
2031
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2032
+ readonly number: import("effect/Schema").NonEmptyString;
2033
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
2034
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2035
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2036
+ readonly label: import("effect/Schema").NonEmptyString;
2037
+ }>>;
2038
+ }>>>;
2039
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2040
+ readonly url: import("effect/Schema").NonEmptyString;
2041
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2042
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2043
+ readonly label: import("effect/Schema").NonEmptyString;
2044
+ }>>;
2045
+ }>>>;
2046
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2047
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
2048
+ readonly url: import("effect/Schema").NonEmptyString;
2049
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2050
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2051
+ readonly label: import("effect/Schema").NonEmptyString;
2052
+ }>>;
2053
+ }>>>;
2054
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2055
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
2056
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
2057
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
2058
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
2059
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
2060
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2061
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2062
+ readonly label: import("effect/Schema").NonEmptyString;
2063
+ }>>;
2064
+ readonly formatted: import("effect/Schema").String;
2065
+ }>>>;
2066
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
2067
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
2068
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2069
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
2070
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
2071
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
2072
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1916
2073
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1917
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2074
+ readonly projectKey: import("effect/Schema").String;
2075
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2076
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
2077
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2078
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2079
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
2080
+ readonly authOptions: import("effect/Schema").Struct<{
2081
+ readonly emailPassword: import("effect/Schema").Boolean;
2082
+ readonly emailOtp: import("effect/Schema").Boolean;
2083
+ readonly google: import("effect/Schema").Boolean;
2084
+ }>;
2085
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2086
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2087
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2088
+ readonly id: import("effect/Schema").String;
2089
+ readonly name: import("effect/Schema").String;
2090
+ }>>>, 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<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2091
+ readonly newPassword: import("effect/Schema").NonEmptyString;
2092
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2093
+ readonly ok: import("effect/Schema").Boolean;
2094
+ }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2095
+ keyId: import("effect/Schema").NonEmptyString;
2096
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2097
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2098
+ readonly name: import("effect/Schema").NonEmptyString;
2099
+ readonly enabled: import("effect/Schema").Boolean;
2100
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2101
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2102
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2103
+ readonly ok: import("effect/Schema").Boolean;
2104
+ }>>, 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<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
2105
+ readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
2106
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2107
+ readonly url: import("effect/Schema").String;
2108
+ }>>, 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<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2109
+ readonly key: import("effect/Schema").NonEmptyString;
2110
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
2111
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2112
+ readonly valid: import("effect/Schema").Boolean;
2113
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2114
+ readonly message: import("effect/Schema").String;
2115
+ readonly code: import("effect/Schema").String;
2116
+ }>>;
2117
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1918
2118
  readonly id: import("effect/Schema").String;
1919
- readonly name: import("effect/Schema").String;
1920
- readonly email: import("effect/Schema").String;
1921
- readonly emailVerified: import("effect/Schema").Boolean;
1922
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1923
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1924
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1925
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1926
- readonly email: import("effect/Schema").NonEmptyString;
1927
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1928
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1929
- readonly label: import("effect/Schema").NonEmptyString;
1930
- }>>;
1931
- }>>>;
1932
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1933
- readonly number: import("effect/Schema").NonEmptyString;
1934
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1935
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1936
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1937
- readonly label: import("effect/Schema").NonEmptyString;
1938
- }>>;
1939
- }>>>;
1940
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1941
- readonly url: import("effect/Schema").NonEmptyString;
1942
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1943
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1944
- readonly label: import("effect/Schema").NonEmptyString;
1945
- }>>;
1946
- }>>>;
1947
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1948
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1949
- readonly url: import("effect/Schema").NonEmptyString;
1950
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1951
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1952
- readonly label: import("effect/Schema").NonEmptyString;
1953
- }>>;
1954
- }>>>;
1955
- }>, import("effect/Schema").Unknown, never, never>>>;
1956
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1957
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1958
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2119
+ readonly configId: import("effect/Schema").String;
2120
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2121
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
2122
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2123
+ readonly referenceId: import("effect/Schema").String;
2124
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2125
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1959
2126
  readonly createdAt: import("effect/Schema").Date;
1960
2127
  readonly updatedAt: import("effect/Schema").Date;
2128
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2129
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1961
2130
  }>>;
1962
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1963
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false>>;
1964
- export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2131
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2132
+ readonly password: import("effect/Schema").NonEmptyString;
2133
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2134
+ readonly ok: import("effect/Schema").Boolean;
2135
+ }>>, 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>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1965
2136
  readonly hostname: import("effect/Schema").NonEmptyString;
1966
2137
  readonly rootHostname: import("effect/Schema").NonEmptyString;
1967
2138
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -2779,7 +2950,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2779
2950
  readonly createdAt: import("effect/Schema").DateFromString;
2780
2951
  readonly updatedAt: import("effect/Schema").DateFromString;
2781
2952
  }>;
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<{
2953
+ }>>, 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<{
2954
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2955
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2956
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2957
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2958
+ readonly success: import("effect/Schema").Boolean;
2959
+ readonly message: import("effect/Schema").String;
2960
+ }>>, 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
2961
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
2784
2962
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
2785
2963
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -2989,6 +3167,17 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2989
3167
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2990
3168
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2991
3169
  readonly createdAt: import("effect/Schema").DateFromString;
3170
+ }>>, 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<{
3171
+ readonly organizationId: import("effect/Schema").NonEmptyString;
3172
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3173
+ readonly id: import("effect/Schema").String;
3174
+ readonly name: import("effect/Schema").String;
3175
+ readonly slug: import("effect/Schema").String;
3176
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3177
+ 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]>>>;
3178
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3179
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3180
+ readonly createdAt: import("effect/Schema").DateFromString;
2992
3181
  }>>, 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
3182
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2994
3183
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3816,133 +4005,4 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3816
4005
  readonly createdAt: import("effect/Schema").DateFromString;
3817
4006
  readonly updatedAt: import("effect/Schema").DateFromString;
3818
4007
  }>;
3819
- }>>, 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>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3820
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3821
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3822
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3823
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3824
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3825
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3826
- readonly id: import("effect/Schema").String;
3827
- 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<{
3829
- readonly organizationId: import("effect/Schema").String;
3830
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
3831
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3832
- readonly id: import("effect/Schema").String;
3833
- readonly name: import("effect/Schema").String;
3834
- readonly slug: import("effect/Schema").String;
3835
- readonly displayName: import("effect/Schema").String;
3836
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
3837
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3838
- readonly email: import("effect/Schema").NonEmptyString;
3839
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3840
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3841
- readonly label: import("effect/Schema").NonEmptyString;
3842
- }>>;
3843
- }>>>;
3844
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3845
- readonly number: import("effect/Schema").NonEmptyString;
3846
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
3847
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3848
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3849
- readonly label: import("effect/Schema").NonEmptyString;
3850
- }>>;
3851
- }>>>;
3852
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3853
- readonly url: import("effect/Schema").NonEmptyString;
3854
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3855
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3856
- readonly label: import("effect/Schema").NonEmptyString;
3857
- }>>;
3858
- }>>>;
3859
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3860
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
3861
- readonly url: import("effect/Schema").NonEmptyString;
3862
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3863
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3864
- readonly label: import("effect/Schema").NonEmptyString;
3865
- }>>;
3866
- }>>>;
3867
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3868
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
3869
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
3870
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
3871
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
3872
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
3873
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3874
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3875
- readonly label: import("effect/Schema").NonEmptyString;
3876
- }>>;
3877
- readonly formatted: import("effect/Schema").String;
3878
- }>>>;
3879
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
3880
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
3881
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3882
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
3883
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
3884
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
3885
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
3886
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3887
- readonly projectKey: import("effect/Schema").String;
3888
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3889
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
3890
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3891
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3892
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
3893
- readonly authOptions: import("effect/Schema").Struct<{
3894
- readonly emailPassword: import("effect/Schema").Boolean;
3895
- readonly emailOtp: import("effect/Schema").Boolean;
3896
- readonly google: import("effect/Schema").Boolean;
3897
- }>;
3898
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3899
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3900
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3901
- readonly id: import("effect/Schema").String;
3902
- readonly name: import("effect/Schema").String;
3903
- }>>>, 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<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3904
- readonly newPassword: import("effect/Schema").NonEmptyString;
3905
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3906
- readonly ok: import("effect/Schema").Boolean;
3907
- }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3908
- keyId: import("effect/Schema").NonEmptyString;
3909
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3910
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3911
- readonly name: import("effect/Schema").NonEmptyString;
3912
- readonly enabled: import("effect/Schema").Boolean;
3913
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3914
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3915
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3916
- readonly ok: import("effect/Schema").Boolean;
3917
- }>>, 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<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
3918
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
3919
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3920
- readonly url: import("effect/Schema").String;
3921
- }>>, 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<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3922
- readonly key: import("effect/Schema").NonEmptyString;
3923
- readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
3924
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3925
- readonly valid: import("effect/Schema").Boolean;
3926
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3927
- readonly message: import("effect/Schema").String;
3928
- readonly code: import("effect/Schema").String;
3929
- }>>;
3930
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3931
- readonly id: import("effect/Schema").String;
3932
- readonly configId: import("effect/Schema").String;
3933
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3934
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
3935
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
3936
- readonly referenceId: import("effect/Schema").String;
3937
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
3938
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
3939
- readonly createdAt: import("effect/Schema").Date;
3940
- readonly updatedAt: import("effect/Schema").Date;
3941
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3942
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
3943
- }>>;
3944
- }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3945
- readonly password: import("effect/Schema").NonEmptyString;
3946
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3947
- readonly ok: import("effect/Schema").Boolean;
3948
- }>>, 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>, false>>;
4008
+ }>>, 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>, false>>;