@krak-stack/auth 0.1.51 → 0.1.53
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 +60 -0
- package/dist/admin/schema.d.ts +64 -0
- package/dist/admin/schema.js +41 -0
- package/dist/api.d.ts +297 -216
- package/dist/components/admin-organization-form.js +110 -69
- package/dist/components/admin-organizations.js +99 -6
- package/dist/components/admin-users.js +38 -4
- package/dist/components/auth-client-api.d.ts +60 -0
- package/dist/components/auth-client.d.ts +17 -1
- package/dist/components/auth-client.js +15 -1
- package/dist/components/auth-forms.d.ts +1 -0
- package/dist/components/auth-forms.js +309 -252
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/organization-switcher.d.ts +18 -7
- package/dist/components/organization-switcher.js +264 -189
- package/dist/components/user-button.js +197 -178
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +2 -0
- package/dist/server/api.group.d.ts +22 -1
- package/dist/server/api.group.js +10 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/schema.d.ts +20 -0
- package/dist/server/schema.js +5 -0
- package/dist/service.d.ts +50 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -56,80 +56,40 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
56
56
|
readonly createdAt: import("effect/Schema").Date;
|
|
57
57
|
readonly updatedAt: import("effect/Schema").Date;
|
|
58
58
|
}>;
|
|
59
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
63
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
64
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
65
|
-
readonly id: import("effect/Schema").String;
|
|
66
|
-
readonly key: import("effect/Schema").String;
|
|
67
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
68
|
-
readonly organizationId: import("effect/Schema").String;
|
|
69
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
59
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | 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/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
60
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
61
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
70
62
|
readonly id: import("effect/Schema").String;
|
|
71
63
|
readonly name: import("effect/Schema").String;
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
|
|
81
|
-
readonly
|
|
64
|
+
readonly email: import("effect/Schema").String;
|
|
65
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
66
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
67
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
68
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
69
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
70
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
71
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
72
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
73
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
74
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
75
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
77
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
82
78
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
83
|
-
readonly
|
|
84
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
85
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
86
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
87
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
88
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
89
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
90
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
91
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
92
|
-
readonly google: import("effect/Schema").Boolean;
|
|
93
|
-
readonly signUp: import("effect/Schema").Boolean;
|
|
94
|
-
readonly signUpName: import("effect/Schema").Boolean;
|
|
95
|
-
}>;
|
|
96
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
97
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
98
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
99
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
100
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
101
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
102
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
103
|
-
readonly url: import("effect/Schema").String;
|
|
104
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
105
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
106
|
-
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">]>>;
|
|
107
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
108
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
109
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
110
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
111
|
-
readonly message: import("effect/Schema").String;
|
|
112
|
-
readonly code: import("effect/Schema").String;
|
|
113
|
-
}>>;
|
|
114
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
79
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
115
80
|
readonly id: import("effect/Schema").String;
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
81
|
+
readonly name: import("effect/Schema").String;
|
|
82
|
+
readonly email: import("effect/Schema").String;
|
|
83
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
84
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
85
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
86
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
87
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
123
88
|
readonly createdAt: import("effect/Schema").Date;
|
|
124
89
|
readonly updatedAt: import("effect/Schema").Date;
|
|
125
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
126
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
127
90
|
}>>;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
131
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
132
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
91
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
92
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
133
93
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
134
94
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
135
95
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -247,8 +207,28 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
247
207
|
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
248
208
|
}>>;
|
|
249
209
|
}>>;
|
|
210
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
211
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
212
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
213
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
214
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
215
|
+
readonly id: import("effect/Schema").String;
|
|
216
|
+
readonly name: import("effect/Schema").String;
|
|
217
|
+
readonly slug: import("effect/Schema").String;
|
|
218
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
219
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
220
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
221
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
222
|
+
readonly name: import("effect/Schema").String;
|
|
223
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
224
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
225
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
226
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
227
|
+
}>>;
|
|
228
|
+
}>>;
|
|
229
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
250
230
|
readonly createdAt: import("effect/Schema").Date;
|
|
251
|
-
}
|
|
231
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
252
232
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
253
233
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
254
234
|
readonly id: import("effect/Schema").String;
|
|
@@ -287,30 +267,130 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
287
267
|
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
288
268
|
}>>;
|
|
289
269
|
}>>;
|
|
270
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
290
271
|
readonly createdAt: import("effect/Schema").Date;
|
|
291
272
|
}>>;
|
|
292
273
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
293
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<"
|
|
294
|
-
readonly
|
|
295
|
-
|
|
274
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
275
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
276
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
277
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
278
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
279
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
280
|
+
readonly id: import("effect/Schema").String;
|
|
281
|
+
readonly key: import("effect/Schema").String;
|
|
282
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
283
|
+
readonly organizationId: import("effect/Schema").String;
|
|
284
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
296
285
|
readonly id: import("effect/Schema").String;
|
|
297
286
|
readonly name: import("effect/Schema").String;
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
303
|
-
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
|
|
307
|
-
readonly
|
|
308
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
309
|
-
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
310
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
311
|
-
readonly ids: import("effect/Schema").NonEmptyString;
|
|
287
|
+
readonly slug: import("effect/Schema").String;
|
|
288
|
+
readonly displayName: import("effect/Schema").String;
|
|
289
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
290
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
291
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
292
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
293
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
294
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
295
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
296
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
312
297
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
313
|
-
readonly
|
|
298
|
+
readonly projectKey: import("effect/Schema").String;
|
|
299
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
300
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
301
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
302
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
303
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
304
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
305
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
306
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
307
|
+
readonly google: import("effect/Schema").Boolean;
|
|
308
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
309
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
310
|
+
}>;
|
|
311
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
312
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
313
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
314
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
315
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
316
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
317
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
318
|
+
readonly url: import("effect/Schema").String;
|
|
319
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
320
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
321
|
+
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">]>>;
|
|
322
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
323
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
324
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
325
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
326
|
+
readonly message: import("effect/Schema").String;
|
|
327
|
+
readonly code: import("effect/Schema").String;
|
|
328
|
+
}>>;
|
|
329
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
330
|
+
readonly id: import("effect/Schema").String;
|
|
331
|
+
readonly configId: import("effect/Schema").String;
|
|
332
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
333
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
334
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
335
|
+
readonly referenceId: import("effect/Schema").String;
|
|
336
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
337
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
338
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
339
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
340
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
341
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
342
|
+
}>>;
|
|
343
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
344
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
345
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
346
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
347
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never>, false>>;
|
|
348
|
+
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
349
|
+
readonly session: import("effect/Schema").Struct<{
|
|
350
|
+
readonly id: import("effect/Schema").String;
|
|
351
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
352
|
+
readonly token: import("effect/Schema").String;
|
|
353
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
354
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
355
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
356
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
357
|
+
readonly userId: import("effect/Schema").String;
|
|
358
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
359
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
360
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
361
|
+
}>;
|
|
362
|
+
readonly user: import("effect/Schema").Struct<{
|
|
363
|
+
readonly id: import("effect/Schema").String;
|
|
364
|
+
readonly name: import("effect/Schema").String;
|
|
365
|
+
readonly email: import("effect/Schema").String;
|
|
366
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
367
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
368
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
369
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
370
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
371
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
372
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
373
|
+
}>;
|
|
374
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./better-auth/schema").TooManyRequests>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
375
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
376
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
377
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
378
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
379
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
380
|
+
readonly session: import("effect/Schema").Struct<{
|
|
381
|
+
readonly id: import("effect/Schema").String;
|
|
382
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
383
|
+
readonly token: import("effect/Schema").String;
|
|
384
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
385
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
386
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
387
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
388
|
+
readonly userId: import("effect/Schema").String;
|
|
389
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
390
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
391
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
392
|
+
}>;
|
|
393
|
+
readonly user: import("effect/Schema").Struct<{
|
|
314
394
|
readonly id: import("effect/Schema").String;
|
|
315
395
|
readonly name: import("effect/Schema").String;
|
|
316
396
|
readonly email: import("effect/Schema").String;
|
|
@@ -321,10 +401,81 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
321
401
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
322
402
|
readonly createdAt: import("effect/Schema").Date;
|
|
323
403
|
readonly updatedAt: import("effect/Schema").Date;
|
|
404
|
+
}>;
|
|
405
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | 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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
406
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
407
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
408
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
409
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
410
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
411
|
+
readonly id: import("effect/Schema").String;
|
|
412
|
+
readonly key: import("effect/Schema").String;
|
|
413
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
414
|
+
readonly organizationId: import("effect/Schema").String;
|
|
415
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
416
|
+
readonly id: import("effect/Schema").String;
|
|
417
|
+
readonly name: import("effect/Schema").String;
|
|
418
|
+
readonly slug: import("effect/Schema").String;
|
|
419
|
+
readonly displayName: import("effect/Schema").String;
|
|
420
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
421
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
422
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
423
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
424
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
425
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
426
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
427
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
428
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
429
|
+
readonly projectKey: import("effect/Schema").String;
|
|
430
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
431
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
432
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
433
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
434
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
435
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
436
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
437
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
438
|
+
readonly google: import("effect/Schema").Boolean;
|
|
439
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
440
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
441
|
+
}>;
|
|
442
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
443
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
444
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
445
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
446
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
447
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
448
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
449
|
+
readonly url: import("effect/Schema").String;
|
|
450
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
451
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
452
|
+
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">]>>;
|
|
453
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
454
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
455
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
456
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
457
|
+
readonly message: import("effect/Schema").String;
|
|
458
|
+
readonly code: import("effect/Schema").String;
|
|
324
459
|
}>>;
|
|
325
|
-
readonly
|
|
326
|
-
|
|
327
|
-
|
|
460
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
461
|
+
readonly id: import("effect/Schema").String;
|
|
462
|
+
readonly configId: import("effect/Schema").String;
|
|
463
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
464
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
465
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
466
|
+
readonly referenceId: import("effect/Schema").String;
|
|
467
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
468
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
469
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
470
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
471
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
472
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
473
|
+
}>>;
|
|
474
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
475
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
476
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
477
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
478
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
328
479
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
329
480
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
330
481
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -349,13 +500,26 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
349
500
|
readonly name: import("effect/Schema").NonEmptyString;
|
|
350
501
|
readonly slug: import("effect/Schema").NonEmptyString;
|
|
351
502
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
503
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
352
504
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
353
505
|
readonly id: import("effect/Schema").String;
|
|
354
506
|
readonly name: import("effect/Schema").String;
|
|
355
507
|
readonly slug: import("effect/Schema").String;
|
|
356
508
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
357
509
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
510
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
511
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
358
512
|
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
513
|
+
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
514
|
+
readonly id: import("effect/Schema").String;
|
|
515
|
+
readonly name: import("effect/Schema").String;
|
|
516
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
517
|
+
}>>>;
|
|
518
|
+
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
519
|
+
readonly id: import("effect/Schema").String;
|
|
520
|
+
readonly name: import("effect/Schema").String;
|
|
521
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
522
|
+
}>>>;
|
|
359
523
|
readonly createdAt: import("effect/Schema").Date;
|
|
360
524
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<"dashboardStats", "GET", "/api/auth/admin/dashboard-stats", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
361
525
|
readonly days: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"7">, import("effect/Schema").Literal<"14">, import("effect/Schema").Literal<"30">, import("effect/Schema").Literal<"90">]>>;
|
|
@@ -425,7 +589,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
425
589
|
readonly slug: import("effect/Schema").String;
|
|
426
590
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
427
591
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
592
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
593
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
428
594
|
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
595
|
+
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
596
|
+
readonly id: import("effect/Schema").String;
|
|
597
|
+
readonly name: import("effect/Schema").String;
|
|
598
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
599
|
+
}>>>;
|
|
600
|
+
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
601
|
+
readonly id: import("effect/Schema").String;
|
|
602
|
+
readonly name: import("effect/Schema").String;
|
|
603
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
604
|
+
}>>>;
|
|
429
605
|
readonly createdAt: import("effect/Schema").Date;
|
|
430
606
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disableApiKeyRateLimit", "POST", "/api/auth/admin/api-keys/:id/disable-rate-limit", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
431
607
|
readonly id: import("effect/Schema").String;
|
|
@@ -521,7 +697,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
521
697
|
readonly slug: string;
|
|
522
698
|
readonly logo?: string | null | undefined;
|
|
523
699
|
readonly metadata?: string | null | undefined;
|
|
700
|
+
readonly userId?: string | null | undefined;
|
|
701
|
+
readonly parentId?: string | null | undefined;
|
|
524
702
|
readonly memberCount?: number | undefined;
|
|
703
|
+
readonly memberPreviews?: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
704
|
+
readonly id: import("effect/Schema").String;
|
|
705
|
+
readonly name: import("effect/Schema").String;
|
|
706
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
707
|
+
}, "Type">[] | undefined;
|
|
708
|
+
readonly projects?: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
709
|
+
readonly id: import("effect/Schema").String;
|
|
710
|
+
readonly name: import("effect/Schema").String;
|
|
711
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
712
|
+
}, "Type">[] | undefined;
|
|
525
713
|
readonly createdAt: Date;
|
|
526
714
|
}>>;
|
|
527
715
|
readonly meta: import("effect/Schema").Struct<{
|
|
@@ -552,6 +740,16 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
552
740
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
553
741
|
readonly banReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
554
742
|
readonly banExpires: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
743
|
+
readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
744
|
+
readonly id: import("effect/Schema").String;
|
|
745
|
+
readonly name: import("effect/Schema").String;
|
|
746
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
747
|
+
}>>;
|
|
748
|
+
readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
749
|
+
readonly id: import("effect/Schema").String;
|
|
750
|
+
readonly name: import("effect/Schema").String;
|
|
751
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
752
|
+
}>>;
|
|
555
753
|
}, "Type">>>;
|
|
556
754
|
readonly meta: import("effect/Schema").Struct<{
|
|
557
755
|
readonly page: import("effect/Schema").Int;
|
|
@@ -632,142 +830,25 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
632
830
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
633
831
|
readonly slug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
634
832
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
833
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
635
834
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
636
835
|
readonly id: import("effect/Schema").String;
|
|
637
836
|
readonly name: import("effect/Schema").String;
|
|
638
837
|
readonly slug: import("effect/Schema").String;
|
|
639
838
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
640
839
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
840
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
841
|
+
readonly parentId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
641
842
|
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
642
|
-
readonly
|
|
643
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
644
|
-
readonly session: import("effect/Schema").Struct<{
|
|
645
|
-
readonly id: import("effect/Schema").String;
|
|
646
|
-
readonly expiresAt: import("effect/Schema").Date;
|
|
647
|
-
readonly token: import("effect/Schema").String;
|
|
648
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
649
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
650
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
651
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
652
|
-
readonly userId: import("effect/Schema").String;
|
|
653
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
654
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
655
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
656
|
-
}>;
|
|
657
|
-
readonly user: import("effect/Schema").Struct<{
|
|
843
|
+
readonly memberPreviews: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
658
844
|
readonly id: import("effect/Schema").String;
|
|
659
845
|
readonly name: import("effect/Schema").String;
|
|
660
|
-
readonly email: import("effect/Schema").String;
|
|
661
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
662
846
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
666
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
667
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
668
|
-
}>;
|
|
669
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./better-auth/schema").TooManyRequests>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"organizationImpersonateUser", "POST", "/api/auth/organization/impersonate-user", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
670
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
671
|
-
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
672
|
-
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
673
|
-
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
674
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
675
|
-
readonly session: import("effect/Schema").Struct<{
|
|
676
|
-
readonly id: import("effect/Schema").String;
|
|
677
|
-
readonly expiresAt: import("effect/Schema").Date;
|
|
678
|
-
readonly token: import("effect/Schema").String;
|
|
679
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
680
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
681
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
682
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
683
|
-
readonly userId: import("effect/Schema").String;
|
|
684
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
685
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
686
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
687
|
-
}>;
|
|
688
|
-
readonly user: import("effect/Schema").Struct<{
|
|
847
|
+
}>>>;
|
|
848
|
+
readonly projects: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
689
849
|
readonly id: import("effect/Schema").String;
|
|
690
850
|
readonly name: import("effect/Schema").String;
|
|
691
|
-
readonly
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
696
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
697
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
698
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
699
|
-
}>;
|
|
700
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | 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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
701
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
702
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
703
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
704
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
705
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
706
|
-
readonly id: import("effect/Schema").String;
|
|
707
|
-
readonly key: import("effect/Schema").String;
|
|
708
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
709
|
-
readonly organizationId: import("effect/Schema").String;
|
|
710
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
711
|
-
readonly id: import("effect/Schema").String;
|
|
712
|
-
readonly name: import("effect/Schema").String;
|
|
713
|
-
readonly slug: import("effect/Schema").String;
|
|
714
|
-
readonly displayName: import("effect/Schema").String;
|
|
715
|
-
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
716
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
717
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
718
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
719
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
720
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
721
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
722
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
723
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
724
|
-
readonly projectKey: import("effect/Schema").String;
|
|
725
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
726
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
727
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
728
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
729
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
730
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
731
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
732
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
733
|
-
readonly google: import("effect/Schema").Boolean;
|
|
734
|
-
readonly signUp: import("effect/Schema").Boolean;
|
|
735
|
-
readonly signUpName: import("effect/Schema").Boolean;
|
|
736
|
-
}>;
|
|
737
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"setPassword", "POST", "/api/auth/set-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
738
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
739
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
740
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
741
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
742
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
743
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
744
|
-
readonly url: import("effect/Schema").String;
|
|
745
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
746
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
747
|
-
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">]>>;
|
|
748
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
749
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
750
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
751
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
752
|
-
readonly message: import("effect/Schema").String;
|
|
753
|
-
readonly code: import("effect/Schema").String;
|
|
754
|
-
}>>;
|
|
755
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
756
|
-
readonly id: import("effect/Schema").String;
|
|
757
|
-
readonly configId: import("effect/Schema").String;
|
|
758
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
759
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
760
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
761
|
-
readonly referenceId: import("effect/Schema").String;
|
|
762
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
763
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
764
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
765
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
766
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
767
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
768
|
-
}>>;
|
|
769
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/api/auth/verify-password", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
770
|
-
readonly password: import("effect/Schema").NonEmptyString;
|
|
771
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
772
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
773
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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").ExtraBadRequest>, never, never>, false>>;
|
|
851
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
852
|
+
}>>>;
|
|
853
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
854
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|