@krak-stack/auth 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/api.group.d.ts +5 -0
- package/dist/admin/schema.d.ts +4 -0
- package/dist/admin/schema.js +4 -0
- package/dist/api.d.ts +228 -223
- 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 +21 -2
- package/dist/components/auth-client-api.d.ts +5 -0
- package/dist/components/organization-switcher.js +46 -27
- package/dist/components/user-button.js +8 -17
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -24,121 +24,70 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
24
24
|
readonly createdAt: import("effect/Schema").Date;
|
|
25
25
|
readonly updatedAt: import("effect/Schema").Date;
|
|
26
26
|
}>;
|
|
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>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"
|
|
28
|
-
readonly
|
|
29
|
-
|
|
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>, 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<{
|
|
28
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
29
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
30
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
31
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
32
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
30
33
|
readonly id: import("effect/Schema").String;
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
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;
|
|
34
|
+
readonly key: import("effect/Schema").String;
|
|
35
|
+
}>>, 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<{
|
|
36
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
37
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
38
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
39
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
46
40
|
}>>, 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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
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<{
|
|
61
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
62
|
-
readonly userId: import("effect/Schema").NonEmptyString;
|
|
63
|
-
}>>, 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<{
|
|
64
|
-
readonly id: import("effect/Schema").String;
|
|
65
|
-
readonly organizationId: import("effect/Schema").String;
|
|
66
|
-
readonly userId: import("effect/Schema").String;
|
|
67
|
-
readonly role: import("effect/Schema").String;
|
|
68
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
69
|
-
readonly user: import("effect/Schema").Struct<{
|
|
70
|
-
readonly id: import("effect/Schema").String;
|
|
71
|
-
readonly name: import("effect/Schema").String;
|
|
72
|
-
readonly email: import("effect/Schema").String;
|
|
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>>;
|
|
78
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
79
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
41
|
+
readonly projectKey: import("effect/Schema").String;
|
|
42
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
43
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
44
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
45
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
46
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
47
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
48
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
49
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
50
|
+
readonly google: import("effect/Schema").Boolean;
|
|
51
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
52
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
80
53
|
}>;
|
|
81
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").
|
|
82
|
-
readonly
|
|
83
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").
|
|
84
|
-
readonly
|
|
85
|
-
|
|
86
|
-
readonly
|
|
87
|
-
|
|
88
|
-
readonly
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
54
|
+
}>>, 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<{
|
|
55
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
56
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
57
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
58
|
+
}>>, 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<{
|
|
59
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
60
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
61
|
+
readonly url: import("effect/Schema").String;
|
|
62
|
+
}>>, 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<{
|
|
63
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
64
|
+
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">]>>;
|
|
65
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
66
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
67
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
68
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
69
|
+
readonly message: import("effect/Schema").String;
|
|
70
|
+
readonly code: import("effect/Schema").String;
|
|
97
71
|
}>>;
|
|
98
|
-
readonly
|
|
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
|
-
readonly user: import("effect/Schema").Struct<{
|
|
72
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
108
73
|
readonly id: import("effect/Schema").String;
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
74
|
+
readonly configId: import("effect/Schema").String;
|
|
75
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
76
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
77
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
78
|
+
readonly referenceId: import("effect/Schema").String;
|
|
79
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
80
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
116
81
|
readonly createdAt: import("effect/Schema").Date;
|
|
117
82
|
readonly updatedAt: import("effect/Schema").Date;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
121
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
122
|
-
}>>, 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 data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
124
|
-
readonly id: import("effect/Schema").String;
|
|
125
|
-
readonly name: import("effect/Schema").String;
|
|
126
|
-
readonly slug: import("effect/Schema").String;
|
|
127
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
128
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
129
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
130
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
131
|
-
readonly name: import("effect/Schema").String;
|
|
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
|
-
}>>;
|
|
138
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
83
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
84
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
139
85
|
}>>;
|
|
140
|
-
|
|
141
|
-
|
|
86
|
+
}>>, 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<{
|
|
87
|
+
readonly password: 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>, 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
91
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
143
92
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
144
93
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -218,134 +167,122 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
218
167
|
readonly type: import("effect/Schema").String;
|
|
219
168
|
readonly name: import("effect/Schema").String;
|
|
220
169
|
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<{
|
|
170
|
+
}>>>, 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<{
|
|
171
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
172
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
173
|
+
}>>, 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
174
|
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;
|
|
175
|
+
readonly organizationId: import("effect/Schema").String;
|
|
176
|
+
readonly userId: import("effect/Schema").String;
|
|
177
|
+
readonly role: import("effect/Schema").String;
|
|
178
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
179
|
+
readonly user: import("effect/Schema").Struct<{
|
|
180
|
+
readonly id: import("effect/Schema").String;
|
|
181
|
+
readonly name: import("effect/Schema").String;
|
|
182
|
+
readonly email: import("effect/Schema").String;
|
|
183
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
184
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
185
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
186
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
187
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
188
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
189
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
247
190
|
}>;
|
|
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;
|
|
191
|
+
}>>, 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<{
|
|
192
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
193
|
+
}>>, 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<{
|
|
194
|
+
readonly id: import("effect/Schema").String;
|
|
195
|
+
readonly name: import("effect/Schema").String;
|
|
196
|
+
readonly slug: import("effect/Schema").String;
|
|
197
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
198
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
199
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
200
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
201
|
+
readonly name: import("effect/Schema").String;
|
|
202
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
203
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
204
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
205
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
206
|
+
}>>;
|
|
265
207
|
}>>;
|
|
266
|
-
readonly
|
|
208
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
209
|
+
}>>, 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<{
|
|
210
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
211
|
+
}>>, 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<{
|
|
212
|
+
readonly id: import("effect/Schema").String;
|
|
213
|
+
readonly organizationId: import("effect/Schema").String;
|
|
214
|
+
readonly userId: import("effect/Schema").String;
|
|
215
|
+
readonly role: import("effect/Schema").String;
|
|
216
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
217
|
+
readonly user: import("effect/Schema").Struct<{
|
|
267
218
|
readonly id: import("effect/Schema").String;
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
270
|
-
readonly
|
|
271
|
-
readonly
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
274
|
-
readonly
|
|
219
|
+
readonly name: import("effect/Schema").String;
|
|
220
|
+
readonly email: import("effect/Schema").String;
|
|
221
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
222
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
223
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
224
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
225
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
275
226
|
readonly createdAt: import("effect/Schema").Date;
|
|
276
227
|
readonly updatedAt: import("effect/Schema").Date;
|
|
277
|
-
|
|
278
|
-
|
|
228
|
+
}>;
|
|
229
|
+
}>>>, 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<{
|
|
230
|
+
readonly ids: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
231
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
232
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
233
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
234
|
+
readonly id: import("effect/Schema").String;
|
|
235
|
+
readonly name: import("effect/Schema").String;
|
|
236
|
+
readonly slug: import("effect/Schema").String;
|
|
237
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
238
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
239
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
240
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
241
|
+
readonly name: import("effect/Schema").String;
|
|
242
|
+
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
243
|
+
readonly icon: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
244
|
+
readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
245
|
+
readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
246
|
+
}>>;
|
|
247
|
+
}>>;
|
|
248
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
279
249
|
}>>;
|
|
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<{
|
|
250
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
251
|
+
}>>, 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<{
|
|
252
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
253
|
+
}>>, 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
254
|
readonly id: import("effect/Schema").String;
|
|
292
|
-
readonly
|
|
293
|
-
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
255
|
+
readonly name: import("effect/Schema").String;
|
|
256
|
+
readonly email: import("effect/Schema").String;
|
|
257
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
258
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
259
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
260
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
261
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
262
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
263
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
264
|
+
}>>, 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<{
|
|
265
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
266
|
+
}>>, 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<{
|
|
267
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
268
|
+
}>>, 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<{
|
|
269
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
298
270
|
}>>, 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<{
|
|
271
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
331
272
|
readonly id: import("effect/Schema").String;
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
273
|
+
readonly name: import("effect/Schema").String;
|
|
274
|
+
readonly email: import("effect/Schema").String;
|
|
275
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
276
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
277
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
278
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
279
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
339
280
|
readonly createdAt: import("effect/Schema").Date;
|
|
340
281
|
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
282
|
}>>;
|
|
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<{
|
|
283
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
284
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
285
|
+
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
286
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
350
287
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
351
288
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -376,6 +313,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
376
313
|
readonly slug: import("effect/Schema").String;
|
|
377
314
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
378
315
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
316
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
379
317
|
readonly createdAt: import("effect/Schema").Date;
|
|
380
318
|
}>>, 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
319
|
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 +364,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
426
364
|
readonly slug: import("effect/Schema").String;
|
|
427
365
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
428
366
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
367
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
429
368
|
readonly createdAt: import("effect/Schema").Date;
|
|
430
369
|
}>>, 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
370
|
readonly id: import("effect/Schema").NonEmptyString;
|
|
@@ -466,6 +405,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
466
405
|
readonly slug: string;
|
|
467
406
|
readonly logo?: string | null | undefined;
|
|
468
407
|
readonly metadata?: string | null | undefined;
|
|
408
|
+
readonly memberCount?: number | undefined;
|
|
469
409
|
readonly createdAt: Date;
|
|
470
410
|
}>>;
|
|
471
411
|
readonly meta: import("effect/Schema").Struct<{
|
|
@@ -491,6 +431,7 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
491
431
|
readonly emailVerified: import("effect/Schema").Boolean;
|
|
492
432
|
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
493
433
|
readonly createdAt: import("effect/Schema").Date;
|
|
434
|
+
readonly lastSignedIn: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
494
435
|
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
495
436
|
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
496
437
|
readonly banReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
@@ -537,5 +478,69 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
537
478
|
readonly slug: import("effect/Schema").String;
|
|
538
479
|
readonly logo: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
539
480
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
481
|
+
readonly memberCount: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
540
482
|
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
|
|
483
|
+
}>>, 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<"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<{
|
|
484
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
485
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
486
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
487
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
488
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
489
|
+
readonly id: import("effect/Schema").String;
|
|
490
|
+
readonly key: import("effect/Schema").String;
|
|
491
|
+
}>>, 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<{
|
|
492
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
493
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
494
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
495
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
496
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
497
|
+
readonly projectKey: import("effect/Schema").String;
|
|
498
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
499
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
500
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
501
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
502
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
503
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
504
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
505
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
506
|
+
readonly google: import("effect/Schema").Boolean;
|
|
507
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
508
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
509
|
+
}>;
|
|
510
|
+
}>>, 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<{
|
|
511
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
512
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
513
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
514
|
+
}>>, 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<{
|
|
515
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
516
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
517
|
+
readonly url: import("effect/Schema").String;
|
|
518
|
+
}>>, 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<{
|
|
519
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
520
|
+
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">]>>;
|
|
521
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
522
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
523
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
524
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
525
|
+
readonly message: import("effect/Schema").String;
|
|
526
|
+
readonly code: import("effect/Schema").String;
|
|
527
|
+
}>>;
|
|
528
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
529
|
+
readonly id: import("effect/Schema").String;
|
|
530
|
+
readonly configId: import("effect/Schema").String;
|
|
531
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
532
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
533
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
534
|
+
readonly referenceId: import("effect/Schema").String;
|
|
535
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
536
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
537
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
538
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
539
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
540
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
541
|
+
}>>;
|
|
542
|
+
}>>, 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<{
|
|
543
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
544
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
545
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
546
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("./extra/schema").ExtraBadRequest>, never, never>, false>>;
|