@krak-stack/auth 0.2.0 → 0.2.1

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,471 +1,9 @@
1
1
  import { HttpApi } from "effect/unstable/httpapi";
2
- export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
3
- readonly id: import("effect/Schema").NonEmptyString;
4
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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 image: import("effect/Schema").NullOr<import("effect/Schema").String>;
10
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
11
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
12
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
13
- readonly createdAt: import("effect/Schema").Date;
14
- readonly updatedAt: import("effect/Schema").Date;
15
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
16
- readonly userId: import("effect/Schema").NonEmptyString;
17
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
18
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
19
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
20
- readonly ids: import("effect/Schema").NonEmptyString;
21
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
22
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
23
- readonly id: import("effect/Schema").String;
24
- readonly name: import("effect/Schema").String;
25
- readonly email: import("effect/Schema").String;
26
- readonly emailVerified: import("effect/Schema").Boolean;
27
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
28
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
29
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
30
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
31
- readonly createdAt: import("effect/Schema").Date;
32
- readonly updatedAt: import("effect/Schema").Date;
33
- }>>;
34
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
35
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
36
- readonly hostname: import("effect/Schema").NonEmptyString;
37
- readonly rootHostname: import("effect/Schema").NonEmptyString;
38
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
39
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
40
- readonly managed: import("effect/Schema").Boolean;
41
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
42
- readonly id: import("effect/Schema").String;
43
- readonly hostname: import("effect/Schema").String;
44
- readonly rootHostname: import("effect/Schema").String;
45
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
46
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
47
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
48
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
49
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
50
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
51
- readonly hostnameId: import("effect/Schema").String;
52
- readonly managed: import("effect/Schema").Boolean;
53
- readonly active: import("effect/Schema").Boolean;
54
- readonly createdAt: import("effect/Schema").Date;
55
- readonly updatedAt: import("effect/Schema").Date;
56
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
57
- readonly id: import("effect/Schema").NonEmptyString;
58
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
59
- readonly id: import("effect/Schema").String;
60
- readonly hostname: import("effect/Schema").String;
61
- readonly rootHostname: import("effect/Schema").String;
62
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
63
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
64
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
65
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
66
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
67
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
68
- readonly hostnameId: import("effect/Schema").String;
69
- readonly managed: import("effect/Schema").Boolean;
70
- readonly active: import("effect/Schema").Boolean;
71
- readonly createdAt: import("effect/Schema").Date;
72
- readonly updatedAt: import("effect/Schema").Date;
73
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
74
- readonly id: import("effect/Schema").NonEmptyString;
75
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
76
- readonly id: import("effect/Schema").String;
77
- readonly hostname: import("effect/Schema").String;
78
- readonly rootHostname: import("effect/Schema").String;
79
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
80
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
81
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
82
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
83
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
84
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
85
- readonly hostnameId: import("effect/Schema").String;
86
- readonly managed: import("effect/Schema").Boolean;
87
- readonly active: import("effect/Schema").Boolean;
88
- readonly createdAt: import("effect/Schema").Date;
89
- readonly updatedAt: import("effect/Schema").Date;
90
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
91
- readonly hostname: import("effect/Schema").NonEmptyString;
92
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
93
- readonly id: import("effect/Schema").String;
94
- readonly hostname: import("effect/Schema").String;
95
- readonly rootHostname: import("effect/Schema").String;
96
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
97
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
98
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
99
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
100
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
101
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
102
- readonly hostnameId: import("effect/Schema").String;
103
- readonly managed: import("effect/Schema").Boolean;
104
- readonly active: import("effect/Schema").Boolean;
105
- readonly createdAt: import("effect/Schema").Date;
106
- readonly updatedAt: import("effect/Schema").Date;
107
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
108
- readonly id: import("effect/Schema").NonEmptyString;
109
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
110
- readonly required: import("effect/Schema").Boolean;
111
- readonly status: import("effect/Schema").String;
112
- readonly type: import("effect/Schema").String;
113
- readonly name: import("effect/Schema").String;
114
- readonly value: import("effect/Schema").String;
115
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
116
- readonly organizationId: import("effect/Schema").NonEmptyString;
117
- readonly userId: import("effect/Schema").NonEmptyString;
118
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
119
- readonly id: import("effect/Schema").String;
120
- readonly organizationId: import("effect/Schema").String;
121
- readonly userId: import("effect/Schema").String;
122
- readonly role: import("effect/Schema").String;
123
- readonly createdAt: import("effect/Schema").Date;
124
- readonly user: import("effect/Schema").Struct<{
125
- readonly id: import("effect/Schema").String;
126
- readonly name: import("effect/Schema").String;
127
- readonly email: import("effect/Schema").String;
128
- readonly emailVerified: import("effect/Schema").Boolean;
129
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
130
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
131
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
132
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
133
- readonly createdAt: import("effect/Schema").Date;
134
- readonly updatedAt: import("effect/Schema").Date;
135
- }>;
136
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
137
- readonly id: import("effect/Schema").NonEmptyString;
138
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
139
- readonly id: import("effect/Schema").String;
140
- readonly name: import("effect/Schema").String;
141
- readonly slug: import("effect/Schema").String;
142
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
143
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
144
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
145
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
146
- readonly name: import("effect/Schema").String;
147
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
148
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
149
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
150
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
151
- }>>;
152
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
153
- readonly email: import("effect/Schema").NonEmptyString;
154
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
155
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
156
- readonly label: import("effect/Schema").NonEmptyString;
157
- }>>;
158
- }>>>;
159
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
160
- readonly number: import("effect/Schema").NonEmptyString;
161
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
162
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
163
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
164
- readonly label: import("effect/Schema").NonEmptyString;
165
- }>>;
166
- }>>>;
167
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
168
- readonly url: import("effect/Schema").NonEmptyString;
169
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
170
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
171
- readonly label: import("effect/Schema").NonEmptyString;
172
- }>>;
173
- }>>>;
174
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
175
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
176
- readonly url: import("effect/Schema").NonEmptyString;
177
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
178
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
179
- readonly label: import("effect/Schema").NonEmptyString;
180
- }>>;
181
- }>>>;
182
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
183
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
184
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
185
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
186
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
187
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
188
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
189
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
190
- readonly label: import("effect/Schema").NonEmptyString;
191
- }>>;
192
- }>>>;
193
- }>, import("effect/Schema").Unknown, never, never>>;
194
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
195
- readonly createdAt: import("effect/Schema").Date;
196
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
197
- readonly organizationId: import("effect/Schema").NonEmptyString;
198
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
199
- readonly id: import("effect/Schema").String;
200
- readonly name: import("effect/Schema").String;
201
- readonly slug: import("effect/Schema").String;
202
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
203
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
204
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
205
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
206
- readonly name: import("effect/Schema").String;
207
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
208
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
209
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
210
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
211
- }>>;
212
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
213
- readonly email: import("effect/Schema").NonEmptyString;
214
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
215
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
216
- readonly label: import("effect/Schema").NonEmptyString;
217
- }>>;
218
- }>>>;
219
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
220
- readonly number: import("effect/Schema").NonEmptyString;
221
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
222
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
223
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
224
- readonly label: import("effect/Schema").NonEmptyString;
225
- }>>;
226
- }>>>;
227
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
228
- readonly url: import("effect/Schema").NonEmptyString;
229
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
230
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
231
- readonly label: import("effect/Schema").NonEmptyString;
232
- }>>;
233
- }>>>;
234
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
235
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
236
- readonly url: import("effect/Schema").NonEmptyString;
237
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
238
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
239
- readonly label: import("effect/Schema").NonEmptyString;
240
- }>>;
241
- }>>>;
242
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
243
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
244
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
245
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
246
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
247
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
248
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
249
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
250
- readonly label: import("effect/Schema").NonEmptyString;
251
- }>>;
252
- }>>>;
253
- }>, import("effect/Schema").Unknown, never, never>>;
254
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
255
- readonly createdAt: import("effect/Schema").Date;
256
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
257
- readonly organizationId: import("effect/Schema").NonEmptyString;
258
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
259
- readonly id: import("effect/Schema").String;
260
- readonly organizationId: import("effect/Schema").String;
261
- readonly userId: import("effect/Schema").String;
262
- readonly role: import("effect/Schema").String;
263
- readonly createdAt: import("effect/Schema").Date;
264
- readonly user: import("effect/Schema").Struct<{
265
- readonly id: import("effect/Schema").String;
266
- readonly name: import("effect/Schema").String;
267
- readonly email: import("effect/Schema").String;
268
- readonly emailVerified: import("effect/Schema").Boolean;
269
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
270
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
271
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
272
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
273
- readonly createdAt: import("effect/Schema").Date;
274
- readonly updatedAt: import("effect/Schema").Date;
275
- }>;
276
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
277
- readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
278
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
279
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
280
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
281
- readonly id: import("effect/Schema").String;
282
- readonly name: import("effect/Schema").String;
283
- readonly slug: import("effect/Schema").String;
284
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
285
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
286
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
287
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
288
- readonly name: import("effect/Schema").String;
289
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
290
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
291
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
292
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
293
- }>>;
294
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
295
- readonly email: import("effect/Schema").NonEmptyString;
296
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
297
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
298
- readonly label: import("effect/Schema").NonEmptyString;
299
- }>>;
300
- }>>>;
301
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
302
- readonly number: import("effect/Schema").NonEmptyString;
303
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
304
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
305
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
306
- readonly label: import("effect/Schema").NonEmptyString;
307
- }>>;
308
- }>>>;
309
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
310
- readonly url: import("effect/Schema").NonEmptyString;
311
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
312
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
313
- readonly label: import("effect/Schema").NonEmptyString;
314
- }>>;
315
- }>>>;
316
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
317
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
318
- readonly url: import("effect/Schema").NonEmptyString;
319
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
320
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
321
- readonly label: import("effect/Schema").NonEmptyString;
322
- }>>;
323
- }>>>;
324
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
325
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
326
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
327
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
328
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
329
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
330
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
331
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
332
- readonly label: import("effect/Schema").NonEmptyString;
333
- }>>;
334
- }>>>;
335
- }>, import("effect/Schema").Unknown, never, never>>;
336
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
337
- readonly createdAt: import("effect/Schema").Date;
338
- }>>;
339
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
340
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
341
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
342
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
343
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
344
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
345
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
346
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
347
- readonly id: import("effect/Schema").String;
348
- readonly key: import("effect/Schema").String;
349
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
350
- readonly organizationId: import("effect/Schema").String;
351
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
352
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
353
- readonly id: import("effect/Schema").String;
354
- readonly name: import("effect/Schema").String;
355
- readonly slug: import("effect/Schema").String;
356
- readonly displayName: import("effect/Schema").String;
357
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
358
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
359
- readonly email: import("effect/Schema").NonEmptyString;
360
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
361
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
362
- readonly label: import("effect/Schema").NonEmptyString;
363
- }>>;
364
- }>>>;
365
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
366
- readonly number: import("effect/Schema").NonEmptyString;
367
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
368
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
369
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
370
- readonly label: import("effect/Schema").NonEmptyString;
371
- }>>;
372
- }>>>;
373
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
374
- readonly url: import("effect/Schema").NonEmptyString;
375
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
376
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
377
- readonly label: import("effect/Schema").NonEmptyString;
378
- }>>;
379
- }>>>;
380
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
381
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
382
- readonly url: import("effect/Schema").NonEmptyString;
383
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
384
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
385
- readonly label: import("effect/Schema").NonEmptyString;
386
- }>>;
387
- }>>>;
388
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
389
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
390
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
391
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
392
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
393
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
394
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
395
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
396
- readonly label: import("effect/Schema").NonEmptyString;
397
- }>>;
398
- readonly formatted: import("effect/Schema").String;
399
- }>>>;
400
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
401
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
402
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
403
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
404
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
405
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
406
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
407
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
408
- readonly projectKey: import("effect/Schema").String;
409
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
410
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
411
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
412
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
413
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
414
- readonly authOptions: import("effect/Schema").Struct<{
415
- readonly emailPassword: import("effect/Schema").Boolean;
416
- readonly emailOtp: import("effect/Schema").Boolean;
417
- readonly google: import("effect/Schema").Boolean;
418
- }>;
419
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
420
- readonly newPassword: import("effect/Schema").NonEmptyString;
421
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
422
- readonly ok: import("effect/Schema").Boolean;
423
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
424
- readonly keyId: import("effect/Schema").NonEmptyString;
425
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
426
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
427
- readonly name: import("effect/Schema").NonEmptyString;
428
- readonly enabled: import("effect/Schema").Boolean;
429
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
430
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
431
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
432
- readonly ok: import("effect/Schema").Boolean;
433
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
434
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
435
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
436
- readonly url: import("effect/Schema").String;
437
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
438
- readonly key: import("effect/Schema").NonEmptyString;
439
- 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">]>>;
440
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
441
- readonly valid: import("effect/Schema").Boolean;
442
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
443
- readonly message: import("effect/Schema").String;
444
- readonly code: import("effect/Schema").String;
445
- }>>;
446
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
447
- readonly id: import("effect/Schema").String;
448
- readonly configId: import("effect/Schema").String;
449
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
450
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
451
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
452
- readonly referenceId: import("effect/Schema").String;
453
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
454
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
455
- readonly createdAt: import("effect/Schema").Date;
456
- readonly updatedAt: import("effect/Schema").Date;
457
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
458
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
459
- }>>;
460
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
461
- readonly password: import("effect/Schema").NonEmptyString;
462
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
463
- readonly ok: import("effect/Schema").Boolean;
464
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2
+ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
465
3
  readonly userId: import("effect/Schema").String;
