@krak-stack/auth 0.2.23 → 0.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -1,10 +1,57 @@
1
1
  import { HttpApi } from "effect/http-api";
2
- export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3
- readonly userId: import("effect/Schema").String;
4
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
5
- readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
6
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
7
- readonly user: import("effect/Schema").Struct<{
2
+ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"users", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3
+ readonly id: import("effect/Schema").NonEmptyString;
4
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
5
+ readonly id: import("effect/Schema").String;
6
+ readonly name: import("effect/Schema").String;
7
+ readonly email: import("effect/Schema").String;
8
+ readonly emailVerified: import("effect/Schema").Boolean;
9
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
10
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
11
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
12
+ readonly email: import("effect/Schema").NonEmptyString;
13
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
14
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
15
+ readonly label: import("effect/Schema").NonEmptyString;
16
+ }>>;
17
+ }>>>;
18
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
19
+ readonly number: import("effect/Schema").NonEmptyString;
20
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
21
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
22
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
23
+ readonly label: import("effect/Schema").NonEmptyString;
24
+ }>>;
25
+ }>>>;
26
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
27
+ readonly url: import("effect/Schema").NonEmptyString;
28
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
29
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
30
+ readonly label: import("effect/Schema").NonEmptyString;
31
+ }>>;
32
+ }>>>;
33
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
34
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
35
+ readonly url: import("effect/Schema").NonEmptyString;
36
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
37
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
38
+ readonly label: import("effect/Schema").NonEmptyString;
39
+ }>>;
40
+ }>>>;
41
+ }>, import("effect/Schema").Unknown, never, never>>>;
42
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
43
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
44
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
45
+ readonly createdAt: import("effect/Schema").Date;
46
+ readonly updatedAt: import("effect/Schema").Date;
47
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
48
+ readonly userId: import("effect/Schema").NonEmptyString;
49
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
50
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
51
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
52
+ readonly ids: import("effect/Schema").NonEmptyString;
53
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
54
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
8
55
  readonly id: import("effect/Schema").String;
9
56
  readonly name: import("effect/Schema").String;
10
57
  readonly email: import("effect/Schema").String;
@@ -44,90 +91,100 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
44
91
  }>, import("effect/Schema").Unknown, never, never>>>;
45
92
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
46
93
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
47
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
48
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
49
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
50
94
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
51
- readonly createdAt: import("effect/Schema").DateFromString;
52
- readonly updatedAt: import("effect/Schema").DateFromString;
53
- }>;
54
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
55
- readonly userId: import("effect/Schema").String;
95
+ readonly createdAt: import("effect/Schema").Date;
96
+ readonly updatedAt: import("effect/Schema").Date;
97
+ }>>;
98
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
99
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
100
+ readonly hostname: import("effect/Schema").NonEmptyString;
101
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
102
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
103
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
104
+ readonly managed: import("effect/Schema").Boolean;
56
105
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
57
- readonly session: import("effect/Schema").Struct<{
58
- readonly id: import("effect/Schema").String;
59
- readonly expiresAt: import("effect/Schema").DateFromString;
60
- readonly token: import("effect/Schema").String;
61
- readonly createdAt: import("effect/Schema").DateFromString;
62
- readonly updatedAt: import("effect/Schema").DateFromString;
63
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
64
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
65
- readonly userId: import("effect/Schema").String;
66
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
67
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
68
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
69
- }>;
70
- readonly user: import("effect/Schema").Struct<{
71
- readonly id: import("effect/Schema").String;
72
- readonly name: import("effect/Schema").String;
73
- readonly email: import("effect/Schema").String;
74
- readonly emailVerified: import("effect/Schema").Boolean;
75
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
76
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
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
- }>, import("effect/Schema").Unknown, never, never>>>;
108
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
109
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
110
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
111
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
112
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
113
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
114
- readonly createdAt: import("effect/Schema").DateFromString;
115
- readonly updatedAt: import("effect/Schema").DateFromString;
116
- }>;
117
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
118
- readonly session: import("effect/Schema").Struct<{
119
- readonly id: import("effect/Schema").String;
120
- readonly expiresAt: import("effect/Schema").DateFromString;
121
- readonly token: import("effect/Schema").String;
122
- readonly createdAt: import("effect/Schema").DateFromString;
123
- readonly updatedAt: import("effect/Schema").DateFromString;
124
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
125
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
126
- readonly userId: import("effect/Schema").String;
127
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
128
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
129
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
130
- }>;
106
+ readonly id: import("effect/Schema").String;
107
+ readonly hostname: import("effect/Schema").String;
108
+ readonly rootHostname: import("effect/Schema").String;
109
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
110
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
111
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
112
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
113
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
114
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
115
+ readonly hostnameId: import("effect/Schema").String;
116
+ readonly managed: import("effect/Schema").Boolean;
117
+ readonly active: import("effect/Schema").Boolean;
118
+ readonly createdAt: import("effect/Schema").Date;
119
+ readonly updatedAt: import("effect/Schema").Date;
120
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
121
+ readonly id: import("effect/Schema").NonEmptyString;
122
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
123
+ readonly id: import("effect/Schema").String;
124
+ readonly hostname: import("effect/Schema").String;
125
+ readonly rootHostname: import("effect/Schema").String;
126
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
127
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
128
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
129
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
130
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
132
+ readonly hostnameId: import("effect/Schema").String;
133
+ readonly managed: import("effect/Schema").Boolean;
134
+ readonly active: import("effect/Schema").Boolean;
135
+ readonly createdAt: import("effect/Schema").Date;
136
+ readonly updatedAt: import("effect/Schema").Date;
137
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
138
+ readonly id: import("effect/Schema").NonEmptyString;
139
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
140
+ readonly id: import("effect/Schema").String;
141
+ readonly hostname: import("effect/Schema").String;
142
+ readonly rootHostname: import("effect/Schema").String;
143
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
144
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
145
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
146
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
147
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
148
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
149
+ readonly hostnameId: import("effect/Schema").String;
150
+ readonly managed: import("effect/Schema").Boolean;
151
+ readonly active: import("effect/Schema").Boolean;
152
+ readonly createdAt: import("effect/Schema").Date;
153
+ readonly updatedAt: import("effect/Schema").Date;
154
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
155
+ readonly hostname: import("effect/Schema").NonEmptyString;
156
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
157
+ readonly id: import("effect/Schema").String;
158
+ readonly hostname: import("effect/Schema").String;
159
+ readonly rootHostname: import("effect/Schema").String;
160
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
161
+ readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
162
+ readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
163
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
164
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
165
+ readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
166
+ readonly hostnameId: import("effect/Schema").String;
167
+ readonly managed: import("effect/Schema").Boolean;
168
+ readonly active: import("effect/Schema").Boolean;
169
+ readonly createdAt: import("effect/Schema").Date;
170
+ readonly updatedAt: import("effect/Schema").Date;
171
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
172
+ readonly id: import("effect/Schema").NonEmptyString;
173
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
174
+ readonly required: import("effect/Schema").Boolean;
175
+ readonly status: import("effect/Schema").String;
176
+ readonly type: import("effect/Schema").String;
177
+ readonly name: import("effect/Schema").String;
178
+ readonly value: import("effect/Schema").String;
179
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
180
+ readonly organizationId: import("effect/Schema").NonEmptyString;
181
+ readonly userId: import("effect/Schema").NonEmptyString;
182
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
183
+ readonly id: import("effect/Schema").String;
184
+ readonly organizationId: import("effect/Schema").String;
185
+ readonly userId: import("effect/Schema").String;
186
+ readonly role: import("effect/Schema").String;
187
+ readonly createdAt: import("effect/Schema").Date;
131
188
  readonly user: import("effect/Schema").Struct<{
132
189
  readonly id: import("effect/Schema").String;
133
190
  readonly name: import("effect/Schema").String;
@@ -168,110 +225,138 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
168
225
  }>, import("effect/Schema").Unknown, never, never>>>;
169
226
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
170
227
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
171
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
172
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
173
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
174
228
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
175
- readonly createdAt: import("effect/Schema").DateFromString;
176
- readonly updatedAt: import("effect/Schema").DateFromString;
229
+ readonly createdAt: import("effect/Schema").Date;
230
+ readonly updatedAt: import("effect/Schema").Date;
177
231
  }>;
