@krak-stack/auth 0.1.60 → 0.1.62

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,133 +56,40 @@ 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<"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
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
65
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
66
- readonly id: import("effect/Schema").String;
67
- readonly key: import("effect/Schema").String;
68
- }>>, 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<{
69
- readonly organizationId: import("effect/Schema").String;
70
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
71
- }>>, 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<"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<{
72
62
  readonly id: import("effect/Schema").String;
73
63
  readonly name: import("effect/Schema").String;
74
- readonly slug: import("effect/Schema").String;
75
- readonly displayName: import("effect/Schema").String;
76
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
77
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
78
- readonly email: import("effect/Schema").NonEmptyString;
79
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
80
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
81
- readonly label: import("effect/Schema").NonEmptyString;
82
- }>>;
83
- }>>>;
84
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
85
- readonly number: import("effect/Schema").NonEmptyString;
86
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
87
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
88
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
89
- readonly label: import("effect/Schema").NonEmptyString;
90
- }>>;
91
- }>>>;
92
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
93
- readonly url: import("effect/Schema").NonEmptyString;
94
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
95
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
96
- readonly label: import("effect/Schema").NonEmptyString;
97
- }>>;
98
- }>>>;
99
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
100
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
101
- readonly url: import("effect/Schema").NonEmptyString;
102
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
103
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
104
- readonly label: import("effect/Schema").NonEmptyString;
105
- }>>;
106
- }>>>;
107
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
108
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
109
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
110
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
111
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
112
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
113
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
114
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
115
- readonly label: import("effect/Schema").NonEmptyString;
116
- }>>;
117
- readonly formatted: import("effect/Schema").String;
118
- }>>>;
119
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
120
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
121
- }>>, 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<{
122
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
123
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
124
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
125
- readonly rootHost: import("effect/Schema").optional<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;
126
78
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
127
- readonly projectKey: import("effect/Schema").String;
128
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
129
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
130
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
131
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
132
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
133
- readonly authOptions: import("effect/Schema").Struct<{
134
- readonly emailPassword: import("effect/Schema").Boolean;
135
- readonly emailOtp: import("effect/Schema").Boolean;
136
- readonly google: import("effect/Schema").Boolean;
137
- readonly signUp: import("effect/Schema").Boolean;
138
- readonly signUpName: import("effect/Schema").Boolean;
139
- }>;
140
- }>>, 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<{
141
- readonly newPassword: import("effect/Schema").NonEmptyString;
142
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
143
- readonly ok: import("effect/Schema").Boolean;
144
- }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
145
- readonly keyId: import("effect/Schema").NonEmptyString;
146
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
147
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
148
- readonly name: import("effect/Schema").NonEmptyString;
149
- readonly enabled: import("effect/Schema").Boolean;
150
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
151
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
152
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
153
- readonly ok: import("effect/Schema").Boolean;
154
- }>>, 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<{
155
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
156
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
157
- readonly url: import("effect/Schema").String;
158
- }>>, 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<{
159
- readonly key: import("effect/Schema").NonEmptyString;
160
- 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">]>>;
161
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
162
- readonly valid: import("effect/Schema").Boolean;
163
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
164
- readonly message: import("effect/Schema").String;
165
- readonly code: import("effect/Schema").String;
166
- }>>;
167
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
79
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
168
80
  readonly id: import("effect/Schema").String;
169
- readonly configId: import("effect/Schema").String;
170
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
171
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
172
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
173
- readonly referenceId: import("effect/Schema").String;
174
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
175
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
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>>;
176
88
  readonly createdAt: import("effect/Schema").Date;
177
89
  readonly updatedAt: import("effect/Schema").Date;
178
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
179
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
180
90
  }>>;