466
4
  readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
467
5
  readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
468
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
6
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
469
7
  readonly user: import("effect/Schema").Struct<{
470
8
  readonly id: import("effect/Schema").String;
471
9
  readonly name: import("effect/Schema").String;
@@ -481,9 +19,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
481
19
  readonly createdAt: import("effect/Schema").DateFromString;
482
20
  readonly updatedAt: import("effect/Schema").DateFromString;
483
21
  }>;
484
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
22
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
485
23
  readonly userId: import("effect/Schema").String;
486
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
24
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
487
25
  readonly session: import("effect/Schema").Struct<{
488
26
  readonly id: import("effect/Schema").String;
489
27
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -512,7 +50,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
512
50
  readonly createdAt: import("effect/Schema").DateFromString;
513
51
  readonly updatedAt: import("effect/Schema").DateFromString;
514
52
  }>;
515
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
53
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
516
54
  readonly session: import("effect/Schema").Struct<{
517
55
  readonly id: import("effect/Schema").String;
518
56
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -541,9 +79,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
541
79
  readonly createdAt: import("effect/Schema").DateFromString;
542
80
  readonly updatedAt: import("effect/Schema").DateFromString;
543
81
  }>;
544
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
82
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
545
83
  readonly userId: import("effect/Schema").String;
546
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
84
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
547
85
  readonly user: import("effect/Schema").Struct<{
548
86
  readonly id: import("effect/Schema").String;
549
87
  readonly name: import("effect/Schema").String;
@@ -559,19 +97,19 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
559
97
  readonly createdAt: import("effect/Schema").DateFromString;
560
98
  readonly updatedAt: import("effect/Schema").DateFromString;
561
99
  }>;
562
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
100
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
563
101
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
564
102
  readonly keyId: import("effect/Schema").String;
565
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
103
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
566
104
  readonly success: import("effect/Schema").Boolean;
567
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
105
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
568
106
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
569
107
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
570
108
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
571
109
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
572
110
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
573
111
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
574
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
112
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
575
113
  readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
576
114
  readonly id: import("effect/Schema").String;
577
115
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -600,11 +138,11 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
600
138
  readonly total: import("effect/Schema").Number;
601
139
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
602
140
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
603
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
141
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
604
142
  readonly newPassword: import("effect/Schema").String;
605
143
  readonly currentPassword: import("effect/Schema").String;
606
144
  readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
607
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
145
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
608
146
  readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
609
147
  readonly user: import("effect/Schema").Struct<{
610
148
  readonly id: import("effect/Schema").String;
@@ -621,10 +159,10 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
621
159
  readonly createdAt: import("effect/Schema").DateFromString;
622
160
  readonly updatedAt: import("effect/Schema").DateFromString;
623
161
  }>;
624
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
162
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
625
163
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
626
164
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
627
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
165
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
628
166
  readonly session: import("effect/Schema").Struct<{
629
167
  readonly id: import("effect/Schema").String;
630
168
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -653,7 +191,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
653
191
  readonly createdAt: import("effect/Schema").DateFromString;
654
192
  readonly updatedAt: import("effect/Schema").DateFromString;
655
193
  }>;
656
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
194
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
657
195
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
658
196
  readonly provider: import("effect/Schema").String;
659
197
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
@@ -668,7 +206,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
668
206
  readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
669
207
  readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
670
208
  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>>>;
671
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
209
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
672
210
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
673
211
  readonly redirect: import("effect/Schema").Boolean;
674
212
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -688,7 +226,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
688
226
  readonly updatedAt: import("effect/Schema").DateFromString;
689
227
  }>>;
690
228
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
691
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
229
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
692
230
  readonly id: import("effect/Schema").String;
693
231
  readonly providerId: import("effect/Schema").String;
694
232
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -696,16 +234,16 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
696
234
  readonly accountId: import("effect/Schema").String;
697
235
  readonly userId: import("effect/Schema").String;
698
236
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
699
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
237
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
700
238
  readonly accept: import("effect/Schema").Boolean;
701
239
  readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
702
240
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
703
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
241
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
704
242
  readonly redirect: import("effect/Schema").Boolean;
705
243
  readonly url: import("effect/Schema").String;
706
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
244
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
707
245
  readonly client_id: import("effect/Schema").String;
708
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
246
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
709
247
  readonly client_id: import("effect/Schema").String;
710
248
  readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
711
249
  readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -714,9 +252,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
714
252
  readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
715
253
  readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
716
254
  readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
717
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
255
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
718
256
  readonly invitationId: import("effect/Schema").String;
719
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
257
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
720
258
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
721
259
  readonly id: import("effect/Schema").String;
722
260
  readonly email: import("effect/Schema").String;
@@ -736,9 +274,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
736
274
  readonly role: import("effect/Schema").String;
737
275
  readonly createdAt: import("effect/Schema").DateFromString;
738
276
  }>>;
739
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
277
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
740
278
  readonly invitationId: import("effect/Schema").String;
741
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
279
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
742
280
  readonly id: import("effect/Schema").String;
743
281
  readonly email: import("effect/Schema").String;
744
282
  readonly role: import("effect/Schema").String;
@@ -749,14 +287,14 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
749
287
  readonly status: import("effect/Schema").String;
750
288
  readonly expiresAt: import("effect/Schema").DateFromString;
751
289
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
752
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
290
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
753
291
  readonly name: import("effect/Schema").NonEmptyString;
754
292
  readonly slug: import("effect/Schema").NonEmptyString;
755
293
  readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
756
294
  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>>>;
757
295
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
758
296
  readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
759
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
297
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
760
298
  readonly id: import("effect/Schema").String;
761
299
  readonly name: import("effect/Schema").String;
762
300
  readonly slug: import("effect/Schema").String;
@@ -765,11 +303,11 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
765
303
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
766
304
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
767
305
  readonly createdAt: import("effect/Schema").DateFromString;
768
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
306
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
769
307
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
770
308
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
771
309
  readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
772
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
310
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
773
311
  readonly id: import("effect/Schema").String;
774
312
  readonly name: import("effect/Schema").String;
775
313
  readonly slug: import("effect/Schema").String;
@@ -812,9 +350,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
812
350
  readonly expiresAt: import("effect/Schema").DateFromString;
813
351
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
814
352
  }>>;
815
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
353
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
816
354
  readonly id: import("effect/Schema").String;
817
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
355
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
818
356
  readonly id: import("effect/Schema").String;
819
357
  readonly email: import("effect/Schema").String;
820
358
  readonly role: import("effect/Schema").String;
@@ -827,12 +365,12 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
827
365
  readonly organizationName: import("effect/Schema").String;
828
366
  readonly organizationSlug: import("effect/Schema").String;
829
367
  readonly inviterEmail: import("effect/Schema").String;
830
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
368
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
831
369
  readonly organizationId: import("effect/Schema").NonEmptyString;
832
370
  readonly actorUserId: import("effect/Schema").NonEmptyString;
