@krak-stack/auth 0.2.12 → 0.2.14

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/unstable/httpapi";
2
- export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", 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>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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;
385
- }>;
386
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>>;
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;
395
466
  }>>;
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>>>;
467
+ readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
468
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/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>>;
401
474
  }>>, 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<{
475
+ readonly id: import("effect/Schema").String;
476
+ readonly key: import("effect/Schema").String;
477
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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;
546
+ }>;
547
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
567
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
578
+ }>>;
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/unstable/httpapi/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;
595
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
596
+ readonly ok: import("effect/Schema").Boolean;
597
+ }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/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;
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>;
744
855
  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
- }>;
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>>>;
783
860
  }>>;
784
861
  readonly total: import("effect/Schema").Number;
785
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
816
- readonly createdAt: import("effect/Schema").DateFromString;
817
- }>>;
818
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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/unstable/httpapi/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>>;
1144
- 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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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>;
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/unstable/httpapi/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/unstable/httpapi/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;
1151
1076
  }>>, 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<{
1077
+ readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1154
1078
  readonly id: import("effect/Schema").String;
1155
- readonly name: import("effect/Schema").String;
1156
1079
  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>>;
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;
1094
+ readonly createdAt: import("effect/Schema").DateFromString;
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/unstable/httpapi/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;
1098
+ }>>, never, import("effect/Schema").toCodecJson<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/unstable/httpapi/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/unstable/httpapi/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<{
1184
+ readonly id: import("effect/Schema").String;
1185
+ readonly email: 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/unstable/httpapi/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/unstable/httpapi/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>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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,67 +1273,233 @@ 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>, never, never> | import("effect/unstable/httpapi/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>;
1256
- }>>, 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>, never, never> | import("effect/unstable/httpapi/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
- }>>>;
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/unstable/httpapi/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>]>>;
1293
1282
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1294
- readonly status: import("effect/Schema").Boolean;
1295
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1283
+ readonly id: import("effect/Schema").String;
1296
1284
  readonly email: import("effect/Schema").String;
1297
- readonly otp: 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/unstable/httpapi/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;
1298
1295
  }>>, 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>;
1301
- readonly user: import("effect/Schema").Struct<{
1302
- readonly id: import("effect/Schema").String;
1303
- readonly name: import("effect/Schema").String;
1304
- readonly email: import("effect/Schema").String;
1305
- readonly emailVerified: import("effect/Schema").Boolean;
1306
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1307
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1308
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1309
- readonly email: import("effect/Schema").NonEmptyString;
1310
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1311
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1312
- readonly label: import("effect/Schema").NonEmptyString;
1313
- }>>;
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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>;
1467
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1468
+ readonly status: import("effect/Schema").Boolean;
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/unstable/httpapi/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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1476
+ readonly email: import("effect/Schema").String;
1477
+ readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
1478
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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>>;
1490
+ readonly user: import("effect/Schema").Struct<{
1491
+ readonly id: import("effect/Schema").String;
1492
+ readonly name: import("effect/Schema").String;
1493
+ readonly email: import("effect/Schema").String;
1494
+ readonly emailVerified: import("effect/Schema").Boolean;
1495
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1496
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1497
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1498
+ readonly email: import("effect/Schema").NonEmptyString;
1499
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1500
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1501
+ readonly label: import("effect/Schema").NonEmptyString;
1502
+ }>>;
1314
1503
  }>>>;
1315
1504
  readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1316
1505
  readonly number: import("effect/Schema").NonEmptyString;