178
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
179
- readonly userId: import("effect/Schema").String;
180
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
181
- readonly user: import("effect/Schema").Struct<{
182
- readonly id: import("effect/Schema").String;
183
- readonly name: import("effect/Schema").String;
184
- readonly email: import("effect/Schema").String;
185
- readonly emailVerified: import("effect/Schema").Boolean;
186
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
187
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
188
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
189
- readonly email: import("effect/Schema").NonEmptyString;
190
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
191
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
192
- readonly label: import("effect/Schema").NonEmptyString;
193
- }>>;
194
- }>>>;
195
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
196
- readonly number: import("effect/Schema").NonEmptyString;
197
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
198
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
199
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
200
- readonly label: import("effect/Schema").NonEmptyString;
201
- }>>;
202
- }>>>;
203
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
204
- readonly url: import("effect/Schema").NonEmptyString;
205
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
206
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
207
- readonly label: import("effect/Schema").NonEmptyString;
208
- }>>;
209
- }>>>;
210
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
211
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
212
- readonly url: import("effect/Schema").NonEmptyString;
213
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
214
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
215
- readonly label: import("effect/Schema").NonEmptyString;
216
- }>>;
217
- }>>>;
218
- }>, import("effect/Schema").Unknown, never, never>>>;
219
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
220
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
221
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
222
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
223
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
224
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
225
- readonly createdAt: import("effect/Schema").DateFromString;
226
- readonly updatedAt: import("effect/Schema").DateFromString;
227
- }>;
228
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
229
- readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
230
- readonly keyId: import("effect/Schema").String;
231
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
232
- readonly success: import("effect/Schema").Boolean;
233
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
234
- readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
235
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
236
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
237
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
238
- readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
239
- readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
240
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
241
- readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
242
- readonly id: import("effect/Schema").String;
243
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
244
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
245
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
246
- readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
247
- readonly referenceId: import("effect/Schema").String;
248
- readonly configId: import("effect/Schema").String;
249
- readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
250
- readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
251
- readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
252
- readonly enabled: import("effect/Schema").Boolean;
253
- readonly rateLimitEnabled: import("effect/Schema").Boolean;
254
- readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
255
- readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
256
- readonly requestCount: import("effect/Schema").Number;
257
- readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
258
- readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
259
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
260
- readonly createdAt: import("effect/Schema").DateFromString;
261
- readonly updatedAt: import("effect/Schema").DateFromString;
262
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
263
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
264
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
265
- }>>;
266
- readonly total: import("effect/Schema").Number;
267
- readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
268
- readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
269
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
270
- readonly newPassword: import("effect/Schema").String;
271
- readonly currentPassword: import("effect/Schema").String;
272
- readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
273
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
274
- readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
232
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
233
+ readonly id: import("effect/Schema").NonEmptyString;
234
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
235
+ readonly id: import("effect/Schema").String;
236
+ readonly name: import("effect/Schema").String;
237
+ readonly slug: import("effect/Schema").String;
238
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
239
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
240
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
241
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
242
+ readonly name: import("effect/Schema").String;
243
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
244
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
245
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
246
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
247
+ }>>;
248
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
249
+ readonly email: import("effect/Schema").NonEmptyString;
250
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
251
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
252
+ readonly label: import("effect/Schema").NonEmptyString;
253
+ }>>;
254
+ }>>>;
255
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
256
+ readonly number: import("effect/Schema").NonEmptyString;
257
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
258
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
259
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
260
+ readonly label: import("effect/Schema").NonEmptyString;
261
+ }>>;
262
+ }>>>;
263
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
264
+ readonly url: import("effect/Schema").NonEmptyString;
265
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
266
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
267
+ readonly label: import("effect/Schema").NonEmptyString;
268
+ }>>;
269
+ }>>>;
270
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
271
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
272
+ readonly url: import("effect/Schema").NonEmptyString;
273
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
274
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
275
+ readonly label: import("effect/Schema").NonEmptyString;
276
+ }>>;
277
+ }>>>;
278
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
279
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
280
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
281
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
282
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
283
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
284
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
285
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
286
+ readonly label: import("effect/Schema").NonEmptyString;
287
+ }>>;
288
+ }>>>;
289
+ }>, import("effect/Schema").Unknown, never, never>>;
290
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
291
+ readonly createdAt: import("effect/Schema").Date;
292
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
293
+ readonly organizationId: import("effect/Schema").NonEmptyString;
294
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
295
+ readonly id: import("effect/Schema").String;
296
+ readonly name: import("effect/Schema").String;
297
+ readonly slug: import("effect/Schema").String;
298
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
299
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
300
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
301
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
302
+ readonly name: import("effect/Schema").String;
303
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
304
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
305
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
306
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
307
+ }>>;
308
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
309
+ readonly email: import("effect/Schema").NonEmptyString;
310
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
311
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
312
+ readonly label: import("effect/Schema").NonEmptyString;
313
+ }>>;
314
+ }>>>;
315
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
316
+ readonly number: import("effect/Schema").NonEmptyString;
317
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
318
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
319
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
320
+ readonly label: import("effect/Schema").NonEmptyString;
321
+ }>>;
322
+ }>>>;
323
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
324
+ readonly url: import("effect/Schema").NonEmptyString;
325
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
326
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
327
+ readonly label: import("effect/Schema").NonEmptyString;
328
+ }>>;
329
+ }>>>;
330
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
331
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
332
+ readonly url: import("effect/Schema").NonEmptyString;
333
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
334
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
335
+ readonly label: import("effect/Schema").NonEmptyString;
336
+ }>>;
337
+ }>>>;
338
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
339
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
340
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
341
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
342
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
343
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
344
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
345
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
346
+ readonly label: import("effect/Schema").NonEmptyString;
347
+ }>>;
348
+ }>>>;
349
+ }>, import("effect/Schema").Unknown, never, never>>;
350
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
351
+ readonly createdAt: import("effect/Schema").Date;
352
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
353
+ readonly organizationId: import("effect/Schema").NonEmptyString;
354
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
355
+ readonly id: import("effect/Schema").String;
356
+ readonly organizationId: import("effect/Schema").String;
357
+ readonly userId: import("effect/Schema").String;
358
+ readonly role: import("effect/Schema").String;
359
+ readonly createdAt: import("effect/Schema").Date;
275
360
  readonly user: import("effect/Schema").Struct<{
276
361
  readonly id: import("effect/Schema").String;
277
362
  readonly name: import("effect/Schema").String;
@@ -312,37 +397,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
312
397
  }>, import("effect/Schema").Unknown, never, never>>>;
313
398
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
314
399
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
315
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
316
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
317
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
318
400
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
319
- readonly createdAt: import("effect/Schema").DateFromString;
320
- readonly updatedAt: import("effect/Schema").DateFromString;
321
- }>;
322
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
323
- readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
324
- readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
325
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
326
- readonly session: import("effect/Schema").Struct<{
327
- readonly id: import("effect/Schema").String;
328
- readonly expiresAt: import("effect/Schema").DateFromString;
329
- readonly token: import("effect/Schema").String;
330
- readonly createdAt: import("effect/Schema").DateFromString;
331
- readonly updatedAt: import("effect/Schema").DateFromString;
332
- readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
333
- readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
334
- readonly userId: import("effect/Schema").String;
335
- readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
336
- readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
337
- readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
401
+ readonly createdAt: import("effect/Schema").Date;
402
+ readonly updatedAt: import("effect/Schema").Date;
338
403
  }>;
339
- readonly user: import("effect/Schema").Struct<{
404
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
405
+ readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
406
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
407
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
408
+ readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
340
409
  readonly id: import("effect/Schema").String;
341
410
  readonly name: import("effect/Schema").String;
342
- readonly email: import("effect/Schema").String;
343
- readonly emailVerified: import("effect/Schema").Boolean;
344
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
345
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
411
+ readonly slug: import("effect/Schema").String;
412
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
413
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
414
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
415
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
416
+ readonly name: import("effect/Schema").String;
417
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
418
+ readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
419
+ readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
420
+ readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
421
+ }>>;
346
422
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
347
423
  readonly email: import("effect/Schema").NonEmptyString;
348
424
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -373,36 +449,157 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
373
449
  readonly label: import("effect/Schema").NonEmptyString;
374
450
  }>>;
375
451
  }>>>;
376
- }>, import("effect/Schema").Unknown, never, never>>>;
377
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
378
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
379
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
380
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
381
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
382
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
383
- readonly createdAt: import("effect/Schema").DateFromString;
384
- readonly updatedAt: import("effect/Schema").DateFromString;
452
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
453
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
454
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
455
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
456
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
457
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
458
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
459
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
460
+ readonly label: import("effect/Schema").NonEmptyString;
461
+ }>>;
462
+ }>>>;
463
+ }>, import("effect/Schema").Unknown, never, never>>;
464
+ readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
465
+ readonly createdAt: import("effect/Schema").Date;
466
+ }>>;
467
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
468
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
469
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
470
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
471
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
472
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
473
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
474
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
475
+ readonly id: import("effect/Schema").String;
476
+ readonly key: import("effect/Schema").String;
477
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
478
+ readonly organizationId: import("effect/Schema").String;
479
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
480
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
481
+ readonly id: import("effect/Schema").String;
482
+ readonly name: import("effect/Schema").String;
483
+ readonly slug: import("effect/Schema").String;
484
+ readonly displayName: import("effect/Schema").String;
485
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
486
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
487
+ readonly email: import("effect/Schema").NonEmptyString;
488
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
489
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
490
+ readonly label: import("effect/Schema").NonEmptyString;
491
+ }>>;
492
+ }>>>;
493
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
494
+ readonly number: import("effect/Schema").NonEmptyString;
495
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
496
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
497
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
498
+ readonly label: import("effect/Schema").NonEmptyString;
499
+ }>>;
500
+ }>>>;
501
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
502
+ readonly url: import("effect/Schema").NonEmptyString;
503
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
504
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
505
+ readonly label: import("effect/Schema").NonEmptyString;
506
+ }>>;
507
+ }>>>;
508
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
509
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
510
+ readonly url: import("effect/Schema").NonEmptyString;
511
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
512
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
513
+ readonly label: import("effect/Schema").NonEmptyString;
514
+ }>>;
515
+ }>>>;
516
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
517
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
518
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
519
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
520
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
521
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
522
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
523
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
524
+ readonly label: import("effect/Schema").NonEmptyString;
525
+ }>>;
526
+ readonly formatted: import("effect/Schema").String;
527
+ }>>>;
528
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
529
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
530
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
531
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
532
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
533
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
534
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
535
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
536
+ readonly projectKey: import("effect/Schema").String;
537
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
538
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
539
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
540
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
541
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
542
+ readonly authOptions: import("effect/Schema").Struct<{
543
+ readonly emailPassword: import("effect/Schema").Boolean;
544
+ readonly emailOtp: import("effect/Schema").Boolean;
545
+ readonly google: import("effect/Schema").Boolean;
385
546
  }>;
386
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
387
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
388
- readonly provider: import("effect/Schema").String;
389
- readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
390
- readonly token: import("effect/Schema").String;
391
- readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
392
- readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
393
- readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
394
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
547
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
548
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
549
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
550
+ readonly id: import("effect/Schema").String;
551
+ readonly name: import("effect/Schema").String;
552
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
553
+ readonly newPassword: import("effect/Schema").NonEmptyString;
554
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
555
+ readonly ok: import("effect/Schema").Boolean;
556
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
557
+ keyId: import("effect/Schema").NonEmptyString;
558
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
559
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
560
+ readonly name: import("effect/Schema").NonEmptyString;
561
+ readonly enabled: import("effect/Schema").Boolean;
562
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
563
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
564
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
565
+ readonly ok: import("effect/Schema").Boolean;
566
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
567
+ readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
568
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
569
+ readonly url: import("effect/Schema").String;
570
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
571
+ readonly key: import("effect/Schema").NonEmptyString;
572
+ 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">]>>;
573
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
574
+ readonly valid: import("effect/Schema").Boolean;
575
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
576
+ readonly message: import("effect/Schema").String;
577
+ readonly code: import("effect/Schema").String;
395
578
  }>>;
396
- readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
397
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
398
- readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
399
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
400
- readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
579
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
580
+ readonly id: import("effect/Schema").String;
581
+ readonly configId: import("effect/Schema").String;
582
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
583
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
584
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
585
+ readonly referenceId: import("effect/Schema").String;
586
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
587
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
588
+ readonly createdAt: import("effect/Schema").Date;
589
+ readonly updatedAt: import("effect/Schema").Date;
590
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
591
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
592
+ }>>;
593
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
594
+ readonly password: import("effect/Schema").NonEmptyString;
401
595
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
402
- readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
403
- readonly redirect: import("effect/Schema").Boolean;
404
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
405
- readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
596
+ readonly ok: import("effect/Schema").Boolean;
597
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
598
+ readonly userId: import("effect/Schema").String;
599
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
600
+ readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
601
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
602
+ readonly user: import("effect/Schema").Struct<{
406
603
  readonly id: import("effect/Schema").String;
407
604
  readonly name: import("effect/Schema").String;
408
605
  readonly email: import("effect/Schema").String;
@@ -448,176 +645,71 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
448
645
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
449
646
  readonly createdAt: import("effect/Schema").DateFromString;
450
647
  readonly updatedAt: import("effect/Schema").DateFromString;
451
- }>>;
452
- readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
453
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
454
- readonly id: import("effect/Schema").String;
455
- readonly providerId: import("effect/Schema").String;
456
- readonly createdAt: import("effect/Schema").DateFromString;
457
- readonly updatedAt: import("effect/Schema").DateFromString;
458
- readonly accountId: import("effect/Schema").String;
648
+ }>;
649
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
459
650
  readonly userId: import("effect/Schema").String;
460
- readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
461
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
462
- readonly accept: import("effect/Schema").Boolean;
463
- readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
464
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
465
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
466
- readonly redirect: import("effect/Schema").Boolean;
467
- readonly url: import("effect/Schema").String;
468
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
469
- readonly client_id: import("effect/Schema").String;
470
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
471
- readonly client_id: import("effect/Schema").String;
472
- readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
473
- readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
474
- readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
475
- readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
476
- readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
477
- readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
478
- readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
479
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
480
- readonly invitationId: import("effect/Schema").String;
481
651
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
482
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
652
+ readonly session: import("effect/Schema").Struct<{
483
653
  readonly id: import("effect/Schema").String;
484
- readonly email: import("effect/Schema").String;
485
- readonly role: import("effect/Schema").String;
486
- readonly organizationId: import("effect/Schema").String;
487
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
488
- readonly inviterId: import("effect/Schema").String;
489
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
490
- readonly status: import("effect/Schema").String;
491
654
  readonly expiresAt: import("effect/Schema").DateFromString;
492
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
493
- }>>;
494
- readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
495
- readonly id: import("effect/Schema").String;
496
- readonly organizationId: import("effect/Schema").String;
497
- readonly userId: import("effect/Schema").String;
498
- readonly role: import("effect/Schema").String;
655
+ readonly token: import("effect/Schema").String;
499
656
  readonly createdAt: import("effect/Schema").DateFromString;