833
371
  readonly targetUserId: import("effect/Schema").NonEmptyString;
834
372
  readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
835
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
373
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
836
374
  readonly session: import("effect/Schema").Struct<{
837
375
  readonly id: import("effect/Schema").String;
838
376
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -861,13 +399,13 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
861
399
  readonly createdAt: import("effect/Schema").DateFromString;
862
400
  readonly updatedAt: import("effect/Schema").DateFromString;
863
401
  }>;
864
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
402
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
865
403
  readonly email: import("effect/Schema").String;
866
404
  readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
867
405
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
868
406
  readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
869
407
  readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
870
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
408
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
871
409
  readonly id: import("effect/Schema").String;
872
410
  readonly email: import("effect/Schema").String;
873
411
  readonly role: import("effect/Schema").String;
@@ -878,15 +416,15 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
878
416
  readonly status: import("effect/Schema").String;
879
417
  readonly expiresAt: import("effect/Schema").DateFromString;
880
418
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
881
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
419
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
882
420
  readonly organizationId: import("effect/Schema").String;
883
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
421
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
884
422
  readonly id: import("effect/Schema").String;
885
423
  readonly organizationId: import("effect/Schema").String;
886
424
  readonly userId: import("effect/Schema").String;
887
425
  readonly role: import("effect/Schema").String;
888
426
  readonly createdAt: import("effect/Schema").DateFromString;
889
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
427
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
890
428
  readonly id: import("effect/Schema").String;
891
429
  readonly name: import("effect/Schema").String;
892
430
  readonly slug: import("effect/Schema").String;
@@ -895,9 +433,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
895
433
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
896
434
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
897
435
  readonly createdAt: import("effect/Schema").DateFromString;
898
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
436
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
899
437
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
900
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
438
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
901
439
  readonly id: import("effect/Schema").String;
902
440
  readonly email: import("effect/Schema").String;
903
441
  readonly role: import("effect/Schema").String;
@@ -908,7 +446,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
908
446
  readonly status: import("effect/Schema").String;
909
447
  readonly expiresAt: import("effect/Schema").DateFromString;
910
448
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
911
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
449
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
912
450
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
913
451
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
914
452
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -918,7 +456,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
918
456
  readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
919
457
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
920
458
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
921
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
459
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
922
460
  readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
923
461
  readonly id: import("effect/Schema").String;
924
462
  readonly organizationId: import("effect/Schema").String;
@@ -942,7 +480,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
942
480
  }>;
943
481
  }>>;
944
482
  readonly total: import("effect/Schema").Number;
945
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
483
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/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<{
946
484
  readonly id: import("effect/Schema").String;
947
485
  readonly email: import("effect/Schema").String;
948
486
  readonly role: import("effect/Schema").String;
@@ -953,9 +491,9 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
953
491
  readonly status: import("effect/Schema").String;
954
492
  readonly expiresAt: import("effect/Schema").DateFromString;
955
493
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
956
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
494
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
957
495
  readonly invitationId: import("effect/Schema").String;
958
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
496
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
959
497
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
960
498
  readonly id: import("effect/Schema").String;
961
499
  readonly email: import("effect/Schema").String;
@@ -975,10 +513,10 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
975
513
  readonly role: import("effect/Schema").String;
976
514
  readonly createdAt: import("effect/Schema").DateFromString;
977
515
  }>>;
978
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
516
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
979
517
  readonly memberIdOrEmail: import("effect/Schema").String;
980
518
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
981
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
519
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
982
520
  readonly member: import("effect/Schema").Struct<{
983
521
  readonly id: import("effect/Schema").String;
984
522
  readonly organizationId: import("effect/Schema").String;
@@ -986,10 +524,10 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
986
524
  readonly role: import("effect/Schema").String;
987
525
  readonly createdAt: import("effect/Schema").DateFromString;
988
526
  }>;
989
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
527
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
990
528
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
991
529
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
992
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
530
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
993
531
  readonly id: import("effect/Schema").String;
994
532
  readonly name: import("effect/Schema").String;
995
533
  readonly slug: import("effect/Schema").String;
@@ -998,7 +536,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
998
536
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
999
537
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1000
538
  readonly createdAt: import("effect/Schema").DateFromString;
1001
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
539
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1002
540
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1003
541
  readonly data: import("effect/Schema").Struct<{
1004
542
  readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
@@ -1007,7 +545,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1007
545
  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>>>;
1008
546
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1009
547
  }>;
1010
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
548
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1011
549
  readonly id: import("effect/Schema").String;
1012
550
  readonly name: import("effect/Schema").String;
1013
551
  readonly slug: import("effect/Schema").String;
@@ -1016,39 +554,39 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1016
554
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1017
555
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1018
556
  readonly createdAt: import("effect/Schema").DateFromString;
1019
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
557
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1020
558
  readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1021
559
  readonly memberId: import("effect/Schema").String;
1022
560
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1023
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
561
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1024
562
  readonly id: import("effect/Schema").String;
1025
563
  readonly organizationId: import("effect/Schema").String;
1026
564
  readonly userId: import("effect/Schema").String;
1027
565
  readonly role: import("effect/Schema").String;
1028
566
  readonly createdAt: import("effect/Schema").DateFromString;
1029
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
567
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1030
568
  readonly email: import("effect/Schema").String;
1031
569
  readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
1032
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
570
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1033
571
  readonly status: import("effect/Schema").Boolean;
1034
572
  readonly message: import("effect/Schema").String;
1035
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
573
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1036
574
  readonly newPassword: import("effect/Schema").String;
1037
575
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1038
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
576
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1039
577
  readonly status: import("effect/Schema").Boolean;
1040
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
578
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1041
579
  readonly email: import("effect/Schema").String;
1042
580
  readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1043
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
581
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1044
582
  readonly success: import("effect/Schema").Boolean;
1045
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
583
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1046
584
  readonly email: import("effect/Schema").String;
1047
585
  readonly password: import("effect/Schema").String;
1048
586
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1049
587
  readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1050
588
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1051
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
589
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1052
590
  readonly redirect: import("effect/Schema").Boolean;
1053
591
  readonly token: import("effect/Schema").String;
1054
592
  readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -1071,12 +609,12 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1071
609
  readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
1072
610
  readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
1073
611
  readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1074
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
612
+ }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1075
613
  readonly email: import("effect/Schema").String;
1076
614
  readonly otp: import("effect/Schema").String;
1077
615
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1078
616
  readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
1079
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
617
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1080
618
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1081
619
  readonly user: import("effect/Schema").Struct<{
1082
620
  readonly id: import("effect/Schema").String;
@@ -1093,7 +631,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1093
631
  readonly createdAt: import("effect/Schema").DateFromString;
1094
632
  readonly updatedAt: import("effect/Schema").DateFromString;
1095
633
  }>;
1096
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
634
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1097
635
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1098
636
  readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1099
637
  readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -1118,7 +656,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1118
656
  readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1119
657
  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>>>;
1120
658
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1121
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
659
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1122
660
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1123
661
  readonly redirect: import("effect/Schema").Boolean;
1124
662
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -1138,28 +676,70 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1138
676
  readonly updatedAt: import("effect/Schema").DateFromString;
1139
677
  }>>;
1140
678
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1141
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
679
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1142
680
  readonly success: import("effect/Schema").Boolean;
1143
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
681
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1144
682
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1145
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
683
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1146
684
  readonly status: import("effect/Schema").Boolean;
1147
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
685
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1148
686
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1149
687
  readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1150
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
688
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1151
689
  readonly totpURI: import("effect/Schema").String;
1152
690
  readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1153
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
691
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1154
692
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1155
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
693
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1156
694
  readonly status: import("effect/Schema").Boolean;
1157
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
695
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1158
696
  readonly code: import("effect/Schema").String;
1159
697
  readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1160
