@krak-stack/auth 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -1,58 +1,10 @@
1
1
  import { HttpApi } from "effect/http-api";
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<"listUsersByEmails", "GET", "/api/users/by-email", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
53
- readonly emails: 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<{
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").Finite>;
6
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
7
+ readonly user: import("effect/Schema").Struct<{
56
8
  readonly id: import("effect/Schema").String;
57
9
  readonly name: import("effect/Schema").String;
58
10
  readonly email: import("effect/Schema").String;
@@ -93,15 +45,30 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
93
45
  }>, import("effect/Schema").Unknown, never, never>>>;
94
46
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
95
47
  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>;
96
51
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
97
- readonly createdAt: import("effect/Schema").Date;
98
- readonly updatedAt: import("effect/Schema").Date;
99
- }>>;
100
- readonly missingEmails: 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> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
102
- readonly ids: import("effect/Schema").NonEmptyString;
103
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
104
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
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;
57
+ }>>, 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<{
105
72
  readonly id: import("effect/Schema").String;
106
73
  readonly name: import("effect/Schema").String;
107
74
  readonly email: import("effect/Schema").String;
@@ -142,100 +109,27 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
142
109
  }>, import("effect/Schema").Unknown, never, never>>>;
143
110
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
144
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>;
145
115
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
146
- readonly createdAt: import("effect/Schema").Date;
147
- readonly updatedAt: import("effect/Schema").Date;
148
- }>>;
149
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
150
- }>>, 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<{
151
- readonly hostname: import("effect/Schema").NonEmptyString;
152
- readonly rootHostname: import("effect/Schema").NonEmptyString;
153
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
154
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
155
- readonly managed: import("effect/Schema").Boolean;
156
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
157
- readonly id: import("effect/Schema").String;
158
- readonly hostname: import("effect/Schema").String;
159
- readonly rootHostname: import("effect/Schema").String;
160
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
161
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
162
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
163
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
164
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
165
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
166
- readonly hostnameId: import("effect/Schema").String;
167
- readonly managed: import("effect/Schema").Boolean;
168
- readonly active: import("effect/Schema").Boolean;
169
- readonly createdAt: import("effect/Schema").Date;
170
- readonly updatedAt: import("effect/Schema").Date;
171
- }>>, 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<{
172
- readonly id: import("effect/Schema").NonEmptyString;
173
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
174
- readonly id: import("effect/Schema").String;
175
- readonly hostname: import("effect/Schema").String;
176
- readonly rootHostname: import("effect/Schema").String;
177
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
178
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
179
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
180
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
181
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
182
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
183
- readonly hostnameId: import("effect/Schema").String;
184
- readonly managed: import("effect/Schema").Boolean;
185
- readonly active: import("effect/Schema").Boolean;
186
- readonly createdAt: import("effect/Schema").Date;
187
- readonly updatedAt: import("effect/Schema").Date;
188
- }>>, 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<{
189
- readonly id: import("effect/Schema").NonEmptyString;
190
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
191
- readonly id: import("effect/Schema").String;
192
- readonly hostname: import("effect/Schema").String;
193
- readonly rootHostname: import("effect/Schema").String;
194
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
195
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
196
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
197
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
198
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
199
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
200
- readonly hostnameId: import("effect/Schema").String;
201
- readonly managed: import("effect/Schema").Boolean;
202
- readonly active: import("effect/Schema").Boolean;
203
- readonly createdAt: import("effect/Schema").Date;
204
- readonly updatedAt: import("effect/Schema").Date;
205
- }>>, 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<{
206
- readonly hostname: import("effect/Schema").NonEmptyString;
207
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
208
- readonly id: import("effect/Schema").String;
209
- readonly hostname: import("effect/Schema").String;
210
- readonly rootHostname: import("effect/Schema").String;
211
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
212
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
213
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
214
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
215
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
216
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
217
- readonly hostnameId: import("effect/Schema").String;
218
- readonly managed: import("effect/Schema").Boolean;
219
- readonly active: import("effect/Schema").Boolean;
220
- readonly createdAt: import("effect/Schema").Date;
221
- readonly updatedAt: import("effect/Schema").Date;
222
- }>>, 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<{
223
- readonly id: import("effect/Schema").NonEmptyString;
224
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
225
- readonly required: import("effect/Schema").Boolean;
226
- readonly status: import("effect/Schema").String;
227
- readonly type: import("effect/Schema").String;
228
- readonly name: import("effect/Schema").String;
229
- readonly value: import("effect/Schema").String;
230
- }>>>, 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<{
231
- readonly organizationId: import("effect/Schema").NonEmptyString;
232
- readonly userId: import("effect/Schema").NonEmptyString;
233
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
234
- readonly id: import("effect/Schema").String;
235
- readonly organizationId: import("effect/Schema").String;
236
- readonly userId: import("effect/Schema").String;
237
- readonly role: import("effect/Schema").String;
238
- readonly createdAt: import("effect/Schema").Date;
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
+ }>;
239
133
  readonly user: import("effect/Schema").Struct<{
240
134
  readonly id: import("effect/Schema").String;
241
135
  readonly name: import("effect/Schema").String;
@@ -277,138 +171,16 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
277
171
  }>, import("effect/Schema").Unknown, never, never>>>;
278
172
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
279
173
  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>;
280
177
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
281
- readonly createdAt: import("effect/Schema").Date;
282
- readonly updatedAt: import("effect/Schema").Date;
178
+ readonly createdAt: import("effect/Schema").DateFromString;
179
+ readonly updatedAt: import("effect/Schema").DateFromString;
283
180
  }>;
284
- }>>, 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<{
285
- readonly id: import("effect/Schema").NonEmptyString;
286
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
287
- readonly id: import("effect/Schema").String;
288
- readonly name: import("effect/Schema").String;
289
- readonly slug: import("effect/Schema").String;
290
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
291
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
292
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
293
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
294
- readonly name: import("effect/Schema").String;
295
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
296
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
297
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
298
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
299
- }>>;
300
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
301
- readonly email: import("effect/Schema").NonEmptyString;
302
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
303
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
304
- readonly label: import("effect/Schema").NonEmptyString;
305
- }>>;
306
- }>>>;
307
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
308
- readonly number: import("effect/Schema").NonEmptyString;
309
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
310
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
311
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
312
- readonly label: import("effect/Schema").NonEmptyString;
313
- }>>;
314
- }>>>;
315
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
316
- readonly url: import("effect/Schema").NonEmptyString;
317
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
318
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
319
- readonly label: import("effect/Schema").NonEmptyString;
320
- }>>;
321
- }>>>;
322
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
323
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
324
- readonly url: import("effect/Schema").NonEmptyString;
325
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
326
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
327
- readonly label: import("effect/Schema").NonEmptyString;
328
- }>>;
329
- }>>>;
330
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
331
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
332
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
333
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
334
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
335
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
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
- }>, import("effect/Schema").Unknown, never, never>>;
342
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
343
- readonly createdAt: import("effect/Schema").Date;
344
- }>>, 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<{
345
- readonly organizationId: import("effect/Schema").NonEmptyString;
346
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
347
- readonly id: import("effect/Schema").String;
348
- readonly name: import("effect/Schema").String;
349
- readonly slug: import("effect/Schema").String;
350
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
351
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
352
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
353
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
354
- readonly name: import("effect/Schema").String;
355
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
356
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
357
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
358
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
359
- }>>;
360
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
361
- readonly email: import("effect/Schema").NonEmptyString;
362
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
363
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
364
- readonly label: import("effect/Schema").NonEmptyString;
365
- }>>;
366
- }>>>;
367
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
368
- readonly number: import("effect/Schema").NonEmptyString;
369
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
370
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
371
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
372
- readonly label: import("effect/Schema").NonEmptyString;
373
- }>>;
374
- }>>>;
375
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
376
- readonly url: import("effect/Schema").NonEmptyString;
377
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
378
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
379
- readonly label: import("effect/Schema").NonEmptyString;
380
- }>>;
381
- }>>>;
382
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
383
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
384
- readonly url: import("effect/Schema").NonEmptyString;
385
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
386
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
387
- readonly label: import("effect/Schema").NonEmptyString;
388
- }>>;
389
- }>>>;
390
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
391
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
392
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
393
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
394
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
395
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
396
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
397
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
398
- readonly label: import("effect/Schema").NonEmptyString;
399
- }>>;
400
- }>>>;
401
- }>, import("effect/Schema").Unknown, never, never>>;
402
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
403
- readonly createdAt: import("effect/Schema").Date;
404
- }>>>, 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<{
405
- readonly organizationId: import("effect/Schema").NonEmptyString;
406
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
407
- readonly id: import("effect/Schema").String;
408
- readonly organizationId: import("effect/Schema").String;
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<{
409
182
  readonly userId: import("effect/Schema").String;
410
- readonly role: import("effect/Schema").String;
411
- readonly createdAt: import("effect/Schema").Date;
183
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
412
184
  readonly user: import("effect/Schema").Struct<{
413
185
  readonly id: import("effect/Schema").String;
414
186
  readonly name: import("effect/Schema").String;
@@ -450,28 +222,68 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
450
222
  }>, import("effect/Schema").Unknown, never, never>>>;
451
223
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
452
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>;
453
228
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
454
- readonly createdAt: import("effect/Schema").Date;
455
- readonly updatedAt: import("effect/Schema").Date;
229
+ readonly createdAt: import("effect/Schema").DateFromString;
230
+ readonly updatedAt: import("effect/Schema").DateFromString;
456
231
  }>;
457
- }>>>, 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<{
458
- readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
459
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
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").FiniteFromString>;
241
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
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"]>>;
460
244
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
461
- readonly data: import("effect/Schema").$Array<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").Finite>;
254
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
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").Finite>;
259
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
260
+ readonly requestCount: import("effect/Schema").Finite;
261
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
262
+ 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").Finite;
271
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
272
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
273
+ }>>, 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>>;
279
+ readonly user: import("effect/Schema").Struct<{
462
280
  readonly id: import("effect/Schema").String;
463
281
  readonly name: import("effect/Schema").String;
464
- readonly slug: import("effect/Schema").String;
465
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
466
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
467
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
468
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
469
- readonly name: import("effect/Schema").String;
470
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
471
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
472
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
473
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
474
- }>>;
282
+ readonly email: import("effect/Schema").String;
283
+ readonly emailVerified: import("effect/Schema").Boolean;
284
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
285
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
286
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
475
287
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
476
288
  readonly email: import("effect/Schema").NonEmptyString;
477
289
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -502,169 +314,108 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
502
314
  readonly label: import("effect/Schema").NonEmptyString;
503
315
  }>>;
504
316
  }>>>;
505
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
506
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
507
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
508
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
509
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
510
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
317
+ }>, import("effect/Schema").Unknown, never, never>>>;
318
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
319
+ 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
+ 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<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
328
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
329
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
330
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
331
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
332
+ readonly success: import("effect/Schema").Boolean;
333
+ readonly message: import("effect/Schema").String;
334
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
335
+ readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
336
+ readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
337
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
338
+ readonly session: import("effect/Schema").Struct<{
339
+ readonly id: import("effect/Schema").String;
340
+ readonly expiresAt: import("effect/Schema").DateFromString;
341
+ readonly token: import("effect/Schema").String;
342
+ readonly createdAt: import("effect/Schema").DateFromString;
343
+ readonly updatedAt: import("effect/Schema").DateFromString;
344
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
345
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
346
+ readonly userId: import("effect/Schema").String;
347
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
348
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
349
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
350
+ }>;
351
+ readonly user: import("effect/Schema").Struct<{
352
+ readonly id: import("effect/Schema").String;
353
+ readonly name: import("effect/Schema").String;
354
+ readonly email: import("effect/Schema").String;
355
+ readonly emailVerified: import("effect/Schema").Boolean;
356
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
357
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
358
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
359
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
360
+ readonly email: import("effect/Schema").NonEmptyString;
511
361
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
512
362
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
513
363
  readonly label: import("effect/Schema").NonEmptyString;
514
364
  }>>;
