@krak-stack/auth 0.3.0 → 0.3.2

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,74 +1,58 @@
1
1
  import { HttpApi } from "effect/http-api";
2
- export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3
- readonly userId: import("effect/Schema").String;
4
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
5
- readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
6
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
7
- readonly user: import("effect/Schema").Struct<{
8
- readonly id: import("effect/Schema").String;
9
- readonly name: import("effect/Schema").String;
10
- readonly email: import("effect/Schema").String;
11
- readonly emailVerified: import("effect/Schema").Boolean;
12
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
13
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
14
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
15
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
16
- readonly email: import("effect/Schema").NonEmptyString;
17
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
18
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
19
- readonly label: import("effect/Schema").NonEmptyString;
20
- }>>;
21
- }>>>;
22
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
23
- readonly number: import("effect/Schema").NonEmptyString;
24
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
25
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
26
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
27
- readonly label: import("effect/Schema").NonEmptyString;
28
- }>>;
29
- }>>>;
30
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
31
- readonly url: import("effect/Schema").NonEmptyString;
32
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
33
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
34
- readonly label: import("effect/Schema").NonEmptyString;
35
- }>>;
36
- }>>>;
37
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
38
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
39
- readonly url: import("effect/Schema").NonEmptyString;
40
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
41
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
42
- readonly label: import("effect/Schema").NonEmptyString;
43
- }>>;
44
- }>>>;
45
- }>, import("effect/Schema").Unknown, never, never>>>;
46
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
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>;
51
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
52
- readonly createdAt: import("effect/Schema").DateFromString;
53
- readonly updatedAt: import("effect/Schema").DateFromString;
54
- }>;
55
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
56
- readonly userId: import("effect/Schema").String;
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<{
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<{
72
56
  readonly id: import("effect/Schema").String;
73
57
  readonly name: import("effect/Schema").String;
74
58
  readonly email: import("effect/Schema").String;
@@ -109,28 +93,15 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
109
93
  }>, import("effect/Schema").Unknown, never, never>>>;
110
94
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
111
95
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
112
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
113
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
114
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
115
96
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
116
- readonly createdAt: import("effect/Schema").DateFromString;
117
- readonly updatedAt: import("effect/Schema").DateFromString;
118
- }>;
119
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
120
- readonly session: import("effect/Schema").Struct<{
121
- readonly id: import("effect/Schema").String;
122
- readonly expiresAt: import("effect/Schema").DateFromString;
123
- readonly token: import("effect/Schema").String;
124
- readonly createdAt: import("effect/Schema").DateFromString;
125
- readonly updatedAt: import("effect/Schema").DateFromString;
126
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
127
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
128
- readonly userId: import("effect/Schema").String;
129
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
130
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
132
- }>;
133
- readonly user: import("effect/Schema").Struct<{
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<{
134
105
  readonly id: import("effect/Schema").String;
135
106
  readonly name: import("effect/Schema").String;
136
107
  readonly email: import("effect/Schema").String;
@@ -171,16 +142,100 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
171
142
  }>, import("effect/Schema").Unknown, never, never>>>;
172
143
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
173
144
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
174
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
175
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
176
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
177
145
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
178
- readonly createdAt: import("effect/Schema").DateFromString;
179
- readonly updatedAt: import("effect/Schema").DateFromString;
180
- }>;
181
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
182
- readonly userId: import("effect/Schema").String;
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;
183
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;
184
239
  readonly user: import("effect/Schema").Struct<{
185
240
  readonly id: import("effect/Schema").String;
186
241
  readonly name: import("effect/Schema").String;
@@ -222,60 +277,138 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
222
277
  }>, import("effect/Schema").Unknown, never, never>>>;
223
278
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
224
279
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
225
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
226
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
227
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
228
280
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
229
- readonly createdAt: import("effect/Schema").DateFromString;
230
- readonly updatedAt: import("effect/Schema").DateFromString;
281
+ readonly createdAt: import("effect/Schema").Date;
282
+ readonly updatedAt: import("effect/Schema").Date;
231
283
  }>;
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"]>>;
244
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
245
- readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
246
- readonly id: import("effect/Schema").String;
247
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
248
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
249
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
250
- readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
251
- readonly referenceId: import("effect/Schema").String;
252
- readonly configId: import("effect/Schema").String;
253
- readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").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>>;
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;
409
+ readonly userId: import("effect/Schema").String;
410
+ readonly role: import("effect/Schema").String;
411
+ readonly createdAt: import("effect/Schema").Date;
279
412
  readonly user: import("effect/Schema").Struct<{
280
413
  readonly id: import("effect/Schema").String;
281
414
  readonly name: import("effect/Schema").String;
@@ -317,45 +450,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
317
450
  }>, import("effect/Schema").Unknown, never, never>>>;