698
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1161
699
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1162
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
700
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
701
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
702
+ readonly user: import("effect/Schema").Struct<{
703
+ readonly id: import("effect/Schema").String;
704
+ readonly name: import("effect/Schema").String;
705
+ readonly email: import("effect/Schema").String;
706
+ readonly emailVerified: import("effect/Schema").Boolean;
707
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
708
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
709
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
710
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
711
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
712
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
713
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
714
+ readonly createdAt: import("effect/Schema").DateFromString;
715
+ readonly updatedAt: import("effect/Schema").DateFromString;
716
+ }>;
717
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
718
+ readonly code: import("effect/Schema").String;
719
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
720
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
721
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
722
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
723
+ readonly user: import("effect/Schema").Struct<{
724
+ readonly id: import("effect/Schema").String;
725
+ readonly name: import("effect/Schema").String;
726
+ readonly email: import("effect/Schema").String;
727
+ readonly emailVerified: import("effect/Schema").Boolean;
728
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
729
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
730
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
731
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
732
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
733
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
734
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
735
+ readonly createdAt: import("effect/Schema").DateFromString;
736
+ readonly updatedAt: import("effect/Schema").DateFromString;
737
+ }>;
738
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
739
+ readonly code: import("effect/Schema").String;
740
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
741
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
742
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1163
743
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1164
744
  readonly user: import("effect/Schema").Struct<{
1165
745
  readonly id: import("effect/Schema").String;
@@ -1169,19 +749,397 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1169
749
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1170
750
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1171
751
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1172
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1173
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1174
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
752
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
753
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
754
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
755
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
756
+ readonly createdAt: import("effect/Schema").DateFromString;
757
+ readonly updatedAt: import("effect/Schema").DateFromString;
758
+ }>;
759
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
760
+ readonly providerId: import("effect/Schema").String;
761
+ readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
762
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
763
+ readonly status: import("effect/Schema").Boolean;
764
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
765
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
766
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
767
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
768
+ readonly status: import("effect/Schema").Boolean;
769
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
770
+ readonly email: import("effect/Schema").String;
771
+ readonly otp: import("effect/Schema").String;
772
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
773
+ readonly status: import("effect/Schema").Literal<true>;
774
+ readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
775
+ readonly user: import("effect/Schema").Struct<{
776
+ readonly id: import("effect/Schema").String;
777
+ readonly name: import("effect/Schema").String;
778
+ readonly email: import("effect/Schema").String;
779
+ readonly emailVerified: import("effect/Schema").Boolean;
780
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
781
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
782
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
783
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
784
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
785
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
786
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
787
+ readonly createdAt: import("effect/Schema").DateFromString;
788
+ readonly updatedAt: import("effect/Schema").DateFromString;
789
+ }>;
790
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
791
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
792
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
793
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
794
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
795
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
796
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
797
+ readonly id: import("effect/Schema").String;
798
+ readonly key: import("effect/Schema").String;
799
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
800
+ readonly organizationId: import("effect/Schema").String;
801
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
802
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
803
+ readonly id: import("effect/Schema").String;
804
+ readonly name: import("effect/Schema").String;
805
+ readonly slug: import("effect/Schema").String;
806
+ readonly displayName: import("effect/Schema").String;
807
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
808
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
809
+ readonly email: import("effect/Schema").NonEmptyString;
810
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
811
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
812
+ readonly label: import("effect/Schema").NonEmptyString;
813
+ }>>;
814
+ }>>>;
815
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
816
+ readonly number: import("effect/Schema").NonEmptyString;
817
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
818
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
819
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
820
+ readonly label: import("effect/Schema").NonEmptyString;
821
+ }>>;
822
+ }>>>;
823
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
824
+ readonly url: import("effect/Schema").NonEmptyString;
825
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
826
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
827
+ readonly label: import("effect/Schema").NonEmptyString;
828
+ }>>;
829
+ }>>>;
830
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
831
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
832
+ readonly url: import("effect/Schema").NonEmptyString;
833
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
834
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
835
+ readonly label: import("effect/Schema").NonEmptyString;
836
+ }>>;
837
+ }>>>;
838
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
839
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
840
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
841
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
842
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
843
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
844
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
845
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
846
+ readonly label: import("effect/Schema").NonEmptyString;
847
+ }>>;
848
+ readonly formatted: import("effect/Schema").String;
849
+ }>>>;
850
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
851
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
852
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
853
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
854
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
855
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
856
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
857
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
858
+ readonly projectKey: import("effect/Schema").String;
859
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
860
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
861
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
862
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
863
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
864
+ readonly authOptions: import("effect/Schema").Struct<{
865
+ readonly emailPassword: import("effect/Schema").Boolean;
866
+ readonly emailOtp: import("effect/Schema").Boolean;
867
+ readonly google: import("effect/Schema").Boolean;
868
+ }>;
869
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
870
+ readonly newPassword: import("effect/Schema").NonEmptyString;
871
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
872
+ readonly ok: import("effect/Schema").Boolean;
873
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
874
+ keyId: import("effect/Schema").NonEmptyString;
875
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
876
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
877
+ readonly name: import("effect/Schema").NonEmptyString;
878
+ readonly enabled: import("effect/Schema").Boolean;
879
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
880
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
881
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
882
+ readonly ok: import("effect/Schema").Boolean;
883
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
884
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
885
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
886
+ readonly url: import("effect/Schema").String;
887
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
888
+ readonly key: import("effect/Schema").NonEmptyString;
889
+ 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">]>>;
890
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
891
+ readonly valid: import("effect/Schema").Boolean;
892
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
893
+ readonly message: import("effect/Schema").String;
894
+ readonly code: import("effect/Schema").String;
895
+ }>>;
896
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
897
+ readonly id: import("effect/Schema").String;
898
+ readonly configId: import("effect/Schema").String;
899
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
900
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
901
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
902
+ readonly referenceId: import("effect/Schema").String;
903
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
904
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
905
+ readonly createdAt: import("effect/Schema").Date;
906
+ readonly updatedAt: import("effect/Schema").Date;
907
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
908
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
909
+ }>>;
910
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
911
+ readonly password: import("effect/Schema").NonEmptyString;
912
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
913
+ readonly ok: import("effect/Schema").Boolean;
914
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
915
+ readonly hostname: import("effect/Schema").NonEmptyString;
916
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
917
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
918
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
919
+ readonly managed: import("effect/Schema").Boolean;
920
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
921
+ readonly id: import("effect/Schema").String;
922
+ readonly hostname: import("effect/Schema").String;
923
+ readonly rootHostname: import("effect/Schema").String;
924
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
925
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
926
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
927
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
928
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
929
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
930
+ readonly hostnameId: import("effect/Schema").String;
931
+ readonly managed: import("effect/Schema").Boolean;
932
+ readonly active: import("effect/Schema").Boolean;
933
+ readonly createdAt: import("effect/Schema").Date;
934
+ readonly updatedAt: import("effect/Schema").Date;
935
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
936
+ readonly id: import("effect/Schema").NonEmptyString;
937
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
938
+ readonly id: import("effect/Schema").String;
939
+ readonly hostname: import("effect/Schema").String;
940
+ readonly rootHostname: import("effect/Schema").String;
941
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
942
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
943
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
944
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
945
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
946
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
947
+ readonly hostnameId: import("effect/Schema").String;
948
+ readonly managed: import("effect/Schema").Boolean;
949
+ readonly active: import("effect/Schema").Boolean;
950
+ readonly createdAt: import("effect/Schema").Date;
951
+ readonly updatedAt: import("effect/Schema").Date;
952
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
953
+ readonly id: import("effect/Schema").NonEmptyString;
954
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
955
+ readonly id: import("effect/Schema").String;
956
+ readonly hostname: import("effect/Schema").String;
957
+ readonly rootHostname: import("effect/Schema").String;
958
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
959
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
960
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
961
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
962
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
963
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
964
+ readonly hostnameId: import("effect/Schema").String;
965
+ readonly managed: import("effect/Schema").Boolean;
966
+ readonly active: import("effect/Schema").Boolean;
967
+ readonly createdAt: import("effect/Schema").Date;
968
+ readonly updatedAt: import("effect/Schema").Date;
969
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
970
+ readonly hostname: import("effect/Schema").NonEmptyString;
971
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
972
+ readonly id: import("effect/Schema").String;
973
+ readonly hostname: import("effect/Schema").String;
974
+ readonly rootHostname: import("effect/Schema").String;
975
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
976
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
977
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
978
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
979
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
980
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
981
+ readonly hostnameId: import("effect/Schema").String;
982
+ readonly managed: import("effect/Schema").Boolean;
983
+ readonly active: import("effect/Schema").Boolean;
984
+ readonly createdAt: import("effect/Schema").Date;
985
+ readonly updatedAt: import("effect/Schema").Date;
986
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
987
+ readonly id: import("effect/Schema").NonEmptyString;
988
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
989
+ readonly required: import("effect/Schema").Boolean;
990
+ readonly status: import("effect/Schema").String;
991
+ readonly type: import("effect/Schema").String;
992
+ readonly name: import("effect/Schema").String;
993
+ readonly value: import("effect/Schema").String;
994
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
995
+ readonly organizationId: import("effect/Schema").NonEmptyString;
996
+ readonly userId: import("effect/Schema").NonEmptyString;
997
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
998
+ readonly id: import("effect/Schema").String;
999
+ readonly organizationId: import("effect/Schema").String;
1000
+ readonly userId: import("effect/Schema").String;
1001
+ readonly role: import("effect/Schema").String;
1002
+ readonly createdAt: import("effect/Schema").Date;
1003
+ readonly user: import("effect/Schema").Struct<{
1004
+ readonly id: import("effect/Schema").String;
1005
+ readonly name: import("effect/Schema").String;
1006
+ readonly email: import("effect/Schema").String;
1007
+ readonly emailVerified: import("effect/Schema").Boolean;
1008
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1009
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1010
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1175
1011
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1176
- readonly createdAt: import("effect/Schema").DateFromString;
1177
- readonly updatedAt: import("effect/Schema").DateFromString;
1012
+ readonly createdAt: import("effect/Schema").Date;
1013
+ readonly updatedAt: import("effect/Schema").Date;
1178
1014
  }>;
1179
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1180
- readonly code: import("effect/Schema").String;
1181
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1182
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1183
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1184
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1015
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1016
+ readonly id: import("effect/Schema").NonEmptyString;
1017
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1018
+ readonly id: import("effect/Schema").String;
1019
+ readonly name: import("effect/Schema").String;
1020
+ readonly slug: import("effect/Schema").String;
1021
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1022
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1023
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1024
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1025
+ readonly name: import("effect/Schema").String;
1026
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1027
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1028
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1029
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1030
+ }>>;
1031
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1032
+ readonly email: import("effect/Schema").NonEmptyString;
1033
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1034
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1035
+ readonly label: import("effect/Schema").NonEmptyString;
1036
+ }>>;
1037
+ }>>>;
1038
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1039
+ readonly number: import("effect/Schema").NonEmptyString;
1040
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1041
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1042
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1043
+ readonly label: import("effect/Schema").NonEmptyString;
1044
+ }>>;
1045
+ }>>>;
1046
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1047
+ readonly url: import("effect/Schema").NonEmptyString;
1048
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1049
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1050
+ readonly label: import("effect/Schema").NonEmptyString;
1051
+ }>>;
1052
+ }>>>;
1053
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1054
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1055
+ readonly url: import("effect/Schema").NonEmptyString;
1056
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1057
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1058
+ readonly label: import("effect/Schema").NonEmptyString;
1059
+ }>>;
1060
+ }>>>;
1061
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1062
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1063
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1064
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1065
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1066
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1067
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1068
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1069
+ readonly label: import("effect/Schema").NonEmptyString;
1070
+ }>>;
1071
+ }>>>;
1072
+ }>, import("effect/Schema").Unknown, never, never>>;
1073
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1074
+ readonly createdAt: import("effect/Schema").Date;
1075
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1076
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1077
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1078
+ readonly id: import("effect/Schema").String;
1079
+ readonly name: import("effect/Schema").String;
1080
+ readonly slug: import("effect/Schema").String;
1081
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1082
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1083
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1084
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1085
+ readonly name: import("effect/Schema").String;
1086
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1087
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1088
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1089
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1090
+ }>>;
1091
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1092
+ readonly email: import("effect/Schema").NonEmptyString;
1093
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1094
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1095
+ readonly label: import("effect/Schema").NonEmptyString;
1096
+ }>>;
1097
+ }>>>;
1098
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1099
+ readonly number: import("effect/Schema").NonEmptyString;
1100
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1101
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1102
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1103
+ readonly label: import("effect/Schema").NonEmptyString;
1104
+ }>>;
1105
+ }>>>;
1106
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1107
+ readonly url: import("effect/Schema").NonEmptyString;
1108
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1109
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1110
+ readonly label: import("effect/Schema").NonEmptyString;
1111
+ }>>;
1112
+ }>>>;
1113
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1114
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1115
+ readonly url: import("effect/Schema").NonEmptyString;
1116
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1117
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1118
+ readonly label: import("effect/Schema").NonEmptyString;
1119
+ }>>;
1120
+ }>>>;
1121
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1122
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1123
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1124
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1125
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1126
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1127
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1128
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1129
+ readonly label: import("effect/Schema").NonEmptyString;
1130
+ }>>;
1131
+ }>>>;
1132
+ }>, import("effect/Schema").Unknown, never, never>>;
1133
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1134
+ readonly createdAt: import("effect/Schema").Date;
1135
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1136
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1137
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1138
+ readonly id: import("effect/Schema").String;
1139
+ readonly organizationId: import("effect/Schema").String;
1140
+ readonly userId: import("effect/Schema").String;
1141
+ readonly role: import("effect/Schema").String;
1142
+ readonly createdAt: import("effect/Schema").Date;
1185
1143
  readonly user: import("effect/Schema").Struct<{
1186
1144
  readonly id: import("effect/Schema").String;
1187
1145
  readonly name: import("effect/Schema").String;
@@ -1190,51 +1148,95 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1190
1148
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1191
1149
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1192
1150
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1193
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1194
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1195
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1196
1151
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1197
- readonly createdAt: import("effect/Schema").DateFromString;
1198
- readonly updatedAt: import("effect/Schema").DateFromString;
1152
+ readonly createdAt: import("effect/Schema").Date;
1153
+ readonly updatedAt: import("effect/Schema").Date;
1199
1154
  }>;