@@ -1345,219 +1534,164 @@ 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>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1428
- readonly newPassword: import("effect/Schema").NonEmptyString;
1429
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1430
- readonly ok: import("effect/Schema").Boolean;
1431
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1432
- keyId: import("effect/Schema").NonEmptyString;
1433
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1434
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
1435
- readonly name: import("effect/Schema").NonEmptyString;
1436
- readonly enabled: import("effect/Schema").Boolean;
1437
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1438
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
1439
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1440
- readonly ok: import("effect/Schema").Boolean;
1441
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
1442
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
1443
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1444
- readonly url: import("effect/Schema").String;
1445
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1446
- readonly key: import("effect/Schema").NonEmptyString;
1447
- 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">]>>;
1448
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1449
- readonly valid: import("effect/Schema").Boolean;
1450
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1451
- readonly message: import("effect/Schema").String;
1452
- readonly code: import("effect/Schema").String;
1453
- }>>;
1454
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1547
+ readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
1548
+ readonly user: import("effect/Schema").Struct<{
1455
1549
  readonly id: import("effect/Schema").String;
1456
- readonly configId: import("effect/Schema").String;
1457
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
1458
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
1459
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
1460
- readonly referenceId: import("effect/Schema").String;
1461
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1462
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
1463
- readonly createdAt: import("effect/Schema").Date;
1464
- readonly updatedAt: import("effect/Schema").Date;
1465
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
1466
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
1550
+ readonly name: import("effect/Schema").String;
1551
+ readonly email: import("effect/Schema").String;
1552
+ readonly emailVerified: import("effect/Schema").Boolean;
1553
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1554
+ readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1555
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1556
+ readonly email: import("effect/Schema").NonEmptyString;
1557
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1558
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1559
+ readonly label: import("effect/Schema").NonEmptyString;
1560
+ }>>;
1561
+ }>>>;
1562
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1563
+ readonly number: import("effect/Schema").NonEmptyString;
1564
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1565
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1566
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1567
+ readonly label: import("effect/Schema").NonEmptyString;
1568
+ }>>;
1569
+ }>>>;
1570
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1571
+ readonly url: import("effect/Schema").NonEmptyString;
1572
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1573
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1574
+ readonly label: import("effect/Schema").NonEmptyString;
1575
+ }>>;
1576
+ }>>>;
1577
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1578
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1579
+ readonly url: import("effect/Schema").NonEmptyString;
1580
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1581
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1582
+ readonly label: import("effect/Schema").NonEmptyString;
1583
+ }>>;
1584
+ }>>>;
1585
+ }>, import("effect/Schema").Unknown, never, never>>>;
1586
+ readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
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>;
1591
+ readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1592
+ readonly createdAt: import("effect/Schema").DateFromString;
1593
+ readonly updatedAt: import("effect/Schema").DateFromString;
1594
+ }>;
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/unstable/httpapi/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>;
1611
+ }>>;
1612
+ readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
1613
+ }>>;
1467
1614
  }>>;
1468
- }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1469
- readonly password: import("effect/Schema").NonEmptyString;
1470
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1471
- readonly ok: import("effect/Schema").Boolean;
1472
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1473
- readonly hostname: import("effect/Schema").NonEmptyString;
1474
- readonly rootHostname: import("effect/Schema").NonEmptyString;
1475
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1476
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1477
- readonly managed: import("effect/Schema").Boolean;
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>;
1478
1620
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1479
- readonly id: import("effect/Schema").String;
1480
- readonly hostname: import("effect/Schema").String;
1481
- readonly rootHostname: import("effect/Schema").String;
1482
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1483
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1484
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1485
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1486
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1487
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1488
- readonly hostnameId: import("effect/Schema").String;
1489
- readonly managed: import("effect/Schema").Boolean;
1490
- readonly active: import("effect/Schema").Boolean;
1491
- readonly createdAt: import("effect/Schema").Date;
1492
- readonly updatedAt: import("effect/Schema").Date;
1493
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1494
- readonly id: import("effect/Schema").NonEmptyString;
1495
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1496
- readonly id: import("effect/Schema").String;
1497
- readonly hostname: import("effect/Schema").String;
1498
- readonly rootHostname: import("effect/Schema").String;
1499
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1500
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1501
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1502
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1503
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1504
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1505
- readonly hostnameId: import("effect/Schema").String;
1506
- readonly managed: import("effect/Schema").Boolean;
1507
- readonly active: import("effect/Schema").Boolean;
1508
- readonly createdAt: import("effect/Schema").Date;
1509
- readonly updatedAt: import("effect/Schema").Date;
1510
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1511
- readonly id: import("effect/Schema").NonEmptyString;
1512
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1513
- readonly id: import("effect/Schema").String;
1514
- readonly hostname: import("effect/Schema").String;
1515
- readonly rootHostname: import("effect/Schema").String;
1516
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1517
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1518
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1519
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1520
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1521
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1522
- readonly hostnameId: import("effect/Schema").String;
1523
- readonly managed: import("effect/Schema").Boolean;
1524
- readonly active: import("effect/Schema").Boolean;
1525
- readonly createdAt: import("effect/Schema").Date;
1526
- readonly updatedAt: import("effect/Schema").Date;
1527
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1528
- readonly hostname: import("effect/Schema").NonEmptyString;
1529
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1530
- readonly id: import("effect/Schema").String;
1531
- readonly hostname: import("effect/Schema").String;
1532
- readonly rootHostname: import("effect/Schema").String;
1533
- readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1534
- readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1535
- readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1536
- readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1537
- readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1538
- readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1539
- readonly hostnameId: import("effect/Schema").String;
1540
- readonly managed: import("effect/Schema").Boolean;
1541
- readonly active: import("effect/Schema").Boolean;
1542
- readonly createdAt: import("effect/Schema").Date;
1543
- readonly updatedAt: import("effect/Schema").Date;
1544
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1545
- readonly id: import("effect/Schema").NonEmptyString;
1546
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1547
- readonly required: import("effect/Schema").Boolean;
1548
- readonly status: import("effect/Schema").String;
1549
- readonly type: import("effect/Schema").String;
1550
- readonly name: import("effect/Schema").String;
1551
- readonly value: import("effect/Schema").String;
1552
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1553
- readonly organizationId: import("effect/Schema").NonEmptyString;
1554
- readonly userId: import("effect/Schema").NonEmptyString;
1555
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1556
- readonly id: import("effect/Schema").String;
1557
- readonly organizationId: import("effect/Schema").String;
1558
- readonly userId: import("effect/Schema").String;
1559
- readonly role: import("effect/Schema").String;
1560
- readonly createdAt: import("effect/Schema").Date;
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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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/unstable/httpapi/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>;
1561
1695
  readonly user: import("effect/Schema").Struct<{
1562
1696
  readonly id: import("effect/Schema").String;
1563
1697
  readonly name: import("effect/Schema").String;
@@ -1598,138 +1732,19 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1598
1732
  }>, import("effect/Schema").Unknown, never, never>>>;
