@krak-stack/auth 0.2.16 → 0.2.18
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/README.md +34 -0
- package/dist/admin/api.group.d.ts +1 -1
- package/dist/admin/api.group.js +1 -1
- package/dist/api.d.ts +933 -933
- package/dist/api.js +1 -1
- package/dist/auth/api.group.d.ts +1 -1
- package/dist/auth/api.group.js +1 -1
- package/dist/auth/schema.d.ts +1 -0
- package/dist/auth/schema.js +12 -1
- package/dist/components/admin-organization-form.js +1 -1
- package/dist/components/admin-organizations.js +1 -1
- package/dist/components/admin-users.js +1 -1
- package/dist/components/associated-projects-notice.js +1 -1
- package/dist/components/auth-atoms.d.ts +1 -1
- package/dist/components/auth-atoms.js +1 -1
- package/dist/components/auth-client-api.d.ts +99 -99
- package/dist/components/auth-client-api.js +3 -3
- package/dist/components/auth-forms.d.ts +9 -1
- package/dist/components/auth-forms.js +56 -33
- package/dist/components/auth-provider.d.ts +1 -1
- package/dist/components/auth-provider.js +2 -2
- package/dist/components/member-required.js +1 -1
- package/dist/components/organization-switcher.js +1 -1
- package/dist/components/user-button.js +1 -1
- package/dist/config.js +2 -2
- package/dist/extra/api.group.d.ts +3 -3
- package/dist/extra/api.group.js +2 -2
- package/dist/extra/schema.d.ts +2 -2
- package/dist/extra/schema.js +2 -2
- package/dist/query.js +2 -2
- package/dist/server/actor.d.ts +1 -1
- package/dist/server/actor.js +1 -1
- package/dist/server/api.group.d.ts +1 -1
- package/dist/server/api.group.js +2 -2
- package/dist/server/middleware.d.ts +2 -2
- package/dist/server/middleware.js +2 -2
- package/dist/server/proxy.d.ts +2 -2
- package/dist/server/proxy.js +1 -1
- package/dist/service.d.ts +141 -141
- package/dist/service.js +3 -3
- package/package.json +6 -5
- package/patches/@lucas-barake%2Feffect-form-react@0.26.0-beta.5.patch +66 -0
- package/patches/@lucas-barake%2Feffect-form@0.25.0-beta.6.patch +86 -0
- package/patches/README.md +31 -0
package/dist/api.d.ts
CHANGED
|
@@ -1,600 +1,5 @@
|
|
|
1
|
-
import { HttpApi } from "effect/
|
|
2
|
-
export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/
|
|
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<{
|
|
55
|
-
readonly id: import("effect/Schema").String;
|
|
56
|
-
readonly name: import("effect/Schema").String;
|
|
57
|
-
readonly email: import("effect/Schema").String;
|
|
58
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
59
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
60
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
61
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
62
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
63
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
64
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
65
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
66
|
-
}>>;
|
|
67
|
-
}>>>;
|
|
68
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
69
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
70
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
71
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
72
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
73
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
74
|
-
}>>;
|
|
75
|
-
}>>>;
|
|
76
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
77
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
78
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
79
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
80
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
81
|
-
}>>;
|
|
82
|
-
}>>>;
|
|
83
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
84
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
85
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
86
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
87
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
88
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
89
|
-
}>>;
|
|
90
|
-
}>>>;
|
|
91
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
92
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
93
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
94
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
95
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
96
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
97
|
-
}>>;
|
|
98
|
-
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
99
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
100
|
-
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
101
|
-
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
102
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
103
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
104
|
-
readonly managed: import("effect/Schema").Boolean;
|
|
105
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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;
|
|
188
|
-
readonly user: import("effect/Schema").Struct<{
|
|
189
|
-
readonly id: import("effect/Schema").String;
|
|
190
|
-
readonly name: import("effect/Schema").String;
|
|
191
|
-
readonly email: import("effect/Schema").String;
|
|
192
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
193
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
194
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
195
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
196
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
197
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
198
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
199
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
200
|
-
}>>;
|
|
201
|
-
}>>>;
|
|
202
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
203
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
204
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
205
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
206
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
207
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
208
|
-
}>>;
|
|
209
|
-
}>>>;
|
|
210
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
211
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
212
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
213
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
214
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
215
|
-
}>>;
|
|
216
|
-
}>>>;
|
|
217
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
218
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
219
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
220
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
221
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
222
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
223
|
-
}>>;
|
|
224
|
-
}>>>;
|
|
225
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
226
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
227
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
228
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
229
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
230
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
231
|
-
}>;
|
|
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;
|
|
360
|
-
readonly user: import("effect/Schema").Struct<{
|
|
361
|
-
readonly id: import("effect/Schema").String;
|
|
362
|
-
readonly name: import("effect/Schema").String;
|
|
363
|
-
readonly email: import("effect/Schema").String;
|
|
364
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
365
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
366
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
367
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
368
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
369
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
370
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
371
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
372
|
-
}>>;
|
|
373
|
-
}>>>;
|
|
374
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
375
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
376
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
377
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
378
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
379
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
380
|
-
}>>;
|
|
381
|
-
}>>>;
|
|
382
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
383
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
384
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
385
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
386
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
387
|
-
}>>;
|
|
388
|
-
}>>>;
|
|
389
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
390
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
391
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
392
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
393
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
394
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
395
|
-
}>>;
|
|
396
|
-
}>>>;
|
|
397
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
398
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
399
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
400
|
-
readonly lastLoginMethod: 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;
|
|
403
|
-
}>;
|
|
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<{
|
|
409
|
-
readonly id: import("effect/Schema").String;
|
|
410
|
-
readonly name: import("effect/Schema").String;
|
|
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
|
-
}>>;
|
|
422
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
423
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
424
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
425
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
426
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
427
|
-
}>>;
|
|
428
|
-
}>>>;
|
|
429
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
430
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
431
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
432
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
433
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
434
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
435
|
-
}>>;
|
|
436
|
-
}>>>;
|
|
437
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
438
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
439
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
440
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
441
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
442
|
-
}>>;
|
|
443
|
-
}>>>;
|
|
444
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
445
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
446
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
447
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
448
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
449
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
450
|
-
}>>;
|
|
451
|
-
}>>>;
|
|
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;
|
|
546
|
-
}>;
|
|
547
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
548
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
549
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
550
|
-
readonly id: import("effect/Schema").String;
|
|
551
|
-
readonly name: import("effect/Schema").String;
|
|
552
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
553
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
554
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
555
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
556
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
557
|
-
keyId: import("effect/Schema").NonEmptyString;
|
|
558
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
559
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
560
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
561
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
562
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
563
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
564
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
565
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
566
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
567
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
568
|
-
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
569
|
-
readonly url: import("effect/Schema").String;
|
|
570
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
571
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
572
|
-
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
573
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
574
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
575
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
576
|
-
readonly message: import("effect/Schema").String;
|
|
577
|
-
readonly code: import("effect/Schema").String;
|
|
578
|
-
}>>;
|
|
579
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
580
|
-
readonly id: import("effect/Schema").String;
|
|
581
|
-
readonly configId: import("effect/Schema").String;
|
|
582
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
583
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
584
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
585
|
-
readonly referenceId: import("effect/Schema").String;
|
|
586
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
587
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
588
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
589
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
590
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
591
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
592
|
-
}>>;
|
|
593
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
594
|
-
readonly password: import("effect/Schema").NonEmptyString;
|
|
595
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
596
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
597
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1
|
+
import { HttpApi } from "effect/http-api";
|
|
2
|
+
export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
598
3
|
readonly userId: import("effect/Schema").String;
|
|
599
4
|
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
600
5
|
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
@@ -646,7 +51,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
646
51
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
647
52
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
648
53
|
}>;
|
|
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/
|
|
54
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
650
55
|
readonly userId: import("effect/Schema").String;
|
|
651
56
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
652
57
|
readonly session: import("effect/Schema").Struct<{
|
|
@@ -709,7 +114,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
709
114
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
710
115
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
711
116
|
}>;
|
|
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/
|
|
117
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
713
118
|
readonly session: import("effect/Schema").Struct<{
|
|
714
119
|
readonly id: import("effect/Schema").String;
|
|
715
120
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -770,7 +175,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
770
175
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
771
176
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
772
177
|
}>;
|
|
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/
|
|
178
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
774
179
|
readonly userId: import("effect/Schema").String;
|
|
775
180
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
776
181
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -820,12 +225,12 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
820
225
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
821
226
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
822
227
|
}>;
|
|
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/
|
|
228
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
824
229
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
825
230
|
readonly keyId: import("effect/Schema").String;
|
|
826
231
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
827
232
|
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/
|
|
233
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
829
234
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
830
235
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
831
236
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -861,7 +266,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
861
266
|
readonly total: import("effect/Schema").Number;
|
|
862
267
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
863
268
|
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/
|
|
269
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
865
270
|
readonly newPassword: import("effect/Schema").String;
|
|
866
271
|
readonly currentPassword: import("effect/Schema").String;
|
|
867
272
|
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -914,7 +319,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
914
319
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
915
320
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
916
321
|
}>;
|
|
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/
|
|
322
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
918
323
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
919
324
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
920
325
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -978,7 +383,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
978
383
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
979
384
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
980
385
|
}>;
|
|
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/
|
|
386
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
982
387
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
983
388
|
readonly provider: import("effect/Schema").String;
|
|
984
389
|
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
@@ -1045,7 +450,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1045
450
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1046
451
|
}>>;
|
|
1047
452
|
readonly status: 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/
|
|
453
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1049
454
|
readonly id: import("effect/Schema").String;
|
|
1050
455
|
readonly providerId: import("effect/Schema").String;
|
|
1051
456
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -1053,14 +458,14 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1053
458
|
readonly accountId: import("effect/Schema").String;
|
|
1054
459
|
readonly userId: import("effect/Schema").String;
|
|
1055
460
|
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/
|
|
461
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1057
462
|
readonly accept: import("effect/Schema").Boolean;
|
|
1058
463
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1059
464
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1060
465
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1061
466
|
readonly redirect: import("effect/Schema").Boolean;
|
|
1062
467
|
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/
|
|
468
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1064
469
|
readonly client_id: import("effect/Schema").String;
|
|
1065
470
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1066
471
|
readonly client_id: import("effect/Schema").String;
|
|
@@ -1071,7 +476,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1071
476
|
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1072
477
|
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1073
478
|
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/
|
|
479
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1075
480
|
readonly invitationId: import("effect/Schema").String;
|
|
1076
481
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1077
482
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1093,7 +498,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1093
498
|
readonly role: import("effect/Schema").String;
|
|
1094
499
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1095
500
|
}>>;
|
|
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/
|
|
501
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1097
502
|
readonly invitationId: import("effect/Schema").String;
|
|
1098
503
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1099
504
|
readonly id: import("effect/Schema").String;
|
|
@@ -1106,7 +511,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1106
511
|
readonly status: import("effect/Schema").String;
|
|
1107
512
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1108
513
|
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/
|
|
514
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1110
515
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
1111
516
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
1112
517
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -1122,7 +527,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1122
527
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1123
528
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1124
529
|
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/
|
|
530
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1126
531
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1127
532
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1128
533
|
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -1192,7 +597,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1192
597
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1193
598
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1194
599
|
}>>;
|
|
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/
|
|
600
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1196
601
|
readonly id: import("effect/Schema").String;
|
|
1197
602
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1198
603
|
readonly id: import("effect/Schema").String;
|
|
@@ -1207,7 +612,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1207
612
|
readonly organizationName: import("effect/Schema").String;
|
|
1208
613
|
readonly organizationSlug: import("effect/Schema").String;
|
|
1209
614
|
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/
|
|
615
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1211
616
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1212
617
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
1213
618
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
@@ -1273,7 +678,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1273
678
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1274
679
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1275
680
|
}>;
|
|
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/
|
|
681
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1277
682
|
readonly email: import("effect/Schema").String;
|
|
1278
683
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1279
684
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1290,7 +695,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1290
695
|
readonly status: import("effect/Schema").String;
|
|
1291
696
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1292
697
|
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/
|
|
698
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1294
699
|
readonly organizationId: import("effect/Schema").String;
|
|
1295
700
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1296
701
|
readonly id: import("effect/Schema").String;
|
|
@@ -1298,7 +703,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1298
703
|
readonly userId: import("effect/Schema").String;
|
|
1299
704
|
readonly role: import("effect/Schema").String;
|
|
1300
705
|
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/
|
|
706
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1302
707
|
readonly id: import("effect/Schema").String;
|
|
1303
708
|
readonly name: import("effect/Schema").String;
|
|
1304
709
|
readonly slug: import("effect/Schema").String;
|
|
@@ -1307,7 +712,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1307
712
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1308
713
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1309
714
|
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/
|
|
715
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1311
716
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1312
717
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1313
718
|
readonly id: import("effect/Schema").String;
|
|
@@ -1320,7 +725,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1320
725
|
readonly status: import("effect/Schema").String;
|
|
1321
726
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1322
727
|
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/
|
|
728
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1324
729
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1325
730
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1326
731
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1377,7 +782,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1377
782
|
}>;
|
|
1378
783
|
}>>;
|
|
1379
784
|
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/
|
|
785
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1381
786
|
readonly id: import("effect/Schema").String;
|
|
1382
787
|
readonly email: import("effect/Schema").String;
|
|
1383
788
|
readonly role: import("effect/Schema").String;
|
|
@@ -1388,7 +793,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1388
793
|
readonly status: import("effect/Schema").String;
|
|
1389
794
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1390
795
|
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/
|
|
796
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1392
797
|
readonly invitationId: import("effect/Schema").String;
|
|
1393
798
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1394
799
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1410,7 +815,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1410
815
|
readonly role: import("effect/Schema").String;
|
|
1411
816
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1412
817
|
}>>;
|
|
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/
|
|
818
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1414
819
|
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
1415
820
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1416
821
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1421,7 +826,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1421
826
|
readonly role: import("effect/Schema").String;
|
|
1422
827
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1423
828
|
}>;
|
|
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/
|
|
829
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1425
830
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1426
831
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1427
832
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1433,7 +838,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1433
838
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1434
839
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1435
840
|
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/
|
|
841
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1437
842
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1438
843
|
readonly data: import("effect/Schema").Struct<{
|
|
1439
844
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -1451,7 +856,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1451
856
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1452
857
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1453
858
|
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/
|
|
859
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1455
860
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1456
861
|
readonly memberId: import("effect/Schema").String;
|
|
1457
862
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1461,23 +866,23 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1461
866
|
readonly userId: import("effect/Schema").String;
|
|
1462
867
|
readonly role: import("effect/Schema").String;
|
|
1463
868
|
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/
|
|
869
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1465
870
|
readonly email: import("effect/Schema").String;
|
|
1466
871
|
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1467
872
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1468
873
|
readonly status: import("effect/Schema").Boolean;
|
|
1469
874
|
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/
|
|
875
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1471
876
|
readonly newPassword: import("effect/Schema").String;
|
|
1472
877
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1473
878
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1474
879
|
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/
|
|
880
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1476
881
|
readonly email: import("effect/Schema").String;
|
|
1477
882
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
1478
883
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1479
884
|
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/
|
|
885
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1481
886
|
readonly email: import("effect/Schema").String;
|
|
1482
887
|
readonly password: import("effect/Schema").String;
|
|
1483
888
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1538,7 +943,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1538
943
|
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
1539
944
|
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1540
945
|
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/
|
|
946
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1542
947
|
readonly email: import("effect/Schema").String;
|
|
1543
948
|
readonly otp: import("effect/Schema").String;
|
|
1544
949
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1592,36 +997,308 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1592
997
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1593
998
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1594
999
|
}>;
|
|
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/
|
|
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>;
|
|
1000
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1001
|
+
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
|
+
readonly provider: import("effect/Schema").String;
|
|
1005
|
+
readonly disableRedirect: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1006
|
+
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1007
|
+
readonly token: import("effect/Schema").String;
|
|
1008
|
+
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1009
|
+
readonly accessToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1010
|
+
readonly refreshToken: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1011
|
+
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1012
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1013
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1014
|
+
readonly firstName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1015
|
+
readonly lastName: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1016
|
+
}>>;
|
|
1017
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1018
|
+
}>>;
|
|
1019
|
+
}>>;
|
|
1020
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1021
|
+
readonly requestSignUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1022
|
+
readonly loginHint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1023
|
+
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
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1026
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1027
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
1028
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1029
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1030
|
+
readonly id: import("effect/Schema").String;
|
|
1031
|
+
readonly name: import("effect/Schema").String;
|
|
1032
|
+
readonly email: import("effect/Schema").String;
|
|
1033
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1034
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1035
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1036
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1037
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1038
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1039
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1040
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1041
|
+
}>>;
|
|
1042
|
+
}>>>;
|
|
1043
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1044
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1045
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1046
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1047
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1048
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1049
|
+
}>>;
|
|
1050
|
+
}>>>;
|
|
1051
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1052
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1053
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1054
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1055
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1056
|
+
}>>;
|
|
1057
|
+
}>>>;
|
|
1058
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1059
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1060
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1061
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1062
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1063
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1064
|
+
}>>;
|
|
1065
|
+
}>>>;
|
|
1066
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1067
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1068
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1069
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1070
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1071
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1072
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1073
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1074
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1075
|
+
}>>;
|
|
1076
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1077
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1078
|
+
readonly success: import("effect/Schema").Boolean;
|
|
1079
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1080
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1081
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1082
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1083
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1084
|
+
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1085
|
+
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1086
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1087
|
+
readonly totpURI: import("effect/Schema").String;
|
|
1088
|
+
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1089
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1090
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1091
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1092
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1093
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1094
|
+
readonly code: import("effect/Schema").String;
|
|
1095
|
+
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1096
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1097
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1098
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1099
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1100
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1101
|
+
readonly id: import("effect/Schema").String;
|
|
1102
|
+
readonly name: import("effect/Schema").String;
|
|
1103
|
+
readonly email: import("effect/Schema").String;
|
|
1104
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1105
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1106
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1107
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1108
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1109
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1110
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1111
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1112
|
+
}>>;
|
|
1113
|
+
}>>>;
|
|
1114
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1115
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1116
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1117
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1118
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1119
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1120
|
+
}>>;
|
|
1121
|
+
}>>>;
|
|
1122
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1123
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1124
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1125
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1126
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1127
|
+
}>>;
|
|
1128
|
+
}>>>;
|
|
1129
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1130
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1131
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1132
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1133
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1134
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1135
|
+
}>>;
|
|
1136
|
+
}>>>;
|
|
1137
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1138
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1139
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1140
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1141
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1142
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1143
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1144
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1145
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1146
|
+
}>;
|
|
1147
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1148
|
+
readonly code: import("effect/Schema").String;
|
|
1149
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1150
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1151
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1152
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1153
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1154
|
+
readonly id: import("effect/Schema").String;
|
|
1155
|
+
readonly name: import("effect/Schema").String;
|
|
1156
|
+
readonly email: import("effect/Schema").String;
|
|
1157
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1158
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1159
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1160
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1161
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1162
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1163
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1164
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1165
|
+
}>>;
|
|
1166
|
+
}>>>;
|
|
1167
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1168
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1169
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1170
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1171
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1172
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1173
|
+
}>>;
|
|
1174
|
+
}>>>;
|
|
1175
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1176
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1177
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1178
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1179
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1180
|
+
}>>;
|
|
1181
|
+
}>>>;
|
|
1182
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1183
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1184
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1185
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1186
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1187
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1188
|
+
}>>;
|
|
1189
|
+
}>>>;
|
|
1190
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1191
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1192
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1193
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1194
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1195
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1196
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1197
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1198
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1199
|
+
}>;
|
|
1200
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1201
|
+
readonly code: import("effect/Schema").String;
|
|
1202
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1203
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1204
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1205
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1206
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1207
|
+
readonly id: import("effect/Schema").String;
|
|
1208
|
+
readonly name: import("effect/Schema").String;
|
|
1209
|
+
readonly email: import("effect/Schema").String;
|
|
1210
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1211
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1212
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1213
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1214
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1215
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1216
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1217
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1218
|
+
}>>;
|
|
1219
|
+
}>>>;
|
|
1220
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1221
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1222
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1223
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1224
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1225
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1226
|
+
}>>;
|
|
1227
|
+
}>>>;
|
|
1228
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1229
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1230
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1231
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1232
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1233
|
+
}>>;
|
|
1234
|
+
}>>>;
|
|
1235
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1236
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1237
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1238
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1239
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1240
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1241
|
+
}>>;
|
|
1242
|
+
}>>>;
|
|
1243
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1244
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1245
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1246
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1247
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1248
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1249
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1250
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1251
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1252
|
+
}>;
|
|
1253
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1254
|
+
readonly providerId: import("effect/Schema").String;
|
|
1255
|
+
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1256
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1257
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1258
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1259
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1260
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1261
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1262
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1263
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1264
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1265
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1266
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1611
1267
|
}>>;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1268
|
+
}>>>;
|
|
1269
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1270
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1271
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1272
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1273
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1274
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1275
|
+
}>>;
|
|
1276
|
+
}>>>;
|
|
1277
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1278
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1279
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1280
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1281
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1282
|
+
}>>;
|
|
1283
|
+
}>>>;
|
|
1284
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1285
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1286
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1287
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1288
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1289
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1290
|
+
}>>;
|
|
1291
|
+
}>>>;
|
|
1292
|
+
}>>>;
|
|
1620
1293
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1621
|
-
readonly
|
|
1622
|
-
|
|
1623
|
-
readonly
|
|
1624
|
-
readonly
|
|
1294
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1295
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1296
|
+
readonly email: import("effect/Schema").String;
|
|
1297
|
+
readonly otp: import("effect/Schema").String;
|
|
1298
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1299
|
+
readonly status: import("effect/Schema").Literal<true>;
|
|
1300
|
+
readonly token: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1301
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1625
1302
|
readonly id: import("effect/Schema").String;
|
|
1626
1303
|
readonly name: import("effect/Schema").String;
|
|
1627
1304
|
readonly email: import("effect/Schema").String;
|
|
@@ -1667,31 +1344,225 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1667
1344
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1668
1345
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1669
1346
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
readonly
|
|
1674
|
-
|
|
1675
|
-
readonly
|
|
1347
|
+
}>;
|
|
1348
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1349
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1350
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1351
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1352
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1353
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1676
1354
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1677
|
-
readonly
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
readonly
|
|
1355
|
+
readonly id: import("effect/Schema").String;
|
|
1356
|
+
readonly key: import("effect/Schema").String;
|
|
1357
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1358
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1359
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
1360
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1361
|
+
readonly id: import("effect/Schema").String;
|
|
1362
|
+
readonly name: import("effect/Schema").String;
|
|
1363
|
+
readonly slug: import("effect/Schema").String;
|
|
1364
|
+
readonly displayName: import("effect/Schema").String;
|
|
1365
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1366
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1367
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1368
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1369
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1370
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1371
|
+
}>>;
|
|
1372
|
+
}>>>;
|
|
1373
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1374
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1375
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1376
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1377
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1378
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1379
|
+
}>>;
|
|
1380
|
+
}>>>;
|
|
1381
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1382
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1383
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1384
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1385
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1386
|
+
}>>;
|
|
1387
|
+
}>>>;
|
|
1388
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1389
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1390
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1391
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1392
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1393
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1394
|
+
}>>;
|
|
1395
|
+
}>>>;
|
|
1396
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1397
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1398
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1399
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1400
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1401
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1402
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1403
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1404
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1405
|
+
}>>;
|
|
1406
|
+
readonly formatted: import("effect/Schema").String;
|
|
1407
|
+
}>>>;
|
|
1408
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1409
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1410
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1411
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1412
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1413
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1414
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1415
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1416
|
+
readonly projectKey: import("effect/Schema").String;
|
|
1417
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1418
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1419
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1420
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1421
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1422
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
1423
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
1424
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
1425
|
+
readonly google: import("effect/Schema").Boolean;
|
|
1426
|
+
}>;
|
|
1427
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1428
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1429
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1430
|
+
readonly id: import("effect/Schema").String;
|
|
1431
|
+
readonly name: import("effect/Schema").String;
|
|
1432
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1433
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
1681
1434
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1682
|
-
readonly
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1435
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1436
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1437
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
1686
1438
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1687
|
-
readonly
|
|
1688
|
-
|
|
1689
|
-
readonly
|
|
1690
|
-
readonly
|
|
1691
|
-
readonly
|
|
1692
|
-
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
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>>;
|
|
1693
1444
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1694
|
-
readonly
|
|
1445
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1446
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
1447
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/http/Multipart").PersistedFileSchema>, never, never>;
|
|
1448
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1449
|
+
readonly url: import("effect/Schema").String;
|
|
1450
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1451
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
1452
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
1453
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1454
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
1455
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1456
|
+
readonly message: import("effect/Schema").String;
|
|
1457
|
+
readonly code: import("effect/Schema").String;
|
|
1458
|
+
}>>;
|
|
1459
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1460
|
+
readonly id: import("effect/Schema").String;
|
|
1461
|
+
readonly configId: import("effect/Schema").String;
|
|
1462
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1463
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1464
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1465
|
+
readonly referenceId: import("effect/Schema").String;
|
|
1466
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1467
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1468
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1469
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1470
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1471
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
1472
|
+
}>>;
|
|
1473
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1474
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
1475
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1476
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1477
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1478
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1479
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
1480
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1481
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1482
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1483
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1484
|
+
readonly id: import("effect/Schema").String;
|
|
1485
|
+
readonly hostname: import("effect/Schema").String;
|
|
1486
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1487
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1488
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1489
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1490
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1491
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1492
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1493
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1494
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1495
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1496
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1497
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1498
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1499
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1500
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1501
|
+
readonly id: import("effect/Schema").String;
|
|
1502
|
+
readonly hostname: import("effect/Schema").String;
|
|
1503
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1504
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1505
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1506
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1507
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1508
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1509
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1510
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1511
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1512
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1513
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1514
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1515
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1516
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1517
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1518
|
+
readonly id: import("effect/Schema").String;
|
|
1519
|
+
readonly hostname: import("effect/Schema").String;
|
|
1520
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1521
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1522
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1523
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1524
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1525
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1526
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1527
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1528
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1529
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1530
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1531
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1532
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1533
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1534
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1535
|
+
readonly id: import("effect/Schema").String;
|
|
1536
|
+
readonly hostname: import("effect/Schema").String;
|
|
1537
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1538
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1539
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1540
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1541
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1542
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1543
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1544
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1545
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1546
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1547
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1548
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1549
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1550
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1551
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1552
|
+
readonly required: import("effect/Schema").Boolean;
|
|
1553
|
+
readonly status: import("effect/Schema").String;
|
|
1554
|
+
readonly type: import("effect/Schema").String;
|
|
1555
|
+
readonly name: import("effect/Schema").String;
|
|
1556
|
+
readonly value: import("effect/Schema").String;
|
|
1557
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1558
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1559
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1560
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1561
|
+
readonly id: import("effect/Schema").String;
|
|
1562
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1563
|
+
readonly userId: import("effect/Schema").String;
|
|
1564
|
+
readonly role: import("effect/Schema").String;
|
|
1565
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1695
1566
|
readonly user: import("effect/Schema").Struct<{
|
|
1696
1567
|
readonly id: import("effect/Schema").String;
|
|
1697
1568
|
readonly name: import("effect/Schema").String;
|
|
@@ -1732,19 +1603,138 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1732
1603
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1733
1604
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1734
1605
|
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>;
|
|
1738
1606
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1739
|
-
readonly createdAt: import("effect/Schema").
|
|
1740
|
-
readonly updatedAt: import("effect/Schema").
|
|
1607
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1608
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1741
1609
|
}>;
|
|
1742
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("
|
|
1743
|
-
readonly
|
|
1744
|
-
|
|
1745
|
-
readonly
|
|
1746
|
-
|
|
1747
|
-
readonly
|
|
1610
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganization", "GET", "/api/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1611
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1612
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1613
|
+
readonly id: import("effect/Schema").String;
|
|
1614
|
+
readonly name: import("effect/Schema").String;
|
|
1615
|
+
readonly slug: import("effect/Schema").String;
|
|
1616
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1617
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1618
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1619
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1620
|
+
readonly name: import("effect/Schema").String;
|
|
1621
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1622
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1623
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1624
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1625
|
+
}>>;
|
|
1626
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1627
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1628
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1629
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1630
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1631
|
+
}>>;
|
|
1632
|
+
}>>>;
|
|
1633
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1634
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1635
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1636
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1637
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1638
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1639
|
+
}>>;
|
|
1640
|
+
}>>>;
|
|
1641
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1642
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1643
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1644
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1645
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1646
|
+
}>>;
|
|
1647
|
+
}>>>;
|
|
1648
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1649
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1650
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1651
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1652
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1653
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1654
|
+
}>>;
|
|
1655
|
+
}>>>;
|
|
1656
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1657
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1658
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1659
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1660
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1661
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1662
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1663
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1664
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1665
|
+
}>>;
|
|
1666
|
+
}>>>;
|
|
1667
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1668
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1669
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1670
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1671
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1672
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1673
|
+
readonly id: import("effect/Schema").String;
|
|
1674
|
+
readonly name: import("effect/Schema").String;
|
|
1675
|
+
readonly slug: import("effect/Schema").String;
|
|
1676
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1677
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1678
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1679
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1680
|
+
readonly name: import("effect/Schema").String;
|
|
1681
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1682
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1683
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1684
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1685
|
+
}>>;
|
|
1686
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1687
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1688
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1689
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1690
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1691
|
+
}>>;
|
|
1692
|
+
}>>>;
|
|
1693
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1694
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1695
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1696
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1697
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1698
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1699
|
+
}>>;
|
|
1700
|
+
}>>>;
|
|
1701
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1702
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1703
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1704
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1705
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1706
|
+
}>>;
|
|
1707
|
+
}>>>;
|
|
1708
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1709
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1710
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1711
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1712
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1713
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1714
|
+
}>>;
|
|
1715
|
+
}>>>;
|
|
1716
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1717
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1718
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1719
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1720
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1721
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1722
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1723
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1724
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1725
|
+
}>>;
|
|
1726
|
+
}>>>;
|
|
1727
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1728
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1729
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1730
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1731
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1732
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1733
|
+
readonly id: import("effect/Schema").String;
|
|
1734
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1735
|
+
readonly userId: import("effect/Schema").String;
|
|
1736
|
+
readonly role: import("effect/Schema").String;
|
|
1737
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1748
1738
|
readonly user: import("effect/Schema").Struct<{
|
|
1749
1739
|
readonly id: import("effect/Schema").String;
|
|
1750
1740
|
readonly name: import("effect/Schema").String;
|
|
@@ -1785,26 +1775,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1785
1775
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1786
1776
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1787
1777
|
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
1778
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1792
|
-
readonly createdAt: import("effect/Schema").
|
|
1793
|
-
readonly updatedAt: import("effect/Schema").
|
|
1779
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1780
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1794
1781
|
}>;
|
|
1795
|
-
}
|
|
1796
|
-
readonly
|
|
1797
|
-
readonly
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1801
|
-
readonly user: import("effect/Schema").Struct<{
|
|
1782
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1783
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1784
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1785
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1786
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1802
1787
|
readonly id: import("effect/Schema").String;
|
|
1803
1788
|
readonly name: import("effect/Schema").String;
|
|
1804
|
-
readonly
|
|
1805
|
-
readonly
|
|
1806
|
-
readonly
|
|
1807
|
-
|
|
1789
|
+
readonly slug: import("effect/Schema").String;
|
|
1790
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1791
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1792
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1793
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1794
|
+
readonly name: import("effect/Schema").String;
|
|
1795
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1796
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1797
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1798
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1799
|
+
}>>;
|
|
1808
1800
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1809
1801
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1810
1802
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1835,25 +1827,31 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1835
1827
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1836
1828
|
}>>;
|
|
1837
1829
|
}>>>;
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
readonly
|
|
1856
|
-
|
|
1830
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1831
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1832
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1833
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1834
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1835
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1836
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1837
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1838
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1839
|
+
}>>;
|
|
1840
|
+
}>>>;
|
|
1841
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
1842
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1843
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1844
|
+
}>>;
|
|
1845
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1846
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"users", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1847
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1848
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1849
|
+
readonly id: import("effect/Schema").String;
|
|
1850
|
+
readonly name: import("effect/Schema").String;
|
|
1851
|
+
readonly email: import("effect/Schema").String;
|
|
1852
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1853
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1854
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1857
1855
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1858
1856
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1859
1857
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1882,18 +1880,22 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1882
1880
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1883
1881
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1884
1882
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1885
|
-
}>>;
|
|
1886
|
-
}>>>;
|
|
1887
|
-
}>>>;
|
|
1888
|
-
|
|
1889
|
-
readonly
|
|
1890
|
-
|
|
1891
|
-
readonly
|
|
1892
|
-
readonly
|
|
1893
|
-
}>>, never, import("effect/Schema").
|
|
1894
|
-
readonly
|
|
1895
|
-
|
|
1896
|
-
readonly
|
|
1883
|
+
}>>;
|
|
1884
|
+
}>>>;
|
|
1885
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1886
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1887
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1888
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1889
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1890
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1891
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getUserActiveOrganization", "GET", "/api/organizations/user/:userId/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1892
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1893
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1894
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1895
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1896
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
1897
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1898
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1897
1899
|
readonly id: import("effect/Schema").String;
|
|
1898
1900
|
readonly name: import("effect/Schema").String;
|
|
1899
1901
|
readonly email: import("effect/Schema").String;
|
|
@@ -1933,144 +1935,13 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1933
1935
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1934
1936
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1935
1937
|
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
1938
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1940
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1941
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1942
|
-
}>;
|
|
1943
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false>>;
|
|
1944
|
-
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1945
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1946
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1947
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1948
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1949
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1950
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1951
|
-
readonly id: import("effect/Schema").String;
|
|
1952
|
-
readonly key: import("effect/Schema").String;
|
|
1953
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1954
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1955
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
1956
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1957
|
-
readonly id: import("effect/Schema").String;
|
|
1958
|
-
readonly name: import("effect/Schema").String;
|
|
1959
|
-
readonly slug: import("effect/Schema").String;
|
|
1960
|
-
readonly displayName: import("effect/Schema").String;
|
|
1961
|
-
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1962
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1963
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
1964
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1965
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1966
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1967
|
-
}>>;
|
|
1968
|
-
}>>>;
|
|
1969
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1970
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
1971
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1972
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1973
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1974
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1975
|
-
}>>;
|
|
1976
|
-
}>>>;
|
|
1977
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1978
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1979
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1980
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1981
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1982
|
-
}>>;
|
|
1983
|
-
}>>>;
|
|
1984
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1985
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1986
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1987
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1988
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1989
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1990
|
-
}>>;
|
|
1991
|
-
}>>>;
|
|
1992
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1993
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1994
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1995
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1996
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1997
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1998
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1999
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
2000
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
2001
|
-
}>>;
|
|
2002
|
-
readonly formatted: import("effect/Schema").String;
|
|
2003
|
-
}>>>;
|
|
2004
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2005
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2006
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2007
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2008
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2009
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2010
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2011
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2012
|
-
readonly projectKey: import("effect/Schema").String;
|
|
2013
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2014
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2015
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2016
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2017
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2018
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
2019
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
2020
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
2021
|
-
readonly google: import("effect/Schema").Boolean;
|
|
2022
|
-
}>;
|
|
2023
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2024
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2025
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2026
|
-
readonly id: import("effect/Schema").String;
|
|
2027
|
-
readonly name: import("effect/Schema").String;
|
|
2028
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2029
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
2030
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2031
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2032
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2033
|
-
keyId: import("effect/Schema").NonEmptyString;
|
|
2034
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2035
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
2036
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
2037
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
2038
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2039
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2040
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2041
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2042
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
2043
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
2044
|
-
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2045
|
-
readonly url: import("effect/Schema").String;
|
|
2046
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2047
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
2048
|
-
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
2049
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2050
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
2051
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2052
|
-
readonly message: import("effect/Schema").String;
|
|
2053
|
-
readonly code: import("effect/Schema").String;
|
|
2054
|
-
}>>;
|
|
2055
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2056
|
-
readonly id: import("effect/Schema").String;
|
|
2057
|
-
readonly configId: import("effect/Schema").String;
|
|
2058
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2059
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2060
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2061
|
-
readonly referenceId: import("effect/Schema").String;
|
|
2062
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2063
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2064
1939
|
readonly createdAt: import("effect/Schema").Date;
|
|
2065
1940
|
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>;
|
|
2068
1941
|
}>>;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
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<{
|
|
1942
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1943
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
1944
|
+
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/http-api/HttpApiGroup").HttpApiGroup<"admin", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2074
1945
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
2075
1946
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
2076
1947
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -2091,7 +1962,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2091
1962
|
readonly active: import("effect/Schema").Boolean;
|
|
2092
1963
|
readonly createdAt: import("effect/Schema").Date;
|
|
2093
1964
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2094
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1965
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").BadRequest | typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createOrganization", "POST", "/api/auth/admin/organizations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2095
1966
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
2096
1967
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
2097
1968
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -2117,7 +1988,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2117
1988
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2118
1989
|
}>>>;
|
|
2119
1990
|
readonly createdAt: import("effect/Schema").Date;
|
|
2120
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
1991
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2121
1992
|
readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
|
|
2122
1993
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2123
1994
|
readonly totalUsers: import("effect/Schema").Number;
|
|
@@ -2141,7 +2012,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2141
2012
|
readonly users: import("effect/Schema").Number;
|
|
2142
2013
|
readonly organizations: import("effect/Schema").Number;
|
|
2143
2014
|
}>>;
|
|
2144
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2015
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteApiKey", "DELETE", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2145
2016
|
readonly id: import("effect/Schema").String;
|
|
2146
2017
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2147
2018
|
readonly id: import("effect/Schema").String;
|
|
@@ -2162,7 +2033,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2162
2033
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2163
2034
|
readonly createdAt: import("effect/Schema").Date;
|
|
2164
2035
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2165
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2036
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/auth/admin/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2166
2037
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
2167
2038
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2168
2039
|
readonly id: import("effect/Schema").String;
|
|
@@ -2179,7 +2050,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2179
2050
|
readonly active: import("effect/Schema").Boolean;
|
|
2180
2051
|
readonly createdAt: import("effect/Schema").Date;
|
|
2181
2052
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2182
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2053
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganization", "DELETE", "/api/auth/admin/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2183
2054
|
readonly id: import("effect/Schema").String;
|
|
2184
2055
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2185
2056
|
readonly id: import("effect/Schema").String;
|
|
@@ -2202,7 +2073,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2202
2073
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2203
2074
|
}>>>;
|
|
2204
2075
|
readonly createdAt: import("effect/Schema").Date;
|
|
2205
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2076
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2206
2077
|
readonly id: import("effect/Schema").String;
|
|
2207
2078
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2208
2079
|
readonly id: import("effect/Schema").String;
|
|
@@ -2223,7 +2094,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2223
2094
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2224
2095
|
readonly createdAt: import("effect/Schema").Date;
|
|
2225
2096
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2226
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2097
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"enableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/enable-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2227
2098
|
readonly id: import("effect/Schema").String;
|
|
2228
2099
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2229
2100
|
readonly id: import("effect/Schema").String;
|
|
@@ -2244,7 +2115,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2244
2115
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2245
2116
|
readonly createdAt: import("effect/Schema").Date;
|
|
2246
2117
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2247
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2118
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/auth/admin/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2248
2119
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
2249
2120
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2250
2121
|
readonly required: import("effect/Schema").Boolean;
|
|
@@ -2252,7 +2123,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2252
2123
|
readonly type: import("effect/Schema").String;
|
|
2253
2124
|
readonly name: import("effect/Schema").String;
|
|
2254
2125
|
readonly value: import("effect/Schema").String;
|
|
2255
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2126
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/api/auth/admin/api-keys", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2256
2127
|
readonly id: import("effect/Schema").String;
|
|
2257
2128
|
readonly configId: import("effect/Schema").String;
|
|
2258
2129
|
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -2271,7 +2142,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2271
2142
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2272
2143
|
readonly createdAt: import("effect/Schema").Date;
|
|
2273
2144
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2274
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2145
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listDomains", "GET", "/api/auth/admin/domains", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2275
2146
|
readonly id: import("effect/Schema").String;
|
|
2276
2147
|
readonly hostname: import("effect/Schema").String;
|
|
2277
2148
|
readonly rootHostname: import("effect/Schema").String;
|
|
@@ -2286,7 +2157,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2286
2157
|
readonly active: import("effect/Schema").Boolean;
|
|
2287
2158
|
readonly createdAt: import("effect/Schema").Date;
|
|
2288
2159
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2289
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2160
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listOrganizations", "GET", "/api/auth/admin/organizations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2290
2161
|
readonly page: import("effect/Schema").Int;
|
|
2291
2162
|
readonly pageSize: import("effect/Schema").Int;
|
|
2292
2163
|
readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -2324,7 +2195,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2324
2195
|
readonly total: import("effect/Schema").Int;
|
|
2325
2196
|
readonly pageCount: import("effect/Schema").Int;
|
|
2326
2197
|
}>;
|
|
2327
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2198
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listUsers", "GET", "/api/auth/admin/users", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2328
2199
|
readonly page: import("effect/Schema").Int;
|
|
2329
2200
|
readonly pageSize: import("effect/Schema").Int;
|
|
2330
2201
|
readonly globalFilter: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -2363,7 +2234,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2363
2234
|
readonly total: import("effect/Schema").Int;
|
|
2364
2235
|
readonly pageCount: import("effect/Schema").Int;
|
|
2365
2236
|
}>;
|
|
2366
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2237
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/reset-rate-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2367
2238
|
readonly id: import("effect/Schema").String;
|
|
2368
2239
|
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2369
2240
|
readonly id: import("effect/Schema").String;
|
|
@@ -2384,7 +2255,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2384
2255
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2385
2256
|
readonly createdAt: import("effect/Schema").Date;
|
|
2386
2257
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2387
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2258
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/admin/api-keys/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2388
2259
|
readonly id: import("effect/Schema").String;
|
|
2389
2260
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2390
2261
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -2412,7 +2283,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2412
2283
|
readonly permissions: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2413
2284
|
readonly createdAt: import("effect/Schema").Date;
|
|
2414
2285
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2415
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2286
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateDomain", "PATCH", "/api/auth/admin/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2416
2287
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
2417
2288
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2418
2289
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
@@ -2435,7 +2306,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2435
2306
|
readonly active: import("effect/Schema").Boolean;
|
|
2436
2307
|
readonly createdAt: import("effect/Schema").Date;
|
|
2437
2308
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2438
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2309
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateOrganization", "PATCH", "/api/auth/admin/organizations/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2439
2310
|
readonly id: import("effect/Schema").String;
|
|
2440
2311
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2441
2312
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -2463,7 +2334,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2463
2334
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2464
2335
|
}>>>;
|
|
2465
2336
|
readonly createdAt: import("effect/Schema").Date;
|
|
2466
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/
|
|
2337
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"auth", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2467
2338
|
readonly userId: import("effect/Schema").String;
|
|
2468
2339
|
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2469
2340
|
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
@@ -2515,7 +2386,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2515
2386
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2516
2387
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2517
2388
|
}>;
|
|
2518
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2389
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2519
2390
|
readonly userId: import("effect/Schema").String;
|
|
2520
2391
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2521
2392
|
readonly session: import("effect/Schema").Struct<{
|
|
@@ -2578,7 +2449,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2578
2449
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2579
2450
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2580
2451
|
}>;
|
|
2581
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2452
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2582
2453
|
readonly session: import("effect/Schema").Struct<{
|
|
2583
2454
|
readonly id: import("effect/Schema").String;
|
|
2584
2455
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -2639,7 +2510,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2639
2510
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2640
2511
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2641
2512
|
}>;
|
|
2642
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2513
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2643
2514
|
readonly userId: import("effect/Schema").String;
|
|
2644
2515
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2645
2516
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -2689,12 +2560,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2689
2560
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2690
2561
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2691
2562
|
}>;
|
|
2692
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2563
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2693
2564
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2694
2565
|
readonly keyId: import("effect/Schema").String;
|
|
2695
2566
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2696
2567
|
readonly success: import("effect/Schema").Boolean;
|
|
2697
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2568
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2698
2569
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2699
2570
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2700
2571
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -2730,7 +2601,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2730
2601
|
readonly total: import("effect/Schema").Number;
|
|
2731
2602
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
2732
2603
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
2733
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2604
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2734
2605
|
readonly newPassword: import("effect/Schema").String;
|
|
2735
2606
|
readonly currentPassword: import("effect/Schema").String;
|
|
2736
2607
|
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -2783,7 +2654,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2783
2654
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2784
2655
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2785
2656
|
}>;
|
|
2786
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2657
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2787
2658
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2788
2659
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2789
2660
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -2847,7 +2718,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2847
2718
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2848
2719
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2849
2720
|
}>;
|
|
2850
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2721
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2851
2722
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2852
2723
|
readonly provider: import("effect/Schema").String;
|
|
2853
2724
|
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
@@ -2914,7 +2785,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2914
2785
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2915
2786
|
}>>;
|
|
2916
2787
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2917
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2788
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2918
2789
|
readonly id: import("effect/Schema").String;
|
|
2919
2790
|
readonly providerId: import("effect/Schema").String;
|
|
2920
2791
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -2922,14 +2793,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2922
2793
|
readonly accountId: import("effect/Schema").String;
|
|
2923
2794
|
readonly userId: import("effect/Schema").String;
|
|
2924
2795
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2925
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2796
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2926
2797
|
readonly accept: import("effect/Schema").Boolean;
|
|
2927
2798
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2928
2799
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2929
2800
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2930
2801
|
readonly redirect: import("effect/Schema").Boolean;
|
|
2931
2802
|
readonly url: import("effect/Schema").String;
|
|
2932
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2803
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2933
2804
|
readonly client_id: import("effect/Schema").String;
|
|
2934
2805
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2935
2806
|
readonly client_id: import("effect/Schema").String;
|
|
@@ -2940,7 +2811,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2940
2811
|
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2941
2812
|
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2942
2813
|
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2943
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2814
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2944
2815
|
readonly invitationId: import("effect/Schema").String;
|
|
2945
2816
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2946
2817
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -2962,7 +2833,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2962
2833
|
readonly role: import("effect/Schema").String;
|
|
2963
2834
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2964
2835
|
}>>;
|
|
2965
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2836
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2966
2837
|
readonly invitationId: import("effect/Schema").String;
|
|
2967
2838
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2968
2839
|
readonly id: import("effect/Schema").String;
|
|
@@ -2975,7 +2846,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2975
2846
|
readonly status: import("effect/Schema").String;
|
|
2976
2847
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
2977
2848
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
2978
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2849
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2979
2850
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
2980
2851
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
2981
2852
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -2991,7 +2862,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2991
2862
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2992
2863
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2993
2864
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2994
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2865
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2995
2866
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2996
2867
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2997
2868
|
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -3061,7 +2932,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3061
2932
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3062
2933
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3063
2934
|
}>>;
|
|
3064
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2935
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3065
2936
|
readonly id: import("effect/Schema").String;
|
|
3066
2937
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3067
2938
|
readonly id: import("effect/Schema").String;
|
|
@@ -3076,7 +2947,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3076
2947
|
readonly organizationName: import("effect/Schema").String;
|
|
3077
2948
|
readonly organizationSlug: import("effect/Schema").String;
|
|
3078
2949
|
readonly inviterEmail: import("effect/Schema").String;
|
|
3079
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
2950
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3080
2951
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3081
2952
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
3082
2953
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
@@ -3142,7 +3013,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3142
3013
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3143
3014
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3144
3015
|
}>;
|
|
3145
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3016
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3146
3017
|
readonly email: import("effect/Schema").String;
|
|
3147
3018
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
3148
3019
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3159,7 +3030,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3159
3030
|
readonly status: import("effect/Schema").String;
|
|
3160
3031
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3161
3032
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3162
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3033
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3163
3034
|
readonly organizationId: import("effect/Schema").String;
|
|
3164
3035
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3165
3036
|
readonly id: import("effect/Schema").String;
|
|
@@ -3167,7 +3038,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3167
3038
|
readonly userId: import("effect/Schema").String;
|
|
3168
3039
|
readonly role: import("effect/Schema").String;
|
|
3169
3040
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3170
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3041
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3171
3042
|
readonly id: import("effect/Schema").String;
|
|
3172
3043
|
readonly name: import("effect/Schema").String;
|
|
3173
3044
|
readonly slug: import("effect/Schema").String;
|
|
@@ -3176,7 +3047,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3176
3047
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3177
3048
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3178
3049
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3179
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3050
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3180
3051
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3181
3052
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3182
3053
|
readonly id: import("effect/Schema").String;
|
|
@@ -3189,7 +3060,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3189
3060
|
readonly status: import("effect/Schema").String;
|
|
3190
3061
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3191
3062
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3192
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3063
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3193
3064
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
3194
3065
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
3195
3066
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3246,7 +3117,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3246
3117
|
}>;
|
|
3247
3118
|
}>>;
|
|
3248
3119
|
readonly total: import("effect/Schema").Number;
|
|
3249
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3120
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3250
3121
|
readonly id: import("effect/Schema").String;
|
|
3251
3122
|
readonly email: import("effect/Schema").String;
|
|
3252
3123
|
readonly role: import("effect/Schema").String;
|
|
@@ -3257,7 +3128,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3257
3128
|
readonly status: import("effect/Schema").String;
|
|
3258
3129
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3259
3130
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3260
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3131
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3261
3132
|
readonly invitationId: import("effect/Schema").String;
|
|
3262
3133
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3263
3134
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3279,7 +3150,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3279
3150
|
readonly role: import("effect/Schema").String;
|
|
3280
3151
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3281
3152
|
}>>;
|
|
3282
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3153
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3283
3154
|
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
3284
3155
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3285
3156
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -3290,7 +3161,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3290
3161
|
readonly role: import("effect/Schema").String;
|
|
3291
3162
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3292
3163
|
}>;
|
|
3293
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3164
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3294
3165
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3295
3166
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3296
3167
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3302,7 +3173,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3302
3173
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3303
3174
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3304
3175
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3305
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3176
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3306
3177
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3307
3178
|
readonly data: import("effect/Schema").Struct<{
|
|
3308
3179
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -3320,7 +3191,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3320
3191
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3321
3192
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3322
3193
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3323
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3194
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3324
3195
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
3325
3196
|
readonly memberId: import("effect/Schema").String;
|
|
3326
3197
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3330,23 +3201,23 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3330
3201
|
readonly userId: import("effect/Schema").String;
|
|
3331
3202
|
readonly role: import("effect/Schema").String;
|
|
3332
3203
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3333
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3204
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3334
3205
|
readonly email: import("effect/Schema").String;
|
|
3335
3206
|
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3336
3207
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3337
3208
|
readonly status: import("effect/Schema").Boolean;
|
|
3338
3209
|
readonly message: import("effect/Schema").String;
|
|
3339
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3210
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3340
3211
|
readonly newPassword: import("effect/Schema").String;
|
|
3341
3212
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3342
3213
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3343
3214
|
readonly status: import("effect/Schema").Boolean;
|
|
3344
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3215
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3345
3216
|
readonly email: import("effect/Schema").String;
|
|
3346
3217
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
3347
3218
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3348
3219
|
readonly success: import("effect/Schema").Boolean;
|
|
3349
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3220
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3350
3221
|
readonly email: import("effect/Schema").String;
|
|
3351
3222
|
readonly password: import("effect/Schema").String;
|
|
3352
3223
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3407,7 +3278,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3407
3278
|
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
3408
3279
|
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
3409
3280
|
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3410
|
-
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3281
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3411
3282
|
readonly email: import("effect/Schema").String;
|
|
3412
3283
|
readonly otp: import("effect/Schema").String;
|
|
3413
3284
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3461,7 +3332,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3461
3332
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3462
3333
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3463
3334
|
}>;
|
|
3464
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3335
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3465
3336
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3466
3337
|
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3467
3338
|
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3538,23 +3409,23 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3538
3409
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3539
3410
|
}>>;
|
|
3540
3411
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3541
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3412
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3542
3413
|
readonly success: import("effect/Schema").Boolean;
|
|
3543
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3414
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3544
3415
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3545
3416
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3546
3417
|
readonly status: import("effect/Schema").Boolean;
|
|
3547
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3418
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3548
3419
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3549
3420
|
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3550
3421
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3551
3422
|
readonly totpURI: import("effect/Schema").String;
|
|
3552
3423
|
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
3553
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3424
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3554
3425
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3555
3426
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3556
3427
|
readonly status: import("effect/Schema").Boolean;
|
|
3557
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3428
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3558
3429
|
readonly code: import("effect/Schema").String;
|
|
3559
3430
|
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3560
3431
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -3608,7 +3479,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3608
3479
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3609
3480
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3610
3481
|
}>;
|
|
3611
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3482
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3612
3483
|
readonly code: import("effect/Schema").String;
|
|
3613
3484
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3614
3485
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3661,7 +3532,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3661
3532
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3662
3533
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3663
3534
|
}>;
|
|
3664
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3535
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3665
3536
|
readonly code: import("effect/Schema").String;
|
|
3666
3537
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3667
3538
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3714,12 +3585,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3714
3585
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3715
3586
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3716
3587
|
}>;
|
|
3717
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3588
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3718
3589
|
readonly providerId: import("effect/Schema").String;
|
|
3719
3590
|
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3720
3591
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3721
3592
|
readonly status: import("effect/Schema").Boolean;
|
|
3722
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3593
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3723
3594
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3724
3595
|
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3725
3596
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3756,7 +3627,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3756
3627
|
}>>>;
|
|
3757
3628
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3758
3629
|
readonly status: import("effect/Schema").Boolean;
|
|
3759
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/
|
|
3630
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3760
3631
|
readonly email: import("effect/Schema").String;
|
|
3761
3632
|
readonly otp: import("effect/Schema").String;
|
|
3762
3633
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -3809,4 +3680,133 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3809
3680
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3810
3681
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3811
3682
|
}>;
|
|
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
|
|
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> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/http-api/HttpApiError").NotFound | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
3782
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/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/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/http-api/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/http-api/HttpApiError").Unauthorized | typeof import("effect/http-api/HttpApiError").Forbidden | typeof import("effect/http-api/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false>>;
|