500
- }>>;
501
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
502
- readonly invitationId: import("effect/Schema").String;
503
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
504
- readonly id: import("effect/Schema").String;
505
- readonly email: import("effect/Schema").String;
506
- readonly role: import("effect/Schema").String;
507
- readonly organizationId: import("effect/Schema").String;
508
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
509
- readonly inviterId: import("effect/Schema").String;
510
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
511
- readonly status: import("effect/Schema").String;
512
- readonly expiresAt: import("effect/Schema").DateFromString;
513
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
514
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
515
- readonly name: import("effect/Schema").NonEmptyString;
516
- readonly slug: import("effect/Schema").NonEmptyString;
517
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
518
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
519
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
520
- readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
521
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
522
- readonly id: import("effect/Schema").String;
523
- readonly name: import("effect/Schema").String;
524
- readonly slug: import("effect/Schema").String;
525
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
526
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
527
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
528
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
529
- readonly createdAt: import("effect/Schema").DateFromString;
530
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
531
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
532
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
533
- readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
534
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
535
- readonly id: import("effect/Schema").String;
536
- readonly name: import("effect/Schema").String;
537
- readonly slug: import("effect/Schema").String;
538
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
539
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
540
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
541
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
542
- readonly createdAt: import("effect/Schema").DateFromString;
543
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
544
- readonly id: import("effect/Schema").String;
545
- readonly organizationId: import("effect/Schema").String;
657
+ readonly updatedAt: import("effect/Schema").DateFromString;
658
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
659
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
546
660
  readonly userId: import("effect/Schema").String;
547
- readonly role: import("effect/Schema").String;
548
- readonly createdAt: import("effect/Schema").DateFromString;
549
- readonly user: import("effect/Schema").Struct<{
550
- readonly id: import("effect/Schema").String;
551
- readonly name: import("effect/Schema").String;
552
- readonly email: import("effect/Schema").String;
553
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
554
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
555
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
556
- readonly email: import("effect/Schema").NonEmptyString;
557
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
558
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
559
- readonly label: import("effect/Schema").NonEmptyString;
560
- }>>;
561
- }>>>;
562
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
563
- readonly number: import("effect/Schema").NonEmptyString;
564
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
565
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
566
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
567
- readonly label: import("effect/Schema").NonEmptyString;
568
- }>>;
569
- }>>>;
570
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
571
- readonly url: import("effect/Schema").NonEmptyString;
572
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
573
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
574
- readonly label: import("effect/Schema").NonEmptyString;
575
- }>>;
576
- }>>>;
577
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
578
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
579
- readonly url: import("effect/Schema").NonEmptyString;
580
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
581
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
582
- readonly label: import("effect/Schema").NonEmptyString;
583
- }>>;
584
- }>>>;
585
- }>, import("effect/Schema").Unknown, never, never>>>;
586
- }>;
587
- }>>;
588
- readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
661
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
662
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
663
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
664
+ }>;
665
+ readonly user: import("effect/Schema").Struct<{
589
666
  readonly id: import("effect/Schema").String;
667
+ readonly name: import("effect/Schema").String;
590
668
  readonly email: import("effect/Schema").String;
591
- readonly role: import("effect/Schema").String;
592
- readonly organizationId: import("effect/Schema").String;
593
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
594
- readonly inviterId: import("effect/Schema").String;
595
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
596
- readonly status: import("effect/Schema").String;
597
- readonly expiresAt: import("effect/Schema").DateFromString;
598
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
599
- }>>;
600
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
601
- readonly id: import("effect/Schema").String;
602
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
603
- readonly id: import("effect/Schema").String;
604
- readonly email: import("effect/Schema").String;
605
- readonly role: import("effect/Schema").String;
606
- readonly organizationId: import("effect/Schema").String;
607
- readonly inviterId: import("effect/Schema").String;
608
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
609
- readonly status: import("effect/Schema").String;
610
- readonly expiresAt: import("effect/Schema").DateFromString;
611
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
612
- readonly organizationName: import("effect/Schema").String;
613
- readonly organizationSlug: import("effect/Schema").String;
614
- readonly inviterEmail: import("effect/Schema").String;
615
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
616
- readonly organizationId: import("effect/Schema").NonEmptyString;
617
- readonly actorUserId: import("effect/Schema").NonEmptyString;
618
- readonly targetUserId: import("effect/Schema").NonEmptyString;
619
- readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
620
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
669
+ readonly emailVerified: import("effect/Schema").Boolean;
670
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
671
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
672
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
673
+ readonly email: import("effect/Schema").NonEmptyString;
674
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
675
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
676
+ readonly label: import("effect/Schema").NonEmptyString;
677
+ }>>;
678
+ }>>>;
679
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
680
+ readonly number: import("effect/Schema").NonEmptyString;
681
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
682
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
683
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
684
+ readonly label: import("effect/Schema").NonEmptyString;
685
+ }>>;
686
+ }>>>;
687
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
688
+ readonly url: import("effect/Schema").NonEmptyString;
689
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
690
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
691
+ readonly label: import("effect/Schema").NonEmptyString;
692
+ }>>;
693
+ }>>>;
694
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
695
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
696
+ readonly url: import("effect/Schema").NonEmptyString;
697
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
698
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
699
+ readonly label: import("effect/Schema").NonEmptyString;
700
+ }>>;
701
+ }>>>;
702
+ }>, import("effect/Schema").Unknown, never, never>>>;
703
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
704
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
705
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
706
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
707
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
708
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
709
+ readonly createdAt: import("effect/Schema").DateFromString;
710
+ readonly updatedAt: import("effect/Schema").DateFromString;
711
+ }>;
712
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
621
713
  readonly session: import("effect/Schema").Struct<{
622
714
  readonly id: import("effect/Schema").String;
623
715
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -678,220 +770,103 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
678
770
  readonly createdAt: import("effect/Schema").DateFromString;
679
771
  readonly updatedAt: import("effect/Schema").DateFromString;
680
772
  }>;
681
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
682
- readonly email: import("effect/Schema").String;
683
- readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
684
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
685
- readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
686
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
773
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
774
+ readonly userId: import("effect/Schema").String;
687
775
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
688
- readonly id: import("effect/Schema").String;
689
- readonly email: import("effect/Schema").String;
690
- readonly role: import("effect/Schema").String;
691
- readonly organizationId: import("effect/Schema").String;
692
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
693
- readonly inviterId: import("effect/Schema").String;
694
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
695
- readonly status: import("effect/Schema").String;
696
- readonly expiresAt: import("effect/Schema").DateFromString;
697
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
698
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
699
- readonly organizationId: import("effect/Schema").String;
776
+ readonly user: import("effect/Schema").Struct<{
777
+ readonly id: import("effect/Schema").String;
778
+ readonly name: import("effect/Schema").String;
779
+ readonly email: import("effect/Schema").String;
780
+ readonly emailVerified: import("effect/Schema").Boolean;
781
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
782
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
783
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
784
+ readonly email: import("effect/Schema").NonEmptyString;
785
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
786
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
787
+ readonly label: import("effect/Schema").NonEmptyString;
788
+ }>>;
789
+ }>>>;
790
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
791
+ readonly number: import("effect/Schema").NonEmptyString;
792
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
793
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
794
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
795
+ readonly label: import("effect/Schema").NonEmptyString;
796
+ }>>;
797
+ }>>>;
798
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
799
+ readonly url: import("effect/Schema").NonEmptyString;
800
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
801
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
802
+ readonly label: import("effect/Schema").NonEmptyString;
803
+ }>>;
804
+ }>>>;
805
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
806
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
807
+ readonly url: import("effect/Schema").NonEmptyString;
808
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
809
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
810
+ readonly label: import("effect/Schema").NonEmptyString;
811
+ }>>;
812
+ }>>>;
813
+ }>, import("effect/Schema").Unknown, never, never>>>;
814
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
815
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
816
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
817
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
818
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
819
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
820
+ readonly createdAt: import("effect/Schema").DateFromString;
821
+ readonly updatedAt: import("effect/Schema").DateFromString;
822
+ }>;
823
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
824
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
825
+ readonly keyId: import("effect/Schema").String;
700
826
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
701
- readonly id: import("effect/Schema").String;
702
- readonly organizationId: import("effect/Schema").String;
703
- readonly userId: import("effect/Schema").String;
704
- readonly role: import("effect/Schema").String;
705
- readonly createdAt: import("effect/Schema").DateFromString;
706
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
707
- readonly id: import("effect/Schema").String;
708
- readonly name: import("effect/Schema").String;
709
- readonly slug: import("effect/Schema").String;
710
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
711
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
712
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
713
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
714
- readonly createdAt: import("effect/Schema").DateFromString;
715
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
827
+ readonly success: import("effect/Schema").Boolean;
828
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
829
+ readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
716
830
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
717
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
718
- readonly id: import("effect/Schema").String;
719
- readonly email: import("effect/Schema").String;
720
- readonly role: import("effect/Schema").String;
721
- readonly organizationId: import("effect/Schema").String;
722
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
723
- readonly inviterId: import("effect/Schema").String;
724
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
725
- readonly status: import("effect/Schema").String;
726
- readonly expiresAt: import("effect/Schema").DateFromString;
727
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
728
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
729
831
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
730
832
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
731
833
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
732
834
  readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
733
- readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
734
- readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
735
- readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
736
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
737
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
738
835
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
739
- readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
836
+ readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
740
837
  readonly id: import("effect/Schema").String;