1200
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1201
- readonly code: import("effect/Schema").String;
1202
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1203
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1204
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1205
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1206
- readonly user: import("effect/Schema").Struct<{
1155
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1156
+ readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1157
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1158
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1159
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1207
1160
  readonly id: import("effect/Schema").String;
1208
1161
  readonly name: import("effect/Schema").String;
1209
- readonly email: import("effect/Schema").String;
1210
- readonly emailVerified: import("effect/Schema").Boolean;
1211
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1212
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1213
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1214
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1215
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1216
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1217
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1218
- readonly createdAt: import("effect/Schema").DateFromString;
1219
- readonly updatedAt: import("effect/Schema").DateFromString;
1220
- }>;
1221
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1222
- readonly providerId: import("effect/Schema").String;
1223
- readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1224
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1225
- readonly status: import("effect/Schema").Boolean;
1226
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1227
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1228
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1229
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1230
- readonly status: import("effect/Schema").Boolean;
1231
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1162
+ readonly slug: import("effect/Schema").String;
1163
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1164
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1165
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1166
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1167
+ readonly name: import("effect/Schema").String;
1168
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1169
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1170
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1171
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1172
+ }>>;
1173
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1174
+ readonly email: import("effect/Schema").NonEmptyString;
1175
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1176
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1177
+ readonly label: import("effect/Schema").NonEmptyString;
1178
+ }>>;
1179
+ }>>>;
1180
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1181
+ readonly number: import("effect/Schema").NonEmptyString;
1182
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1183
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1184
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1185
+ readonly label: import("effect/Schema").NonEmptyString;
1186
+ }>>;
1187
+ }>>>;
1188
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1189
+ readonly url: import("effect/Schema").NonEmptyString;
1190
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1191
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1192
+ readonly label: import("effect/Schema").NonEmptyString;
1193
+ }>>;
1194
+ }>>>;
1195
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1196
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1197
+ readonly url: import("effect/Schema").NonEmptyString;
1198
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1199
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1200
+ readonly label: import("effect/Schema").NonEmptyString;
1201
+ }>>;
1202
+ }>>>;
1203
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1204
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1205
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1206
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1207
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1208
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1209
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1210
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1211
+ readonly label: import("effect/Schema").NonEmptyString;
1212
+ }>>;
1213
+ }>>>;
1214
+ }>, import("effect/Schema").Unknown, never, never>>;
1215
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1216
+ readonly createdAt: import("effect/Schema").Date;
1217
+ }>>;
1218
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1219
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1220
+ readonly id: import("effect/Schema").NonEmptyString;
1221
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1222
+ readonly id: import("effect/Schema").String;
1223
+ readonly name: import("effect/Schema").String;
1232
1224
  readonly email: import("effect/Schema").String;
1233
- readonly otp: import("effect/Schema").String;
1234
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1235
- readonly status: import("effect/Schema").Literal<true>;
1236
- readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1237
- readonly user: import("effect/Schema").Struct<{
1225
+ readonly emailVerified: import("effect/Schema").Boolean;
1226
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1227
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1228
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1229
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1230
+ readonly createdAt: import("effect/Schema").Date;
1231
+ readonly updatedAt: import("effect/Schema").Date;
1232
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1233
+ readonly userId: import("effect/Schema").NonEmptyString;
1234
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1235
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
1236
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1237
+ readonly ids: import("effect/Schema").NonEmptyString;
1238
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1239
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1238
1240
  readonly id: import("effect/Schema").String;
1239
1241
  readonly name: import("effect/Schema").String;
1240
1242
  readonly email: import("effect/Schema").String;
@@ -1242,145 +1244,19 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1242
1244
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1243
1245
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1244
1246
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1245
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1246
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1247
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1248
1247
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1249
- readonly createdAt: import("effect/Schema").DateFromString;
1250
- readonly updatedAt: import("effect/Schema").DateFromString;
1251
- }>;
1252
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, false>>;
1253
- export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1254
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1255
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1256
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1257
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1258
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1259
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1260
- readonly id: import("effect/Schema").String;
1261
- readonly key: import("effect/Schema").String;
1262
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1263
- readonly organizationId: import("effect/Schema").String;
1264
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
1265
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1266
- readonly id: import("effect/Schema").String;
1267
- readonly name: import("effect/Schema").String;
1268
- readonly slug: import("effect/Schema").String;
1269
- readonly displayName: import("effect/Schema").String;
1270
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1271
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1272
- readonly email: import("effect/Schema").NonEmptyString;
1273
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1274
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1275
- readonly label: import("effect/Schema").NonEmptyString;
1276
- }>>;
1277
- }>>>;
1278
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1279
- readonly number: import("effect/Schema").NonEmptyString;
1280
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1281
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1282
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1283
- readonly label: import("effect/Schema").NonEmptyString;
1284
- }>>;
1285
- }>>>;
1286
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1287
- readonly url: import("effect/Schema").NonEmptyString;
1288
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1289
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1290
- readonly label: import("effect/Schema").NonEmptyString;
1291
- }>>;
1292
- }>>>;
1293
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1294
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1295
- readonly url: import("effect/Schema").NonEmptyString;
1296
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1297
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1298
- readonly label: import("effect/Schema").NonEmptyString;
1299
- }>>;
1300
- }>>>;
1301
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1302
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1303
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1304
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1305
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1306
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1307
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1308
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1309
- readonly label: import("effect/Schema").NonEmptyString;
1310
- }>>;
1311
- readonly formatted: import("effect/Schema").String;
1312
- }>>>;
1313
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1314
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
1315
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1316
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1317
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
1318
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
1319
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1320
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1321
- readonly projectKey: import("effect/Schema").String;
1322
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1323
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
1324
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1325
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1326
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
1327
- readonly authOptions: import("effect/Schema").Struct<{
1328
- readonly emailPassword: import("effect/Schema").Boolean;
1329
- readonly emailOtp: import("effect/Schema").Boolean;
1330
- readonly google: import("effect/Schema").Boolean;
1331
- }>;
1332
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1333
- readonly newPassword: import("effect/Schema").NonEmptyString;
1334
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1335
- readonly ok: import("effect/Schema").Boolean;
1336
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1337
- readonly keyId: import("effect/Schema").NonEmptyString;
1338
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1339
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1340
- readonly name: import("effect/Schema").NonEmptyString;
1341
- readonly enabled: import("effect/Schema").Boolean;
1342
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1343
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1344
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1345
- readonly ok: import("effect/Schema").Boolean;
1346
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
1347
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
1348
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1349
- readonly url: import("effect/Schema").String;
1350
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1351
- readonly key: import("effect/Schema").NonEmptyString;
1352
- 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">]>>;
1353
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1354
- readonly valid: import("effect/Schema").Boolean;
1355
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1356
- readonly message: import("effect/Schema").String;
1357
- readonly code: import("effect/Schema").String;
1358
- }>>;
1359
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1360
- readonly id: import("effect/Schema").String;
1361
- readonly configId: import("effect/Schema").String;
1362
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1363
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1364
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1365
- readonly referenceId: import("effect/Schema").String;
1366
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1367
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1368
1248
  readonly createdAt: import("effect/Schema").Date;
1369
1249
  readonly updatedAt: import("effect/Schema").Date;
1370
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1371
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1372
1250
  }>>;
1373
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1374
- readonly password: import("effect/Schema").NonEmptyString;
1375
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1376
- readonly ok: import("effect/Schema").Boolean;
1377
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1251
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1252
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
1253
+ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1378
1254
  readonly hostname: import("effect/Schema").NonEmptyString;
1379
1255
  readonly rootHostname: import("effect/Schema").NonEmptyString;
1380
1256
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1381
1257
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1382
1258
  readonly managed: import("effect/Schema").Boolean;
1383
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1259
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1384
1260
  readonly id: import("effect/Schema").String;
1385
1261
  readonly hostname: import("effect/Schema").String;
1386
1262
  readonly rootHostname: import("effect/Schema").String;
@@ -1395,12 +1271,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1395
1271
  readonly active: import("effect/Schema").Boolean;
1396
1272
  readonly createdAt: import("effect/Schema").Date;
1397
1273
  readonly updatedAt: import("effect/Schema").Date;
1398
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createOrganization", "POST", "/api/auth/admin/organizations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1274
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createOrganization", "POST", "/api/auth/admin/organizations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1399
1275
  readonly name: import("effect/Schema").NonEmptyString;
1400
1276
  readonly slug: import("effect/Schema").NonEmptyString;
1401
1277
  readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
1402
1278
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").String>;
1403
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1279
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1404
1280
  readonly id: import("effect/Schema").String;
1405
1281
  readonly name: import("effect/Schema").String;