1599
1733
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1600
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>;
1601
1738
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1602
- readonly createdAt: import("effect/Schema").Date;
1603
- readonly updatedAt: import("effect/Schema").Date;
1739
+ readonly createdAt: import("effect/Schema").DateFromString;
1740
+ readonly updatedAt: import("effect/Schema").DateFromString;
1604
1741
  }>;
1605
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1606
- readonly id: import("effect/Schema").NonEmptyString;
1607
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1608
- readonly id: import("effect/Schema").String;
1609
- readonly name: import("effect/Schema").String;
1610
- readonly slug: import("effect/Schema").String;
1611
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1612
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1613
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1614
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1615
- readonly name: import("effect/Schema").String;
1616
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1617
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1618
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1619
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1620
- }>>;
1621
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1622
- readonly email: import("effect/Schema").NonEmptyString;
1623
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1624
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1625
- readonly label: import("effect/Schema").NonEmptyString;
1626
- }>>;
1627
- }>>>;
1628
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1629
- readonly number: import("effect/Schema").NonEmptyString;
1630
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1631
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1632
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1633
- readonly label: import("effect/Schema").NonEmptyString;
1634
- }>>;
1635
- }>>>;
1636
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1637
- readonly url: import("effect/Schema").NonEmptyString;
1638
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1639
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1640
- readonly label: import("effect/Schema").NonEmptyString;
1641
- }>>;
1642
- }>>>;
1643
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1644
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1645
- readonly url: import("effect/Schema").NonEmptyString;
1646
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1647
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1648
- readonly label: import("effect/Schema").NonEmptyString;
1649
- }>>;
1650
- }>>>;
1651
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1652
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1653
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1654
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1655
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1656
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1657
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1658
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1659
- readonly label: import("effect/Schema").NonEmptyString;
1660
- }>>;
1661
- }>>>;
1662
- }>, import("effect/Schema").Unknown, never, never>>;
1663
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1664
- readonly createdAt: import("effect/Schema").Date;
1665
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1666
- readonly organizationId: import("effect/Schema").NonEmptyString;
1667
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1668
- readonly id: import("effect/Schema").String;
1669
- readonly name: import("effect/Schema").String;
1670
- readonly slug: import("effect/Schema").String;
1671
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1672
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1673
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1674
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1675
- readonly name: import("effect/Schema").String;
1676
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1677
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1678
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1679
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1680
- }>>;
1681
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1682
- readonly email: import("effect/Schema").NonEmptyString;
1683
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1684
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1685
- readonly label: import("effect/Schema").NonEmptyString;
1686
- }>>;
1687
- }>>>;
1688
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1689
- readonly number: import("effect/Schema").NonEmptyString;
1690
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1691
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1692
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1693
- readonly label: import("effect/Schema").NonEmptyString;
1694
- }>>;
1695
- }>>>;
1696
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1697
- readonly url: import("effect/Schema").NonEmptyString;
1698
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1699
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1700
- readonly label: import("effect/Schema").NonEmptyString;
1701
- }>>;
1702
- }>>>;
1703
- readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1704
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1705
- readonly url: import("effect/Schema").NonEmptyString;
1706
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1707
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1708
- readonly label: import("effect/Schema").NonEmptyString;
1709
- }>>;
1710
- }>>>;
1711
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1712
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1713
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1714
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1715
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1716
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1717
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1718
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1719
- readonly label: import("effect/Schema").NonEmptyString;
1720
- }>>;
1721
- }>>>;
1722
- }>, import("effect/Schema").Unknown, never, never>>;
1723
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1724
- readonly createdAt: import("effect/Schema").Date;
1725
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1726
- readonly organizationId: import("effect/Schema").NonEmptyString;
1727
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1728
- readonly id: import("effect/Schema").String;
1729
- readonly organizationId: import("effect/Schema").String;
1730
- readonly userId: import("effect/Schema").String;
1731
- readonly role: import("effect/Schema").String;
1732
- readonly createdAt: import("effect/Schema").Date;
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/unstable/httpapi/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>;
1733
1748
  readonly user: import("effect/Schema").Struct<{
1734
1749
  readonly id: import("effect/Schema").String;
1735
1750
  readonly name: import("effect/Schema").String;
@@ -1770,28 +1785,26 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1770
1785
  }>, import("effect/Schema").Unknown, never, never>>>;