515
365
  }>>>;
516
- }>, import("effect/Schema").Unknown, never, never>>;
517
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
518
- readonly createdAt: import("effect/Schema").Date;
366
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
367
+ readonly number: import("effect/Schema").NonEmptyString;
368
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
369
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
370
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
371
+ readonly label: import("effect/Schema").NonEmptyString;
372
+ }>>;
373
+ }>>>;
374
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
375
+ readonly url: import("effect/Schema").NonEmptyString;
376
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
377
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
378
+ readonly label: import("effect/Schema").NonEmptyString;
379
+ }>>;
380
+ }>>>;
381
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
382
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
383
+ readonly url: import("effect/Schema").NonEmptyString;
384
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
385
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
386
+ readonly label: import("effect/Schema").NonEmptyString;
387
+ }>>;
388
+ }>>>;
389
+ }>, import("effect/Schema").Unknown, never, never>>>;
390
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
391
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
392
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
393
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
394
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
395
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
396
+ readonly createdAt: import("effect/Schema").DateFromString;
397
+ readonly updatedAt: import("effect/Schema").DateFromString;
398
+ }>;
399
+ }>>>, 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<{
400
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
401
+ readonly provider: import("effect/Schema").String;
402
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
403
+ readonly token: import("effect/Schema").String;
404
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
405
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
406
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
407
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
519
408
  }>>;
520
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
521
- }>>, 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<{
522
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
523
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
524
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
525
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
526
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
527
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
528
- readonly id: import("effect/Schema").String;
529
- readonly key: import("effect/Schema").String;
530
- }>>, 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<{
531
- readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
532
- readonly id: import("effect/Schema").String;
533
- readonly name: import("effect/Schema").String;
534
- readonly ready: import("effect/Schema").Boolean;
535
- }>>;
536
- readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
537
- readonly id: import("effect/Schema").String;
538
- readonly name: import("effect/Schema").String;
539
- readonly personal: import("effect/Schema").Boolean;
540
- }>>;
541
- readonly adminAccount: import("effect/Schema").Boolean;
542
- }>>, 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<{
543
- readonly organizationId: import("effect/Schema").String;
544
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
545
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
546
- readonly id: import("effect/Schema").String;
547
- readonly name: import("effect/Schema").String;
548
- readonly slug: import("effect/Schema").String;
549
- readonly displayName: import("effect/Schema").String;
550
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
551
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
552
- readonly email: import("effect/Schema").NonEmptyString;
553
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
554
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
555
- readonly label: import("effect/Schema").NonEmptyString;
556
- }>>;
557
- }>>>;
558
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
559
- readonly number: import("effect/Schema").NonEmptyString;
560
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
561
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
562
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
563
- readonly label: import("effect/Schema").NonEmptyString;
564
- }>>;
565
- }>>>;
566
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
567
- readonly url: import("effect/Schema").NonEmptyString;
568
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
569
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
570
- readonly label: import("effect/Schema").NonEmptyString;
571
- }>>;
572
- }>>>;
573
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
574
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
575
- readonly url: import("effect/Schema").NonEmptyString;
576
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
577
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
578
- readonly label: import("effect/Schema").NonEmptyString;
579
- }>>;
580
- }>>>;
581
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
582
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
583
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
584
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
585
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
586
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
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
- readonly formatted: import("effect/Schema").String;
592
- }>>>;
593
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
594
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
595
- }>>, 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<{
596
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
597
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
598
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
599
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
600
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
601
- readonly projectKey: import("effect/Schema").String;
602
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
603
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
604
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
605
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
606
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
607
- readonly authOptions: import("effect/Schema").Struct<{
608
- readonly emailPassword: import("effect/Schema").Boolean;
609
- readonly emailOtp: import("effect/Schema").Boolean;
610
- readonly google: import("effect/Schema").Boolean;
611
- }>;
612
- }>>, 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<{
613
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
614
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
615
- readonly id: import("effect/Schema").String;
616
- readonly name: import("effect/Schema").String;
617
- }>>>, 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<{
618
- readonly newPassword: import("effect/Schema").NonEmptyString;
619
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
620
- readonly ok: import("effect/Schema").Boolean;
621
- }>>, 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<{
622
- keyId: import("effect/Schema").NonEmptyString;
623
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
624
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
625
- readonly name: import("effect/Schema").NonEmptyString;
626
- readonly enabled: import("effect/Schema").Boolean;
627
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
628
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
629
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
630
- readonly ok: import("effect/Schema").Boolean;
631
- }>>, 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<{
632
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
633
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
634
- readonly url: import("effect/Schema").String;
635
- }>>, 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<{
636
- readonly key: import("effect/Schema").NonEmptyString;
637
- 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">]>>;
638
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
639
- readonly valid: import("effect/Schema").Boolean;
640
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
641
- readonly message: import("effect/Schema").String;
642
- readonly code: import("effect/Schema").String;
643
- }>>;
644
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
645
- readonly id: import("effect/Schema").String;
646
- readonly configId: import("effect/Schema").String;
647
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
648
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
649
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
650
- readonly referenceId: import("effect/Schema").String;
651
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
652
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
653
- readonly createdAt: import("effect/Schema").Date;
654
- readonly updatedAt: import("effect/Schema").Date;
655
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
656
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
657
- }>>;
658
- }>>, 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<{
659
- readonly password: import("effect/Schema").NonEmptyString;
660
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
661
- readonly ok: import("effect/Schema").Boolean;
662
- }>>, 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<{
663
- readonly userId: import("effect/Schema").String;
664
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
665
- readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
409
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
410
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
411
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
412
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
413
+ 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
414
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
667
- readonly user: import("effect/Schema").Struct<{
415
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
416
+ readonly redirect: import("effect/Schema").Boolean;
417
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
418
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
668
419
  readonly id: import("effect/Schema").String;
669
420
  readonly name: import("effect/Schema").String;
670
421
  readonly email: import("effect/Schema").String;
@@ -711,76 +462,191 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
711
462
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
712
463
  readonly createdAt: import("effect/Schema").DateFromString;
713
464
  readonly updatedAt: import("effect/Schema").DateFromString;
714
- }>;
715
- }>>, 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<{
465
+ }>>;
466
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
467
+ }>>, 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<{
468
+ readonly id: import("effect/Schema").String;
469
+ readonly providerId: import("effect/Schema").String;
470
+ readonly createdAt: import("effect/Schema").DateFromString;
471
+ readonly updatedAt: import("effect/Schema").DateFromString;
472
+ readonly accountId: import("effect/Schema").String;
716
473
  readonly userId: import("effect/Schema").String;
474
+ readonly scopes: import("effect/Schema").$Array<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<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
476
+ readonly accept: import("effect/Schema").Boolean;
477
+ readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
478
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
717
479
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
718
- readonly session: import("effect/Schema").Struct<{
719
- readonly id: import("effect/Schema").String;
720
- readonly expiresAt: import("effect/Schema").DateFromString;
721
- readonly token: import("effect/Schema").String;
722
- readonly createdAt: import("effect/Schema").DateFromString;
723
- readonly updatedAt: import("effect/Schema").DateFromString;
724
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
725
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
726
- readonly userId: import("effect/Schema").String;
727
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
728
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
729
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
730
- }>;
731
- readonly user: import("effect/Schema").Struct<{
480
+ readonly redirect: import("effect/Schema").Boolean;
481
+ readonly url: import("effect/Schema").String;
482
+ }>>, 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<{
483
+ readonly client_id: import("effect/Schema").String;
484
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
485
+ readonly client_id: import("effect/Schema").String;
486
+ readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
487
+ readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
488
+ readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
489
+ readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
490
+ readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
491
+ readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
492
+ readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
493
+ }>>, 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<{
494
+ readonly invitationId: import("effect/Schema").String;
495
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
496
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
732
497
  readonly id: import("effect/Schema").String;
733
- readonly name: import("effect/Schema").String;
734
498
  readonly email: import("effect/Schema").String;
735
- readonly emailVerified: import("effect/Schema").Boolean;
736
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
737
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
738
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
739
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
740
- readonly email: import("effect/Schema").NonEmptyString;
741
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
742
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
743
- readonly label: import("effect/Schema").NonEmptyString;
744
- }>>;
745
- }>>>;
746
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
747
- readonly number: import("effect/Schema").NonEmptyString;
748
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
749
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
750
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
751
- readonly label: import("effect/Schema").NonEmptyString;
752
- }>>;
753
- }>>>;
754
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
755
- readonly url: import("effect/Schema").NonEmptyString;
756
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
757
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
758
- readonly label: import("effect/Schema").NonEmptyString;
759
- }>>;
760
- }>>>;
761
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
762
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
763
- readonly url: import("effect/Schema").NonEmptyString;
764
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
765
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
766
- readonly label: import("effect/Schema").NonEmptyString;
767
- }>>;
768
- }>>>;
769
- }>, import("effect/Schema").Unknown, never, never>>>;
770
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
771
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
772
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
773
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
774
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
775
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
776
- readonly createdAt: import("effect/Schema").DateFromString;
777
- readonly updatedAt: import("effect/Schema").DateFromString;
778
- }>;
779
- }>>, 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<{
780
- readonly session: import("effect/Schema").Struct<{
781
- readonly id: import("effect/Schema").String;
499
+ readonly role: import("effect/Schema").String;
500
+ readonly organizationId: import("effect/Schema").String;
501
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
502
+ readonly inviterId: import("effect/Schema").String;
503
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
504
+ readonly status: import("effect/Schema").String;
782
505
  readonly expiresAt: import("effect/Schema").DateFromString;
783
- readonly token: import("effect/Schema").String;
506
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
507
+ }>>;
508
+ readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
509
+ readonly id: import("effect/Schema").String;
510
+ readonly organizationId: import("effect/Schema").String;
511
+ readonly userId: import("effect/Schema").String;
512
+ readonly role: import("effect/Schema").String;
513
+ readonly createdAt: import("effect/Schema").DateFromString;
514
+ }>>;
515
+ }>>, 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<{
516
+ readonly invitationId: import("effect/Schema").String;
517
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
518
+ readonly id: import("effect/Schema").String;
519
+ readonly email: import("effect/Schema").String;
520
+ readonly role: import("effect/Schema").String;
521
+ readonly organizationId: import("effect/Schema").String;
522
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
523
+ readonly inviterId: import("effect/Schema").String;
524
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
525
+ readonly status: import("effect/Schema").String;
526
+ readonly expiresAt: import("effect/Schema").DateFromString;
527
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
528
+ }>>, 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<{
529
+ readonly name: import("effect/Schema").NonEmptyString;
530
+ readonly slug: import("effect/Schema").NonEmptyString;
531
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
532
+ 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>>>;
533
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
534
+ readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
535
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
536
+ readonly id: import("effect/Schema").String;
537
+ readonly name: import("effect/Schema").String;
538
+ readonly slug: import("effect/Schema").String;
539
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
540
+ 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]>>>;
541
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
542
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
543
+ readonly createdAt: import("effect/Schema").DateFromString;
544
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationDelete", "POST", "/api/auth/organization/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
545
+ readonly organizationId: import("effect/Schema").NonEmptyString;
546
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
547
+ readonly id: import("effect/Schema").String;
548
+ readonly name: import("effect/Schema").String;
549
+ readonly slug: import("effect/Schema").String;
550
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
551
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
552
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
553
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
554
+ readonly createdAt: import("effect/Schema").DateFromString;
555
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
556
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
557
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
558
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
559
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
560
+ readonly id: import("effect/Schema").String;
561
+ readonly name: import("effect/Schema").String;
562
+ readonly slug: import("effect/Schema").String;
563
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
564
+ 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]>>>;
565
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
566
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
567
+ readonly createdAt: import("effect/Schema").DateFromString;
568
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
569
+ readonly id: import("effect/Schema").String;
570
+ readonly organizationId: import("effect/Schema").String;
571
+ readonly userId: import("effect/Schema").String;
572
+ readonly role: import("effect/Schema").String;
573
+ readonly createdAt: import("effect/Schema").DateFromString;
574
+ readonly user: import("effect/Schema").Struct<{
575
+ readonly id: import("effect/Schema").String;
576
+ readonly name: import("effect/Schema").String;
577
+ readonly email: import("effect/Schema").String;
578
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
579
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
580
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
581
+ readonly email: import("effect/Schema").NonEmptyString;
582
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
583
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
584
+ readonly label: import("effect/Schema").NonEmptyString;
585
+ }>>;
586
+ }>>>;
587
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
588
+ readonly number: import("effect/Schema").NonEmptyString;
589
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
590
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
591
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
592
+ readonly label: import("effect/Schema").NonEmptyString;
593
+ }>>;
594
+ }>>>;
595
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
596
+ readonly url: import("effect/Schema").NonEmptyString;
597
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
598
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
599
+ readonly label: import("effect/Schema").NonEmptyString;
600
+ }>>;
601
+ }>>>;
602
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
603
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
604
+ readonly url: import("effect/Schema").NonEmptyString;
605
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
606
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
607
+ readonly label: import("effect/Schema").NonEmptyString;
608
+ }>>;
609
+ }>>>;
610
+ }>, import("effect/Schema").Unknown, never, never>>>;
611
+ }>;
612
+ }>>;
613
+ readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
614
+ readonly id: import("effect/Schema").String;
615
+ readonly email: import("effect/Schema").String;
616
+ readonly role: import("effect/Schema").String;
617
+ readonly organizationId: import("effect/Schema").String;
618
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
619
+ readonly inviterId: import("effect/Schema").String;
620
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
621
+ readonly status: import("effect/Schema").String;
622
+ readonly expiresAt: import("effect/Schema").DateFromString;
623
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
624
+ }>>;
625
+ }>>>, 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<{
626
+ readonly id: import("effect/Schema").String;
627
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
628
+ readonly id: import("effect/Schema").String;
629
+ readonly email: import("effect/Schema").String;
630
+ readonly role: import("effect/Schema").String;
631
+ readonly organizationId: import("effect/Schema").String;
632
+ readonly inviterId: import("effect/Schema").String;
633
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
634
+ readonly status: import("effect/Schema").String;
635
+ readonly expiresAt: import("effect/Schema").DateFromString;
636
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
637
+ readonly organizationName: import("effect/Schema").String;
638
+ readonly organizationSlug: import("effect/Schema").String;
639
+ readonly inviterEmail: import("effect/Schema").String;
640
+ }>>, 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<{
641
+ readonly organizationId: import("effect/Schema").NonEmptyString;
642
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
643
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
644
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
645
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
646
+ readonly session: import("effect/Schema").Struct<{
647
+ readonly id: import("effect/Schema").String;
648
+ readonly expiresAt: import("effect/Schema").DateFromString;
649
+ readonly token: import("effect/Schema").String;
784
650
  readonly createdAt: import("effect/Schema").DateFromString;
785
651
  readonly updatedAt: import("effect/Schema").DateFromString;
786
652
  readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -838,104 +704,220 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
838
704
  readonly createdAt: import("effect/Schema").DateFromString;
839
705
  readonly updatedAt: import("effect/Schema").DateFromString;
840
706
  }>;
841
- }>>, 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<{
842
- readonly userId: import("effect/Schema").String;
707
+ }>>, 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<{
708
+ readonly email: import("effect/Schema").String;
709
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
710
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
711
+ readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
712
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
843
713
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
844
- readonly user: import("effect/Schema").Struct<{
845
- readonly id: import("effect/Schema").String;
846
- readonly name: import("effect/Schema").String;
847
- readonly email: import("effect/Schema").String;
848
- readonly emailVerified: import("effect/Schema").Boolean;
849
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
850
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
851
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
852
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
853
- readonly email: import("effect/Schema").NonEmptyString;
854
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
855
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
856
- readonly label: import("effect/Schema").NonEmptyString;
857
- }>>;
858
- }>>>;
859
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
860
- readonly number: import("effect/Schema").NonEmptyString;
861
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
862
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
863
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
864
- readonly label: import("effect/Schema").NonEmptyString;
865
- }>>;
866
- }>>>;
867
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
868
- readonly url: import("effect/Schema").NonEmptyString;
869
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
870
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
871
- readonly label: import("effect/Schema").NonEmptyString;
872
- }>>;
873
- }>>>;
874
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
875
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
876
- readonly url: import("effect/Schema").NonEmptyString;
877
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
878
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
879
- readonly label: import("effect/Schema").NonEmptyString;
880
- }>>;
881
- }>>>;
882
- }>, import("effect/Schema").Unknown, never, never>>>;
883
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
884
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
885
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
886
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
887
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
888
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
889
- readonly createdAt: import("effect/Schema").DateFromString;
890
- readonly updatedAt: import("effect/Schema").DateFromString;
891
- }>;
892
- }>>, 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<{
893
- readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
894
- readonly keyId: import("effect/Schema").String;
714
+ readonly id: import("effect/Schema").String;
715
+ readonly email: import("effect/Schema").String;
716
+ readonly role: import("effect/Schema").String;
717
+ readonly organizationId: import("effect/Schema").String;
718
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
719
+ readonly inviterId: import("effect/Schema").String;
720
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
721
+ readonly status: import("effect/Schema").String;
722
+ readonly expiresAt: import("effect/Schema").DateFromString;
723
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
724
+ }>>, 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<{
725
+ readonly organizationId: import("effect/Schema").String;
895
726
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
896
- readonly success: import("effect/Schema").Boolean;
897
- }>>, 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<{
898
- readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
727
+ readonly id: import("effect/Schema").String;
728
+ readonly organizationId: import("effect/Schema").String;
729
+ readonly userId: import("effect/Schema").String;
730
+ readonly role: import("effect/Schema").String;
731
+ readonly createdAt: import("effect/Schema").DateFromString;
732
+ }>>, 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<{
733
+ readonly id: import("effect/Schema").String;
734
+ readonly name: import("effect/Schema").String;
735
+ readonly slug: import("effect/Schema").String;
736
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
737
+ 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]>>>;
738
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
739
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
740
+ readonly createdAt: import("effect/Schema").DateFromString;
741
+ }>>>, 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<{
899
742
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
743
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
744
+ readonly id: import("effect/Schema").String;
745
+ readonly email: import("effect/Schema").String;
746
+ readonly role: import("effect/Schema").String;
747
+ readonly organizationId: import("effect/Schema").String;
748
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
749
+ readonly inviterId: import("effect/Schema").String;
750
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
751
+ readonly status: import("effect/Schema").String;
752
+ readonly expiresAt: import("effect/Schema").DateFromString;
753
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
754
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
900
755
  readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
901
756
  readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
902
757
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
903
758
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
759
+ readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
760
+ readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
761
+ readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
762
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
763
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
904
764
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
905
- readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
765
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
906
766
  readonly id: import("effect/Schema").String;
907
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
908
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
909
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
910
- readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
911
- readonly referenceId: import("effect/Schema").String;
912
- readonly configId: import("effect/Schema").String;
913
- readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
914
- readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
915
- readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
916
- readonly enabled: import("effect/Schema").Boolean;
917
- readonly rateLimitEnabled: import("effect/Schema").Boolean;
918
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
919
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
920
- readonly requestCount: import("effect/Schema").Finite;
921
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
922
- readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
923
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
767
+ readonly organizationId: import("effect/Schema").String;
768
+ readonly userId: import("effect/Schema").String;
769
+ readonly role: import("effect/Schema").String;
924
770
  readonly createdAt: import("effect/Schema").DateFromString;
925
- readonly updatedAt: import("effect/Schema").DateFromString;
926
- 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>>>;
927
- 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>>>>;
928
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
771
+ readonly user: import("effect/Schema").Struct<{
772
+ readonly id: import("effect/Schema").String;
773
+ readonly name: import("effect/Schema").String;
774
+ readonly email: import("effect/Schema").String;
775
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
776
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
777
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
778
+ readonly email: import("effect/Schema").NonEmptyString;
779
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
780
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
781
+ readonly label: import("effect/Schema").NonEmptyString;
782
+ }>>;
783
+ }>>>;
784
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
785
+ readonly number: import("effect/Schema").NonEmptyString;
786
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
787
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
788
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
789
+ readonly label: import("effect/Schema").NonEmptyString;
790
+ }>>;
791
+ }>>>;
792
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
793
+ readonly url: import("effect/Schema").NonEmptyString;
794
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
795
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
796
+ readonly label: import("effect/Schema").NonEmptyString;
797
+ }>>;
798
+ }>>>;
799
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
800
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
801
+ readonly url: import("effect/Schema").NonEmptyString;
802
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
803
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
804
+ readonly label: import("effect/Schema").NonEmptyString;
805
+ }>>;
806
+ }>>>;
807
+ }>, import("effect/Schema").Unknown, never, never>>>;
808
+ }>;
929
809
  }>>;
