@go-mondo/identity-sdk 0.0.2-beta.19 → 0.0.2-beta.21
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/.release-please-manifest.json +1 -1
- package/.tsbuildinfo/cjs.json +1 -1
- package/.tsbuildinfo/esm.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/cjs/action/schema/base.d.ts +3 -3
- package/dist/cjs/action/schema/base.d.ts.map +1 -1
- package/dist/cjs/action/schema/base.js +3 -3
- package/dist/cjs/action/schema/operations/set-password.d.ts +3 -3
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +3 -3
- package/dist/cjs/action/schema/operations/sign-up.d.ts +3 -3
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +3 -3
- package/dist/cjs/action/schema/schema.d.ts +12 -12
- package/dist/cjs/activity/schema/base.d.ts +6 -6
- package/dist/cjs/activity/schema/base.d.ts.map +1 -1
- package/dist/cjs/activity/schema/base.js +9 -9
- package/dist/cjs/activity/schema/schema.d.ts +30 -30
- package/dist/cjs/activity/schema/types/authentication.d.ts +6 -6
- package/dist/cjs/activity/schema/types/authorization.d.ts +6 -6
- package/dist/cjs/activity/schema/types/note.d.ts +6 -6
- package/dist/cjs/activity/schema/types/operation.d.ts +6 -6
- package/dist/cjs/activity/schema/types/unknown.d.ts +6 -6
- package/dist/cjs/app/authorization/schema.d.ts +5 -5
- package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
- package/dist/cjs/app/authorization/schema.js +4 -4
- package/dist/cjs/app/oauth/schema.d.ts +5 -5
- package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
- package/dist/cjs/app/oauth/schema.js +4 -4
- package/dist/cjs/app/oidc/schema.d.ts +5 -5
- package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
- package/dist/cjs/app/oidc/schema.js +4 -4
- package/dist/cjs/app/registration/schema.d.ts +5 -5
- package/dist/cjs/app/registration/schema.d.ts.map +1 -1
- package/dist/cjs/app/registration/schema.js +4 -4
- package/dist/cjs/app/saml/schema.d.ts +5 -5
- package/dist/cjs/app/saml/schema.d.ts.map +1 -1
- package/dist/cjs/app/saml/schema.js +4 -4
- package/dist/cjs/app/schema.d.ts +6 -6
- package/dist/cjs/app/schema.d.ts.map +1 -1
- package/dist/cjs/app/schema.js +9 -8
- package/dist/cjs/association/schema.d.ts +7 -7
- package/dist/cjs/association/schema.d.ts.map +1 -1
- package/dist/cjs/association/schema.js +7 -7
- package/dist/cjs/authentication/providers/schema.d.ts +3 -3
- package/dist/cjs/authentication/providers/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/providers/schema.js +4 -4
- package/dist/cjs/authentication/sessions/schema.d.ts +10 -10
- package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/sessions/schema.js +8 -8
- package/dist/cjs/authentication/settings/schema.d.ts +7 -7
- package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/settings/schema.js +6 -6
- package/dist/cjs/authentication/strategies/schema/base.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/base.js +9 -9
- package/dist/cjs/authentication/strategies/schema/schema.d.ts +37 -37
- package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/schema.js +21 -4
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/email.js +1 -1
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/password.js +1 -1
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +8 -8
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/totp.js +1 -1
- package/dist/cjs/authorization/permissions/schema.d.ts +8 -8
- package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/permissions/schema.js +9 -9
- package/dist/cjs/authorization/roles/schema.d.ts +6 -6
- package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/roles/schema.js +9 -9
- package/dist/cjs/common/schema/dates.d.ts +3 -3
- package/dist/cjs/common/schema/dates.d.ts.map +1 -1
- package/dist/cjs/common/schema/dates.js +1 -1
- package/dist/cjs/customer/organization/schema.d.ts +6 -6
- package/dist/cjs/customer/organization/schema.d.ts.map +1 -1
- package/dist/cjs/customer/organization/schema.js +9 -9
- package/dist/cjs/customer/users/schema.d.ts +8 -8
- package/dist/cjs/customer/users/schema.d.ts.map +1 -1
- package/dist/cjs/customer/users/schema.js +8 -8
- package/dist/cjs/oauth/token/schema/schema.d.ts +4 -4
- package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
- package/dist/cjs/oauth/token/schema/schema.js +6 -1
- package/dist/cjs/workspace/authorization/schema.d.ts +5 -5
- package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/authorization/schema.js +5 -5
- package/dist/cjs/workspace/branding/schema.d.ts +5 -5
- package/dist/cjs/workspace/branding/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/branding/schema.js +4 -4
- package/dist/cjs/workspace/membership/schema.d.ts +2 -2
- package/dist/cjs/workspace/registration/schema.d.ts +5 -5
- package/dist/cjs/workspace/registration/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/registration/schema.js +4 -4
- package/dist/cjs/workspace/settings/schema.d.ts +5 -5
- package/dist/cjs/workspace/settings/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/settings/schema.js +4 -4
- package/dist/cjs/workspace/tenant/schema.d.ts +10 -10
- package/dist/cjs/workspace/user/notifications/schema.d.ts +8 -8
- package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/user/notifications/schema.js +9 -9
- package/dist/cjs/workspace/user/preferences/schema.d.ts +5 -5
- package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -1
- package/dist/cjs/workspace/user/preferences/schema.js +4 -4
- package/dist/esm/action/schema/base.d.ts +3 -3
- package/dist/esm/action/schema/base.d.ts.map +1 -1
- package/dist/esm/action/schema/base.js +4 -4
- package/dist/esm/action/schema/operations/set-password.d.ts +3 -3
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +3 -3
- package/dist/esm/action/schema/operations/sign-up.d.ts +3 -3
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +3 -3
- package/dist/esm/action/schema/schema.d.ts +12 -12
- package/dist/esm/activity/schema/base.d.ts +6 -6
- package/dist/esm/activity/schema/base.d.ts.map +1 -1
- package/dist/esm/activity/schema/base.js +9 -9
- package/dist/esm/activity/schema/schema.d.ts +30 -30
- package/dist/esm/activity/schema/types/authentication.d.ts +6 -6
- package/dist/esm/activity/schema/types/authorization.d.ts +6 -6
- package/dist/esm/activity/schema/types/note.d.ts +6 -6
- package/dist/esm/activity/schema/types/operation.d.ts +6 -6
- package/dist/esm/activity/schema/types/unknown.d.ts +6 -6
- package/dist/esm/app/authorization/schema.d.ts +5 -5
- package/dist/esm/app/authorization/schema.d.ts.map +1 -1
- package/dist/esm/app/authorization/schema.js +5 -5
- package/dist/esm/app/oauth/schema.d.ts +5 -5
- package/dist/esm/app/oauth/schema.d.ts.map +1 -1
- package/dist/esm/app/oauth/schema.js +5 -5
- package/dist/esm/app/oidc/schema.d.ts +5 -5
- package/dist/esm/app/oidc/schema.d.ts.map +1 -1
- package/dist/esm/app/oidc/schema.js +5 -5
- package/dist/esm/app/registration/schema.d.ts +5 -5
- package/dist/esm/app/registration/schema.d.ts.map +1 -1
- package/dist/esm/app/registration/schema.js +5 -5
- package/dist/esm/app/saml/schema.d.ts +5 -5
- package/dist/esm/app/saml/schema.d.ts.map +1 -1
- package/dist/esm/app/saml/schema.js +5 -5
- package/dist/esm/app/schema.d.ts +6 -6
- package/dist/esm/app/schema.d.ts.map +1 -1
- package/dist/esm/app/schema.js +10 -9
- package/dist/esm/association/schema.d.ts +7 -7
- package/dist/esm/association/schema.d.ts.map +1 -1
- package/dist/esm/association/schema.js +8 -8
- package/dist/esm/authentication/providers/schema.d.ts +3 -3
- package/dist/esm/authentication/providers/schema.d.ts.map +1 -1
- package/dist/esm/authentication/providers/schema.js +4 -4
- package/dist/esm/authentication/sessions/schema.d.ts +10 -10
- package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
- package/dist/esm/authentication/sessions/schema.js +9 -9
- package/dist/esm/authentication/settings/schema.d.ts +7 -7
- package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
- package/dist/esm/authentication/settings/schema.js +7 -7
- package/dist/esm/authentication/strategies/schema/base.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/base.js +9 -9
- package/dist/esm/authentication/strategies/schema/schema.d.ts +37 -37
- package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/schema.js +21 -4
- package/dist/esm/authentication/strategies/schema/types/email.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/email.js +2 -2
- package/dist/esm/authentication/strategies/schema/types/password.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/password.js +2 -2
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts +8 -8
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/totp.js +2 -2
- package/dist/esm/authorization/permissions/schema.d.ts +8 -8
- package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/esm/authorization/permissions/schema.js +9 -9
- package/dist/esm/authorization/roles/schema.d.ts +6 -6
- package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
- package/dist/esm/authorization/roles/schema.js +9 -9
- package/dist/esm/common/schema/dates.d.ts +3 -3
- package/dist/esm/common/schema/dates.d.ts.map +1 -1
- package/dist/esm/common/schema/dates.js +1 -1
- package/dist/esm/customer/organization/schema.d.ts +6 -6
- package/dist/esm/customer/organization/schema.d.ts.map +1 -1
- package/dist/esm/customer/organization/schema.js +9 -9
- package/dist/esm/customer/users/schema.d.ts +8 -8
- package/dist/esm/customer/users/schema.d.ts.map +1 -1
- package/dist/esm/customer/users/schema.js +9 -9
- package/dist/esm/oauth/token/schema/schema.d.ts +4 -4
- package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
- package/dist/esm/oauth/token/schema/schema.js +6 -1
- package/dist/esm/workspace/authorization/schema.d.ts +5 -5
- package/dist/esm/workspace/authorization/schema.d.ts.map +1 -1
- package/dist/esm/workspace/authorization/schema.js +6 -6
- package/dist/esm/workspace/branding/schema.d.ts +5 -5
- package/dist/esm/workspace/branding/schema.d.ts.map +1 -1
- package/dist/esm/workspace/branding/schema.js +5 -5
- package/dist/esm/workspace/membership/schema.d.ts +2 -2
- package/dist/esm/workspace/registration/schema.d.ts +5 -5
- package/dist/esm/workspace/registration/schema.d.ts.map +1 -1
- package/dist/esm/workspace/registration/schema.js +5 -5
- package/dist/esm/workspace/settings/schema.d.ts +5 -5
- package/dist/esm/workspace/settings/schema.d.ts.map +1 -1
- package/dist/esm/workspace/settings/schema.js +5 -5
- package/dist/esm/workspace/tenant/schema.d.ts +10 -10
- package/dist/esm/workspace/user/notifications/schema.d.ts +8 -8
- package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -1
- package/dist/esm/workspace/user/notifications/schema.js +9 -9
- package/dist/esm/workspace/user/preferences/schema.d.ts +5 -5
- package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -1
- package/dist/esm/workspace/user/preferences/schema.js +5 -5
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SettingsSchema: z.ZodObject<{
|
|
3
3
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
4
|
-
factors: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodArray<z.ZodType<import("../factors/schema.js").AuthenticationFactorType, unknown, z.core.$ZodTypeInternals<import("../factors/schema.js").AuthenticationFactorType, unknown>>>]>, z.ZodTransform<import("../factors/schema.js").AuthenticationFactorType[] | undefined, import("../factors/schema.js").AuthenticationFactorType[] | null | undefined>>>;
|
|
5
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
6
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
7
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
8
4
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
5
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
6
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
7
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
8
|
+
factors: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodArray<z.ZodType<import("../factors/schema.js").AuthenticationFactorType, unknown, z.core.$ZodTypeInternals<import("../factors/schema.js").AuthenticationFactorType, unknown>>>]>, z.ZodTransform<import("../factors/schema.js").AuthenticationFactorType[] | undefined, import("../factors/schema.js").AuthenticationFactorType[] | null | undefined>>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export type SettingsProperties = z.input<typeof SettingsSchema>;
|
|
11
11
|
export type Settings = z.output<typeof SettingsSchema>;
|
|
12
12
|
export declare const SettingsPayloadSchema: z.ZodObject<{
|
|
13
13
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
14
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
15
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
14
16
|
factors: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodArray<z.ZodType<import("../factors/schema.js").AuthenticationFactorType, unknown, z.core.$ZodTypeInternals<import("../factors/schema.js").AuthenticationFactorType, unknown>>>]>, z.ZodTransform<import("../factors/schema.js").AuthenticationFactorType[] | undefined, import("../factors/schema.js").AuthenticationFactorType[] | null | undefined>>>;
|
|
15
|
-
updatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined
|
|
16
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
17
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
17
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type SettingsPayload = z.output<typeof SettingsPayloadSchema>;
|
|
20
20
|
export declare const UpsertSettingsPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authentication/settings/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authentication/settings/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,cAAc;;;;;;;iBAOzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;iBAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -7,17 +7,17 @@ const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
|
7
7
|
const schema_js_1 = require("../factors/schema.js");
|
|
8
8
|
exports.SettingsSchema = zod_1.z.object({
|
|
9
9
|
factors: schema_js_1.AuthenticationFactorsSchema.optional(),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
...dates_js_1.CreatedAtPropertySchema.shape,
|
|
11
|
+
...dates_js_1.UpdatedAtPropertySchema.shape,
|
|
12
|
+
...dates_js_1.DeletedAtPropertySchema.shape,
|
|
13
|
+
...dates_js_1.DeactivatedAtPropertySchema.shape,
|
|
14
14
|
...metadata_js_1.MetadataMapPropertySchema.shape,
|
|
15
15
|
});
|
|
16
16
|
exports.SettingsPayloadSchema = zod_1.z.object({
|
|
17
17
|
factors: schema_js_1.AuthenticationFactorsSchema.optional(),
|
|
18
18
|
updatedAt: dates_js_1.OptionalDatePayloadSchema,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
20
|
+
...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
|
|
21
21
|
...metadata_js_1.MetadataPayloadPropertySchema.shape,
|
|
22
22
|
});
|
|
23
23
|
exports.UpsertSettingsPayloadSchema = zod_1.z.object({
|
|
@@ -28,28 +28,28 @@ export declare const StrategyTypeSchema: z.ZodEnum<{
|
|
|
28
28
|
export declare const StrategyLabelSchema: z.ZodString;
|
|
29
29
|
export declare const BaseStrategySchema: z.ZodObject<{
|
|
30
30
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
31
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
32
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
33
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
34
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
31
35
|
id: z.ZodString;
|
|
32
36
|
status: z.ZodDefault<z.ZodEnum<{
|
|
33
37
|
enabled: "enabled";
|
|
34
38
|
disabled: "disabled";
|
|
35
39
|
}>>;
|
|
36
40
|
label: z.ZodString;
|
|
37
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
38
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
39
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
40
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export declare const BaseStrategyPayloadSchema: z.ZodObject<{
|
|
43
43
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
44
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
45
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
46
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
47
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
44
48
|
status: z.ZodEnum<{
|
|
45
49
|
enabled: "enabled";
|
|
46
50
|
disabled: "disabled";
|
|
47
51
|
}>;
|
|
48
52
|
label: z.ZodString;
|
|
49
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
50
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
51
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
52
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
export declare const BaseInsertStrategyPayloadSchema: z.ZodObject<{
|
|
55
55
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/base.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,gBAAgB,aAAwC,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,oBAAoB;;;EAGtB,CAAC;AACZ,eAAO,MAAM,kBAAkB;;;;EAIpB,CAAC;AACZ,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAS7B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAQpC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;iBAK1C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;iBAI1C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseUpdateStrategyPayloadSchema = exports.BaseInsertStrategyPayloadSchema = exports.BaseStrategyPayloadSchema = exports.BaseStrategySchema = exports.StrategyLabelSchema = exports.StrategyTypeSchema = exports.StrategyStatusSchema = exports.StrategyIdPropertySchema = exports.StrategyIdSchema = exports.StrategyStatus = exports.StrategyType = void 0;
|
|
4
|
+
const index_js_1 = require("src/common/index.js");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
|
-
const index_js_1 = require("../../../common/index.js");
|
|
6
6
|
const id_js_1 = require("../../../common/schema/id.js");
|
|
7
7
|
const metadata_js_1 = require("../../../common/schema/metadata.js");
|
|
8
8
|
const utils_js_1 = require("../../utils.js");
|
|
@@ -33,19 +33,19 @@ exports.BaseStrategySchema = zod_1.z.object({
|
|
|
33
33
|
id: exports.StrategyIdSchema,
|
|
34
34
|
status: exports.StrategyStatusSchema.default(exports.StrategyStatus.ENABLED),
|
|
35
35
|
label: exports.StrategyLabelSchema,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
...index_js_1.CreatedAtPropertySchema.shape,
|
|
37
|
+
...index_js_1.UpdatedAtPropertySchema.shape,
|
|
38
|
+
...index_js_1.DeletedAtPropertySchema.shape,
|
|
39
|
+
...index_js_1.DeactivatedAtPropertySchema.shape,
|
|
40
40
|
...metadata_js_1.MetadataMapPropertySchema.shape,
|
|
41
41
|
});
|
|
42
42
|
exports.BaseStrategyPayloadSchema = zod_1.z.object({
|
|
43
43
|
status: exports.StrategyStatusSchema,
|
|
44
44
|
label: exports.StrategyLabelSchema,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
...index_js_1.CreatedAtPropertyPayloadSchema.shape,
|
|
46
|
+
...index_js_1.UpdatedAtPropertyPayloadSchema.shape,
|
|
47
|
+
...index_js_1.DeletedAtPropertyPayloadSchema.shape,
|
|
48
|
+
...index_js_1.DeactivatedAtPropertyPayloadSchema.shape,
|
|
49
49
|
...metadata_js_1.MetadataPayloadPropertySchema.shape,
|
|
50
50
|
});
|
|
51
51
|
exports.BaseInsertStrategyPayloadSchema = zod_1.z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Union(s)
|
|
4
4
|
*/
|
|
5
|
-
export declare const InsertStrategyPayloadSchema: z.
|
|
5
|
+
export declare const InsertStrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
6
|
settings: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
passwordPolicy: z.ZodObject<{
|
|
8
8
|
minimumLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -30,7 +30,7 @@ export declare const InsertStrategyPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodO
|
|
|
30
30
|
disabled: "disabled";
|
|
31
31
|
}>>;
|
|
32
32
|
type: z.ZodLiteral<"email">;
|
|
33
|
-
}, z.core.$strip
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
34
|
settings: z.ZodOptional<z.ZodObject<{
|
|
35
35
|
digits: z.ZodDefault<z.ZodNumber>;
|
|
36
36
|
period: z.ZodDefault<z.ZodNumber>;
|
|
@@ -46,10 +46,10 @@ export declare const InsertStrategyPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodO
|
|
|
46
46
|
disabled: "disabled";
|
|
47
47
|
}>>;
|
|
48
48
|
type: z.ZodLiteral<"totp">;
|
|
49
|
-
}, z.core.$strip>]>;
|
|
49
|
+
}, z.core.$strip>], "type">;
|
|
50
50
|
export type InsertStrategyInput = z.input<typeof InsertStrategyPayloadSchema>;
|
|
51
51
|
export type InsertStrategyPayload = z.output<typeof InsertStrategyPayloadSchema>;
|
|
52
|
-
export declare const UpdateStrategyPayloadSchema: z.
|
|
52
|
+
export declare const UpdateStrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
53
|
settings: z.ZodOptional<z.ZodObject<{
|
|
54
54
|
passwordPolicy: z.ZodObject<{
|
|
55
55
|
minimumLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -75,7 +75,7 @@ export declare const UpdateStrategyPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodO
|
|
|
75
75
|
disabled: "disabled";
|
|
76
76
|
}>>;
|
|
77
77
|
type: z.ZodLiteral<"email">;
|
|
78
|
-
}, z.core.$strip
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
79
|
settings: z.ZodOptional<z.ZodObject<{
|
|
80
80
|
digits: z.ZodDefault<z.ZodNumber>;
|
|
81
81
|
period: z.ZodDefault<z.ZodNumber>;
|
|
@@ -90,10 +90,10 @@ export declare const UpdateStrategyPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodO
|
|
|
90
90
|
disabled: "disabled";
|
|
91
91
|
}>>;
|
|
92
92
|
type: z.ZodLiteral<"totp">;
|
|
93
|
-
}, z.core.$strip>]>;
|
|
93
|
+
}, z.core.$strip>], "type">;
|
|
94
94
|
export type UpdateStrategyInput = z.input<typeof UpdateStrategyPayloadSchema>;
|
|
95
95
|
export type UpdateStrategyPayload = z.output<typeof UpdateStrategyPayloadSchema>;
|
|
96
|
-
export declare const StrategyPayloadSchema: z.
|
|
96
|
+
export declare const StrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
97
|
settings: z.ZodObject<{
|
|
98
98
|
passwordPolicy: z.ZodObject<{
|
|
99
99
|
minimumLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -106,27 +106,27 @@ export declare const StrategyPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>;
|
|
107
107
|
type: z.ZodLiteral<"password">;
|
|
108
108
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
109
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
110
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
111
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
112
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
109
113
|
status: z.ZodEnum<{
|
|
110
114
|
enabled: "enabled";
|
|
111
115
|
disabled: "disabled";
|
|
112
116
|
}>;
|
|
113
117
|
label: z.ZodString;
|
|
114
|
-
|
|
115
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
116
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
117
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
118
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
119
|
type: z.ZodLiteral<"email">;
|
|
120
120
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
121
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
122
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
123
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
124
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
121
125
|
status: z.ZodEnum<{
|
|
122
126
|
enabled: "enabled";
|
|
123
127
|
disabled: "disabled";
|
|
124
128
|
}>;
|
|
125
129
|
label: z.ZodString;
|
|
126
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
127
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
128
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
129
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
130
130
|
}, z.core.$strip>, z.ZodObject<{
|
|
131
131
|
settings: z.ZodObject<{
|
|
132
132
|
digits: z.ZodDefault<z.ZodNumber>;
|
|
@@ -137,18 +137,18 @@ export declare const StrategyPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
137
137
|
}, z.core.$strip>;
|
|
138
138
|
type: z.ZodLiteral<"totp">;
|
|
139
139
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
140
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
141
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
142
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
143
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
140
144
|
status: z.ZodEnum<{
|
|
141
145
|
enabled: "enabled";
|
|
142
146
|
disabled: "disabled";
|
|
143
147
|
}>;
|
|
144
148
|
label: z.ZodString;
|
|
145
|
-
|
|
146
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
147
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
148
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
149
|
-
}, z.core.$strip>]>]>;
|
|
149
|
+
}, z.core.$strip>], "type">;
|
|
150
150
|
export type StrategyPayload = z.input<typeof StrategyPayloadSchema>;
|
|
151
|
-
export declare const StrategySchema: z.
|
|
151
|
+
export declare const StrategySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
152
152
|
settings: z.ZodObject<{
|
|
153
153
|
passwordPolicy: z.ZodObject<{
|
|
154
154
|
minimumLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -161,30 +161,30 @@ export declare const StrategySchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
161
161
|
}, z.core.$strip>;
|
|
162
162
|
type: z.ZodLiteral<"password">;
|
|
163
163
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
164
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
165
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
166
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
167
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
164
168
|
id: z.ZodString;
|
|
165
169
|
status: z.ZodDefault<z.ZodEnum<{
|
|
166
170
|
enabled: "enabled";
|
|
167
171
|
disabled: "disabled";
|
|
168
172
|
}>>;
|
|
169
173
|
label: z.ZodString;
|
|
170
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
171
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
172
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
173
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
174
174
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
175
|
type: z.ZodLiteral<"email">;
|
|
176
176
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
177
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
178
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
179
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
180
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
177
181
|
id: z.ZodString;
|
|
178
182
|
status: z.ZodDefault<z.ZodEnum<{
|
|
179
183
|
enabled: "enabled";
|
|
180
184
|
disabled: "disabled";
|
|
181
185
|
}>>;
|
|
182
186
|
label: z.ZodString;
|
|
183
|
-
|
|
184
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
185
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
186
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
187
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
188
|
settings: z.ZodObject<{
|
|
189
189
|
digits: z.ZodDefault<z.ZodNumber>;
|
|
190
190
|
period: z.ZodDefault<z.ZodNumber>;
|
|
@@ -194,17 +194,17 @@ export declare const StrategySchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
194
194
|
}, z.core.$strip>;
|
|
195
195
|
type: z.ZodLiteral<"totp">;
|
|
196
196
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
197
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
198
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
199
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
200
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
197
201
|
id: z.ZodString;
|
|
198
202
|
status: z.ZodDefault<z.ZodEnum<{
|
|
199
203
|
enabled: "enabled";
|
|
200
204
|
disabled: "disabled";
|
|
201
205
|
}>>;
|
|
202
206
|
label: z.ZodString;
|
|
203
|
-
|
|
204
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
205
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
206
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
207
|
-
}, z.core.$strip>]>;
|
|
207
|
+
}, z.core.$strip>], "type">;
|
|
208
208
|
export type StrategyProperties = z.input<typeof StrategySchema>;
|
|
209
209
|
export type Strategy = z.output<typeof StrategySchema>;
|
|
210
210
|
export { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseUpdateStrategyPayloadSchema, StrategyIdPropertySchema, StrategyIdSchema, StrategyLabelSchema, StrategyStatus, StrategyStatusSchema, StrategyType, type AnyStrategyStatus, type AnyStrategyType, type StrategyId, type StrategyIdProperty, } from './base.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAItC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAItC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAIzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -15,16 +15,33 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.StrategyType = exports.StrategyStatusSchema = exports.StrategyStatus = exports.StrategyLabelSchema = exports.StrategyIdSchema = exports.StrategyIdPropertySchema = exports.BaseUpdateStrategyPayloadSchema = exports.BaseStrategyPayloadSchema = exports.BaseInsertStrategyPayloadSchema = exports.StrategySchema = exports.StrategyPayloadSchema = exports.UpdateStrategyPayloadSchema = exports.InsertStrategyPayloadSchema = void 0;
|
|
18
|
+
const zod_1 = require("zod");
|
|
18
19
|
const email_js_1 = require("./types/email.js");
|
|
19
20
|
const password_js_1 = require("./types/password.js");
|
|
20
21
|
const totp_js_1 = require("./types/totp.js");
|
|
21
22
|
/**
|
|
22
23
|
* Union(s)
|
|
23
24
|
*/
|
|
24
|
-
exports.InsertStrategyPayloadSchema =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
exports.InsertStrategyPayloadSchema = zod_1.z.discriminatedUnion('type', [
|
|
26
|
+
password_js_1.InsertPasswordStrategyPayloadSchema,
|
|
27
|
+
email_js_1.InsertEmailStrategyPayloadSchema,
|
|
28
|
+
totp_js_1.InsertTOTPStrategyPayloadSchema,
|
|
29
|
+
]);
|
|
30
|
+
exports.UpdateStrategyPayloadSchema = zod_1.z.discriminatedUnion('type', [
|
|
31
|
+
password_js_1.UpdatePasswordStrategyPayloadSchema,
|
|
32
|
+
email_js_1.UpdateEmailStrategyPayloadSchema,
|
|
33
|
+
totp_js_1.UpdateTOTPStrategyPayloadSchema,
|
|
34
|
+
]);
|
|
35
|
+
exports.StrategyPayloadSchema = zod_1.z.discriminatedUnion('type', [
|
|
36
|
+
password_js_1.PasswordStrategyPayloadSchema,
|
|
37
|
+
email_js_1.EmailStrategyPayloadSchema,
|
|
38
|
+
totp_js_1.TOTPStrategyPayloadSchema,
|
|
39
|
+
]);
|
|
40
|
+
exports.StrategySchema = zod_1.z.discriminatedUnion('type', [
|
|
41
|
+
password_js_1.PasswordStrategySchema,
|
|
42
|
+
email_js_1.EmailStrategySchema,
|
|
43
|
+
totp_js_1.TOTPStrategySchema,
|
|
44
|
+
]);
|
|
28
45
|
var base_js_1 = require("./base.js");
|
|
29
46
|
Object.defineProperty(exports, "BaseInsertStrategyPayloadSchema", { enumerable: true, get: function () { return base_js_1.BaseInsertStrategyPayloadSchema; } });
|
|
30
47
|
Object.defineProperty(exports, "BaseStrategyPayloadSchema", { enumerable: true, get: function () { return base_js_1.BaseStrategyPayloadSchema; } });
|
|
@@ -2,31 +2,31 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const EmailStrategySchema: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"email">;
|
|
4
4
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
5
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
6
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
7
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
8
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
5
9
|
id: z.ZodString;
|
|
6
10
|
status: z.ZodDefault<z.ZodEnum<{
|
|
7
11
|
enabled: "enabled";
|
|
8
12
|
disabled: "disabled";
|
|
9
13
|
}>>;
|
|
10
14
|
label: z.ZodString;
|
|
11
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
12
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
13
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
14
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export type EmailStrategyProperties = z.input<typeof EmailStrategySchema>;
|
|
17
17
|
export type EmailStrategy = z.output<typeof EmailStrategySchema>;
|
|
18
18
|
export declare const EmailStrategyPayloadSchema: z.ZodObject<{
|
|
19
19
|
type: z.ZodLiteral<"email">;
|
|
20
20
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
21
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
22
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
23
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
24
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
21
25
|
status: z.ZodEnum<{
|
|
22
26
|
enabled: "enabled";
|
|
23
27
|
disabled: "disabled";
|
|
24
28
|
}>;
|
|
25
29
|
label: z.ZodString;
|
|
26
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
27
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
28
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
29
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
export type EmailStrategyPayload = z.output<typeof EmailStrategyPayloadSchema>;
|
|
32
32
|
export declare const InsertEmailStrategyPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAG9B,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,gCAAgC;;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.SendEmailVerificationCodeSchema = exports.VerifyEmailSchema = exports.Up
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_js_1 = require("../base.js");
|
|
6
6
|
const TypeSchema = zod_1.z.object({
|
|
7
|
-
type: zod_1.z.literal(
|
|
7
|
+
type: zod_1.z.literal(base_js_1.StrategyType.EMAIL),
|
|
8
8
|
});
|
|
9
9
|
exports.EmailStrategySchema = zod_1.z.object({
|
|
10
10
|
...base_js_1.BaseStrategySchema.shape,
|
|
@@ -40,16 +40,16 @@ export declare const PasswordStrategySchema: z.ZodObject<{
|
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
type: z.ZodLiteral<"password">;
|
|
42
42
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
43
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
44
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
45
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
46
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
43
47
|
id: z.ZodString;
|
|
44
48
|
status: z.ZodDefault<z.ZodEnum<{
|
|
45
49
|
enabled: "enabled";
|
|
46
50
|
disabled: "disabled";
|
|
47
51
|
}>>;
|
|
48
52
|
label: z.ZodString;
|
|
49
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
50
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
51
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
52
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
export type PasswordStrategyProperties = z.input<typeof PasswordStrategySchema>;
|
|
55
55
|
export type PasswordStrategy = z.output<typeof PasswordStrategySchema>;
|
|
@@ -66,15 +66,15 @@ export declare const PasswordStrategyPayloadSchema: z.ZodObject<{
|
|
|
66
66
|
}, z.core.$strip>;
|
|
67
67
|
type: z.ZodLiteral<"password">;
|
|
68
68
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
69
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
70
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
71
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
72
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
69
73
|
status: z.ZodEnum<{
|
|
70
74
|
enabled: "enabled";
|
|
71
75
|
disabled: "disabled";
|
|
72
76
|
}>;
|
|
73
77
|
label: z.ZodString;
|
|
74
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
75
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
76
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
77
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
79
|
export type PasswordStrategyPayload = z.output<typeof PasswordStrategyPayloadSchema>;
|
|
80
80
|
export declare const InsertPasswordStrategyPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;;iBAO/B,CAAC;AAMH,eAAO,MAAM,sCAAsC;;;;;;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;iBAI9C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC3C,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAClD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;iBAI9C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,mCAAmC,CAC3C,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAClD,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC"}
|
|
@@ -13,7 +13,7 @@ exports.PasswordPolicyDefaults = {
|
|
|
13
13
|
minimumSpecial: 1,
|
|
14
14
|
};
|
|
15
15
|
const TypeSchema = zod_1.z.object({
|
|
16
|
-
type: zod_1.z.literal(
|
|
16
|
+
type: zod_1.z.literal(base_js_1.StrategyType.PASSWORD),
|
|
17
17
|
});
|
|
18
18
|
exports.PasswordPolicySchema = zod_1.z.object({
|
|
19
19
|
minimumLength: zod_1.z.number().default(exports.PasswordPolicyDefaults.minimumLength),
|
|
@@ -42,16 +42,16 @@ export declare const TOTPStrategySchema: z.ZodObject<{
|
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
type: z.ZodLiteral<"totp">;
|
|
44
44
|
metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
|
|
45
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
46
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
47
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
48
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
45
49
|
id: z.ZodString;
|
|
46
50
|
status: z.ZodDefault<z.ZodEnum<{
|
|
47
51
|
enabled: "enabled";
|
|
48
52
|
disabled: "disabled";
|
|
49
53
|
}>>;
|
|
50
54
|
label: z.ZodString;
|
|
51
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
52
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
53
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
54
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
export type TOTPStrategyProperties = z.input<typeof TOTPStrategySchema>;
|
|
57
57
|
export type TOTPStrategy = z.output<typeof TOTPStrategySchema>;
|
|
@@ -65,15 +65,15 @@ export declare const TOTPStrategyPayloadSchema: z.ZodObject<{
|
|
|
65
65
|
}, z.core.$strip>;
|
|
66
66
|
type: z.ZodLiteral<"totp">;
|
|
67
67
|
metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
|
|
68
|
+
deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
69
|
+
deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
|
|
70
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
71
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
68
72
|
status: z.ZodEnum<{
|
|
69
73
|
enabled: "enabled";
|
|
70
74
|
disabled: "disabled";
|
|
71
75
|
}>;
|
|
72
76
|
label: z.ZodString;
|
|
73
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
74
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
75
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
76
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
78
|
export type TOTPStrategyPayload = z.output<typeof TOTPStrategyPayloadSchema>;
|
|
79
79
|
export declare const InsertTOTPStrategyPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"totp.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/totp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"totp.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/totp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,cAAc,KAAK,CAAC;AAMjC,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAKrD,eAAO,MAAM,0BAA0B;;;;;;iBA0BrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,kCAAkC;;;;;;;;iBAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;iBAI7B,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC"}
|
|
@@ -6,7 +6,7 @@ const base_js_1 = require("../base.js");
|
|
|
6
6
|
exports.DEFAULT_DIGITS = 6;
|
|
7
7
|
exports.DEFAULT_PERIOD = 30;
|
|
8
8
|
const TypeSchema = zod_1.z.object({
|
|
9
|
-
type: zod_1.z.literal(
|
|
9
|
+
type: zod_1.z.literal(base_js_1.StrategyType.TOTP),
|
|
10
10
|
});
|
|
11
11
|
exports.TOTPAlgorithm = {
|
|
12
12
|
DEFAULT: 'SHA256',
|