741
- readonly organizationId: import("effect/Schema").String;
742
- readonly userId: import("effect/Schema").String;
743
- readonly role: import("effect/Schema").String;
744
- readonly createdAt: import("effect/Schema").DateFromString;
745
- readonly user: import("effect/Schema").Struct<{
746
- readonly id: import("effect/Schema").String;
747
- readonly name: import("effect/Schema").String;
748
- readonly email: import("effect/Schema").String;
749
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
750
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
751
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
752
- readonly email: import("effect/Schema").NonEmptyString;
753
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
754
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
755
- readonly label: import("effect/Schema").NonEmptyString;
756
- }>>;
757
- }>>>;
758
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
759
- readonly number: import("effect/Schema").NonEmptyString;
760
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
761
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
762
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
763
- readonly label: import("effect/Schema").NonEmptyString;
764
- }>>;
765
- }>>>;
766
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
767
- readonly url: import("effect/Schema").NonEmptyString;
768
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
769
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
770
- readonly label: import("effect/Schema").NonEmptyString;
771
- }>>;
772
- }>>>;
773
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
774
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
775
- readonly url: import("effect/Schema").NonEmptyString;
776
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
777
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
778
- readonly label: import("effect/Schema").NonEmptyString;
779
- }>>;
780
- }>>>;
781
- }>, import("effect/Schema").Unknown, never, never>>>;
782
- }>;
783
- }>>;
784
- readonly total: import("effect/Schema").Number;
785
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
786
- readonly id: import("effect/Schema").String;
787
- readonly email: import("effect/Schema").String;
788
- readonly role: import("effect/Schema").String;
789
- readonly organizationId: import("effect/Schema").String;
790
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
791
- readonly inviterId: import("effect/Schema").String;
792
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
793
- readonly status: import("effect/Schema").String;
794
- readonly expiresAt: import("effect/Schema").DateFromString;
795
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
796
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
797
- readonly invitationId: import("effect/Schema").String;
798
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
799
- readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
800
- readonly id: import("effect/Schema").String;
801
- readonly email: import("effect/Schema").String;
802
- readonly role: import("effect/Schema").String;
803
- readonly organizationId: import("effect/Schema").String;
804
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
805
- readonly inviterId: import("effect/Schema").String;
806
- readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
807
- readonly status: import("effect/Schema").String;
808
- readonly expiresAt: import("effect/Schema").DateFromString;
809
- readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
810
- }>>;
811
- readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
812
- readonly id: import("effect/Schema").String;
813
- readonly organizationId: import("effect/Schema").String;
814
- readonly userId: import("effect/Schema").String;
815
- readonly role: import("effect/Schema").String;
838
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
839
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
840
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
841
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
842
+ readonly referenceId: import("effect/Schema").String;
843
+ readonly configId: import("effect/Schema").String;
844
+ readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Number>;
845
+ readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Number>;
846
+ readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
847
+ readonly enabled: import("effect/Schema").Boolean;
848
+ readonly rateLimitEnabled: import("effect/Schema").Boolean;
849
+ readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Number>;
850
+ readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Number>;
851
+ readonly requestCount: import("effect/Schema").Number;
852
+ readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Number>;
853
+ readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
854
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
816
855
  readonly createdAt: import("effect/Schema").DateFromString;
856
+ readonly updatedAt: import("effect/Schema").DateFromString;
857
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
858
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>>;
859
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
817
860
  }>>;
818
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
819
- readonly memberIdOrEmail: import("effect/Schema").String;
820
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
821
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
822
- readonly member: import("effect/Schema").Struct<{
823
- readonly id: import("effect/Schema").String;
824
- readonly organizationId: import("effect/Schema").String;
825
- readonly userId: import("effect/Schema").String;
826
- readonly role: import("effect/Schema").String;
827
- readonly createdAt: import("effect/Schema").DateFromString;
828
- }>;
829
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
830
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
831
- readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
832
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
833
- readonly id: import("effect/Schema").String;
834
- readonly name: import("effect/Schema").String;
835
- readonly slug: import("effect/Schema").String;
836
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
837
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
838
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
839
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
840
- readonly createdAt: import("effect/Schema").DateFromString;
841
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
842
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
843
- readonly data: import("effect/Schema").Struct<{
844
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
845
- readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
846
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
847
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
848
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
849
- }>;
850
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
851
- readonly id: import("effect/Schema").String;
852
- readonly name: import("effect/Schema").String;
853
- readonly slug: import("effect/Schema").String;
854
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
855
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
856
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
857
- readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
858
- readonly createdAt: import("effect/Schema").DateFromString;
859
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
860
- readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
861
- readonly memberId: import("effect/Schema").String;
862
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
863
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
864
- readonly id: import("effect/Schema").String;
865
- readonly organizationId: import("effect/Schema").String;
866
- readonly userId: import("effect/Schema").String;
867
- readonly role: import("effect/Schema").String;
868
- readonly createdAt: import("effect/Schema").DateFromString;
869
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
870
- readonly email: import("effect/Schema").String;
871
- readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
872
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
873
- readonly status: import("effect/Schema").Boolean;
874
- readonly message: import("effect/Schema").String;
875
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
861
+ readonly total: import("effect/Schema").Number;
862
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
863
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
864
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
876
865
  readonly newPassword: import("effect/Schema").String;
877
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
878
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
879
- readonly status: import("effect/Schema").Boolean;
880
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
881
- readonly email: import("effect/Schema").String;
882
- readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
866
+ readonly currentPassword: import("effect/Schema").String;
867
+ readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
883
868
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
884
- readonly success: import("effect/Schema").Boolean;
885
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
886
- readonly email: import("effect/Schema").String;
887
- readonly password: import("effect/Schema").String;
888
- readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
889
- readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
890
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
891
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
892
- readonly redirect: import("effect/Schema").Boolean;
893
- readonly token: import("effect/Schema").String;
894
- readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
869
+ readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
895
870
  readonly user: import("effect/Schema").Struct<{
896
871
  readonly id: import("effect/Schema").String;
897
872
  readonly name: import("effect/Schema").String;
@@ -939,17 +914,23 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
939
914
  readonly createdAt: import("effect/Schema").DateFromString;
940
915
  readonly updatedAt: import("effect/Schema").DateFromString;
941
916
  }>;
942
- }>, import("effect/Schema").Struct<{
943
- readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
944
- readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
945
- readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
946
- }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
947
- readonly email: import("effect/Schema").String;
948
- readonly otp: import("effect/Schema").String;
949
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
950
- readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
951
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
952
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
917
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
918
+ readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
919
+ readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
920
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
921
+ readonly session: import("effect/Schema").Struct<{
922
+ readonly id: import("effect/Schema").String;
923
+ readonly expiresAt: import("effect/Schema").DateFromString;
924
+ readonly token: import("effect/Schema").String;
925
+ readonly createdAt: import("effect/Schema").DateFromString;
926
+ readonly updatedAt: import("effect/Schema").DateFromString;
927
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
928
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
929
+ readonly userId: import("effect/Schema").String;
930
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
931
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
932
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
933
+ }>;
953
934
  readonly user: import("effect/Schema").Struct<{
954
935
  readonly id: import("effect/Schema").String;
955
936
  readonly name: import("effect/Schema").String;
@@ -997,31 +978,21 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
997
978
  readonly createdAt: import("effect/Schema").DateFromString;
998
979
  readonly updatedAt: import("effect/Schema").DateFromString;
999
980
  }>;
1000
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
981
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1001
982
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1002
- readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1003
- readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1004
983
  readonly provider: import("effect/Schema").String;
1005
- readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1006
984
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1007
985
  readonly token: import("effect/Schema").String;
1008
986
  readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1009
987
  readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1010
988
  readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1011
- readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
1012
- readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1013
- readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1014
- readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
1015
- readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
1016
- }>>;
1017
- readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1018
- }>>;
989
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1019
990
  }>>;
1020
- readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1021
991
  readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1022
- readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
992
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
993
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
994
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1023
995
  readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1024
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1025
996
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1026
997
  readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1027
998
  readonly redirect: import("effect/Schema").Boolean;
@@ -1074,135 +1045,187 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1074
1045
  readonly updatedAt: import("effect/Schema").DateFromString;
1075
1046
  }>>;
1076
1047
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1077
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1078
- readonly success: import("effect/Schema").Boolean;
1079
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1080
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1081
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1082
- readonly status: import("effect/Schema").Boolean;
1083
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1084
- readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1085
- readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1086
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1087
- readonly totpURI: import("effect/Schema").String;
1088
- readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1089
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1090
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1091
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1092
- readonly status: import("effect/Schema").Boolean;
1093
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1094
- readonly code: import("effect/Schema").String;
1095
- readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1096
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1048
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1049
+ readonly id: import("effect/Schema").String;
1050
+ readonly providerId: import("effect/Schema").String;
1051
+ readonly createdAt: import("effect/Schema").DateFromString;
1052
+ readonly updatedAt: import("effect/Schema").DateFromString;
1053
+ readonly accountId: import("effect/Schema").String;
1054
+ readonly userId: import("effect/Schema").String;
1055
+ readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
1056
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1057
+ readonly accept: import("effect/Schema").Boolean;
1058
+ readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
1097
1059
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1098
1060
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1099
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1100
- readonly user: import("effect/Schema").Struct<{
1101
- readonly id: import("effect/Schema").String;
1102
- readonly name: import("effect/Schema").String;
1103
- readonly email: import("effect/Schema").String;
1104
- readonly emailVerified: import("effect/Schema").Boolean;
1105
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1106
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1107
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1108
- readonly email: import("effect/Schema").NonEmptyString;
1109
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1110
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1111
- readonly label: import("effect/Schema").NonEmptyString;
1112
- }>>;
1113
- }>>>;
1114
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1115
- readonly number: import("effect/Schema").NonEmptyString;
1116
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1117
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1118
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1119
- readonly label: import("effect/Schema").NonEmptyString;
1120
- }>>;
1121
- }>>>;
1122
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1123
- readonly url: import("effect/Schema").NonEmptyString;
1124
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1125
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1126
- readonly label: import("effect/Schema").NonEmptyString;
1127
- }>>;
1128
- }>>>;
1129
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1130
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1131
- readonly url: import("effect/Schema").NonEmptyString;
1132
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1133
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1134
- readonly label: import("effect/Schema").NonEmptyString;
1135
- }>>;
1136
- }>>>;
1137
- }>, import("effect/Schema").Unknown, never, never>>>;
1138
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1139
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1140
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1141
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1142
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1143
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1061
+ readonly redirect: import("effect/Schema").Boolean;
1062
+ readonly url: import("effect/Schema").String;
1063
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1064
+ readonly client_id: import("effect/Schema").String;
1065
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1066
+ readonly client_id: import("effect/Schema").String;
1067
+ readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
1068
+ readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1069
+ readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1070
+ readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1071
+ readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1072
+ readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
1073
+ readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
1074
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1075
+ readonly invitationId: import("effect/Schema").String;
1076
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1077
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1078
+ readonly id: import("effect/Schema").String;
1079
+ readonly email: import("effect/Schema").String;
1080
+ readonly role: import("effect/Schema").String;
1081
+ readonly organizationId: import("effect/Schema").String;
1082
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1083
+ readonly inviterId: import("effect/Schema").String;
1084
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1085
+ readonly status: import("effect/Schema").String;
1086
+ readonly expiresAt: import("effect/Schema").DateFromString;
1087
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1088
+ }>>;
1089
+ readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1090
+ readonly id: import("effect/Schema").String;
1091
+ readonly organizationId: import("effect/Schema").String;
1092
+ readonly userId: import("effect/Schema").String;
1093
+ readonly role: import("effect/Schema").String;
1144
1094
  readonly createdAt: import("effect/Schema").DateFromString;