1406
1282
  readonly slug: import("effect/Schema").String;
@@ -1420,9 +1296,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1420
1296
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1421
1297
  }>>>;
1422
1298
  readonly createdAt: import("effect/Schema").Date;
1423
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1299
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1424
1300
  readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
1425
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1301
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1426
1302
  readonly totalUsers: import("effect/Schema").Number;
1427
1303
  readonly totalOrganizations: import("effect/Schema").Number;
1428
1304
  readonly totalProjects: import("effect/Schema").Number;
@@ -1444,9 +1320,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1444
1320
  readonly users: import("effect/Schema").Number;
1445
1321
  readonly organizations: import("effect/Schema").Number;
1446
1322
  }>>;
1447
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1323
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1448
1324
  readonly id: import("effect/Schema").String;
1449
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1325
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1450
1326
  readonly id: import("effect/Schema").String;
1451
1327
  readonly configId: import("effect/Schema").String;
1452
1328
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1464,9 +1340,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1464
1340
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
1465
1341
  readonly createdAt: import("effect/Schema").Date;
1466
1342
  readonly updatedAt: import("effect/Schema").Date;
1467
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/auth/admin/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1343
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/auth/admin/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1468
1344
  readonly id: import("effect/Schema").NonEmptyString;
1469
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1345
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1470
1346
  readonly id: import("effect/Schema").String;
1471
1347
  readonly hostname: import("effect/Schema").String;
1472
1348
  readonly rootHostname: import("effect/Schema").String;
@@ -1481,9 +1357,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1481
1357
  readonly active: import("effect/Schema").Boolean;
1482
1358
  readonly createdAt: import("effect/Schema").Date;
1483
1359
  readonly updatedAt: import("effect/Schema").Date;
1484
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganization", "DELETE", "/api/auth/admin/organizations/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1360
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganization", "DELETE", "/api/auth/admin/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1485
1361
  readonly id: import("effect/Schema").String;
1486
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1362
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1487
1363
  readonly id: import("effect/Schema").String;
1488
1364
  readonly name: import("effect/Schema").String;
1489
1365
  readonly slug: import("effect/Schema").String;
@@ -1503,9 +1379,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1503
1379
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1504
1380
  }>>>;
1505
1381
  readonly createdAt: import("effect/Schema").Date;
1506
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1382
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1507
1383
  readonly id: import("effect/Schema").String;
1508
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1384
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1509
1385
  readonly id: import("effect/Schema").String;
1510
1386
  readonly configId: import("effect/Schema").String;
1511
1387
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1523,9 +1399,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1523
1399
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
1524
1400
  readonly createdAt: import("effect/Schema").Date;
1525
1401
  readonly updatedAt: import("effect/Schema").Date;
1526
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"enableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/enable-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1402
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"enableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/enable-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1527
1403
  readonly id: import("effect/Schema").String;
1528
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1404
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1529
1405
  readonly id: import("effect/Schema").String;
1530
1406
  readonly configId: import("effect/Schema").String;
1531
1407
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1543,15 +1419,15 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1543
1419
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
1544
1420
  readonly createdAt: import("effect/Schema").Date;
1545
1421
  readonly updatedAt: import("effect/Schema").Date;
1546
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/auth/admin/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1422
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/auth/admin/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1547
1423
  readonly id: import("effect/Schema").NonEmptyString;
1548
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1424
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1549
1425
  readonly required: import("effect/Schema").Boolean;
1550
1426
  readonly status: import("effect/Schema").String;
1551
1427
  readonly type: import("effect/Schema").String;
1552
1428
  readonly name: import("effect/Schema").String;
1553
1429
  readonly value: import("effect/Schema").String;
1554
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/api/auth/admin/api-keys", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1430
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/api/auth/admin/api-keys", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1555
1431
  readonly id: import("effect/Schema").String;
1556
1432
  readonly configId: import("effect/Schema").String;
1557
1433
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1569,7 +1445,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1569
1445
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
1570
1446
  readonly createdAt: import("effect/Schema").Date;
1571
1447
  readonly updatedAt: import("effect/Schema").Date;
1572
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listDomains", "GET", "/api/auth/admin/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1448
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listDomains", "GET", "/api/auth/admin/domains", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1573
1449
  readonly id: import("effect/Schema").String;
1574
1450
  readonly hostname: import("effect/Schema").String;
1575
1451
  readonly rootHostname: import("effect/Schema").String;
@@ -1584,7 +1460,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1584
1460
  readonly active: import("effect/Schema").Boolean;
1585
1461
  readonly createdAt: import("effect/Schema").Date;
1586
1462
  readonly updatedAt: import("effect/Schema").Date;
1587
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1463
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1588
1464
  readonly page: import("effect/Schema").Int;
1589
1465
  readonly pageSize: import("effect/Schema").Int;
1590
1466
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -1593,7 +1469,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1593
1469
  readonly direction: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"asc">, import("effect/Schema").Literal<"desc">]>;
1594
1470
  }>>, import("effect/Schema").String, never, never>, never, never>>;
1595
1471
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1596
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1472
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1597
1473
  readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1598
1474
  readonly id: import("effect/Schema").String;
1599
1475
  readonly name: import("effect/Schema").String;
@@ -1621,7 +1497,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1621
1497
  readonly total: import("effect/Schema").Int;
1622
1498
  readonly pageCount: import("effect/Schema").Int;
1623
1499
  }>;
1624
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1500
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1625
1501
  readonly page: import("effect/Schema").Int;
1626
1502
  readonly pageSize: import("effect/Schema").Int;
1627
1503
  readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -1630,7 +1506,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1630
1506
  readonly direction: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"asc">, import("effect/Schema").Literal<"desc">]>;
1631
1507
  }>>, import("effect/Schema").String, never, never>, never, never>>;
1632
1508
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1633
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1509
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1634
1510
  readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1635
1511
  readonly id: import("effect/Schema").String;
1636
1512
  readonly name: import("effect/Schema").String;
@@ -1660,9 +1536,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1660
1536
  readonly total: import("effect/Schema").Int;
1661
1537
  readonly pageCount: import("effect/Schema").Int;
1662
1538
  }>;
1663
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/reset-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1539
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/reset-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1664
1540
  readonly id: import("effect/Schema").String;
1665
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1541
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1666
1542
  readonly id: import("effect/Schema").String;
1667
1543
  readonly configId: import("effect/Schema").String;
1668
1544
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1680,16 +1556,16 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1680
1556
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
1681
1557
  readonly createdAt: import("effect/Schema").Date;
1682
1558
  readonly updatedAt: import("effect/Schema").Date;
1683
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/admin/api-keys/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1559
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1684
1560
  readonly id: import("effect/Schema").String;
1685
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1561
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1686
1562
  readonly name: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1687
1563
  readonly enabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1688
1564
  readonly rateLimitEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1689
1565
  readonly rateLimitMax: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
1690
1566
  readonly rateLimitTimeWindow: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
1691
1567
  readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1692
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1568
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1693
1569
  readonly id: import("effect/Schema").String;
1694
1570
  readonly configId: import("effect/Schema").String;
1695
1571
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1707,15 +1583,15 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1707
1583
  readonly referrers: import("effect/Schema").$Array<import("effect/Schema").String>;
1708
1584
  readonly createdAt: import("effect/Schema").Date;
1709
1585
  readonly updatedAt: import("effect/Schema").Date;
1710
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateDomain", "PATCH", "/api/auth/admin/domains/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1586
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateDomain", "PATCH", "/api/auth/admin/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1711
1587
  readonly id: import("effect/Schema").NonEmptyString;
1712
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1588
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1713
1589
  readonly hostname: import("effect/Schema").NonEmptyString;
1714
1590
  readonly rootHostname: import("effect/Schema").NonEmptyString;
1715
1591
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1716
1592
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1717
1593
  readonly managed: import("effect/Schema").Boolean;
1718
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1594
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1719
1595
  readonly id: import("effect/Schema").String;
1720
1596
  readonly hostname: import("effect/Schema").String;
1721
1597
  readonly rootHostname: import("effect/Schema").String;
@@ -1730,14 +1606,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1730
1606
  readonly active: import("effect/Schema").Boolean;
1731
1607
  readonly createdAt: import("effect/Schema").Date;
1732
1608
  readonly updatedAt: import("effect/Schema").Date;
1733
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateOrganization", "PATCH", "/api/auth/admin/organizations/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1609
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateOrganization", "PATCH", "/api/auth/admin/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1734
1610
  readonly id: import("effect/Schema").String;
1735
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1611
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1736
1612
  readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1737
1613
  readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1738
1614
  readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
1739
1615
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1740
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1616
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1741
1617
  readonly id: import("effect/Schema").String;
1742
1618
  readonly name: import("effect/Schema").String;
1743
1619
  readonly slug: import("effect/Schema").String;
@@ -1757,11 +1633,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1757
1633
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1758
1634
  }>>>;
1759
1635
  readonly createdAt: import("effect/Schema").Date;
1760
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1636
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1761
1637
  readonly userId: import("effect/Schema").String;
1762
1638
  readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
1763
1639
  readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
1764
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1640
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1765
1641
  readonly user: import("effect/Schema").Struct<{
1766
1642
  readonly id: import("effect/Schema").String;
1767
1643
  readonly name: import("effect/Schema").String;
@@ -1777,9 +1653,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1777
1653
  readonly createdAt: import("effect/Schema").DateFromString;
1778
1654
  readonly updatedAt: import("effect/Schema").DateFromString;
1779
1655
  }>;
1780
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1656
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1781
1657
  readonly userId: import("effect/Schema").String;
1782
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1658
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1783
1659
  readonly session: import("effect/Schema").Struct<{
1784
1660
  readonly id: import("effect/Schema").String;
1785
1661
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -1808,7 +1684,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1808
1684
  readonly createdAt: import("effect/Schema").DateFromString;
1809
1685
  readonly updatedAt: import("effect/Schema").DateFromString;
1810
1686
  }>;
1811
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1687
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1812
1688
  readonly session: import("effect/Schema").Struct<{
1813
1689
  readonly id: import("effect/Schema").String;
1814
1690
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -1837,9 +1713,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1837
1713
  readonly createdAt: import("effect/Schema").DateFromString;
1838
1714
  readonly updatedAt: import("effect/Schema").DateFromString;
1839
1715
  }>;
