@go-mondo/identity-sdk 0.0.2-beta.68 → 0.0.2-beta.71

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.
Files changed (66) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/.tsbuildinfo/cjs.json +1 -1
  3. package/.tsbuildinfo/esm.json +1 -1
  4. package/CHANGELOG.md +21 -0
  5. package/README.md +2 -0
  6. package/dist/cjs/action/schema/base.d.ts +0 -2
  7. package/dist/cjs/action/schema/base.d.ts.map +1 -1
  8. package/dist/cjs/action/schema/base.js +0 -2
  9. package/dist/cjs/action/schema/base.test.js +0 -1
  10. package/dist/cjs/action/schema/schema.d.ts +5 -28
  11. package/dist/cjs/action/schema/schema.d.ts.map +1 -1
  12. package/dist/cjs/action/schema/schema.js +6 -5
  13. package/dist/cjs/action/schema/schema.test.js +20 -46
  14. package/dist/cjs/association/schema.d.ts +8 -8
  15. package/dist/cjs/authentication/sessions/schema.d.ts +2 -5
  16. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
  17. package/dist/cjs/authentication/strategies/schema/base.d.ts +0 -2
  18. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
  19. package/dist/cjs/authentication/strategies/schema/base.js +0 -2
  20. package/dist/cjs/authentication/strategies/schema/schema.d.ts +0 -84
  21. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
  22. package/dist/cjs/authentication/strategies/schema/schema.js +0 -6
  23. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +1 -1
  24. package/dist/cjs/oauth/authorize/schema/schema.d.ts +1 -1
  25. package/dist/esm/action/schema/base.d.ts +0 -2
  26. package/dist/esm/action/schema/base.d.ts.map +1 -1
  27. package/dist/esm/action/schema/base.js +0 -2
  28. package/dist/esm/action/schema/base.test.js +1 -2
  29. package/dist/esm/action/schema/schema.d.ts +5 -28
  30. package/dist/esm/action/schema/schema.d.ts.map +1 -1
  31. package/dist/esm/action/schema/schema.js +6 -5
  32. package/dist/esm/action/schema/schema.test.js +2 -28
  33. package/dist/esm/association/schema.d.ts +8 -8
  34. package/dist/esm/authentication/sessions/schema.d.ts +2 -5
  35. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
  36. package/dist/esm/authentication/strategies/schema/base.d.ts +0 -2
  37. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
  38. package/dist/esm/authentication/strategies/schema/base.js +0 -2
  39. package/dist/esm/authentication/strategies/schema/schema.d.ts +0 -84
  40. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
  41. package/dist/esm/authentication/strategies/schema/schema.js +0 -6
  42. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +1 -1
  43. package/dist/esm/oauth/authorize/schema/schema.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/dist/cjs/action/schema/operations/set-password.d.ts +0 -31
  46. package/dist/cjs/action/schema/operations/set-password.d.ts.map +0 -1
  47. package/dist/cjs/action/schema/operations/set-password.js +0 -52
  48. package/dist/cjs/action/schema/operations/set-password.test.d.ts +0 -2
  49. package/dist/cjs/action/schema/operations/set-password.test.d.ts.map +0 -1
  50. package/dist/cjs/action/schema/operations/set-password.test.js +0 -168
  51. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +0 -139
  52. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +0 -1
  53. package/dist/cjs/authentication/strategies/schema/types/password.js +0 -93
  54. package/dist/esm/action/schema/operations/set-password.d.ts +0 -31
  55. package/dist/esm/action/schema/operations/set-password.d.ts.map +0 -1
  56. package/dist/esm/action/schema/operations/set-password.js +0 -16
  57. package/dist/esm/action/schema/operations/set-password.test.d.ts +0 -2
  58. package/dist/esm/action/schema/operations/set-password.test.d.ts.map +0 -1
  59. package/dist/esm/action/schema/operations/set-password.test.js +0 -166
  60. package/dist/esm/authentication/strategies/schema/types/password.d.ts +0 -139
  61. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +0 -1
  62. package/dist/esm/authentication/strategies/schema/types/password.js +0 -57
  63. package/src/action/schema/base.test.ts.bak +0 -152
  64. package/src/action/schema/operations/set-password.test.ts.bak +0 -197
  65. package/src/action/schema/schema.test.ts.bak +0 -218
  66. package/src/authentication/strategies/schema/types/email.test.ts.bak +0 -252
