@krak-stack/auth 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/api.d.ts +219 -219
- package/dist/components/admin-organizations.js +8 -1
- package/dist/components/admin-users.js +8 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/organization-switcher.d.ts +8 -3
- package/dist/components/organization-switcher.js +17 -12
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,6 +69,12 @@ import { OrganizationSwitcher, UserButton } from "@krak-stack/auth";
|
|
|
69
69
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
70
70
|
|
|
71
71
|
<OrganizationSwitcher
|
|
72
|
+
allowedOrganizationIds={["organization-id"]}
|
|
73
|
+
features={{
|
|
74
|
+
organizationCreation: false,
|
|
75
|
+
organizationSwitching: false,
|
|
76
|
+
userInvitations: false,
|
|
77
|
+
}}
|
|
72
78
|
menuActions={
|
|
73
79
|
<DropdownMenuItem render={<a href="/organization" />}>
|
|
74
80
|
Dashboard
|
package/dist/api.d.ts
CHANGED
|
@@ -56,40 +56,80 @@ 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
|
-
|
|
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<"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<{
|
|
60
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
61
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
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<{
|
|
62
70
|
readonly id: import("effect/Schema").String;
|
|
63
71
|
readonly name: import("effect/Schema").String;
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
|
|
73
|
-
readonly
|
|
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;
|
|
72
|
+
readonly slug: import("effect/Schema").String;
|
|
73
|
+
readonly displayName: import("effect/Schema").String;
|
|
74
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
75
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
77
|
+
}>>, 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<{
|
|
78
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
79
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
80
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
81
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
78
82
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
79
|
-
readonly
|
|
83
|
+
readonly projectKey: import("effect/Schema").String;
|
|
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<{
|
|
80
115
|
readonly id: import("effect/Schema").String;
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
116
|
+
readonly configId: import("effect/Schema").String;
|
|
117
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
118
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
119
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
120
|
+
readonly referenceId: import("effect/Schema").String;
|
|
121
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
122
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
88
123
|
readonly createdAt: import("effect/Schema").Date;
|
|
89
124
|
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>;
|
|
90
127
|
}>>;
|
|
91
|
-
|
|
92
|
-
|
|
128
|
+
}>>, 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<{
|
|
129
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
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<{
|
|
93
133
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
94
134
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
95
135
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -271,126 +311,27 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
271
311
|
readonly createdAt: import("effect/Schema").Date;
|
|
272
312
|
}>>;
|
|
273
313
|
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
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<"
|
|
275
|
-
readonly
|
|
276
|
-
|
|
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<{
|
|
314
|
+
}>>, 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<"users", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getUser", "GET", "/api/users/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
315
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
316
|
+
}>>, 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<{
|
|
285
317
|
readonly id: import("effect/Schema").String;
|
|
286
318
|
readonly name: import("effect/Schema").String;
|
|
287
|
-
readonly
|
|
288
|
-
readonly
|
|
289
|
-
readonly
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
292
|
-
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
|
|
296
|
-
readonly
|
|
319
|
+
readonly email: import("effect/Schema").String;
|
|
320
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
321
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
322
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
323
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
324
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
325
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
326
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
327
|
+
}>>, 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<{
|
|
328
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
329
|
+
}>>, 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<{
|
|
330
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
331
|
+
}>>, 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<{
|
|
332
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
297
333
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
298
|
-
readonly
|
|
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<{
|
|
334
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
394
335
|
readonly id: import("effect/Schema").String;
|
|
395
336
|
readonly name: import("effect/Schema").String;
|
|
396
337
|
readonly email: import("effect/Schema").String;
|
|
@@ -401,81 +342,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
401
342
|
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
402
343
|
readonly createdAt: import("effect/Schema").Date;
|
|
403
344
|
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;
|
|
459
345
|
}>>;
|
|
460
|
-
readonly
|
|
461
|
-
|
|
462
|
-
|
|
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<{
|
|
346
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
347
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
348
|
+
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", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
479
349
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
480
350
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
481
351
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -851,4 +721,134 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
851
721
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
852
722
|
}>>>;
|
|
853
723
|
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
|
|
724
|
+
}>>, 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<{
|
|
725
|
+
readonly session: import("effect/Schema").Struct<{
|
|
726
|
+
readonly id: import("effect/Schema").String;
|
|
727
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
728
|
+
readonly token: import("effect/Schema").String;
|
|
729
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
730
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
731
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
732
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
733
|
+
readonly userId: import("effect/Schema").String;
|
|
734
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
735
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
736
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
737
|
+
}>;
|
|
738
|
+
readonly user: import("effect/Schema").Struct<{
|
|
739
|
+
readonly id: import("effect/Schema").String;
|
|
740
|
+
readonly name: import("effect/Schema").String;
|
|
741
|
+
readonly email: import("effect/Schema").String;
|
|
742
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
743
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
744
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
745
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
746
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
747
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
748
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
749
|
+
}>;
|
|
750
|
+
}>>>, 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<{
|
|
751
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
752
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
753
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
754
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
755
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
756
|
+
readonly session: import("effect/Schema").Struct<{
|
|
757
|
+
readonly id: import("effect/Schema").String;
|
|
758
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
759
|
+
readonly token: import("effect/Schema").String;
|
|
760
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
761
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
762
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
763
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
764
|
+
readonly userId: import("effect/Schema").String;
|
|
765
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
766
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
767
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
768
|
+
}>;
|
|
769
|
+
readonly user: import("effect/Schema").Struct<{
|
|
770
|
+
readonly id: import("effect/Schema").String;
|
|
771
|
+
readonly name: import("effect/Schema").String;
|
|
772
|
+
readonly email: import("effect/Schema").String;
|
|
773
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
774
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
775
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
776
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
777
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
778
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
779
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
780
|
+
}>;
|
|
781
|
+
}>>, 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<{
|
|
782
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
783
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
784
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
785
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
786
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
787
|
+
readonly id: import("effect/Schema").String;
|
|
788
|
+
readonly key: import("effect/Schema").String;
|
|
789
|
+
}>>, 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<{
|
|
790
|
+
readonly organizationId: import("effect/Schema").String;
|
|
791
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
792
|
+
readonly id: import("effect/Schema").String;
|
|
793
|
+
readonly name: import("effect/Schema").String;
|
|
794
|
+
readonly slug: import("effect/Schema").String;
|
|
795
|
+
readonly displayName: import("effect/Schema").String;
|
|
796
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
797
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
798
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
799
|
+
}>>, 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<{
|
|
800
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
801
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
802
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
803
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
804
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
805
|
+
readonly projectKey: import("effect/Schema").String;
|
|
806
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
807
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
808
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
809
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
810
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
811
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
812
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
813
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
814
|
+
readonly google: import("effect/Schema").Boolean;
|
|
815
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
816
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
817
|
+
}>;
|
|
818
|
+
}>>, 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<{
|
|
819
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
820
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
821
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
822
|
+
}>>, 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<{
|
|
823
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
824
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
825
|
+
readonly url: import("effect/Schema").String;
|
|
826
|
+
}>>, 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<{
|
|
827
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
828
|
+
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">]>>;
|
|
829
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
830
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
831
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
832
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
833
|
+
readonly message: import("effect/Schema").String;
|
|
834
|
+
readonly code: import("effect/Schema").String;
|
|
835
|
+
}>>;
|
|
836
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
837
|
+
readonly id: import("effect/Schema").String;
|
|
838
|
+
readonly configId: import("effect/Schema").String;
|
|
839
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
840
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
841
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
842
|
+
readonly referenceId: import("effect/Schema").String;
|
|
843
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
844
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
845
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
846
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
847
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
848
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
849
|
+
}>>;
|
|
850
|
+
}>>, 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<{
|
|
851
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
852
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
853
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
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").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never>, false>>;
|
|
@@ -16,6 +16,7 @@ import { assetUrl, organizationBranding } from "./utils";
|
|
|
16
16
|
const defaultMessages = {
|
|
17
17
|
en: {
|
|
18
18
|
admin_column_created: "Created",
|
|
19
|
+
admin_column_id: "ID",
|
|
19
20
|
admin_column_members: "Members",
|
|
20
21
|
admin_column_organization: "Organization",
|
|
21
22
|
admin_column_projects: "Projects",
|
|
@@ -31,6 +32,7 @@ const defaultMessages = {
|
|
|
31
32
|
},
|
|
32
33
|
fr: {
|
|
33
34
|
admin_column_created: "Créé",
|
|
35
|
+
admin_column_id: "ID",
|
|
34
36
|
admin_column_members: "Membres",
|
|
35
37
|
admin_column_organization: "Organisation",
|
|
36
38
|
admin_column_projects: "Projets",
|
|
@@ -120,7 +122,7 @@ export function AdminOrganizationsTable({ from, reloadKey = 0, search, }) {
|
|
|
120
122
|
onFailure: () => false,
|
|
121
123
|
onSuccess: () => false,
|
|
122
124
|
});
|
|
123
|
-
return (_jsxs("div", { className: "flex flex-col gap-4", children: [error ? _jsx(ErrorMessage, { text: error }) : null, _jsx(DataTable, { columns: organizationColumns(m, locale, baseUrl), data: organizations, features: {
|
|
125
|
+
return (_jsxs("div", { className: "flex flex-col gap-4", children: [error ? _jsx(ErrorMessage, { text: error }) : null, _jsx(DataTable, { columns: organizationColumns(m, locale, baseUrl), data: organizations, defaultColumnVisibility: { id: false }, features: {
|
|
124
126
|
export: { baseName: "organizations" },
|
|
125
127
|
gallery: false,
|
|
126
128
|
pagination: { mode: "server", rowCount: total },
|
|
@@ -156,6 +158,11 @@ export function AdminOrganizationsTable({ from, reloadKey = 0, search, }) {
|
|
|
156
158
|
} })) : null] }));
|
|
157
159
|
}
|
|
158
160
|
const organizationColumns = (m, locale, baseUrl) => [
|
|
161
|
+
{
|
|
162
|
+
accessorKey: "id",
|
|
163
|
+
header: m.admin_column_id,
|
|
164
|
+
cell: ({ row }) => (_jsx("span", { className: "text-muted-foreground font-mono text-xs", children: row.original.id })),
|
|
165
|
+
},
|
|
159
166
|
{
|
|
160
167
|
accessorKey: "name",
|
|
161
168
|
header: m.admin_column_organization,
|
|
@@ -22,6 +22,7 @@ const defaultMessages = {
|
|
|
22
22
|
admin_ban_description: "Are you sure you want to ban {name} ({email})? They will not be able to sign in.",
|
|
23
23
|
admin_ban_title: "Ban user",
|
|
24
24
|
admin_column_created: "Created",
|
|
25
|
+
admin_column_id: "ID",
|
|
25
26
|
admin_column_last_signed_in: "Last signed in",
|
|
26
27
|
admin_column_organizations: "Organizations",
|
|
27
28
|
admin_column_projects: "Projects",
|
|
@@ -51,6 +52,7 @@ const defaultMessages = {
|
|
|
51
52
|
admin_ban_description: "Êtes-vous sûr de vouloir bannir {name} ({email}) ? Il ne pourra plus se connecter.",
|
|
52
53
|
admin_ban_title: "Bannir l'utilisateur",
|
|
53
54
|
admin_column_created: "Créé",
|
|
55
|
+
admin_column_id: "ID",
|
|
54
56
|
admin_column_last_signed_in: "Dernière connexion",
|
|
55
57
|
admin_column_organizations: "Organisations",
|
|
56
58
|
admin_column_projects: "Projets",
|
|
@@ -181,7 +183,7 @@ export function AdminUsersTable({ from, reloadKey = 0, search, }) {
|
|
|
181
183
|
await navigate({ to: "/" });
|
|
182
184
|
await router.invalidate();
|
|
183
185
|
};
|
|
184
|
-
return (_jsxs(_Fragment, { children: [error ? _jsx(ErrorMessage, { text: error }) : null, impersonateError ? _jsx(ErrorMessage, { text: impersonateError }) : null, _jsx(DataTable, { columns: userColumns(m, baseUrl), data: users, features: {
|
|
186
|
+
return (_jsxs(_Fragment, { children: [error ? _jsx(ErrorMessage, { text: error }) : null, impersonateError ? _jsx(ErrorMessage, { text: impersonateError }) : null, _jsx(DataTable, { columns: userColumns(m, baseUrl), data: users, defaultColumnVisibility: { id: false }, features: {
|
|
185
187
|
export: { baseName: "users" },
|
|
186
188
|
gallery: false,
|
|
187
189
|
pagination: { mode: "server", rowCount: total },
|
|
@@ -282,6 +284,11 @@ export function useAdminUsersTotal(search) {
|
|
|
282
284
|
});
|
|
283
285
|
}
|
|
284
286
|
const userColumns = (m, baseUrl) => [
|
|
287
|
+
{
|
|
288
|
+
accessorKey: "id",
|
|
289
|
+
header: m.admin_column_id,
|
|
290
|
+
cell: ({ row }) => (_jsx("span", { className: "text-muted-foreground font-mono text-xs", children: row.original.id })),
|
|
291
|
+
},
|
|
285
292
|
{
|
|
286
293
|
accessorKey: "email",
|
|
287
294
|
header: m.admin_column_user,
|
|
@@ -9,7 +9,7 @@ export { AdminOrganizationForm } from "./admin-organization-form";
|
|
|
9
9
|
export { AdminUsersTable, useAdminUsersTotal } from "./admin-users";
|
|
10
10
|
export { assetUrl } from "./utils";
|
|
11
11
|
export type { KrakstackAuthContextValue, KrakstackAuthLocale, KrakstackAuthProviderProps, } from "./auth-provider";
|
|
12
|
-
export type { OrganizationSwitcherDialog, OrganizationSwitcherProps, } from "./organization-switcher";
|
|
12
|
+
export type { OrganizationSwitcherDialog, OrganizationSwitcherFeatures, OrganizationSwitcherProps, } from "./organization-switcher";
|
|
13
13
|
export type { UserButtonDialog } from "./user-button";
|
|
14
14
|
export type { AuthUiClient } from "./auth-client";
|
|
15
|
-
export type { MemberRequiredMessages, MemberRequiredProps } from "./member-required";
|
|
15
|
+
export type { MemberRequiredMessages, MemberRequiredProps, } from "./member-required";
|
|
@@ -187,17 +187,22 @@ declare const messages: {
|
|
|
187
187
|
};
|
|
188
188
|
type OrganizationSwitcherMessageKey = keyof (typeof messages)["en"];
|
|
189
189
|
export type OrganizationSwitcherMessages = Partial<Record<OrganizationSwitcherMessageKey, string>>;
|
|
190
|
+
export type OrganizationSwitcherFeatures = {
|
|
191
|
+
organizationSwitching?: boolean;
|
|
192
|
+
organizationCreation?: boolean;
|
|
193
|
+
userInvitations?: boolean;
|
|
194
|
+
};
|
|
190
195
|
export type OrganizationSwitcherProps = {
|
|
191
196
|
authClient?: AuthUiClient;
|
|
192
197
|
baseUrl?: string | undefined;
|
|
193
198
|
side?: ComponentProps<typeof DropdownMenuContent>["side"];
|
|
194
199
|
className?: string;
|
|
195
200
|
defaultDialog?: OrganizationSwitcherDialog | null;
|
|
201
|
+
features?: OrganizationSwitcherFeatures;
|
|
196
202
|
hideTrigger?: boolean;
|
|
197
203
|
menuActions?: ReactNode;
|
|
198
204
|
renderUnauthenticated?: () => ReactNode;
|
|
199
|
-
|
|
200
|
-
organizationWhitelist?: readonly string[];
|
|
205
|
+
allowedOrganizationIds?: readonly string[];
|
|
201
206
|
messages?: OrganizationSwitcherMessages;
|
|
202
207
|
dialog?: OrganizationSwitcherDialog | null;
|
|
203
208
|
onChange?: (organization: OrganizationSummary | null) => void;
|
|
@@ -213,5 +218,5 @@ type OrganizationSummary = {
|
|
|
213
218
|
parentId?: string | null;
|
|
214
219
|
};
|
|
215
220
|
export type OrganizationSwitcherDialog = "create" | "manage" | "members" | "apiKeys" | "invitations";
|
|
216
|
-
export declare function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl, side, className, defaultDialog, hideTrigger, menuActions, renderUnauthenticated,
|
|
221
|
+
export declare function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl, side, className, defaultDialog, features, hideTrigger, menuActions, renderUnauthenticated, allowedOrganizationIds, messages, dialog: controlledDialog, onChange, onCreate, onDialogChange, }: OrganizationSwitcherProps): import("react").JSX.Element;
|
|
217
222
|
export {};
|
|
@@ -479,7 +479,7 @@ const organizationMetadataFromForm = async (value, m, uploadImage) => {
|
|
|
479
479
|
}
|
|
480
480
|
return { translations };
|
|
481
481
|
};
|
|
482
|
-
export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl, side = "bottom", className, defaultDialog = null, hideTrigger = false, menuActions, renderUnauthenticated,
|
|
482
|
+
export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl, side = "bottom", className, defaultDialog = null, features, hideTrigger = false, menuActions, renderUnauthenticated, allowedOrganizationIds, messages, dialog: controlledDialog, onChange, onCreate, onDialogChange, }) {
|
|
483
483
|
const auth = useKrakstackAuth();
|
|
484
484
|
const authClient = providedAuthClient ?? auth?.authClient;
|
|
485
485
|
if (!authClient) {
|
|
@@ -512,6 +512,9 @@ export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl,
|
|
|
512
512
|
const activeMemberRole = normalizeOrganizationRole(activeOrganization.data?.members.find((member) => member.userId === session.data?.user.id)?.role);
|
|
513
513
|
const canManageApiKeys = activeMemberRole === "owner" || activeMemberRole === "admin";
|
|
514
514
|
const canUpdateOrganization = canManageApiKeys;
|
|
515
|
+
const canSwitchOrganizations = features?.organizationSwitching ?? true;
|
|
516
|
+
const canCreateOrganization = features?.organizationCreation ?? true;
|
|
517
|
+
const canViewOrganizationInvitations = features?.userInvitations ?? true;
|
|
515
518
|
const setDialog = (next) => {
|
|
516
519
|
const nextDialog = typeof next === "function" ? next(dialog) : next;
|
|
517
520
|
if (nextDialog === dialog)
|
|
@@ -541,16 +544,18 @@ export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl,
|
|
|
541
544
|
}
|
|
542
545
|
const active = activeOrganization.data;
|
|
543
546
|
const activeName = active?.name;
|
|
544
|
-
const visibleOrganizations = organizations.data?.filter((organization) => !
|
|
545
|
-
|
|
546
|
-
const selectableOrganizations =
|
|
547
|
+
const visibleOrganizations = organizations.data?.filter((organization) => !allowedOrganizationIds ||
|
|
548
|
+
allowedOrganizationIds.includes(organization.id)) ?? [];
|
|
549
|
+
const selectableOrganizations = canSwitchOrganizations
|
|
547
550
|
? visibleOrganizations.filter((organization) => organization.id !== active?.id)
|
|
548
551
|
: [];
|
|
549
|
-
const hasOrganizationListItems = organizations.isPending ||
|
|
552
|
+
const hasOrganizationListItems = organizations.isPending ||
|
|
553
|
+
Boolean(organizations.error) ||
|
|
554
|
+
canSwitchOrganizations;
|
|
550
555
|
const refreshAfterInvitationAction = async (previousActiveId) => {
|
|
551
556
|
refreshUserInvitations();
|
|
552
557
|
await refresh();
|
|
553
|
-
if (
|
|
558
|
+
if (!canSwitchOrganizations && previousActiveId) {
|
|
554
559
|
const result = await authClient.organization.setActive({
|
|
555
560
|
organizationId: previousActiveId,
|
|
556
561
|
});
|
|
@@ -568,7 +573,7 @@ export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl,
|
|
|
568
573
|
? { imageSrc: activeDisplay.image }
|
|
569
574
|
: {}) }), _jsx(ChevronsUpDown, { className: "text-muted-foreground size-4 shrink-0 group-data-[collapsible=icon]:hidden" })] }) }), _jsx(DropdownMenuContent, { className: "min-w-64 rounded-lg", side: side, align: "end", sideOffset: 4, children: _jsxs(DropdownMenuGroup, { children: [_jsx(DropdownMenuLabel, { className: "p-0 font-normal", children: _jsx(AppBrand, { to: null, label: activeDisplay.name, subtitle: activeSubtitle, icon: Building2, variant: "sidebar", className: "px-1 py-1.5 text-left text-sm", ...(activeDisplay.image
|
|
570
575
|
? { imageSrc: activeDisplay.image }
|
|
571
|
-
: {}) }) }), menuActions ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), menuActions] })) : null, hasOrganizationListItems ? _jsx(DropdownMenuSeparator, {}) : null, organizations.isPending ? (_jsx(DropdownMenuItem, { disabled: true, children: m.organization_loading() })) : null, organizations.error ? (_jsx(DropdownMenuItem, { disabled: true, children: organizations.error.message })) : null,
|
|
576
|
+
: {}) }) }), menuActions ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), menuActions] })) : null, hasOrganizationListItems ? _jsx(DropdownMenuSeparator, {}) : null, organizations.isPending ? (_jsx(DropdownMenuItem, { disabled: true, children: m.organization_loading() })) : null, organizations.error ? (_jsx(DropdownMenuItem, { disabled: true, children: organizations.error.message })) : null, canSwitchOrganizations && selectableOrganizations.length ? (selectableOrganizations.map((organization) => {
|
|
572
577
|
const display = organizationDisplay(organization, m, baseUrl);
|
|
573
578
|
return (_jsx(DropdownMenuItem, { onClick: async () => {
|
|
574
579
|
const result = await authClient.organization.setActive({
|
|
@@ -579,16 +584,16 @@ export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl,
|
|
|
579
584
|
onChange?.(organization);
|
|
580
585
|
}
|
|
581
586
|
}, children: _jsx(AppBrand, { to: null, label: display.name, subtitle: organizationSwitcherSubtitle(organization, display.subtitle, m), icon: Building2, className: "w-full text-left [&>div:first-child]:size-7", ...(display.image ? { imageSrc: display.image } : {}) }) }, organization.id));
|
|
582
|
-
})) :
|
|
587
|
+
})) : canSwitchOrganizations && !organizations.isPending ? (_jsx(DropdownMenuItem, { disabled: true, children: active
|
|
583
588
|
? m.organization_switcher_no_other_organizations()
|
|
584
|
-
: m.organization_switcher_empty() })) : null,
|
|
589
|
+
: m.organization_switcher_empty() })) : null, canCreateOrganization || canViewOrganizationInvitations ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), canCreateOrganization ? (_jsxs(DropdownMenuItem, { onClick: openCreate, children: [_jsx(Plus, {}), m.organization_create_title()] })) : null, canViewOrganizationInvitations ? (_jsxs(DropdownMenuItem, { onClick: () => {
|
|
585
590
|
setDialog("invitations");
|
|
586
|
-
}, children: [_jsx(Mail, {}), _jsxs("span", { className: "flex flex-1 items-center justify-between gap-3", children: [m.organization_user_invitations_title(), userInvitations.length ? (_jsx(Badge, { variant: "secondary", children: userInvitations.length })) : null] })] })] })) : null, activeOrganization.data ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), (() => {
|
|
591
|
+
}, children: [_jsx(Mail, {}), _jsxs("span", { className: "flex flex-1 items-center justify-between gap-3", children: [m.organization_user_invitations_title(), userInvitations.length ? (_jsx(Badge, { variant: "secondary", className: "bg-secondary! text-secondary-foreground!", children: userInvitations.length })) : null] })] })) : null] })) : null, activeOrganization.data ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), (() => {
|
|
587
592
|
const organizationId = activeOrganization.data.id;
|
|
588
593
|
return (_jsxs(DropdownMenuItem, { onClick: () => {
|
|
589
594
|
void navigator.clipboard.writeText(organizationId);
|
|
590
595
|
}, children: [_jsx(Copy, {}), m.organization_copy_id()] }));
|
|
591
|
-
})(), canUpdateOrganization ? (_jsxs(DropdownMenuItem, { onClick: () => setDialog("manage"), children: [_jsx(PencilIcon, {}), m.organization_switcher_manage()] })) : null, _jsxs(DropdownMenuItem, { onClick: () => setDialog("members"), children: [_jsx(Users, {}), m.organization_members_title()] }), canManageApiKeys ? (_jsxs(DropdownMenuItem, { onClick: () => setDialog("apiKeys"), children: [_jsx(KeyRound, {}), m.user_button_api_keys()] })) : null] })) : null] }) })] })), _jsx(Dialog, { open: dialog === "create", onOpenChange: (open) => {
|
|
596
|
+
})(), canUpdateOrganization ? (_jsxs(DropdownMenuItem, { onClick: () => setDialog("manage"), children: [_jsx(PencilIcon, {}), m.organization_switcher_manage()] })) : null, _jsxs(DropdownMenuItem, { onClick: () => setDialog("members"), children: [_jsx(Users, {}), m.organization_members_title()] }), canManageApiKeys ? (_jsxs(DropdownMenuItem, { onClick: () => setDialog("apiKeys"), children: [_jsx(KeyRound, {}), m.user_button_api_keys()] })) : null] })) : null] }) })] })), _jsx(Dialog, { open: dialog === "create" && canCreateOrganization, onOpenChange: (open) => {
|
|
592
597
|
setDialog((current) => open ? "create" : current === "create" ? null : current);
|
|
593
598
|
}, children: _jsxs(DialogContent, { className: "max-h-[85vh] overflow-y-auto sm:max-w-xl", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { className: "text-2xl", children: m.organization_create_title() }), _jsx(DialogDescription, { children: m.organization_create_description() })] }), _jsx(Separator, {}), _jsx(CreateOrganizationSection, { authClient: authClient, baseUrl: baseUrl, organizations: visibleOrganizations, onCreated: async (organization) => {
|
|
594
599
|
setDialog(null);
|
|
@@ -611,7 +616,7 @@ export function OrganizationSwitcher({ authClient: providedAuthClient, baseUrl,
|
|
|
611
616
|
onChange?.(null);
|
|
612
617
|
} })) : null] }) }), _jsx(Dialog, { open: dialog === "apiKeys" && canManageApiKeys, onOpenChange: (open) => {
|
|
613
618
|
setDialog((current) => open ? "apiKeys" : current === "apiKeys" ? null : current);
|
|
614
|
-
}, children: _jsxs(DialogContent, { className: "max-h-[85vh] overflow-y-auto sm:max-w-3xl", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { className: "text-2xl", children: m.user_api_keys_title() }), _jsx(DialogDescription, { children: activeOrganization.data?.name })] }), _jsx(Separator, {}), activeOrganization.data ? (_jsx(OrganizationApiKeyManager, { authClient: authClient, organization: activeOrganization.data, active: dialog === "apiKeys" && canManageApiKeys })) : null] }) }), _jsx(Dialog, { open: dialog === "invitations" &&
|
|
619
|
+
}, children: _jsxs(DialogContent, { className: "max-h-[85vh] overflow-y-auto sm:max-w-3xl", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { className: "text-2xl", children: m.user_api_keys_title() }), _jsx(DialogDescription, { children: activeOrganization.data?.name })] }), _jsx(Separator, {}), activeOrganization.data ? (_jsx(OrganizationApiKeyManager, { authClient: authClient, organization: activeOrganization.data, active: dialog === "apiKeys" && canManageApiKeys })) : null] }) }), _jsx(Dialog, { open: dialog === "invitations" && canViewOrganizationInvitations, onOpenChange: (open) => {
|
|
615
620
|
setDialog((current) => open ? "invitations" : current === "invitations" ? null : current);
|
|
616
621
|
}, children: _jsxs(DialogContent, { className: "max-h-[85vh] overflow-y-auto sm:max-w-4xl", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { className: "text-2xl", children: m.organization_user_invitations_title() }), _jsx(DialogDescription, { children: m.organization_user_invitations_description() })] }), _jsx(Separator, {}), _jsx(UserInvitationsManager, { authClient: authClient, baseUrl: baseUrl, invitations: userInvitations, loading: loadingUserInvitations, error: userInvitationsError, ...(activeOrganization.data
|
|
617
622
|
? { activeOrganizationId: activeOrganization.data.id }
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { AuthClientApi, AuthServiceApi } from "./api";
|
|
|
5
5
|
export { AuthService, type AuthServiceLayerOptions } from "./service";
|
|
6
6
|
export { AuthClientConfig } from "./config";
|
|
7
7
|
export { proxyAuthRequest } from "./server/proxy";
|
|
8
|
-
export { OrganizationSwitcher, MemberRequired, KrakstackAuthProvider, ResetPassword, Signin, Signup, TwoFactor, VerifyEmail, AdminOrganizationForm, AdminOrganizationsTable, AdminUsersTable, UserButton, assetUrl, createAuthUiClient, type AuthUiClient, type MemberRequiredMessages, type MemberRequiredProps, type KrakstackAuthContextValue, type KrakstackAuthLocale, type KrakstackAuthProviderProps, type OrganizationSwitcherDialog, type OrganizationSwitcherProps, type UserButtonDialog, useAuthClient, useAdminUsersTotal, } from "./components";
|
|
8
|
+
export { OrganizationSwitcher, MemberRequired, KrakstackAuthProvider, ResetPassword, Signin, Signup, TwoFactor, VerifyEmail, AdminOrganizationForm, AdminOrganizationsTable, AdminUsersTable, UserButton, assetUrl, createAuthUiClient, type AuthUiClient, type MemberRequiredMessages, type MemberRequiredProps, type KrakstackAuthContextValue, type KrakstackAuthLocale, type KrakstackAuthProviderProps, type OrganizationSwitcherDialog, type OrganizationSwitcherFeatures, type OrganizationSwitcherProps, type UserButtonDialog, useAuthClient, useAdminUsersTotal, } from "./components";
|
|
9
9
|
export * as BetterAuth from "./better-auth/api.group";
|
|
10
10
|
export * as Extra from "./extra/api.group";
|
|
11
11
|
export * as Server from "./server";
|