@krak-stack/auth 0.3.2 → 0.4.0
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/CHANGELOG.md +20 -0
- package/README.md +37 -0
- package/dist/admin/api.group.d.ts +4 -4
- package/dist/admin/schema.d.ts +6 -6
- package/dist/api.d.ts +1577 -1331
- package/dist/auth/api.group.d.ts +124 -1
- package/dist/auth/api.group.js +36 -1
- package/dist/auth/schema.d.ts +38 -0
- package/dist/auth/schema.js +38 -0
- package/dist/components/account-deletion.js +2 -1
- package/dist/components/admin-organization-form.js +3 -2
- package/dist/components/admin-organizations.js +3 -3
- package/dist/components/admin-users.js +3 -3
- package/dist/components/appearance.d.ts +89 -0
- package/dist/components/appearance.js +59 -0
- package/dist/components/auth-client-api.d.ts +134 -4
- package/dist/components/auth-forms.d.ts +5 -1
- package/dist/components/auth-forms.js +60 -7
- package/dist/components/contact-fields.js +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/organization-sso-atom.d.ts +71 -0
- package/dist/components/organization-sso-atom.js +40 -0
- package/dist/components/organization-sso-messages.d.ts +76 -0
- package/dist/components/organization-sso-messages.js +77 -0
- package/dist/components/organization-sso-settings.d.ts +6 -0
- package/dist/components/organization-sso-settings.js +96 -0
- package/dist/components/organization-switcher.d.ts +8 -3
- package/dist/components/organization-switcher.js +25 -13
- package/dist/components/scrollable-dialog.d.ts +3 -2
- package/dist/components/scrollable-dialog.js +11 -4
- package/dist/components/user-button.d.ts +8 -2
- package/dist/components/user-button.js +8 -7
- package/dist/service.d.ts +260 -0
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -1,58 +1,10 @@
|
|
|
1
1
|
import { HttpApi } from "effect/http-api";
|
|
2
|
-
export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
readonly
|
|
8
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
9
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
10
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
11
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
12
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
13
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
14
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
15
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
16
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
17
|
-
}>>;
|
|
18
|
-
}>>>;
|
|
19
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
20
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
21
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
22
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
23
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
24
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
25
|
-
}>>;
|
|
26
|
-
}>>>;
|
|
27
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
28
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
29
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
30
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
31
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
32
|
-
}>>;
|
|
33
|
-
}>>>;
|
|
34
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
35
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
36
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
37
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
38
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
39
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
40
|
-
}>>;
|
|
41
|
-
}>>>;
|
|
42
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
43
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
44
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
45
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
46
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
47
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
48
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
49
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
50
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
51
|
-
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
52
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByEmails", "GET", "/api/users/by-email", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
53
|
-
readonly emails: import("effect/Schema").NonEmptyString;
|
|
54
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
55
|
-
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2
|
+
export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3
|
+
readonly userId: import("effect/Schema").String;
|
|
4
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5
|
+
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
6
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
7
|
+
readonly user: import("effect/Schema").Struct<{
|
|
56
8
|
readonly id: import("effect/Schema").String;
|
|
57
9
|
readonly name: import("effect/Schema").String;
|
|
58
10
|
readonly email: import("effect/Schema").String;
|
|
@@ -93,15 +45,30 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
93
45
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
94
46
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
95
47
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
48
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
49
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
50
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
96
51
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
97
|
-
readonly createdAt: import("effect/Schema").
|
|
98
|
-
readonly updatedAt: import("effect/Schema").
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
52
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
53
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
54
|
+
}>;
|
|
55
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
56
|
+
readonly userId: import("effect/Schema").String;
|
|
57
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
58
|
+
readonly session: import("effect/Schema").Struct<{
|
|
59
|
+
readonly id: import("effect/Schema").String;
|
|
60
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
61
|
+
readonly token: import("effect/Schema").String;
|
|
62
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
63
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
64
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
65
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
66
|
+
readonly userId: import("effect/Schema").String;
|
|
67
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
68
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
69
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly user: import("effect/Schema").Struct<{
|
|
105
72
|
readonly id: import("effect/Schema").String;
|
|
106
73
|
readonly name: import("effect/Schema").String;
|
|
107
74
|
readonly email: import("effect/Schema").String;
|
|
@@ -142,100 +109,27 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
142
109
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
143
110
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
144
111
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
112
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
113
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
114
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
145
115
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
146
|
-
readonly createdAt: import("effect/Schema").
|
|
147
|
-
readonly updatedAt: import("effect/Schema").
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
164
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
165
|
-
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
166
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
167
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
168
|
-
readonly active: import("effect/Schema").Boolean;
|
|
169
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
170
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
171
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
172
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
173
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
174
|
-
readonly id: import("effect/Schema").String;
|
|
175
|
-
readonly hostname: import("effect/Schema").String;
|
|
176
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
177
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
178
|
-
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
179
|
-
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
180
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
181
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
182
|
-
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
183
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
184
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
185
|
-
readonly active: import("effect/Schema").Boolean;
|
|
186
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
187
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
188
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
189
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
190
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
191
|
-
readonly id: import("effect/Schema").String;
|
|
192
|
-
readonly hostname: import("effect/Schema").String;
|
|
193
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
194
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
195
|
-
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
196
|
-
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
197
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
198
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
199
|
-
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
200
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
201
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
202
|
-
readonly active: import("effect/Schema").Boolean;
|
|
203
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
204
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
205
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
206
|
-
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
207
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
208
|
-
readonly id: import("effect/Schema").String;
|
|
209
|
-
readonly hostname: import("effect/Schema").String;
|
|
210
|
-
readonly rootHostname: import("effect/Schema").String;
|
|
211
|
-
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
212
|
-
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
213
|
-
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
214
|
-
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
215
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
216
|
-
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
217
|
-
readonly hostnameId: import("effect/Schema").String;
|
|
218
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
219
|
-
readonly active: import("effect/Schema").Boolean;
|
|
220
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
221
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
222
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
223
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
224
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
225
|
-
readonly required: import("effect/Schema").Boolean;
|
|
226
|
-
readonly status: import("effect/Schema").String;
|
|
227
|
-
readonly type: import("effect/Schema").String;
|
|
228
|
-
readonly name: import("effect/Schema").String;
|
|
229
|
-
readonly value: import("effect/Schema").String;
|
|
230
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
231
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
232
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
233
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
234
|
-
readonly id: import("effect/Schema").String;
|
|
235
|
-
readonly organizationId: import("effect/Schema").String;
|
|
236
|
-
readonly userId: import("effect/Schema").String;
|
|
237
|
-
readonly role: import("effect/Schema").String;
|
|
238
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
116
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
117
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
118
|
+
}>;
|
|
119
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
120
|
+
readonly session: import("effect/Schema").Struct<{
|
|
121
|
+
readonly id: import("effect/Schema").String;
|
|
122
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
123
|
+
readonly token: import("effect/Schema").String;
|
|
124
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
125
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
126
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
127
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
128
|
+
readonly userId: import("effect/Schema").String;
|
|
129
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
130
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
131
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
132
|
+
}>;
|
|
239
133
|
readonly user: import("effect/Schema").Struct<{
|
|
240
134
|
readonly id: import("effect/Schema").String;
|
|
241
135
|
readonly name: import("effect/Schema").String;
|
|
@@ -277,138 +171,16 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
277
171
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
278
172
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
279
173
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
174
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
175
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
176
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
280
177
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
281
|
-
readonly createdAt: import("effect/Schema").
|
|
282
|
-
readonly updatedAt: import("effect/Schema").
|
|
178
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
179
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
283
180
|
}>;
|
|
284
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("
|
|
285
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
286
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
287
|
-
readonly id: import("effect/Schema").String;
|
|
288
|
-
readonly name: import("effect/Schema").String;
|
|
289
|
-
readonly slug: import("effect/Schema").String;
|
|
290
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
291
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
292
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
293
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
294
|
-
readonly name: import("effect/Schema").String;
|
|
295
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
296
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
297
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
298
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
299
|
-
}>>;
|
|
300
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
301
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
302
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
303
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
304
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
305
|
-
}>>;
|
|
306
|
-
}>>>;
|
|
307
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
308
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
309
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
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 websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
316
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
317
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
318
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
319
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
320
|
-
}>>;
|
|
321
|
-
}>>>;
|
|
322
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
323
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
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 addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
331
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
332
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
333
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
334
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
335
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
336
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
337
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
338
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
339
|
-
}>>;
|
|
340
|
-
}>>>;
|
|
341
|
-
}>, import("effect/Schema").Unknown, never, never>>;
|
|
342
|
-
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
343
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
344
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
345
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
346
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
347
|
-
readonly id: import("effect/Schema").String;
|
|
348
|
-
readonly name: import("effect/Schema").String;
|
|
349
|
-
readonly slug: import("effect/Schema").String;
|
|
350
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
351
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
352
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
353
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
354
|
-
readonly name: import("effect/Schema").String;
|
|
355
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
356
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
357
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
358
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
359
|
-
}>>;
|
|
360
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
361
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
362
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
363
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
364
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
365
|
-
}>>;
|
|
366
|
-
}>>>;
|
|
367
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
368
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
369
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
370
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
371
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
372
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
373
|
-
}>>;
|
|
374
|
-
}>>>;
|
|
375
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
376
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
377
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
378
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
379
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
380
|
-
}>>;
|
|
381
|
-
}>>>;
|
|
382
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
383
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
384
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
385
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
386
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
387
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
388
|
-
}>>;
|
|
389
|
-
}>>>;
|
|
390
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
391
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
392
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
393
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
394
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
395
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
396
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
397
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
398
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
399
|
-
}>>;
|
|
400
|
-
}>>>;
|
|
401
|
-
}>, import("effect/Schema").Unknown, never, never>>;
|
|
402
|
-
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
403
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
404
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
405
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
406
|
-
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
407
|
-
readonly id: import("effect/Schema").String;
|
|
408
|
-
readonly organizationId: import("effect/Schema").String;
|
|
181
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
409
182
|
readonly userId: import("effect/Schema").String;
|
|
410
|
-
|
|
411
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
183
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
412
184
|
readonly user: import("effect/Schema").Struct<{
|
|
413
185
|
readonly id: import("effect/Schema").String;
|
|
414
186
|
readonly name: import("effect/Schema").String;
|
|
@@ -450,28 +222,68 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
450
222
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
451
223
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
452
224
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
225
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
226
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
227
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
453
228
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
454
|
-
readonly createdAt: import("effect/Schema").
|
|
455
|
-
readonly updatedAt: import("effect/Schema").
|
|
229
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
230
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
456
231
|
}>;
|
|
457
|
-
}
|
|
458
|
-
readonly
|
|
459
|
-
readonly
|
|
232
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
233
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
234
|
+
readonly keyId: import("effect/Schema").String;
|
|
235
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
236
|
+
readonly success: import("effect/Schema").Boolean;
|
|
237
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
238
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
239
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
240
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
241
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
242
|
+
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
243
|
+
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
460
244
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
461
|
-
readonly
|
|
245
|
+
readonly apiKeys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
246
|
+
readonly id: import("effect/Schema").String;
|
|
247
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
248
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
249
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
250
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
251
|
+
readonly referenceId: import("effect/Schema").String;
|
|
252
|
+
readonly configId: import("effect/Schema").String;
|
|
253
|
+
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
254
|
+
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
255
|
+
readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
256
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
257
|
+
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
258
|
+
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
259
|
+
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
260
|
+
readonly requestCount: import("effect/Schema").Finite;
|
|
261
|
+
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
262
|
+
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
263
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
264
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
265
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
266
|
+
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>>>;
|
|
267
|
+
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>>>>;
|
|
268
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
269
|
+
}>>;
|
|
270
|
+
readonly total: import("effect/Schema").Finite;
|
|
271
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
272
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Finite>>;
|
|
273
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
274
|
+
readonly newPassword: import("effect/Schema").String;
|
|
275
|
+
readonly currentPassword: import("effect/Schema").String;
|
|
276
|
+
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
277
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
278
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
279
|
+
readonly user: import("effect/Schema").Struct<{
|
|
462
280
|
readonly id: import("effect/Schema").String;
|
|
463
281
|
readonly name: import("effect/Schema").String;
|
|
464
|
-
readonly
|
|
465
|
-
readonly
|
|
466
|
-
readonly
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
readonly name: import("effect/Schema").String;
|
|
470
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
471
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
472
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
473
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
474
|
-
}>>;
|
|
282
|
+
readonly email: import("effect/Schema").String;
|
|
283
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
284
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
285
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
286
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
475
287
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
476
288
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
477
289
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -502,242 +314,67 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
502
314
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
503
315
|
}>>;
|
|
504
316
|
}>>>;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
readonly
|
|
521
|
-
|
|
522
|
-
readonly
|
|
523
|
-
|
|
524
|
-
readonly
|
|
525
|
-
readonly
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
readonly
|
|
530
|
-
|
|
531
|
-
readonly
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
readonly
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
readonly
|
|
542
|
-
}>>,
|
|
543
|
-
readonly
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
readonly
|
|
553
|
-
readonly
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
readonly
|
|
560
|
-
readonly
|
|
561
|
-
readonly
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
567
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
568
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
569
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
570
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
571
|
-
}>>;
|
|
572
|
-
}>>>;
|
|
573
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
574
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
575
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
576
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
577
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
578
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
579
|
-
}>>;
|
|
580
|
-
}>>>;
|
|
581
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
582
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
583
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
584
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
585
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
586
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
587
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
588
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
589
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
590
|
-
}>>;
|
|
591
|
-
readonly formatted: import("effect/Schema").String;
|
|
592
|
-
}>>>;
|
|
593
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
594
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
595
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
596
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
597
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
598
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
599
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
600
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
601
|
-
readonly projectKey: import("effect/Schema").String;
|
|
602
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
603
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
604
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
605
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
606
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
607
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
608
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
609
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
610
|
-
readonly google: import("effect/Schema").Boolean;
|
|
611
|
-
}>;
|
|
612
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
613
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
614
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
615
|
-
readonly id: import("effect/Schema").String;
|
|
616
|
-
readonly name: import("effect/Schema").String;
|
|
617
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
618
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
619
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
620
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
621
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
622
|
-
keyId: import("effect/Schema").NonEmptyString;
|
|
623
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
624
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
625
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
626
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
627
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
628
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
629
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
630
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
631
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
632
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
|
|
633
|
-
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
634
|
-
readonly url: import("effect/Schema").String;
|
|
635
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
636
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
637
|
-
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">]>>;
|
|
638
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
639
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
640
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
641
|
-
readonly message: import("effect/Schema").String;
|
|
642
|
-
readonly code: import("effect/Schema").String;
|
|
643
|
-
}>>;
|
|
644
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
645
|
-
readonly id: import("effect/Schema").String;
|
|
646
|
-
readonly configId: import("effect/Schema").String;
|
|
647
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
648
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
649
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
650
|
-
readonly referenceId: import("effect/Schema").String;
|
|
651
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
652
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
653
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
654
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
655
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
656
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
657
|
-
}>>;
|
|
658
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
659
|
-
readonly password: import("effect/Schema").NonEmptyString;
|
|
660
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
661
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
662
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
663
|
-
readonly userId: import("effect/Schema").String;
|
|
664
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
665
|
-
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
666
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
667
|
-
readonly user: import("effect/Schema").Struct<{
|
|
668
|
-
readonly id: import("effect/Schema").String;
|
|
669
|
-
readonly name: import("effect/Schema").String;
|
|
670
|
-
readonly email: import("effect/Schema").String;
|
|
671
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
672
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
673
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
674
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
675
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
676
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
677
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
678
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
679
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
680
|
-
}>>;
|
|
681
|
-
}>>>;
|
|
682
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
683
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
684
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
685
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
686
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
687
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
688
|
-
}>>;
|
|
689
|
-
}>>>;
|
|
690
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
691
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
692
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
693
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
694
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
695
|
-
}>>;
|
|
696
|
-
}>>>;
|
|
697
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
698
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
699
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
700
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
701
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
702
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
703
|
-
}>>;
|
|
704
|
-
}>>>;
|
|
705
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
706
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
707
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
708
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
709
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
710
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
711
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
712
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
713
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
714
|
-
}>;
|
|
715
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
716
|
-
readonly userId: import("effect/Schema").String;
|
|
717
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
718
|
-
readonly session: import("effect/Schema").Struct<{
|
|
719
|
-
readonly id: import("effect/Schema").String;
|
|
720
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
721
|
-
readonly token: import("effect/Schema").String;
|
|
722
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
723
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
724
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
725
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
726
|
-
readonly userId: import("effect/Schema").String;
|
|
727
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
728
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
729
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
730
|
-
}>;
|
|
731
|
-
readonly user: import("effect/Schema").Struct<{
|
|
732
|
-
readonly id: import("effect/Schema").String;
|
|
733
|
-
readonly name: import("effect/Schema").String;
|
|
734
|
-
readonly email: import("effect/Schema").String;
|
|
735
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
736
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
737
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
738
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
739
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
740
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
317
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
318
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
319
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
320
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
321
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
322
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
323
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
324
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
325
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
326
|
+
}>;
|
|
327
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganizationSso", "POST", "/api/auth/organization/sso/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
328
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
329
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
330
|
+
readonly success: import("effect/Schema").Boolean;
|
|
331
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
332
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
333
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
334
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
335
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
336
|
+
readonly success: import("effect/Schema").Boolean;
|
|
337
|
+
readonly message: import("effect/Schema").String;
|
|
338
|
+
}>>, 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").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationSso", "GET", "/api/auth/organization/sso", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
339
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
340
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
341
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
342
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
343
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
344
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
345
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
346
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
347
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
348
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
349
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
350
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
351
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
352
|
+
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
353
|
+
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
354
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
355
|
+
readonly session: import("effect/Schema").Struct<{
|
|
356
|
+
readonly id: import("effect/Schema").String;
|
|
357
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
358
|
+
readonly token: import("effect/Schema").String;
|
|
359
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
360
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
361
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
362
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
363
|
+
readonly userId: import("effect/Schema").String;
|
|
364
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
365
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
366
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
367
|
+
}>;
|
|
368
|
+
readonly user: import("effect/Schema").Struct<{
|
|
369
|
+
readonly id: import("effect/Schema").String;
|
|
370
|
+
readonly name: import("effect/Schema").String;
|
|
371
|
+
readonly email: import("effect/Schema").String;
|
|
372
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
373
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
374
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
375
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
376
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
377
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
741
378
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
742
379
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
743
380
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
@@ -776,21 +413,31 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
776
413
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
777
414
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
778
415
|
}>;
|
|
779
|
-
}
|
|
780
|
-
readonly
|
|
781
|
-
|
|
782
|
-
|
|
416
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSsoConfig", "GET", "/api/auth/sso/config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
417
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
418
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
419
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
420
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
421
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
422
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
423
|
+
readonly provider: import("effect/Schema").String;
|
|
424
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
783
425
|
readonly token: import("effect/Schema").String;
|
|
784
|
-
readonly
|
|
785
|
-
readonly
|
|
786
|
-
readonly
|
|
787
|
-
readonly
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
readonly
|
|
426
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
427
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
428
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
429
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
430
|
+
}>>;
|
|
431
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
432
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
433
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
434
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
435
|
+
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>>>;
|
|
436
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
437
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
438
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
439
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
440
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
794
441
|
readonly id: import("effect/Schema").String;
|
|
795
442
|
readonly name: import("effect/Schema").String;
|
|
796
443
|
readonly email: import("effect/Schema").String;
|
|
@@ -837,105 +484,200 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
837
484
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
838
485
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
839
486
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
840
|
-
}
|
|
841
|
-
|
|
487
|
+
}>>;
|
|
488
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
489
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
490
|
+
readonly id: import("effect/Schema").String;
|
|
491
|
+
readonly providerId: import("effect/Schema").String;
|
|
492
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
493
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
494
|
+
readonly accountId: import("effect/Schema").String;
|
|
842
495
|
readonly userId: import("effect/Schema").String;
|
|
496
|
+
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
497
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
498
|
+
readonly accept: import("effect/Schema").Boolean;
|
|
499
|
+
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
500
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
843
501
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
844
|
-
readonly
|
|
502
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
503
|
+
readonly url: import("effect/Schema").String;
|
|
504
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
505
|
+
readonly client_id: import("effect/Schema").String;
|
|
506
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
507
|
+
readonly client_id: import("effect/Schema").String;
|
|
508
|
+
readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
509
|
+
readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
510
|
+
readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
511
|
+
readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
512
|
+
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
513
|
+
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
514
|
+
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
515
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
516
|
+
readonly invitationId: import("effect/Schema").String;
|
|
517
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
518
|
+
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
845
519
|
readonly id: import("effect/Schema").String;
|
|
846
|
-
readonly name: import("effect/Schema").String;
|
|
847
520
|
readonly email: import("effect/Schema").String;
|
|
848
|
-
readonly
|
|
849
|
-
readonly
|
|
850
|
-
readonly
|
|
851
|
-
readonly
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
863
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
864
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
865
|
-
}>>;
|
|
866
|
-
}>>>;
|
|
867
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
868
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
869
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
870
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
871
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
872
|
-
}>>;
|
|
873
|
-
}>>>;
|
|
874
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
875
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
876
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
877
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
878
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
879
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
880
|
-
}>>;
|
|
881
|
-
}>>>;
|
|
882
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
883
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
884
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
885
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
886
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
887
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
888
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
521
|
+
readonly role: import("effect/Schema").String;
|
|
522
|
+
readonly organizationId: import("effect/Schema").String;
|
|
523
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
524
|
+
readonly inviterId: import("effect/Schema").String;
|
|
525
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
526
|
+
readonly status: import("effect/Schema").String;
|
|
527
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
528
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
529
|
+
}>>;
|
|
530
|
+
readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
531
|
+
readonly id: import("effect/Schema").String;
|
|
532
|
+
readonly organizationId: import("effect/Schema").String;
|
|
533
|
+
readonly userId: import("effect/Schema").String;
|
|
534
|
+
readonly role: import("effect/Schema").String;
|
|
889
535
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
894
|
-
readonly keyId: import("effect/Schema").String;
|
|
536
|
+
}>>;
|
|
537
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
538
|
+
readonly invitationId: import("effect/Schema").String;
|
|
895
539
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
896
|
-
readonly
|
|
897
|
-
|
|
898
|
-
readonly
|
|
540
|
+
readonly id: import("effect/Schema").String;
|
|
541
|
+
readonly email: import("effect/Schema").String;
|
|
542
|
+
readonly role: import("effect/Schema").String;
|
|
543
|
+
readonly organizationId: import("effect/Schema").String;
|
|
544
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
545
|
+
readonly inviterId: import("effect/Schema").String;
|
|
546
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
547
|
+
readonly status: import("effect/Schema").String;
|
|
548
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
549
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
550
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
551
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
552
|
+
readonly slug: import("effect/Schema").NonEmptyString;
|
|
553
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
554
|
+
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>>>;
|
|
555
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
556
|
+
readonly keepCurrentActiveOrganization: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
557
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
558
|
+
readonly id: import("effect/Schema").String;
|
|
559
|
+
readonly name: import("effect/Schema").String;
|
|
560
|
+
readonly slug: import("effect/Schema").String;
|
|
561
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
562
|
+
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]>>>;
|
|
563
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
564
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
565
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
566
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationDelete", "POST", "/api/auth/organization/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
567
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
568
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
569
|
+
readonly id: import("effect/Schema").String;
|
|
570
|
+
readonly name: import("effect/Schema").String;
|
|
571
|
+
readonly slug: import("effect/Schema").String;
|
|
572
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
573
|
+
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]>>>;
|
|
574
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
575
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
576
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
577
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
899
578
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
900
|
-
readonly
|
|
901
|
-
readonly
|
|
902
|
-
|
|
903
|
-
readonly
|
|
904
|
-
|
|
905
|
-
readonly
|
|
579
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
580
|
+
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
581
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
582
|
+
readonly id: import("effect/Schema").String;
|
|
583
|
+
readonly name: import("effect/Schema").String;
|
|
584
|
+
readonly slug: import("effect/Schema").String;
|
|
585
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
586
|
+
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]>>>;
|
|
587
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
588
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
589
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
590
|
+
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
906
591
|
readonly id: import("effect/Schema").String;
|
|
907
|
-
readonly
|
|
908
|
-
readonly
|
|
909
|
-
readonly
|
|
910
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
911
|
-
readonly referenceId: import("effect/Schema").String;
|
|
912
|
-
readonly configId: import("effect/Schema").String;
|
|
913
|
-
readonly refillInterval: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
914
|
-
readonly refillAmount: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
915
|
-
readonly lastRefillAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
916
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
917
|
-
readonly rateLimitEnabled: import("effect/Schema").Boolean;
|
|
918
|
-
readonly rateLimitTimeWindow: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
919
|
-
readonly rateLimitMax: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
920
|
-
readonly requestCount: import("effect/Schema").Finite;
|
|
921
|
-
readonly remaining: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
922
|
-
readonly lastRequest: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
923
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateFromString>;
|
|
592
|
+
readonly organizationId: import("effect/Schema").String;
|
|
593
|
+
readonly userId: import("effect/Schema").String;
|
|
594
|
+
readonly role: import("effect/Schema").String;
|
|
924
595
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
925
|
-
readonly
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
596
|
+
readonly user: import("effect/Schema").Struct<{
|
|
597
|
+
readonly id: import("effect/Schema").String;
|
|
598
|
+
readonly name: import("effect/Schema").String;
|
|
599
|
+
readonly email: import("effect/Schema").String;
|
|
600
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
601
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
602
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
603
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
604
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
605
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
606
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
607
|
+
}>>;
|
|
608
|
+
}>>>;
|
|
609
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
610
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
611
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
612
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
613
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
614
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
615
|
+
}>>;
|
|
616
|
+
}>>>;
|
|
617
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
618
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
619
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
620
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
621
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
622
|
+
}>>;
|
|
623
|
+
}>>>;
|
|
624
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
625
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
626
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
627
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
628
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
629
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
630
|
+
}>>;
|
|
631
|
+
}>>>;
|
|
632
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
633
|
+
}>;
|
|
929
634
|
}>>;
|
|
930
|
-
readonly
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
635
|
+
readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
636
|
+
readonly id: import("effect/Schema").String;
|
|
637
|
+
readonly email: import("effect/Schema").String;
|
|
638
|
+
readonly role: import("effect/Schema").String;
|
|
639
|
+
readonly organizationId: import("effect/Schema").String;
|
|
640
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
641
|
+
readonly inviterId: import("effect/Schema").String;
|
|
642
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
643
|
+
readonly status: import("effect/Schema").String;
|
|
644
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
645
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
646
|
+
}>>;
|
|
647
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
648
|
+
readonly id: import("effect/Schema").String;
|
|
649
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
650
|
+
readonly id: import("effect/Schema").String;
|
|
651
|
+
readonly email: import("effect/Schema").String;
|
|
652
|
+
readonly role: import("effect/Schema").String;
|
|
653
|
+
readonly organizationId: import("effect/Schema").String;
|
|
654
|
+
readonly inviterId: import("effect/Schema").String;
|
|
655
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
656
|
+
readonly status: import("effect/Schema").String;
|
|
657
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
658
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
659
|
+
readonly organizationName: import("effect/Schema").String;
|
|
660
|
+
readonly organizationSlug: import("effect/Schema").String;
|
|
661
|
+
readonly inviterEmail: import("effect/Schema").String;
|
|
662
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
663
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
664
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
665
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
666
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
937
667
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
938
|
-
readonly
|
|
668
|
+
readonly session: import("effect/Schema").Struct<{
|
|
669
|
+
readonly id: import("effect/Schema").String;
|
|
670
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
671
|
+
readonly token: import("effect/Schema").String;
|
|
672
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
673
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
674
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
675
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
676
|
+
readonly userId: import("effect/Schema").String;
|
|
677
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
678
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
679
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
680
|
+
}>;
|
|
939
681
|
readonly user: import("effect/Schema").Struct<{
|
|
940
682
|
readonly id: import("effect/Schema").String;
|
|
941
683
|
readonly name: import("effect/Schema").String;
|
|
@@ -984,30 +726,251 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
984
726
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
985
727
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
986
728
|
}>;
|
|
987
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
988
|
-
readonly
|
|
989
|
-
readonly
|
|
990
|
-
readonly
|
|
729
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
730
|
+
readonly email: import("effect/Schema").String;
|
|
731
|
+
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
732
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
733
|
+
readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
734
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
|
|
991
735
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
992
|
-
readonly
|
|
993
|
-
readonly
|
|
994
|
-
|
|
995
|
-
readonly
|
|
996
|
-
readonly
|
|
997
|
-
|
|
998
|
-
readonly
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
736
|
+
readonly id: import("effect/Schema").String;
|
|
737
|
+
readonly email: import("effect/Schema").String;
|
|
738
|
+
readonly role: import("effect/Schema").String;
|
|
739
|
+
readonly organizationId: import("effect/Schema").String;
|
|
740
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
741
|
+
readonly inviterId: import("effect/Schema").String;
|
|
742
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
743
|
+
readonly status: import("effect/Schema").String;
|
|
744
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
745
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
746
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
747
|
+
readonly organizationId: import("effect/Schema").String;
|
|
748
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
749
|
+
readonly id: import("effect/Schema").String;
|
|
750
|
+
readonly organizationId: import("effect/Schema").String;
|
|
751
|
+
readonly userId: import("effect/Schema").String;
|
|
752
|
+
readonly role: import("effect/Schema").String;
|
|
753
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
754
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
755
|
+
readonly id: import("effect/Schema").String;
|
|
756
|
+
readonly name: import("effect/Schema").String;
|
|
757
|
+
readonly slug: import("effect/Schema").String;
|
|
758
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
759
|
+
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]>>>;
|
|
760
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
761
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
762
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
763
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
764
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
765
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
766
|
+
readonly id: import("effect/Schema").String;
|
|
767
|
+
readonly email: import("effect/Schema").String;
|
|
768
|
+
readonly role: import("effect/Schema").String;
|
|
769
|
+
readonly organizationId: import("effect/Schema").String;
|
|
770
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
771
|
+
readonly inviterId: import("effect/Schema").String;
|
|
772
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
773
|
+
readonly status: import("effect/Schema").String;
|
|
774
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
775
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
776
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
777
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
778
|
+
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
779
|
+
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
780
|
+
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
781
|
+
readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
782
|
+
readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
783
|
+
readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
784
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
785
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
786
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
787
|
+
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
788
|
+
readonly id: import("effect/Schema").String;
|
|
789
|
+
readonly organizationId: import("effect/Schema").String;
|
|
790
|
+
readonly userId: import("effect/Schema").String;
|
|
791
|
+
readonly role: import("effect/Schema").String;
|
|
792
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
793
|
+
readonly user: import("effect/Schema").Struct<{
|
|
794
|
+
readonly id: import("effect/Schema").String;
|
|
795
|
+
readonly name: import("effect/Schema").String;
|
|
796
|
+
readonly email: import("effect/Schema").String;
|
|
797
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
798
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
799
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
800
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
801
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
802
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
803
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
804
|
+
}>>;
|
|
805
|
+
}>>>;
|
|
806
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
807
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
808
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
809
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
810
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
811
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
812
|
+
}>>;
|
|
813
|
+
}>>>;
|
|
814
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
815
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
816
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
817
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
818
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
819
|
+
}>>;
|
|
820
|
+
}>>>;
|
|
821
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
822
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
823
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
824
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
825
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
826
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
827
|
+
}>>;
|
|
828
|
+
}>>>;
|
|
829
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
830
|
+
}>;
|
|
831
|
+
}>>;
|
|
832
|
+
readonly total: import("effect/Schema").Finite;
|
|
833
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
834
|
+
readonly id: import("effect/Schema").String;
|
|
835
|
+
readonly email: import("effect/Schema").String;
|
|
836
|
+
readonly role: import("effect/Schema").String;
|
|
837
|
+
readonly organizationId: import("effect/Schema").String;
|
|
838
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
839
|
+
readonly inviterId: import("effect/Schema").String;
|
|
840
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
841
|
+
readonly status: import("effect/Schema").String;
|
|
842
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
843
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
844
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
845
|
+
readonly invitationId: import("effect/Schema").String;
|
|
846
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
847
|
+
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
848
|
+
readonly id: import("effect/Schema").String;
|
|
849
|
+
readonly email: import("effect/Schema").String;
|
|
850
|
+
readonly role: import("effect/Schema").String;
|
|
851
|
+
readonly organizationId: import("effect/Schema").String;
|
|
852
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
853
|
+
readonly inviterId: import("effect/Schema").String;
|
|
854
|
+
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
855
|
+
readonly status: import("effect/Schema").String;
|
|
856
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
857
|
+
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
858
|
+
}>>;
|
|
859
|
+
readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
860
|
+
readonly id: import("effect/Schema").String;
|
|
861
|
+
readonly organizationId: import("effect/Schema").String;
|
|
862
|
+
readonly userId: import("effect/Schema").String;
|
|
863
|
+
readonly role: import("effect/Schema").String;
|
|
864
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
865
|
+
}>>;
|
|
866
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
867
|
+
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
868
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
869
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
870
|
+
readonly member: import("effect/Schema").Struct<{
|
|
871
|
+
readonly id: import("effect/Schema").String;
|
|
872
|
+
readonly organizationId: import("effect/Schema").String;
|
|
873
|
+
readonly userId: import("effect/Schema").String;
|
|
874
|
+
readonly role: import("effect/Schema").String;
|
|
875
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
876
|
+
}>;
|
|
877
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
878
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
879
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
880
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
881
|
+
readonly id: import("effect/Schema").String;
|
|
882
|
+
readonly name: import("effect/Schema").String;
|
|
883
|
+
readonly slug: import("effect/Schema").String;
|
|
884
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
885
|
+
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]>>>;
|
|
886
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
887
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
888
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
889
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
890
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
891
|
+
readonly data: import("effect/Schema").Struct<{
|
|
892
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
893
|
+
readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
894
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
895
|
+
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>>>;
|
|
896
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1010
897
|
}>;
|
|
898
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
899
|
+
readonly id: import("effect/Schema").String;
|
|
900
|
+
readonly name: import("effect/Schema").String;
|
|
901
|
+
readonly slug: import("effect/Schema").String;
|
|
902
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
903
|
+
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]>>>;
|
|
904
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
905
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
906
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
907
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
908
|
+
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
909
|
+
readonly memberId: import("effect/Schema").String;
|
|
910
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
911
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
912
|
+
readonly id: import("effect/Schema").String;
|
|
913
|
+
readonly organizationId: import("effect/Schema").String;
|
|
914
|
+
readonly userId: import("effect/Schema").String;
|
|
915
|
+
readonly role: import("effect/Schema").String;
|
|
916
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
917
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
918
|
+
readonly email: import("effect/Schema").String;
|
|
919
|
+
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
920
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
921
|
+
readonly status: import("effect/Schema").Boolean;
|
|
922
|
+
readonly message: import("effect/Schema").String;
|
|
923
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
924
|
+
readonly newPassword: import("effect/Schema").String;
|
|
925
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
926
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
927
|
+
readonly status: import("effect/Schema").Boolean;
|
|
928
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"saveOrganizationSso", "POST", "/api/auth/organization/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
929
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
930
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
931
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
932
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
933
|
+
readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
934
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
935
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
936
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
937
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
938
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
939
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
940
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
941
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
942
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
943
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
944
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
945
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
946
|
+
readonly email: import("effect/Schema").String;
|
|
947
|
+
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
948
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
949
|
+
readonly success: import("effect/Schema").Boolean;
|
|
950
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/api/auth/organization/sso/enabled", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
951
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
952
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
953
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
954
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
955
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
956
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
957
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
958
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
959
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
960
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
961
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
962
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
963
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
964
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
965
|
+
readonly email: import("effect/Schema").String;
|
|
966
|
+
readonly password: import("effect/Schema").String;
|
|
967
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
968
|
+
readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
969
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
970
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
971
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
972
|
+
readonly token: import("effect/Schema").String;
|
|
973
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1011
974
|
readonly user: import("effect/Schema").Struct<{
|
|
1012
975
|
readonly id: import("effect/Schema").String;
|
|
1013
976
|
readonly name: import("effect/Schema").String;
|
|
@@ -1056,26 +1019,18 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1056
1019
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1057
1020
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1058
1021
|
}>;
|
|
1059
|
-
}
|
|
1060
|
-
readonly
|
|
1061
|
-
readonly
|
|
1062
|
-
readonly
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}>>;
|
|
1069
|
-
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1070
|
-
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1071
|
-
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1072
|
-
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1073
|
-
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>>>;
|
|
1022
|
+
}>, import("effect/Schema").Struct<{
|
|
1023
|
+
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
1024
|
+
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1025
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1026
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1027
|
+
readonly email: import("effect/Schema").String;
|
|
1028
|
+
readonly otp: import("effect/Schema").String;
|
|
1029
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1030
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1074
1031
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1075
|
-
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1076
|
-
readonly redirect: import("effect/Schema").Boolean;
|
|
1077
1032
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1078
|
-
readonly user: import("effect/Schema").
|
|
1033
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1079
1034
|
readonly id: import("effect/Schema").String;
|
|
1080
1035
|
readonly name: import("effect/Schema").String;
|
|
1081
1036
|
readonly email: import("effect/Schema").String;
|
|
@@ -1122,201 +1077,94 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1122
1077
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1123
1078
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1124
1079
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
readonly
|
|
1129
|
-
readonly
|
|
1130
|
-
readonly
|
|
1131
|
-
readonly
|
|
1132
|
-
readonly
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1080
|
+
}>;
|
|
1081
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1082
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1083
|
+
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1084
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1085
|
+
readonly provider: import("effect/Schema").String;
|
|
1086
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1087
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1088
|
+
readonly token: import("effect/Schema").String;
|
|
1089
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1090
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1091
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1092
|
+
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
1093
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1094
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1095
|
+
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1096
|
+
readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1097
|
+
}>>;
|
|
1098
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1099
|
+
}>>;
|
|
1100
|
+
}>>;
|
|
1101
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1102
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1103
|
+
readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1104
|
+
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>>>;
|
|
1138
1105
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1139
1106
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1107
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1140
1108
|
readonly redirect: import("effect/Schema").Boolean;
|
|
1141
|
-
readonly
|
|
1142
|
-
|
|
1143
|
-
readonly client_id: import("effect/Schema").String;
|
|
1144
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1145
|
-
readonly client_id: import("effect/Schema").String;
|
|
1146
|
-
readonly client_name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1147
|
-
readonly client_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1148
|
-
readonly logo_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1149
|
-
readonly contacts: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1150
|
-
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1151
|
-
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1152
|
-
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1153
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1154
|
-
readonly invitationId: import("effect/Schema").String;
|
|
1155
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1156
|
-
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1109
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1110
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1157
1111
|
readonly id: import("effect/Schema").String;
|
|
1112
|
+
readonly name: import("effect/Schema").String;
|
|
1158
1113
|
readonly email: import("effect/Schema").String;
|
|
1159
|
-
readonly
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly
|
|
1162
|
-
readonly
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
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]>>>;
|
|
1201
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1202
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1203
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1204
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationDelete", "POST", "/api/auth/organization/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1205
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1206
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1207
|
-
readonly id: import("effect/Schema").String;
|
|
1208
|
-
readonly name: import("effect/Schema").String;
|
|
1209
|
-
readonly slug: import("effect/Schema").String;
|
|
1210
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1211
|
-
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]>>>;
|
|
1212
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1213
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1214
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1215
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1216
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1217
|
-
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1218
|
-
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
1219
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1220
|
-
readonly id: import("effect/Schema").String;
|
|
1221
|
-
readonly name: import("effect/Schema").String;
|
|
1222
|
-
readonly slug: import("effect/Schema").String;
|
|
1223
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1224
|
-
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]>>>;
|
|
1225
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1226
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1227
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1228
|
-
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1229
|
-
readonly id: import("effect/Schema").String;
|
|
1230
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1231
|
-
readonly userId: import("effect/Schema").String;
|
|
1232
|
-
readonly role: import("effect/Schema").String;
|
|
1114
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1115
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1116
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1117
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1118
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1119
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1120
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1121
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1122
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1123
|
+
}>>;
|
|
1124
|
+
}>>>;
|
|
1125
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1126
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1127
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1128
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1129
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1130
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1131
|
+
}>>;
|
|
1132
|
+
}>>>;
|
|
1133
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1134
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1135
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1136
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1137
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1138
|
+
}>>;
|
|
1139
|
+
}>>>;
|
|
1140
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1141
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1142
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1143
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1144
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1145
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1146
|
+
}>>;
|
|
1147
|
+
}>>>;
|
|
1148
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1149
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1150
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1151
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1152
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1153
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1154
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1233
1155
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1234
|
-
readonly
|
|
1235
|
-
readonly id: import("effect/Schema").String;
|
|
1236
|
-
readonly name: import("effect/Schema").String;
|
|
1237
|
-
readonly email: import("effect/Schema").String;
|
|
1238
|
-
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1239
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1240
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1241
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
1242
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1243
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1244
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1245
|
-
}>>;
|
|
1246
|
-
}>>>;
|
|
1247
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1248
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
1249
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1250
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1251
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1252
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1253
|
-
}>>;
|
|
1254
|
-
}>>>;
|
|
1255
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1256
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1257
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1258
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1259
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1260
|
-
}>>;
|
|
1261
|
-
}>>>;
|
|
1262
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1263
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1264
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1265
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1266
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1267
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1268
|
-
}>>;
|
|
1269
|
-
}>>>;
|
|
1270
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1271
|
-
}>;
|
|
1272
|
-
}>>;
|
|
1273
|
-
readonly invitations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1274
|
-
readonly id: import("effect/Schema").String;
|
|
1275
|
-
readonly email: import("effect/Schema").String;
|
|
1276
|
-
readonly role: import("effect/Schema").String;
|
|
1277
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1278
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1279
|
-
readonly inviterId: import("effect/Schema").String;
|
|
1280
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1281
|
-
readonly status: import("effect/Schema").String;
|
|
1282
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1283
|
-
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1156
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1284
1157
|
}>>;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
readonly
|
|
1289
|
-
readonly
|
|
1290
|
-
readonly role: import("effect/Schema").String;
|
|
1291
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1292
|
-
readonly inviterId: import("effect/Schema").String;
|
|
1293
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1294
|
-
readonly status: import("effect/Schema").String;
|
|
1295
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1296
|
-
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1297
|
-
readonly organizationName: import("effect/Schema").String;
|
|
1298
|
-
readonly organizationSlug: import("effect/Schema").String;
|
|
1299
|
-
readonly inviterEmail: import("effect/Schema").String;
|
|
1300
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1301
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1302
|
-
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
1303
|
-
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
1304
|
-
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
1158
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1159
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSso", "POST", "/api/auth/sign-in/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1160
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
1161
|
+
readonly callbackURL: import("effect/Schema").NonEmptyString;
|
|
1162
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1305
1163
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1306
|
-
readonly
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1311
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1312
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1313
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1314
|
-
readonly userId: import("effect/Schema").String;
|
|
1315
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1316
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1317
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1318
|
-
}>;
|
|
1319
|
-
readonly user: import("effect/Schema").Struct<{
|
|
1164
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1165
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
1166
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1167
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1320
1168
|
readonly id: import("effect/Schema").String;
|
|
1321
1169
|
readonly name: import("effect/Schema").String;
|
|
1322
1170
|
readonly email: import("effect/Schema").String;
|
|
@@ -1363,221 +1211,31 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1363
1211
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1364
1212
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1365
1213
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1366
|
-
}>;
|
|
1367
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1368
|
-
readonly email: import("effect/Schema").String;
|
|
1369
|
-
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1370
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1371
|
-
readonly resend: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1372
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>>;
|
|
1373
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1374
|
-
readonly id: import("effect/Schema").String;
|
|
1375
|
-
readonly email: import("effect/Schema").String;
|
|
1376
|
-
readonly role: import("effect/Schema").String;
|
|
1377
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1378
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1379
|
-
readonly inviterId: import("effect/Schema").String;
|
|
1380
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1381
|
-
readonly status: import("effect/Schema").String;
|
|
1382
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1383
|
-
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1384
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1385
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1386
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1387
|
-
readonly id: import("effect/Schema").String;
|
|
1388
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1389
|
-
readonly userId: import("effect/Schema").String;
|
|
1390
|
-
readonly role: import("effect/Schema").String;
|
|
1391
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1392
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1393
|
-
readonly id: import("effect/Schema").String;
|
|
1394
|
-
readonly name: import("effect/Schema").String;
|
|
1395
|
-
readonly slug: import("effect/Schema").String;
|
|
1396
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1397
|
-
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]>>>;
|
|
1398
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1399
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1400
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1401
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1402
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1403
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1404
|
-
readonly id: import("effect/Schema").String;
|
|
1405
|
-
readonly email: import("effect/Schema").String;
|
|
1406
|
-
readonly role: import("effect/Schema").String;
|
|
1407
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1408
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1409
|
-
readonly inviterId: import("effect/Schema").String;
|
|
1410
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1411
|
-
readonly status: import("effect/Schema").String;
|
|
1412
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1413
|
-
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1414
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1415
|
-
readonly limit: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
1416
|
-
readonly offset: import("effect/Schema").optional<import("effect/Schema").FiniteFromString>;
|
|
1417
|
-
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1418
|
-
readonly sortDirection: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["asc", "desc"]>>;
|
|
1419
|
-
readonly filterField: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1420
|
-
readonly filterValue: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1421
|
-
readonly filterOperator: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1422
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1423
|
-
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1424
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1425
|
-
readonly members: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1426
|
-
readonly id: import("effect/Schema").String;
|
|
1427
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1428
|
-
readonly userId: import("effect/Schema").String;
|
|
1429
|
-
readonly role: import("effect/Schema").String;
|
|
1430
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1431
|
-
readonly user: import("effect/Schema").Struct<{
|
|
1432
|
-
readonly id: import("effect/Schema").String;
|
|
1433
|
-
readonly name: import("effect/Schema").String;
|
|
1434
|
-
readonly email: import("effect/Schema").String;
|
|
1435
|
-
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1436
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1437
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1438
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
1439
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1440
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1441
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1442
|
-
}>>;
|
|
1443
|
-
}>>>;
|
|
1444
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1445
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
1446
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1447
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1448
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1449
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1450
|
-
}>>;
|
|
1451
|
-
}>>>;
|
|
1452
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1453
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1454
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1455
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1456
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1457
|
-
}>>;
|
|
1458
|
-
}>>>;
|
|
1459
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1460
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1461
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1462
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1463
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1464
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1465
|
-
}>>;
|
|
1466
|
-
}>>>;
|
|
1467
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1468
|
-
}>;
|
|
1469
|
-
}>>;
|
|
1470
|
-
readonly total: import("effect/Schema").Finite;
|
|
1471
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1472
|
-
readonly id: import("effect/Schema").String;
|
|
1473
|
-
readonly email: import("effect/Schema").String;
|
|
1474
|
-
readonly role: import("effect/Schema").String;
|
|
1475
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1476
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1477
|
-
readonly inviterId: import("effect/Schema").String;
|
|
1478
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1479
|
-
readonly status: import("effect/Schema").String;
|
|
1480
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1481
|
-
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1482
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1483
|
-
readonly invitationId: import("effect/Schema").String;
|
|
1484
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1485
|
-
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1486
|
-
readonly id: import("effect/Schema").String;
|
|
1487
|
-
readonly email: import("effect/Schema").String;
|
|
1488
|
-
readonly role: import("effect/Schema").String;
|
|
1489
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1490
|
-
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1491
|
-
readonly inviterId: import("effect/Schema").String;
|
|
1492
|
-
readonly teamId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1493
|
-
readonly status: import("effect/Schema").String;
|
|
1494
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1495
|
-
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1496
|
-
}>>;
|
|
1497
|
-
readonly member: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1498
|
-
readonly id: import("effect/Schema").String;
|
|
1499
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1500
|
-
readonly userId: import("effect/Schema").String;
|
|
1501
|
-
readonly role: import("effect/Schema").String;
|
|
1502
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1503
1214
|
}>>;
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
readonly
|
|
1507
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1508
|
-
readonly
|
|
1509
|
-
readonly id: import("effect/Schema").String;
|
|
1510
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1511
|
-
readonly userId: import("effect/Schema").String;
|
|
1512
|
-
readonly role: import("effect/Schema").String;
|
|
1513
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1514
|
-
}>;
|
|
1515
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1516
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1517
|
-
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1518
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1519
|
-
readonly id: import("effect/Schema").String;
|
|
1520
|
-
readonly name: import("effect/Schema").String;
|
|
1521
|
-
readonly slug: import("effect/Schema").String;
|
|
1522
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1523
|
-
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]>>>;
|
|
1524
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1525
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1526
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1527
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1528
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1529
|
-
readonly data: import("effect/Schema").Struct<{
|
|
1530
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1531
|
-
readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1532
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1533
|
-
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>>>;
|
|
1534
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1535
|
-
}>;
|
|
1536
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1537
|
-
readonly id: import("effect/Schema").String;
|
|
1538
|
-
readonly name: import("effect/Schema").String;
|
|
1539
|
-
readonly slug: import("effect/Schema").String;
|
|
1540
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1541
|
-
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]>>>;
|
|
1542
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1543
|
-
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1544
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1545
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1546
|
-
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1547
|
-
readonly memberId: import("effect/Schema").String;
|
|
1548
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1549
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1550
|
-
readonly id: import("effect/Schema").String;
|
|
1551
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1552
|
-
readonly userId: import("effect/Schema").String;
|
|
1553
|
-
readonly role: import("effect/Schema").String;
|
|
1554
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1555
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1556
|
-
readonly email: import("effect/Schema").String;
|
|
1557
|
-
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1215
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1216
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1217
|
+
readonly success: import("effect/Schema").Boolean;
|
|
1218
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1219
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1558
1220
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1559
1221
|
readonly status: import("effect/Schema").Boolean;
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
readonly
|
|
1563
|
-
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1222
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1223
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1224
|
+
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1564
1225
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1565
|
-
readonly
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
readonly
|
|
1226
|
+
readonly totpURI: import("effect/Schema").String;
|
|
1227
|
+
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1228
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1229
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1569
1230
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1570
|
-
readonly
|
|
1571
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1572
|
-
readonly
|
|
1573
|
-
readonly
|
|
1574
|
-
readonly
|
|
1575
|
-
readonly rememberMe: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1231
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1232
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1233
|
+
readonly code: import("effect/Schema").String;
|
|
1234
|
+
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1235
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1576
1236
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1577
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").
|
|
1578
|
-
readonly
|
|
1579
|
-
readonly token: import("effect/Schema").String;
|
|
1580
|
-
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1237
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1238
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1581
1239
|
readonly user: import("effect/Schema").Struct<{
|
|
1582
1240
|
readonly id: import("effect/Schema").String;
|
|
1583
1241
|
readonly name: import("effect/Schema").String;
|
|
@@ -1626,15 +1284,10 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1626
1284
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1627
1285
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1628
1286
|
}>;
|
|
1629
|
-
}>, import("effect/Schema").Struct<{
|
|
1630
|
-
readonly
|
|
1631
|
-
readonly
|
|
1632
|
-
readonly
|
|
1633
|
-
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1634
|
-
readonly email: import("effect/Schema").String;
|
|
1635
|
-
readonly otp: import("effect/Schema").String;
|
|
1636
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1637
|
-
readonly image: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1287
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1288
|
+
readonly code: import("effect/Schema").String;
|
|
1289
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1290
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1638
1291
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1639
1292
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1640
1293
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -1685,36 +1338,13 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1685
1338
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1686
1339
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1687
1340
|
}>;
|
|
1688
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1689
|
-
readonly
|
|
1690
|
-
readonly
|
|
1691
|
-
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1692
|
-
readonly provider: import("effect/Schema").String;
|
|
1693
|
-
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1694
|
-
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1695
|
-
readonly token: import("effect/Schema").String;
|
|
1696
|
-
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1697
|
-
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1698
|
-
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1699
|
-
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Finite>;
|
|
1700
|
-
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1701
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1702
|
-
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1703
|
-
readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1704
|
-
}>>;
|
|
1705
|
-
readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1706
|
-
}>>;
|
|
1707
|
-
}>>;
|
|
1708
|
-
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1709
|
-
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1710
|
-
readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1711
|
-
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>>>;
|
|
1341
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1342
|
+
readonly code: import("effect/Schema").String;
|
|
1343
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1712
1344
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1713
1345
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1714
|
-
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1715
|
-
readonly redirect: import("effect/Schema").Boolean;
|
|
1716
1346
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1717
|
-
readonly user: import("effect/Schema").
|
|
1347
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1718
1348
|
readonly id: import("effect/Schema").String;
|
|
1719
1349
|
readonly name: import("effect/Schema").String;
|
|
1720
1350
|
readonly email: import("effect/Schema").String;
|
|
@@ -1761,31 +1391,56 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1761
1391
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1762
1392
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1763
1393
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
readonly
|
|
1768
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1769
|
-
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1394
|
+
}>;
|
|
1395
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1396
|
+
readonly providerId: import("effect/Schema").String;
|
|
1397
|
+
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1770
1398
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1771
1399
|
readonly status: import("effect/Schema").Boolean;
|
|
1772
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1773
|
-
readonly
|
|
1774
|
-
readonly
|
|
1775
|
-
|
|
1776
|
-
readonly
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1400
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1401
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1402
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1403
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1404
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1405
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1406
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1407
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1408
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1409
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1410
|
+
}>>;
|
|
1411
|
+
}>>>;
|
|
1412
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1413
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1414
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1415
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1416
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1417
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1418
|
+
}>>;
|
|
1419
|
+
}>>>;
|
|
1420
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1421
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1422
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1423
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1424
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1425
|
+
}>>;
|
|
1426
|
+
}>>>;
|
|
1427
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1428
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1429
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1430
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1431
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1432
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1433
|
+
}>>;
|
|
1434
|
+
}>>>;
|
|
1435
|
+
}>>>;
|
|
1780
1436
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1781
1437
|
readonly status: import("effect/Schema").Boolean;
|
|
1782
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1783
|
-
readonly
|
|
1784
|
-
readonly
|
|
1785
|
-
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1786
|
-
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1438
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1439
|
+
readonly email: import("effect/Schema").String;
|
|
1440
|
+
readonly otp: import("effect/Schema").String;
|
|
1787
1441
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1788
|
-
readonly
|
|
1442
|
+
readonly status: import("effect/Schema").Literal<true>;
|
|
1443
|
+
readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1789
1444
|
readonly user: import("effect/Schema").Struct<{
|
|
1790
1445
|
readonly id: import("effect/Schema").String;
|
|
1791
1446
|
readonly name: import("effect/Schema").String;
|
|
@@ -1834,12 +1489,422 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1834
1489
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1835
1490
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1836
1491
|
}>;
|
|
1837
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1838
|
-
readonly
|
|
1839
|
-
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1840
|
-
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1492
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyOrganizationSso", "POST", "/api/auth/organization/sso/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1493
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1841
1494
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1842
|
-
readonly
|
|
1495
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1496
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1497
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
1498
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
1499
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
1500
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
1501
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
1502
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
1503
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
1504
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1505
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1506
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1507
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1508
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1509
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1510
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1511
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1512
|
+
readonly id: import("effect/Schema").String;
|
|
1513
|
+
readonly key: import("effect/Schema").String;
|
|
1514
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1515
|
+
readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1516
|
+
readonly id: import("effect/Schema").String;
|
|
1517
|
+
readonly name: import("effect/Schema").String;
|
|
1518
|
+
readonly ready: import("effect/Schema").Boolean;
|
|
1519
|
+
}>>;
|
|
1520
|
+
readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1521
|
+
readonly id: import("effect/Schema").String;
|
|
1522
|
+
readonly name: import("effect/Schema").String;
|
|
1523
|
+
readonly personal: import("effect/Schema").Boolean;
|
|
1524
|
+
}>>;
|
|
1525
|
+
readonly adminAccount: import("effect/Schema").Boolean;
|
|
1526
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1527
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1528
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
1529
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1530
|
+
readonly id: import("effect/Schema").String;
|
|
1531
|
+
readonly name: import("effect/Schema").String;
|
|
1532
|
+
readonly slug: import("effect/Schema").String;
|
|
1533
|
+
readonly displayName: import("effect/Schema").String;
|
|
1534
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1535
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1536
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1537
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1538
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1539
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1540
|
+
}>>;
|
|
1541
|
+
}>>>;
|
|
1542
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1543
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1544
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1545
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1546
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1547
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1548
|
+
}>>;
|
|
1549
|
+
}>>>;
|
|
1550
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1551
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1552
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1553
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1554
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1555
|
+
}>>;
|
|
1556
|
+
}>>>;
|
|
1557
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1558
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1559
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1560
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1561
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1562
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1563
|
+
}>>;
|
|
1564
|
+
}>>>;
|
|
1565
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1566
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1567
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1568
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1569
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1570
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1571
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1572
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1573
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1574
|
+
}>>;
|
|
1575
|
+
readonly formatted: import("effect/Schema").String;
|
|
1576
|
+
}>>>;
|
|
1577
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1578
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1579
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1580
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1581
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1582
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1583
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1584
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1585
|
+
readonly projectKey: import("effect/Schema").String;
|
|
1586
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1587
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1588
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1589
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1590
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1591
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
1592
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
1593
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
1594
|
+
readonly google: import("effect/Schema").Boolean;
|
|
1595
|
+
}>;
|
|
1596
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1597
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1598
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1599
|
+
readonly id: import("effect/Schema").String;
|
|
1600
|
+
readonly name: import("effect/Schema").String;
|
|
1601
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1602
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
1603
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1604
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1605
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1606
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
1607
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1608
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1609
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
1610
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
1611
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1612
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1613
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1614
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1615
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
1616
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
|
|
1617
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1618
|
+
readonly url: import("effect/Schema").String;
|
|
1619
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1620
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
1621
|
+
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">]>>;
|
|
1622
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1623
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
1624
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1625
|
+
readonly message: import("effect/Schema").String;
|
|
1626
|
+
readonly code: import("effect/Schema").String;
|
|
1627
|
+
}>>;
|
|
1628
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1629
|
+
readonly id: import("effect/Schema").String;
|
|
1630
|
+
readonly configId: import("effect/Schema").String;
|
|
1631
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1632
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1633
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1634
|
+
readonly referenceId: import("effect/Schema").String;
|
|
1635
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1636
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1637
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1638
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1639
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1640
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
1641
|
+
}>>;
|
|
1642
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1643
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
1644
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1645
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1646
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1647
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1648
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
1649
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1650
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1651
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1652
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1653
|
+
readonly id: import("effect/Schema").String;
|
|
1654
|
+
readonly hostname: import("effect/Schema").String;
|
|
1655
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1656
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1657
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1658
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1659
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1660
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1661
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1662
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1663
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1664
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1665
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1666
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1667
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1668
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1669
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1670
|
+
readonly id: import("effect/Schema").String;
|
|
1671
|
+
readonly hostname: import("effect/Schema").String;
|
|
1672
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1673
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1674
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1675
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1676
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1677
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1678
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1679
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1680
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1681
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1682
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1683
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1684
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1685
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1686
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1687
|
+
readonly id: import("effect/Schema").String;
|
|
1688
|
+
readonly hostname: import("effect/Schema").String;
|
|
1689
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1690
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1691
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1692
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1693
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1694
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1695
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1696
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1697
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1698
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1699
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1700
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1701
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1702
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1703
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1704
|
+
readonly id: import("effect/Schema").String;
|
|
1705
|
+
readonly hostname: import("effect/Schema").String;
|
|
1706
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1707
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1708
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1709
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1710
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1711
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1712
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1713
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1714
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1715
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1716
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1717
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1718
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1719
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1720
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1721
|
+
readonly required: import("effect/Schema").Boolean;
|
|
1722
|
+
readonly status: import("effect/Schema").String;
|
|
1723
|
+
readonly type: import("effect/Schema").String;
|
|
1724
|
+
readonly name: import("effect/Schema").String;
|
|
1725
|
+
readonly value: import("effect/Schema").String;
|
|
1726
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1727
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1728
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1729
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1730
|
+
readonly id: import("effect/Schema").String;
|
|
1731
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1732
|
+
readonly userId: import("effect/Schema").String;
|
|
1733
|
+
readonly role: import("effect/Schema").String;
|
|
1734
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1735
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1736
|
+
readonly id: import("effect/Schema").String;
|
|
1737
|
+
readonly name: import("effect/Schema").String;
|
|
1738
|
+
readonly email: import("effect/Schema").String;
|
|
1739
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1740
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1741
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1742
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1743
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1744
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1745
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1746
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1747
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1748
|
+
}>>;
|
|
1749
|
+
}>>>;
|
|
1750
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1751
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1752
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1753
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1754
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1755
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1756
|
+
}>>;
|
|
1757
|
+
}>>>;
|
|
1758
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1759
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1760
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1761
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1762
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1763
|
+
}>>;
|
|
1764
|
+
}>>>;
|
|
1765
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1766
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1767
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1768
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1769
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1770
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1771
|
+
}>>;
|
|
1772
|
+
}>>>;
|
|
1773
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1774
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1775
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1776
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1777
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1778
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1779
|
+
}>;
|
|
1780
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1781
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1782
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1783
|
+
readonly id: import("effect/Schema").String;
|
|
1784
|
+
readonly name: import("effect/Schema").String;
|
|
1785
|
+
readonly slug: import("effect/Schema").String;
|
|
1786
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1787
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1788
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1789
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1790
|
+
readonly name: import("effect/Schema").String;
|
|
1791
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1792
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1793
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1794
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1795
|
+
}>>;
|
|
1796
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1797
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1798
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1799
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1800
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1801
|
+
}>>;
|
|
1802
|
+
}>>>;
|
|
1803
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1804
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1805
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1806
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1807
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1808
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1809
|
+
}>>;
|
|
1810
|
+
}>>>;
|
|
1811
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1812
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1813
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1814
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1815
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1816
|
+
}>>;
|
|
1817
|
+
}>>>;
|
|
1818
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1819
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1820
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1821
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1822
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1823
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1824
|
+
}>>;
|
|
1825
|
+
}>>>;
|
|
1826
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1827
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1828
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1829
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1830
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1831
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1832
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1833
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1834
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1835
|
+
}>>;
|
|
1836
|
+
}>>>;
|
|
1837
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1838
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1839
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1840
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1841
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1842
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1843
|
+
readonly id: import("effect/Schema").String;
|
|
1844
|
+
readonly name: import("effect/Schema").String;
|
|
1845
|
+
readonly slug: import("effect/Schema").String;
|
|
1846
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1847
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1848
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1849
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1850
|
+
readonly name: import("effect/Schema").String;
|
|
1851
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1852
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1853
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1854
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1855
|
+
}>>;
|
|
1856
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1857
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1858
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1859
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1860
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1861
|
+
}>>;
|
|
1862
|
+
}>>>;
|
|
1863
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1864
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1865
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1866
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1867
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1868
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1869
|
+
}>>;
|
|
1870
|
+
}>>>;
|
|
1871
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1872
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1873
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1874
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1875
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1876
|
+
}>>;
|
|
1877
|
+
}>>>;
|
|
1878
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1879
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1880
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1881
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1882
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1883
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1884
|
+
}>>;
|
|
1885
|
+
}>>>;
|
|
1886
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1887
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1888
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1889
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1890
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1891
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1892
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1893
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1894
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1895
|
+
}>>;
|
|
1896
|
+
}>>>;
|
|
1897
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1898
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1899
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1900
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1901
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1902
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1903
|
+
readonly id: import("effect/Schema").String;
|
|
1904
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1905
|
+
readonly userId: import("effect/Schema").String;
|
|
1906
|
+
readonly role: import("effect/Schema").String;
|
|
1907
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1843
1908
|
readonly user: import("effect/Schema").Struct<{
|
|
1844
1909
|
readonly id: import("effect/Schema").String;
|
|
1845
1910
|
readonly name: import("effect/Schema").String;
|
|
@@ -1881,27 +1946,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1881
1946
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1882
1947
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1883
1948
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1884
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1885
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1886
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1887
1949
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1888
|
-
readonly createdAt: import("effect/Schema").
|
|
1889
|
-
readonly updatedAt: import("effect/Schema").
|
|
1950
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1951
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1890
1952
|
}>;
|
|
1891
|
-
}
|
|
1892
|
-
readonly
|
|
1893
|
-
readonly
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1897
|
-
readonly user: import("effect/Schema").Struct<{
|
|
1953
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1954
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1955
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1956
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1957
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1898
1958
|
readonly id: import("effect/Schema").String;
|
|
1899
1959
|
readonly name: import("effect/Schema").String;
|
|
1900
|
-
readonly
|
|
1901
|
-
readonly
|
|
1902
|
-
readonly
|
|
1903
|
-
|
|
1904
|
-
|
|
1960
|
+
readonly slug: import("effect/Schema").String;
|
|
1961
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1962
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1963
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1964
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1965
|
+
readonly name: import("effect/Schema").String;
|
|
1966
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1967
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1968
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1969
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1970
|
+
}>>;
|
|
1905
1971
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1906
1972
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1907
1973
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1932,26 +1998,32 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1932
1998
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1933
1999
|
}>>;
|
|
1934
2000
|
}>>>;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
2001
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2002
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2003
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2004
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2005
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2006
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2007
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2008
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2009
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
2010
|
+
}>>;
|
|
2011
|
+
}>>>;
|
|
2012
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
2013
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2014
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2015
|
+
}>>;
|
|
2016
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2017
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"users", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2018
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
2019
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2020
|
+
readonly id: import("effect/Schema").String;
|
|
2021
|
+
readonly name: import("effect/Schema").String;
|
|
2022
|
+
readonly email: import("effect/Schema").String;
|
|
2023
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1951
2024
|
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1952
|
-
readonly
|
|
1953
|
-
readonly
|
|
1954
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2025
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2026
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1955
2027
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1956
2028
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1957
2029
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1982,16 +2054,20 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1982
2054
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1983
2055
|
}>>;
|
|
1984
2056
|
}>>>;
|
|
1985
|
-
}>>>;
|
|
1986
|
-
|
|
1987
|
-
readonly
|
|
1988
|
-
|
|
1989
|
-
readonly
|
|
1990
|
-
readonly
|
|
1991
|
-
}>>, never, import("effect/Schema").
|
|
1992
|
-
readonly
|
|
1993
|
-
|
|
1994
|
-
readonly
|
|
2057
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
2058
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2059
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2060
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2061
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2062
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2063
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2064
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
2065
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2066
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2067
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByEmails", "GET", "/api/users/by-email", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2068
|
+
readonly emails: import("effect/Schema").NonEmptyString;
|
|
2069
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2070
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1995
2071
|
readonly id: import("effect/Schema").String;
|
|
1996
2072
|
readonly name: import("effect/Schema").String;
|
|
1997
2073
|
readonly email: import("effect/Schema").String;
|
|
@@ -2032,156 +2108,62 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
2032
2108
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
2033
2109
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2034
2110
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2035
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2036
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
2037
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2038
2111
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2039
|
-
readonly createdAt: import("effect/Schema").
|
|
2040
|
-
readonly updatedAt: import("effect/Schema").
|
|
2041
|
-
}>;
|
|
2042
|
-
}>>, 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>>;
|
|
2043
|
-
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2044
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
2045
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
2046
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2047
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2048
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2049
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2050
|
-
readonly id: import("effect/Schema").String;
|
|
2051
|
-
readonly key: import("effect/Schema").String;
|
|
2052
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2053
|
-
readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2054
|
-
readonly id: import("effect/Schema").String;
|
|
2055
|
-
readonly name: import("effect/Schema").String;
|
|
2056
|
-
readonly ready: import("effect/Schema").Boolean;
|
|
2057
|
-
}>>;
|
|
2058
|
-
readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2059
|
-
readonly id: import("effect/Schema").String;
|
|
2060
|
-
readonly name: import("effect/Schema").String;
|
|
2061
|
-
readonly personal: import("effect/Schema").Boolean;
|
|
2112
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2113
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
2062
2114
|
}>>;
|
|
2063
|
-
readonly
|
|
2064
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").
|
|
2065
|
-
readonly
|
|
2066
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
2067
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2068
|
-
readonly id: import("effect/Schema").String;
|
|
2069
|
-
readonly name: import("effect/Schema").String;
|
|
2070
|
-
readonly slug: import("effect/Schema").String;
|
|
2071
|
-
readonly displayName: import("effect/Schema").String;
|
|
2072
|
-
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2073
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2074
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
2075
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2076
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2077
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
2078
|
-
}>>;
|
|
2079
|
-
}>>>;
|
|
2080
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2081
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
2082
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2083
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2084
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2085
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
2086
|
-
}>>;
|
|
2087
|
-
}>>>;
|
|
2088
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2089
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
2090
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2091
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2092
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
2093
|
-
}>>;
|
|
2094
|
-
}>>>;
|
|
2095
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2096
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
2097
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
2098
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2099
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2100
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
2101
|
-
}>>;
|
|
2102
|
-
}>>>;
|
|
2103
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2104
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2105
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2106
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2107
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2108
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2109
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2110
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2111
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
2112
|
-
}>>;
|
|
2113
|
-
readonly formatted: import("effect/Schema").String;
|
|
2114
|
-
}>>>;
|
|
2115
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2116
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2117
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2118
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2119
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2120
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2121
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2115
|
+
readonly missingEmails: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2116
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2117
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
2122
2118
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2123
|
-
readonly
|
|
2124
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2125
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2126
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2127
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2128
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2129
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
2130
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
2131
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
2132
|
-
readonly google: import("effect/Schema").Boolean;
|
|
2133
|
-
}>;
|
|
2134
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2135
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2136
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2137
|
-
readonly id: import("effect/Schema").String;
|
|
2138
|
-
readonly name: import("effect/Schema").String;
|
|
2139
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2140
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
2141
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2142
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2143
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2144
|
-
keyId: import("effect/Schema").NonEmptyString;
|
|
2145
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2146
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
2147
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
2148
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
2149
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2150
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2151
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2152
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2153
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
2154
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
|
|
2155
|
-
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2156
|
-
readonly url: import("effect/Schema").String;
|
|
2157
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2158
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
2159
|
-
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">]>>;
|
|
2160
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2161
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
2162
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2163
|
-
readonly message: import("effect/Schema").String;
|
|
2164
|
-
readonly code: import("effect/Schema").String;
|
|
2165
|
-
}>>;
|
|
2166
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2119
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2167
2120
|
readonly id: import("effect/Schema").String;
|
|
2168
|
-
readonly
|
|
2169
|
-
readonly
|
|
2170
|
-
readonly
|
|
2171
|
-
readonly
|
|
2172
|
-
readonly
|
|
2173
|
-
readonly
|
|
2174
|
-
|
|
2121
|
+
readonly name: import("effect/Schema").String;
|
|
2122
|
+
readonly email: import("effect/Schema").String;
|
|
2123
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
2124
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
2125
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2126
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
2127
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2128
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
2129
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2130
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2131
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
2132
|
+
}>>;
|
|
2133
|
+
}>>>;
|
|
2134
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2135
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
2136
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2137
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2138
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2139
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
2140
|
+
}>>;
|
|
2141
|
+
}>>>;
|
|
2142
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2143
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
2144
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2145
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2146
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
2147
|
+
}>>;
|
|
2148
|
+
}>>>;
|
|
2149
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2150
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
2151
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
2152
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2153
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2154
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
2155
|
+
}>>;
|
|
2156
|
+
}>>>;
|
|
2157
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
2158
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2159
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2160
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2175
2161
|
readonly createdAt: import("effect/Schema").Date;
|
|
2176
2162
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2177
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2178
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
2179
2163
|
}>>;
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2184
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2164
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2165
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
2166
|
+
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2185
2167
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
2186
2168
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
2187
2169
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -2398,8 +2380,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2398
2380
|
readonly createdAt: import("effect/Schema").Date;
|
|
2399
2381
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2400
2382
|
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2401
|
-
readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").
|
|
2402
|
-
readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").
|
|
2383
|
+
readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
|
|
2384
|
+
readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
|
|
2403
2385
|
readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2404
2386
|
readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
|
|
2405
2387
|
readonly id: string;
|
|
@@ -2486,8 +2468,8 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2486
2468
|
readonly pageCount: import("effect/Schema").Int;
|
|
2487
2469
|
}>;
|
|
2488
2470
|
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2489
|
-
readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").
|
|
2490
|
-
readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").
|
|
2471
|
+
readonly page: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
|
|
2472
|
+
readonly pageSize: import("effect/Schema").decodeTo<import("effect/Schema").Int, import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Finite, import("effect/Schema").FiniteFromString]>>, never, never>;
|
|
2491
2473
|
readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2492
2474
|
readonly sort: import("effect/Schema").optional<import("effect/Schema").declare<readonly {
|
|
2493
2475
|
readonly id: string;
|
|
@@ -2999,6 +2981,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2999
2981
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3000
2982
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3001
2983
|
}>;
|
|
2984
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganizationSso", "POST", "/api/auth/organization/sso/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2985
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2986
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2987
|
+
readonly success: import("effect/Schema").Boolean;
|
|
3002
2988
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3003
2989
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3004
2990
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3006,7 +2992,20 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3006
2992
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3007
2993
|
readonly success: import("effect/Schema").Boolean;
|
|
3008
2994
|
readonly message: import("effect/Schema").String;
|
|
3009
|
-
}>>, 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").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2995
|
+
}>>, 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").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationSso", "GET", "/api/auth/organization/sso", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2996
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2997
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2998
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
2999
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3000
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3001
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3002
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3003
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3004
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3005
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
3006
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
3007
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3008
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3010
3009
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3011
3010
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3012
3011
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3071,6 +3070,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3071
3070
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3072
3071
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3073
3072
|
}>;
|
|
3073
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSsoConfig", "GET", "/api/auth/sso/config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3074
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3075
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3076
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
3077
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3074
3078
|
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3075
3079
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3076
3080
|
readonly provider: import("effect/Schema").String;
|
|
@@ -3578,11 +3582,42 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3578
3582
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3579
3583
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3580
3584
|
readonly status: import("effect/Schema").Boolean;
|
|
3585
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"saveOrganizationSso", "POST", "/api/auth/organization/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3586
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3587
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3588
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3589
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3590
|
+
readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3591
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3592
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3593
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3594
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3595
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3596
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3597
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3598
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3599
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
3600
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
3601
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3581
3602
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3582
3603
|
readonly email: import("effect/Schema").String;
|
|
3583
3604
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
3584
3605
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3585
3606
|
readonly success: import("effect/Schema").Boolean;
|
|
3607
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/api/auth/organization/sso/enabled", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3608
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3609
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3610
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3611
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3612
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3613
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3614
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3615
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3616
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3617
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3618
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
3619
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
3620
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3586
3621
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3587
3622
|
readonly email: import("effect/Schema").String;
|
|
3588
3623
|
readonly password: import("effect/Schema").String;
|
|
@@ -3778,6 +3813,63 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3778
3813
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3779
3814
|
}>>;
|
|
3780
3815
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3816
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSso", "POST", "/api/auth/sign-in/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3817
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3818
|
+
readonly callbackURL: import("effect/Schema").NonEmptyString;
|
|
3819
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3820
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3821
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3822
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
3823
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3824
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
3825
|
+
readonly id: import("effect/Schema").String;
|
|
3826
|
+
readonly name: import("effect/Schema").String;
|
|
3827
|
+
readonly email: import("effect/Schema").String;
|
|
3828
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3829
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3830
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3831
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3832
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3833
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
3834
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3835
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3836
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3837
|
+
}>>;
|
|
3838
|
+
}>>>;
|
|
3839
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3840
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
3841
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3842
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3843
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3844
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3845
|
+
}>>;
|
|
3846
|
+
}>>>;
|
|
3847
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3848
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
3849
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3850
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3851
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3852
|
+
}>>;
|
|
3853
|
+
}>>>;
|
|
3854
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3855
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
3856
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
3857
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3858
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3859
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3860
|
+
}>>;
|
|
3861
|
+
}>>>;
|
|
3862
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
3863
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3864
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
3865
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3866
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
3867
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3868
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3869
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3870
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3871
|
+
}>>;
|
|
3872
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3781
3873
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3782
3874
|
readonly success: import("effect/Schema").Boolean;
|
|
3783
3875
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -4054,4 +4146,158 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
4054
4146
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
4055
4147
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
4056
4148
|
}>;
|
|
4057
|
-
}>>, 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
|
|
4149
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyOrganizationSso", "POST", "/api/auth/organization/sso/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4150
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
4151
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4152
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
4153
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
4154
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
4155
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
4156
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
4157
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
4158
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
4159
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
4160
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
4161
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
4162
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4163
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
4164
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
4165
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4166
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
4167
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
4168
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4169
|
+
readonly id: import("effect/Schema").String;
|
|
4170
|
+
readonly key: import("effect/Schema").String;
|
|
4171
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getAccountDeletionPlan", "GET", "/api/auth/account-deletion", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4172
|
+
readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4173
|
+
readonly id: import("effect/Schema").String;
|
|
4174
|
+
readonly name: import("effect/Schema").String;
|
|
4175
|
+
readonly ready: import("effect/Schema").Boolean;
|
|
4176
|
+
}>>;
|
|
4177
|
+
readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4178
|
+
readonly id: import("effect/Schema").String;
|
|
4179
|
+
readonly name: import("effect/Schema").String;
|
|
4180
|
+
readonly personal: import("effect/Schema").Boolean;
|
|
4181
|
+
}>>;
|
|
4182
|
+
readonly adminAccount: import("effect/Schema").Boolean;
|
|
4183
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
4184
|
+
readonly organizationId: import("effect/Schema").String;
|
|
4185
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
4186
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4187
|
+
readonly id: import("effect/Schema").String;
|
|
4188
|
+
readonly name: import("effect/Schema").String;
|
|
4189
|
+
readonly slug: import("effect/Schema").String;
|
|
4190
|
+
readonly displayName: import("effect/Schema").String;
|
|
4191
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4192
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4193
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
4194
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4195
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
4196
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
4197
|
+
}>>;
|
|
4198
|
+
}>>>;
|
|
4199
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4200
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
4201
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4202
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4203
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
4204
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
4205
|
+
}>>;
|
|
4206
|
+
}>>>;
|
|
4207
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4208
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
4209
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4210
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
4211
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
4212
|
+
}>>;
|
|
4213
|
+
}>>>;
|
|
4214
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4215
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
4216
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
4217
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4218
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
4219
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
4220
|
+
}>>;
|
|
4221
|
+
}>>>;
|
|
4222
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4223
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4224
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4225
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4226
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4227
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4228
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4229
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
4230
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
4231
|
+
}>>;
|
|
4232
|
+
readonly formatted: import("effect/Schema").String;
|
|
4233
|
+
}>>>;
|
|
4234
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4235
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4236
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
4237
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4238
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4239
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4240
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4241
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4242
|
+
readonly projectKey: import("effect/Schema").String;
|
|
4243
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4244
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4245
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4246
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4247
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4248
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
4249
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
4250
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
4251
|
+
readonly google: import("effect/Schema").Boolean;
|
|
4252
|
+
}>;
|
|
4253
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
4254
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
4255
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
4256
|
+
readonly id: import("effect/Schema").String;
|
|
4257
|
+
readonly name: import("effect/Schema").String;
|
|
4258
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4259
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
4260
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4261
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
4262
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
4263
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
4264
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4265
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
4266
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
4267
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
4268
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
4269
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
4270
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4271
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
4272
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
4273
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
|
|
4274
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4275
|
+
readonly url: import("effect/Schema").String;
|
|
4276
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4277
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
4278
|
+
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">]>>;
|
|
4279
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4280
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
4281
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
4282
|
+
readonly message: import("effect/Schema").String;
|
|
4283
|
+
readonly code: import("effect/Schema").String;
|
|
4284
|
+
}>>;
|
|
4285
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
4286
|
+
readonly id: import("effect/Schema").String;
|
|
4287
|
+
readonly configId: import("effect/Schema").String;
|
|
4288
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4289
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4290
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
4291
|
+
readonly referenceId: import("effect/Schema").String;
|
|
4292
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
4293
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
4294
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
4295
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
4296
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
4297
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
4298
|
+
}>>;
|
|
4299
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4300
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
4301
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4302
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
4303
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false>>;
|