@krak-stack/auth 0.1.53 → 0.1.55

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
@@ -56,40 +56,123 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
56
56
  readonly createdAt: import("effect/Schema").Date;
57
57
  readonly updatedAt: import("effect/Schema").Date;
58
58
  }>;
59
- }>>, 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").NotFound | 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/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
60
- readonly id: import("effect/Schema").NonEmptyString;
61
- }>>, 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<{
59
+ }>>, 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").NotFound | 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<{
60
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
61
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
62
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
63
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
64
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
65
+ readonly id: import("effect/Schema").String;
66
+ readonly key: import("effect/Schema").String;
67
+ }>>, 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").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<{
68
+ readonly organizationId: import("effect/Schema").String;
69
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
70
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
62
71
  readonly id: import("effect/Schema").String;
63
72
  readonly name: import("effect/Schema").String;
64
- readonly email: import("effect/Schema").String;
65
- readonly emailVerified: import("effect/Schema").Boolean;
66
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
67
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
68
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
69
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
70
- readonly createdAt: import("effect/Schema").Date;
71
- readonly updatedAt: import("effect/Schema").Date;
72
- }>>, 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<{
73
- readonly userId: import("effect/Schema").NonEmptyString;
74
- }>>, 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<{
75
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
76
- }>>, 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<{
77
- readonly ids: import("effect/Schema").NonEmptyString;
73
+ readonly slug: import("effect/Schema").String;
74
+ readonly displayName: import("effect/Schema").String;
75
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
76
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
77
+ readonly email: import("effect/Schema").NonEmptyString;
78
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
79
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
80
+ readonly label: import("effect/Schema").NonEmptyString;
81
+ }>>;
82
+ }>>>;
83
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
84
+ readonly number: import("effect/Schema").NonEmptyString;
85
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
86
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
87
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
88
+ readonly label: import("effect/Schema").NonEmptyString;
89
+ }>>;
90
+ }>>>;
91
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
92
+ readonly url: import("effect/Schema").NonEmptyString;
93
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
94
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
95
+ readonly label: import("effect/Schema").NonEmptyString;
96
+ }>>;
97
+ }>>>;
98
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
99
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
100
+ readonly url: import("effect/Schema").NonEmptyString;
101
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
102
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
103
+ readonly label: import("effect/Schema").NonEmptyString;
104
+ }>>;
105
+ }>>>;
106
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
107
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
108
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
109
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
110
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
111
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
112
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
113
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
114
+ readonly label: import("effect/Schema").NonEmptyString;
115
+ }>>;
116
+ readonly formatted: import("effect/Schema").String;
117
+ }>>>;
118
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
119
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
120
+ }>>, 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<{
121
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
122
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
123
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
124
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
78
125
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
79
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
126
+ readonly projectKey: import("effect/Schema").String;
127
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
128
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
129
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
130
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
131
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
132
+ readonly authOptions: import("effect/Schema").Struct<{
133
+ readonly emailPassword: import("effect/Schema").Boolean;
134
+ readonly emailOtp: import("effect/Schema").Boolean;
135
+ readonly google: import("effect/Schema").Boolean;
136
+ readonly signUp: import("effect/Schema").Boolean;
137
+ readonly signUpName: import("effect/Schema").Boolean;
138
+ }>;
139
+ }>>, 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<{
140
+ readonly newPassword: import("effect/Schema").NonEmptyString;
141
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
142
+ readonly ok: import("effect/Schema").Boolean;
143
+ }>>, 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").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<{
144
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
145
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
146
+ readonly url: import("effect/Schema").String;
147
+ }>>, 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").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<{
148
+ readonly key: import("effect/Schema").NonEmptyString;
149
+ 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">]>>;
150
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
151
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
152
+ readonly valid: import("effect/Schema").Boolean;
153
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
154
+ readonly message: import("effect/Schema").String;
155
+ readonly code: import("effect/Schema").String;
156
+ }>>;
157
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
80
158
  readonly id: import("effect/Schema").String;
