@krak-stack/auth 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/api.group.d.ts +4 -0
- package/dist/admin/schema.d.ts +3 -0
- package/dist/admin/schema.js +4 -1
- package/dist/api.d.ts +922 -908
- package/dist/auth/api.group.d.ts +46 -46
- package/dist/auth/api.group.js +2 -1
- package/dist/auth/schema.d.ts +1 -0
- package/dist/auth/schema.js +4 -0
- package/dist/components/admin-organizations.d.ts +111 -1
- package/dist/components/admin-organizations.js +184 -35
- package/dist/components/admin-users.js +56 -80
- package/dist/components/associated-projects-notice.d.ts +6 -0
- package/dist/components/associated-projects-notice.js +24 -0
- package/dist/components/auth-atoms.d.ts +3 -3
- package/dist/components/auth-client-api.d.ts +56 -46
- package/dist/components/auth-forms.d.ts +1 -1
- package/dist/components/auth-forms.js +115 -33
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +1 -1
- package/dist/components/organization-switcher.d.ts +4 -0
- package/dist/components/organization-switcher.js +50 -44
- package/dist/components/scrollable-dialog.d.ts +13 -0
- package/dist/components/scrollable-dialog.js +12 -0
- package/dist/components/user-button.d.ts +4 -0
- package/dist/components/user-button.js +76 -70
- package/dist/extra/api.group.d.ts +6 -1
- package/dist/extra/api.group.js +14 -1
- package/dist/extra/schema.d.ts +12 -0
- package/dist/extra/schema.js +18 -0
- package/dist/server/actor.d.ts +2 -1
- package/dist/service.d.ts +104 -92
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -1,57 +1,10 @@
|
|
|
1
1
|
import { HttpApi } from "effect/unstable/httpapi";
|
|
2
|
-
export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
readonly
|
|
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<{
|
|
2
|
+
export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminBanUser", "POST", "/api/auth/admin/ban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3
|
+
readonly userId: import("effect/Schema").String;
|
|
4
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
5
|
+
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
6
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
7
|
+
readonly user: import("effect/Schema").Struct<{
|
|
55
8
|
readonly id: import("effect/Schema").String;
|
|
56
9
|
readonly name: import("effect/Schema").String;
|
|
57
10
|
readonly email: import("effect/Schema").String;
|
|
@@ -91,100 +44,29 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
91
44
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
92
45
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
93
46
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
47
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
48
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
49
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
94
50
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
95
|
-
readonly createdAt: import("effect/Schema").
|
|
96
|
-
readonly updatedAt: import("effect/Schema").
|
|
97
|
-
}
|
|
98
|
-
|
|
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;
|
|
51
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
52
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
53
|
+
}>;
|
|
54
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
185
55
|
readonly userId: import("effect/Schema").String;
|
|
186
|
-
|
|
187
|
-
readonly
|
|
56
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
57
|
+
readonly session: import("effect/Schema").Struct<{
|
|
58
|
+
readonly id: import("effect/Schema").String;
|
|
59
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
60
|
+
readonly token: import("effect/Schema").String;
|
|
61
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
62
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
63
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
64
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
65
|
+
readonly userId: import("effect/Schema").String;
|
|
66
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
67
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
68
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
69
|
+
}>;
|
|
188
70
|
readonly user: import("effect/Schema").Struct<{
|
|
189
71
|
readonly id: import("effect/Schema").String;
|
|
190
72
|
readonly name: import("effect/Schema").String;
|
|
@@ -225,138 +107,27 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
225
107
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
226
108
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
227
109
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
110
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
111
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
112
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
228
113
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
229
|
-
readonly createdAt: import("effect/Schema").
|
|
230
|
-
readonly updatedAt: import("effect/Schema").
|
|
114
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
115
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
116
|
+
}>;
|
|
117
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
118
|
+
readonly session: import("effect/Schema").Struct<{
|
|
119
|
+
readonly id: import("effect/Schema").String;
|
|
120
|
+
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
121
|
+
readonly token: import("effect/Schema").String;
|
|
122
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
123
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
124
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
125
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
126
|
+
readonly userId: import("effect/Schema").String;
|
|
127
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
128
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
129
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
231
130
|
}>;
|
|
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
131
|
readonly user: import("effect/Schema").Struct<{
|
|
361
132
|
readonly id: import("effect/Schema").String;
|
|
362
133
|
readonly name: import("effect/Schema").String;
|
|
@@ -397,202 +168,15 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
397
168
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
398
169
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
399
170
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
171
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
172
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
173
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
400
174
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
401
|
-
readonly createdAt: import("effect/Schema").
|
|
402
|
-
readonly updatedAt: import("effect/Schema").
|
|
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;
|
|
175
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
176
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
546
177
|
}>;
|
|
547
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("
|
|
548
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
549
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
550
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
551
|
-
}>>, 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<{
|
|
552
|
-
keyId: import("effect/Schema").NonEmptyString;
|
|
553
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
554
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
555
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
556
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
557
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
558
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
559
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
560
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
561
|
-
}>>, 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<{
|
|
562
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
563
|
-
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
564
|
-
readonly url: import("effect/Schema").String;
|
|
565
|
-
}>>, 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<{
|
|
566
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
567
|
-
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">]>>;
|
|
568
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
569
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
570
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
571
|
-
readonly message: import("effect/Schema").String;
|
|
572
|
-
readonly code: import("effect/Schema").String;
|
|
573
|
-
}>>;
|
|
574
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
575
|
-
readonly id: import("effect/Schema").String;
|
|
576
|
-
readonly configId: import("effect/Schema").String;
|
|
577
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
578
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
579
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
580
|
-
readonly referenceId: import("effect/Schema").String;
|
|
581
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
582
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
583
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
584
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
585
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
586
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
587
|
-
}>>;
|
|
588
|
-
}>>, 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<{
|
|
589
|
-
readonly password: import("effect/Schema").NonEmptyString;
|
|
590
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
591
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
592
|
-
}>>, 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<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
593
179
|
readonly userId: import("effect/Schema").String;
|
|
594
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
595
|
-
readonly banExpiresIn: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
596
180
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
597
181
|
readonly user: import("effect/Schema").Struct<{
|
|
598
182
|
readonly id: import("effect/Schema").String;
|
|
@@ -641,186 +225,12 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
641
225
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
642
226
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
643
227
|
}>;
|
|
644
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
645
|
-
readonly userId: import("effect/Schema").String;
|
|
646
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
647
|
-
readonly session: import("effect/Schema").Struct<{
|
|
648
|
-
readonly id: import("effect/Schema").String;
|
|
649
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
650
|
-
readonly token: import("effect/Schema").String;
|
|
651
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
652
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
653
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
654
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
655
|
-
readonly userId: import("effect/Schema").String;
|
|
656
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
657
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
658
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
659
|
-
}>;
|
|
660
|
-
readonly user: import("effect/Schema").Struct<{
|
|
661
|
-
readonly id: import("effect/Schema").String;
|
|
662
|
-
readonly name: import("effect/Schema").String;
|
|
663
|
-
readonly email: import("effect/Schema").String;
|
|
664
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
665
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
666
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
667
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
668
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
669
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
670
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
671
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
672
|
-
}>>;
|
|
673
|
-
}>>>;
|
|
674
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
675
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
676
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
677
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
678
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
679
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
680
|
-
}>>;
|
|
681
|
-
}>>>;
|
|
682
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
683
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
684
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
685
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
686
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
687
|
-
}>>;
|
|
688
|
-
}>>>;
|
|
689
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
690
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
691
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
692
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
693
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
694
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
695
|
-
}>>;
|
|
696
|
-
}>>>;
|
|
697
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
698
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
699
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
700
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
701
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
702
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
703
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
704
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
705
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
706
|
-
}>;
|
|
707
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
708
|
-
readonly session: import("effect/Schema").Struct<{
|
|
709
|
-
readonly id: import("effect/Schema").String;
|
|
710
|
-
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
711
|
-
readonly token: import("effect/Schema").String;
|
|
712
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
713
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
714
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
715
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
716
|
-
readonly userId: import("effect/Schema").String;
|
|
717
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
718
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
719
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
720
|
-
}>;
|
|
721
|
-
readonly user: import("effect/Schema").Struct<{
|
|
722
|
-
readonly id: import("effect/Schema").String;
|
|
723
|
-
readonly name: import("effect/Schema").String;
|
|
724
|
-
readonly email: import("effect/Schema").String;
|
|
725
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
726
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
727
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
728
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
729
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
730
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
731
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
732
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
733
|
-
}>>;
|
|
734
|
-
}>>>;
|
|
735
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
736
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
737
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
738
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
739
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
740
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
741
|
-
}>>;
|
|
742
|
-
}>>>;
|
|
743
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
744
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
745
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
746
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
747
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
748
|
-
}>>;
|
|
749
|
-
}>>>;
|
|
750
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
751
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
752
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
753
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
754
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
755
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
756
|
-
}>>;
|
|
757
|
-
}>>>;
|
|
758
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
759
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
760
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
761
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
762
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
763
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
764
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
765
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
766
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
767
|
-
}>;
|
|
768
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
769
|
-
readonly userId: import("effect/Schema").String;
|
|
770
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
771
|
-
readonly user: import("effect/Schema").Struct<{
|
|
772
|
-
readonly id: import("effect/Schema").String;
|
|
773
|
-
readonly name: import("effect/Schema").String;
|
|
774
|
-
readonly email: import("effect/Schema").String;
|
|
775
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
776
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
777
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
778
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
779
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
780
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
781
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
782
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
783
|
-
}>>;
|
|
784
|
-
}>>>;
|
|
785
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
786
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
787
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
788
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
789
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
790
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
791
|
-
}>>;
|
|
792
|
-
}>>>;
|
|
793
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
794
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
795
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
796
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
797
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
798
|
-
}>>;
|
|
799
|
-
}>>>;
|
|
800
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
801
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
802
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
803
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
804
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
805
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
806
|
-
}>>;
|
|
807
|
-
}>>>;
|
|
808
|
-
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
809
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
810
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
811
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
812
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
813
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
814
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
815
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
816
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
817
|
-
}>;
|
|
818
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
819
229
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
820
230
|
readonly keyId: import("effect/Schema").String;
|
|
821
231
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
822
232
|
readonly success: import("effect/Schema").Boolean;
|
|
823
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
824
234
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
825
235
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
826
236
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -856,7 +266,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
856
266
|
readonly total: import("effect/Schema").Number;
|
|
857
267
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
858
268
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
859
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
860
270
|
readonly newPassword: import("effect/Schema").String;
|
|
861
271
|
readonly currentPassword: import("effect/Schema").String;
|
|
862
272
|
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -909,7 +319,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
909
319
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
910
320
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
911
321
|
}>;
|
|
912
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
322
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
913
323
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
914
324
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
915
325
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -973,7 +383,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
973
383
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
974
384
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
975
385
|
}>;
|
|
976
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
977
387
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
978
388
|
readonly provider: import("effect/Schema").String;
|
|
979
389
|
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
@@ -1040,7 +450,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1040
450
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1041
451
|
}>>;
|
|
1042
452
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1043
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
453
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1044
454
|
readonly id: import("effect/Schema").String;
|
|
1045
455
|
readonly providerId: import("effect/Schema").String;
|
|
1046
456
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -1048,14 +458,14 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1048
458
|
readonly accountId: import("effect/Schema").String;
|
|
1049
459
|
readonly userId: import("effect/Schema").String;
|
|
1050
460
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1051
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
461
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1052
462
|
readonly accept: import("effect/Schema").Boolean;
|
|
1053
463
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1054
464
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1055
465
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1056
466
|
readonly redirect: import("effect/Schema").Boolean;
|
|
1057
467
|
readonly url: import("effect/Schema").String;
|
|
1058
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
468
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1059
469
|
readonly client_id: import("effect/Schema").String;
|
|
1060
470
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1061
471
|
readonly client_id: import("effect/Schema").String;
|
|
@@ -1066,7 +476,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1066
476
|
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1067
477
|
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1068
478
|
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1069
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
479
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1070
480
|
readonly invitationId: import("effect/Schema").String;
|
|
1071
481
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1072
482
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1088,7 +498,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1088
498
|
readonly role: import("effect/Schema").String;
|
|
1089
499
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1090
500
|
}>>;
|
|
1091
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1092
502
|
readonly invitationId: import("effect/Schema").String;
|
|
1093
503
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1094
504
|
readonly id: import("effect/Schema").String;
|
|
@@ -1101,7 +511,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1101
511
|
readonly status: import("effect/Schema").String;
|
|
1102
512
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1103
513
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1104
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
514
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1105
515
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
1106
516
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
1107
517
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -1117,7 +527,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1117
527
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1118
528
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1119
529
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1120
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
530
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1121
531
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1122
532
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1123
533
|
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -1187,7 +597,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1187
597
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1188
598
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1189
599
|
}>>;
|
|
1190
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1191
601
|
readonly id: import("effect/Schema").String;
|
|
1192
602
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1193
603
|
readonly id: import("effect/Schema").String;
|
|
@@ -1202,7 +612,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1202
612
|
readonly organizationName: import("effect/Schema").String;
|
|
1203
613
|
readonly organizationSlug: import("effect/Schema").String;
|
|
1204
614
|
readonly inviterEmail: import("effect/Schema").String;
|
|
1205
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1206
616
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1207
617
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
1208
618
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
@@ -1268,7 +678,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1268
678
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1269
679
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1270
680
|
}>;
|
|
1271
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
681
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1272
682
|
readonly email: import("effect/Schema").String;
|
|
1273
683
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1274
684
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1285,7 +695,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1285
695
|
readonly status: import("effect/Schema").String;
|
|
1286
696
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1287
697
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1288
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1289
699
|
readonly organizationId: import("effect/Schema").String;
|
|
1290
700
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1291
701
|
readonly id: import("effect/Schema").String;
|
|
@@ -1293,7 +703,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1293
703
|
readonly userId: import("effect/Schema").String;
|
|
1294
704
|
readonly role: import("effect/Schema").String;
|
|
1295
705
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1296
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
706
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1297
707
|
readonly id: import("effect/Schema").String;
|
|
1298
708
|
readonly name: import("effect/Schema").String;
|
|
1299
709
|
readonly slug: import("effect/Schema").String;
|
|
@@ -1302,7 +712,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1302
712
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1303
713
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1304
714
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1305
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
715
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1306
716
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1307
717
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1308
718
|
readonly id: import("effect/Schema").String;
|
|
@@ -1315,7 +725,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1315
725
|
readonly status: import("effect/Schema").String;
|
|
1316
726
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1317
727
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1318
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
728
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1319
729
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1320
730
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
1321
731
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1372,7 +782,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1372
782
|
}>;
|
|
1373
783
|
}>>;
|
|
1374
784
|
readonly total: import("effect/Schema").Number;
|
|
1375
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
785
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1376
786
|
readonly id: import("effect/Schema").String;
|
|
1377
787
|
readonly email: import("effect/Schema").String;
|
|
1378
788
|
readonly role: import("effect/Schema").String;
|
|
@@ -1383,7 +793,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1383
793
|
readonly status: import("effect/Schema").String;
|
|
1384
794
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
1385
795
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
1386
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
796
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1387
797
|
readonly invitationId: import("effect/Schema").String;
|
|
1388
798
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1389
799
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1405,7 +815,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1405
815
|
readonly role: import("effect/Schema").String;
|
|
1406
816
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1407
817
|
}>>;
|
|
1408
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1409
819
|
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
1410
820
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1411
821
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1416,7 +826,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1416
826
|
readonly role: import("effect/Schema").String;
|
|
1417
827
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1418
828
|
}>;
|
|
1419
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
829
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1420
830
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1421
831
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1422
832
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -1428,7 +838,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1428
838
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1429
839
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1430
840
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1431
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
841
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1432
842
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1433
843
|
readonly data: import("effect/Schema").Struct<{
|
|
1434
844
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -1446,7 +856,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1446
856
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1447
857
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1448
858
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1449
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
859
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1450
860
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
1451
861
|
readonly memberId: import("effect/Schema").String;
|
|
1452
862
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1456,23 +866,23 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1456
866
|
readonly userId: import("effect/Schema").String;
|
|
1457
867
|
readonly role: import("effect/Schema").String;
|
|
1458
868
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1459
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
869
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1460
870
|
readonly email: import("effect/Schema").String;
|
|
1461
871
|
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1462
872
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1463
873
|
readonly status: import("effect/Schema").Boolean;
|
|
1464
874
|
readonly message: import("effect/Schema").String;
|
|
1465
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
875
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1466
876
|
readonly newPassword: import("effect/Schema").String;
|
|
1467
877
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1468
878
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1469
879
|
readonly status: import("effect/Schema").Boolean;
|
|
1470
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
880
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1471
881
|
readonly email: import("effect/Schema").String;
|
|
1472
882
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
1473
883
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1474
884
|
readonly success: import("effect/Schema").Boolean;
|
|
1475
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
885
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1476
886
|
readonly email: import("effect/Schema").String;
|
|
1477
887
|
readonly password: import("effect/Schema").String;
|
|
1478
888
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1533,7 +943,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1533
943
|
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
1534
944
|
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1535
945
|
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1536
|
-
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1537
947
|
readonly email: import("effect/Schema").String;
|
|
1538
948
|
readonly otp: import("effect/Schema").String;
|
|
1539
949
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1587,7 +997,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1587
997
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1588
998
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1589
999
|
}>;
|
|
1590
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1591
1001
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1592
1002
|
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1593
1003
|
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1664,23 +1074,23 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1664
1074
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1665
1075
|
}>>;
|
|
1666
1076
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1667
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1077
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"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<{
|
|
1668
1078
|
readonly success: import("effect/Schema").Boolean;
|
|
1669
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1670
1080
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1671
1081
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1672
1082
|
readonly status: import("effect/Schema").Boolean;
|
|
1673
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1674
1084
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1675
1085
|
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1676
1086
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1677
1087
|
readonly totpURI: import("effect/Schema").String;
|
|
1678
1088
|
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1679
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1089
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1680
1090
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1681
1091
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1682
1092
|
readonly status: import("effect/Schema").Boolean;
|
|
1683
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1093
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1684
1094
|
readonly code: import("effect/Schema").String;
|
|
1685
1095
|
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1686
1096
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -1727,19 +1137,604 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1727
1137
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1728
1138
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1729
1139
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1730
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1731
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1732
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1148
|
+
readonly code: import("effect/Schema").String;
|
|
1149
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1150
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1201
|
+
readonly code: import("effect/Schema").String;
|
|
1202
|
+
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1203
|
+
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1204
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1205
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1206
|
+
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1254
|
+
readonly providerId: import("effect/Schema").String;
|
|
1255
|
+
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1256
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1257
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1258
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1259
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1260
|
+
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1261
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1262
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1263
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1264
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1265
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1266
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1267
|
+
}>>;
|
|
1268
|
+
}>>>;
|
|
1269
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1270
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1271
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1272
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1273
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1274
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1275
|
+
}>>;
|
|
1276
|
+
}>>>;
|
|
1277
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1278
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1279
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1280
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1281
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1282
|
+
}>>;
|
|
1283
|
+
}>>>;
|
|
1284
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1285
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1286
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1287
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1288
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1289
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1290
|
+
}>>;
|
|
1291
|
+
}>>>;
|
|
1292
|
+
}>>>;
|
|
1293
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1294
|
+
readonly status: import("effect/Schema").Boolean;
|
|
1295
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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<{
|
|
1302
|
+
readonly id: import("effect/Schema").String;
|
|
1303
|
+
readonly name: import("effect/Schema").String;
|
|
1304
|
+
readonly email: import("effect/Schema").String;
|
|
1305
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1306
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1307
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1308
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1309
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1310
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1311
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1312
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1313
|
+
}>>;
|
|
1314
|
+
}>>>;
|
|
1315
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1316
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1317
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1318
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1319
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1320
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1321
|
+
}>>;
|
|
1322
|
+
}>>>;
|
|
1323
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1324
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1325
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1326
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1327
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1328
|
+
}>>;
|
|
1329
|
+
}>>>;
|
|
1330
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1331
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1332
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1333
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1334
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1335
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1336
|
+
}>>;
|
|
1337
|
+
}>>>;
|
|
1338
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1339
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1340
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1341
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1342
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1343
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1344
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1345
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1346
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
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/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1349
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1350
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1351
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1352
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1353
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1354
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1355
|
+
readonly id: import("effect/Schema").String;
|
|
1356
|
+
readonly key: import("effect/Schema").String;
|
|
1357
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1358
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1359
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
1360
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1361
|
+
readonly id: import("effect/Schema").String;
|
|
1362
|
+
readonly name: import("effect/Schema").String;
|
|
1363
|
+
readonly slug: import("effect/Schema").String;
|
|
1364
|
+
readonly displayName: import("effect/Schema").String;
|
|
1365
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1366
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1367
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1368
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1369
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1370
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1371
|
+
}>>;
|
|
1372
|
+
}>>>;
|
|
1373
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1374
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1375
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1376
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1377
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1378
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1379
|
+
}>>;
|
|
1380
|
+
}>>>;
|
|
1381
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1382
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1383
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1384
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1385
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1386
|
+
}>>;
|
|
1387
|
+
}>>>;
|
|
1388
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1389
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1390
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1391
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1392
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1393
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1394
|
+
}>>;
|
|
1395
|
+
}>>>;
|
|
1396
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1397
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1398
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1399
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1400
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1401
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1402
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1403
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1404
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1405
|
+
}>>;
|
|
1406
|
+
readonly formatted: import("effect/Schema").String;
|
|
1407
|
+
}>>>;
|
|
1408
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1409
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1410
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1411
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1412
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1413
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1414
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1415
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1416
|
+
readonly projectKey: import("effect/Schema").String;
|
|
1417
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1418
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1419
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1420
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1421
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1422
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
1423
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
1424
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
1425
|
+
readonly google: import("effect/Schema").Boolean;
|
|
1426
|
+
}>;
|
|
1427
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1428
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1429
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1430
|
+
readonly id: import("effect/Schema").String;
|
|
1431
|
+
readonly name: import("effect/Schema").String;
|
|
1432
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1433
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
1434
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1435
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1436
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1437
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
1438
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1439
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1440
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
1441
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
1442
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1443
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1444
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1445
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1446
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
1447
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
1448
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1449
|
+
readonly url: import("effect/Schema").String;
|
|
1450
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1451
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
1452
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
1453
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1454
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
1455
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1456
|
+
readonly message: import("effect/Schema").String;
|
|
1457
|
+
readonly code: import("effect/Schema").String;
|
|
1458
|
+
}>>;
|
|
1459
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1460
|
+
readonly id: import("effect/Schema").String;
|
|
1461
|
+
readonly configId: import("effect/Schema").String;
|
|
1462
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1463
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1464
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1465
|
+
readonly referenceId: import("effect/Schema").String;
|
|
1466
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1467
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1468
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1469
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1470
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1471
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
1472
|
+
}>>;
|
|
1473
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1474
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
1475
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1476
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1477
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1478
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1479
|
+
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
1480
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1481
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1482
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1483
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1484
|
+
readonly id: import("effect/Schema").String;
|
|
1485
|
+
readonly hostname: import("effect/Schema").String;
|
|
1486
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1487
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1488
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1489
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1490
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1491
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1492
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1493
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1494
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1495
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1496
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1497
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1498
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1499
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1500
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1501
|
+
readonly id: import("effect/Schema").String;
|
|
1502
|
+
readonly hostname: import("effect/Schema").String;
|
|
1503
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1504
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1505
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1506
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1507
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1508
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1509
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1510
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1511
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1512
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1513
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1514
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1515
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1516
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1517
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1518
|
+
readonly id: import("effect/Schema").String;
|
|
1519
|
+
readonly hostname: import("effect/Schema").String;
|
|
1520
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1521
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1522
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1523
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1524
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1525
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1526
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1527
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1528
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1529
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1530
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1531
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1532
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1533
|
+
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
1534
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1535
|
+
readonly id: import("effect/Schema").String;
|
|
1536
|
+
readonly hostname: import("effect/Schema").String;
|
|
1537
|
+
readonly rootHostname: import("effect/Schema").String;
|
|
1538
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1539
|
+
readonly projectName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1540
|
+
readonly projectLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1541
|
+
readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1542
|
+
readonly organizationName: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1543
|
+
readonly organizationLogo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1544
|
+
readonly hostnameId: import("effect/Schema").String;
|
|
1545
|
+
readonly managed: import("effect/Schema").Boolean;
|
|
1546
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1547
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1548
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1549
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1550
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1551
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1552
|
+
readonly required: import("effect/Schema").Boolean;
|
|
1553
|
+
readonly status: import("effect/Schema").String;
|
|
1554
|
+
readonly type: import("effect/Schema").String;
|
|
1555
|
+
readonly name: import("effect/Schema").String;
|
|
1556
|
+
readonly value: import("effect/Schema").String;
|
|
1557
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1558
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1559
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
1560
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1561
|
+
readonly id: import("effect/Schema").String;
|
|
1562
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1563
|
+
readonly userId: import("effect/Schema").String;
|
|
1564
|
+
readonly role: import("effect/Schema").String;
|
|
1565
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1566
|
+
readonly user: import("effect/Schema").Struct<{
|
|
1567
|
+
readonly id: import("effect/Schema").String;
|
|
1568
|
+
readonly name: import("effect/Schema").String;
|
|
1569
|
+
readonly email: import("effect/Schema").String;
|
|
1570
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1571
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1572
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1573
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1574
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1575
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1576
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1577
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1578
|
+
}>>;
|
|
1579
|
+
}>>>;
|
|
1580
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1581
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1582
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1583
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1584
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1585
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1586
|
+
}>>;
|
|
1587
|
+
}>>>;
|
|
1588
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1589
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1590
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1591
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1592
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1593
|
+
}>>;
|
|
1594
|
+
}>>>;
|
|
1595
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1596
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1597
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1598
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1599
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1600
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1601
|
+
}>>;
|
|
1602
|
+
}>>>;
|
|
1603
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1604
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1605
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1733
1606
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1734
|
-
readonly createdAt: import("effect/Schema").
|
|
1735
|
-
readonly updatedAt: import("effect/Schema").
|
|
1607
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1608
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1736
1609
|
}>;
|
|
1737
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("
|
|
1738
|
-
readonly
|
|
1739
|
-
|
|
1740
|
-
readonly
|
|
1741
|
-
|
|
1742
|
-
readonly
|
|
1610
|
+
}>>, 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<{
|
|
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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationChildren", "GET", "/api/organizations/:organizationId/children", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1671
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1672
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1673
|
+
readonly id: import("effect/Schema").String;
|
|
1674
|
+
readonly name: import("effect/Schema").String;
|
|
1675
|
+
readonly slug: import("effect/Schema").String;
|
|
1676
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1677
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1678
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1679
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1680
|
+
readonly name: import("effect/Schema").String;
|
|
1681
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1682
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1683
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1684
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
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/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<{
|
|
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;
|
|
1743
1738
|
readonly user: import("effect/Schema").Struct<{
|
|
1744
1739
|
readonly id: import("effect/Schema").String;
|
|
1745
1740
|
readonly name: import("effect/Schema").String;
|
|
@@ -1780,26 +1775,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1780
1775
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1781
1776
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1782
1777
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1783
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1784
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1785
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1786
1778
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1787
|
-
readonly createdAt: import("effect/Schema").
|
|
1788
|
-
readonly updatedAt: import("effect/Schema").
|
|
1779
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1780
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1789
1781
|
}>;
|
|
1790
|
-
}
|
|
1791
|
-
readonly
|
|
1792
|
-
readonly
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1796
|
-
readonly user: import("effect/Schema").Struct<{
|
|
1782
|
+
}>>>, 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<{
|
|
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<{
|
|
1797
1787
|
readonly id: import("effect/Schema").String;
|
|
1798
1788
|
readonly name: import("effect/Schema").String;
|
|
1799
|
-
readonly
|
|
1800
|
-
readonly
|
|
1801
|
-
readonly
|
|
1802
|
-
|
|
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
|
+
}>>;
|
|
1803
1800
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1804
1801
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1805
1802
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1830,25 +1827,31 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1830
1827
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1831
1828
|
}>>;
|
|
1832
1829
|
}>>>;
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
readonly
|
|
1851
|
-
|
|
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/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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<{
|
|
1852
1855
|
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1853
1856
|
readonly email: import("effect/Schema").NonEmptyString;
|
|
1854
1857
|
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
@@ -1879,16 +1882,20 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1879
1882
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
1880
1883
|
}>>;
|
|
1881
1884
|
}>>>;
|
|
1882
|
-
}>>>;
|
|
1883
|
-
|
|
1884
|
-
readonly
|
|
1885
|
-
|
|
1886
|
-
readonly
|
|
1887
|
-
readonly
|
|
1888
|
-
}>>, never, import("effect/Schema").
|
|
1889
|
-
readonly
|
|
1890
|
-
|
|
1891
|
-
readonly
|
|
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/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<{
|
|
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/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<{
|
|
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<{
|
|
1892
1899
|
readonly id: import("effect/Schema").String;
|
|
1893
1900
|
readonly name: import("effect/Schema").String;
|
|
1894
1901
|
readonly email: import("effect/Schema").String;
|
|
@@ -1928,139 +1935,13 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1928
1935
|
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1929
1936
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1930
1937
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1931
|
-
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1932
|
-
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1933
|
-
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1934
1938
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1935
|
-
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1936
|
-
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1937
|
-
}>;
|
|
1938
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never>, false>>;
|
|
1939
|
-
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<{
|
|
1940
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1941
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1942
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1943
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1944
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1945
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1946
|
-
readonly id: import("effect/Schema").String;
|
|
1947
|
-
readonly key: import("effect/Schema").String;
|
|
1948
|
-
}>>, 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<{
|
|
1949
|
-
readonly organizationId: import("effect/Schema").String;
|
|
1950
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
1951
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1952
|
-
readonly id: import("effect/Schema").String;
|
|
1953
|
-
readonly name: import("effect/Schema").String;
|
|
1954
|
-
readonly slug: import("effect/Schema").String;
|
|
1955
|
-
readonly displayName: import("effect/Schema").String;
|
|
1956
|
-
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1957
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1958
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
1959
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1960
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1961
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1962
|
-
}>>;
|
|
1963
|
-
}>>>;
|
|
1964
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1965
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
1966
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1967
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1968
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1969
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1970
|
-
}>>;
|
|
1971
|
-
}>>>;
|
|
1972
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1973
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1974
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1975
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1976
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1977
|
-
}>>;
|
|
1978
|
-
}>>>;
|
|
1979
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1980
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1981
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
1982
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1983
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1984
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1985
|
-
}>>;
|
|
1986
|
-
}>>>;
|
|
1987
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1988
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1989
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1990
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1991
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1992
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1993
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1994
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1995
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
1996
|
-
}>>;
|
|
1997
|
-
readonly formatted: import("effect/Schema").String;
|
|
1998
|
-
}>>>;
|
|
1999
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2000
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2001
|
-
}>>, 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<{
|
|
2002
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2003
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2004
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2005
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2006
|
-
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2007
|
-
readonly projectKey: import("effect/Schema").String;
|
|
2008
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2009
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2010
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2011
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2012
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2013
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
2014
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
2015
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
2016
|
-
readonly google: import("effect/Schema").Boolean;
|
|
2017
|
-
}>;
|
|
2018
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2019
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
2020
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2021
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2022
|
-
}>>, 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<{
|
|
2023
|
-
keyId: import("effect/Schema").NonEmptyString;
|
|
2024
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2025
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
2026
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
2027
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
2028
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2029
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
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<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
2033
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
2034
|
-
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2035
|
-
readonly url: import("effect/Schema").String;
|
|
2036
|
-
}>>, 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<{
|
|
2037
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
2038
|
-
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">]>>;
|
|
2039
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2040
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
2041
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2042
|
-
readonly message: import("effect/Schema").String;
|
|
2043
|
-
readonly code: import("effect/Schema").String;
|
|
2044
|
-
}>>;
|
|
2045
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2046
|
-
readonly id: import("effect/Schema").String;
|
|
2047
|
-
readonly configId: import("effect/Schema").String;
|
|
2048
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2049
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2050
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2051
|
-
readonly referenceId: import("effect/Schema").String;
|
|
2052
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
2053
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2054
1939
|
readonly createdAt: import("effect/Schema").Date;
|
|
2055
1940
|
readonly updatedAt: import("effect/Schema").Date;
|
|
2056
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
2057
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
2058
1941
|
}>>;
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
2063
|
-
}>>, 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/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
1944
|
+
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2064
1945
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
2065
1946
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
2066
1947
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -2099,6 +1980,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2099
1980
|
readonly id: import("effect/Schema").String;
|
|
2100
1981
|
readonly name: import("effect/Schema").String;
|
|
2101
1982
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1983
|
+
readonly role: import("effect/Schema").String;
|
|
2102
1984
|
}>>>;
|
|
2103
1985
|
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2104
1986
|
readonly id: import("effect/Schema").String;
|
|
@@ -2183,6 +2065,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2183
2065
|
readonly id: import("effect/Schema").String;
|
|
2184
2066
|
readonly name: import("effect/Schema").String;
|
|
2185
2067
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2068
|
+
readonly role: import("effect/Schema").String;
|
|
2186
2069
|
}>>>;
|
|
2187
2070
|
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2188
2071
|
readonly id: import("effect/Schema").String;
|
|
@@ -2297,6 +2180,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2297
2180
|
readonly id: import("effect/Schema").String;
|
|
2298
2181
|
readonly name: import("effect/Schema").String;
|
|
2299
2182
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2183
|
+
readonly role: import("effect/Schema").String;
|
|
2300
2184
|
}>>>;
|
|
2301
2185
|
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2302
2186
|
readonly id: import("effect/Schema").String;
|
|
@@ -2442,6 +2326,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2442
2326
|
readonly id: import("effect/Schema").String;
|
|
2443
2327
|
readonly name: import("effect/Schema").String;
|
|
2444
2328
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2329
|
+
readonly role: import("effect/Schema").String;
|
|
2445
2330
|
}>>>;
|
|
2446
2331
|
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2447
2332
|
readonly id: import("effect/Schema").String;
|
|
@@ -2501,7 +2386,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2501
2386
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2502
2387
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2503
2388
|
}>;
|
|
2504
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminImpersonateUser", "POST", "/api/auth/admin/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2505
2390
|
readonly userId: import("effect/Schema").String;
|
|
2506
2391
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2507
2392
|
readonly session: import("effect/Schema").Struct<{
|
|
@@ -2564,7 +2449,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2564
2449
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2565
2450
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2566
2451
|
}>;
|
|
2567
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never,
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminStopImpersonating", "POST", "/api/auth/admin/stop-impersonating", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2568
2453
|
readonly session: import("effect/Schema").Struct<{
|
|
2569
2454
|
readonly id: import("effect/Schema").String;
|
|
2570
2455
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
@@ -2625,7 +2510,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2625
2510
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2626
2511
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2627
2512
|
}>;
|
|
2628
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"adminUnbanUser", "POST", "/api/auth/admin/unban-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2629
2514
|
readonly userId: import("effect/Schema").String;
|
|
2630
2515
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2631
2516
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -2675,12 +2560,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2675
2560
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2676
2561
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2677
2562
|
}>;
|
|
2678
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyDelete", "POST", "/api/auth/api-key/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2679
2564
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2680
2565
|
readonly keyId: import("effect/Schema").String;
|
|
2681
2566
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2682
2567
|
readonly success: import("effect/Schema").Boolean;
|
|
2683
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"apiKeyList", "GET", "/api/auth/api-key/list", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2684
2569
|
readonly configId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2685
2570
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2686
2571
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -2716,7 +2601,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2716
2601
|
readonly total: import("effect/Schema").Number;
|
|
2717
2602
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
2718
2603
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
|
|
2719
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"changePassword", "POST", "/api/auth/change-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2720
2605
|
readonly newPassword: import("effect/Schema").String;
|
|
2721
2606
|
readonly currentPassword: import("effect/Schema").String;
|
|
2722
2607
|
readonly revokeOtherSessions: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -2769,7 +2654,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2769
2654
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2770
2655
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2771
2656
|
}>;
|
|
2772
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2773
2658
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2774
2659
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2775
2660
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -2833,7 +2718,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2833
2718
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2834
2719
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2835
2720
|
}>;
|
|
2836
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2837
2722
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2838
2723
|
readonly provider: import("effect/Schema").String;
|
|
2839
2724
|
readonly idToken: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
@@ -2900,7 +2785,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2900
2785
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2901
2786
|
}>>;
|
|
2902
2787
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
2903
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAccounts", "GET", "/api/auth/list-accounts", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
2904
2789
|
readonly id: import("effect/Schema").String;
|
|
2905
2790
|
readonly providerId: import("effect/Schema").String;
|
|
2906
2791
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
@@ -2908,14 +2793,14 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2908
2793
|
readonly accountId: import("effect/Schema").String;
|
|
2909
2794
|
readonly userId: import("effect/Schema").String;
|
|
2910
2795
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2911
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthConsent", "POST", "/api/auth/oauth2/consent", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2912
2797
|
readonly accept: import("effect/Schema").Boolean;
|
|
2913
2798
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2914
2799
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2915
2800
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2916
2801
|
readonly redirect: import("effect/Schema").Boolean;
|
|
2917
2802
|
readonly url: import("effect/Schema").String;
|
|
2918
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"oauthPublicClient", "GET", "/api/auth/oauth2/public-client", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2919
2804
|
readonly client_id: import("effect/Schema").String;
|
|
2920
2805
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2921
2806
|
readonly client_id: import("effect/Schema").String;
|
|
@@ -2926,7 +2811,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2926
2811
|
readonly tos_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2927
2812
|
readonly policy_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2928
2813
|
readonly redirect_uris: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
2929
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationAcceptInvitation", "POST", "/api/auth/organization/accept-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2930
2815
|
readonly invitationId: import("effect/Schema").String;
|
|
2931
2816
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2932
2817
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -2948,7 +2833,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2948
2833
|
readonly role: import("effect/Schema").String;
|
|
2949
2834
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2950
2835
|
}>>;
|
|
2951
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCancelInvitation", "POST", "/api/auth/organization/cancel-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2952
2837
|
readonly invitationId: import("effect/Schema").String;
|
|
2953
2838
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2954
2839
|
readonly id: import("effect/Schema").String;
|
|
@@ -2961,7 +2846,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2961
2846
|
readonly status: import("effect/Schema").String;
|
|
2962
2847
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
2963
2848
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
2964
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationCreate", "POST", "/api/auth/organization/create", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2965
2850
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
2966
2851
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
2967
2852
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -2977,7 +2862,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2977
2862
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2978
2863
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
2979
2864
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2980
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetFull", "GET", "/api/auth/organization/get-full-organization", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2981
2866
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2982
2867
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2983
2868
|
readonly membersLimit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
@@ -3047,7 +2932,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3047
2932
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3048
2933
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3049
2934
|
}>>;
|
|
3050
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationGetInvitation", "GET", "/api/auth/organization/get-invitation", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3051
2936
|
readonly id: import("effect/Schema").String;
|
|
3052
2937
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3053
2938
|
readonly id: import("effect/Schema").String;
|
|
@@ -3062,7 +2947,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3062
2947
|
readonly organizationName: import("effect/Schema").String;
|
|
3063
2948
|
readonly organizationSlug: import("effect/Schema").String;
|
|
3064
2949
|
readonly inviterEmail: import("effect/Schema").String;
|
|
3065
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3066
2951
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3067
2952
|
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
3068
2953
|
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
@@ -3128,7 +3013,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3128
3013
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3129
3014
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3130
3015
|
}>;
|
|
3131
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationInviteMember", "POST", "/api/auth/organization/invite-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3132
3017
|
readonly email: import("effect/Schema").String;
|
|
3133
3018
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
3134
3019
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3145,7 +3030,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3145
3030
|
readonly status: import("effect/Schema").String;
|
|
3146
3031
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3147
3032
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3148
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationLeave", "POST", "/api/auth/organization/leave", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3149
3034
|
readonly organizationId: import("effect/Schema").String;
|
|
3150
3035
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3151
3036
|
readonly id: import("effect/Schema").String;
|
|
@@ -3153,7 +3038,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3153
3038
|
readonly userId: import("effect/Schema").String;
|
|
3154
3039
|
readonly role: import("effect/Schema").String;
|
|
3155
3040
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3156
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationList", "GET", "/api/auth/organization/list", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3157
3042
|
readonly id: import("effect/Schema").String;
|
|
3158
3043
|
readonly name: import("effect/Schema").String;
|
|
3159
3044
|
readonly slug: import("effect/Schema").String;
|
|
@@ -3162,7 +3047,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3162
3047
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3163
3048
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3164
3049
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3165
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListInvitations", "GET", "/api/auth/organization/list-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3166
3051
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3167
3052
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3168
3053
|
readonly id: import("effect/Schema").String;
|
|
@@ -3175,7 +3060,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3175
3060
|
readonly status: import("effect/Schema").String;
|
|
3176
3061
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3177
3062
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3178
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListMembers", "GET", "/api/auth/organization/list-members", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3179
3064
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
3180
3065
|
readonly offset: import("effect/Schema").optional<import("effect/Schema").NumberFromString>;
|
|
3181
3066
|
readonly sortBy: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3232,7 +3117,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3232
3117
|
}>;
|
|
3233
3118
|
}>>;
|
|
3234
3119
|
readonly total: import("effect/Schema").Number;
|
|
3235
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationListUserInvitations", "GET", "/api/auth/organization/list-user-invitations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3236
3121
|
readonly id: import("effect/Schema").String;
|
|
3237
3122
|
readonly email: import("effect/Schema").String;
|
|
3238
3123
|
readonly role: import("effect/Schema").String;
|
|
@@ -3243,7 +3128,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3243
3128
|
readonly status: import("effect/Schema").String;
|
|
3244
3129
|
readonly expiresAt: import("effect/Schema").DateFromString;
|
|
3245
3130
|
readonly createdAt: import("effect/Schema").optional<import("effect/Schema").DateFromString>;
|
|
3246
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRejectInvitation", "POST", "/api/auth/organization/reject-invitation", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3247
3132
|
readonly invitationId: import("effect/Schema").String;
|
|
3248
3133
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3249
3134
|
readonly invitation: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3265,7 +3150,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3265
3150
|
readonly role: import("effect/Schema").String;
|
|
3266
3151
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3267
3152
|
}>>;
|
|
3268
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationRemoveMember", "POST", "/api/auth/organization/remove-member", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3269
3154
|
readonly memberIdOrEmail: import("effect/Schema").String;
|
|
3270
3155
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3271
3156
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -3276,7 +3161,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3276
3161
|
readonly role: import("effect/Schema").String;
|
|
3277
3162
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3278
3163
|
}>;
|
|
3279
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationSetActive", "POST", "/api/auth/organization/set-active", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3280
3165
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3281
3166
|
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3282
3167
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3288,7 +3173,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3288
3173
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3289
3174
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3290
3175
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3291
|
-
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdate", "POST", "/api/auth/organization/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3292
3177
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3293
3178
|
readonly data: import("effect/Schema").Struct<{
|
|
3294
3179
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -3306,7 +3191,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3306
3191
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3307
3192
|
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3308
3193
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3309
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationUpdateMemberRole", "POST", "/api/auth/organization/update-member-role", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3310
3195
|
readonly role: import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>]>;
|
|
3311
3196
|
readonly memberId: import("effect/Schema").String;
|
|
3312
3197
|
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3316,23 +3201,23 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3316
3201
|
readonly userId: import("effect/Schema").String;
|
|
3317
3202
|
readonly role: import("effect/Schema").String;
|
|
3318
3203
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3319
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"requestPasswordReset", "POST", "/api/auth/request-password-reset", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3320
3205
|
readonly email: import("effect/Schema").String;
|
|
3321
3206
|
readonly redirectTo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3322
3207
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3323
3208
|
readonly status: import("effect/Schema").Boolean;
|
|
3324
3209
|
readonly message: import("effect/Schema").String;
|
|
3325
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetPassword", "POST", "/api/auth/reset-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3326
3211
|
readonly newPassword: import("effect/Schema").String;
|
|
3327
3212
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3328
3213
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3329
3214
|
readonly status: import("effect/Schema").Boolean;
|
|
3330
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3331
3216
|
readonly email: import("effect/Schema").String;
|
|
3332
3217
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
3333
3218
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3334
3219
|
readonly success: import("effect/Schema").Boolean;
|
|
3335
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3336
3221
|
readonly email: import("effect/Schema").String;
|
|
3337
3222
|
readonly password: import("effect/Schema").String;
|
|
3338
3223
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3393,7 +3278,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3393
3278
|
readonly twoFactorRedirect: import("effect/Schema").Literal<true>;
|
|
3394
3279
|
readonly twoFactorMethods: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
3395
3280
|
readonly url: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3396
|
-
}>]>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInEmailOtp", "POST", "/api/auth/sign-in/email-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3397
3282
|
readonly email: import("effect/Schema").String;
|
|
3398
3283
|
readonly otp: import("effect/Schema").String;
|
|
3399
3284
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3447,7 +3332,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3447
3332
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3448
3333
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3449
3334
|
}>;
|
|
3450
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signInSocial", "POST", "/api/auth/sign-in/social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3451
3336
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3452
3337
|
readonly newUserCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3453
3338
|
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3524,23 +3409,23 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3524
3409
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3525
3410
|
}>>;
|
|
3526
3411
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3527
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3528
3413
|
readonly success: import("effect/Schema").Boolean;
|
|
3529
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3530
3415
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3531
3416
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3532
3417
|
readonly status: import("effect/Schema").Boolean;
|
|
3533
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorEnable", "POST", "/api/auth/two-factor/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3534
3419
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3535
3420
|
readonly issuer: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3536
3421
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3537
3422
|
readonly totpURI: import("effect/Schema").String;
|
|
3538
3423
|
readonly backupCodes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
3539
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorSendOtp", "POST", "/api/auth/two-factor/send-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3540
3425
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3541
3426
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3542
3427
|
readonly status: import("effect/Schema").Boolean;
|
|
3543
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyBackupCode", "POST", "/api/auth/two-factor/verify-backup-code", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3544
3429
|
readonly code: import("effect/Schema").String;
|
|
3545
3430
|
readonly disableSession: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3546
3431
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
@@ -3594,7 +3479,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3594
3479
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3595
3480
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3596
3481
|
}>;
|
|
3597
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyOtp", "POST", "/api/auth/two-factor/verify-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3598
3483
|
readonly code: import("effect/Schema").String;
|
|
3599
3484
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3600
3485
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3647,7 +3532,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3647
3532
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3648
3533
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3649
3534
|
}>;
|
|
3650
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"twoFactorVerifyTotp", "POST", "/api/auth/two-factor/verify-totp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3651
3536
|
readonly code: import("effect/Schema").String;
|
|
3652
3537
|
readonly trustDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3653
3538
|
readonly oauth_query: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -3700,12 +3585,12 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3700
3585
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3701
3586
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3702
3587
|
}>;
|
|
3703
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/api/auth/unlink-account", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3704
3589
|
readonly providerId: import("effect/Schema").String;
|
|
3705
3590
|
readonly accountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3706
3591
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3707
3592
|
readonly status: import("effect/Schema").Boolean;
|
|
3708
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateUser", "POST", "/api/auth/update-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3709
3594
|
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3710
3595
|
readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3711
3596
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -3742,7 +3627,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3742
3627
|
}>>>;
|
|
3743
3628
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3744
3629
|
readonly status: import("effect/Schema").Boolean;
|
|
3745
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
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/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyEmailOtp", "POST", "/api/auth/email-otp/verify-email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3746
3631
|
readonly email: import("effect/Schema").String;
|
|
3747
3632
|
readonly otp: import("effect/Schema").String;
|
|
3748
3633
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -3795,4 +3680,133 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3795
3680
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3796
3681
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3797
3682
|
}>;
|
|
3798
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest>, 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/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<{
|
|
3684
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
3685
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3686
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3687
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
3688
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
3689
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3690
|
+
readonly id: import("effect/Schema").String;
|
|
3691
|
+
readonly key: import("effect/Schema").String;
|
|
3692
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3693
|
+
readonly organizationId: import("effect/Schema").String;
|
|
3694
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
3695
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3696
|
+
readonly id: import("effect/Schema").String;
|
|
3697
|
+
readonly name: import("effect/Schema").String;
|
|
3698
|
+
readonly slug: import("effect/Schema").String;
|
|
3699
|
+
readonly displayName: import("effect/Schema").String;
|
|
3700
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3701
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3702
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
3703
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3704
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3705
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3706
|
+
}>>;
|
|
3707
|
+
}>>>;
|
|
3708
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3709
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
3710
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3711
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3712
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3713
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3714
|
+
}>>;
|
|
3715
|
+
}>>>;
|
|
3716
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3717
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
3718
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3719
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3720
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3721
|
+
}>>;
|
|
3722
|
+
}>>>;
|
|
3723
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3724
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
3725
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
3726
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3727
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3728
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3729
|
+
}>>;
|
|
3730
|
+
}>>>;
|
|
3731
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3732
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3733
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3734
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3735
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3736
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3737
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3738
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3739
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3740
|
+
}>>;
|
|
3741
|
+
readonly formatted: import("effect/Schema").String;
|
|
3742
|
+
}>>>;
|
|
3743
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3744
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3745
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3746
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3747
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3748
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3749
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3750
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3751
|
+
readonly projectKey: import("effect/Schema").String;
|
|
3752
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3753
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3754
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3755
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3756
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3757
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
3758
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
3759
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
3760
|
+
readonly google: import("effect/Schema").Boolean;
|
|
3761
|
+
}>;
|
|
3762
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listAssociatedProjects", "GET", "/api/auth/associated-projects", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3763
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3764
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3765
|
+
readonly id: import("effect/Schema").String;
|
|
3766
|
+
readonly name: import("effect/Schema").String;
|
|
3767
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3768
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
3769
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3770
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
3771
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3772
|
+
keyId: import("effect/Schema").NonEmptyString;
|
|
3773
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3774
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
3775
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
3776
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3777
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
3778
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
3779
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3780
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
3781
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
3782
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
3783
|
+
}>>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3784
|
+
readonly url: import("effect/Schema").String;
|
|
3785
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3786
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
3787
|
+
readonly configId: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>>;
|
|
3788
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3789
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
3790
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
3791
|
+
readonly message: import("effect/Schema").String;
|
|
3792
|
+
readonly code: import("effect/Schema").String;
|
|
3793
|
+
}>>;
|
|
3794
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
3795
|
+
readonly id: import("effect/Schema").String;
|
|
3796
|
+
readonly configId: import("effect/Schema").String;
|
|
3797
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3798
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3799
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3800
|
+
readonly referenceId: import("effect/Schema").String;
|
|
3801
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
3802
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
3803
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
3804
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
3805
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
3806
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
3807
|
+
}>>;
|
|
3808
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./extra/schema.js").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3809
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
3810
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3811
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
3812
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema.js").ExtraBadRequest>, never, never>, false>>;
|