181
- }>>, 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<{
182
- readonly password: import("effect/Schema").NonEmptyString;
183
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
184
- readonly ok: import("effect/Schema").Boolean;
185
- }>>, 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<{
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<{
186
93
  readonly hostname: import("effect/Schema").NonEmptyString;
187
94
  readonly rootHostname: import("effect/Schema").NonEmptyString;
188
95
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -487,41 +394,317 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
487
394
  readonly createdAt: import("effect/Schema").Date;
488
395
  }>>;
489
396
  readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
490
- }>>, 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<{
491
- readonly id: import("effect/Schema").NonEmptyString;
492
- }>>, 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<{
397
+ }>>, 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<{
398
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
399
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
400
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
401
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
402
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
403
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
404
+ readonly id: import("effect/Schema").String;
405
+ readonly key: import("effect/Schema").String;
406
+ }>>, 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<{
407
+ readonly organizationId: import("effect/Schema").String;
408
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
409
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
493
410
  readonly id: import("effect/Schema").String;
494
411
  readonly name: import("effect/Schema").String;
495
- readonly email: import("effect/Schema").String;
496
- readonly emailVerified: import("effect/Schema").Boolean;
497
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
498
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
499
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
500
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
501
- readonly createdAt: import("effect/Schema").Date;
502
- readonly updatedAt: import("effect/Schema").Date;
503
- }>>, 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<{
504
- readonly userId: import("effect/Schema").NonEmptyString;
505
- }>>, 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<{
506
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
507
- }>>, 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<{
508
- readonly ids: import("effect/Schema").NonEmptyString;
412
+ readonly slug: import("effect/Schema").String;
413
+ readonly displayName: import("effect/Schema").String;
414
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
415
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
416
+ readonly email: import("effect/Schema").NonEmptyString;
417
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
418
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
419
+ readonly label: import("effect/Schema").NonEmptyString;
420
+ }>>;
421
+ }>>>;
422
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
423
+ readonly number: import("effect/Schema").NonEmptyString;
424
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
425
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
426
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
427
+ readonly label: import("effect/Schema").NonEmptyString;
428
+ }>>;
429
+ }>>>;
430
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
431
+ readonly url: import("effect/Schema").NonEmptyString;
432
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
433
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
434
+ readonly label: import("effect/Schema").NonEmptyString;
435
+ }>>;
436
+ }>>>;
437
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
438
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
439
+ readonly url: import("effect/Schema").NonEmptyString;
440
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
441
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
442
+ readonly label: import("effect/Schema").NonEmptyString;
443
+ }>>;
444
+ }>>>;
445
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
446
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
447
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
448
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
449
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
450
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
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
+ readonly formatted: import("effect/Schema").String;
456
+ }>>>;
457
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
458
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
459
+ }>>, 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<{
460
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
461
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
462
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
463
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
464
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
465
+ readonly projectKey: import("effect/Schema").String;
466
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
467
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
468
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
469
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
470
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
471
+ readonly authOptions: import("effect/Schema").Struct<{
472
+ readonly emailPassword: import("effect/Schema").Boolean;
473
+ readonly emailOtp: import("effect/Schema").Boolean;
474
+ readonly google: import("effect/Schema").Boolean;
475
+ readonly signUp: import("effect/Schema").Boolean;
476
+ readonly signUpName: import("effect/Schema").Boolean;
477
+ }>;
478
+ }>>, 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<{
479
+ readonly newPassword: import("effect/Schema").NonEmptyString;
480
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
481
+ readonly ok: import("effect/Schema").Boolean;
482
+ }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
483
+ readonly keyId: import("effect/Schema").NonEmptyString;
484
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
485
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
486
+ readonly name: import("effect/Schema").NonEmptyString;
487
+ readonly enabled: import("effect/Schema").Boolean;
488
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
489
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
490
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
491
+ readonly ok: import("effect/Schema").Boolean;
492
+ }>>, 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<{
493
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
494
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
495
+ readonly url: import("effect/Schema").String;
496
+ }>>, 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<{
497
+ readonly key: import("effect/Schema").NonEmptyString;
498
+ 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">]>>;
499
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
500
+ readonly valid: import("effect/Schema").Boolean;
501
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
502
+ readonly message: import("effect/Schema").String;
503
+ readonly code: import("effect/Schema").String;
504
+ }>>;
505
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
506
+ readonly id: import("effect/Schema").String;
507
+ readonly configId: import("effect/Schema").String;
508
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
509
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
510
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
511
+ readonly referenceId: import("effect/Schema").String;
512
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
513
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
514
+ readonly createdAt: import("effect/Schema").Date;
515
+ readonly updatedAt: import("effect/Schema").Date;
516
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
517
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
518
+ }>>;
519
+ }>>, 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<{
520
+ readonly password: import("effect/Schema").NonEmptyString;
521
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
522
+ readonly ok: import("effect/Schema").Boolean;
523
+ }>>, 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>>;
524
+ 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<{
525
+ readonly session: import("effect/Schema").Struct<{
526
+ readonly id: import("effect/Schema").String;
527
+ readonly expiresAt: import("effect/Schema").Date;
528
+ readonly token: import("effect/Schema").String;
529
+ readonly createdAt: import("effect/Schema").Date;
530
+ readonly updatedAt: import("effect/Schema").Date;
531
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
532
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
533
+ readonly userId: import("effect/Schema").String;
534
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
535
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
536
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
537
+ }>;
538
+ readonly user: import("effect/Schema").Struct<{
539
+ readonly id: import("effect/Schema").String;
540
+ readonly name: import("effect/Schema").String;
541
+ readonly email: import("effect/Schema").String;
542
+ readonly emailVerified: import("effect/Schema").Boolean;
543
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
544
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
545
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
546
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
547
+ readonly createdAt: import("effect/Schema").Date;
548
+ readonly updatedAt: import("effect/Schema").Date;
549
+ }>;
550
+ }>>>, 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<{
551
+ readonly organizationId: import("effect/Schema").NonEmptyString;
552
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
553
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
554
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
555
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
556
+ readonly session: import("effect/Schema").Struct<{
557
+ readonly id: import("effect/Schema").String;
558
+ readonly expiresAt: import("effect/Schema").Date;
559
+ readonly token: import("effect/Schema").String;
560
+ readonly createdAt: import("effect/Schema").Date;
561
+ readonly updatedAt: import("effect/Schema").Date;
562
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
563
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
564
+ readonly userId: import("effect/Schema").String;
565
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
566
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
567
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
568
+ }>;
569
+ readonly user: import("effect/Schema").Struct<{
570
+ readonly id: import("effect/Schema").String;
571
+ readonly name: import("effect/Schema").String;
572
+ readonly email: import("effect/Schema").String;
573
+ readonly emailVerified: import("effect/Schema").Boolean;
574
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
575
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
576
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
577
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
578
+ readonly createdAt: import("effect/Schema").Date;
579
+ readonly updatedAt: import("effect/Schema").Date;
580
+ }>;
581
+ }>>, 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<{
582
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
583
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
584
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
585
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
586
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
587
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
588
+ readonly id: import("effect/Schema").String;
589
+ readonly key: import("effect/Schema").String;
590
+ }>>, 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<{
591
+ readonly organizationId: import("effect/Schema").String;
592
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
593
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
594
+ readonly id: import("effect/Schema").String;
595
+ readonly name: import("effect/Schema").String;
596
+ readonly slug: import("effect/Schema").String;
597
+ readonly displayName: import("effect/Schema").String;
598
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
599
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
600
+ readonly email: import("effect/Schema").NonEmptyString;
601
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
602
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
603
+ readonly label: import("effect/Schema").NonEmptyString;
604
+ }>>;
605
+ }>>>;
606
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
607
+ readonly number: import("effect/Schema").NonEmptyString;
608
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
609
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
610
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
611
+ readonly label: import("effect/Schema").NonEmptyString;
612
+ }>>;
613
+ }>>>;
614
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
615
+ readonly url: import("effect/Schema").NonEmptyString;
616
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
617
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
618
+ readonly label: import("effect/Schema").NonEmptyString;
619
+ }>>;
620
+ }>>>;
621
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
622
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
623
+ readonly url: import("effect/Schema").NonEmptyString;
624
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
625
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
626
+ readonly label: import("effect/Schema").NonEmptyString;
627
+ }>>;
628
+ }>>>;
629
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
630
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
631
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
632
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
633
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
634
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
635
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
636
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
637
+ readonly label: import("effect/Schema").NonEmptyString;
638
+ }>>;
639
+ readonly formatted: import("effect/Schema").String;
640
+ }>>>;
641
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
642
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
643
+ }>>, 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<{
644
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
645
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
646
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
647
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
509
648
  }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