1840
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1716
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1841
1717
  readonly userId: import("effect/Schema").String;
1842
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1718
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1843
1719
  readonly user: import("effect/Schema").Struct<{
1844
1720
  readonly id: import("effect/Schema").String;
1845
1721
  readonly name: import("effect/Schema").String;
@@ -1855,19 +1731,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1855
1731
  readonly createdAt: import("effect/Schema").DateFromString;
1856
1732
  readonly updatedAt: import("effect/Schema").DateFromString;
1857
1733
  }>;
1858
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1734
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1859
1735
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
1860
1736
  readonly keyId: import("effect/Schema").String;
1861
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1737
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1862
1738
  readonly success: import("effect/Schema").Boolean;
1863
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1739
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1864
1740
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
1865
1741
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1866
1742
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1867
1743
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1868
1744
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
1869
1745
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
1870
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1746
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1871
1747
  readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1872
1748
  readonly id: import("effect/Schema").String;
1873
1749
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
@@ -1896,11 +1772,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1896
1772
  readonly total: import("effect/Schema").Number;
1897
1773
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
1898
1774
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
1899
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1775
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1900
1776
  readonly newPassword: import("effect/Schema").String;
1901
1777
  readonly currentPassword: import("effect/Schema").String;
1902
1778
  readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1903
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1779
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1904
1780
  readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1905
1781
  readonly user: import("effect/Schema").Struct<{
1906
1782
  readonly id: import("effect/Schema").String;
@@ -1917,10 +1793,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1917
1793
  readonly createdAt: import("effect/Schema").DateFromString;
1918
1794
  readonly updatedAt: import("effect/Schema").DateFromString;
1919
1795
  }>;
1920
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1796
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1921
1797
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
1922
1798
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
1923
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1799
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1924
1800
  readonly session: import("effect/Schema").Struct<{
1925
1801
  readonly id: import("effect/Schema").String;
1926
1802
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -1949,7 +1825,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1949
1825
  readonly createdAt: import("effect/Schema").DateFromString;
1950
1826
  readonly updatedAt: import("effect/Schema").DateFromString;
1951
1827
  }>;
1952
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1828
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1953
1829
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1954
1830
  readonly provider: import("effect/Schema").String;
1955
1831
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
@@ -1964,7 +1840,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1964
1840
  readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1965
1841
  readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1966
1842
  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>>>;
1967
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1843
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1968
1844
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1969
1845
  readonly redirect: import("effect/Schema").Boolean;
1970
1846
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -1984,7 +1860,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1984
1860
  readonly updatedAt: import("effect/Schema").DateFromString;
1985
1861
  }>>;
1986
1862
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1987
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1863
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1988
1864
  readonly id: import("effect/Schema").String;
1989
1865
  readonly providerId: import("effect/Schema").String;
1990
1866
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -1992,16 +1868,16 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1992
1868
  readonly accountId: import("effect/Schema").String;
1993
1869
  readonly userId: import("effect/Schema").String;
1994
1870
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
1995
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1871
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1996
1872
  readonly accept: import("effect/Schema").Boolean;
1997
1873
  readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
1998
1874
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1999
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1875
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2000
1876
  readonly redirect: import("effect/Schema").Boolean;
2001
1877
  readonly url: import("effect/Schema").String;
2002
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1878
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2003
1879
  readonly client_id: import("effect/Schema").String;
2004
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1880
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2005
1881
  readonly client_id: import("effect/Schema").String;
2006
1882
  readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
2007
1883
  readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -2010,9 +1886,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2010
1886
  readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
2011
1887
  readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
2012
1888
  readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
2013
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1889
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2014
1890
  readonly invitationId: import("effect/Schema").String;
2015
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1891
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2016
1892
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2017
1893
  readonly id: import("effect/Schema").String;
2018
1894
  readonly email: import("effect/Schema").String;
@@ -2032,9 +1908,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2032
1908
  readonly role: import("effect/Schema").String;
2033
1909
  readonly createdAt: import("effect/Schema").DateFromString;
2034
1910
  }>>;
2035
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1911
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2036
1912
  readonly invitationId: import("effect/Schema").String;
2037
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1913
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2038
1914
  readonly id: import("effect/Schema").String;
2039
1915
  readonly email: import("effect/Schema").String;
2040
1916
  readonly role: import("effect/Schema").String;
@@ -2045,14 +1921,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2045
1921
  readonly status: import("effect/Schema").String;
2046
1922
  readonly expiresAt: import("effect/Schema").DateFromString;
2047
1923
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2048
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1924
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2049
1925
  readonly name: import("effect/Schema").NonEmptyString;
2050
1926
  readonly slug: import("effect/Schema").NonEmptyString;
2051
1927
  readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2052
1928
  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>>>;
2053
1929
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2054
1930
  readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2055
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1931
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2056
1932
  readonly id: import("effect/Schema").String;
2057
1933
  readonly name: import("effect/Schema").String;
2058
1934
  readonly slug: import("effect/Schema").String;
@@ -2061,11 +1937,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2061
1937
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2062
1938
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2063
1939
  readonly createdAt: import("effect/Schema").DateFromString;
2064
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1940
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2065
1941
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2066
1942
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
2067
1943
  readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
2068
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1944
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2069
1945
  readonly id: import("effect/Schema").String;
2070
1946
  readonly name: import("effect/Schema").String;
2071
1947
  readonly slug: import("effect/Schema").String;
@@ -2108,9 +1984,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2108
1984
  readonly expiresAt: import("effect/Schema").DateFromString;
2109
1985
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2110
1986
  }>>;
2111
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1987
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2112
1988
  readonly id: import("effect/Schema").String;
2113
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1989
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2114
1990
  readonly id: import("effect/Schema").String;
2115
1991
  readonly email: import("effect/Schema").String;
2116
1992
  readonly role: import("effect/Schema").String;
@@ -2123,12 +1999,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2123
1999
  readonly organizationName: import("effect/Schema").String;
2124
2000
  readonly organizationSlug: import("effect/Schema").String;
2125
2001
  readonly inviterEmail: import("effect/Schema").String;
2126
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2002
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2127
2003
  readonly organizationId: import("effect/Schema").NonEmptyString;
2128
2004
  readonly actorUserId: import("effect/Schema").NonEmptyString;
2129
2005
  readonly targetUserId: import("effect/Schema").NonEmptyString;
2130
2006
  readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
2131
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2007
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2132
2008
  readonly session: import("effect/Schema").Struct<{
2133
2009
  readonly id: import("effect/Schema").String;
2134
2010
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -2157,13 +2033,13 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2157
2033
  readonly createdAt: import("effect/Schema").DateFromString;
2158
2034
  readonly updatedAt: import("effect/Schema").DateFromString;
2159
2035
  }>;
2160
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2036
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2161
2037
  readonly email: import("effect/Schema").String;
2162
2038
  readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
2163
2039
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2164
2040
  readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2165
2041
  readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
2166
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2042
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2167
2043
  readonly id: import("effect/Schema").String;
2168
2044
  readonly email: import("effect/Schema").String;
2169
2045
  readonly role: import("effect/Schema").String;
@@ -2174,15 +2050,15 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2174
2050
  readonly status: import("effect/Schema").String;
2175
2051
  readonly expiresAt: import("effect/Schema").DateFromString;
2176
2052
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2177
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2053
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2178
2054
  readonly organizationId: import("effect/Schema").String;
2179
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2055
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2180
2056
  readonly id: import("effect/Schema").String;
2181
2057
  readonly organizationId: import("effect/Schema").String;
2182
2058
  readonly userId: import("effect/Schema").String;
2183
2059
  readonly role: import("effect/Schema").String;
2184
2060
  readonly createdAt: import("effect/Schema").DateFromString;
2185
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2061
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2186
2062
  readonly id: import("effect/Schema").String;
2187
2063
  readonly name: import("effect/Schema").String;
2188
2064
  readonly slug: import("effect/Schema").String;
@@ -2191,9 +2067,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2191
2067
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2192
2068
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2193
2069
  readonly createdAt: import("effect/Schema").DateFromString;
2194
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
2070
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2195
2071
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2196
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2072
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2197
2073
  readonly id: import("effect/Schema").String;
2198
2074
  readonly email: import("effect/Schema").String;
2199
2075
  readonly role: import("effect/Schema").String;
@@ -2204,7 +2080,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2204
2080
  readonly status: import("effect/Schema").String;
2205
2081
  readonly expiresAt: import("effect/Schema").DateFromString;
2206
2082
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2207
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
2083
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2208
2084
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
2209
2085
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
2210
2086
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -2214,7 +2090,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2214
2090
  readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
2215
2091
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2216
2092
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
2217
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2093
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2218
2094
  readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2219
2095
  readonly id: import("effect/Schema").String;
2220
2096
  readonly organizationId: import("effect/Schema").String;
@@ -2238,7 +2114,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2238
2114
  }>;
2239
2115
  }>>;
2240
2116
  readonly total: import("effect/Schema").Number;
2241
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2117
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/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<{
2242
2118
  readonly id: import("effect/Schema").String;
2243
2119
  readonly email: import("effect/Schema").String;
2244
2120
  readonly role: import("effect/Schema").String;
@@ -2249,9 +2125,9 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2249
2125
  readonly status: import("effect/Schema").String;
2250
2126
  readonly expiresAt: import("effect/Schema").DateFromString;
2251
2127
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2252
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2128
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2253
2129
  readonly invitationId: import("effect/Schema").String;
2254
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2130
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2255
2131
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2256
2132
  readonly id: import("effect/Schema").String;
2257
2133
  readonly email: import("effect/Schema").String;
@@ -2271,10 +2147,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2271
2147
  readonly role: import("effect/Schema").String;
2272
2148
  readonly createdAt: import("effect/Schema").DateFromString;
2273
2149
  }>>;
2274
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2150
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2275
2151
  readonly memberIdOrEmail: import("effect/Schema").String;
2276
2152
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2277
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2153
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2278
2154
  readonly member: import("effect/Schema").Struct<{
2279
2155
  readonly id: import("effect/Schema").String;
2280
2156
  readonly organizationId: import("effect/Schema").String;
@@ -2282,10 +2158,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2282
2158
  readonly role: import("effect/Schema").String;
2283
2159
  readonly createdAt: import("effect/Schema").DateFromString;
2284
2160
  }>;