81
- readonly name: import("effect/Schema").String;
82
- readonly email: import("effect/Schema").String;
83
- readonly emailVerified: import("effect/Schema").Boolean;
84
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
85
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
86
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
87
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
159
+ readonly configId: import("effect/Schema").String;
160
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
161
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
162
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
163
+ readonly referenceId: import("effect/Schema").String;
164
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
165
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
88
166
  readonly createdAt: import("effect/Schema").Date;
89
167
  readonly updatedAt: import("effect/Schema").Date;
168
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
169
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
90
170
  }>>;
91
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
92
- }>>, 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<{
171
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").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<{
172
+ readonly password: import("effect/Schema").NonEmptyString;
173
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
174
+ readonly ok: import("effect/Schema").Boolean;
175
+ }>>, 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").ExtraBadRequest>, 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<{
93
176
  readonly hostname: import("effect/Schema").NonEmptyString;
94
177
  readonly rootHostname: import("effect/Schema").NonEmptyString;
95
178
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -197,7 +280,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
197
280
  readonly name: import("effect/Schema").String;
198
281
  readonly slug: import("effect/Schema").String;
199
282
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
200
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
283
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
201
284
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
202
285
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
203
286
  readonly name: import("effect/Schema").String;
@@ -206,7 +289,48 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
206
289
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
207
290
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
208
291
  }>>;
209
- }>>;
292
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
293
+ readonly email: import("effect/Schema").NonEmptyString;
294
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
295
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
296
+ readonly label: import("effect/Schema").NonEmptyString;
297
+ }>>;
298
+ }>>>;
299
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
300
+ readonly number: import("effect/Schema").NonEmptyString;
301
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
302
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
303
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
304
+ readonly label: import("effect/Schema").NonEmptyString;
305
+ }>>;
306
+ }>>>;
307
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
308
+ readonly url: import("effect/Schema").NonEmptyString;
309
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
310
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
311
+ readonly label: import("effect/Schema").NonEmptyString;
312
+ }>>;
313
+ }>>>;
314
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
315
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
316
+ readonly url: import("effect/Schema").NonEmptyString;
317
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
318
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
319
+ readonly label: import("effect/Schema").NonEmptyString;
320
+ }>>;
321
+ }>>>;
322
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
323
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
324
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
325
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
326
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
327
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
328
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
329
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
330
+ readonly label: import("effect/Schema").NonEmptyString;
331
+ }>>;
332
+ }>>>;
333
+ }>, import("effect/Schema").Unknown, never, never>>;
210
334
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
211
335
  readonly createdAt: import("effect/Schema").Date;
212
336
  }>>, 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<{
@@ -216,7 +340,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
216
340
  readonly name: import("effect/Schema").String;
217
341
  readonly slug: import("effect/Schema").String;
218
342
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
219
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
343
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
220
344
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
221
345
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
222
346
  readonly name: import("effect/Schema").String;
@@ -225,7 +349,48 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
225
349
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
226
350
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
227
351
  }>>;
228
- }>>;
352
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
353
+ readonly email: import("effect/Schema").NonEmptyString;
354
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
355
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
356
+ readonly label: import("effect/Schema").NonEmptyString;
357
+ }>>;
358
+ }>>>;
359
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
360
+ readonly number: import("effect/Schema").NonEmptyString;
361
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
362
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
363
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
364
+ readonly label: import("effect/Schema").NonEmptyString;
365
+ }>>;
366
+ }>>>;
367
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
368
+ readonly url: import("effect/Schema").NonEmptyString;
369
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
370
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
371
+ readonly label: import("effect/Schema").NonEmptyString;
372
+ }>>;
373
+ }>>>;
374
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
375
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
376
+ readonly url: import("effect/Schema").NonEmptyString;
377
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
378
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
379
+ readonly label: import("effect/Schema").NonEmptyString;
380
+ }>>;
381
+ }>>>;
382
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
383
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
384
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
385
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
386
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
387
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
388
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
389
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
390
+ readonly label: import("effect/Schema").NonEmptyString;
391
+ }>>;
392
+ }>>>;
393
+ }>, import("effect/Schema").Unknown, never, never>>;
229
394
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
230
395
  readonly createdAt: import("effect/Schema").Date;