1145
- readonly updatedAt: import("effect/Schema").DateFromString;
1146
- }>;
1147
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1148
- readonly code: import("effect/Schema").String;
1149
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1150
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1095
+ }>>;
1096
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1097
+ readonly invitationId: import("effect/Schema").String;
1151
1098
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1152
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1153
- readonly user: import("effect/Schema").Struct<{
1099
+ readonly id: import("effect/Schema").String;
1100
+ readonly email: import("effect/Schema").String;
1101
+ readonly role: import("effect/Schema").String;
1102
+ readonly organizationId: import("effect/Schema").String;
1103
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1104
+ readonly inviterId: import("effect/Schema").String;
1105
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1106
+ readonly status: import("effect/Schema").String;
1107
+ readonly expiresAt: import("effect/Schema").DateFromString;
1108
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1109
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1110
+ readonly name: import("effect/Schema").NonEmptyString;
1111
+ readonly slug: import("effect/Schema").NonEmptyString;
1112
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1113
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1114
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1115
+ readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1116
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1117
+ readonly id: import("effect/Schema").String;
1118
+ readonly name: import("effect/Schema").String;
1119
+ readonly slug: import("effect/Schema").String;
1120
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1121
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1122
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1123
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1124
+ readonly createdAt: import("effect/Schema").DateFromString;
1125
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1126
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1127
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1128
+ readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1129
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1130
+ readonly id: import("effect/Schema").String;
1131
+ readonly name: import("effect/Schema").String;
1132
+ readonly slug: import("effect/Schema").String;
1133
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1134
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1135
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1136
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1137
+ readonly createdAt: import("effect/Schema").DateFromString;
1138
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1139
+ readonly id: import("effect/Schema").String;
1140
+ readonly organizationId: import("effect/Schema").String;
1141
+ readonly userId: import("effect/Schema").String;
1142
+ readonly role: import("effect/Schema").String;
1143
+ readonly createdAt: import("effect/Schema").DateFromString;
1144
+ readonly user: import("effect/Schema").Struct<{
1145
+ readonly id: import("effect/Schema").String;
1146
+ readonly name: import("effect/Schema").String;
1147
+ readonly email: import("effect/Schema").String;
1148
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1149
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1150
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1151
+ readonly email: import("effect/Schema").NonEmptyString;
1152
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1153
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1154
+ readonly label: import("effect/Schema").NonEmptyString;
1155
+ }>>;
1156
+ }>>>;
1157
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1158
+ readonly number: import("effect/Schema").NonEmptyString;
1159
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1160
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1161
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1162
+ readonly label: import("effect/Schema").NonEmptyString;
1163
+ }>>;
1164
+ }>>>;
1165
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1166
+ readonly url: import("effect/Schema").NonEmptyString;
1167
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1168
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1169
+ readonly label: import("effect/Schema").NonEmptyString;
1170
+ }>>;
1171
+ }>>>;
1172
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1173
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1174
+ readonly url: import("effect/Schema").NonEmptyString;
1175
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1176
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1177
+ readonly label: import("effect/Schema").NonEmptyString;
1178
+ }>>;
1179
+ }>>>;
1180
+ }>, import("effect/Schema").Unknown, never, never>>>;
1181
+ }>;
1182
+ }>>;
1183
+ readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1154
1184
  readonly id: import("effect/Schema").String;
1155
- readonly name: import("effect/Schema").String;
1156
1185
  readonly email: import("effect/Schema").String;
1157
- readonly emailVerified: import("effect/Schema").Boolean;
1158
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1159
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1160
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1161
- readonly email: import("effect/Schema").NonEmptyString;
1162
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1163
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1164
- readonly label: import("effect/Schema").NonEmptyString;
1165
- }>>;
1166
- }>>>;
1167
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1168
- readonly number: import("effect/Schema").NonEmptyString;
1169
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1170
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1171
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1172
- readonly label: import("effect/Schema").NonEmptyString;
1173
- }>>;
1174
- }>>>;
1175
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1176
- readonly url: import("effect/Schema").NonEmptyString;
1177
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1178
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1179
- readonly label: import("effect/Schema").NonEmptyString;
1180
- }>>;
1181
- }>>>;
1182
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1183
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1184
- readonly url: import("effect/Schema").NonEmptyString;
1185
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1186
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1187
- readonly label: import("effect/Schema").NonEmptyString;
1188
- }>>;
1189
- }>>>;
1190
- }>, import("effect/Schema").Unknown, never, never>>>;
1191
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1192
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1193
- readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1194
- readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1195
- readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1196
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1186
+ readonly role: import("effect/Schema").String;
1187
+ readonly organizationId: import("effect/Schema").String;
1188
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1189
+ readonly inviterId: import("effect/Schema").String;
1190
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1191
+ readonly status: import("effect/Schema").String;
1192
+ readonly expiresAt: import("effect/Schema").DateFromString;
1193
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1194
+ }>>;
1195
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1196
+ readonly id: import("effect/Schema").String;
1197
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1198
+ readonly id: import("effect/Schema").String;
1199
+ readonly email: import("effect/Schema").String;
1200
+ readonly role: import("effect/Schema").String;
1201
+ readonly organizationId: import("effect/Schema").String;
1202
+ readonly inviterId: import("effect/Schema").String;
1203
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1204
+ readonly status: import("effect/Schema").String;
1205
+ readonly expiresAt: import("effect/Schema").DateFromString;
1206
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1207
+ readonly organizationName: import("effect/Schema").String;
1208
+ readonly organizationSlug: import("effect/Schema").String;
1209
+ readonly inviterEmail: import("effect/Schema").String;
1210
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1211
+ readonly organizationId: import("effect/Schema").NonEmptyString;
1212
+ readonly actorUserId: import("effect/Schema").NonEmptyString;
1213
+ readonly targetUserId: import("effect/Schema").NonEmptyString;
1214
+ readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
1215
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1216
+ readonly session: import("effect/Schema").Struct<{
1217
+ readonly id: import("effect/Schema").String;
1218
+ readonly expiresAt: import("effect/Schema").DateFromString;
1219
+ readonly token: import("effect/Schema").String;
1197
1220
  readonly createdAt: import("effect/Schema").DateFromString;
1198
1221
  readonly updatedAt: import("effect/Schema").DateFromString;
1222
+ readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1223
+ readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1224
+ readonly userId: import("effect/Schema").String;
1225
+ readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1226
+ readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1227
+ readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1199
1228
  }>;
1200
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1201
- readonly code: import("effect/Schema").String;
1202
- readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1203
- readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1204
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1205
- readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1206
1229
  readonly user: import("effect/Schema").Struct<{
1207
1230
  readonly id: import("effect/Schema").String;
1208
1231
  readonly name: import("effect/Schema").String;
@@ -1250,54 +1273,220 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1250
1273
  readonly createdAt: import("effect/Schema").DateFromString;
1251
1274
  readonly updatedAt: import("effect/Schema").DateFromString;
1252
1275
  }>;
1253
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1254
- readonly providerId: import("effect/Schema").String;
1255
- readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1276
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1277
+ readonly email: import("effect/Schema").String;
1278
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1279
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1280
+ readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1281
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
1256
1282
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1257
- readonly status: import("effect/Schema").Boolean;
1258
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1259
- readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1260
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1261
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1262
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1263
- readonly email: import("effect/Schema").NonEmptyString;
1264
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1265
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1266
- readonly label: import("effect/Schema").NonEmptyString;
1267
- }>>;
1268
- }>>>;
1269
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1270
- readonly number: import("effect/Schema").NonEmptyString;
1271
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1272
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1273
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1274
- readonly label: import("effect/Schema").NonEmptyString;
1275
- }>>;
1276
- }>>>;
1277
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1278
- readonly url: import("effect/Schema").NonEmptyString;
1279
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1280
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1281
- readonly label: import("effect/Schema").NonEmptyString;
1282
- }>>;
1283
- }>>>;
1284
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1285
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1286
- readonly url: import("effect/Schema").NonEmptyString;
1287
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1288
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1289
- readonly label: import("effect/Schema").NonEmptyString;
1290
- }>>;
1291
- }>>>;
1292
- }>>>;
1283
+ readonly id: import("effect/Schema").String;
1284
+ readonly email: import("effect/Schema").String;
1285
+ readonly role: import("effect/Schema").String;
1286
+ readonly organizationId: import("effect/Schema").String;
1287
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1288
+ readonly inviterId: import("effect/Schema").String;
1289
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1290
+ readonly status: import("effect/Schema").String;
1291
+ readonly expiresAt: import("effect/Schema").DateFromString;
1292
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1293
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1294
+ readonly organizationId: import("effect/Schema").String;
1295
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1296
+ readonly id: import("effect/Schema").String;
1297
+ readonly organizationId: import("effect/Schema").String;
1298
+ readonly userId: import("effect/Schema").String;
1299
+ readonly role: import("effect/Schema").String;
1300
+ readonly createdAt: import("effect/Schema").DateFromString;
1301
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1302
+ readonly id: import("effect/Schema").String;
1303
+ readonly name: import("effect/Schema").String;
1304
+ readonly slug: import("effect/Schema").String;
1305
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1306
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1307
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1308
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1309
+ readonly createdAt: import("effect/Schema").DateFromString;
1310
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1311
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1312
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1313
+ readonly id: import("effect/Schema").String;
1314
+ readonly email: import("effect/Schema").String;
1315
+ readonly role: import("effect/Schema").String;
1316
+ readonly organizationId: import("effect/Schema").String;
1317
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1318
+ readonly inviterId: import("effect/Schema").String;
1319
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1320
+ readonly status: import("effect/Schema").String;
1321
+ readonly expiresAt: import("effect/Schema").DateFromString;
1322
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1323
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1324
+ readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1325
+ readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
1326
+ readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
1327
+ readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
1328
+ readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
1329
+ readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
1330
+ readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
1331
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1332
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1333
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1334
+ readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1335
+ readonly id: import("effect/Schema").String;
1336
+ readonly organizationId: import("effect/Schema").String;
1337
+ readonly userId: import("effect/Schema").String;
1338
+ readonly role: import("effect/Schema").String;
1339
+ readonly createdAt: import("effect/Schema").DateFromString;
1340
+ readonly user: import("effect/Schema").Struct<{
1341
+ readonly id: import("effect/Schema").String;
1342
+ readonly name: import("effect/Schema").String;
1343
+ readonly email: import("effect/Schema").String;
1344
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1345
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1346
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1347
+ readonly email: import("effect/Schema").NonEmptyString;
1348
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1349
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1350
+ readonly label: import("effect/Schema").NonEmptyString;
1351
+ }>>;
1352
+ }>>>;
1353
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1354
+ readonly number: import("effect/Schema").NonEmptyString;
1355
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1356
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1357
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1358
+ readonly label: import("effect/Schema").NonEmptyString;
1359
+ }>>;
1360
+ }>>>;
1361
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1362
+ readonly url: import("effect/Schema").NonEmptyString;
1363
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1364
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1365
+ readonly label: import("effect/Schema").NonEmptyString;
1366
+ }>>;
1367
+ }>>>;
1368
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1369
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1370
+ readonly url: import("effect/Schema").NonEmptyString;
1371
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1372
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1373
+ readonly label: import("effect/Schema").NonEmptyString;
1374
+ }>>;
1375
+ }>>>;
1376
+ }>, import("effect/Schema").Unknown, never, never>>>;
1377
+ }>;
1378
+ }>>;
1379
+ readonly total: import("effect/Schema").Number;
1380
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1381
+ readonly id: import("effect/Schema").String;
1382
+ readonly email: import("effect/Schema").String;
1383
+ readonly role: import("effect/Schema").String;
1384
+ readonly organizationId: import("effect/Schema").String;
1385
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1386
+ readonly inviterId: import("effect/Schema").String;
1387
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1388
+ readonly status: import("effect/Schema").String;
1389
+ readonly expiresAt: import("effect/Schema").DateFromString;
1390
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1391
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1392
+ readonly invitationId: import("effect/Schema").String;
1393
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1394
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1395
+ readonly id: import("effect/Schema").String;
1396
+ readonly email: import("effect/Schema").String;
1397
+ readonly role: import("effect/Schema").String;
1398
+ readonly organizationId: import("effect/Schema").String;
1399
+ readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1400
+ readonly inviterId: import("effect/Schema").String;
1401
+ readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1402
+ readonly status: import("effect/Schema").String;
1403
+ readonly expiresAt: import("effect/Schema").DateFromString;
1404
+ readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
1405
+ }>>;
1406
+ readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1407
+ readonly id: import("effect/Schema").String;
1408
+ readonly organizationId: import("effect/Schema").String;
1409
+ readonly userId: import("effect/Schema").String;
1410
+ readonly role: import("effect/Schema").String;
1411
+ readonly createdAt: import("effect/Schema").DateFromString;
1412
+ }>>;
1413
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1414
+ readonly memberIdOrEmail: import("effect/Schema").String;
1415
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1416
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1417
+ readonly member: import("effect/Schema").Struct<{
1418
+ readonly id: import("effect/Schema").String;
1419
+ readonly organizationId: import("effect/Schema").String;
1420
+ readonly userId: import("effect/Schema").String;
1421
+ readonly role: import("effect/Schema").String;
1422
+ readonly createdAt: import("effect/Schema").DateFromString;
1423
+ }>;
1424
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1425
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1426
+ readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
1427
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1428
+ readonly id: import("effect/Schema").String;
1429
+ readonly name: import("effect/Schema").String;
1430
+ readonly slug: import("effect/Schema").String;
1431
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1432
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1433
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1434
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1435
+ readonly createdAt: import("effect/Schema").DateFromString;
1436
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1437
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1438
+ readonly data: import("effect/Schema").Struct<{
1439
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1440
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1441
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1442
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1443
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1444
+ }>;
1445
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1446
+ readonly id: import("effect/Schema").String;
1447
+ readonly name: import("effect/Schema").String;
1448
+ readonly slug: import("effect/Schema").String;
1449
+ readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1450
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>, import("effect/Schema").String]>>>;
1451
+ readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1452
+ readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1453
+ readonly createdAt: import("effect/Schema").DateFromString;
1454
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1455
+ readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
1456
+ readonly memberId: import("effect/Schema").String;
1457
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1458
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1459
+ readonly id: import("effect/Schema").String;
1460
+ readonly organizationId: import("effect/Schema").String;
1461
+ readonly userId: import("effect/Schema").String;
1462
+ readonly role: import("effect/Schema").String;
1463
+ readonly createdAt: import("effect/Schema").DateFromString;
1464
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1465
+ readonly email: import("effect/Schema").String;
1466
+ readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
1293
1467
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1294
1468
  readonly status: import("effect/Schema").Boolean;