@@ -3,25 +3,6 @@ import * as z from 'zod/v4';
3
3
  * Union(s)
4
4
  */
5
5
  export declare const InsertStrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
- settings: z.ZodOptional<z.ZodObject<{
7
- passwordPolicy: z.ZodObject<{
8
- minimumLength: z.ZodDefault<z.ZodNumber>;
9
- maximumLength: z.ZodDefault<z.ZodNumber>;
10
- minimumCapital: z.ZodDefault<z.ZodNumber>;
11
- minimumLower: z.ZodDefault<z.ZodNumber>;
12
- minimumNumber: z.ZodDefault<z.ZodNumber>;
13
- minimumSpecial: z.ZodDefault<z.ZodNumber>;
14
- }, z.core.$strip>;
15
- }, z.core.$strip>>;
16
- 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>>>;
17
- id: z.ZodOptional<z.ZodString>;
18
- label: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<{
20
- enabled: "enabled";
21
- disabled: "disabled";
22
- }>>;
23
- type: z.ZodLiteral<"password">;
24
- }, z.core.$strip>, z.ZodObject<{
25
6
  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>>>;
26
7
  id: z.ZodOptional<z.ZodString>;
27
8
  label: z.ZodString;
@@ -50,24 +31,6 @@ export declare const InsertStrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.Zod
50
31
  export type InsertStrategyInput = z.input<typeof InsertStrategyPayloadSchema>;
51
32
  export type InsertStrategyPayload = z.output<typeof InsertStrategyPayloadSchema>;
52
33
  export declare const UpdateStrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
53
- settings: z.ZodOptional<z.ZodObject<{
54
- passwordPolicy: z.ZodObject<{
55
- minimumLength: z.ZodDefault<z.ZodNumber>;
56
- maximumLength: z.ZodDefault<z.ZodNumber>;
57
- minimumCapital: z.ZodDefault<z.ZodNumber>;
58
- minimumLower: z.ZodDefault<z.ZodNumber>;
59
- minimumNumber: z.ZodDefault<z.ZodNumber>;
60
- minimumSpecial: z.ZodDefault<z.ZodNumber>;
61
- }, z.core.$strip>;
62
- }, z.core.$strip>>;
63
- 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>>>;
64
- label: z.ZodOptional<z.ZodString>;
65
- status: z.ZodOptional<z.ZodEnum<{
66
- enabled: "enabled";
67
- disabled: "disabled";
68
- }>>;
69
- type: z.ZodLiteral<"password">;
70
- }, z.core.$strip>, z.ZodObject<{
71
34
  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>>>;
72
35
  label: z.ZodOptional<z.ZodString>;
73
36
  status: z.ZodOptional<z.ZodEnum<{
@@ -94,29 +57,6 @@ export declare const UpdateStrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.Zod
94
57
  export type UpdateStrategyInput = z.input<typeof UpdateStrategyPayloadSchema>;
95
58
  export type UpdateStrategyPayload = z.output<typeof UpdateStrategyPayloadSchema>;
96
59
  export declare const StrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
97
- settings: z.ZodObject<{
98
- passwordPolicy: z.ZodObject<{
99
- minimumLength: z.ZodDefault<z.ZodNumber>;
100
- maximumLength: z.ZodDefault<z.ZodNumber>;
101
- minimumCapital: z.ZodDefault<z.ZodNumber>;
102
- minimumLower: z.ZodDefault<z.ZodNumber>;
103
- minimumNumber: z.ZodDefault<z.ZodNumber>;
104
- minimumSpecial: z.ZodDefault<z.ZodNumber>;
105
- }, z.core.$strip>;
106
- }, z.core.$strip>;
107
- type: z.ZodLiteral<"password">;
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>>;
113
- id: z.ZodString;
114
- status: z.ZodEnum<{
115
- enabled: "enabled";
116
- disabled: "disabled";
117
- }>;
118
- label: z.ZodString;
119
- }, z.core.$strip>, z.ZodObject<{
120
60
  type: z.ZodLiteral<"email">;
121
61
  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>>>;
122
62
  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>>>;
@@ -152,29 +92,6 @@ export declare const StrategyPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject
152
92
  }, z.core.$strip>], "type">;