231
396
  }>>>, 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,7 +422,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
257
422
  readonly name: import("effect/Schema").String;
258
423
  readonly slug: import("effect/Schema").String;
259
424
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
260
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
425
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
261
426
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
262
427
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
263
428
  readonly name: import("effect/Schema").String;
@@ -266,131 +431,73 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
266
431
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
267
432
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
268
433
  }>>;
269
- }>>;
434
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
435
+ readonly email: import("effect/Schema").NonEmptyString;
436
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
437
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
438
+ readonly label: import("effect/Schema").NonEmptyString;
439
+ }>>;
440
+ }>>>;
441
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
442
+ readonly number: import("effect/Schema").NonEmptyString;
443
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
444
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
445
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
446
+ readonly label: import("effect/Schema").NonEmptyString;
447
+ }>>;
448
+ }>>>;
449
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
450
+ readonly url: import("effect/Schema").NonEmptyString;
451
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
452
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
453
+ readonly label: import("effect/Schema").NonEmptyString;
454
+ }>>;
455
+ }>>>;
456
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
457
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
458
+ readonly url: import("effect/Schema").NonEmptyString;
459
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
460
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
461
+ readonly label: import("effect/Schema").NonEmptyString;
462
+ }>>;
463
+ }>>>;
464
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
465
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
466
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
467
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
468
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
469
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
470
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
471
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
472
+ readonly label: import("effect/Schema").NonEmptyString;
473
+ }>>;
474
+ }>>>;
475
+ }>, import("effect/Schema").Unknown, never, never>>;
270
476
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
271
477
  readonly createdAt: import("effect/Schema").Date;
272
478
  }>>;
