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