318
451
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
319
452
  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
453
  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>>;
454
+ readonly createdAt: import("effect/Schema").Date;
455
+ readonly updatedAt: import("effect/Schema").Date;
350
456
  }>;
351
- readonly user: import("effect/Schema").Struct<{
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>;
460
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
461
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
352
462
  readonly id: import("effect/Schema").String;
353
463
  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<{
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
+ }>>;
359
475
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
360
476
  readonly email: import("effect/Schema").NonEmptyString;
361
477
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -386,36 +502,169 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
386
502
  readonly label: import("effect/Schema").NonEmptyString;
387
503
  }>>;
388
504
  }>>>;
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>>;
408
- }>>;
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>>>;
414
- }>>, never, import("effect/Schema").toCodecJson<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<{
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>;
511
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
512
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
513
+ readonly label: import("effect/Schema").NonEmptyString;
514
+ }>>;
515
+ }>>>;
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;
519
+ }>>;
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>;
666
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
667
+ readonly user: import("effect/Schema").Struct<{
419
668
  readonly id: import("effect/Schema").String;
420
669
  readonly name: import("effect/Schema").String;
421
670
  readonly email: import("effect/Schema").String;
@@ -462,187 +711,72 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
462
711
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
463
712
  readonly createdAt: import("effect/Schema").DateFromString;
464
713
  readonly updatedAt: import("effect/Schema").DateFromString;
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;
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<{
473
716
  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>;
479
- }>>, never, import("effect/Schema").toCodecJson<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
717
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
496
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
718
+ readonly session: import("effect/Schema").Struct<{
497
719
  readonly id: import("effect/Schema").String;
498
- readonly email: 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;
505
720
  readonly expiresAt: import("effect/Schema").DateFromString;
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;
721
+ readonly token: import("effect/Schema").String;
513
722
  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;
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>>;
571
726
  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<{
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<{
614
732
  readonly id: import("effect/Schema").String;
733
+ readonly name: import("effect/Schema").String;
615
734
  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<{
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<{
646
780
  readonly session: import("effect/Schema").Struct<{
647
781
  readonly id: import("effect/Schema").String;
648
782
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -704,220 +838,104 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
704
838
  readonly createdAt: import("effect/Schema").DateFromString;
705
839
  readonly updatedAt: import("effect/Schema").DateFromString;
706
840
  }>;
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>]>>;
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;
713
843
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
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;
726
895
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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<{
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>;
742
899
  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<{
755
900
  readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
756
901
  readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
757
902
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
758
903
  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>;
764
904
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
765
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
905
+ readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
766
906
  readonly id: import("effect/Schema").String;
767
- readonly organizationId: import("effect/Schema").String;
768
- readonly userId: import("effect/Schema").String;
769
- readonly role: import("effect/Schema").String;
770
- readonly createdAt: import("effect/Schema").DateFromString;
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
- }>;
809
- }>>;
810
- readonly total: import("effect/Schema").Finite;
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;
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>;
842
924
  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>>>;
843
929
  }>>;
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<{
930
+ 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<{
902
934
  readonly newPassword: import("effect/Schema").String;
903
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
904
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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"]>;
935
+ readonly currentPassword: import("effect/Schema").String;
936
+ readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
909
937
  }>>, 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>>;
938
+ readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
921
939
  readonly user: import("effect/Schema").Struct<{
922
940
  readonly id: import("effect/Schema").String;
923
941
  readonly name: import("effect/Schema").String;
@@ -966,17 +984,30 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
966
984
  readonly createdAt: import("effect/Schema").DateFromString;
967
985
  readonly updatedAt: import("effect/Schema").DateFromString;
968
986
  }>;
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>;
978
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>;
979
989
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
990
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
991
+ }>>, 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
+ }>;
980
1011
  readonly user: import("effect/Schema").Struct<{
981
1012
  readonly id: import("effect/Schema").String;
982
1013
  readonly name: import("effect/Schema").String;
@@ -1025,31 +1056,21 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1025
1056
  readonly createdAt: import("effect/Schema").DateFromString;
1026
1057
  readonly updatedAt: import("effect/Schema").DateFromString;
1027
1058
  }>;
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<{
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<{
1029
1060
  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>;
1032
1061
  readonly provider: import("effect/Schema").String;
1033
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1034
1062
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1035
1063
  readonly token: import("effect/Schema").String;
1036
1064
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1037
1065
  readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1038
1066
  readonly refreshToken: import("effect/Schema").optional<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
- }>>;
1067
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1047
1068
  }>>;
1048
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1049
1069
  readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1050
- readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1070
+ 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>;
1051
1073
  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>;
1053
1074
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1054
1075
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1055
1076
  readonly redirect: import("effect/Schema").Boolean;
@@ -1103,83 +1124,198 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1103
1124
  readonly updatedAt: import("effect/Schema").DateFromString;
1104
1125
  }>>;
1105
1126
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
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>;
1110
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>;
1115
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>;
1120
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>;
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>;
1126
1138
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1127
1139
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1128
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1129
- readonly user: import("effect/Schema").Struct<{
1130
- readonly id: import("effect/Schema").String;
1131
- readonly name: import("effect/Schema").String;
1132
- readonly email: 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>>;
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;
1155
+ }>>, 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>;
1195
+ }>>, 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;
1206
+ }>>, 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<{
1274
+ readonly id: import("effect/Schema").String;
1275
+ 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;
1174
1310
  readonly createdAt: import("effect/Schema").DateFromString;
1175
1311
  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>>;
1176
1318
  }>;
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>;
1183
1319
  readonly user: import("effect/Schema").Struct<{
1184
1320
  readonly id: import("effect/Schema").String;
1185
1321
  readonly name: import("effect/Schema").String;
@@ -1228,109 +1364,220 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1228
1364
  readonly createdAt: import("effect/Schema").DateFromString;
1229
1365
  readonly updatedAt: import("effect/Schema").DateFromString;
1230
1366
  }>;
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>;
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>]>>;
1235
1373
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1236
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1237
- readonly user: import("effect/Schema").Struct<{
1238
- readonly id: import("effect/Schema").String;
1239
- readonly name: import("effect/Schema").String;
1240
- readonly email: import("effect/Schema").String;
1241
- readonly emailVerified: import("effect/Schema").Boolean;
1242
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1243
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1244
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1245
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1246
- readonly email: import("effect/Schema").NonEmptyString;
1247
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1248
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1249
- readonly label: import("effect/Schema").NonEmptyString;
1250
- }>>;
1251
- }>>>;
1252
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1253
- readonly number: import("effect/Schema").NonEmptyString;
1254
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1255
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1256
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1257
- readonly label: import("effect/Schema").NonEmptyString;
1258
- }>>;
1259
- }>>>;
1260
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1261
- readonly url: import("effect/Schema").NonEmptyString;
1262
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1263
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1264
- readonly label: import("effect/Schema").NonEmptyString;
1265
- }>>;
1266
- }>>>;
1267
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1268
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1269
- readonly url: import("effect/Schema").NonEmptyString;
1270
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1271
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1272
- readonly label: import("effect/Schema").NonEmptyString;
1273
- }>>;
1274
- }>>>;
1275
- }>, import("effect/Schema").Unknown, never, never>>>;
1276
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1277
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1278
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1279
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1280
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1281
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
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;
1386
+ }>>, 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;
1282
1513
  readonly createdAt: import("effect/Schema").DateFromString;