1771
1786
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1772
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>;
1773
1791
  readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1774
- readonly createdAt: import("effect/Schema").Date;
1775
- readonly updatedAt: import("effect/Schema").Date;
1792
+ readonly createdAt: import("effect/Schema").DateFromString;
1793
+ readonly updatedAt: import("effect/Schema").DateFromString;
1776
1794
  }>;
1777
- }>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1778
- readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1779
- readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
1780
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1781
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
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/unstable/httpapi/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<{
1782
1802
  readonly id: import("effect/Schema").String;
1783
1803
  readonly name: import("effect/Schema").String;
1784
- readonly slug: import("effect/Schema").String;
1785
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
1786
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
1787
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1788
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1789
- readonly name: import("effect/Schema").String;
1790
- readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1791
- readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1792
- readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1793
- readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1794
- }>>;
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<{
1795
1808
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1796
1809
  readonly email: import("effect/Schema").NonEmptyString;
1797
1810
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1822,31 +1835,25 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1822
1835
  readonly label: import("effect/Schema").NonEmptyString;
1823
1836
  }>>;
1824
1837
  }>>>;
1825
- readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1826
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1827
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1828
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1829
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1830
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1831
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1832
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1833
- readonly label: import("effect/Schema").NonEmptyString;
1834
- }>>;
1835
- }>>>;
1836
- }>, import("effect/Schema").Unknown, never, never>>;
1837
- readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1838
- readonly createdAt: import("effect/Schema").Date;
1839
- }>>;
1840
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1841
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1842
- readonly id: import("effect/Schema").NonEmptyString;
1843
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1844
- readonly id: import("effect/Schema").String;
1845
- readonly name: import("effect/Schema").String;
1846
- readonly email: import("effect/Schema").String;
1847
- readonly emailVerified: import("effect/Schema").Boolean;
1848
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1849
- readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
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/unstable/httpapi/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/unstable/httpapi/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<{
1850
1857
  readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1851
1858
  readonly email: import("effect/Schema").NonEmptyString;
1852
1859
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -1877,20 +1884,16 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1877
1884
  readonly label: import("effect/Schema").NonEmptyString;
1878
1885
  }>>;
1879
1886
  }>>>;
1880
- }>, import("effect/Schema").Unknown, never, never>>>;
1881
- readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1882
- readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
1883
- readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1884
- readonly createdAt: import("effect/Schema").Date;
1885
- readonly updatedAt: import("effect/Schema").Date;
1886
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1887
- readonly userId: import("effect/Schema").NonEmptyString;
1888
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1889
- readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
1890
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1891
- readonly ids: import("effect/Schema").NonEmptyString;
1892
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1893
- readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
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/unstable/httpapi/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<{
1894
1897
  readonly id: import("effect/Schema").String;
1895
1898
  readonly name: import("effect/Schema").String;
1896
1899
  readonly email: import("effect/Schema").String;
@@ -1930,13 +1933,144 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
1930
1933
  }>, import("effect/Schema").Unknown, never, never>>>;
1931
1934
  readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
1932
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>;
1933
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/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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>;
2011
+ }>>, never, never, import("effect/Schema").toCodecJson<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/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
2043
+ readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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<{
2056
+ readonly id: 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>;
1934
2064
  readonly createdAt: import("effect/Schema").Date;
1935
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>;
1936
2068
  }>>;
1937
- readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
1938
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
1939
- export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2069
+ }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1940
2074
  readonly hostname: import("effect/Schema").NonEmptyString;
1941
2075
  readonly rootHostname: import("effect/Schema").NonEmptyString;
1942
2076
  readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -1975,6 +2109,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