510
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
649
+ readonly projectKey: import("effect/Schema").String;
650
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
651
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
652
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
653
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
654
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
655
+ readonly authOptions: import("effect/Schema").Struct<{
656
+ readonly emailPassword: import("effect/Schema").Boolean;
657
+ readonly emailOtp: import("effect/Schema").Boolean;
658
+ readonly google: import("effect/Schema").Boolean;
659
+ readonly signUp: import("effect/Schema").Boolean;
660
+ readonly signUpName: import("effect/Schema").Boolean;
661
+ }>;
662
+ }>>, 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<{
663
+ readonly newPassword: import("effect/Schema").NonEmptyString;
664
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
665
+ readonly ok: import("effect/Schema").Boolean;
666
+ }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
667
+ readonly keyId: import("effect/Schema").NonEmptyString;
668
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
669
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
670
+ readonly name: import("effect/Schema").NonEmptyString;
671
+ readonly enabled: import("effect/Schema").Boolean;
672
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
673
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
674
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
675
+ readonly ok: import("effect/Schema").Boolean;
676
+ }>>, 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<{
677
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
678
+ }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
679
+ readonly url: import("effect/Schema").String;
680
+ }>>, 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<{
681
+ readonly key: import("effect/Schema").NonEmptyString;
682
+ 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">]>>;
683
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
684
+ readonly valid: import("effect/Schema").Boolean;
685
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
686
+ readonly message: import("effect/Schema").String;
687
+ readonly code: import("effect/Schema").String;
688
+ }>>;
689
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
511
690
  readonly id: import("effect/Schema").String;