930
810
  readonly total: import("effect/Schema").Finite;
931
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
932
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
933
- }>>, 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<{
811
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
812
+ readonly id: import("effect/Schema").String;
813
+ readonly email: import("effect/Schema").String;
814
+ readonly role: import("effect/Schema").String;
815
+ readonly organizationId: import("effect/Schema").String;
816
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
817
+ readonly inviterId: import("effect/Schema").String;
818
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
819
+ readonly status: import("effect/Schema").String;
820
+ readonly expiresAt: import("effect/Schema").DateFromString;
821
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
822
+ }>>>, 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<{
823
+ readonly invitationId: import("effect/Schema").String;
824
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
825
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
826
+ readonly id: import("effect/Schema").String;
827
+ readonly email: import("effect/Schema").String;
828
+ readonly role: import("effect/Schema").String;
829
+ readonly organizationId: import("effect/Schema").String;
830
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
831
+ readonly inviterId: import("effect/Schema").String;
832
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
833
+ readonly status: import("effect/Schema").String;
834
+ readonly expiresAt: import("effect/Schema").DateFromString;
835
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
836
+ }>>;
837
+ readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
838
+ readonly id: import("effect/Schema").String;
839
+ readonly organizationId: import("effect/Schema").String;
840
+ readonly userId: import("effect/Schema").String;
841
+ readonly role: import("effect/Schema").String;
842
+ readonly createdAt: import("effect/Schema").DateFromString;
843
+ }>>;
844
+ }>>, 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<{
845
+ readonly memberIdOrEmail: import("effect/Schema").String;
846
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
847
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
848
+ readonly member: import("effect/Schema").Struct<{
849
+ readonly id: import("effect/Schema").String;
850
+ readonly organizationId: import("effect/Schema").String;
851
+ readonly userId: import("effect/Schema").String;
852
+ readonly role: import("effect/Schema").String;
853
+ readonly createdAt: import("effect/Schema").DateFromString;
854
+ }>;
855
+ }>>, 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<{
856
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
857
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
858
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<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<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
868
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
869
+ readonly data: import("effect/Schema").Struct<{
870
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
871
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
872
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
873
+ 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>>>;
874
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
875
+ }>;
876
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
877
+ readonly id: import("effect/Schema").String;
878
+ readonly name: import("effect/Schema").String;
879
+ readonly slug: import("effect/Schema").String;
880
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
881
+ 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]>>>;
882
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
883
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
884
+ readonly createdAt: import("effect/Schema").DateFromString;
885
+ }>>, 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<{
886
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
887
+ readonly memberId: import("effect/Schema").String;
888
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
889
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
890
+ readonly id: import("effect/Schema").String;
891
+ readonly organizationId: import("effect/Schema").String;
892
+ readonly userId: import("effect/Schema").String;
893
+ readonly role: import("effect/Schema").String;
894
+ readonly createdAt: import("effect/Schema").DateFromString;
895
+ }>>, 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<{
896
+ readonly email: import("effect/Schema").String;
897
+ readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
898
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
899
+ readonly status: import("effect/Schema").Boolean;
900
+ readonly message: import("effect/Schema").String;
901
+ }>>, 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<{
934
902
  readonly newPassword: import("effect/Schema").String;
935
- readonly currentPassword: import("effect/Schema").String;
936
- readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
903
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
937
904
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
938
- readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
905
+ readonly status: import("effect/Schema").Boolean;
906
+ }>>, 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<{
907
+ readonly email: import("effect/Schema").String;
908
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
909
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
910
+ readonly success: import("effect/Schema").Boolean;
911
+ }>>, 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<{
912
+ readonly email: import("effect/Schema").String;
913
+ readonly password: import("effect/Schema").String;
914
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
915
+ readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
916
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
917
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
918
+ readonly redirect: import("effect/Schema").Boolean;
919
+ readonly token: import("effect/Schema").String;
920
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
939
921
  readonly user: import("effect/Schema").Struct<{
940
922
  readonly id: import("effect/Schema").String;
941
923
  readonly name: import("effect/Schema").String;
@@ -984,30 +966,17 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
984
966
  readonly createdAt: import("effect/Schema").DateFromString;
985
967
  readonly updatedAt: import("effect/Schema").DateFromString;
986
968
  }>;
987
- }>>, 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<{
988
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
989
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
990
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
969
+ }>, import("effect/Schema").Struct<{
970
+ readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
971
+ readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
972
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
973
+ }>]>>, 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<{
974
+ readonly email: import("effect/Schema").String;
975
+ readonly otp: import("effect/Schema").String;
976
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
977
+ readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
991
978
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
992
- readonly success: import("effect/Schema").Boolean;
993
- readonly message: import("effect/Schema").String;
994
- }>>, 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<{
995
- readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
996
- readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
997
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
998
- readonly session: import("effect/Schema").Struct<{
999
- readonly id: import("effect/Schema").String;
1000
- readonly expiresAt: import("effect/Schema").DateFromString;
1001
- readonly token: import("effect/Schema").String;
1002
- readonly createdAt: import("effect/Schema").DateFromString;
1003
- readonly updatedAt: import("effect/Schema").DateFromString;
1004
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1005
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1006
- readonly userId: import("effect/Schema").String;
1007
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1008
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1009
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1010
- }>;
979
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1011
980
  readonly user: import("effect/Schema").Struct<{
1012
981
  readonly id: import("effect/Schema").String;
1013
982
  readonly name: import("effect/Schema").String;
@@ -1056,21 +1025,31 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1056
1025
  readonly createdAt: import("effect/Schema").DateFromString;
1057
1026
  readonly updatedAt: import("effect/Schema").DateFromString;
1058
1027
  }>;
1059
- }>>>, 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<{
1028
+ }>>, 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<{
1060
1029
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1030
+ readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1031
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1061
1032
  readonly provider: import("effect/Schema").String;
1033
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1062
1034
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1063
1035
  readonly token: import("effect/Schema").String;
1064
1036
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1065
1037
  readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1066
1038
  readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1067
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1039
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
1040
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1041
+ readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1042
+ readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
1043
+ readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
1044
+ }>>;
1045
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1046
+ }>>;
1068
1047
  }>>;