273
479
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
274
- }>>, 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<{
275
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
276
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
277
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
278
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
279
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
280
- readonly id: import("effect/Schema").String;
281
- readonly key: import("effect/Schema").String;
282
- }>>, 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").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<{
283
- readonly organizationId: import("effect/Schema").String;
284
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
480
+ }>>, 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<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
481
+ readonly id: import("effect/Schema").NonEmptyString;
482
+ }>>, 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<{
285
483
  readonly id: import("effect/Schema").String;
286
484
  readonly name: import("effect/Schema").String;
287
- readonly slug: import("effect/Schema").String;
288
- readonly displayName: import("effect/Schema").String;
289
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
290
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
291
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
292
- }>>, 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<{
293
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
294
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
295
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
296
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
485
+ readonly email: import("effect/Schema").String;
486
+ readonly emailVerified: import("effect/Schema").Boolean;
487
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
488
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
489
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
490
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
491
+ readonly createdAt: import("effect/Schema").Date;
492
+ readonly updatedAt: import("effect/Schema").Date;
493
+ }>>, 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<{
494
+ readonly userId: import("effect/Schema").NonEmptyString;
495
+ }>>, 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<{
496
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
497
+ }>>, 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<{
498
+ readonly ids: import("effect/Schema").NonEmptyString;
297
499
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
298
- readonly projectKey: import("effect/Schema").String;
299
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
300
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
301
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
302
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
303
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
304
- readonly authOptions: import("effect/Schema").Struct<{
305
- readonly emailPassword: import("effect/Schema").Boolean;
306
- readonly emailOtp: import("effect/Schema").Boolean;
307
- readonly google: import("effect/Schema").Boolean;
308
- readonly signUp: import("effect/Schema").Boolean;
309
- readonly signUpName: import("effect/Schema").Boolean;
310
- }>;
311
- }>>, 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<{
312
- readonly newPassword: import("effect/Schema").NonEmptyString;
313
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
314
- readonly ok: import("effect/Schema").Boolean;
315
- }>>, 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").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<{
316
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
317
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
318
- readonly url: import("effect/Schema").String;
319
- }>>, 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").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<{
320
- readonly key: import("effect/Schema").NonEmptyString;
321
- 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">]>>;
322
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
323
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
324
- readonly valid: import("effect/Schema").Boolean;
325
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
326
- readonly message: import("effect/Schema").String;
327
- readonly code: import("effect/Schema").String;
328
- }>>;
329
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
330
- readonly id: import("effect/Schema").String;
331
- readonly configId: import("effect/Schema").String;
332
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
333
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
334
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
335
- readonly referenceId: import("effect/Schema").String;
336
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
337
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
338
- readonly createdAt: import("effect/Schema").Date;
339
- readonly updatedAt: import("effect/Schema").Date;
340
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
341
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
342
- }>>;
343
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").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<{
344
- readonly password: import("effect/Schema").NonEmptyString;
345
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
346
- readonly ok: import("effect/Schema").Boolean;
347
- }>>, 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").ExtraBadRequest>, never, never>, false>>;
348
- export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", 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<never>, 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<{
349
- readonly session: import("effect/Schema").Struct<{
350
- readonly id: import("effect/Schema").String;
351
- readonly expiresAt: import("effect/Schema").Date;
352
- readonly token: import("effect/Schema").String;
353
- readonly createdAt: import("effect/Schema").Date;
354
- readonly updatedAt: import("effect/Schema").Date;
355
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
356
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
357
- readonly userId: import("effect/Schema").String;
358
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
359
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
360
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
361
- }>;
362
- readonly user: import("effect/Schema").Struct<{
363
- readonly id: import("effect/Schema").String;
364
- readonly name: import("effect/Schema").String;
365
- readonly email: import("effect/Schema").String;
366
- readonly emailVerified: import("effect/Schema").Boolean;
367
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
368
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
369
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
370
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
371
- readonly createdAt: import("effect/Schema").Date;
372
- readonly updatedAt: import("effect/Schema").Date;
373
- }>;
374
- }>>>, 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").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./better-auth/schema").TooManyRequests>, 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<{
375
- readonly organizationId: import("effect/Schema").NonEmptyString;
376
- readonly actorUserId: import("effect/Schema").NonEmptyString;
377
- readonly targetUserId: import("effect/Schema").NonEmptyString;
378
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
379
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
380
- readonly session: import("effect/Schema").Struct<{
381
- readonly id: import("effect/Schema").String;
382
- readonly expiresAt: import("effect/Schema").Date;
383
- readonly token: import("effect/Schema").String;
384
- readonly createdAt: import("effect/Schema").Date;
385
- readonly updatedAt: import("effect/Schema").Date;
386
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
387
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
388
- readonly userId: import("effect/Schema").String;
389
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
390
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
391
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
392
- }>;
393
- readonly user: import("effect/Schema").Struct<{
500
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
394
501
  readonly id: import("effect/Schema").String;
395
502
  readonly name: import("effect/Schema").String;
396
503
  readonly email: import("effect/Schema").String;
@@ -401,81 +508,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
401
508
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
402
509
  readonly createdAt: import("effect/Schema").Date;
403
510
  readonly updatedAt: import("effect/Schema").Date;
404
- }>;
405
- }>>, 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").NotFound | 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<{
406
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
407
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
408
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
409
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
410
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
411
- readonly id: import("effect/Schema").String;
412
- readonly key: import("effect/Schema").String;
413
- }>>, 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").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<{
414
- readonly organizationId: import("effect/Schema").String;
415
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
416
- readonly id: import("effect/Schema").String;
417
- readonly name: import("effect/Schema").String;
418
- readonly slug: import("effect/Schema").String;
419
- readonly displayName: import("effect/Schema").String;
420
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
421
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
422
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
423
- }>>, 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<{
424
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
425
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
426
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
427
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
428
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
429
- readonly projectKey: import("effect/Schema").String;
430
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
431
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
432
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
433
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
434
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
435
- readonly authOptions: import("effect/Schema").Struct<{
436
- readonly emailPassword: import("effect/Schema").Boolean;
437
- readonly emailOtp: import("effect/Schema").Boolean;
438
- readonly google: import("effect/Schema").Boolean;
439
- readonly signUp: import("effect/Schema").Boolean;
440
- readonly signUpName: import("effect/Schema").Boolean;
441
- }>;
442
- }>>, 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<{
443
- readonly newPassword: import("effect/Schema").NonEmptyString;
444
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
445
- readonly ok: import("effect/Schema").Boolean;
446
- }>>, 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").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<{
447
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
448
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
449
- readonly url: import("effect/Schema").String;
450
- }>>, 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").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<{
451
- readonly key: import("effect/Schema").NonEmptyString;
452
- 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">]>>;
453
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
454
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
455
- readonly valid: import("effect/Schema").Boolean;
456
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
457
- readonly message: import("effect/Schema").String;
458
- readonly code: import("effect/Schema").String;
459
- }>>;
460
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
461
- readonly id: import("effect/Schema").String;
462
- readonly configId: import("effect/Schema").String;
463
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
464
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
465
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
466
- readonly referenceId: import("effect/Schema").String;
467
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
468
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
469
- readonly createdAt: import("effect/Schema").Date;
470
- readonly updatedAt: import("effect/Schema").Date;
471
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
472
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
473
511
  }>>;