1295
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1469
+ readonly message: import("effect/Schema").String;
1470
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1471
+ readonly newPassword: import("effect/Schema").String;
1472
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1473
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1474
+ readonly status: import("effect/Schema").Boolean;
1475
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1296
1476
  readonly email: import("effect/Schema").String;
1297
- readonly otp: import("effect/Schema").String;
1477
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1298
1478
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1299
- readonly status: import("effect/Schema").Literal<true>;
1300
- readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1479
+ readonly success: import("effect/Schema").Boolean;
1480
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1481
+ readonly email: import("effect/Schema").String;
1482
+ readonly password: import("effect/Schema").String;
1483
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1484
+ readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1485
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1486
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1487
+ readonly redirect: import("effect/Schema").Boolean;
1488
+ readonly token: import("effect/Schema").String;
1489
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1301
1490
  readonly user: import("effect/Schema").Struct<{
1302
1491
  readonly id: import("effect/Schema").String;
1303
1492
  readonly name: import("effect/Schema").String;
@@ -1345,224 +1534,17 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1345
1534
  readonly createdAt: import("effect/Schema").DateFromString;
1346
1535
  readonly updatedAt: import("effect/Schema").DateFromString;
1347
1536
  }>;
1348
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1349
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1350
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1351
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1352
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1353
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1537
+ }>, import("effect/Schema").Struct<{
1538
+ readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
1539
+ readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
1540
+ readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1541
+ }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1542
+ readonly email: import("effect/Schema").String;
1543
+ readonly otp: import("effect/Schema").String;
1544
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1545
+ readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
1354
1546
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1355
- readonly id: import("effect/Schema").String;
1356
- readonly key: import("effect/Schema").String;
1357
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1358
- readonly organizationId: import("effect/Schema").String;
1359
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
1360
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1361
- readonly id: import("effect/Schema").String;
1362
- readonly name: import("effect/Schema").String;
1363
- readonly slug: import("effect/Schema").String;
1364
- readonly displayName: import("effect/Schema").String;
1365
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1366
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1367
- readonly email: import("effect/Schema").NonEmptyString;
1368
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1369
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1370
- readonly label: import("effect/Schema").NonEmptyString;
1371
- }>>;
1372
- }>>>;
1373
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1374
- readonly number: import("effect/Schema").NonEmptyString;
1375
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1376
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1377
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1378
- readonly label: import("effect/Schema").NonEmptyString;
1379
- }>>;
1380
- }>>>;
1381
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1382
- readonly url: import("effect/Schema").NonEmptyString;
1383
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1384
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1385
- readonly label: import("effect/Schema").NonEmptyString;
1386
- }>>;
1387
- }>>>;
1388
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1389
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1390
- readonly url: import("effect/Schema").NonEmptyString;
1391
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1392
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1393
- readonly label: import("effect/Schema").NonEmptyString;
1394
- }>>;
1395
- }>>>;
1396
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1397
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1398
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1399
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1400
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1401
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1402
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1403
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1404
- readonly label: import("effect/Schema").NonEmptyString;
1405
- }>>;
1406
- readonly formatted: import("effect/Schema").String;
1407
- }>>>;
1408
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1409
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
1410
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1411
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
1412
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
1413
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
1414
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1415
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1416
- readonly projectKey: import("effect/Schema").String;
1417
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1418
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
1419
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1420
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
1421
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
1422
- readonly authOptions: import("effect/Schema").Struct<{
1423
- readonly emailPassword: import("effect/Schema").Boolean;
1424
- readonly emailOtp: import("effect/Schema").Boolean;
1425
- readonly google: import("effect/Schema").Boolean;
1426
- }>;
1427
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1428
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1429
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1430
- readonly id: import("effect/Schema").String;
1431
- readonly name: import("effect/Schema").String;
1432
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1433
- readonly newPassword: import("effect/Schema").NonEmptyString;
1434
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1435
- readonly ok: import("effect/Schema").Boolean;
1436
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1437
- keyId: import("effect/Schema").NonEmptyString;
1438
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1439
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1440
- readonly name: import("effect/Schema").NonEmptyString;
1441
- readonly enabled: import("effect/Schema").Boolean;
1442
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1443
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1444
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1445
- readonly ok: import("effect/Schema").Boolean;
1446
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
1447
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
1448
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1449
- readonly url: import("effect/Schema").String;
1450
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1451
- readonly key: import("effect/Schema").NonEmptyString;
1452
- 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">]>>;
1453
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1454
- readonly valid: import("effect/Schema").Boolean;
1455
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1456
- readonly message: import("effect/Schema").String;
1457
- readonly code: import("effect/Schema").String;
1458
- }>>;
1459
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1460
- readonly id: import("effect/Schema").String;
1461
- readonly configId: import("effect/Schema").String;
1462
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1463
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1464
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1465
- readonly referenceId: import("effect/Schema").String;
1466
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1467
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1468
- readonly createdAt: import("effect/Schema").Date;
1469
- readonly updatedAt: import("effect/Schema").Date;
1470
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1471
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1472
- }>>;
1473
- }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1474
- readonly password: import("effect/Schema").NonEmptyString;
1475
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1476
- readonly ok: import("effect/Schema").Boolean;
1477
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1478
- readonly hostname: import("effect/Schema").NonEmptyString;
1479
- readonly rootHostname: import("effect/Schema").NonEmptyString;
1480
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1481
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1482
- readonly managed: import("effect/Schema").Boolean;
1483
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1484
- readonly id: import("effect/Schema").String;
1485
- readonly hostname: import("effect/Schema").String;
1486
- readonly rootHostname: import("effect/Schema").String;
1487
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1488
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1489
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1490
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1491
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1492
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1493
- readonly hostnameId: import("effect/Schema").String;
1494
- readonly managed: import("effect/Schema").Boolean;
1495
- readonly active: import("effect/Schema").Boolean;
1496
- readonly createdAt: import("effect/Schema").Date;
1497
- readonly updatedAt: import("effect/Schema").Date;
1498
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1499
- readonly id: import("effect/Schema").NonEmptyString;
1500
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1501
- readonly id: import("effect/Schema").String;
1502
- readonly hostname: import("effect/Schema").String;
1503
- readonly rootHostname: import("effect/Schema").String;
1504
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1505
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1506
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1507
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1508
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1509
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1510
- readonly hostnameId: import("effect/Schema").String;
1511
- readonly managed: import("effect/Schema").Boolean;
1512
- readonly active: import("effect/Schema").Boolean;
1513
- readonly createdAt: import("effect/Schema").Date;
1514
- readonly updatedAt: import("effect/Schema").Date;
1515
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1516
- readonly id: import("effect/Schema").NonEmptyString;
1517
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1518
- readonly id: import("effect/Schema").String;
1519
- readonly hostname: import("effect/Schema").String;
1520
- readonly rootHostname: import("effect/Schema").String;
1521
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1522
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1523
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1524
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1525
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1526
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1527
- readonly hostnameId: import("effect/Schema").String;
1528
- readonly managed: import("effect/Schema").Boolean;
1529
- readonly active: import("effect/Schema").Boolean;
1530
- readonly createdAt: import("effect/Schema").Date;
1531
- readonly updatedAt: import("effect/Schema").Date;
1532
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1533
- readonly hostname: import("effect/Schema").NonEmptyString;
1534
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1535
- readonly id: import("effect/Schema").String;
1536
- readonly hostname: import("effect/Schema").String;
1537
- readonly rootHostname: import("effect/Schema").String;
1538
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1539
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1540
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1541
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1542
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1543
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1544
- readonly hostnameId: import("effect/Schema").String;
1545
- readonly managed: import("effect/Schema").Boolean;
1546
- readonly active: import("effect/Schema").Boolean;
1547
- readonly createdAt: import("effect/Schema").Date;
1548
- readonly updatedAt: import("effect/Schema").Date;
1549
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1550
- readonly id: import("effect/Schema").NonEmptyString;
1551
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1552
- readonly required: import("effect/Schema").Boolean;
1553
- readonly status: import("effect/Schema").String;
1554
- readonly type: import("effect/Schema").String;
1555
- readonly name: import("effect/Schema").String;
1556
- readonly value: import("effect/Schema").String;
1557
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1558
- readonly organizationId: import("effect/Schema").NonEmptyString;
1559
- readonly userId: import("effect/Schema").NonEmptyString;
1560
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1561
- readonly id: import("effect/Schema").String;
1562
- readonly organizationId: import("effect/Schema").String;
1563
- readonly userId: import("effect/Schema").String;
1564
- readonly role: import("effect/Schema").String;
1565
- readonly createdAt: import("effect/Schema").Date;
1547
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1566
1548
  readonly user: import("effect/Schema").Struct<{
1567
1549
  readonly id: import("effect/Schema").String;
1568
1550
  readonly name: import("effect/Schema").String;
@@ -1603,138 +1585,113 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1603
1585
  }>, import("effect/Schema").Unknown, never, never>>>;