1069
- readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1070
1048
  readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1071
- readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1072
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1049
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1050
+ readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1073
1051
  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>>>;
1052
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1074
1053
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1075
1054
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1076
1055
  readonly redirect: import("effect/Schema").Boolean;
@@ -1124,198 +1103,83 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1124
1103
  readonly updatedAt: import("effect/Schema").DateFromString;
1125
1104
  }>>;
1126
1105
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1127
- }>>, 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<{
1128
- readonly id: import("effect/Schema").String;
1129
- readonly providerId: import("effect/Schema").String;
1130
- readonly createdAt: import("effect/Schema").DateFromString;
1131
- readonly updatedAt: import("effect/Schema").DateFromString;
1132
- readonly accountId: import("effect/Schema").String;
1133
- readonly userId: import("effect/Schema").String;
1134
- readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
1135
- }>>>, 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<{
1136
- readonly accept: import("effect/Schema").Boolean;
1137
- readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
1138
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1106
+ }>>, 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<{
1107
+ readonly success: import("effect/Schema").Boolean;
1108
+ }>>, 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<{
1109
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1139
1110
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1140
- readonly redirect: import("effect/Schema").Boolean;
1141
- readonly url: import("effect/Schema").String;
1142
- }>>, 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<{
1143
- readonly client_id: import("effect/Schema").String;
1144
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1145
- readonly client_id: import("effect/Schema").String;
1146
- readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
1147
- readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1148
- readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1149
- readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1150
- readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1151
- readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1152
- readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
1153
- }>>, 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<{
1154
- readonly invitationId: import("effect/Schema").String;
1111
+ readonly status: import("effect/Schema").Boolean;
1112
+ }>>, 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<{
1113
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1114
+ readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1155
1115
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1156
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1157
- readonly id: import("effect/Schema").String;
1158
- readonly email: import("effect/Schema").String;
1159
- readonly role: import("effect/Schema").String;
1160
- readonly organizationId: import("effect/Schema").String;
1161
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1162
- readonly inviterId: import("effect/Schema").String;
1163
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1164
- readonly status: import("effect/Schema").String;
1165
- readonly expiresAt: import("effect/Schema").DateFromString;
1166
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1167
- }>>;
1168
- readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1169
- readonly id: import("effect/Schema").String;
1170
- readonly organizationId: import("effect/Schema").String;
1171
- readonly userId: import("effect/Schema").String;
1172
- readonly role: import("effect/Schema").String;
1173
- readonly createdAt: import("effect/Schema").DateFromString;
1174
- }>>;
1175
- }>>, 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<{
1176
- readonly invitationId: import("effect/Schema").String;
1177
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1178
- readonly id: import("effect/Schema").String;
1179
- readonly email: import("effect/Schema").String;
1180
- readonly role: import("effect/Schema").String;
1181
- readonly organizationId: import("effect/Schema").String;
1182
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1183
- readonly inviterId: import("effect/Schema").String;
1184
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1185
- readonly status: import("effect/Schema").String;
1186
- readonly expiresAt: import("effect/Schema").DateFromString;
1187
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1188
- }>>, 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<{
1189
- readonly name: import("effect/Schema").NonEmptyString;
1190
- readonly slug: import("effect/Schema").NonEmptyString;
1191
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1192
- 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>>>;
1193
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1194
- readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1116
+ readonly totpURI: import("effect/Schema").String;
1117
+ readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1118
+ }>>, 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<{
1119
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1195
1120
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1196
- readonly id: import("effect/Schema").String;
1197
- readonly name: import("effect/Schema").String;
1198
- readonly slug: import("effect/Schema").String;
1199
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1200
- 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]>>>;
1201
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1202
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1203
- readonly createdAt: import("effect/Schema").DateFromString;
1204
- }>>, 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<{
1205
- readonly organizationId: import("effect/Schema").NonEmptyString;
1121
+ readonly status: import("effect/Schema").Boolean;
1122
+ }>>, 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<{
1123
+ readonly code: import("effect/Schema").String;
1124
+ readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1125
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1126
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1206
1127
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1207
- readonly id: import("effect/Schema").String;
1208
- readonly name: import("effect/Schema").String;
1209
- readonly slug: import("effect/Schema").String;
1210
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1211
- 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]>>>;
1212
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1213
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1214
- readonly createdAt: import("effect/Schema").DateFromString;
1215
- }>>, 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<{
1216
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1217
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1218
- readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
1219
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1220
- readonly id: import("effect/Schema").String;
1221
- readonly name: import("effect/Schema").String;
1222
- readonly slug: import("effect/Schema").String;
1223
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1224
- 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]>>>;
1225
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1226
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1227
- readonly createdAt: import("effect/Schema").DateFromString;
1228
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1229
- readonly id: import("effect/Schema").String;
1230
- readonly organizationId: import("effect/Schema").String;
1231
- readonly userId: import("effect/Schema").String;
1232
- readonly role: import("effect/Schema").String;
1233
- readonly createdAt: import("effect/Schema").DateFromString;
1234
- readonly user: import("effect/Schema").Struct<{
1235
- readonly id: import("effect/Schema").String;
1236
- readonly name: import("effect/Schema").String;
1237
- readonly email: import("effect/Schema").String;
1238
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1239
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1240
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1241
- readonly email: import("effect/Schema").NonEmptyString;
1242
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1243
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1244
- readonly label: import("effect/Schema").NonEmptyString;
1245
- }>>;
1246
- }>>>;
1247
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1248
- readonly number: import("effect/Schema").NonEmptyString;
1249
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1250
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1251
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1252
- readonly label: import("effect/Schema").NonEmptyString;
1253
- }>>;
1254
- }>>>;
1255
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1256
- readonly url: import("effect/Schema").NonEmptyString;
1257
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1258
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1259
- readonly label: import("effect/Schema").NonEmptyString;
1260
- }>>;
1261
- }>>>;
1262
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1263
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1264
- readonly url: import("effect/Schema").NonEmptyString;
1265
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1266
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1267
- readonly label: import("effect/Schema").NonEmptyString;
1268
- }>>;
1269
- }>>>;
1270
- }>, import("effect/Schema").Unknown, never, never>>>;
1271
- }>;
1272
- }>>;
1273
- readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1128
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1129
+ readonly user: import("effect/Schema").Struct<{
1274
1130
  readonly id: import("effect/Schema").String;
1131
+ readonly name: import("effect/Schema").String;
1275
1132
  readonly email: import("effect/Schema").String;
1276
- readonly role: import("effect/Schema").String;
1277
- readonly organizationId: import("effect/Schema").String;
1278
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1279
- readonly inviterId: import("effect/Schema").String;
1280
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1281
- readonly status: import("effect/Schema").String;
1282
- readonly expiresAt: import("effect/Schema").DateFromString;
1283
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1284
- }>>;
1285
- }>>>, 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<{
1286
- readonly id: import("effect/Schema").String;
1287
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1288
- readonly id: import("effect/Schema").String;
1289
- readonly email: import("effect/Schema").String;
1290
- readonly role: import("effect/Schema").String;
1291
- readonly organizationId: import("effect/Schema").String;
1292
- readonly inviterId: import("effect/Schema").String;
1293
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1294
- readonly status: import("effect/Schema").String;
1295
- readonly expiresAt: import("effect/Schema").DateFromString;
1296
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1297
- readonly organizationName: import("effect/Schema").String;
1298
- readonly organizationSlug: import("effect/Schema").String;
1299
- readonly inviterEmail: import("effect/Schema").String;
1300
- }>>, 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<{
1301
- readonly organizationId: import("effect/Schema").NonEmptyString;
1302
- readonly actorUserId: import("effect/Schema").NonEmptyString;
1303
- readonly targetUserId: import("effect/Schema").NonEmptyString;
1304
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
1305
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1306
- readonly session: import("effect/Schema").Struct<{
1307
- readonly id: import("effect/Schema").String;
1308
- readonly expiresAt: import("effect/Schema").DateFromString;
1309
- readonly token: import("effect/Schema").String;
1133
+ readonly emailVerified: import("effect/Schema").Boolean;
1134
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1135
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1136
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1137
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1138
+ readonly email: import("effect/Schema").NonEmptyString;
1139
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1140
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1141
+ readonly label: import("effect/Schema").NonEmptyString;
1142
+ }>>;
1143
+ }>>>;
1144
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1145
+ readonly number: import("effect/Schema").NonEmptyString;
1146
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1147
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1148
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1149
+ readonly label: import("effect/Schema").NonEmptyString;
1150
+ }>>;
1151
+ }>>>;
1152
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1153
+ readonly url: import("effect/Schema").NonEmptyString;
1154
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1155
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1156
+ readonly label: import("effect/Schema").NonEmptyString;
1157
+ }>>;
1158
+ }>>>;
1159
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1160
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1161
+ readonly url: import("effect/Schema").NonEmptyString;
1162
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1163
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1164
+ readonly label: import("effect/Schema").NonEmptyString;
1165
+ }>>;
1166
+ }>>>;
1167
+ }>, import("effect/Schema").Unknown, never, never>>>;
1168
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1169
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1170
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1171
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1172
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1173
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1310
1174
  readonly createdAt: import("effect/Schema").DateFromString;