1975
2109
  readonly id: import("effect/Schema").String;
1976
2110
  readonly name: import("effect/Schema").String;
1977
2111
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2112
+ readonly role: import("effect/Schema").String;
1978
2113
  }>>>;
1979
2114
  readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1980
2115
  readonly id: import("effect/Schema").String;
@@ -2059,6 +2194,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2059
2194
  readonly id: import("effect/Schema").String;
2060
2195
  readonly name: import("effect/Schema").String;
2061
2196
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2197
+ readonly role: import("effect/Schema").String;
2062
2198
  }>>>;
2063
2199
  readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2064
2200
  readonly id: import("effect/Schema").String;
@@ -2173,6 +2309,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2173
2309
  readonly id: import("effect/Schema").String;
2174
2310
  readonly name: import("effect/Schema").String;
2175
2311
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2312
+ readonly role: import("effect/Schema").String;
2176
2313
  }>>>;
2177
2314
  readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2178
2315
  readonly id: import("effect/Schema").String;
@@ -2318,6 +2455,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2318
2455
  readonly id: import("effect/Schema").String;
2319
2456
  readonly name: import("effect/Schema").String;
2320
2457
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
2458
+ readonly role: import("effect/Schema").String;
2321
2459
  }>>>;
2322
2460
  readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2323
2461
  readonly id: import("effect/Schema").String;
@@ -2377,7 +2515,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2377
2515
  readonly createdAt: import("effect/Schema").DateFromString;
2378
2516
  readonly updatedAt: import("effect/Schema").DateFromString;
2379
2517
  }>;
2380
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2518
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2381
2519
  readonly userId: import("effect/Schema").String;
2382
2520
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2383
2521
  readonly session: import("effect/Schema").Struct<{
@@ -2440,7 +2578,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2440
2578
  readonly createdAt: import("effect/Schema").DateFromString;
2441
2579
  readonly updatedAt: import("effect/Schema").DateFromString;
2442
2580
  }>;
2443
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2581
+ }>>, 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/unstable/httpapi/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<{
2444
2582
  readonly session: import("effect/Schema").Struct<{
2445
2583
  readonly id: import("effect/Schema").String;
2446
2584
  readonly expiresAt: import("effect/Schema").DateFromString;
@@ -2501,7 +2639,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2501
2639
  readonly createdAt: import("effect/Schema").DateFromString;
2502
2640
  readonly updatedAt: import("effect/Schema").DateFromString;
2503
2641
  }>;
2504
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2642
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2505
2643
  readonly userId: import("effect/Schema").String;
2506
2644
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2507
2645
  readonly user: import("effect/Schema").Struct<{
@@ -2551,12 +2689,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2551
2689
  readonly createdAt: import("effect/Schema").DateFromString;
2552
2690
  readonly updatedAt: import("effect/Schema").DateFromString;
2553
2691
  }>;
2554
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2692
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2555
2693
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
2556
2694
  readonly keyId: import("effect/Schema").String;
2557
2695
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2558
2696
  readonly success: import("effect/Schema").Boolean;
2559
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2697
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2560
2698
  readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
2561
2699
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2562
2700
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
@@ -2592,7 +2730,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2592
2730
  readonly total: import("effect/Schema").Number;
2593
2731
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
2594
2732
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
2595
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2733
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2596
2734
  readonly newPassword: import("effect/Schema").String;
2597
2735
  readonly currentPassword: import("effect/Schema").String;
2598
2736
  readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
@@ -2645,7 +2783,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2645
2783
  readonly createdAt: import("effect/Schema").DateFromString;
2646
2784
  readonly updatedAt: import("effect/Schema").DateFromString;
2647
2785
  }>;
2648
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2786
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2649
2787
  readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
2650
2788
  readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
2651
2789
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -2709,7 +2847,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2709
2847
  readonly createdAt: import("effect/Schema").DateFromString;
2710
2848
  readonly updatedAt: import("effect/Schema").DateFromString;
2711
2849
  }>;
2712
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2850
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2713
2851
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
2714
2852
  readonly provider: import("effect/Schema").String;
2715
2853
  readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
@@ -2776,7 +2914,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2776
2914
  readonly updatedAt: import("effect/Schema").DateFromString;
2777
2915
  }>>;
2778
2916
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
2779
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2917
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
2780
2918
  readonly id: import("effect/Schema").String;
2781
2919
  readonly providerId: import("effect/Schema").String;
2782
2920
  readonly createdAt: import("effect/Schema").DateFromString;
@@ -2784,14 +2922,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2784
2922
  readonly accountId: import("effect/Schema").String;
2785
2923
  readonly userId: import("effect/Schema").String;