1604
1586
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1605
1587
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1588
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1589
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1590
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1606
1591
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1607
- readonly createdAt: import("effect/Schema").Date;
1608
- readonly updatedAt: import("effect/Schema").Date;
1592
+ readonly createdAt: import("effect/Schema").DateFromString;
1593
+ readonly updatedAt: import("effect/Schema").DateFromString;
1609
1594
  }>;
1610
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1611
- readonly id: import("effect/Schema").NonEmptyString;
1612
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1613
- readonly id: import("effect/Schema").String;
1614
- readonly name: import("effect/Schema").String;
1615
- readonly slug: import("effect/Schema").String;
1616
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1617
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1618
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1619
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1620
- readonly name: import("effect/Schema").String;
1621
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1622
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1623
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1624
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1625
- }>>;
1626
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1627
- readonly email: import("effect/Schema").NonEmptyString;
1628
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1629
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1630
- readonly label: import("effect/Schema").NonEmptyString;
1631
- }>>;
1632
- }>>>;
1633
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1634
- readonly number: import("effect/Schema").NonEmptyString;
1635
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1636
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1637
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1638
- readonly label: import("effect/Schema").NonEmptyString;
1639
- }>>;
1640
- }>>>;
1641
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1642
- readonly url: import("effect/Schema").NonEmptyString;
1643
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1644
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1645
- readonly label: import("effect/Schema").NonEmptyString;
1646
- }>>;
1647
- }>>>;
1648
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1649
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1650
- readonly url: import("effect/Schema").NonEmptyString;
1651
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1652
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1653
- readonly label: import("effect/Schema").NonEmptyString;
1654
- }>>;
1655
- }>>>;
1656
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1657
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1658
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1659
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1660
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1661
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1662
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1663
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1664
- readonly label: import("effect/Schema").NonEmptyString;
1595
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1596
+ readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1597
+ readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1598
+ readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
1599
+ readonly provider: import("effect/Schema").String;
1600
+ readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1601
+ readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
1602
+ readonly token: import("effect/Schema").String;
1603
+ readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
1604
+ readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
1605
+ readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
1606
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
1607
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1608
+ readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
1609
+ readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
1610
+ readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
1665
1611
  }>>;
1666
- }>>>;
1667
- }>, import("effect/Schema").Unknown, never, never>>;
1668
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1669
- readonly createdAt: import("effect/Schema").Date;
1670
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1671
- readonly organizationId: import("effect/Schema").NonEmptyString;
1672
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1673
- readonly id: import("effect/Schema").String;
1674
- readonly name: import("effect/Schema").String;
1675
- readonly slug: import("effect/Schema").String;
1676
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1677
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1678
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1679
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1680
- readonly name: import("effect/Schema").String;
1681
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1682
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1683
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1684
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1612
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1685
1613
  }>>;
1686
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1687
- readonly email: import("effect/Schema").NonEmptyString;
1688
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1689
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1690
- readonly label: import("effect/Schema").NonEmptyString;
1691
- }>>;
1692
- }>>>;
1693
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1694
- readonly number: import("effect/Schema").NonEmptyString;
1695
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1696
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1697
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1698
- readonly label: import("effect/Schema").NonEmptyString;
1699
- }>>;
1700
- }>>>;
1701
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1702
- readonly url: import("effect/Schema").NonEmptyString;
1703
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1704
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1705
- readonly label: import("effect/Schema").NonEmptyString;
1706
- }>>;
1707
- }>>>;
1708
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1709
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1710
- readonly url: import("effect/Schema").NonEmptyString;
1711
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1712
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1713
- readonly label: import("effect/Schema").NonEmptyString;
1714
- }>>;
1715
- }>>>;
1716
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1717
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1718
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1719
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1720
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1721
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1722
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1723
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1724
- readonly label: import("effect/Schema").NonEmptyString;
1725
- }>>;
1726
- }>>>;
1727
- }>, import("effect/Schema").Unknown, never, never>>;
1728
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1729
- readonly createdAt: import("effect/Schema").Date;
1730
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1731
- readonly organizationId: import("effect/Schema").NonEmptyString;
1732
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1733
- readonly id: import("effect/Schema").String;
1734
- readonly organizationId: import("effect/Schema").String;
1735
- readonly userId: import("effect/Schema").String;
1736
- readonly role: import("effect/Schema").String;
1737
- readonly createdAt: import("effect/Schema").Date;
1614
+ }>>;
1615
+ readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1616
+ readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1617
+ readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
1618
+ readonly additionalData: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1619
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1620
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1621
+ readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
1622
+ readonly redirect: import("effect/Schema").Boolean;
1623
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1624
+ readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
1625
+ readonly id: import("effect/Schema").String;
1626
+ readonly name: import("effect/Schema").String;
1627
+ readonly email: import("effect/Schema").String;
1628
+ readonly emailVerified: import("effect/Schema").Boolean;
1629
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1630
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1631
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1632
+ readonly email: import("effect/Schema").NonEmptyString;
1633
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1634
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1635
+ readonly label: import("effect/Schema").NonEmptyString;
1636
+ }>>;
1637
+ }>>>;
1638
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1639
+ readonly number: import("effect/Schema").NonEmptyString;
1640
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1641
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1642
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1643
+ readonly label: import("effect/Schema").NonEmptyString;
1644
+ }>>;
1645
+ }>>>;
1646
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1647
+ readonly url: import("effect/Schema").NonEmptyString;
1648
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1649
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1650
+ readonly label: import("effect/Schema").NonEmptyString;
1651
+ }>>;
1652
+ }>>>;
1653
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1654
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1655
+ readonly url: import("effect/Schema").NonEmptyString;
1656
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1657
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1658
+ readonly label: import("effect/Schema").NonEmptyString;
1659
+ }>>;
1660
+ }>>>;
1661
+ }>, import("effect/Schema").Unknown, never, never>>>;
1662
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1663
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1664
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1665
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1666
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1667
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1668
+ readonly createdAt: import("effect/Schema").DateFromString;
1669
+ readonly updatedAt: import("effect/Schema").DateFromString;
1670
+ }>>;
1671
+ readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1672
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1673
+ readonly success: import("effect/Schema").Boolean;
1674
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1675
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1676
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1677
+ readonly status: import("effect/Schema").Boolean;
1678
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1679
+ readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
1680
+ readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
1681
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1682
+ readonly totpURI: import("effect/Schema").String;
1683
+ readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
1684
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1685
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1686
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1687
+ readonly status: import("effect/Schema").Boolean;
1688
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1689
+ readonly code: import("effect/Schema").String;
1690
+ readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1691
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1692
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1693
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1694
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1738
1695
  readonly user: import("effect/Schema").Struct<{
1739
1696
  readonly id: import("effect/Schema").String;
1740
1697
  readonly name: import("effect/Schema").String;
@@ -1775,28 +1732,26 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1775
1732
  }>, import("effect/Schema").Unknown, never, never>>>;
1776
1733
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1777
1734
  readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1735
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1736
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1737
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1778
1738
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1779
- readonly createdAt: import("effect/Schema").Date;
1780
- readonly updatedAt: import("effect/Schema").Date;
1739
+ readonly createdAt: import("effect/Schema").DateFromString;
1740
+ readonly updatedAt: import("effect/Schema").DateFromString;
1781
1741
  }>;
1782
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1783
- readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1784
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1785
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1786
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1742
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1743
+ readonly code: import("effect/Schema").String;
1744
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1745
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1746
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1747
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1748
+ readonly user: import("effect/Schema").Struct<{
1787
1749
  readonly id: import("effect/Schema").String;
1788
1750
  readonly name: import("effect/Schema").String;
1789
- readonly slug: import("effect/Schema").String;
1790
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1791
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1792
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1793
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1794
- readonly name: import("effect/Schema").String;
1795
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1796
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1797
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1798
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1799
- }>>;
1751
+ readonly email: import("effect/Schema").String;
1752
+ readonly emailVerified: import("effect/Schema").Boolean;
1753
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1754
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1800
1755
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1801
1756
  readonly email: import("effect/Schema").NonEmptyString;
1802
1757
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1827,31 +1782,78 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1827
1782
  readonly label: import("effect/Schema").NonEmptyString;
1828
1783
  }>>;
1829
1784
  }>>>;
1830
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1831
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1832
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1833
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1834
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1835
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1785
+ }>, import("effect/Schema").Unknown, never, never>>>;
1786
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1787
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1788
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1789
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1790
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1791
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1792
+ readonly createdAt: import("effect/Schema").DateFromString;
1793
+ readonly updatedAt: import("effect/Schema").DateFromString;
1794
+ }>;
1795
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1796
+ readonly code: import("effect/Schema").String;
1797
+ readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1798
+ readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
1799
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1800
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1801
+ readonly user: import("effect/Schema").Struct<{
1802
+ readonly id: import("effect/Schema").String;
1803
+ readonly name: import("effect/Schema").String;
1804
+ readonly email: import("effect/Schema").String;
1805
+ readonly emailVerified: import("effect/Schema").Boolean;
1806
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1807
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1808
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1809
+ readonly email: import("effect/Schema").NonEmptyString;
1836
1810
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1837
1811
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1838
1812
  readonly label: import("effect/Schema").NonEmptyString;
1839
1813
  }>>;
1840
1814
  }>>>;
1841
- }>, import("effect/Schema").Unknown, never, never>>;
1842
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1843
- readonly createdAt: import("effect/Schema").Date;
1844
- }>>;
1845
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1846
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"users", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1847
- readonly id: import("effect/Schema").NonEmptyString;
1848
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1849
- readonly id: import("effect/Schema").String;
1850
- readonly name: import("effect/Schema").String;
1851
- readonly email: import("effect/Schema").String;
1852
- readonly emailVerified: import("effect/Schema").Boolean;
1853
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1854
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1815
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1816
+ readonly number: import("effect/Schema").NonEmptyString;
1817
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1818
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1819
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1820
+ readonly label: import("effect/Schema").NonEmptyString;
1821
+ }>>;
1822
+ }>>>;
1823
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1824
+ readonly url: import("effect/Schema").NonEmptyString;
1825
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1826
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1827
+ readonly label: import("effect/Schema").NonEmptyString;
1828
+ }>>;
1829
+ }>>>;
1830
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1831
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1832
+ readonly url: import("effect/Schema").NonEmptyString;
1833
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1834
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1835
+ readonly label: import("effect/Schema").NonEmptyString;
1836
+ }>>;
1837
+ }>>>;
1838
+ }>, import("effect/Schema").Unknown, never, never>>>;
1839
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1840
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1841
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1842
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1843
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1844
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1845
+ readonly createdAt: import("effect/Schema").DateFromString;
1846
+ readonly updatedAt: import("effect/Schema").DateFromString;
1847
+ }>;
1848
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1849
+ readonly providerId: import("effect/Schema").String;
1850
+ readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
1851
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1852
+ readonly status: import("effect/Schema").Boolean;
1853
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1854
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
1855
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1856
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1855
1857
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1856
1858
  readonly email: import("effect/Schema").NonEmptyString;
1857
1859
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1882,66 +1884,193 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1882
1884
  readonly label: import("effect/Schema").NonEmptyString;
1883
1885
  }>>;
1884
1886
  }>>>;