1311
1175
  readonly updatedAt: import("effect/Schema").DateFromString;
1312
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1313
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1314
- readonly userId: import("effect/Schema").String;
1315
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1316
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1317
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1318
1176
  }>;
1177
+ }>>, 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<{
1178
+ readonly code: import("effect/Schema").String;
1179
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1180
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1181
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1182
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1319
1183
  readonly user: import("effect/Schema").Struct<{
1320
1184
  readonly id: import("effect/Schema").String;
1321
1185
  readonly name: import("effect/Schema").String;
@@ -1364,220 +1228,12 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1364
1228
  readonly createdAt: import("effect/Schema").DateFromString;
1365
1229
  readonly updatedAt: import("effect/Schema").DateFromString;
1366
1230
  }>;
1367
- }>>, 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<{
1368
- readonly email: import("effect/Schema").String;
1369
- readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1370
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1371
- readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1372
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
1373
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1374
- readonly id: import("effect/Schema").String;
1375
- readonly email: import("effect/Schema").String;
1376
- readonly role: import("effect/Schema").String;
1377
- readonly organizationId: import("effect/Schema").String;
1378
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1379
- readonly inviterId: import("effect/Schema").String;
1380
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1381
- readonly status: import("effect/Schema").String;
1382
- readonly expiresAt: import("effect/Schema").DateFromString;
1383
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1384
- }>>, 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<{
1385
- readonly organizationId: import("effect/Schema").String;
1231
+ }>>, 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<{
1232
+ readonly code: import("effect/Schema").String;
1233
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1234
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1386
1235
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1387
- readonly id: import("effect/Schema").String;
1388
- readonly organizationId: import("effect/Schema").String;
1389
- readonly userId: import("effect/Schema").String;
1390
- readonly role: import("effect/Schema").String;
1391
- readonly createdAt: import("effect/Schema").DateFromString;
1392
- }>>, 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<{
1393
- readonly id: import("effect/Schema").String;
1394
- readonly name: import("effect/Schema").String;
1395
- readonly slug: import("effect/Schema").String;
1396
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1397
- 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]>>>;
1398
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1399
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1400
- readonly createdAt: import("effect/Schema").DateFromString;
1401
- }>>>, 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<{
1402
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1403
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1404
- readonly id: import("effect/Schema").String;
1405
- readonly email: import("effect/Schema").String;
1406
- readonly role: import("effect/Schema").String;
1407
- readonly organizationId: import("effect/Schema").String;
1408
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1409
- readonly inviterId: import("effect/Schema").String;
1410
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1411
- readonly status: import("effect/Schema").String;
1412
- readonly expiresAt: import("effect/Schema").DateFromString;
1413
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1414
- }>>>, 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<{
1415
- readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
1416
- readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
1417
- readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
1418
- readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
1419
- readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
1420
- readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
1421
- readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
1422
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1423
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1424
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1425
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1426
- readonly id: import("effect/Schema").String;
1427
- readonly organizationId: import("effect/Schema").String;
1428
- readonly userId: import("effect/Schema").String;
1429
- readonly role: import("effect/Schema").String;
1430
- readonly createdAt: import("effect/Schema").DateFromString;
1431
- readonly user: import("effect/Schema").Struct<{
1432
- readonly id: import("effect/Schema").String;
1433
- readonly name: import("effect/Schema").String;
1434
- readonly email: import("effect/Schema").String;
1435
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1436
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1437
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1438
- readonly email: import("effect/Schema").NonEmptyString;
1439
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1440
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1441
- readonly label: import("effect/Schema").NonEmptyString;
1442
- }>>;
1443
- }>>>;
1444
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1445
- readonly number: import("effect/Schema").NonEmptyString;
1446
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1447
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1448
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1449
- readonly label: import("effect/Schema").NonEmptyString;
1450
- }>>;
1451
- }>>>;
1452
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1453
- readonly url: import("effect/Schema").NonEmptyString;
1454
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1455
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1456
- readonly label: import("effect/Schema").NonEmptyString;
1457
- }>>;
1458
- }>>>;
1459
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1460
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1461
- readonly url: import("effect/Schema").NonEmptyString;
1462
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1463
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1464
- readonly label: import("effect/Schema").NonEmptyString;
1465
- }>>;
1466
- }>>>;
1467
- }>, import("effect/Schema").Unknown, never, never>>>;
1468
- }>;
1469
- }>>;
1470
- readonly total: import("effect/Schema").Finite;
1471
- }>>, 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<{
1472
- readonly id: import("effect/Schema").String;
1473
- readonly email: import("effect/Schema").String;
1474
- readonly role: import("effect/Schema").String;
1475
- readonly organizationId: import("effect/Schema").String;
1476
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1477
- readonly inviterId: import("effect/Schema").String;
1478
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1479
- readonly status: import("effect/Schema").String;
1480
- readonly expiresAt: import("effect/Schema").DateFromString;
1481
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1482
- }>>>, 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<{
1483
- readonly invitationId: import("effect/Schema").String;
1484
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1485
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1486
- readonly id: import("effect/Schema").String;
1487
- readonly email: import("effect/Schema").String;
1488
- readonly role: import("effect/Schema").String;
1489
- readonly organizationId: import("effect/Schema").String;
1490
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1491
- readonly inviterId: import("effect/Schema").String;
1492
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1493
- readonly status: import("effect/Schema").String;
1494
- readonly expiresAt: import("effect/Schema").DateFromString;
1495
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1496
- }>>;
1497
- readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1498
- readonly id: import("effect/Schema").String;
1499
- readonly organizationId: import("effect/Schema").String;
1500
- readonly userId: import("effect/Schema").String;
1501
- readonly role: import("effect/Schema").String;
1502
- readonly createdAt: import("effect/Schema").DateFromString;
1503
- }>>;
1504
- }>>, 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<{
1505
- readonly memberIdOrEmail: import("effect/Schema").String;
1506
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1507
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1508
- readonly member: import("effect/Schema").Struct<{
1509
- readonly id: import("effect/Schema").String;
1510
- readonly organizationId: import("effect/Schema").String;
1511
- readonly userId: import("effect/Schema").String;
1512
- readonly role: import("effect/Schema").String;
1513
- readonly createdAt: import("effect/Schema").DateFromString;
1514
- }>;
1515
- }>>, 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<{
1516
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1517
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1518
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1519
- readonly id: import("effect/Schema").String;
1520
- readonly name: import("effect/Schema").String;
1521
- readonly slug: import("effect/Schema").String;
1522
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1523
- 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]>>>;
1524
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1525
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1526
- readonly createdAt: import("effect/Schema").DateFromString;
1527
- }>>>, 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<{
1528
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1529
- readonly data: import("effect/Schema").Struct<{
1530
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1531
- readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1532
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1533
- 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>>>;
1534
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1535
- }>;
1536
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1537
- readonly id: import("effect/Schema").String;
1538
- readonly name: import("effect/Schema").String;
1539
- readonly slug: import("effect/Schema").String;
1540
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1541
- 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]>>>;
1542
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1543
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1544
- readonly createdAt: import("effect/Schema").DateFromString;
1545
- }>>, 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<{
1546
- readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1547
- readonly memberId: import("effect/Schema").String;
1548
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1549
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1550
- readonly id: import("effect/Schema").String;
1551
- readonly organizationId: import("effect/Schema").String;
1552
- readonly userId: import("effect/Schema").String;
1553
- readonly role: import("effect/Schema").String;
1554
- readonly createdAt: import("effect/Schema").DateFromString;
1555
- }>>, 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<{
1556
- readonly email: import("effect/Schema").String;
1557
- readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
1558
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1559
- readonly status: import("effect/Schema").Boolean;
1560
- readonly message: import("effect/Schema").String;
1561
- }>>, 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<{
1562
- readonly newPassword: import("effect/Schema").String;
1563
1236
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1564
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1565
- readonly status: import("effect/Schema").Boolean;
1566
- }>>, 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<{
1567
- readonly email: import("effect/Schema").String;
1568
- readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1569
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1570
- readonly success: import("effect/Schema").Boolean;
1571
- }>>, 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<{
1572
- readonly email: import("effect/Schema").String;
1573
- readonly password: import("effect/Schema").String;
1574
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1575
- readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1576
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1577
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1578
- readonly redirect: import("effect/Schema").Boolean;
1579
- readonly token: import("effect/Schema").String;
1580
- readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1581
1237
  readonly user: import("effect/Schema").Struct<{
1582
1238
  readonly id: import("effect/Schema").String;
1583
1239
  readonly name: import("effect/Schema").String;
@@ -1626,17 +1282,55 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1626
1282
  readonly createdAt: import("effect/Schema").DateFromString;
1627
1283
  readonly updatedAt: import("effect/Schema").DateFromString;
1628
1284
  }>;
1629
- }>, import("effect/Schema").Struct<{
1630
- readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
1631
- readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
1632
- readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1633
- }>]>>, 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<{
1285
+ }>>, 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<{
1286
+ readonly providerId: import("effect/Schema").String;
1287
+ readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1288
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1289
+ readonly status: import("effect/Schema").Boolean;
1290
+ }>>, 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<{
1291
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1292
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1293
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1294
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1295
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1296
+ readonly email: import("effect/Schema").NonEmptyString;
1297
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1298
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1299
+ readonly label: import("effect/Schema").NonEmptyString;
1300
+ }>>;
1301
+ }>>>;
1302
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1303
+ readonly number: import("effect/Schema").NonEmptyString;
1304
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1305
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1306
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1307
+ readonly label: import("effect/Schema").NonEmptyString;
1308
+ }>>;
1309
+ }>>>;
1310
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1311
+ readonly url: import("effect/Schema").NonEmptyString;
1312
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1313
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1314
+ readonly label: import("effect/Schema").NonEmptyString;
1315
+ }>>;
1316
+ }>>>;
1317
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1318
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1319
+ readonly url: import("effect/Schema").NonEmptyString;
1320
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1321
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1322
+ readonly label: import("effect/Schema").NonEmptyString;
1323
+ }>>;
1324
+ }>>>;
1325
+ }>>>;
1326
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1327
+ readonly status: import("effect/Schema").Boolean;
1328
+ }>>, 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<{
1634
1329
  readonly email: import("effect/Schema").String;
1635
1330
  readonly otp: import("effect/Schema").String;
1636
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1637
- readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
1638
1331
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1639
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1332
+ readonly status: import("effect/Schema").Literal<true>;
1333
+ readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1640
1334
  readonly user: import("effect/Schema").Struct<{
1641
1335
  readonly id: import("effect/Schema").String;
1642
1336
  readonly name: import("effect/Schema").String;
@@ -1685,215 +1379,236 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1685
1379
  readonly createdAt: import("effect/Schema").DateFromString;
1686
1380
  readonly updatedAt: import("effect/Schema").DateFromString;
1687
1381
  }>;
1688
- }>>, 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<{
1689
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1690
- readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1691
- readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1692
- readonly provider: import("effect/Schema").String;
1693
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1694
- readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1695
- readonly token: import("effect/Schema").String;
1696
- readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1697
- readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1698
- readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1699
- readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
1700
- readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1701
- readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1702
- readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
1703
- readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
1704
- }>>;
1705
- readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1706
- }>>;
1707
- }>>;
1708
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1709
- readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1710
- readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1711
- 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>>>;
1712
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1713
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1714
- readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1715
- readonly redirect: import("effect/Schema").Boolean;
1716
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1717
- readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1382
+ }>>, 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<{
1383
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1384
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1385
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1386
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1387
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1388
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1389
+ readonly id: import("effect/Schema").String;
1390
+ readonly key: import("effect/Schema").String;
1391
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1392
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1718
1393
  readonly id: import("effect/Schema").String;
1719
1394
  readonly name: import("effect/Schema").String;
1720
- readonly email: import("effect/Schema").String;
1721
- readonly emailVerified: import("effect/Schema").Boolean;
1722
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1723
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1724
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1725
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1726
- readonly email: import("effect/Schema").NonEmptyString;
1727
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1728
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1729
- readonly label: import("effect/Schema").NonEmptyString;
1730
- }>>;
1731
- }>>>;
1732
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1733
- readonly number: import("effect/Schema").NonEmptyString;
1734
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1735
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1736
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1737
- readonly label: import("effect/Schema").NonEmptyString;
1738
- }>>;
1739
- }>>>;
1740
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1741
- readonly url: import("effect/Schema").NonEmptyString;
1742
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1743
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1744
- readonly label: import("effect/Schema").NonEmptyString;
1745
- }>>;
1746
- }>>>;
1747
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1748
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1749
- readonly url: import("effect/Schema").NonEmptyString;
1750
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1751
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1752
- readonly label: import("effect/Schema").NonEmptyString;
1753
- }>>;
1754
- }>>>;
1755
- }>, import("effect/Schema").Unknown, never, never>>>;
1756
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1757
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1758
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1759
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1760
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1761
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1762
- readonly createdAt: import("effect/Schema").DateFromString;
1763
- readonly updatedAt: import("effect/Schema").DateFromString;
1395
+ readonly ready: import("effect/Schema").Boolean;
1764
1396
  }>>;
