@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,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"}
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { EmailStrategyPayloadSchema, EmailStrategySchema, InsertEmailStrategyPayloadSchema, UpdateEmailStrategyPayloadSchema, } from './types/email.js';
|
|
2
3
|
import { InsertPasswordStrategyPayloadSchema, PasswordStrategyPayloadSchema, PasswordStrategySchema, UpdatePasswordStrategyPayloadSchema, } from './types/password.js';
|
|
3
4
|
import { InsertTOTPStrategyPayloadSchema, TOTPStrategyPayloadSchema, TOTPStrategySchema, UpdateTOTPStrategyPayloadSchema, } from './types/totp.js';
|
|
4
5
|
/**
|
|
5
6
|
* Union(s)
|
|
6
7
|
*/
|
|
7
|
-
export const InsertStrategyPayloadSchema =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export const InsertStrategyPayloadSchema = z.discriminatedUnion('type', [
|
|
9
|
+
InsertPasswordStrategyPayloadSchema,
|
|
10
|
+
InsertEmailStrategyPayloadSchema,
|
|
11
|
+
InsertTOTPStrategyPayloadSchema,
|
|
12
|
+
]);
|
|
13
|
+
export const UpdateStrategyPayloadSchema = z.discriminatedUnion('type', [
|
|
14
|
+
UpdatePasswordStrategyPayloadSchema,
|
|
15
|
+
UpdateEmailStrategyPayloadSchema,
|
|
16
|
+
UpdateTOTPStrategyPayloadSchema,
|
|
17
|
+
]);
|
|
18
|
+
export const StrategyPayloadSchema = z.discriminatedUnion('type', [
|
|
19
|
+
PasswordStrategyPayloadSchema,
|
|
20
|
+
EmailStrategyPayloadSchema,
|
|
21
|
+
TOTPStrategyPayloadSchema,
|
|
22
|
+
]);
|
|
23
|
+
export const StrategySchema = z.discriminatedUnion('type', [
|
|
24
|
+
PasswordStrategySchema,
|
|
25
|
+
EmailStrategySchema,
|
|
26
|
+
TOTPStrategySchema,
|
|
27
|
+
]);
|
|
11
28
|
export { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseUpdateStrategyPayloadSchema, StrategyIdPropertySchema, StrategyIdSchema, StrategyLabelSchema, StrategyStatus, StrategyStatusSchema, StrategyType, } from './base.js';
|
|
12
29
|
export * from './types/email.js';
|
|
13
30
|
export * from './types/password.js';
|
|
@@ -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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseStrategySchema, BaseUpdateStrategyPayloadSchema, } from '../base.js';
|
|
2
|
+
import { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseStrategySchema, BaseUpdateStrategyPayloadSchema, StrategyType, } from '../base.js';
|
|
3
3
|
const TypeSchema = z.object({
|
|
4
|
-
type: z.literal(
|
|
4
|
+
type: z.literal(StrategyType.EMAIL),
|
|
5
5
|
});
|
|
6
6
|
export const EmailStrategySchema = z.object({
|
|
7
7
|
...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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IdentityIdentifierSchema } from '../../../../identity/schema.js';
|
|
3
|
-
import { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseStrategySchema, BaseUpdateStrategyPayloadSchema, } from '../base.js';
|
|
3
|
+
import { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseStrategySchema, BaseUpdateStrategyPayloadSchema, StrategyType, } from '../base.js';
|
|
4
4
|
export const PasswordPolicyDefaults = {
|
|
5
5
|
minimumLength: 8,
|
|
6
6
|
maximumLength: 36,
|
|
@@ -10,7 +10,7 @@ export const PasswordPolicyDefaults = {
|
|
|
10
10
|
minimumSpecial: 1,
|
|
11
11
|
};
|
|
12
12
|
const TypeSchema = z.object({
|
|
13
|
-
type: z.literal(
|
|
13
|
+
type: z.literal(StrategyType.PASSWORD),
|
|
14
14
|
});
|
|
15
15
|
export const PasswordPolicySchema = z.object({
|
|
16
16
|
minimumLength: z.number().default(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"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseStrategySchema, BaseUpdateStrategyPayloadSchema, } from '../base.js';
|
|
2
|
+
import { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseStrategySchema, BaseUpdateStrategyPayloadSchema, StrategyType, } from '../base.js';
|
|
3
3
|
export const DEFAULT_DIGITS = 6;
|
|
4
4
|
export const DEFAULT_PERIOD = 30;
|
|
5
5
|
const TypeSchema = z.object({
|
|
6
|
-
type: z.literal(
|
|
6
|
+
type: z.literal(StrategyType.TOTP),
|
|
7
7
|
});
|
|
8
8
|
export const TOTPAlgorithm = {
|
|
9
9
|
DEFAULT: 'SHA256',
|
|
@@ -15,6 +15,10 @@ export declare const PermissionAssociationsSchema: z.ZodObject<{
|
|
|
15
15
|
export type PermissionAssociations = z.output<typeof PermissionAssociationsSchema>;
|
|
16
16
|
export declare const PermissionSchema: z.ZodObject<{
|
|
17
17
|
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>>;
|
|
18
|
+
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
19
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
20
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
21
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
18
22
|
apps: z.ZodOptional<z.ZodObject<{
|
|
19
23
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
24
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -23,10 +27,6 @@ export declare const PermissionSchema: z.ZodObject<{
|
|
|
23
27
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
28
|
count: z.ZodOptional<z.ZodNumber>;
|
|
25
29
|
}, z.core.$strip>>;
|
|
26
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
27
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
28
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
29
|
-
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
30
30
|
name: z.ZodString;
|
|
31
31
|
status: z.ZodEnum<{
|
|
32
32
|
enabled: "enabled";
|
|
@@ -39,6 +39,10 @@ export type PermissionProperties = z.input<typeof PermissionSchema>;
|
|
|
39
39
|
export type Permission = z.output<typeof PermissionSchema>;
|
|
40
40
|
export declare const PermissionPayloadSchema: z.ZodObject<{
|
|
41
41
|
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>>>;
|
|
42
|
+
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>>>;
|
|
43
|
+
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>>>;
|
|
44
|
+
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
45
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
42
46
|
apps: z.ZodOptional<z.ZodObject<{
|
|
43
47
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
48
|
count: z.ZodOptional<z.ZodNumber>;
|
|
@@ -47,10 +51,6 @@ export declare const PermissionPayloadSchema: z.ZodObject<{
|
|
|
47
51
|
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
52
|
count: z.ZodOptional<z.ZodNumber>;
|
|
49
53
|
}, z.core.$strip>>;
|
|
50
|
-
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
51
|
-
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
52
|
-
deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
53
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
54
54
|
name: z.ZodString;
|
|
55
55
|
status: z.ZodEnum<{
|
|
56
56
|
enabled: "enabled";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/permissions/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/permissions/schema.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAO/E,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,4BAA4B,CACpC,CAAC;AASF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBAS3B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAOxC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;iBAKxC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;iBAK/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,oCAAoC,CAC5C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreatedAtPropertyPayloadSchema, CreatedAtPropertySchema, DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, UpdatedAtPropertyPayloadSchema, UpdatedAtPropertySchema, } from 'src/common/index.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { AppIdAssociationsSchema } from '../../app/schema.js';
|
|
3
|
-
import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../common/index.js';
|
|
4
4
|
import { AggregateSchema } from '../../common/schema/aggregate.js';
|
|
5
5
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../common/schema/metadata.js';
|
|
6
6
|
import { PermissionIdSchema, RoleIdAssociationsSchema, generatePermissionId, } from '../schema.js';
|
|
@@ -29,20 +29,20 @@ export const PermissionSchema = z.object({
|
|
|
29
29
|
...BaseSchema.shape,
|
|
30
30
|
apps: AggregateSchema.optional(),
|
|
31
31
|
roles: AggregateSchema.optional(),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
...CreatedAtPropertySchema.shape,
|
|
33
|
+
...UpdatedAtPropertySchema.shape,
|
|
34
|
+
...DeletedAtPropertySchema.shape,
|
|
35
|
+
...DeactivatedAtPropertySchema.shape,
|
|
36
36
|
...MetadataMapPropertySchema.shape,
|
|
37
37
|
});
|
|
38
38
|
export const PermissionPayloadSchema = z.object({
|
|
39
39
|
...BaseSchema.shape,
|
|
40
40
|
apps: AggregateSchema.optional(),
|
|
41
41
|
roles: AggregateSchema.optional(),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
...CreatedAtPropertyPayloadSchema.shape,
|
|
43
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
44
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
45
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
46
46
|
...MetadataPayloadPropertySchema.shape,
|
|
47
47
|
});
|
|
48
48
|
/**
|
|
@@ -16,10 +16,10 @@ export declare const RoleAssociationsSchema: z.ZodObject<{
|
|
|
16
16
|
export type RoleAssociations = z.output<typeof RoleAssociationsSchema>;
|
|
17
17
|
export declare const RoleSchema: z.ZodObject<{
|
|
18
18
|
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>>;
|
|
19
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
20
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
21
|
-
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
22
19
|
deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
20
|
+
deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
|
|
21
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
22
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
|
|
23
23
|
name: z.ZodString;
|
|
24
24
|
status: z.ZodEnum<{
|
|
25
25
|
enabled: "enabled";
|
|
@@ -44,10 +44,10 @@ export type RoleProperties = z.input<typeof RoleSchema>;
|
|
|
44
44
|
export type Role = z.output<typeof RoleSchema>;
|
|
45
45
|
export declare const RolePayloadSchema: z.ZodObject<{
|
|
46
46
|
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>>>;
|
|
47
|
-
|
|
47
|
+
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>>>;
|
|
48
|
+
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>>>;
|
|
48
49
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
49
|
-
|
|
50
|
-
deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
|
|
50
|
+
createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
|
|
51
51
|
name: z.ZodString;
|
|
52
52
|
status: z.ZodEnum<{
|
|
53
53
|
enabled: "enabled";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/roles/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authorization/roles/schema.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,UAAU;;;CAGb,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEzE,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAInE,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAYvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;iBAOrB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACxD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAOlC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;iBAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CreatedAtPropertyPayloadSchema, CreatedAtPropertySchema, DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, UpdatedAtPropertyPayloadSchema, UpdatedAtPropertySchema, } from 'src/common/index.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { AppIdAssociationsSchema } from '../../app/schema.js';
|
|
3
|
-
import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../common/index.js';
|
|
4
4
|
import { AggregateSchema } from '../../common/schema/aggregate.js';
|
|
5
5
|
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../common/schema/metadata.js';
|
|
6
6
|
import { UserIdAssociationsSchema } from '../../customer/schema.js';
|
|
@@ -29,18 +29,18 @@ const BaseSchema = z.object({
|
|
|
29
29
|
});
|
|
30
30
|
export const RoleSchema = z.object({
|
|
31
31
|
...BaseSchema.shape,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
...CreatedAtPropertySchema.shape,
|
|
33
|
+
...UpdatedAtPropertySchema.shape,
|
|
34
|
+
...DeletedAtPropertySchema.shape,
|
|
35
|
+
...DeactivatedAtPropertySchema.shape,
|
|
36
36
|
...MetadataMapPropertySchema.shape,
|
|
37
37
|
});
|
|
38
38
|
export const RolePayloadSchema = z.object({
|
|
39
39
|
...BaseSchema.shape,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
...CreatedAtPropertyPayloadSchema.shape,
|
|
41
|
+
...UpdatedAtPropertyPayloadSchema.shape,
|
|
42
|
+
...DeletedAtPropertyPayloadSchema.shape,
|
|
43
|
+
...DeactivatedAtPropertyPayloadSchema.shape,
|
|
44
44
|
...MetadataPayloadPropertySchema.shape,
|
|
45
45
|
});
|
|
46
46
|
/**
|