1885
- }>, import("effect/Schema").Unknown, never, never>>>;
1886
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1887
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1888
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1889
- readonly createdAt: import("effect/Schema").Date;
1890
- readonly updatedAt: import("effect/Schema").Date;
1891
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1892
- readonly userId: import("effect/Schema").NonEmptyString;
1893
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1894
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
1895
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1896
- readonly ids: import("effect/Schema").NonEmptyString;
1887
+ }>>>;
1888
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1889
+ readonly status: import("effect/Schema").Boolean;
1890
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1891
+ readonly email: import("effect/Schema").String;
1892
+ readonly otp: import("effect/Schema").String;
1893
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1894
+ readonly status: import("effect/Schema").Literal<true>;
1895
+ readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
1896
+ readonly user: import("effect/Schema").Struct<{
1897
+ readonly id: import("effect/Schema").String;
1898
+ readonly name: import("effect/Schema").String;
1899
+ readonly email: import("effect/Schema").String;
1900
+ readonly emailVerified: import("effect/Schema").Boolean;
1901
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1902
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1903
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1904
+ readonly email: import("effect/Schema").NonEmptyString;
1905
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1906
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1907
+ readonly label: import("effect/Schema").NonEmptyString;
1908
+ }>>;
1909
+ }>>>;
1910
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1911
+ readonly number: import("effect/Schema").NonEmptyString;
1912
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1913
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1914
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1915
+ readonly label: import("effect/Schema").NonEmptyString;
1916
+ }>>;
1917
+ }>>>;
1918
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1919
+ readonly url: import("effect/Schema").NonEmptyString;
1920
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1921
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1922
+ readonly label: import("effect/Schema").NonEmptyString;
1923
+ }>>;
1924
+ }>>>;
1925
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1926
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1927
+ readonly url: import("effect/Schema").NonEmptyString;
1928
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1929
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1930
+ readonly label: import("effect/Schema").NonEmptyString;
1931
+ }>>;
1932
+ }>>>;
1933
+ }>, import("effect/Schema").Unknown, never, never>>>;
1934
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1935
+ readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1936
+ readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1937
+ readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
1938
+ readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1939
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1940
+ readonly createdAt: import("effect/Schema").DateFromString;
1941
+ readonly updatedAt: import("effect/Schema").DateFromString;
1942
+ }>;
1943
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false>>;
1944
+ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1945
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1946
+ readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1947
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
1948
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1949
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1950
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1951
+ readonly id: import("effect/Schema").String;
1952
+ readonly key: import("effect/Schema").String;
1953
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1954
+ readonly organizationId: import("effect/Schema").String;
1955
+ readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
1956
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1957
+ readonly id: import("effect/Schema").String;
1958
+ readonly name: import("effect/Schema").String;
1959
+ readonly slug: import("effect/Schema").String;
1960
+ readonly displayName: import("effect/Schema").String;
1961
+ readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1962
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1963
+ readonly email: import("effect/Schema").NonEmptyString;
1964
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1965
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1966
+ readonly label: import("effect/Schema").NonEmptyString;
1967
+ }>>;
1968
+ }>>>;
1969
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1970
+ readonly number: import("effect/Schema").NonEmptyString;
1971
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1972
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1973
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1974
+ readonly label: import("effect/Schema").NonEmptyString;
1975
+ }>>;
1976
+ }>>>;
1977
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1978
+ readonly url: import("effect/Schema").NonEmptyString;
1979
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1980
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1981
+ readonly label: import("effect/Schema").NonEmptyString;
1982
+ }>>;
1983
+ }>>>;
1984
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1985
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1986
+ readonly url: import("effect/Schema").NonEmptyString;
1987
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1988
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1989
+ readonly label: import("effect/Schema").NonEmptyString;
1990
+ }>>;
1991
+ }>>>;
1992
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1993
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1994
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1995
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1996
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1997
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1998
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1999
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
2000
+ readonly label: import("effect/Schema").NonEmptyString;
2001
+ }>>;
2002
+ readonly formatted: import("effect/Schema").String;
2003
+ }>>>;
2004
+ readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
2005
+ readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
2006
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2007
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
2008
+ readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
2009
+ readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
2010
+ readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
1897
2011
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1898
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
2012
+ readonly projectKey: import("effect/Schema").String;
2013
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2014
+ readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
2015
+ readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2016
+ readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
2017
+ readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
2018
+ readonly authOptions: import("effect/Schema").Struct<{
2019
+ readonly emailPassword: import("effect/Schema").Boolean;
2020
+ readonly emailOtp: import("effect/Schema").Boolean;
2021
+ readonly google: import("effect/Schema").Boolean;
2022
+ }>;
2023
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2024
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2025
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2026
+ readonly id: import("effect/Schema").String;
2027
+ readonly name: import("effect/Schema").String;
2028
+ }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2029
+ readonly newPassword: import("effect/Schema").NonEmptyString;
2030
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2031
+ readonly ok: import("effect/Schema").Boolean;
2032
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2033
+ keyId: import("effect/Schema").NonEmptyString;
2034
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2035
+ readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
2036
+ readonly name: import("effect/Schema").NonEmptyString;
2037
+ readonly enabled: import("effect/Schema").Boolean;
2038
+ readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2039
+ readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
2040
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2041
+ readonly ok: import("effect/Schema").Boolean;
2042
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
2043
+ readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
2044
+ }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2045
+ readonly url: import("effect/Schema").String;
2046
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2047
+ readonly key: import("effect/Schema").NonEmptyString;
2048
+ 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">]>>;
2049
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2050
+ readonly valid: import("effect/Schema").Boolean;
2051
+ readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
2052
+ readonly message: import("effect/Schema").String;
2053
+ readonly code: import("effect/Schema").String;
2054
+ }>>;
2055
+ readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1899
2056
  readonly id: import("effect/Schema").String;
1900
- readonly name: import("effect/Schema").String;
1901
- readonly email: import("effect/Schema").String;
1902
- readonly emailVerified: import("effect/Schema").Boolean;
1903
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1904
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1905
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1906
- readonly email: import("effect/Schema").NonEmptyString;
1907
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1908
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1909
- readonly label: import("effect/Schema").NonEmptyString;
1910
- }>>;
1911
- }>>>;
1912
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1913
- readonly number: import("effect/Schema").NonEmptyString;
1914
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1915
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1916
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1917
- readonly label: import("effect/Schema").NonEmptyString;
1918
- }>>;
1919
- }>>>;
1920
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1921
- readonly url: import("effect/Schema").NonEmptyString;
1922
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1923
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1924
- readonly label: import("effect/Schema").NonEmptyString;
1925
- }>>;
1926
- }>>>;
1927
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1928
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1929
- readonly url: import("effect/Schema").NonEmptyString;
1930
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1931
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1932
- readonly label: import("effect/Schema").NonEmptyString;
1933
- }>>;
1934
- }>>>;
1935
- }>, import("effect/Schema").Unknown, never, never>>>;
1936
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1937
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1938
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2057
+ readonly configId: import("effect/Schema").String;
2058
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
2059
+ readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
2060
+ readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
2061
+ readonly referenceId: import("effect/Schema").String;
2062
+ readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
2063
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1939
2064
  readonly createdAt: import("effect/Schema").Date;
1940
2065
  readonly updatedAt: import("effect/Schema").Date;
2066
+ readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
2067
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1941
2068
  }>>;
1942
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1943
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false>>;
1944
- export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2069
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2070
+ readonly password: import("effect/Schema").NonEmptyString;
2071
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2072
+ readonly ok: import("effect/Schema").Boolean;
2073
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1945
2074
  readonly hostname: import("effect/Schema").NonEmptyString;
1946
2075
  readonly rootHostname: import("effect/Schema").NonEmptyString;
1947
2076
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -3686,133 +3815,4 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3686
3815
  readonly createdAt: import("effect/Schema").DateFromString;
3687
3816
  readonly updatedAt: import("effect/Schema").DateFromString;
3688
3817
  }>;
3689
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3690
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3691
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3692
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3693
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3694
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3695
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3696
- readonly id: import("effect/Schema").String;
3697
- readonly key: import("effect/Schema").String;
3698
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3699
- readonly organizationId: import("effect/Schema").String;
3700
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
3701
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3702
- readonly id: import("effect/Schema").String;
3703
- readonly name: import("effect/Schema").String;
3704
- readonly slug: import("effect/Schema").String;
3705
- readonly displayName: import("effect/Schema").String;
3706
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
3707
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3708
- readonly email: import("effect/Schema").NonEmptyString;
3709
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3710
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3711
- readonly label: import("effect/Schema").NonEmptyString;
3712
- }>>;
3713
- }>>>;
3714
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3715
- readonly number: import("effect/Schema").NonEmptyString;
3716
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
3717
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3718
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3719
- readonly label: import("effect/Schema").NonEmptyString;
3720
- }>>;
3721
- }>>>;
3722
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3723
- readonly url: import("effect/Schema").NonEmptyString;
3724
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3725
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3726
- readonly label: import("effect/Schema").NonEmptyString;
3727
- }>>;
3728
- }>>>;
3729
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3730
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
3731
- readonly url: import("effect/Schema").NonEmptyString;
3732
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3733
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3734
- readonly label: import("effect/Schema").NonEmptyString;
3735
- }>>;
3736
- }>>>;
3737
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3738
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
3739
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
3740
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
3741
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
3742
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
3743
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3744
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3745
- readonly label: import("effect/Schema").NonEmptyString;
3746
- }>>;
3747
- readonly formatted: import("effect/Schema").String;
3748
- }>>>;
3749
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
3750
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
3751
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3752
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
3753
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
3754
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
3755
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
3756
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3757
- readonly projectKey: import("effect/Schema").String;
3758
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3759
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
3760
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3761
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3762
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
3763
- readonly authOptions: import("effect/Schema").Struct<{
3764
- readonly emailPassword: import("effect/Schema").Boolean;
3765
- readonly emailOtp: import("effect/Schema").Boolean;
3766
- readonly google: import("effect/Schema").Boolean;
3767
- }>;
3768
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3769
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3770
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3771
- readonly id: import("effect/Schema").String;
3772
- readonly name: import("effect/Schema").String;
3773
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3774
- readonly newPassword: import("effect/Schema").NonEmptyString;
3775
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3776
- readonly ok: import("effect/Schema").Boolean;
3777
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3778
- keyId: import("effect/Schema").NonEmptyString;
3779
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3780
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3781
- readonly name: import("effect/Schema").NonEmptyString;
3782
- readonly enabled: import("effect/Schema").Boolean;
3783
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3784
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3785
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3786
- readonly ok: import("effect/Schema").Boolean;
3787
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
3788
- readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
3789
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3790
- readonly url: import("effect/Schema").String;
3791
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3792
- readonly key: import("effect/Schema").NonEmptyString;
3793
- 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">]>>;
3794
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3795
- readonly valid: import("effect/Schema").Boolean;
3796
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3797
- readonly message: import("effect/Schema").String;
3798
- readonly code: import("effect/Schema").String;
3799
- }>>;
3800
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3801
- readonly id: import("effect/Schema").String;
3802
- readonly configId: import("effect/Schema").String;
3803
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3804
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
3805
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
3806
- readonly referenceId: import("effect/Schema").String;
3807
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
3808
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
3809
- readonly createdAt: import("effect/Schema").Date;
3810
- readonly updatedAt: import("effect/Schema").Date;
3811
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3812
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
3813
- }>>;
3814
- }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3815
- readonly password: import("effect/Schema").NonEmptyString;
3816
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3817
- readonly ok: import("effect/Schema").Boolean;
3818
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false>>;
3818
+ }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false>>;