2285
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2161
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2286
2162
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2287
2163
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
2288
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2164
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2289
2165
  readonly id: import("effect/Schema").String;
2290
2166
  readonly name: import("effect/Schema").String;
2291
2167
  readonly slug: import("effect/Schema").String;
@@ -2294,7 +2170,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2294
2170
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2295
2171
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2296
2172
  readonly createdAt: import("effect/Schema").DateFromString;
2297
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2173
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2298
2174
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2299
2175
  readonly data: import("effect/Schema").Struct<{
2300
2176
  readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
@@ -2303,7 +2179,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2303
2179
  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>>>;
2304
2180
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2305
2181
  }>;
2306
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2182
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2307
2183
  readonly id: import("effect/Schema").String;
2308
2184
  readonly name: import("effect/Schema").String;
2309
2185
  readonly slug: import("effect/Schema").String;
@@ -2312,39 +2188,39 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2312
2188
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2313
2189
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2314
2190
  readonly createdAt: import("effect/Schema").DateFromString;
2315
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2191
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2316
2192
  readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
2317
2193
  readonly memberId: import("effect/Schema").String;
2318
2194
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2319
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2195
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2320
2196
  readonly id: import("effect/Schema").String;
2321
2197
  readonly organizationId: import("effect/Schema").String;
2322
2198
  readonly userId: import("effect/Schema").String;
2323
2199
  readonly role: import("effect/Schema").String;
2324
2200
  readonly createdAt: import("effect/Schema").DateFromString;
2325
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2201
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2326
2202
  readonly email: import("effect/Schema").String;
2327
2203
  readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
2328
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2204
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2329
2205
  readonly status: import("effect/Schema").Boolean;
2330
2206
  readonly message: import("effect/Schema").String;
2331
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2207
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2332
2208
  readonly newPassword: import("effect/Schema").String;
2333
2209
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2334
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2210
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2335
2211
  readonly status: import("effect/Schema").Boolean;
2336
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2212
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2337
2213
  readonly email: import("effect/Schema").String;
2338
2214
  readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
2339
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2215
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2340
2216
  readonly success: import("effect/Schema").Boolean;
2341
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2217
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2342
2218
  readonly email: import("effect/Schema").String;
2343
2219
  readonly password: import("effect/Schema").String;
2344
2220
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2345
2221
  readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2346
2222
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2347
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
2223
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
2348
2224
  readonly redirect: import("effect/Schema").Boolean;
2349
2225
  readonly token: import("effect/Schema").String;
2350
2226
  readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -2367,12 +2243,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2367
2243
  readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
2368
2244
  readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
2369
2245
  readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2370
- }>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2246
+ }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2371
2247
  readonly email: import("effect/Schema").String;
2372
2248
  readonly otp: import("effect/Schema").String;
2373
2249
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
2374
2250
  readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
2375
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2251
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2376
2252
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2377
2253
  readonly user: import("effect/Schema").Struct<{
2378
2254
  readonly id: import("effect/Schema").String;
@@ -2389,7 +2265,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2389
2265
  readonly createdAt: import("effect/Schema").DateFromString;
2390
2266
  readonly updatedAt: import("effect/Schema").DateFromString;
2391
2267
  }>;
2392
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2268
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2393
2269
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2394
2270
  readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2395
2271
  readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -2414,7 +2290,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2414
2290
  readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
2415
2291
  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>>>;
2416
2292
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2417
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2293
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2418
2294
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
2419
2295
  readonly redirect: import("effect/Schema").Boolean;
2420
2296
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -2434,28 +2310,28 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2434
2310
  readonly updatedAt: import("effect/Schema").DateFromString;
2435
2311
  }>>;
2436
2312
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2437
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2313
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2438
2314
  readonly success: import("effect/Schema").Boolean;
2439
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2315
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2440
2316
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2441
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2317
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2442
2318
  readonly status: import("effect/Schema").Boolean;
2443
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2319
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2444
2320
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
2445
2321
  readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
2446
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2322
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2447
2323
  readonly totpURI: import("effect/Schema").String;
2448
2324
  readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
2449
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2325
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2450
2326
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2451
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2327
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2452
2328
  readonly status: import("effect/Schema").Boolean;
2453
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2329
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2454
2330
  readonly code: import("effect/Schema").String;
2455
2331
  readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2456
2332
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2457
2333
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2458
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2334
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2459
2335
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2460
2336
  readonly user: import("effect/Schema").Struct<{
2461
2337
  readonly id: import("effect/Schema").String;
@@ -2472,11 +2348,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2472
2348
  readonly createdAt: import("effect/Schema").DateFromString;
2473
2349
  readonly updatedAt: import("effect/Schema").DateFromString;
2474
2350
  }>;
2475
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2351
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2476
2352
  readonly code: import("effect/Schema").String;
2477
2353
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2478
2354
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2479
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2355
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2480
2356
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2481
2357
  readonly user: import("effect/Schema").Struct<{
2482
2358
  readonly id: import("effect/Schema").String;
@@ -2493,11 +2369,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2493
2369
  readonly createdAt: import("effect/Schema").DateFromString;
2494
2370
  readonly updatedAt: import("effect/Schema").DateFromString;
2495
2371
  }>;
2496
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2372
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2497
2373
  readonly code: import("effect/Schema").String;
2498
2374
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2499
2375
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2500
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2376
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2501
2377
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
2502
2378
  readonly user: import("effect/Schema").Struct<{
2503
2379
  readonly id: import("effect/Schema").String;
@@ -2514,20 +2390,20 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2514
2390
  readonly createdAt: import("effect/Schema").DateFromString;
2515
2391
  readonly updatedAt: import("effect/Schema").DateFromString;
2516
2392
  }>;
2517
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2393
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2518
2394
  readonly providerId: import("effect/Schema").String;
2519
2395
  readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
2520
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2396
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2521
2397
  readonly status: import("effect/Schema").Boolean;
2522
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2398
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2523
2399
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
2524
2400
  readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2525
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2401
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2526
2402
  readonly status: import("effect/Schema").Boolean;
2527
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2403
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2528
2404
  readonly email: import("effect/Schema").String;
2529
2405
  readonly otp: import("effect/Schema").String;
2530
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
2406
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2531
2407
  readonly status: import("effect/Schema").Literal<true>;
2532
2408
  readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
2533
2409
  readonly user: import("effect/Schema").Struct<{
@@ -2545,4 +2421,128 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2545
2421
  readonly createdAt: import("effect/Schema").DateFromString;
2546
2422
  readonly updatedAt: import("effect/Schema").DateFromString;
2547
2423
  }>;
2548
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, false>>;
2424
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2425
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2426
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
2427
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2428
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2429
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2430
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2431
+ readonly id: import("effect/Schema").String;
2432
+ readonly key: import("effect/Schema").String;
2433
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2434
+ readonly organizationId: import("effect/Schema").String;
2435
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
2436
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2437
+ readonly id: import("effect/Schema").String;
2438
+ readonly name: import("effect/Schema").String;
2439
+ readonly slug: import("effect/Schema").String;
2440
+ readonly displayName: import("effect/Schema").String;
2441
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
2442
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2443
+ readonly email: import("effect/Schema").NonEmptyString;
2444
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2445
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2446
+ readonly label: import("effect/Schema").NonEmptyString;
2447
+ }>>;
2448
+ }>>>;
2449
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2450
+ readonly number: import("effect/Schema").NonEmptyString;
2451
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
2452
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2453
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2454
+ readonly label: import("effect/Schema").NonEmptyString;
2455
+ }>>;
2456
+ }>>>;
2457
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2458
+ readonly url: import("effect/Schema").NonEmptyString;
2459
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2460
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2461
+ readonly label: import("effect/Schema").NonEmptyString;
2462
+ }>>;
2463
+ }>>>;
2464
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2465
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
2466
+ readonly url: import("effect/Schema").NonEmptyString;
2467
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2468
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2469
+ readonly label: import("effect/Schema").NonEmptyString;
2470
+ }>>;
2471
+ }>>>;
2472
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2473
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
2474
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
2475
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
2476
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
2477
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
2478
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2479
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2480
+ readonly label: import("effect/Schema").NonEmptyString;
2481
+ }>>;
2482
+ readonly formatted: import("effect/Schema").String;
2483
+ }>>>;
2484
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
2485
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
2486
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2487
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
2488
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
2489
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
2490
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
2491
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2492
+ readonly projectKey: import("effect/Schema").String;
2493
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2494
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
2495
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2496
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2497
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
2498
+ readonly authOptions: import("effect/Schema").Struct<{
2499
+ readonly emailPassword: import("effect/Schema").Boolean;
2500
+ readonly emailOtp: import("effect/Schema").Boolean;
2501
+ readonly google: import("effect/Schema").Boolean;
2502
+ }>;
2503
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2504
+ readonly newPassword: import("effect/Schema").NonEmptyString;
2505
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2506
+ readonly ok: import("effect/Schema").Boolean;
2507
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2508
+ keyId: import("effect/Schema").NonEmptyString;
2509
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2510
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2511
+ readonly name: import("effect/Schema").NonEmptyString;
2512
+ readonly enabled: import("effect/Schema").Boolean;
2513
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2514
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2515
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2516
+ readonly ok: import("effect/Schema").Boolean;
2517
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
2518
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
2519
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2520
+ readonly url: import("effect/Schema").String;
2521
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2522
+ readonly key: import("effect/Schema").NonEmptyString;
2523
+ 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">]>>;
2524
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2525
+ readonly valid: import("effect/Schema").Boolean;
2526
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2527
+ readonly message: import("effect/Schema").String;
2528
+ readonly code: import("effect/Schema").String;
2529
+ }>>;
2530
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2531
+ readonly id: import("effect/Schema").String;
2532
+ readonly configId: import("effect/Schema").String;
2533
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2534
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
2535
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2536
+ readonly referenceId: import("effect/Schema").String;
2537
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2538
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
2539
+ readonly createdAt: import("effect/Schema").Date;
2540
+ readonly updatedAt: import("effect/Schema").Date;
2541
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2542
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
2543
+ }>>;
2544
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2545
+ readonly password: import("effect/Schema").NonEmptyString;
2546
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2547
+ readonly ok: import("effect/Schema").Boolean;
2548
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false>>;