512
- readonly name: import("effect/Schema").String;
513
- readonly email: import("effect/Schema").String;
514
- readonly emailVerified: import("effect/Schema").Boolean;
515
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
516
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
517
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
518
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
691
+ readonly configId: import("effect/Schema").String;
692
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
693
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
694
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
695
+ readonly referenceId: import("effect/Schema").String;
696
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
697
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
519
698
  readonly createdAt: import("effect/Schema").Date;
520
699
  readonly updatedAt: import("effect/Schema").Date;
700
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
701
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
521
702
  }>>;
522
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
523
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
524
- 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<{
703
+ }>>, 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<{
704
+ readonly password: import("effect/Schema").NonEmptyString;
705
+ }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
706
+ readonly ok: import("effect/Schema").Boolean;
707
+ }>>, 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<{
525
708
  readonly hostname: import("effect/Schema").NonEmptyString;
526
709
  readonly rootHostname: import("effect/Schema").NonEmptyString;
527
710
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -904,187 +1087,4 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
904
1087
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
905
1088
  }>>>;
906
1089
  readonly createdAt: import("effect/Schema").Date;
907
- }>>, 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<{
908
- readonly session: import("effect/Schema").Struct<{
909
- readonly id: import("effect/Schema").String;
910
- readonly expiresAt: import("effect/Schema").Date;
911
- readonly token: import("effect/Schema").String;
912
- readonly createdAt: import("effect/Schema").Date;
913
- readonly updatedAt: import("effect/Schema").Date;
914
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
915
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
916
- readonly userId: import("effect/Schema").String;
917
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
918
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
919
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
920
- }>;
921
- readonly user: import("effect/Schema").Struct<{
922
- readonly id: import("effect/Schema").String;
923
- readonly name: import("effect/Schema").String;
924
- readonly email: import("effect/Schema").String;
925
- readonly emailVerified: import("effect/Schema").Boolean;
926
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
927
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
928
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
929
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
930
- readonly createdAt: import("effect/Schema").Date;
931
- readonly updatedAt: import("effect/Schema").Date;
932
- }>;
933
- }>>>, 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<{
934
- readonly organizationId: import("effect/Schema").NonEmptyString;
935
- readonly actorUserId: import("effect/Schema").NonEmptyString;
936
- readonly targetUserId: import("effect/Schema").NonEmptyString;
937
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
938
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
939
- readonly session: import("effect/Schema").Struct<{
940
- readonly id: import("effect/Schema").String;
941
- readonly expiresAt: import("effect/Schema").Date;
942
- readonly token: import("effect/Schema").String;
943
- readonly createdAt: import("effect/Schema").Date;
944
- readonly updatedAt: import("effect/Schema").Date;
945
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
946
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
947
- readonly userId: import("effect/Schema").String;
948
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
949
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
950
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
951
- }>;
952
- readonly user: import("effect/Schema").Struct<{
953
- readonly id: import("effect/Schema").String;
954
- readonly name: import("effect/Schema").String;
955
- readonly email: import("effect/Schema").String;
956
- readonly emailVerified: import("effect/Schema").Boolean;
957
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
958
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
959
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
960
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
961
- readonly createdAt: import("effect/Schema").Date;
962
- readonly updatedAt: import("effect/Schema").Date;
963
- }>;
964
- }>>, 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<{
965
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
966
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
967
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
968
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
969
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
970
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
971
- readonly id: import("effect/Schema").String;
972
- readonly key: import("effect/Schema").String;
973
- }>>, 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<{
974
- readonly organizationId: import("effect/Schema").String;
975
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
976
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
977
- readonly id: import("effect/Schema").String;
978
- readonly name: import("effect/Schema").String;
979
- readonly slug: import("effect/Schema").String;
980
- readonly displayName: import("effect/Schema").String;
981
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
982
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
983
- readonly email: import("effect/Schema").NonEmptyString;
984
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
985
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
986
- readonly label: import("effect/Schema").NonEmptyString;
987
- }>>;
988
- }>>>;
989
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
990
- readonly number: import("effect/Schema").NonEmptyString;
991
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
992
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
993
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
994
- readonly label: import("effect/Schema").NonEmptyString;
995
- }>>;
996
- }>>>;
997
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
998
- readonly url: import("effect/Schema").NonEmptyString;
999
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1000
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1001
- readonly label: import("effect/Schema").NonEmptyString;
1002
- }>>;
1003
- }>>>;
1004
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1005
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1006
- readonly url: import("effect/Schema").NonEmptyString;
1007
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1008
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1009
- readonly label: import("effect/Schema").NonEmptyString;
1010
- }>>;
1011
- }>>>;
1012
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1013
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1014
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1015
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1016
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1017
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1018
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1019
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1020
- readonly label: import("effect/Schema").NonEmptyString;
1021
- }>>;
1022
- readonly formatted: import("effect/Schema").String;
1023
- }>>>;
1024
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1025
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
1026
- }>>, 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<{
1027
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1028
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
1029
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
1030
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1031
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1032
- readonly projectKey: import("effect/Schema").String;
1033
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1034
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
1035
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1036
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1037
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
1038
- readonly authOptions: import("effect/Schema").Struct<{
1039
- readonly emailPassword: import("effect/Schema").Boolean;
1040
- readonly emailOtp: import("effect/Schema").Boolean;
1041
- readonly google: import("effect/Schema").Boolean;
1042
- readonly signUp: import("effect/Schema").Boolean;
1043
- readonly signUpName: import("effect/Schema").Boolean;
1044
- }>;
1045
- }>>, 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<{
1046
- readonly newPassword: import("effect/Schema").NonEmptyString;
1047
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1048
- readonly ok: import("effect/Schema").Boolean;
1049
- }>>, 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<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
1050
- readonly keyId: import("effect/Schema").NonEmptyString;
1051
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1052
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1053
- readonly name: import("effect/Schema").NonEmptyString;
1054
- readonly enabled: import("effect/Schema").Boolean;
1055
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1056
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1057
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1058
- readonly ok: import("effect/Schema").Boolean;
1059
- }>>, 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<{
1060
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
1061
- }>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1062
- readonly url: import("effect/Schema").String;
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> | 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<{
1064
- readonly key: import("effect/Schema").NonEmptyString;
1065
- 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">]>>;
1066
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1067
- readonly valid: import("effect/Schema").Boolean;
1068
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1069
- readonly message: import("effect/Schema").String;
1070
- readonly code: import("effect/Schema").String;
1071
- }>>;
1072
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1073
- readonly id: import("effect/Schema").String;
1074
- readonly configId: import("effect/Schema").String;
1075
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1076
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1077
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1078
- readonly referenceId: import("effect/Schema").String;
1079
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1080
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1081
- readonly createdAt: import("effect/Schema").Date;
1082
- readonly updatedAt: import("effect/Schema").Date;
1083
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1084
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1085
- }>>;
1086
- }>>, 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<{
1087
- readonly password: import("effect/Schema").NonEmptyString;
1088
- }>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
1089
- readonly ok: import("effect/Schema").Boolean;
1090
- }>>, 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>>;
1090
+ }>>, 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>>;