2786
2924
  readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
2787
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2925
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2788
2926
  readonly accept: import("effect/Schema").Boolean;
2789
2927
  readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
2790
2928
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
2791
2929
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2792
2930
  readonly redirect: import("effect/Schema").Boolean;
2793
2931
  readonly url: import("effect/Schema").String;
2794
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2932
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2795
2933
  readonly client_id: import("effect/Schema").String;
2796
2934
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2797
2935
  readonly client_id: import("effect/Schema").String;
@@ -2802,7 +2940,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2802
2940
  readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
2803
2941
  readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
2804
2942
  readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
2805
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2943
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2806
2944
  readonly invitationId: import("effect/Schema").String;
2807
2945
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2808
2946
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -2824,7 +2962,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2824
2962
  readonly role: import("effect/Schema").String;
2825
2963
  readonly createdAt: import("effect/Schema").DateFromString;
2826
2964
  }>>;
2827
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2965
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2828
2966
  readonly invitationId: import("effect/Schema").String;
2829
2967
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2830
2968
  readonly id: import("effect/Schema").String;
@@ -2837,7 +2975,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2837
2975
  readonly status: import("effect/Schema").String;
2838
2976
  readonly expiresAt: import("effect/Schema").DateFromString;
2839
2977
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2840
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2978
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2841
2979
  readonly name: import("effect/Schema").NonEmptyString;
2842
2980
  readonly slug: import("effect/Schema").NonEmptyString;
2843
2981
  readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
@@ -2853,7 +2991,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2853
2991
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2854
2992
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
2855
2993
  readonly createdAt: import("effect/Schema").DateFromString;
2856
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2994
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2857
2995
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
2858
2996
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
2859
2997
  readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
@@ -2923,7 +3061,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2923
3061
  readonly expiresAt: import("effect/Schema").DateFromString;
2924
3062
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
2925
3063
  }>>;
2926
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3064
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2927
3065
  readonly id: import("effect/Schema").String;
2928
3066
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2929
3067
  readonly id: import("effect/Schema").String;
@@ -2938,7 +3076,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
2938
3076
  readonly organizationName: import("effect/Schema").String;
2939
3077
  readonly organizationSlug: import("effect/Schema").String;
2940
3078
  readonly inviterEmail: import("effect/Schema").String;
2941
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3079
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2942
3080
  readonly organizationId: import("effect/Schema").NonEmptyString;
2943
3081
  readonly actorUserId: import("effect/Schema").NonEmptyString;
2944
3082
  readonly targetUserId: import("effect/Schema").NonEmptyString;
@@ -3004,7 +3142,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3004
3142
  readonly createdAt: import("effect/Schema").DateFromString;
3005
3143
  readonly updatedAt: import("effect/Schema").DateFromString;
3006
3144
  }>;
3007
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3145
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3008
3146
  readonly email: import("effect/Schema").String;
3009
3147
  readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
3010
3148
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3021,7 +3159,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3021
3159
  readonly status: import("effect/Schema").String;
3022
3160
  readonly expiresAt: import("effect/Schema").DateFromString;
3023
3161
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
3024
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3162
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3025
3163
  readonly organizationId: import("effect/Schema").String;
3026
3164
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3027
3165
  readonly id: import("effect/Schema").String;
@@ -3029,7 +3167,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3029
3167
  readonly userId: import("effect/Schema").String;
3030
3168
  readonly role: import("effect/Schema").String;
3031
3169
  readonly createdAt: import("effect/Schema").DateFromString;
3032
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3170
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3033
3171
  readonly id: import("effect/Schema").String;
3034
3172
  readonly name: import("effect/Schema").String;
3035
3173
  readonly slug: import("effect/Schema").String;
@@ -3038,7 +3176,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3038
3176
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3039
3177
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3040
3178
  readonly createdAt: import("effect/Schema").DateFromString;
3041
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3179
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3042
3180
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3043
3181
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3044
3182
  readonly id: import("effect/Schema").String;
@@ -3051,7 +3189,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3051
3189
  readonly status: import("effect/Schema").String;
3052
3190
  readonly expiresAt: import("effect/Schema").DateFromString;
3053
3191
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
3054
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3192
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3055
3193
  readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
3056
3194
  readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
3057
3195
  readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3108,7 +3246,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3108
3246
  }>;
3109
3247
  }>>;
3110
3248
  readonly total: import("effect/Schema").Number;
3111
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3249
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3112
3250
  readonly id: import("effect/Schema").String;
3113
3251
  readonly email: import("effect/Schema").String;
3114
3252
  readonly role: import("effect/Schema").String;