1765
- readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1766
- }>>, 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<{
1767
- readonly success: import("effect/Schema").Boolean;
1768
- }>>, 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<{
1769
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1397
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1398
+ readonly id: import("effect/Schema").String;
1399
+ readonly name: import("effect/Schema").String;
1400
+ readonly personal: import("effect/Schema").Boolean;
1401
+ }>>;
1402
+ readonly adminAccount: import("effect/Schema").Boolean;
1403
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1404
+ readonly organizationId: import("effect/Schema").String;
1405
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
1406
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1407
+ readonly id: import("effect/Schema").String;
1408
+ readonly name: import("effect/Schema").String;
1409
+ readonly slug: import("effect/Schema").String;
1410
+ readonly displayName: import("effect/Schema").String;
1411
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1412
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1413
+ readonly email: import("effect/Schema").NonEmptyString;
1414
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1415
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1416
+ readonly label: import("effect/Schema").NonEmptyString;
1417
+ }>>;
1418
+ }>>>;
1419
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1420
+ readonly number: import("effect/Schema").NonEmptyString;
1421
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1422
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1423
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1424
+ readonly label: import("effect/Schema").NonEmptyString;
1425
+ }>>;
1426
+ }>>>;
1427
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1428
+ readonly url: import("effect/Schema").NonEmptyString;
1429
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1430
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1431
+ readonly label: import("effect/Schema").NonEmptyString;
1432
+ }>>;
1433
+ }>>>;
1434
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1435
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1436
+ readonly url: import("effect/Schema").NonEmptyString;
1437
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1438
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1439
+ readonly label: import("effect/Schema").NonEmptyString;
1440
+ }>>;
1441
+ }>>>;
1442
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1443
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1444
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1445
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1446
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1447
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1448
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1449
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1450
+ readonly label: import("effect/Schema").NonEmptyString;
1451
+ }>>;
1452
+ readonly formatted: import("effect/Schema").String;
1453
+ }>>>;
1454
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1455
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
1456
+ }>>, 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<{
1457
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1458
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
1459
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
1460
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1461
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1462
+ readonly projectKey: import("effect/Schema").String;
1463
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1464
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
1465
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1466
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1467
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
1468
+ readonly authOptions: import("effect/Schema").Struct<{
1469
+ readonly emailPassword: import("effect/Schema").Boolean;
1470
+ readonly emailOtp: import("effect/Schema").Boolean;
1471
+ readonly google: import("effect/Schema").Boolean;
1472
+ }>;
1473
+ }>>, 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<{
1474
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1475
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1476
+ readonly id: import("effect/Schema").String;
1477
+ readonly name: import("effect/Schema").String;
1478
+ }>>>, 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<{
1479
+ readonly newPassword: import("effect/Schema").NonEmptyString;
1770
1480
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1771
- readonly status: import("effect/Schema").Boolean;
1772
- }>>, 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<{
1773
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1774
- readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1481
+ readonly ok: import("effect/Schema").Boolean;
1482
+ }>>, 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<{
1483
+ keyId: import("effect/Schema").NonEmptyString;
1775
1484
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1776
- readonly totpURI: import("effect/Schema").String;
1777
- readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1778
- }>>, 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<{
1779
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1485
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1486
+ readonly name: import("effect/Schema").NonEmptyString;
1487
+ readonly enabled: import("effect/Schema").Boolean;
1488
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1489
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1780
1490
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1781
- readonly status: import("effect/Schema").Boolean;
1782
- }>>, 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<{
1783
- readonly code: import("effect/Schema").String;
1784
- readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1785
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1786
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1491
+ readonly ok: import("effect/Schema").Boolean;
1492
+ }>>, 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<{
1493
+ readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
1494
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1495
+ readonly url: import("effect/Schema").String;
1496
+ }>>, 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<{
1497
+ readonly key: import("effect/Schema").NonEmptyString;
1498
+ 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">]>>;
1787
1499
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1788
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1789
- readonly user: import("effect/Schema").Struct<{
1500
+ readonly valid: import("effect/Schema").Boolean;
1501
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1502
+ readonly message: import("effect/Schema").String;
1503
+ readonly code: import("effect/Schema").String;
1504
+ }>>;
1505
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1790
1506
  readonly id: import("effect/Schema").String;
1791
- readonly name: import("effect/Schema").String;
1792
- readonly email: import("effect/Schema").String;
1793
- readonly emailVerified: import("effect/Schema").Boolean;
1794
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1795
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1796
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1797
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1798
- readonly email: import("effect/Schema").NonEmptyString;
1799
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1800
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1801
- readonly label: import("effect/Schema").NonEmptyString;
1802
- }>>;
1803
- }>>>;
1804
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1805
- readonly number: import("effect/Schema").NonEmptyString;
1806
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1807
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1808
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1809
- readonly label: import("effect/Schema").NonEmptyString;
1810
- }>>;
1811
- }>>>;
1812
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1813
- readonly url: import("effect/Schema").NonEmptyString;
1814
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1815
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1816
- readonly label: import("effect/Schema").NonEmptyString;
1817
- }>>;
1818
- }>>>;
1819
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1820
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1821
- readonly url: import("effect/Schema").NonEmptyString;
1822
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1823
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1824
- readonly label: import("effect/Schema").NonEmptyString;
1825
- }>>;
1826
- }>>>;
1827
- }>, import("effect/Schema").Unknown, never, never>>>;
1828
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1829
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1830
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1831
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1832
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1833
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1834
- readonly createdAt: import("effect/Schema").DateFromString;
1835
- readonly updatedAt: import("effect/Schema").DateFromString;
1836
- }>;
1837
- }>>, 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<{
1838
- readonly code: import("effect/Schema").String;
1839
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1840
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1507
+ readonly configId: import("effect/Schema").String;
1508
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1509
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1510
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1511
+ readonly referenceId: import("effect/Schema").String;
1512
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1513
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1514
+ readonly createdAt: import("effect/Schema").Date;
1515
+ readonly updatedAt: import("effect/Schema").Date;
1516
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1517
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1518
+ }>>;
1519
+ }>>, 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<{
1520
+ readonly password: import("effect/Schema").NonEmptyString;
1841
1521
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1842
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1843
- readonly user: import("effect/Schema").Struct<{
1844
- readonly id: import("effect/Schema").String;
1845
- readonly name: import("effect/Schema").String;
1846
- readonly email: import("effect/Schema").String;
1847
- readonly emailVerified: import("effect/Schema").Boolean;
1848
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1849
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1850
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1851
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1852
- readonly email: import("effect/Schema").NonEmptyString;
1853
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1854
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1855
- readonly label: import("effect/Schema").NonEmptyString;
1856
- }>>;
1857
- }>>>;
1858
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1859
- readonly number: import("effect/Schema").NonEmptyString;
1860
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1861
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1862
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1863
- readonly label: import("effect/Schema").NonEmptyString;
1864
- }>>;
1865
- }>>>;
1866
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1867
- readonly url: import("effect/Schema").NonEmptyString;
1868
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1869
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1870
- readonly label: import("effect/Schema").NonEmptyString;
1871
- }>>;
1872
- }>>>;
1873
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1874
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1875
- readonly url: import("effect/Schema").NonEmptyString;
1876
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1877
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1878
- readonly label: import("effect/Schema").NonEmptyString;
1879
- }>>;
1880
- }>>>;
1881
- }>, import("effect/Schema").Unknown, never, never>>>;
1882
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1883
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1884
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1885
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1886
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1887
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1888
- readonly createdAt: import("effect/Schema").DateFromString;
1889
- readonly updatedAt: import("effect/Schema").DateFromString;
1890
- }>;
1891
- }>>, 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<{
1892
- readonly code: import("effect/Schema").String;
1893
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1894
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1522
+ readonly ok: import("effect/Schema").Boolean;
1523
+ }>>, 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<{
1524
+ readonly hostname: import("effect/Schema").NonEmptyString;
1525
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
1526
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1527
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1528
+ readonly managed: import("effect/Schema").Boolean;
1895
1529
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1896
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1530
+ readonly id: import("effect/Schema").String;
1531
+ readonly hostname: import("effect/Schema").String;
1532
+ readonly rootHostname: import("effect/Schema").String;
1533
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1534
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1535
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1536
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1537
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1538
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1539
+ readonly hostnameId: import("effect/Schema").String;
1540
+ readonly managed: import("effect/Schema").Boolean;
1541
+ readonly active: import("effect/Schema").Boolean;
1542
+ readonly createdAt: import("effect/Schema").Date;
1543
+ readonly updatedAt: import("effect/Schema").Date;
1544
+ }>>, 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<{
1545
+ readonly id: import("effect/Schema").NonEmptyString;
1546
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1547
+ readonly id: import("effect/Schema").String;
1548
+ readonly hostname: import("effect/Schema").String;
1549
+ readonly rootHostname: import("effect/Schema").String;
1550
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1551
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1552
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1553
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1554
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1555
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1556
+ readonly hostnameId: import("effect/Schema").String;
1557
+ readonly managed: import("effect/Schema").Boolean;
1558
+ readonly active: import("effect/Schema").Boolean;
1559
+ readonly createdAt: import("effect/Schema").Date;
1560
+ readonly updatedAt: import("effect/Schema").Date;
1561
+ }>>, 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<{
1562
+ readonly id: import("effect/Schema").NonEmptyString;
1563
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1564
+ readonly id: import("effect/Schema").String;
1565
+ readonly hostname: import("effect/Schema").String;
1566
+ readonly rootHostname: import("effect/Schema").String;
1567
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1568
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1569
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1570
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1571
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1572
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1573
+ readonly hostnameId: import("effect/Schema").String;
1574
+ readonly managed: import("effect/Schema").Boolean;
1575
+ readonly active: import("effect/Schema").Boolean;
1576
+ readonly createdAt: import("effect/Schema").Date;
1577
+ readonly updatedAt: import("effect/Schema").Date;
1578
+ }>>, 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<{
1579
+ readonly hostname: import("effect/Schema").NonEmptyString;
1580
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1581
+ readonly id: import("effect/Schema").String;
1582
+ readonly hostname: import("effect/Schema").String;
1583
+ readonly rootHostname: import("effect/Schema").String;
1584
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1585
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1586
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1587
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1588
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1589
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1590
+ readonly hostnameId: import("effect/Schema").String;
1591
+ readonly managed: import("effect/Schema").Boolean;
1592
+ readonly active: import("effect/Schema").Boolean;
1593
+ readonly createdAt: import("effect/Schema").Date;
1594
+ readonly updatedAt: import("effect/Schema").Date;
1595
+ }>>, 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<{
1596
+ readonly id: import("effect/Schema").NonEmptyString;
1597
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1598
+ readonly required: import("effect/Schema").Boolean;
1599
+ readonly status: import("effect/Schema").String;
1600
+ readonly type: import("effect/Schema").String;
1601
+ readonly name: import("effect/Schema").String;
1602
+ readonly value: import("effect/Schema").String;
1603
+ }>>>, 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<{
1604
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1605
+ readonly userId: import("effect/Schema").NonEmptyString;
1606
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1607
+ readonly id: import("effect/Schema").String;
1608
+ readonly organizationId: import("effect/Schema").String;
1609
+ readonly userId: import("effect/Schema").String;
1610
+ readonly role: import("effect/Schema").String;
1611
+ readonly createdAt: import("effect/Schema").Date;
1897
1612
  readonly user: import("effect/Schema").Struct<{
1898
1613
  readonly id: import("effect/Schema").String;
1899
1614
  readonly name: import("effect/Schema").String;
@@ -1935,23 +1650,86 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1935
1650
  }>, import("effect/Schema").Unknown, never, never>>>;
1936
1651
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1937
1652
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1938
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1939
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1940
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1941
1653
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1942
- readonly createdAt: import("effect/Schema").DateFromString;
1943
- readonly updatedAt: import("effect/Schema").DateFromString;
1654
+ readonly createdAt: import("effect/Schema").Date;
1655
+ readonly updatedAt: import("effect/Schema").Date;
1944
1656
  }>;
