@krak-stack/auth 0.1.62 → 0.1.64
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 +18 -0
- package/dist/api.d.ts +366 -366
- package/dist/components/auth-client-api.d.ts +185 -185
- package/dist/components/auth-client.d.ts +6 -2
- package/dist/components/auth-client.js +4 -1
- package/dist/components/auth-forms.js +48 -37
- package/dist/components/index.d.ts +1 -1
- package/dist/components/user-button.d.ts +3 -2
- package/dist/components/user-button.js +2 -2
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -56,40 +56,133 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
56
56
|
readonly createdAt: import("effect/Schema").Date;
|
|
57
57
|
readonly updatedAt: import("effect/Schema").Date;
|
|
58
58
|
}>;
|
|
59
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"
|
|
60
|
-
readonly
|
|
61
|
-
|
|
59
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
60
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
61
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
62
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
63
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
64
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
65
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
66
|
+
readonly id: import("effect/Schema").String;
|
|
67
|
+
readonly key: import("effect/Schema").String;
|
|
68
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
69
|
+
readonly organizationId: import("effect/Schema").String;
|
|
70
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
71
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
62
72
|
readonly id: import("effect/Schema").String;
|
|
63
73
|
readonly name: import("effect/Schema").String;
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
readonly slug: import("effect/Schema").String;
|
|
75
|
+
readonly displayName: import("effect/Schema").String;
|
|
76
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
77
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
78
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
79
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
80
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
81
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
82
|
+
}>>;
|
|
83
|
+
}>>>;
|
|
84
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
85
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
86
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
87
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
88
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
89
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
90
|
+
}>>;
|
|
91
|
+
}>>>;
|
|
92
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
93
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
94
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
95
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
96
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
97
|
+
}>>;
|
|
98
|
+
}>>>;
|
|
99
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
100
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
101
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
102
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
103
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
104
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
105
|
+
}>>;
|
|
106
|
+
}>>>;
|
|
107
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
108
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
109
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
110
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
111
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
112
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
113
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
114
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
115
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
116
|
+
}>>;
|
|
117
|
+
readonly formatted: import("effect/Schema").String;
|
|
118
|
+
}>>>;
|
|
119
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
120
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
121
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
122
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
123
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
124
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
125
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
78
126
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
79
|
-
readonly
|
|
127
|
+
readonly projectKey: import("effect/Schema").String;
|
|
128
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
129
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
130
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
131
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
132
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
133
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
134
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
135
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
136
|
+
readonly google: import("effect/Schema").Boolean;
|
|
137
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
138
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
139
|
+
}>;
|
|
140
|
+
}>>, 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<{
|
|
141
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
142
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
143
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
144
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
145
|
+
readonly keyId: import("effect/Schema").NonEmptyString;
|
|
146
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
147
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
148
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
149
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
150
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
151
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
152
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
153
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
154
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
155
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
156
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
157
|
+
readonly url: import("effect/Schema").String;
|
|
158
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
159
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
160
|
+
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">]>>;
|
|
161
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
162
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
163
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
164
|
+
readonly message: import("effect/Schema").String;
|
|
165
|
+
readonly code: import("effect/Schema").String;
|
|
166
|
+
}>>;
|
|
167
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
80
168
|
readonly id: import("effect/Schema").String;
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
169
|
+
readonly configId: import("effect/Schema").String;
|
|
170
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
171
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
172
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
173
|
+
readonly referenceId: import("effect/Schema").String;
|
|
174
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
175
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
88
176
|
readonly createdAt: import("effect/Schema").Date;
|
|
89
177
|
readonly updatedAt: import("effect/Schema").Date;
|
|
178
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
179
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
90
180
|
}>>;
|
|
91
|
-
|
|
92
|
-
|
|
181
|
+
}>>, 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<{
|
|
182
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
183
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
184
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
185
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"domains", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
93
186
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
94
187
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
95
188
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -362,349 +455,73 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
362
455
|
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
363
456
|
readonly label: import("effect/Schema").NonEmptyString;
|
|
364
457
|
}>>;
|
|
365
|
-
}>>>;
|
|
366
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
367
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
368
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
369
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
370
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
371
|
-
}>>;
|
|
372
|
-
}>>>;
|
|
373
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
374
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
375
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
376
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
377
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
378
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
379
|
-
}>>;
|
|
380
|
-
}>>>;
|
|
381
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
382
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
383
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
384
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
385
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
386
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
387
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
388
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
389
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
390
|
-
}>>;
|
|
391
|
-
}>>>;
|
|
392
|
-
}>, import("effect/Schema").Unknown, never, never>>;
|
|
393
|
-
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
394
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
395
|
-
}>>;
|
|
396
|
-
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
397
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
398
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
399
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
400
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
401
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
402
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
403
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
404
|
-
readonly id: import("effect/Schema").String;
|
|
405
|
-
readonly key: import("effect/Schema").String;
|
|
406
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
407
|
-
readonly organizationId: import("effect/Schema").String;
|
|
408
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
409
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
410
|
-
readonly id: import("effect/Schema").String;
|
|
411
|
-
readonly name: import("effect/Schema").String;
|
|
412
|
-
readonly slug: import("effect/Schema").String;
|
|
413
|
-
readonly displayName: import("effect/Schema").String;
|
|
414
|
-
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
415
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
416
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
417
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
418
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
419
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
420
|
-
}>>;
|
|
421
|
-
}>>>;
|
|
422
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
423
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
424
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
425
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
426
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
427
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
428
|
-
}>>;
|
|
429
|
-
}>>>;
|
|
430
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
431
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
432
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
433
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
434
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
435
|
-
}>>;
|
|
436
|
-
}>>>;
|
|
437
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
438
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
439
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
440
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
441
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
442
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
443
|
-
}>>;
|
|
444
|
-
}>>>;
|
|
445
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
446
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
447
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
448
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
449
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
450
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
451
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
452
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
453
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
454
|
-
}>>;
|
|
455
|
-
readonly formatted: import("effect/Schema").String;
|
|
456
|
-
}>>>;
|
|
457
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
458
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
459
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
460
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
461
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
462
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
463
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
464
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
465
|
-
readonly projectKey: import("effect/Schema").String;
|
|
466
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
467
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
468
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
469
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
470
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
471
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
472
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
473
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
474
|
-
readonly google: import("effect/Schema").Boolean;
|
|
475
|
-
readonly signUp: import("effect/Schema").Boolean;
|
|
476
|
-
readonly signUpName: import("effect/Schema").Boolean;
|
|
477
|
-
}>;
|
|
478
|
-
}>>, 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<{
|
|
479
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
480
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
481
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
482
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
483
|
-
readonly keyId: import("effect/Schema").NonEmptyString;
|
|
484
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
485
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
486
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
487
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
488
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
489
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
490
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
491
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
492
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
493
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
494
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
495
|
-
readonly url: import("effect/Schema").String;
|
|
496
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
497
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
498
|
-
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">]>>;
|
|
499
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
500
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
501
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
502
|
-
readonly message: import("effect/Schema").String;
|
|
503
|
-
readonly code: import("effect/Schema").String;
|
|
504
|
-
}>>;
|
|
505
|
-
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
506
|
-
readonly id: import("effect/Schema").String;
|
|
507
|
-
readonly configId: import("effect/Schema").String;
|
|
508
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
509
|
-
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
510
|
-
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
511
|
-
readonly referenceId: import("effect/Schema").String;
|
|
512
|
-
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
513
|
-
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
514
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
515
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
516
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
517
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
518
|
-
}>>;
|
|
519
|
-
}>>, 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<{
|
|
520
|
-
readonly password: import("effect/Schema").NonEmptyString;
|
|
521
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
522
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
523
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never>, false>>;
|
|
524
|
-
export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"auth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
525
|
-
readonly session: import("effect/Schema").Struct<{
|
|
526
|
-
readonly id: import("effect/Schema").String;
|
|
527
|
-
readonly expiresAt: import("effect/Schema").Date;
|
|
528
|
-
readonly token: import("effect/Schema").String;
|
|
529
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
530
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
531
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
532
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
533
|
-
readonly userId: import("effect/Schema").String;
|
|
534
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
535
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
536
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
537
|
-
}>;
|
|
538
|
-
readonly user: import("effect/Schema").Struct<{
|
|
539
|
-
readonly id: import("effect/Schema").String;
|
|
540
|
-
readonly name: import("effect/Schema").String;
|
|
541
|
-
readonly email: import("effect/Schema").String;
|
|
542
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
543
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
544
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
545
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
546
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
547
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
548
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
549
|
-
}>;
|
|
550
|
-
}>>>, 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<{
|
|
551
|
-
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
552
|
-
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
553
|
-
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
554
|
-
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
555
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
556
|
-
readonly session: import("effect/Schema").Struct<{
|
|
557
|
-
readonly id: import("effect/Schema").String;
|
|
558
|
-
readonly expiresAt: import("effect/Schema").Date;
|
|
559
|
-
readonly token: import("effect/Schema").String;
|
|
560
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
561
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
562
|
-
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
563
|
-
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
564
|
-
readonly userId: import("effect/Schema").String;
|
|
565
|
-
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
566
|
-
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
567
|
-
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
568
|
-
}>;
|
|
569
|
-
readonly user: import("effect/Schema").Struct<{
|
|
570
|
-
readonly id: import("effect/Schema").String;
|
|
571
|
-
readonly name: import("effect/Schema").String;
|
|
572
|
-
readonly email: import("effect/Schema").String;
|
|
573
|
-
readonly emailVerified: import("effect/Schema").Boolean;
|
|
574
|
-
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
575
|
-
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
576
|
-
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
577
|
-
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
578
|
-
readonly createdAt: import("effect/Schema").Date;
|
|
579
|
-
readonly updatedAt: import("effect/Schema").Date;
|
|
580
|
-
}>;
|
|
581
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
582
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
583
|
-
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
584
|
-
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
585
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
586
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
587
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
588
|
-
readonly id: import("effect/Schema").String;
|
|
589
|
-
readonly key: import("effect/Schema").String;
|
|
590
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
591
|
-
readonly organizationId: import("effect/Schema").String;
|
|
592
|
-
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
593
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
594
|
-
readonly id: import("effect/Schema").String;
|
|
595
|
-
readonly name: import("effect/Schema").String;
|
|
596
|
-
readonly slug: import("effect/Schema").String;
|
|
597
|
-
readonly displayName: import("effect/Schema").String;
|
|
598
|
-
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
599
|
-
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
600
|
-
readonly email: import("effect/Schema").NonEmptyString;
|
|
601
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
602
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
603
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
604
|
-
}>>;
|
|
605
|
-
}>>>;
|
|
606
|
-
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
607
|
-
readonly number: import("effect/Schema").NonEmptyString;
|
|
608
|
-
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
609
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
610
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
611
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
612
|
-
}>>;
|
|
613
|
-
}>>>;
|
|
614
|
-
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
615
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
616
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
617
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
618
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
619
|
-
}>>;
|
|
620
|
-
}>>>;
|
|
621
|
-
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
622
|
-
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
623
|
-
readonly url: import("effect/Schema").NonEmptyString;
|
|
624
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
625
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
626
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
627
|
-
}>>;
|
|
628
|
-
}>>>;
|
|
629
|
-
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
630
|
-
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
631
|
-
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
632
|
-
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
633
|
-
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
634
|
-
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
635
|
-
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
636
|
-
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
637
|
-
readonly label: import("effect/Schema").NonEmptyString;
|
|
638
|
-
}>>;
|
|
639
|
-
readonly formatted: import("effect/Schema").String;
|
|
640
|
-
}>>>;
|
|
641
|
-
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
642
|
-
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
643
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
644
|
-
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
645
|
-
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
646
|
-
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
647
|
-
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
648
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
649
|
-
readonly projectKey: import("effect/Schema").String;
|
|
650
|
-
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
651
|
-
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
652
|
-
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
653
|
-
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
654
|
-
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
655
|
-
readonly authOptions: import("effect/Schema").Struct<{
|
|
656
|
-
readonly emailPassword: import("effect/Schema").Boolean;
|
|
657
|
-
readonly emailOtp: import("effect/Schema").Boolean;
|
|
658
|
-
readonly google: import("effect/Schema").Boolean;
|
|
659
|
-
readonly signUp: import("effect/Schema").Boolean;
|
|
660
|
-
readonly signUpName: import("effect/Schema").Boolean;
|
|
661
|
-
}>;
|
|
662
|
-
}>>, 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<{
|
|
663
|
-
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
664
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
665
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
666
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
667
|
-
readonly keyId: import("effect/Schema").NonEmptyString;
|
|
668
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
669
|
-
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
670
|
-
readonly name: import("effect/Schema").NonEmptyString;
|
|
671
|
-
readonly enabled: import("effect/Schema").Boolean;
|
|
672
|
-
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
673
|
-
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
674
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
675
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
676
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
677
|
-
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
678
|
-
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
679
|
-
readonly url: import("effect/Schema").String;
|
|
680
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
681
|
-
readonly key: import("effect/Schema").NonEmptyString;
|
|
682
|
-
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">]>>;
|
|
683
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
684
|
-
readonly valid: import("effect/Schema").Boolean;
|
|
685
|
-
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
686
|
-
readonly message: import("effect/Schema").String;
|
|
687
|
-
readonly code: import("effect/Schema").String;
|
|
458
|
+
}>>>;
|
|
459
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
460
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
461
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
462
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
463
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
464
|
+
}>>;
|
|
465
|
+
}>>>;
|
|
466
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
467
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
468
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
469
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
470
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
471
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
472
|
+
}>>;
|
|
473
|
+
}>>>;
|
|
474
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
475
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
476
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
477
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
478
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
479
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
480
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
481
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
482
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
483
|
+
}>>;
|
|
484
|
+
}>>>;
|
|
485
|
+
}>, import("effect/Schema").Unknown, never, never>>;
|
|
486
|
+
readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
487
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
688
488
|
}>>;
|
|
689
|
-
readonly
|
|
489
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
490
|
+
}>>, 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<{
|
|
491
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
492
|
+
}>>, 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<{
|
|
493
|
+
readonly id: import("effect/Schema").String;
|
|
494
|
+
readonly name: import("effect/Schema").String;
|
|
495
|
+
readonly email: import("effect/Schema").String;
|
|
496
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
497
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
498
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
499
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
500
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
501
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
502
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
503
|
+
}>>, 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<{
|
|
504
|
+
readonly userId: import("effect/Schema").NonEmptyString;
|
|
505
|
+
}>>, 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<{
|
|
506
|
+
readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
507
|
+
}>>, 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<{
|
|
508
|
+
readonly ids: import("effect/Schema").NonEmptyString;
|
|
509
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
510
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
690
511
|
readonly id: import("effect/Schema").String;
|
|
691
|
-
readonly
|
|
692
|
-
readonly
|
|
693
|
-
readonly
|
|
694
|
-
readonly
|
|
695
|
-
readonly
|
|
696
|
-
readonly
|
|
697
|
-
readonly
|
|
512
|
+
readonly name: import("effect/Schema").String;
|
|
513
|
+
readonly email: import("effect/Schema").String;
|
|
514
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
515
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
516
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
517
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
518
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
698
519
|
readonly createdAt: import("effect/Schema").Date;
|
|
699
520
|
readonly updatedAt: import("effect/Schema").Date;
|
|
700
|
-
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
701
|
-
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
702
521
|
}>>;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
readonly ok: import("effect/Schema").Boolean;
|
|
707
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"admin", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createDomain", "POST", "/api/auth/admin/domains", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
522
|
+
readonly missingIds: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
523
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false>>;
|
|
524
|
+
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<{
|
|
708
525
|
readonly hostname: import("effect/Schema").NonEmptyString;
|
|
709
526
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
710
527
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
@@ -1087,4 +904,187 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
1087
904
|
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1088
905
|
}>>>;
|
|
1089
906
|
readonly createdAt: import("effect/Schema").Date;
|
|
1090
|
-
}>>, 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
|
|
907
|
+
}>>, 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<{
|
|
908
|
+
readonly session: import("effect/Schema").Struct<{
|
|
909
|
+
readonly id: import("effect/Schema").String;
|
|
910
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
911
|
+
readonly token: import("effect/Schema").String;
|
|
912
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
913
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
914
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
915
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
916
|
+
readonly userId: import("effect/Schema").String;
|
|
917
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
918
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
919
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
920
|
+
}>;
|
|
921
|
+
readonly user: import("effect/Schema").Struct<{
|
|
922
|
+
readonly id: import("effect/Schema").String;
|
|
923
|
+
readonly name: import("effect/Schema").String;
|
|
924
|
+
readonly email: import("effect/Schema").String;
|
|
925
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
926
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
927
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
928
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
929
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
930
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
931
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
932
|
+
}>;
|
|
933
|
+
}>>>, 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<{
|
|
934
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
935
|
+
readonly actorUserId: import("effect/Schema").NonEmptyString;
|
|
936
|
+
readonly targetUserId: import("effect/Schema").NonEmptyString;
|
|
937
|
+
readonly expiresInSeconds: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
938
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
939
|
+
readonly session: import("effect/Schema").Struct<{
|
|
940
|
+
readonly id: import("effect/Schema").String;
|
|
941
|
+
readonly expiresAt: import("effect/Schema").Date;
|
|
942
|
+
readonly token: import("effect/Schema").String;
|
|
943
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
944
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
945
|
+
readonly ipAddress: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
946
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
947
|
+
readonly userId: import("effect/Schema").String;
|
|
948
|
+
readonly impersonatedBy: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
949
|
+
readonly impersonatedByOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
950
|
+
readonly activeOrganizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
951
|
+
}>;
|
|
952
|
+
readonly user: import("effect/Schema").Struct<{
|
|
953
|
+
readonly id: import("effect/Schema").String;
|
|
954
|
+
readonly name: import("effect/Schema").String;
|
|
955
|
+
readonly email: import("effect/Schema").String;
|
|
956
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
957
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
958
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
959
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
960
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
961
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
962
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
963
|
+
}>;
|
|
964
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").BadRequest | typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never>, false> | import("effect/unstable/httpapi/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
965
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
966
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
967
|
+
readonly organizationId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
968
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
969
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
970
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
971
|
+
readonly id: import("effect/Schema").String;
|
|
972
|
+
readonly key: import("effect/Schema").String;
|
|
973
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationPublicProfile", "GET", "/api/auth/organization-profile", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
974
|
+
readonly organizationId: import("effect/Schema").String;
|
|
975
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>>;
|
|
976
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
977
|
+
readonly id: import("effect/Schema").String;
|
|
978
|
+
readonly name: import("effect/Schema").String;
|
|
979
|
+
readonly slug: import("effect/Schema").String;
|
|
980
|
+
readonly displayName: import("effect/Schema").String;
|
|
981
|
+
readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
982
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
983
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
984
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
985
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
986
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
987
|
+
}>>;
|
|
988
|
+
}>>>;
|
|
989
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
990
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
991
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
992
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
993
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
994
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
995
|
+
}>>;
|
|
996
|
+
}>>>;
|
|
997
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
998
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
999
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1000
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1001
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1002
|
+
}>>;
|
|
1003
|
+
}>>>;
|
|
1004
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1005
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1006
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1007
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1008
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1009
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1010
|
+
}>>;
|
|
1011
|
+
}>>>;
|
|
1012
|
+
readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1013
|
+
readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1014
|
+
readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1015
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1016
|
+
readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1017
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1018
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1019
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1020
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1021
|
+
}>>;
|
|
1022
|
+
readonly formatted: import("effect/Schema").String;
|
|
1023
|
+
}>>>;
|
|
1024
|
+
readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1025
|
+
readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1026
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").NotFound | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProjectPublicConfig", "GET", "/api/auth/project-config", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
1027
|
+
readonly projectId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1028
|
+
readonly clientId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1029
|
+
readonly host: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1030
|
+
readonly rootHost: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1031
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1032
|
+
readonly projectKey: import("effect/Schema").String;
|
|
1033
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1034
|
+
readonly logoUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1035
|
+
readonly authDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1036
|
+
readonly rootDomain: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1037
|
+
readonly themeCss: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1038
|
+
readonly authOptions: import("effect/Schema").Struct<{
|
|
1039
|
+
readonly emailPassword: import("effect/Schema").Boolean;
|
|
1040
|
+
readonly emailOtp: import("effect/Schema").Boolean;
|
|
1041
|
+
readonly google: import("effect/Schema").Boolean;
|
|
1042
|
+
readonly signUp: import("effect/Schema").Boolean;
|
|
1043
|
+
readonly signUpName: import("effect/Schema").Boolean;
|
|
1044
|
+
}>;
|
|
1045
|
+
}>>, 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<{
|
|
1046
|
+
readonly newPassword: import("effect/Schema").NonEmptyString;
|
|
1047
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1048
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1049
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"updateApiKey", "PATCH", "/api/auth/api-key/:keyId", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<import("effect/Schema").Struct<{
|
|
1050
|
+
readonly keyId: import("effect/Schema").NonEmptyString;
|
|
1051
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1052
|
+
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1053
|
+
readonly name: import("effect/Schema").NonEmptyString;
|
|
1054
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
1055
|
+
readonly permissions: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1056
|
+
readonly referrers: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1057
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1058
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1059
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"uploadUserImage", "POST", "/api/auth/image/upload", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").asMultipartStream<import("effect/Schema").Struct<{
|
|
1060
|
+
readonly file: import("effect/Schema").decodeTo<import("effect/unstable/http/Multipart").PersistedFileSchema, import("effect/Schema").$Array<import("effect/unstable/http/Multipart").PersistedFileSchema>, never, never>;
|
|
1061
|
+
}>>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1062
|
+
readonly url: import("effect/Schema").String;
|
|
1063
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyApiKey", "POST", "/api/auth/verify-api-key", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1064
|
+
readonly key: import("effect/Schema").NonEmptyString;
|
|
1065
|
+
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">]>>;
|
|
1066
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1067
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
1068
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1069
|
+
readonly message: import("effect/Schema").String;
|
|
1070
|
+
readonly code: import("effect/Schema").String;
|
|
1071
|
+
}>>;
|
|
1072
|
+
readonly key: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1073
|
+
readonly id: import("effect/Schema").String;
|
|
1074
|
+
readonly configId: import("effect/Schema").String;
|
|
1075
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1076
|
+
readonly start: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1077
|
+
readonly prefix: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1078
|
+
readonly referenceId: import("effect/Schema").String;
|
|
1079
|
+
readonly enabled: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1080
|
+
readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1081
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1082
|
+
readonly updatedAt: import("effect/Schema").Date;
|
|
1083
|
+
readonly permissions: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").String>>>;
|
|
1084
|
+
readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Unknown>;
|
|
1085
|
+
}>>;
|
|
1086
|
+
}>>, 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<{
|
|
1087
|
+
readonly password: import("effect/Schema").NonEmptyString;
|
|
1088
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/Schema").Struct<{
|
|
1089
|
+
readonly ok: import("effect/Schema").Boolean;
|
|
1090
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof import("effect/unstable/httpapi/HttpApiError").Unauthorized | typeof import("effect/unstable/httpapi/HttpApiError").Forbidden | typeof import("effect/unstable/httpapi/HttpApiError").InternalServerError | typeof import("./extra/schema").ExtraBadRequest>, never, never>, false>>;
|