@@ -3119,7 +3257,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3119
3257
  readonly status: import("effect/Schema").String;
3120
3258
  readonly expiresAt: import("effect/Schema").DateFromString;
3121
3259
  readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
3122
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3260
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3123
3261
  readonly invitationId: import("effect/Schema").String;
3124
3262
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3125
3263
  readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -3141,7 +3279,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3141
3279
  readonly role: import("effect/Schema").String;
3142
3280
  readonly createdAt: import("effect/Schema").DateFromString;
3143
3281
  }>>;
3144
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3282
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3145
3283
  readonly memberIdOrEmail: import("effect/Schema").String;
3146
3284
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3147
3285
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -3152,7 +3290,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3152
3290
  readonly role: import("effect/Schema").String;
3153
3291
  readonly createdAt: import("effect/Schema").DateFromString;
3154
3292
  }>;
3155
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3293
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3156
3294
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3157
3295
  readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
3158
3296
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -3164,7 +3302,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3164
3302
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3165
3303
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3166
3304
  readonly createdAt: import("effect/Schema").DateFromString;
3167
- }>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3305
+ }>>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3168
3306
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3169
3307
  readonly data: import("effect/Schema").Struct<{
3170
3308
  readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
@@ -3182,7 +3320,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3182
3320
  readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3183
3321
  readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3184
3322
  readonly createdAt: import("effect/Schema").DateFromString;
3185
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3323
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3186
3324
  readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
3187
3325
  readonly memberId: import("effect/Schema").String;
3188
3326
  readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3192,23 +3330,23 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3192
3330
  readonly userId: import("effect/Schema").String;
3193
3331
  readonly role: import("effect/Schema").String;
3194
3332
  readonly createdAt: import("effect/Schema").DateFromString;
3195
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3333
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3196
3334
  readonly email: import("effect/Schema").String;
3197
3335
  readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
3198
3336
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3199
3337
  readonly status: import("effect/Schema").Boolean;
3200
3338
  readonly message: import("effect/Schema").String;
3201
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3339
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3202
3340
  readonly newPassword: import("effect/Schema").String;
3203
3341
  readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
3204
3342
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3205
3343
  readonly status: import("effect/Schema").Boolean;
3206
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3344
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3207
3345
  readonly email: import("effect/Schema").String;
3208
3346
  readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
3209
3347
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3210
3348
  readonly success: import("effect/Schema").Boolean;
3211
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3349
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3212
3350
  readonly email: import("effect/Schema").String;
3213
3351
  readonly password: import("effect/Schema").String;
3214
3352
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3269,7 +3407,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3269
3407
  readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
3270
3408
  readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
3271
3409
  readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3272
- }>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3410
+ }>]>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3273
3411
  readonly email: import("effect/Schema").String;
3274
3412
  readonly otp: import("effect/Schema").String;
3275
3413
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3323,7 +3461,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3323
3461
  readonly createdAt: import("effect/Schema").DateFromString;
3324
3462
  readonly updatedAt: import("effect/Schema").DateFromString;
3325
3463
  }>;
3326
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3464
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3327
3465
  readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
3328
3466
  readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
3329
3467
  readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3400,23 +3538,23 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3400
3538
  readonly updatedAt: import("effect/Schema").DateFromString;
3401
3539
  }>>;
3402
3540
  readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3403
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3541
+ }>>, 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/unstable/httpapi/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<{
3404
3542
  readonly success: import("effect/Schema").Boolean;
3405
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3543
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3406
3544
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
3407
3545
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3408
3546
  readonly status: import("effect/Schema").Boolean;
3409
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3547
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3410
3548
  readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
3411
3549
  readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
3412
3550
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3413
3551
  readonly totpURI: import("effect/Schema").String;
3414
3552
  readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
3415
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3553
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3416
3554
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3417
3555
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3418
3556
  readonly status: import("effect/Schema").Boolean;
3419
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3557
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3420
3558
  readonly code: import("effect/Schema").String;
3421
3559
  readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3422
3560
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
@@ -3470,7 +3608,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3470
3608
  readonly createdAt: import("effect/Schema").DateFromString;
3471
3609
  readonly updatedAt: import("effect/Schema").DateFromString;
3472
3610
  }>;
3473
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3611
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3474
3612
  readonly code: import("effect/Schema").String;
3475
3613
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3476
3614
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3523,7 +3661,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3523
3661
  readonly createdAt: import("effect/Schema").DateFromString;
3524
3662
  readonly updatedAt: import("effect/Schema").DateFromString;
3525
3663
  }>;
3526
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3664
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3527
3665
  readonly code: import("effect/Schema").String;
3528
3666
  readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