1945
- }>>, 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<{
1946
- readonly providerId: import("effect/Schema").String;
1947
- readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1948
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1949
- readonly status: import("effect/Schema").Boolean;
1950
- }>>, 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<{
1951
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1952
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1953
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1954
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1657
+ }>>, 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<{
1658
+ readonly id: import("effect/Schema").NonEmptyString;
1659
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1660
+ readonly id: import("effect/Schema").String;
1661
+ readonly name: import("effect/Schema").String;
1662
+ readonly slug: import("effect/Schema").String;
1663
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1664
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1665
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1666
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1667
+ readonly name: import("effect/Schema").String;
1668
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1669
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1670
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1671
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1672
+ }>>;
1673
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1674
+ readonly email: import("effect/Schema").NonEmptyString;
1675
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1676
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1677
+ readonly label: import("effect/Schema").NonEmptyString;
1678
+ }>>;
1679
+ }>>>;
1680
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1681
+ readonly number: import("effect/Schema").NonEmptyString;
1682
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1683
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1684
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1685
+ readonly label: import("effect/Schema").NonEmptyString;
1686
+ }>>;
1687
+ }>>>;
1688
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1689
+ readonly url: import("effect/Schema").NonEmptyString;
1690
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1691
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1692
+ readonly label: import("effect/Schema").NonEmptyString;
1693
+ }>>;
1694
+ }>>>;
1695
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1696
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1697
+ readonly url: import("effect/Schema").NonEmptyString;
1698
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1699
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1700
+ readonly label: import("effect/Schema").NonEmptyString;
1701
+ }>>;
1702
+ }>>>;
1703
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1704
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1705
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1706
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1707
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1708
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1709
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1710
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1711
+ readonly label: import("effect/Schema").NonEmptyString;
1712
+ }>>;
1713
+ }>>>;
1714
+ }>, import("effect/Schema").Unknown, never, never>>;
1715
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1716
+ readonly createdAt: import("effect/Schema").Date;
1717
+ }>>, 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<{
1718
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1719
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1720
+ readonly id: import("effect/Schema").String;
1721
+ readonly name: import("effect/Schema").String;
1722
+ readonly slug: import("effect/Schema").String;
1723
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1724
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1725
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1726
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1727
+ readonly name: import("effect/Schema").String;
1728
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1729
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1730
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1731
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1732
+ }>>;
1955
1733
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1956
1734
  readonly email: import("effect/Schema").NonEmptyString;
1957
1735
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1982,15 +1760,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1982
1760
  readonly label: import("effect/Schema").NonEmptyString;
1983
1761
  }>>;
1984
1762
  }>>>;
1985
- }>>>;
1986
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1987
- readonly status: import("effect/Schema").Boolean;
1988
- }>>, 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<{
1989
- readonly email: import("effect/Schema").String;
1990
- readonly otp: import("effect/Schema").String;
1991
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1992
- readonly status: import("effect/Schema").Literal<true>;
1993
- readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1763
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1764
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1765
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1766
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1767
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1768
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1769
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1770
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1771
+ readonly label: import("effect/Schema").NonEmptyString;
1772
+ }>>;
1773
+ }>>>;
1774
+ }>, import("effect/Schema").Unknown, never, never>>;
1775
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1776
+ readonly createdAt: import("effect/Schema").Date;
1777
+ }>>>, 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<{
1778
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1779
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1780
+ readonly id: import("effect/Schema").String;
1781
+ readonly organizationId: import("effect/Schema").String;
1782
+ readonly userId: import("effect/Schema").String;
1783
+ readonly role: import("effect/Schema").String;
1784
+ readonly createdAt: import("effect/Schema").Date;
1994
1785
  readonly user: import("effect/Schema").Struct<{
1995
1786
  readonly id: import("effect/Schema").String;
1996
1787
  readonly name: import("effect/Schema").String;
@@ -2032,156 +1823,224 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
2032
1823
  }>, import("effect/Schema").Unknown, never, never>>>;
2033
1824
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2034
1825
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2035
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2036
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
2037
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2038
1826
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2039
- readonly createdAt: import("effect/Schema").DateFromString;
2040
- readonly updatedAt: import("effect/Schema").DateFromString;
1827
+ readonly createdAt: import("effect/Schema").Date;
1828
+ readonly updatedAt: import("effect/Schema").Date;
2041
1829
  }>;
2042
- }>>, 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>>;
2043
- 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<{
2044
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2045
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2046
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2047
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2048
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2049
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2050
- readonly id: import("effect/Schema").String;
2051
- readonly key: import("effect/Schema").String;
2052
- }>>, 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<{
2053
- readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2054
- readonly id: import("effect/Schema").String;
2055
- readonly name: import("effect/Schema").String;
2056
- readonly ready: import("effect/Schema").Boolean;
2057
- }>>;
2058
- readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1830
+ }>>>, 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<{
1831
+ readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1832
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1833
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1834
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2059
1835
  readonly id: import("effect/Schema").String;
2060
1836
  readonly name: import("effect/Schema").String;
2061
- readonly personal: import("effect/Schema").Boolean;
1837
+ readonly slug: import("effect/Schema").String;
1838
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1839
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1840
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1841
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1842
+ readonly name: import("effect/Schema").String;
1843
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1844
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1845
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1846
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1847
+ }>>;
1848
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1849
+ readonly email: import("effect/Schema").NonEmptyString;
1850
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1851
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1852
+ readonly label: import("effect/Schema").NonEmptyString;
1853
+ }>>;
1854
+ }>>>;
1855
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1856
+ readonly number: import("effect/Schema").NonEmptyString;
1857
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1858
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1859
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1860
+ readonly label: import("effect/Schema").NonEmptyString;
1861
+ }>>;
1862
+ }>>>;
1863
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1864
+ readonly url: import("effect/Schema").NonEmptyString;
1865
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1866
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1867
+ readonly label: import("effect/Schema").NonEmptyString;
1868
+ }>>;
1869
+ }>>>;
1870
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1871
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
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 addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1879
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1880
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1881
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1882
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1883
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1884
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1885
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1886
+ readonly label: import("effect/Schema").NonEmptyString;
1887
+ }>>;
1888
+ }>>>;
1889
+ }>, import("effect/Schema").Unknown, never, never>>;
1890
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1891
+ readonly createdAt: import("effect/Schema").Date;
2062
1892
  }>>;
