@krak-stack/auth 0.3.3 → 0.4.0
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/CHANGELOG.md +14 -0
- package/dist/api.d.ts +248 -2
- package/dist/auth/api.group.d.ts +124 -1
- package/dist/auth/api.group.js +36 -1
- package/dist/auth/schema.d.ts +38 -0
- package/dist/auth/schema.js +38 -0
- package/dist/components/auth-client-api.d.ts +130 -0
- package/dist/components/auth-forms.d.ts +5 -1
- package/dist/components/auth-forms.js +60 -7
- package/dist/components/organization-sso-atom.d.ts +71 -0
- package/dist/components/organization-sso-atom.js +40 -0
- package/dist/components/organization-sso-messages.d.ts +76 -0
- package/dist/components/organization-sso-messages.js +77 -0
- package/dist/components/organization-sso-settings.d.ts +6 -0
- package/dist/components/organization-sso-settings.js +96 -0
- package/dist/components/organization-switcher.d.ts +1 -1
- package/dist/components/organization-switcher.js +14 -3
- package/dist/service.d.ts +260 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @krak-stack/auth
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0f8d256: Add typed organization-managed OIDC settings, domain discovery, verification, enable/disable and removal endpoints. The opt-in SSO sign-in button resolves the organization's connection dynamically from an email domain or organization slug.
|
|
8
|
+
|
|
9
|
+
Show organization SSO settings directly in the organization switcher’s Security dialog for owners and admins. No app-specific panel is required.
|
|
10
|
+
|
|
11
|
+
Keep the Callback URL section open or closed as selected when toggling SSO.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- c9a1e7b: Allow verified organization SSO settings to omit the DNS challenge token. Domain verification now uses Better Auth's built-in challenge lifecycle instead of custom provider token storage.
|
|
16
|
+
|
|
3
17
|
## 0.3.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/api.d.ts
CHANGED
|
@@ -324,6 +324,10 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
324
324
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
325
325
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
326
326
|
}>;
|
|
327
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganizationSso", "POST", "/api/auth/organization/sso/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
328
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
329
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
330
|
+
readonly success: import("effect/Schema").Boolean;
|
|
327
331
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
328
332
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
329
333
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -331,7 +335,20 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
331
335
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
332
336
|
readonly success: import("effect/Schema").Boolean;
|
|
333
337
|
readonly message: import("effect/Schema").String;
|
|
334
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
338
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationSso", "GET", "/api/auth/organization/sso", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
339
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
340
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
341
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
342
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
343
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
344
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
345
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
346
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
347
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
348
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
349
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
350
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
351
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
335
352
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
336
353
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
337
354
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -396,6 +413,11 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
396
413
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
397
414
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
398
415
|
}>;
|
|
416
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSsoConfig", "GET", "/api/auth/sso/config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
417
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
418
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
419
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
420
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
399
421
|
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
400
422
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
401
423
|
readonly provider: import("effect/Schema").String;
|
|
@@ -903,11 +925,42 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
903
925
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
904
926
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
905
927
|
readonly status: import("effect/Schema").Boolean;
|
|
928
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"saveOrganizationSso", "POST", "/api/auth/organization/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
929
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
930
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
931
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
932
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
933
|
+
readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
934
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
935
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
936
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
937
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
938
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
939
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
940
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
941
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
942
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
943
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
944
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
906
945
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
907
946
|
readonly email: import("effect/Schema").String;
|
|
908
947
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
909
948
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
910
949
|
readonly success: import("effect/Schema").Boolean;
|
|
950
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/api/auth/organization/sso/enabled", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
951
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
952
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
953
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
954
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
955
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
956
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
957
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
958
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
959
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
960
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
961
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
962
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
963
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
911
964
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
912
965
|
readonly email: import("effect/Schema").String;
|
|
913
966
|
readonly password: import("effect/Schema").String;
|
|
@@ -1103,6 +1156,63 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1103
1156
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1104
1157
|
}>>;
|
|
1105
1158
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1159
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSso", "POST", "/api/auth/sign-in/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1160
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
1161
|
+
readonly callbackURL: import("effect/Schema").NonEmptyString;
|
|
1162
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1163
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1164
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1165
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
1166
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1167
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1168
|
+
readonly id: import("effect/Schema").String;
|
|
1169
|
+
readonly name: import("effect/Schema").String;
|
|
1170
|
+
readonly email: import("effect/Schema").String;
|
|
1171
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
1172
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
1173
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1174
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1175
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1176
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
1177
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1178
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1179
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1180
|
+
}>>;
|
|
1181
|
+
}>>>;
|
|
1182
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1183
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
1184
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1185
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1186
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1187
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1188
|
+
}>>;
|
|
1189
|
+
}>>>;
|
|
1190
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1191
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1192
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1193
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1194
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1195
|
+
}>>;
|
|
1196
|
+
}>>>;
|
|
1197
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1198
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1199
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
1200
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1201
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
1202
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
1203
|
+
}>>;
|
|
1204
|
+
}>>>;
|
|
1205
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
1206
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1207
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
1208
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1209
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
1210
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1211
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
1212
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1213
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1214
|
+
}>>;
|
|
1215
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1106
1216
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1107
1217
|
readonly success: import("effect/Schema").Boolean;
|
|
1108
1218
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -1379,6 +1489,19 @@ export declare const AuthServiceApi: HttpApi.HttpApi<"AuthServiceApi", import("e
|
|
|
1379
1489
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
1380
1490
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
1381
1491
|
}>;
|
|
1492
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyOrganizationSso", "POST", "/api/auth/organization/sso/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1493
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1494
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1495
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1496
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
1497
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
1498
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
1499
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
1500
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
1501
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
1502
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
1503
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
1504
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
1382
1505
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1383
1506
|
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
1384
1507
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
@@ -2858,6 +2981,10 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2858
2981
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2859
2982
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2860
2983
|
}>;
|
|
2984
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteOrganizationSso", "POST", "/api/auth/organization/sso/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2985
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2986
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2987
|
+
readonly success: import("effect/Schema").Boolean;
|
|
2861
2988
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteUser", "POST", "/api/auth/delete-user", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2862
2989
|
readonly password: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2863
2990
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -2865,7 +2992,20 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2865
2992
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2866
2993
|
readonly success: import("effect/Schema").Boolean;
|
|
2867
2994
|
readonly message: import("effect/Schema").String;
|
|
2868
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2995
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOrganizationSso", "GET", "/api/auth/organization/sso", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2996
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
2997
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2998
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
2999
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3000
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3001
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3002
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3003
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3004
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3005
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
3006
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
3007
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3008
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSession", "GET", "/api/auth/get-session", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2869
3009
|
readonly disableCookieCache: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2870
3010
|
readonly disableRefresh: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2871
3011
|
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
@@ -2930,6 +3070,11 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
2930
3070
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
2931
3071
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
2932
3072
|
}>;
|
|
3073
|
+
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSsoConfig", "GET", "/api/auth/sso/config", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3074
|
+
readonly email: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3075
|
+
readonly organizationSlug: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3076
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
3077
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
2933
3078
|
}>>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"linkSocial", "POST", "/api/auth/link-social", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2934
3079
|
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
2935
3080
|
readonly provider: import("effect/Schema").String;
|
|
@@ -3437,11 +3582,42 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3437
3582
|
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3438
3583
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3439
3584
|
readonly status: import("effect/Schema").Boolean;
|
|
3585
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"saveOrganizationSso", "POST", "/api/auth/organization/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3586
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3587
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3588
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3589
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3590
|
+
readonly clientSecret: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3591
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3592
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3593
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3594
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3595
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3596
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3597
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3598
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3599
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
3600
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
3601
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3440
3602
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendVerificationOtp", "POST", "/api/auth/email-otp/send-verification-otp", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3441
3603
|
readonly email: import("effect/Schema").String;
|
|
3442
3604
|
readonly type: import("effect/Schema").Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
3443
3605
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3444
3606
|
readonly success: import("effect/Schema").Boolean;
|
|
3607
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/api/auth/organization/sso/enabled", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3608
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3609
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3610
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3611
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3612
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
3613
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3614
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
3615
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
3616
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
3617
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
3618
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
3619
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
3620
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3445
3621
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInEmail", "POST", "/api/auth/sign-in/email", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3446
3622
|
readonly email: import("effect/Schema").String;
|
|
3447
3623
|
readonly password: import("effect/Schema").String;
|
|
@@ -3637,6 +3813,63 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3637
3813
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3638
3814
|
}>>;
|
|
3639
3815
|
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3816
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signInSso", "POST", "/api/auth/sign-in/sso", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3817
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
3818
|
+
readonly callbackURL: import("effect/Schema").NonEmptyString;
|
|
3819
|
+
readonly errorCallbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3820
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3821
|
+
readonly url: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3822
|
+
readonly redirect: import("effect/Schema").Boolean;
|
|
3823
|
+
readonly token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3824
|
+
readonly user: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
3825
|
+
readonly id: import("effect/Schema").String;
|
|
3826
|
+
readonly name: import("effect/Schema").String;
|
|
3827
|
+
readonly email: import("effect/Schema").String;
|
|
3828
|
+
readonly emailVerified: import("effect/Schema").Boolean;
|
|
3829
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["en", "fr"]>>;
|
|
3830
|
+
readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3831
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
3832
|
+
readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3833
|
+
readonly email: import("effect/Schema").NonEmptyString;
|
|
3834
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3835
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3836
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3837
|
+
}>>;
|
|
3838
|
+
}>>>;
|
|
3839
|
+
readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3840
|
+
readonly number: import("effect/Schema").NonEmptyString;
|
|
3841
|
+
readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
3842
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3843
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3844
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3845
|
+
}>>;
|
|
3846
|
+
}>>>;
|
|
3847
|
+
readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3848
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
3849
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3850
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3851
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3852
|
+
}>>;
|
|
3853
|
+
}>>>;
|
|
3854
|
+
readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3855
|
+
readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
3856
|
+
readonly url: import("effect/Schema").NonEmptyString;
|
|
3857
|
+
readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
3858
|
+
readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
|
|
3859
|
+
readonly label: import("effect/Schema").NonEmptyString;
|
|
3860
|
+
}>>;
|
|
3861
|
+
}>>>;
|
|
3862
|
+
}>, import("effect/Schema").Unknown, never, never>>>;
|
|
3863
|
+
readonly role: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
3864
|
+
readonly banned: import("effect/Schema").NullOr<import("effect/Schema").Boolean>;
|
|
3865
|
+
readonly banReason: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3866
|
+
readonly banExpires: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").DateFromString>>;
|
|
3867
|
+
readonly twoFactorEnabled: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3868
|
+
readonly lastLoginMethod: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
3869
|
+
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3870
|
+
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3871
|
+
}>>;
|
|
3872
|
+
readonly status: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
3640
3873
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"signOut", "POST", "/api/auth/sign-out", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3641
3874
|
readonly success: import("effect/Schema").Boolean;
|
|
3642
3875
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"twoFactorDisable", "POST", "/api/auth/two-factor/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -3913,6 +4146,19 @@ export declare const AuthClientApi: HttpApi.HttpApi<"AuthClientApi", import("eff
|
|
|
3913
4146
|
readonly createdAt: import("effect/Schema").DateFromString;
|
|
3914
4147
|
readonly updatedAt: import("effect/Schema").DateFromString;
|
|
3915
4148
|
}>;
|
|
4149
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verifyOrganizationSso", "POST", "/api/auth/organization/sso/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4150
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
4151
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4152
|
+
readonly callbackURL: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
4153
|
+
readonly organizationId: import("effect/Schema").NonEmptyString;
|
|
4154
|
+
readonly providerId: import("effect/Schema").NonEmptyString;
|
|
4155
|
+
readonly issuer: import("effect/Schema").NonEmptyString;
|
|
4156
|
+
readonly domain: import("effect/Schema").NonEmptyString;
|
|
4157
|
+
readonly clientId: import("effect/Schema").NonEmptyString;
|
|
4158
|
+
readonly enabled: import("effect/Schema").Boolean;
|
|
4159
|
+
readonly domainVerified: import("effect/Schema").Boolean;
|
|
4160
|
+
readonly verificationName: import("effect/Schema").NonEmptyString;
|
|
4161
|
+
readonly verificationToken: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
|
3916
4162
|
}>>, import("effect/Schema").toCodecJson<typeof import("./auth/schema.js").AuthBadRequest | typeof import("./auth/schema.js").AuthUnauthorized | typeof import("./auth/schema.js").AuthForbidden | typeof import("./auth/schema.js").AuthNotFound | typeof import("./auth/schema.js").AuthConflict | typeof import("./auth/schema.js").AuthExpectationFailed | typeof import("./auth/schema.js").AuthTooManyRequests | typeof import("./auth/schema.js").AuthInternalServerError>, never, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"authExtra", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/api/auth/create-api-key", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
3917
4163
|
readonly configId: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"user">, import("effect/Schema").Literal<"organization">, import("effect/Schema").Literal<"service">]>;
|
|
3918
4164
|
readonly name: import("effect/Schema").optional<import("effect/Schema").NonEmptyString>;
|
package/dist/auth/api.group.d.ts
CHANGED
|
@@ -327,6 +327,10 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
327
327
|
readonly createdAt: Schema.DateFromString;
|
|
328
328
|
readonly updatedAt: Schema.DateFromString;
|
|
329
329
|
}>;
|
|
330
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteOrganizationSso", "POST", "/organization/sso/delete", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
331
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
332
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
333
|
+
readonly success: Schema.Boolean;
|
|
330
334
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteUser", "POST", "/delete-user", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
331
335
|
readonly password: Schema.optional<Schema.String>;
|
|
332
336
|
readonly token: Schema.optional<Schema.String>;
|
|
@@ -334,7 +338,20 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
334
338
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
335
339
|
readonly success: Schema.Boolean;
|
|
336
340
|
readonly message: Schema.String;
|
|
337
|
-
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
341
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganizationSso", "GET", "/organization/sso", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
342
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
343
|
+
}>>, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
|
|
344
|
+
readonly callbackURL: Schema.optional<Schema.NonEmptyString>;
|
|
345
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
346
|
+
readonly providerId: Schema.NonEmptyString;
|
|
347
|
+
readonly issuer: Schema.NonEmptyString;
|
|
348
|
+
readonly domain: Schema.NonEmptyString;
|
|
349
|
+
readonly clientId: Schema.NonEmptyString;
|
|
350
|
+
readonly enabled: Schema.Boolean;
|
|
351
|
+
readonly domainVerified: Schema.Boolean;
|
|
352
|
+
readonly verificationName: Schema.NonEmptyString;
|
|
353
|
+
readonly verificationToken: Schema.optional<Schema.NonEmptyString>;
|
|
354
|
+
}>>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSession", "GET", "/get-session", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
338
355
|
readonly disableCookieCache: Schema.optional<Schema.String>;
|
|
339
356
|
readonly disableRefresh: Schema.optional<Schema.String>;
|
|
340
357
|
}>>, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
|
|
@@ -399,6 +416,11 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
399
416
|
readonly createdAt: Schema.DateFromString;
|
|
400
417
|
readonly updatedAt: Schema.DateFromString;
|
|
401
418
|
}>;
|
|
419
|
+
}>>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSsoConfig", "GET", "/sso/config", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
420
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
421
|
+
readonly organizationSlug: Schema.optional<Schema.NonEmptyString>;
|
|
422
|
+
}>>, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
|
|
423
|
+
readonly providerId: Schema.NonEmptyString;
|
|
402
424
|
}>>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"linkSocial", "POST", "/link-social", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
403
425
|
readonly callbackURL: Schema.optional<Schema.String>;
|
|
404
426
|
readonly provider: Schema.String;
|
|
@@ -906,11 +928,42 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
906
928
|
readonly token: Schema.optional<Schema.String>;
|
|
907
929
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
908
930
|
readonly status: Schema.Boolean;
|
|
931
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"saveOrganizationSso", "POST", "/organization/sso", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
932
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
933
|
+
readonly issuer: Schema.NonEmptyString;
|
|
934
|
+
readonly domain: Schema.NonEmptyString;
|
|
935
|
+
readonly clientId: Schema.NonEmptyString;
|
|
936
|
+
readonly clientSecret: Schema.optional<Schema.NonEmptyString>;
|
|
937
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
938
|
+
readonly callbackURL: Schema.optional<Schema.NonEmptyString>;
|
|
939
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
940
|
+
readonly providerId: Schema.NonEmptyString;
|
|
941
|
+
readonly issuer: Schema.NonEmptyString;
|
|
942
|
+
readonly domain: Schema.NonEmptyString;
|
|
943
|
+
readonly clientId: Schema.NonEmptyString;
|
|
944
|
+
readonly enabled: Schema.Boolean;
|
|
945
|
+
readonly domainVerified: Schema.Boolean;
|
|
946
|
+
readonly verificationName: Schema.NonEmptyString;
|
|
947
|
+
readonly verificationToken: Schema.optional<Schema.NonEmptyString>;
|
|
909
948
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sendVerificationOtp", "POST", "/email-otp/send-verification-otp", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
910
949
|
readonly email: Schema.String;
|
|
911
950
|
readonly type: Schema.Literals<readonly ["sign-in", "email-verification", "forget-password"]>;
|
|
912
951
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
913
952
|
readonly success: Schema.Boolean;
|
|
953
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setOrganizationSsoEnabled", "POST", "/organization/sso/enabled", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
954
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
955
|
+
readonly enabled: Schema.Boolean;
|
|
956
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
957
|
+
readonly callbackURL: Schema.optional<Schema.NonEmptyString>;
|
|
958
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
959
|
+
readonly providerId: Schema.NonEmptyString;
|
|
960
|
+
readonly issuer: Schema.NonEmptyString;
|
|
961
|
+
readonly domain: Schema.NonEmptyString;
|
|
962
|
+
readonly clientId: Schema.NonEmptyString;
|
|
963
|
+
readonly enabled: Schema.Boolean;
|
|
964
|
+
readonly domainVerified: Schema.Boolean;
|
|
965
|
+
readonly verificationName: Schema.NonEmptyString;
|
|
966
|
+
readonly verificationToken: Schema.optional<Schema.NonEmptyString>;
|
|
914
967
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInEmail", "POST", "/sign-in/email", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
915
968
|
readonly email: Schema.String;
|
|
916
969
|
readonly password: Schema.String;
|
|
@@ -1106,6 +1159,63 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1106
1159
|
readonly updatedAt: Schema.DateFromString;
|
|
1107
1160
|
}>>;
|
|
1108
1161
|
readonly status: Schema.optional<Schema.Boolean>;
|
|
1162
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signInSso", "POST", "/sign-in/sso", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1163
|
+
readonly providerId: Schema.NonEmptyString;
|
|
1164
|
+
readonly callbackURL: Schema.NonEmptyString;
|
|
1165
|
+
readonly errorCallbackURL: Schema.optional<Schema.NonEmptyString>;
|
|
1166
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1167
|
+
readonly url: Schema.optional<Schema.String>;
|
|
1168
|
+
readonly redirect: Schema.Boolean;
|
|
1169
|
+
readonly token: Schema.optional<Schema.String>;
|
|
1170
|
+
readonly user: Schema.optional<Schema.Struct<{
|
|
1171
|
+
readonly id: Schema.String;
|
|
1172
|
+
readonly name: Schema.String;
|
|
1173
|
+
readonly email: Schema.String;
|
|
1174
|
+
readonly emailVerified: Schema.Boolean;
|
|
1175
|
+
readonly locale: Schema.optional<Schema.Literals<readonly ["en", "fr"]>>;
|
|
1176
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
1177
|
+
readonly metadata: Schema.optional<Schema.NullOr<Schema.decodeTo<Schema.Struct<{
|
|
1178
|
+
readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1179
|
+
readonly email: Schema.NonEmptyString;
|
|
1180
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1181
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1182
|
+
readonly label: Schema.NonEmptyString;
|
|
1183
|
+
}>>;
|
|
1184
|
+
}>>>;
|
|
1185
|
+
readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1186
|
+
readonly number: Schema.NonEmptyString;
|
|
1187
|
+
readonly extension: Schema.optional<Schema.String>;
|
|
1188
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1189
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1190
|
+
readonly label: Schema.NonEmptyString;
|
|
1191
|
+
}>>;
|
|
1192
|
+
}>>>;
|
|
1193
|
+
readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1194
|
+
readonly url: Schema.NonEmptyString;
|
|
1195
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1196
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1197
|
+
readonly label: Schema.NonEmptyString;
|
|
1198
|
+
}>>;
|
|
1199
|
+
}>>>;
|
|
1200
|
+
readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1201
|
+
readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
|
|
1202
|
+
readonly url: Schema.NonEmptyString;
|
|
1203
|
+
readonly translations: Schema.$Array<Schema.Struct<{
|
|
1204
|
+
readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
|
|
1205
|
+
readonly label: Schema.NonEmptyString;
|
|
1206
|
+
}>>;
|
|
1207
|
+
}>>>;
|
|
1208
|
+
}>, Schema.Unknown, never, never>>>;
|
|
1209
|
+
readonly role: Schema.NullOr<Schema.String>;
|
|
1210
|
+
readonly banned: Schema.NullOr<Schema.Boolean>;
|
|
1211
|
+
readonly banReason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1212
|
+
readonly banExpires: Schema.optional<Schema.NullOr<Schema.DateFromString>>;
|
|
1213
|
+
readonly twoFactorEnabled: Schema.optional<Schema.Boolean>;
|
|
1214
|
+
readonly lastLoginMethod: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1215
|
+
readonly createdAt: Schema.DateFromString;
|
|
1216
|
+
readonly updatedAt: Schema.DateFromString;
|
|
1217
|
+
}>>;
|
|
1218
|
+
readonly status: Schema.optional<Schema.Boolean>;
|
|
1109
1219
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"signOut", "POST", "/sign-out", never, never, Schema.toCodecJson<Schema.Struct<{}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1110
1220
|
readonly success: Schema.Boolean;
|
|
1111
1221
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"twoFactorDisable", "POST", "/two-factor/disable", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -1382,4 +1492,17 @@ export declare const AuthApiGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndp
|
|
|
1382
1492
|
readonly createdAt: Schema.DateFromString;
|
|
1383
1493
|
readonly updatedAt: Schema.DateFromString;
|
|
1384
1494
|
}>;
|
|
1495
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"verifyOrganizationSso", "POST", "/organization/sso/verify", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1496
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
1497
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1498
|
+
readonly callbackURL: Schema.optional<Schema.NonEmptyString>;
|
|
1499
|
+
readonly organizationId: Schema.NonEmptyString;
|
|
1500
|
+
readonly providerId: Schema.NonEmptyString;
|
|
1501
|
+
readonly issuer: Schema.NonEmptyString;
|
|
1502
|
+
readonly domain: Schema.NonEmptyString;
|
|
1503
|
+
readonly clientId: Schema.NonEmptyString;
|
|
1504
|
+
readonly enabled: Schema.Boolean;
|
|
1505
|
+
readonly domainVerified: Schema.Boolean;
|
|
1506
|
+
readonly verificationName: Schema.NonEmptyString;
|
|
1507
|
+
readonly verificationToken: Schema.optional<Schema.NonEmptyString>;
|
|
1385
1508
|
}>>, Schema.toCodecJson<typeof AuthBadRequest | typeof AuthUnauthorized | typeof AuthForbidden | typeof AuthNotFound | typeof AuthConflict | typeof AuthExpectationFailed | typeof AuthTooManyRequests | typeof AuthInternalServerError>, never, never>, false>;
|