153
93
  export type StrategyPayload = z.input<typeof StrategyPayloadSchema>;
154
94
  export declare const StrategySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
155
- settings: z.ZodObject<{
156
- passwordPolicy: z.ZodObject<{
157
- minimumLength: z.ZodDefault<z.ZodNumber>;
158
- maximumLength: z.ZodDefault<z.ZodNumber>;
159
- minimumCapital: z.ZodDefault<z.ZodNumber>;
160
- minimumLower: z.ZodDefault<z.ZodNumber>;
161
- minimumNumber: z.ZodDefault<z.ZodNumber>;
162
- minimumSpecial: z.ZodDefault<z.ZodNumber>;
163
- }, z.core.$strip>;
164
- }, z.core.$strip>;
165
- type: z.ZodLiteral<"password">;
166
- 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>>;
167
- deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
168
- deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
169
- updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
170
- createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
171
- id: z.ZodString;
172
- status: z.ZodDefault<z.ZodEnum<{
173
- enabled: "enabled";
174
- disabled: "disabled";
175
- }>>;
176
- label: z.ZodString;
177
- }, z.core.$strip>, z.ZodObject<{
178
95
  type: z.ZodLiteral<"email">;
179
96
  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>>;
180
97
  deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
@@ -212,6 +129,5 @@ export type StrategyProperties = z.input<typeof StrategySchema>;
212
129
  export type Strategy = z.output<typeof StrategySchema>;
213
130
  export { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseUpdateStrategyPayloadSchema, StrategyIdPropertySchema, StrategyIdSchema, StrategyLabelSchema, StrategyStatus, StrategyStatusSchema, StrategyType, type AnyStrategyStatus, type AnyStrategyType, type StrategyId, type StrategyIdProperty, } from './base.js';
214
131
  export * from './types/email.js';
215
- export * from './types/password.js';
216
132
  export * from './types/totp.js';
217
133
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAqB5B;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGzB,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,iBAAiB,CAAC"}
@@ -39,28 +39,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  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;
40
40
  const z = __importStar(require("zod/v4"));
41
41
  const email_js_1 = require("./types/email.js");
42
- const password_js_1 = require("./types/password.js");
43
42
  const totp_js_1 = require("./types/totp.js");
44
43
  /**
45
44
  * Union(s)
46
45
  */
47
46
  exports.InsertStrategyPayloadSchema = z.discriminatedUnion('type', [
48
- password_js_1.InsertPasswordStrategyPayloadSchema,
49
47
  email_js_1.InsertEmailStrategyPayloadSchema,
50
48
  totp_js_1.InsertTOTPStrategyPayloadSchema,
51
49
  ]);
52
50
  exports.UpdateStrategyPayloadSchema = z.discriminatedUnion('type', [
53
- password_js_1.UpdatePasswordStrategyPayloadSchema,
54
51
  email_js_1.UpdateEmailStrategyPayloadSchema,
55
52
  totp_js_1.UpdateTOTPStrategyPayloadSchema,
56
53
  ]);
57
54
  exports.StrategyPayloadSchema = z.discriminatedUnion('type', [
58
- password_js_1.PasswordStrategyPayloadSchema,
59
55
  email_js_1.EmailStrategyPayloadSchema,
60
56
  totp_js_1.TOTPStrategyPayloadSchema,
61
57
  ]);
62
58
  exports.StrategySchema = z.discriminatedUnion('type', [
63
- password_js_1.PasswordStrategySchema,
64
59
  email_js_1.EmailStrategySchema,
65
60
  totp_js_1.TOTPStrategySchema,
66
61
  ]);
@@ -75,5 +70,4 @@ Object.defineProperty(exports, "StrategyStatus", { enumerable: true, get: functi
75
70
  Object.defineProperty(exports, "StrategyStatusSchema", { enumerable: true, get: function () { return base_js_1.StrategyStatusSchema; } });
76
71
  Object.defineProperty(exports, "StrategyType", { enumerable: true, get: function () { return base_js_1.StrategyType; } });
77
72
  __exportStar(require("./types/email.js"), exports);
78
- __exportStar(require("./types/password.js"), exports);
79
73
  __exportStar(require("./types/totp.js"), exports);
@@ -4,8 +4,8 @@ export declare const ImplicitGrantAuthorizationSchema: z.ZodObject<{
4
4
  device: z.ZodOptional<z.ZodString>;
5
5
  nonce: z.ZodOptional<z.ZodString>;
6
6
  response_type: z.ZodEnum<{
7
- token: "token";
8
7
  id_token: "id_token";
8
+ token: "token";
9
9
  "id_token token": "id_token token";
10
10
  "token id_token": "token id_token";
11
11
  }>;
@@ -38,8 +38,8 @@ export declare const AuthorizationGrantSchema: import("zod/v4/index.js").ZodUnio
38
38
  device: import("zod/v4/index.js").ZodOptional<import("zod/v4/index.js").ZodString>;
39
39
  nonce: import("zod/v4/index.js").ZodOptional<import("zod/v4/index.js").ZodString>;
40
40
  response_type: import("zod/v4/index.js").ZodEnum<{
41
- token: "token";
42
41
  id_token: "id_token";
42
+ token: "token";
43
43
  "id_token token": "id_token token";
44
44
  "token id_token": "token id_token";
45
45
  }>;
@@ -1,6 +1,5 @@
1
1
  import * as z from 'zod/v4';
2
2
  export declare const ActionOperation: {
3
- readonly SET_PASSWORD: "set-password";
4
3
  readonly USER_ATTRIBUTE_VERIFICATION: "user-attribute-verification";
5
4
  readonly SIGN_UP: "sign-up";
6
5
  readonly SIGN_UP_VERIFICATION: "sign-up-verification";
@@ -13,7 +12,6 @@ export declare const ActionIdPropertySchema: z.ZodObject<{
13
12
  }, z.core.$strip>;
14
13
  export type ActionIdProperty = z.output<typeof ActionIdPropertySchema>;
15
14
  export declare const OperationSchema: z.ZodEnum<{
16
- "set-password": "set-password";
17
15
  "user-attribute-verification": "user-attribute-verification";
18
16
  "sign-up": "sign-up";
19
17
  "sign-up-verification": "sign-up-verification";
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAW5B,eAAO,MAAM,eAAe;;;;;CAOlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,aAAsC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;;;EAKjB,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAW5B,eAAO,MAAM,eAAe;;;;CAKlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,aAAsC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;;EAIjB,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC"}
@@ -4,7 +4,6 @@ import { KSUIDSchema } from '../../common/schema/id.js';
4
4
  import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
5
5
  import { Model } from './utils.js';
6
6
  export const ActionOperation = {
7
- SET_PASSWORD: 'set-password',
8
7
  USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
9
8
  SIGN_UP: 'sign-up',
10
9
  SIGN_UP_VERIFICATION: 'sign-up-verification',
@@ -16,7 +15,6 @@ export const ActionIdPropertySchema = z.object({
16
15
  export const OperationSchema = z.enum([
17
16
  ActionOperation.SIGN_UP,
18
17
  ActionOperation.SIGN_UP_VERIFICATION,
19
- ActionOperation.SET_PASSWORD,
20
18
  ActionOperation.USER_ATTRIBUTE_VERIFICATION,
21
19
  ]);
22
20
  export const BasePayloadSchema = z.object({
@@ -1,10 +1,9 @@
1
1
  import { describe, expect, test } from 'vitest';
2
- import { ActionOperation, ActionIdSchema, ActionIdPropertySchema, OperationSchema, BasePayloadSchema, } from './base.js';
2
+ import { ActionIdPropertySchema, ActionIdSchema, ActionOperation, BasePayloadSchema, OperationSchema, } from './base.js';
3
3
  import { generateActionId } from './utils.js';
4
4
  describe('Action Schema - Base', () => {
5
5
  describe('ActionOperation constants', () => {
6
6
  test('should have correct operation values', () => {
7
- expect(ActionOperation.SET_PASSWORD).toBe('set-password');
8
7
  expect(ActionOperation.USER_ATTRIBUTE_VERIFICATION).toBe('user-attribute-verification');
9
8
  expect(ActionOperation.SIGN_UP).toBe('sign-up');
10
9
  expect(ActionOperation.SIGN_UP_VERIFICATION).toBe('sign-up-verification');
@@ -1,30 +1,8 @@
1
- import type { z } from 'zod';
1
+ import { z } from 'zod';
2
2
  /**
3
3
  * Union
4
4
  */
5
- export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6
- operation: z.ZodLiteral<"set-password">;
7
- user: z.ZodString;
8
- identifier: z.ZodEnum<{
9
- email: "email";
10
- phoneNumber: "phoneNumber";
11
- }>;
12
- policy: z.ZodObject<{
13
- minimumLength: z.ZodDefault<z.ZodNumber>;
14
- maximumLength: z.ZodDefault<z.ZodNumber>;
15
- minimumCapital: z.ZodDefault<z.ZodNumber>;
16
- minimumLower: z.ZodDefault<z.ZodNumber>;
17
- minimumNumber: z.ZodDefault<z.ZodNumber>;
18
- minimumSpecial: z.ZodDefault<z.ZodNumber>;
19
- }, z.core.$strip>;
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
- attempt: z.ZodNumber;
25
- expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
26
- id: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
5
+ export declare const ActionPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
6
  operation: z.ZodLiteral<"sign-up-verification">;
29
7
  user: z.ZodString;
30
8
  identifier: z.ZodEnum<{
@@ -38,7 +16,7 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
38
16
  attempt: z.ZodNumber;
39
17
  expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
40
18
  id: z.ZodString;
41
- }, z.core.$strip>]>, z.ZodObject<{
19
+ }, z.core.$strip>, z.ZodObject<{
42
20
  operation: z.ZodLiteral<"sign-up">;
43
21
  app: z.ZodOptional<z.ZodString>;
44
22
  user: z.ZodObject<{
@@ -55,7 +33,7 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
55
33
  attempt: z.ZodNumber;
56
34
  expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
57
35
  id: z.ZodString;
58
- }, z.core.$strip>]>, z.ZodObject<{
36
+ }, z.core.$strip>, z.ZodObject<{
59
37
  operation: z.ZodLiteral<"user-attribute-verification">;
60
38
  user: z.ZodString;
61
39
  attribute: z.ZodEnum<{
@@ -69,10 +47,9 @@ export declare const ActionPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
69
47
  attempt: z.ZodNumber;
70
48
  expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
71
49
  id: z.ZodString;
72
- }, z.core.$strip>]>;
50
+ }, z.core.$strip>], "operation">;
73
51
  export type ActionPayload = z.output<typeof ActionPayloadSchema>;
74
52
  export { ActionIdPropertySchema, ActionIdSchema, ActionOperation, type ActionId, type ActionIdProperty, type AnyActionOperation, } from './base.js';
75
- export * from './operations/set-password.js';
76
53
  export * from './operations/sign-up-verification.js';
77
54
  export * from './operations/sign-up.js';
78
55
  export * from './operations/user-attribute-verification.js';
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAO7B;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAImB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjE,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjE,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,YAAY,CAAC"}
@@ -1,15 +1,16 @@
1
- import { SetPasswordActionPayloadSchema } from './operations/set-password.js';
1
+ import { z } from 'zod';
2
2
  import { SignUpVerificationActionPayloadSchema } from './operations/sign-up-verification.js';
3
3
  import { SignUpActionPayloadSchema } from './operations/sign-up.js';
4
4
  import { UserAttributeVerificationActionPayloadSchema } from './operations/user-attribute-verification.js';
5
5
  /**
6
6
  * Union
7
7
  */
8
- export const ActionPayloadSchema = SetPasswordActionPayloadSchema.or(SignUpVerificationActionPayloadSchema)
9
- .or(SignUpActionPayloadSchema)
10
- .or(UserAttributeVerificationActionPayloadSchema);
8
+ export const ActionPayloadSchema = z.discriminatedUnion('operation', [
9
+ SignUpVerificationActionPayloadSchema,
10
+ SignUpActionPayloadSchema,
11
+ UserAttributeVerificationActionPayloadSchema,
12
+ ]);
11
13
  export { ActionIdPropertySchema, ActionIdSchema, ActionOperation, } from './base.js';
12
- export * from './operations/set-password.js';
13
14
  export * from './operations/sign-up-verification.js';
14
15
  export * from './operations/sign-up.js';
15
16
  export * from './operations/user-attribute-verification.js';
@@ -1,24 +1,9 @@
1
1
  import { describe, expect, test } from 'vitest';
2
- import { ActionPayloadSchema, ActionOperation } from './schema.js';
3
- import { generateActionId } from './utils.js';
4
2
  import { generateUserId } from '../../customer/schema.js';
3
+ import { ActionOperation, ActionPayloadSchema } from './schema.js';
4
+ import { generateActionId } from './utils.js';
5
5
  describe('Action Schema - Main', () => {
6
6
  describe('ActionPayloadSchema', () => {
7
- test('should accept set-password action payload', () => {
8
- const payload = {
9
- id: generateActionId(),
10
- operation: 'set-password',
11
- user: generateUserId(),
12
- identifier: 'email',
13
- policy: {},
14
- attempt: 1,
15
- expiresAt: new Date().toISOString(),
16
- updatedAt: new Date().toISOString(),
17
- metadata: { source: 'user-initiated' },
18
- };
19
- const result = ActionPayloadSchema.safeParse(payload);
20
- // Parse succeeds for valid data
21
- });
22
7
  test('should accept sign-up-verification action payload', () => {
23
8
  const payload = {
24
9
  id: generateActionId(),
@@ -72,16 +57,6 @@ describe('Action Schema - Main', () => {
72
57
  const result = ActionPayloadSchema.safeParse(payload);
73
58
  expect(result.success).toBe(false);
74
59
  });
75
- test('should reject payload missing required fields for set-password', () => {
76
- const payload = {
77
- id: generateActionId(),
78
- operation: 'set-password',
79
- // missing password
80
- metadata: {},
81
- };
82
- const result = ActionPayloadSchema.safeParse(payload);
83
- expect(result.success).toBe(false);
84
- });
85
60
  test('should reject payload missing required fields for sign-up-verification', () => {
86
61
  const payload = {
87
62
  id: generateActionId(),
@@ -179,7 +154,6 @@ describe('Action Schema - Main', () => {
179
154
  });
180
155
  describe('ActionOperation constants', () => {
181
156
  test('should contain expected operation values', () => {
182
- expect(ActionOperation.SET_PASSWORD).toBe('set-password');
183
157
  expect(ActionOperation.SIGN_UP_VERIFICATION).toBe('sign-up-verification');
184
158
  expect(ActionOperation.SIGN_UP).toBe('sign-up');
185
159
  expect(ActionOperation.USER_ATTRIBUTE_VERIFICATION).toBe('user-attribute-verification');
@@ -55,13 +55,13 @@ export declare const AssociationObjectSchema: z.ZodUnion<readonly [z.ZodObject<{
55
55
  model: z.ZodLiteral<"Session">;
56
56
  createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
57
57
  id: z.ZodString;
58
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
59
+ user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
58
60
  status: z.ZodEnum<{
59
61
  pending: "pending";
60
62
  initiated: "initiated";
61
63
  authenticated: "authenticated";
62
64
  }>;
63
- expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
64
- user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
65
65
  userAgent: z.ZodOptional<z.ZodString>;
66
66
  sourceIp: z.ZodOptional<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodUndefined]>>;
67
67
  }, z.core.$strip>]>;
@@ -114,13 +114,13 @@ export declare const ObjectPropertySchema: z.ZodObject<{
114
114
  model: z.ZodLiteral<"Session">;
115
115
  createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
116
116
  id: z.ZodString;
117
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
118
+ user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
117
119
  status: z.ZodEnum<{
118
120
  pending: "pending";
119
121
  initiated: "initiated";
120
122
  authenticated: "authenticated";
121
123
  }>;
122
- expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
123
- user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
124
124
  userAgent: z.ZodOptional<z.ZodString>;
125
125
  sourceIp: z.ZodOptional<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodUndefined]>>;
126
126
  }, z.core.$strip>]>;
@@ -178,13 +178,13 @@ export declare const AssociationSchema: z.ZodObject<{
178
178
  model: z.ZodLiteral<"Session">;
179
179
  createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
180
180
  id: z.ZodString;
181
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
182
+ user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
181
183
  status: z.ZodEnum<{
182
184
  pending: "pending";
183
185
  initiated: "initiated";
184
186
  authenticated: "authenticated";
185
187
  }>;
186
- expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
187
- user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
188
188
  userAgent: z.ZodOptional<z.ZodString>;
189
189
  sourceIp: z.ZodOptional<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodUndefined]>>;
190
190
  }, z.core.$strip>]>;
@@ -264,13 +264,13 @@ export declare const AssociationPayloadSchema: z.ZodObject<{
264
264
  model: z.ZodLiteral<"Session">;
265
265
  createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
266
266
  id: z.ZodString;
267
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
268
+ user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
267
269
  status: z.ZodEnum<{
268
270
  pending: "pending";
269
271
  initiated: "initiated";
270
272
  authenticated: "authenticated";
271
273
  }>;
272
- expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
273
- user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
274
274
  userAgent: z.ZodOptional<z.ZodString>;
275
275
  sourceIp: z.ZodOptional<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodUndefined]>>;
276
276
  }, z.core.$strip>]>;
@@ -20,7 +20,6 @@ export declare const SessionAuthenticationFactorSchema: z.ZodObject<{
20
20
  id: z.ZodString;
21
21
  type: z.ZodEnum<{
22
22
  email: "email";
23
- password: "password";
24
23
  totp: "totp";
25
24
  }>;
26
25
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -48,7 +47,6 @@ export declare const SessionSchema: z.ZodObject<{
48
47
  id: z.ZodString;
49
48
  type: z.ZodEnum<{
50
49
  email: "email";
51
- password: "password";
52
50
  totp: "totp";
53
51
  }>;
54
52
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -78,7 +76,6 @@ export declare const SessionPayloadSchema: z.ZodObject<{
78
76
  id: z.ZodString;
79
77
  type: z.ZodEnum<{
80
78
  email: "email";
81
- password: "password";
82
79
  totp: "totp";
83
80
  }>;
84
81
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -92,13 +89,13 @@ export declare const SessionAssociationReferenceSchema: z.ZodObject<{
92
89
  model: z.ZodLiteral<"Session">;
93
90
  createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
94
91
  id: z.ZodString;
92
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
93
+ user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
95
94
  status: z.ZodEnum<{
96
95
  pending: "pending";
97
96
  initiated: "initiated";
98
97
  authenticated: "authenticated";
99
98
  }>;
100
- expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
101
- user: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>;
102
99
  userAgent: z.ZodOptional<z.ZodString>;
103
100
  sourceIp: z.ZodOptional<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6, z.ZodUndefined]>>;
104
101
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authentication/sessions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAyB5B,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,eAAe,aAAuC,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,eAAO,MAAM,mBAAmB;;;;EAIrB,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;;;iBAK5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAChD,OAAO,iCAAiC,CACzC,CAAC;AA0CF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAax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B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAW5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAChD,OAAO,iCAAiC,CACzC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import * as z from 'zod/v4';
2
2
  export declare const StrategyType: {
3
3
  readonly EMAIL: "email";
4
- readonly PASSWORD: "password";
5
4
  readonly TOTP: "totp";
6
5
  };
7
6
  export type AnyStrategyType = (typeof StrategyType)[keyof typeof StrategyType];
@@ -22,7 +21,6 @@ export declare const StrategyStatusSchema: z.ZodEnum<{
22
21
  }>;
23
22
  export declare const StrategyTypeSchema: z.ZodEnum<{
24
23
  email: "email";
25
- password: "password";
26
24
  totp: "totp";
27
25
  }>;
28
26
  export declare const StrategyLabelSchema: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAkB5B,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,aAA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ACZ,eAAO,MAAM,kBAAkB;;;EAGpB,CAAC;AACZ,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAS7B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBASpC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;iBAK1C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;iBAI1C,CAAC"}
@@ -5,7 +5,6 @@ import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, } from '../..
5
5
  import { Model } from '../../utils.js';
6
6
  export const StrategyType = {
7
7
  EMAIL: 'email',
8
- PASSWORD: 'password',
9
8
  TOTP: 'totp',
10
9
  };
11
10
  export const StrategyStatus = {
@@ -22,7 +21,6 @@ export const StrategyStatusSchema = z.enum([
22
21
  ]);
23
22
  export const StrategyTypeSchema = z.enum([
24
23
  StrategyType.EMAIL,
25
- StrategyType.PASSWORD,
26
24
  StrategyType.TOTP,
27
25
  ]);
28
26
  export const StrategyLabelSchema = z.string();