1283
- readonly updatedAt: import("effect/Schema").DateFromString;
1284
1514
  }>;
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>;
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>;
1288
1558
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1289
1559
  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
- }>>>;
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
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1326
1564
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1327
1565
  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<{
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<{
1329
1567
  readonly email: import("effect/Schema").String;
1330
- readonly otp: import("effect/Schema").String;
1568
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1331
1569
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1332
- readonly status: import("effect/Schema").Literal<true>;
1333
- readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
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>>;
1334
1581
  readonly user: import("effect/Schema").Struct<{
1335
1582
  readonly id: import("effect/Schema").String;
1336
1583
  readonly name: import("effect/Schema").String;
@@ -1362,253 +1609,34 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1362
1609
  }>>;
1363
1610
  }>>>;
1364
1611
  readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1365
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1366
- readonly url: import("effect/Schema").NonEmptyString;
1367
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1368
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1369
- readonly label: import("effect/Schema").NonEmptyString;
1370
- }>>;
1371
- }>>>;
1372
- }>, import("effect/Schema").Unknown, never, never>>>;
1373
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1374
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1375
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1376
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1377
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1378
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1379
- readonly createdAt: import("effect/Schema").DateFromString;
1380
- readonly updatedAt: import("effect/Schema").DateFromString;
1381
- }>;
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<{
1393
- readonly id: import("effect/Schema").String;
1394
- readonly name: import("effect/Schema").String;
1395
- readonly ready: import("effect/Schema").Boolean;
1396
- }>>;
1397
- readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1398
- readonly id: import("effect/Schema").String;
1399
- readonly name: import("effect/Schema").String;
1400
- readonly personal: import("effect/Schema").Boolean;
1401
- }>>;
1402
- readonly adminAccount: import("effect/Schema").Boolean;
1403
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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;
1480
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
1484
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>>;
1490
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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">]>>;
1499
- }>>, never, import("effect/Schema").toCodecJson<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<{
1506
- readonly id: 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;
1521
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
1529
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
1612
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1613
+ readonly url: import("effect/Schema").NonEmptyString;
1614
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1615
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1616
+ readonly label: import("effect/Schema").NonEmptyString;
1617
+ }>>;
1618
+ }>>>;
1619
+ }>, import("effect/Schema").Unknown, never, never>>>;
1620
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1621
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1622
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1623
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1624
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1625
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1626
+ readonly createdAt: import("effect/Schema").DateFromString;
1627
+ readonly updatedAt: import("effect/Schema").DateFromString;
1628
+ }>;
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<{
1634
+ readonly email: import("effect/Schema").String;
1635
+ 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
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1639
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1612
1640
  readonly user: import("effect/Schema").Struct<{
1613
1641
  readonly id: import("effect/Schema").String;
1614
1642
  readonly name: import("effect/Schema").String;
@@ -1650,138 +1678,114 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1650
1678
  }>, import("effect/Schema").Unknown, never, never>>>;
1651
1679
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1652
1680
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1681
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1682
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1683
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1653
1684
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1654
- readonly createdAt: import("effect/Schema").Date;
1655
- readonly updatedAt: import("effect/Schema").Date;
1685
+ readonly createdAt: import("effect/Schema").DateFromString;
1686
+ readonly updatedAt: import("effect/Schema").DateFromString;
1656
1687
  }>;
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;
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>;
1712
1704
  }>>;
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>>;
1705
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1732
1706
  }>>;
