@krak-stack/auth 0.1.43 → 0.1.45
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 +10 -2
- package/dist/admin/api.group.d.ts +17 -12
- package/dist/admin/schema.d.ts +16 -12
- package/dist/admin/schema.js +4 -0
- package/dist/api.d.ts +316 -222
- package/dist/api.js +1 -1
- package/dist/better-auth/api.group.d.ts +33 -1
- package/dist/better-auth/api.group.js +15 -1
- package/dist/better-auth/schema.d.ts +36 -0
- package/dist/better-auth/schema.js +56 -0
- package/dist/components/admin-organizations.d.ts +1 -1
- package/dist/components/admin-organizations.js +17 -12
- package/dist/components/admin-users.d.ts +1 -1
- package/dist/components/admin-users.js +81 -6
- package/dist/components/auth-client-api.d.ts +139 -77
- package/dist/components/auth-client.js +3 -1
- package/dist/components/auth-provider.d.ts +17 -15
- package/dist/components/auth-provider.js +16 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/organization-switcher.d.ts +5 -2
- package/dist/components/organization-switcher.js +96 -45
- package/dist/components/user-button.js +8 -17
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/roles.d.ts +10 -0
- package/dist/roles.js +31 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.js +2 -0
- package/dist/service.d.ts +500 -424
- package/package.json +5 -1
package/dist/api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
10
10
|
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
11
11
|
readonly userId: import("effect/Schema").String;
|
|
12
12
|
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
13
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
13
14
|
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
14
15
|
}>;
|
|
15
16
|
readonly user: import("effect/Schema").Struct<{
|
|
@@ -24,86 +25,25 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
24
25
|
readonly createdAt: import("effect/Schema").Date;
|
|
25
26
|
readonly updatedAt: import("effect/Schema").Date;
|
|
26
27
|
}>;
|
|
27
|
-
}>>>, 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
|
|
28
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
29
|
-
}>>, 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<{
|
|
30
|
-
readonly id: import("effect/Schema").String;
|
|
31
|
-
readonly name: import("effect/Schema").String;
|
|
32
|
-
readonly email: import("effect/Schema").String;
|
|
33
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
34
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
35
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
36
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
37
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
38
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
39
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
40
|
-
}>>, 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<{
|
|
41
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
42
|
-
}>>, 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<{
|
|
43
|
-
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
44
|
-
}>>, 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<{
|
|
45
|
-
readonly ids: import("effect/Schema").NonEmptyString;
|
|
46
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
47
|
-
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
48
|
-
readonly id: import("effect/Schema").String;
|
|
49
|
-
readonly name: import("effect/Schema").String;
|
|
50
|
-
readonly email: import("effect/Schema").String;
|
|
51
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
52
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
53
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
54
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
55
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
56
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
57
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
58
|
-
}>>;
|
|
59
|
-
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
60
|
-
}>>, 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<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
28
|
+
}>>>, 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<{
|
|
61
29
|
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
62
|
-
readonly
|
|
63
|
-
|
|
64
|
-
readonly
|
|
65
|
-
|
|
66
|
-
readonly
|
|
67
|
-
readonly role: import("effect/Schema").String;
|
|
68
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
69
|
-
readonly user: import("effect/Schema").Struct<{
|
|
30
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
31
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
32
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
33
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
34
|
+
readonly session: import("effect/Schema").Struct<{
|
|
70
35
|
readonly id: import("effect/Schema").String;
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
74
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
75
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
77
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
36
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
37
|
+
readonly token: import("effect/Schema").String;
|
|
78
38
|
readonly createdAt: import("effect/Schema").Date;
|
|
79
39
|
readonly updatedAt: import("effect/Schema").Date;
|
|
40
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
41
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
42
|
+
readonly userId: import("effect/Schema").String;
|
|
43
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
44
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
45
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
80
46
|
}>;
|
|
81
|
-
}>>, 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<"getOrganization", "GET", "/api/organizations/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
82
|
-
readonly id: import("effect/Schema").NonEmptyString;
|
|
83
|
-
}>>, 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<{
|
|
84
|
-
readonly id: import("effect/Schema").String;
|
|
85
|
-
readonly name: import("effect/Schema").String;
|
|
86
|
-
readonly slug: import("effect/Schema").String;
|
|
87
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
88
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
89
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
90
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
91
|
-
readonly name: import("effect/Schema").String;
|
|
92
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
93
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
94
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
95
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
96
|
-
}>>;
|
|
97
|
-
}>>;
|
|
98
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
99
|
-
}>>, 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<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
100
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
101
|
-
}>>, 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<{
|
|
102
|
-
readonly id: import("effect/Schema").String;
|
|
103
|
-
readonly organizationId: import("effect/Schema").String;
|
|
104
|
-
readonly userId: import("effect/Schema").String;
|
|
105
|
-
readonly role: import("effect/Schema").String;
|
|
106
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
107
47
|
readonly user: import("effect/Schema").Struct<{
|
|
108
48
|
readonly id: import("effect/Schema").String;
|
|
109
49
|
readonly name: import("effect/Schema").String;
|
|
@@ -116,29 +56,70 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
116
56
|
readonly createdAt: import("effect/Schema").Date;
|
|
117
57
|
readonly updatedAt: import("effect/Schema").Date;
|
|
118
58
|
}>;
|
|
119
|
-
}
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
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").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("./extra/schema").ExtraBadRequest>, 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<{
|
|
68
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
69
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
70
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
71
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
122
72
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
123
|
-
readonly
|
|
73
|
+
readonly projectKey: import("effect/Schema").String;
|
|
74
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
75
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
77
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
78
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
79
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
80
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
81
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
82
|
+
readonly google: import("effect/Schema").Boolean;
|
|
83
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
84
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
85
|
+
}>;
|
|
86
|
+
}>>, 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<{
|
|
87
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
88
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
89
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
90
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
|
|
91
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
92
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
93
|
+
readonly url: import("effect/Schema").String;
|
|
94
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | 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<{
|
|
95
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
96
|
+
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">]>>;
|
|
97
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
98
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
99
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
100
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
101
|
+
readonly message: import("effect/Schema").String;
|
|
102
|
+
readonly code: import("effect/Schema").String;
|
|
103
|
+
}>>;
|
|
104
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
124
105
|
readonly id: import("effect/Schema").String;
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
133
|
-
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
134
|
-
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
135
|
-
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
136
|
-
}>>;
|
|
137
|
-
}>>;
|
|
106
|
+
readonly configId: import("effect/Schema").String;
|
|
107
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
108
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
109
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
110
|
+
readonly referenceId: import("effect/Schema").String;
|
|
111
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
112
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
138
113
|
readonly createdAt: import("effect/Schema").Date;
|
|
114
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
115
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
116
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
139
117
|
}>>;
|
|
140
|
-
|
|
141
|
-
|
|
118
|
+
}>>, 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<{
|
|
119
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
120
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
121
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
122
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
|
|
142
123
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
143
124
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
144
125
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -218,134 +199,122 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
218
199
|
readonly type: import("effect/Schema").String;
|
|
219
200
|
readonly name: import("effect/Schema").String;
|
|
220
201
|
readonly value: import("effect/Schema").String;
|
|
221
|
-
}>>>, 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>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
|
|
225
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
226
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
202
|
+
}>>>, 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>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"organizations", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getActiveMember", "GET", "/api/organizations/:organizationId/members/:userId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
203
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
204
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
205
|
+
}>>, 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<{
|
|
227
206
|
readonly id: import("effect/Schema").String;
|
|
228
|
-
readonly
|
|
229
|
-
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
readonly
|
|
243
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
244
|
-
readonly google: import("effect/Schema").Boolean;
|
|
245
|
-
readonly signUp: import("effect/Schema").Boolean;
|
|
246
|
-
readonly signUpName: import("effect/Schema").Boolean;
|
|
207
|
+
readonly organizationId: import("effect/Schema").String;
|
|
208
|
+
readonly userId: import("effect/Schema").String;
|
|
209
|
+
readonly role: import("effect/Schema").String;
|
|
210
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
211
|
+
readonly user: import("effect/Schema").Struct<{
|
|
212
|
+
readonly id: import("effect/Schema").String;
|
|
213
|
+
readonly name: import("effect/Schema").String;
|
|
214
|
+
readonly email: import("effect/Schema").String;
|
|
215
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
216
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
217
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
218
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
219
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
220
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
221
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
247
222
|
}>;
|
|
248
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").
|
|
249
|
-
readonly
|
|
250
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
251
|
-
readonly
|
|
252
|
-
|
|
253
|
-
readonly
|
|
254
|
-
|
|
255
|
-
readonly
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
readonly code: import("effect/Schema").String;
|
|
223
|
+
}>>, 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<"getOrganization", "GET", "/api/organizations/:id", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
224
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
225
|
+
}>>, 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<{
|
|
226
|
+
readonly id: import("effect/Schema").String;
|
|
227
|
+
readonly name: import("effect/Schema").String;
|
|
228
|
+
readonly slug: import("effect/Schema").String;
|
|
229
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
230
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
231
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
232
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
233
|
+
readonly name: import("effect/Schema").String;
|
|
234
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
235
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
236
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
237
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
238
|
+
}>>;
|
|
265
239
|
}>>;
|
|
266
|
-
readonly
|
|
240
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
241
|
+
}>>, 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<"listOrganizationMembers", "GET", "/api/organizations/:organizationId/members", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
242
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
243
|
+
}>>, 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<{
|
|
244
|
+
readonly id: import("effect/Schema").String;
|
|
245
|
+
readonly organizationId: import("effect/Schema").String;
|
|
246
|
+
readonly userId: import("effect/Schema").String;
|
|
247
|
+
readonly role: import("effect/Schema").String;
|
|
248
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
249
|
+
readonly user: import("effect/Schema").Struct<{
|
|
267
250
|
readonly id: import("effect/Schema").String;
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
270
|
-
readonly
|
|
271
|
-
readonly
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
274
|
-
readonly
|
|
251
|
+
readonly name: import("effect/Schema").String;
|
|
252
|
+
readonly email: import("effect/Schema").String;
|
|
253
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
254
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
255
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
256
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
257
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
275
258
|
readonly createdAt: import("effect/Schema").Date;
|
|
276
259
|
readonly updatedAt: import("effect/Schema").Date;
|
|
277
|
-
|
|
278
|
-
|
|
260
|
+
}>;
|
|
261
|
+
}>>>, 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<"listOrganizations", "GET", "/api/organizations", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
262
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
263
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
264
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
265
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
266
|
+
readonly id: import("effect/Schema").String;
|
|
267
|
+
readonly name: import("effect/Schema").String;
|
|
268
|
+
readonly slug: import("effect/Schema").String;
|
|
269
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
270
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
271
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
272
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
273
|
+
readonly name: import("effect/Schema").String;
|
|
274
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
275
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
276
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
277
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
278
|
+
}>>;
|
|
279
|
+
}>>;
|
|
280
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
279
281
|
}>>;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, never, never>, false>>;
|
|
285
|
-
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
286
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
287
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
288
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
289
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
290
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
282
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
283
|
+
}>>, 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<{
|
|
284
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
285
|
+
}>>, 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<{
|
|
291
286
|
readonly id: import("effect/Schema").String;
|
|
292
|
-
readonly
|
|
293
|
-
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
287
|
+
readonly name: import("effect/Schema").String;
|
|
288
|
+
readonly email: import("effect/Schema").String;
|
|
289
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
290
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
291
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
292
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
293
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
294
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
295
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
296
|
+
}>>, 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<{
|
|
297
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
298
|
+
}>>, 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<{
|
|
299
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
300
|
+
}>>, 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<{
|
|
301
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
298
302
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
299
|
-
readonly
|
|
300
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
301
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
302
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
303
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
304
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
305
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
306
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
307
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
308
|
-
readonly google: import("effect/Schema").Boolean;
|
|
309
|
-
readonly signUp: import("effect/Schema").Boolean;
|
|
310
|
-
readonly signUpName: import("effect/Schema").Boolean;
|
|
311
|
-
}>;
|
|
312
|
-
}>>, 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<{
|
|
313
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
314
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
315
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
316
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
|
|
317
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
318
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
319
|
-
readonly url: import("effect/Schema").String;
|
|
320
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | 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<{
|
|
321
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
322
|
-
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">]>>;
|
|
323
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
324
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
325
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
326
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
327
|
-
readonly message: import("effect/Schema").String;
|
|
328
|
-
readonly code: import("effect/Schema").String;
|
|
329
|
-
}>>;
|
|
330
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
303
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
331
304
|
readonly id: import("effect/Schema").String;
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
305
|
+
readonly name: import("effect/Schema").String;
|
|
306
|
+
readonly email: import("effect/Schema").String;
|
|
307
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
308
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
309
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
310
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
311
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
339
312
|
readonly createdAt: import("effect/Schema").Date;
|
|
340
313
|
readonly updatedAt: import("effect/Schema").Date;
|
|
341
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
342
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
343
314
|
}>>;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
348
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
|
|
315
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
316
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
317
|
+
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<{
|
|
349
318
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
350
319
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
351
320
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -376,6 +345,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
376
345
|
readonly slug: import("effect/Schema").String;
|
|
377
346
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
378
347
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
348
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
379
349
|
readonly createdAt: import("effect/Schema").Date;
|
|
380
350
|
}>>, 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<{
|
|
381
351
|
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">]>>;
|
|
@@ -426,6 +396,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
426
396
|
readonly slug: import("effect/Schema").String;
|
|
427
397
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
428
398
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
399
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
429
400
|
readonly createdAt: import("effect/Schema").Date;
|
|
430
401
|
}>>, 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<"getDomainRecords", "GET", "/api/auth/admin/domains/:id/records", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
431
402
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
@@ -466,6 +437,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
466
437
|
readonly slug: string;
|
|
467
438
|
readonly logo?: string | null | undefined;
|
|
468
439
|
readonly metadata?: string | null | undefined;
|
|
440
|
+
readonly memberCount?: number | undefined;
|
|
469
441
|
readonly createdAt: Date;
|
|
470
442
|
}>>;
|
|
471
443
|
readonly meta: import("effect/Schema").Struct<{
|
|
@@ -484,18 +456,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
484
456
|
}>>, import("effect/Schema").String, never, never>, never, never>>;
|
|
485
457
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
486
458
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
487
|
-
readonly data: import("effect/Schema").$Array<import("effect/Schema").Schema<
|
|
488
|
-
readonly id:
|
|
489
|
-
readonly name:
|
|
490
|
-
readonly email:
|
|
491
|
-
readonly emailVerified:
|
|
492
|
-
readonly image:
|
|
493
|
-
readonly createdAt:
|
|
494
|
-
readonly
|
|
495
|
-
readonly
|
|
496
|
-
readonly
|
|
497
|
-
readonly
|
|
498
|
-
|
|
459
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Schema<{
|
|
460
|
+
readonly id: string;
|
|
461
|
+
readonly name: string;
|
|
462
|
+
readonly email: string;
|
|
463
|
+
readonly emailVerified: boolean;
|
|
464
|
+
readonly image: string | null;
|
|
465
|
+
readonly createdAt: Date;
|
|
466
|
+
readonly lastSignedIn: Date | null;
|
|
467
|
+
readonly role: string | null;
|
|
468
|
+
readonly banned: boolean | null;
|
|
469
|
+
readonly banReason: string | null;
|
|
470
|
+
readonly banExpires: Date | null;
|
|
471
|
+
}>>;
|
|
499
472
|
readonly meta: import("effect/Schema").Struct<{
|
|
500
473
|
readonly page: import("effect/Schema").Int;
|
|
501
474
|
readonly pageSize: import("effect/Schema").Int;
|
|
@@ -537,5 +510,126 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
537
510
|
readonly slug: import("effect/Schema").String;
|
|
538
511
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
539
512
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
513
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
540
514
|
readonly createdAt: import("effect/Schema").Date;
|
|
541
|
-
}>>, 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
|
|
515
|
+
}>>, 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<{
|
|
516
|
+
readonly session: import("effect/Schema").Struct<{
|
|
517
|
+
readonly id: import("effect/Schema").String;
|
|
518
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
519
|
+
readonly token: import("effect/Schema").String;
|
|
520
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
521
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
522
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
523
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
524
|
+
readonly userId: import("effect/Schema").String;
|
|
525
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
526
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
527
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
528
|
+
}>;
|
|
529
|
+
readonly user: import("effect/Schema").Struct<{
|
|
530
|
+
readonly id: import("effect/Schema").String;
|
|
531
|
+
readonly name: import("effect/Schema").String;
|
|
532
|
+
readonly email: import("effect/Schema").String;
|
|
533
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
534
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
535
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
536
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
537
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
538
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
539
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
540
|
+
}>;
|
|
541
|
+
}>>>, 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<{
|
|
542
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
543
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
544
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
545
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
546
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
547
|
+
readonly session: import("effect/Schema").Struct<{
|
|
548
|
+
readonly id: import("effect/Schema").String;
|
|
549
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
550
|
+
readonly token: import("effect/Schema").String;
|
|
551
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
552
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
553
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
554
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
555
|
+
readonly userId: import("effect/Schema").String;
|
|
556
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
557
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
558
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
559
|
+
}>;
|
|
560
|
+
readonly user: import("effect/Schema").Struct<{
|
|
561
|
+
readonly id: import("effect/Schema").String;
|
|
562
|
+
readonly name: import("effect/Schema").String;
|
|
563
|
+
readonly email: import("effect/Schema").String;
|
|
564
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
565
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
566
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
567
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
568
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
569
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
570
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
571
|
+
}>;
|
|
572
|
+
}>>, 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").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<{
|
|
573
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
574
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
575
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
576
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
577
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
578
|
+
readonly id: import("effect/Schema").String;
|
|
579
|
+
readonly key: import("effect/Schema").String;
|
|
580
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, 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<{
|
|
581
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
582
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
583
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
584
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
585
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
586
|
+
readonly projectKey: import("effect/Schema").String;
|
|
587
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
588
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
589
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
590
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
591
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
592
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
593
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
594
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
595
|
+
readonly google: import("effect/Schema").Boolean;
|
|
596
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
597
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
598
|
+
}>;
|
|
599
|
+
}>>, 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<{
|
|
600
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
601
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
602
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
603
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<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<{
|
|
604
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
605
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
606
|
+
readonly url: import("effect/Schema").String;
|
|
607
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | 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<{
|
|
608
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
609
|
+
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">]>>;
|
|
610
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
611
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
612
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
613
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
614
|
+
readonly message: import("effect/Schema").String;
|
|
615
|
+
readonly code: import("effect/Schema").String;
|
|
616
|
+
}>>;
|
|
617
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
618
|
+
readonly id: import("effect/Schema").String;
|
|
619
|
+
readonly configId: import("effect/Schema").String;
|
|
620
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
621
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
622
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
623
|
+
readonly referenceId: import("effect/Schema").String;
|
|
624
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
625
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
626
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
627
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
628
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
629
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
630
|
+
}>>;
|
|
631
|
+
}>>, 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<{
|
|
632
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
633
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
634
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
635
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, never, never>, false>>;
|