2063
- readonly adminAccount: import("effect/Schema").Boolean;
2064
- }>>, 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<{
2065
- readonly organizationId: import("effect/Schema").String;
2066
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
2067
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2068
- readonly id: import("effect/Schema").String;
2069
- readonly name: import("effect/Schema").String;
2070
- readonly slug: import("effect/Schema").String;
2071
- readonly displayName: import("effect/Schema").String;
2072
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
2073
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2074
- readonly email: import("effect/Schema").NonEmptyString;
2075
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2076
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2077
- readonly label: import("effect/Schema").NonEmptyString;
2078
- }>>;
2079
- }>>>;
2080
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2081
- readonly number: import("effect/Schema").NonEmptyString;
2082
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
2083
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2084
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2085
- readonly label: import("effect/Schema").NonEmptyString;
2086
- }>>;
2087
- }>>>;
2088
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2089
- readonly url: import("effect/Schema").NonEmptyString;
2090
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2091
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2092
- readonly label: import("effect/Schema").NonEmptyString;
2093
- }>>;
2094
- }>>>;
2095
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2096
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
2097
- readonly url: import("effect/Schema").NonEmptyString;
2098
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2099
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2100
- readonly label: import("effect/Schema").NonEmptyString;
2101
- }>>;
2102
- }>>>;
2103
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2104
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
2105
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
2106
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
2107
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
2108
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
2109
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2110
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2111
- readonly label: import("effect/Schema").NonEmptyString;
2112
- }>>;
2113
- readonly formatted: import("effect/Schema").String;
2114
- }>>>;
2115
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
2116
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
2117
- }>>, 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<{
2118
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
2119
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
2120
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
2121
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
2122
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2123
- readonly projectKey: import("effect/Schema").String;
2124
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2125
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
2126
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2127
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2128
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
2129
- readonly authOptions: import("effect/Schema").Struct<{
2130
- readonly emailPassword: import("effect/Schema").Boolean;
2131
- readonly emailOtp: import("effect/Schema").Boolean;
2132
- readonly google: import("effect/Schema").Boolean;
2133
- }>;
2134
- }>>, 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<{
2135
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2136
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1893
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1894
+ }>>, 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<{
1895
+ readonly id: import("effect/Schema").NonEmptyString;
1896
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2137
1897
  readonly id: import("effect/Schema").String;
2138
1898
  readonly name: import("effect/Schema").String;
2139
- }>>>, 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<{
2140
- readonly newPassword: import("effect/Schema").NonEmptyString;
2141
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2142
- readonly ok: import("effect/Schema").Boolean;
2143
- }>>, 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<{
2144
- keyId: import("effect/Schema").NonEmptyString;
2145
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2146
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2147
- readonly name: import("effect/Schema").NonEmptyString;
2148
- readonly enabled: import("effect/Schema").Boolean;
2149
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2150
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2151
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2152
- readonly ok: import("effect/Schema").Boolean;
2153
- }>>, 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<{
2154
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
2155
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2156
- readonly url: import("effect/Schema").String;
2157
- }>>, 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<{
2158
- readonly key: import("effect/Schema").NonEmptyString;
2159
- 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">]>>;
2160
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2161
- readonly valid: import("effect/Schema").Boolean;
2162
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2163
- readonly message: import("effect/Schema").String;
2164
- readonly code: import("effect/Schema").String;
1899
+ readonly email: import("effect/Schema").String;
1900
+ readonly emailVerified: import("effect/Schema").Boolean;
1901
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1902
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1903
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1904
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1905
+ readonly email: import("effect/Schema").NonEmptyString;
1906
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1907
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1908
+ readonly label: import("effect/Schema").NonEmptyString;
1909
+ }>>;
1910
+ }>>>;
1911
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1912
+ readonly number: import("effect/Schema").NonEmptyString;
1913
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1914
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1915
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1916
+ readonly label: import("effect/Schema").NonEmptyString;
1917
+ }>>;
1918
+ }>>>;
1919
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1920
+ readonly url: import("effect/Schema").NonEmptyString;
1921
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1922
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1923
+ readonly label: import("effect/Schema").NonEmptyString;
1924
+ }>>;
1925
+ }>>>;
1926
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1927
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1928
+ readonly url: import("effect/Schema").NonEmptyString;
1929
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1930
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1931
+ readonly label: import("effect/Schema").NonEmptyString;
1932
+ }>>;
1933
+ }>>>;
1934
+ }>, import("effect/Schema").Unknown, never, never>>>;
1935
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1936
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1937
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1938
+ readonly createdAt: import("effect/Schema").Date;
1939
+ readonly updatedAt: import("effect/Schema").Date;
1940
+ }>>, 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<{
1941
+ readonly userId: import("effect/Schema").NonEmptyString;
1942
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1943
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
1944
+ }>>, 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<"listUsersByEmails", "GET", "/api/users/by-email", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1945
+ readonly emails: import("effect/Schema").NonEmptyString;
1946
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1947
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1948
+ readonly id: import("effect/Schema").String;
1949
+ readonly name: import("effect/Schema").String;
1950
+ readonly email: import("effect/Schema").String;
1951
+ readonly emailVerified: import("effect/Schema").Boolean;
1952
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1953
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1954
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1955
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1956
+ readonly email: import("effect/Schema").NonEmptyString;
1957
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1958
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1959
+ readonly label: import("effect/Schema").NonEmptyString;
1960
+ }>>;
1961
+ }>>>;
1962
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1963
+ readonly number: import("effect/Schema").NonEmptyString;
1964
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1965
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1966
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1967
+ readonly label: import("effect/Schema").NonEmptyString;
1968
+ }>>;
1969
+ }>>>;
1970
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1971
+ readonly url: import("effect/Schema").NonEmptyString;
1972
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1973
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1974
+ readonly label: import("effect/Schema").NonEmptyString;
1975
+ }>>;
1976
+ }>>>;
1977
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1978
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1979
+ readonly url: import("effect/Schema").NonEmptyString;
1980
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1981
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1982
+ readonly label: import("effect/Schema").NonEmptyString;
1983
+ }>>;
1984
+ }>>>;
1985
+ }>, import("effect/Schema").Unknown, never, never>>>;
1986
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1987
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1988
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1989
+ readonly createdAt: import("effect/Schema").Date;
1990
+ readonly updatedAt: import("effect/Schema").Date;
2165
1991
  }>>;
2166
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1992
+ readonly missingEmails: import("effect/Schema").$Array<import("effect/Schema").String>;
1993
+ }>>, 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<{
1994
+ readonly ids: import("effect/Schema").NonEmptyString;
1995
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1996
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2167
1997
  readonly id: import("effect/Schema").String;
2168
- readonly configId: import("effect/Schema").String;
2169
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2170
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
2171
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2172
- readonly referenceId: import("effect/Schema").String;
2173
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2174
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1998
+ readonly name: import("effect/Schema").String;
1999
+ readonly email: import("effect/Schema").String;
2000
+ readonly emailVerified: import("effect/Schema").Boolean;
2001
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
2002
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2003
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
2004
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2005
+ readonly email: import("effect/Schema").NonEmptyString;
2006
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2007
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2008
+ readonly label: import("effect/Schema").NonEmptyString;
2009
+ }>>;
2010
+ }>>>;
2011
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2012
+ readonly number: import("effect/Schema").NonEmptyString;
2013
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
2014
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2015
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2016
+ readonly label: import("effect/Schema").NonEmptyString;
2017
+ }>>;
2018
+ }>>>;
2019
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2020
+ readonly url: import("effect/Schema").NonEmptyString;
2021
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2022
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2023
+ readonly label: import("effect/Schema").NonEmptyString;
2024
+ }>>;
2025
+ }>>>;
2026
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2027
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
2028
+ readonly url: import("effect/Schema").NonEmptyString;
2029
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2030
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2031
+ readonly label: import("effect/Schema").NonEmptyString;
2032
+ }>>;
2033
+ }>>>;
2034
+ }>, import("effect/Schema").Unknown, never, never>>>;
2035
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2036
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2037
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2175
2038
  readonly createdAt: import("effect/Schema").Date;
2176
2039
  readonly updatedAt: import("effect/Schema").Date;
2177
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2178
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
2179
2040
  }>>;
2180
- }>>, 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<{
2181
- readonly password: import("effect/Schema").NonEmptyString;
2182
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2183
- readonly ok: import("effect/Schema").Boolean;
2184
- }>>, 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<{
2041
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
2042
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false>>;
2043
+ 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<{
2185
2044
  readonly hostname: import("effect/Schema").NonEmptyString;
2186
2045
  readonly rootHostname: import("effect/Schema").NonEmptyString;
2187
2046
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -2398,8 +2257,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2398
2257
  readonly createdAt: import("effect/Schema").Date;
2399
2258
  readonly updatedAt: import("effect/Schema").Date;
2400
2259
  }>>>, 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<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2401
- readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2402
- readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2260
+ readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
2261
+ readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
2403
2262
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
2404
2263
  readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
2405
2264
  readonly id: string;
@@ -2486,8 +2345,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2486
2345
  readonly pageCount: import("effect/Schema").Int;
2487
2346
  }>;
2488
2347
  }>>, 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<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2489
- readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2490
- readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>, never, never>;
2348
+ readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
2349
+ readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
2491
2350
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
2492
2351
  readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
2493
2352
  readonly id: string;
@@ -4054,4 +3913,145 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
4054
3913
  readonly createdAt: import("effect/Schema").DateFromString;
4055
3914
  readonly updatedAt: import("effect/Schema").DateFromString;
4056
3915
  }>;
4057
- }>>, 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>>;
3916
+ }>>, 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<{
3917
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3918
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3919
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3920
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3921
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3922
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3923
+ readonly id: import("effect/Schema").String;
3924
+ readonly key: import("effect/Schema").String;
3925
+ }>>, 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<{
3926
+ readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3927
+ readonly id: import("effect/Schema").String;
3928
+ readonly name: import("effect/Schema").String;
3929
+ readonly ready: import("effect/Schema").Boolean;
3930
+ }>>;
3931
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3932
+ readonly id: import("effect/Schema").String;
3933
+ readonly name: import("effect/Schema").String;
3934
+ readonly personal: import("effect/Schema").Boolean;
3935
+ }>>;
3936
+ readonly adminAccount: import("effect/Schema").Boolean;
3937
+ }>>, 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<{
3938
+ readonly organizationId: import("effect/Schema").String;
3939
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
3940
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3941
+ readonly id: import("effect/Schema").String;
3942
+ readonly name: import("effect/Schema").String;
3943
+ readonly slug: import("effect/Schema").String;
3944
+ readonly displayName: import("effect/Schema").String;
3945
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
3946
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3947
+ readonly email: import("effect/Schema").NonEmptyString;
3948
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3949
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3950
+ readonly label: import("effect/Schema").NonEmptyString;
3951
+ }>>;
3952
+ }>>>;
3953
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3954
+ readonly number: import("effect/Schema").NonEmptyString;
3955
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
3956
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3957
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3958
+ readonly label: import("effect/Schema").NonEmptyString;
3959
+ }>>;
3960
+ }>>>;
3961
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3962
+ readonly url: import("effect/Schema").NonEmptyString;
3963
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3964
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3965
+ readonly label: import("effect/Schema").NonEmptyString;
3966
+ }>>;
3967
+ }>>>;
3968
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3969
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
3970
+ readonly url: import("effect/Schema").NonEmptyString;
3971
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3972
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3973
+ readonly label: import("effect/Schema").NonEmptyString;
3974
+ }>>;
3975
+ }>>>;
3976
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3977
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
3978
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
3979
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
3980
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
3981
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
3982
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3983
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3984
+ readonly label: import("effect/Schema").NonEmptyString;
3985
+ }>>;
3986
+ readonly formatted: import("effect/Schema").String;
3987
+ }>>>;
3988
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
3989
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
3990
+ }>>, 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<{
3991
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
3992
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
3993
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
3994
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
3995
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3996
+ readonly projectKey: import("effect/Schema").String;
3997
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3998
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
3999
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
4000
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
4001
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
4002
+ readonly authOptions: import("effect/Schema").Struct<{
4003
+ readonly emailPassword: import("effect/Schema").Boolean;
4004
+ readonly emailOtp: import("effect/Schema").Boolean;
4005
+ readonly google: import("effect/Schema").Boolean;
4006
+ }>;
4007
+ }>>, 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<{
4008
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
4009
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4010
+ readonly id: import("effect/Schema").String;
4011
+ readonly name: import("effect/Schema").String;
4012
+ }>>>, 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<{
4013
+ readonly newPassword: import("effect/Schema").NonEmptyString;
4014
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4015
+ readonly ok: import("effect/Schema").Boolean;
4016
+ }>>, 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<{
4017
+ keyId: import("effect/Schema").NonEmptyString;
4018
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4019
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
4020
+ readonly name: import("effect/Schema").NonEmptyString;
4021
+ readonly enabled: import("effect/Schema").Boolean;
4022
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
4023
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
4024
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4025
+ readonly ok: import("effect/Schema").Boolean;
4026
+ }>>, 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<{
4027
+ readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
4028
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4029
+ readonly url: import("effect/Schema").String;
4030
+ }>>, 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<{
4031
+ readonly key: import("effect/Schema").NonEmptyString;
4032
+ 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">]>>;
4033
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4034
+ readonly valid: import("effect/Schema").Boolean;
4035
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
4036
+ readonly message: import("effect/Schema").String;
4037
+ readonly code: import("effect/Schema").String;
4038
+ }>>;
4039
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
4040
+ readonly id: import("effect/Schema").String;
4041
+ readonly configId: import("effect/Schema").String;
4042
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
4043
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
4044
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
4045
+ readonly referenceId: import("effect/Schema").String;
4046
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
4047
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
4048
+ readonly createdAt: import("effect/Schema").Date;
4049
+ readonly updatedAt: import("effect/Schema").Date;
4050
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
4051
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
4052
+ }>>;
4053
+ }>>, 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<{
4054
+ readonly password: import("effect/Schema").NonEmptyString;
4055
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4056
+ readonly ok: import("effect/Schema").Boolean;
4057
+ }>>, 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>>;