1733
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1734
- readonly email: import("effect/Schema").NonEmptyString;
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 phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1741
- readonly number: import("effect/Schema").NonEmptyString;
1742
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1743
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1744
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1745
- readonly label: import("effect/Schema").NonEmptyString;
1746
- }>>;
1747
- }>>>;
1748
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1756
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1757
- readonly url: import("effect/Schema").NonEmptyString;
1758
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1759
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1760
- readonly label: import("effect/Schema").NonEmptyString;
1761
- }>>;
1762
- }>>>;
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;
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<{
1718
+ readonly id: import("effect/Schema").String;
1719
+ 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;
1764
+ }>>;
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>;
1770
+ }>>, 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>;
1775
+ }>>, 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>;
1780
+ }>>, 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>;
1787
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1788
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1785
1789
  readonly user: import("effect/Schema").Struct<{
1786
1790
  readonly id: import("effect/Schema").String;
1787
1791
  readonly name: import("effect/Schema").String;
@@ -1823,28 +1827,27 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1823
1827
  }>, import("effect/Schema").Unknown, never, never>>>;
1824
1828
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1825
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>;
1826
1833
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1827
- readonly createdAt: import("effect/Schema").Date;
1828
- readonly updatedAt: import("effect/Schema").Date;
1834
+ readonly createdAt: import("effect/Schema").DateFromString;
1835
+ readonly updatedAt: import("effect/Schema").DateFromString;
1829
1836
  }>;
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<{
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>;
1841
+ }>>, 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<{
1835
1844
  readonly id: import("effect/Schema").String;
1836
1845
  readonly name: import("effect/Schema").String;
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
- }>>;
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<{
1848
1851
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1849
1852
  readonly email: import("effect/Schema").NonEmptyString;
1850
1853
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1875,32 +1878,80 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1875
1878
  readonly label: import("effect/Schema").NonEmptyString;
1876
1879
  }>>;