3529
3667
  readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -3576,12 +3714,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3576
3714
  readonly createdAt: import("effect/Schema").DateFromString;
3577
3715
  readonly updatedAt: import("effect/Schema").DateFromString;
3578
3716
  }>;
3579
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3717
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3580
3718
  readonly providerId: import("effect/Schema").String;
3581
3719
  readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
3582
3720
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3583
3721
  readonly status: import("effect/Schema").Boolean;
3584
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3722
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3585
3723
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
3586
3724
  readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
3587
3725
  readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
@@ -3618,7 +3756,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3618
3756
  }>>>;
3619
3757
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3620
3758
  readonly status: import("effect/Schema").Boolean;
3621
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3759
+ }>>, 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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3622
3760
  readonly email: import("effect/Schema").String;
3623
3761
  readonly otp: import("effect/Schema").String;
3624
3762
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -3671,128 +3809,4 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
3671
3809
  readonly createdAt: import("effect/Schema").DateFromString;
3672
3810
  readonly updatedAt: import("effect/Schema").DateFromString;
3673
3811
  }>;
3674
- }>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3675
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3676
- readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
3677
- readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
3678
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3679
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3680
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3681
- readonly id: import("effect/Schema").String;
3682
- readonly key: import("effect/Schema").String;
3683
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3684
- readonly organizationId: import("effect/Schema").String;
3685
- readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
3686
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3687
- readonly id: import("effect/Schema").String;
3688
- readonly name: import("effect/Schema").String;
3689
- readonly slug: import("effect/Schema").String;
3690
- readonly displayName: import("effect/Schema").String;
3691
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
3692
- readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3693
- readonly email: import("effect/Schema").NonEmptyString;
3694
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3695
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3696
- readonly label: import("effect/Schema").NonEmptyString;
3697
- }>>;
3698
- }>>>;
3699
- readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3700
- readonly number: import("effect/Schema").NonEmptyString;
3701
- readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
3702
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3703
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3704
- readonly label: import("effect/Schema").NonEmptyString;
3705
- }>>;
3706
- }>>>;
3707
- readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3708
- readonly url: 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 socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3715
- readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
3716
- readonly url: import("effect/Schema").NonEmptyString;
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 addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
3723
- readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
3724
- readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
3725
- readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
3726
- readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
3727
- readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
3728
- readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
3729
- readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
3730
- readonly label: import("effect/Schema").NonEmptyString;
3731
- }>>;
3732
- readonly formatted: import("effect/Schema").String;
3733
- }>>>;
3734
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
3735
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
3736
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3737
- readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
3738
- readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
3739
- readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
3740
- readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
3741
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3742
- readonly projectKey: import("effect/Schema").String;
3743
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3744
- readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
3745
- readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3746
- readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
3747
- readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
3748
- readonly authOptions: import("effect/Schema").Struct<{
3749
- readonly emailPassword: import("effect/Schema").Boolean;
3750
- readonly emailOtp: import("effect/Schema").Boolean;
3751
- readonly google: import("effect/Schema").Boolean;
3752
- }>;
3753
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3754
- readonly newPassword: import("effect/Schema").NonEmptyString;
3755
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3756
- readonly ok: import("effect/Schema").Boolean;
3757
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3758
- keyId: import("effect/Schema").NonEmptyString;
3759
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3760
- readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
3761
- readonly name: import("effect/Schema").NonEmptyString;
3762
- readonly enabled: import("effect/Schema").Boolean;
3763
- readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3764
- readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
3765
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3766
- readonly ok: import("effect/Schema").Boolean;
3767
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
3768
- readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
3769
- }>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3770
- readonly url: import("effect/Schema").String;
3771
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3772
- readonly key: import("effect/Schema").NonEmptyString;
3773
- 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">]>>;
3774
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3775
- readonly valid: import("effect/Schema").Boolean;
3776
- readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3777
- readonly message: import("effect/Schema").String;
3778
- readonly code: import("effect/Schema").String;
3779
- }>>;
3780
- readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
3781
- readonly id: import("effect/Schema").String;
3782
- readonly configId: import("effect/Schema").String;
3783
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
3784
- readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
3785
- readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
3786
- readonly referenceId: import("effect/Schema").String;
3787
- readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
3788
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
3789
- readonly createdAt: import("effect/Schema").Date;
3790
- readonly updatedAt: import("effect/Schema").Date;
3791
- readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
3792
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
3793
- }>>;
3794
- }>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3795
- readonly password: import("effect/Schema").NonEmptyString;
3796
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3797
- readonly ok: import("effect/Schema").Boolean;
3798
- }>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false>>;
3812
+ }>>, 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>>;