474
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").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<{
475
- readonly password: import("effect/Schema").NonEmptyString;
476
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
477
- readonly ok: import("effect/Schema").Boolean;
478
- }>>, 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").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<{
512
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
513
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
514
+ 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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
479
515
  readonly hostname: import("effect/Schema").NonEmptyString;
480
516
  readonly rootHostname: import("effect/Schema").NonEmptyString;
481
517
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -851,4 +887,177 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
851
887
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
852
888
  }>>>;
853
889
  readonly createdAt: import("effect/Schema").Date;
854
- }>>, 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>>;
890
+ }>>, 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<"getSession", "GET", "/api/auth/get-session", 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").NullOr<import("effect/Schema").Struct<{
891
+ readonly session: import("effect/Schema").Struct<{
892
+ readonly id: import("effect/Schema").String;
893
+ readonly expiresAt: import("effect/Schema").Date;
894
+ readonly token: import("effect/Schema").String;
895
+ readonly createdAt: import("effect/Schema").Date;
896
+ readonly updatedAt: import("effect/Schema").Date;
897
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
898
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
899
+ readonly userId: import("effect/Schema").String;
900
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
901
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
902
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
903
+ }>;
904
+ readonly user: import("effect/Schema").Struct<{
905
+ readonly id: import("effect/Schema").String;
906
+ readonly name: import("effect/Schema").String;
907
+ readonly email: import("effect/Schema").String;
908
+ readonly emailVerified: import("effect/Schema").Boolean;
909
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
910
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
911
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
912
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
913
+ readonly createdAt: import("effect/Schema").Date;
914
+ readonly updatedAt: import("effect/Schema").Date;
915
+ }>;
916
+ }>>>, 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").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./better-auth/schema").TooManyRequests>, 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<{
917
+ readonly organizationId: import("effect/Schema").NonEmptyString;
918
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
919
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
920
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
921
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
922
+ readonly session: import("effect/Schema").Struct<{
923
+ readonly id: import("effect/Schema").String;
924
+ readonly expiresAt: import("effect/Schema").Date;
925
+ readonly token: import("effect/Schema").String;
926
+ readonly createdAt: import("effect/Schema").Date;
927
+ readonly updatedAt: import("effect/Schema").Date;
928
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
929
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
930
+ readonly userId: import("effect/Schema").String;
931
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
932
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
933
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
934
+ }>;
935
+ readonly user: import("effect/Schema").Struct<{
936
+ readonly id: import("effect/Schema").String;
937
+ readonly name: import("effect/Schema").String;
938
+ readonly email: import("effect/Schema").String;
939
+ readonly emailVerified: import("effect/Schema").Boolean;
940
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
941
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
942
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
943
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
944
+ readonly createdAt: import("effect/Schema").Date;
945
+ readonly updatedAt: import("effect/Schema").Date;
946
+ }>;
947
+ }>>, 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").NotFound | 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<{
948
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
949
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
950
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
951
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
952
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
953
+ readonly id: import("effect/Schema").String;
954
+ readonly key: import("effect/Schema").String;
955
+ }>>, 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").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<{
956
+ readonly organizationId: import("effect/Schema").String;
957
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
958
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
959
+ readonly id: import("effect/Schema").String;
960
+ readonly name: import("effect/Schema").String;
961
+ readonly slug: import("effect/Schema").String;
962
+ readonly displayName: import("effect/Schema").String;
963
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
964
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
965
+ readonly email: import("effect/Schema").NonEmptyString;
966
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
967
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
968
+ readonly label: import("effect/Schema").NonEmptyString;
969
+ }>>;
970
+ }>>>;
971
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
972
+ readonly number: import("effect/Schema").NonEmptyString;
973
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
974
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
975
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
976
+ readonly label: import("effect/Schema").NonEmptyString;
977
+ }>>;
978
+ }>>>;
979
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
980
+ readonly url: import("effect/Schema").NonEmptyString;
981
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
982
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
983
+ readonly label: import("effect/Schema").NonEmptyString;
984
+ }>>;
985
+ }>>>;
986
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
987
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
988
+ readonly url: import("effect/Schema").NonEmptyString;
989
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
990
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
991
+ readonly label: import("effect/Schema").NonEmptyString;
992
+ }>>;
993
+ }>>>;
994
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
995
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
996
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
997
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
998
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
999
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1000
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1001
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1002
+ readonly label: import("effect/Schema").NonEmptyString;
1003
+ }>>;
1004
+ readonly formatted: import("effect/Schema").String;
1005
+ }>>>;
1006
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1007
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
1008
+ }>>, 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<{
1009
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1010
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
1011
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
1012
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1013
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1014
+ readonly projectKey: import("effect/Schema").String;
1015
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1016
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
1017
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1018
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1019
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
1020
+ readonly authOptions: import("effect/Schema").Struct<{
1021
+ readonly emailPassword: import("effect/Schema").Boolean;
1022
+ readonly emailOtp: import("effect/Schema").Boolean;
1023
+ readonly google: import("effect/Schema").Boolean;
1024
+ readonly signUp: import("effect/Schema").Boolean;
1025
+ readonly signUpName: import("effect/Schema").Boolean;
1026
+ }>;
1027
+ }>>, 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<{
1028
+ readonly newPassword: import("effect/Schema").NonEmptyString;
1029
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1030
+ readonly ok: import("effect/Schema").Boolean;
1031
+ }>>, 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").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<{
1032
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
1033
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1034
+ readonly url: import("effect/Schema").String;
1035
+ }>>, 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").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<{
1036
+ readonly key: import("effect/Schema").NonEmptyString;
1037
+ 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">]>>;
1038
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1039
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1040
+ readonly valid: import("effect/Schema").Boolean;
1041
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1042
+ readonly message: import("effect/Schema").String;
1043
+ readonly code: import("effect/Schema").String;
1044
+ }>>;
1045
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1046
+ readonly id: import("effect/Schema").String;
1047
+ readonly configId: import("effect/Schema").String;
1048
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1049
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1050
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1051
+ readonly referenceId: import("effect/Schema").String;
1052
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1053
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1054
+ readonly createdAt: import("effect/Schema").Date;
1055
+ readonly updatedAt: import("effect/Schema").Date;
1056
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1057
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1058
+ }>>;
1059
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").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<{
1060
+ readonly password: import("effect/Schema").NonEmptyString;
1061
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1062
+ readonly ok: import("effect/Schema").Boolean;
1063
+ }>>, 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").ExtraBadRequest>, never, never>, false>>;