1877
1880
  }>>>;
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>;
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>;
1895
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1896
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1897
+ readonly user: import("effect/Schema").Struct<{
1898
+ readonly id: import("effect/Schema").String;
1899
+ readonly name: import("effect/Schema").String;
1900
+ readonly email: import("effect/Schema").String;
1901
+ readonly emailVerified: import("effect/Schema").Boolean;
1902
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
1903
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1904
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1905
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1906
+ readonly email: import("effect/Schema").NonEmptyString;
1884
1907
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1885
1908
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1886
1909
  readonly label: import("effect/Schema").NonEmptyString;
1887
1910
  }>>;
1888
1911
  }>>>;
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;
1892
- }>>;
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<{
1897
- readonly id: import("effect/Schema").String;
1898
- readonly name: import("effect/Schema").String;
1899
- readonly email: import("effect/Schema").String;
1900
- readonly emailVerified: import("effect/Schema").Boolean;
1912
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1913
+ readonly number: import("effect/Schema").NonEmptyString;
1914
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1915
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1916
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1917
+ readonly label: import("effect/Schema").NonEmptyString;
1918
+ }>>;
1919
+ }>>>;
1920
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1921
+ readonly url: import("effect/Schema").NonEmptyString;
1922
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1923
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1924
+ readonly label: import("effect/Schema").NonEmptyString;
1925
+ }>>;
1926
+ }>>>;
1927
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1928
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1929
+ readonly url: import("effect/Schema").NonEmptyString;
1930
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1931
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1932
+ readonly label: import("effect/Schema").NonEmptyString;
1933
+ }>>;
1934
+ }>>>;
1935
+ }>, import("effect/Schema").Unknown, never, never>>>;
1936
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1937
+ 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
+ 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;
1944
+ }>;
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<{
1901
1951
  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<{
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<{
1904
1955
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1905
1956
  readonly email: import("effect/Schema").NonEmptyString;
1906
1957
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1931,67 +1982,206 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1931
1982
  readonly label: import("effect/Schema").NonEmptyString;
1932
1983
  }>>;
1933
1984
  }>>>;
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<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1945
- readonly ids: import("effect/Schema").NonEmptyString;
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>;
1994
+ readonly user: import("effect/Schema").Struct<{
1995
+ readonly id: import("effect/Schema").String;
1996
+ readonly name: import("effect/Schema").String;
1997
+ readonly email: import("effect/Schema").String;
1998
+ readonly emailVerified: import("effect/Schema").Boolean;
1999
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
2000
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2001
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
2002
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2003
+ readonly email: import("effect/Schema").NonEmptyString;
2004
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2005
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2006
+ readonly label: import("effect/Schema").NonEmptyString;
2007
+ }>>;
2008
+ }>>>;
2009
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2010
+ readonly number: import("effect/Schema").NonEmptyString;
2011
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
2012
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2013
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2014
+ readonly label: import("effect/Schema").NonEmptyString;
2015
+ }>>;
2016
+ }>>>;
2017
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2018
+ readonly url: import("effect/Schema").NonEmptyString;
2019
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2020
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2021
+ readonly label: import("effect/Schema").NonEmptyString;
2022
+ }>>;
2023
+ }>>>;
2024
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2025
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
2026
+ readonly url: import("effect/Schema").NonEmptyString;
2027
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2028
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2029
+ readonly label: import("effect/Schema").NonEmptyString;
2030
+ }>>;
2031
+ }>>>;
2032
+ }>, import("effect/Schema").Unknown, never, never>>>;
2033
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
2034
+ 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
+ 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;
2041
+ }>;
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<{
2059
+ readonly id: import("effect/Schema").String;
2060
+ readonly name: import("effect/Schema").String;
2061
+ readonly personal: import("effect/Schema").Boolean;
2062
+ }>>;
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>;
1946
2122
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1947
- readonly data: import("effect/Schema").$Array<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<{
2137
+ readonly id: import("effect/Schema").String;
2138
+ 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;
2165
+ }>>;
2166
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1948
2167
  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>>;
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>;
1989
2175
  readonly createdAt: import("effect/Schema").Date;
1990
2176
  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>;
1991
2179
  }>>;
1992
- readonly missingIds: 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>, false>>;
1994
- 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<{
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<{
1995
2185
  readonly hostname: import("effect/Schema").NonEmptyString;
1996
2186
  readonly rootHostname: import("effect/Schema").NonEmptyString;
1997
2187
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -3864,145 +4054,4 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3864
4054
  readonly createdAt: import("effect/Schema").DateFromString;
3865
4055
  readonly updatedAt: import("effect/Schema").DateFromString;
3866
4056
  }>;
3867
- }>>, 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<{
3868
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3869
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3870
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3871
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3872
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3873
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3874
- readonly id: import("effect/Schema").String;
3875
- readonly key: import("effect/Schema").String;
3876
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3877
- readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3878
- readonly id: import("effect/Schema").String;
3879
- readonly name: import("effect/Schema").String;
3880
- readonly ready: import("effect/Schema").Boolean;
3881
- }>>;
3882
- readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3883
- readonly id: import("effect/Schema").String;
3884
- readonly name: import("effect/Schema").String;
3885
- readonly personal: import("effect/Schema").Boolean;
3886
- }>>;
3887
- readonly adminAccount: import("effect/Schema").Boolean;
3888
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3889
- readonly organizationId: import("effect/Schema").String;
3890
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
3891
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3892
- readonly id: import("effect/Schema").String;
3893
- readonly name: import("effect/Schema").String;
3894
- readonly slug: import("effect/Schema").String;
3895
- readonly displayName: import("effect/Schema").String;
3896
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
3897
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3898
- readonly email: import("effect/Schema").NonEmptyString;
3899
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3900
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3901
- readonly label: import("effect/Schema").NonEmptyString;
3902
- }>>;
3903
- }>>>;
3904
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3905
- readonly number: import("effect/Schema").NonEmptyString;
3906
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
3907
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3908
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3909
- readonly label: import("effect/Schema").NonEmptyString;
3910
- }>>;
3911
- }>>>;
3912
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3913
- readonly url: import("effect/Schema").NonEmptyString;
3914
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3915
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3916
- readonly label: import("effect/Schema").NonEmptyString;
3917
- }>>;
3918
- }>>>;
3919
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3920
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
3921
- readonly url: import("effect/Schema").NonEmptyString;
3922
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3923
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3924
- readonly label: import("effect/Schema").NonEmptyString;
3925
- }>>;
3926
- }>>>;
3927
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3928
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
3929
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
3930
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
3931
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
3932
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
3933
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3934
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3935
- readonly label: import("effect/Schema").NonEmptyString;
3936
- }>>;
3937
- readonly formatted: import("effect/Schema").String;
3938
- }>>>;
3939
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
3940
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
3941
- }>>, 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<{
3942
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
3943
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
3944
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
3945
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
3946
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3947
- readonly projectKey: import("effect/Schema").String;
3948
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3949
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
3950
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3951
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3952
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
3953
- readonly authOptions: import("effect/Schema").Struct<{
3954
- readonly emailPassword: import("effect/Schema").Boolean;
3955
- readonly emailOtp: import("effect/Schema").Boolean;
3956
- readonly google: import("effect/Schema").Boolean;
3957
- }>;
3958
- }>>, 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<{
3959
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3960
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3961
- readonly id: import("effect/Schema").String;
3962
- readonly name: import("effect/Schema").String;
3963
- }>>>, 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<{
3964
- readonly newPassword: import("effect/Schema").NonEmptyString;
3965
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3966
- readonly ok: import("effect/Schema").Boolean;
3967
- }>>, 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<{
3968
- keyId: import("effect/Schema").NonEmptyString;
3969
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3970
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3971
- readonly name: import("effect/Schema").NonEmptyString;
3972
- readonly enabled: import("effect/Schema").Boolean;
3973
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3974
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3975
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3976
- readonly ok: import("effect/Schema").Boolean;
3977
- }>>, 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<{
3978
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
3979
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3980
- readonly url: import("effect/Schema").String;
3981
- }>>, 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<{
3982
- readonly key: import("effect/Schema").NonEmptyString;
3983
- 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">]>>;
3984
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3985
- readonly valid: import("effect/Schema").Boolean;
3986
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3987
- readonly message: import("effect/Schema").String;
3988
- readonly code: import("effect/Schema").String;
3989
- }>>;
3990
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3991
- readonly id: import("effect/Schema").String;
3992
- readonly configId: import("effect/Schema").String;
3993
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3994
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
3995
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
3996
- readonly referenceId: import("effect/Schema").String;
3997
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
3998
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
3999
- readonly createdAt: import("effect/Schema").Date;
4000
- readonly updatedAt: import("effect/Schema").Date;
4001
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
4002
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
4003
- }>>;
4004
- }>>, 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<{
4005
- readonly password: import("effect/Schema").NonEmptyString;
4006
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4007
- readonly ok: import("effect/Schema").Boolean;
4008
- }>>, 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>>;
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>>;