@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.
Files changed (205) 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 +14 -0
  5. package/dist/cjs/action/schema/base.d.ts +3 -3
  6. package/dist/cjs/action/schema/base.d.ts.map +1 -1
  7. package/dist/cjs/action/schema/base.js +3 -3
  8. package/dist/cjs/action/schema/operations/set-password.d.ts +3 -3
  9. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +3 -3
  10. package/dist/cjs/action/schema/operations/sign-up.d.ts +3 -3
  11. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +3 -3
  12. package/dist/cjs/action/schema/schema.d.ts +12 -12
  13. package/dist/cjs/activity/schema/base.d.ts +6 -6
  14. package/dist/cjs/activity/schema/base.d.ts.map +1 -1
  15. package/dist/cjs/activity/schema/base.js +9 -9
  16. package/dist/cjs/activity/schema/schema.d.ts +30 -30
  17. package/dist/cjs/activity/schema/types/authentication.d.ts +6 -6
  18. package/dist/cjs/activity/schema/types/authorization.d.ts +6 -6
  19. package/dist/cjs/activity/schema/types/note.d.ts +6 -6
  20. package/dist/cjs/activity/schema/types/operation.d.ts +6 -6
  21. package/dist/cjs/activity/schema/types/unknown.d.ts +6 -6
  22. package/dist/cjs/app/authorization/schema.d.ts +5 -5
  23. package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
  24. package/dist/cjs/app/authorization/schema.js +4 -4
  25. package/dist/cjs/app/oauth/schema.d.ts +5 -5
  26. package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
  27. package/dist/cjs/app/oauth/schema.js +4 -4
  28. package/dist/cjs/app/oidc/schema.d.ts +5 -5
  29. package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
  30. package/dist/cjs/app/oidc/schema.js +4 -4
  31. package/dist/cjs/app/registration/schema.d.ts +5 -5
  32. package/dist/cjs/app/registration/schema.d.ts.map +1 -1
  33. package/dist/cjs/app/registration/schema.js +4 -4
  34. package/dist/cjs/app/saml/schema.d.ts +5 -5
  35. package/dist/cjs/app/saml/schema.d.ts.map +1 -1
  36. package/dist/cjs/app/saml/schema.js +4 -4
  37. package/dist/cjs/app/schema.d.ts +6 -6
  38. package/dist/cjs/app/schema.d.ts.map +1 -1
  39. package/dist/cjs/app/schema.js +9 -8
  40. package/dist/cjs/association/schema.d.ts +7 -7
  41. package/dist/cjs/association/schema.d.ts.map +1 -1
  42. package/dist/cjs/association/schema.js +7 -7
  43. package/dist/cjs/authentication/providers/schema.d.ts +3 -3
  44. package/dist/cjs/authentication/providers/schema.d.ts.map +1 -1
  45. package/dist/cjs/authentication/providers/schema.js +4 -4
  46. package/dist/cjs/authentication/sessions/schema.d.ts +10 -10
  47. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
  48. package/dist/cjs/authentication/sessions/schema.js +8 -8
  49. package/dist/cjs/authentication/settings/schema.d.ts +7 -7
  50. package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
  51. package/dist/cjs/authentication/settings/schema.js +6 -6
  52. package/dist/cjs/authentication/strategies/schema/base.d.ts +8 -8
  53. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
  54. package/dist/cjs/authentication/strategies/schema/base.js +9 -9
  55. package/dist/cjs/authentication/strategies/schema/schema.d.ts +37 -37
  56. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
  57. package/dist/cjs/authentication/strategies/schema/schema.js +21 -4
  58. package/dist/cjs/authentication/strategies/schema/types/email.d.ts +8 -8
  59. package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
  60. package/dist/cjs/authentication/strategies/schema/types/email.js +1 -1
  61. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +8 -8
  62. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -1
  63. package/dist/cjs/authentication/strategies/schema/types/password.js +1 -1
  64. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +8 -8
  65. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  66. package/dist/cjs/authentication/strategies/schema/types/totp.js +1 -1
  67. package/dist/cjs/authorization/permissions/schema.d.ts +8 -8
  68. package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
  69. package/dist/cjs/authorization/permissions/schema.js +9 -9
  70. package/dist/cjs/authorization/roles/schema.d.ts +6 -6
  71. package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
  72. package/dist/cjs/authorization/roles/schema.js +9 -9
  73. package/dist/cjs/common/schema/dates.d.ts +3 -3
  74. package/dist/cjs/common/schema/dates.d.ts.map +1 -1
  75. package/dist/cjs/common/schema/dates.js +1 -1
  76. package/dist/cjs/customer/organization/schema.d.ts +6 -6
  77. package/dist/cjs/customer/organization/schema.d.ts.map +1 -1
  78. package/dist/cjs/customer/organization/schema.js +9 -9
  79. package/dist/cjs/customer/users/schema.d.ts +8 -8
  80. package/dist/cjs/customer/users/schema.d.ts.map +1 -1
  81. package/dist/cjs/customer/users/schema.js +8 -8
  82. package/dist/cjs/oauth/token/schema/schema.d.ts +4 -4
  83. package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
  84. package/dist/cjs/oauth/token/schema/schema.js +6 -1
  85. package/dist/cjs/workspace/authorization/schema.d.ts +5 -5
  86. package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -1
  87. package/dist/cjs/workspace/authorization/schema.js +5 -5
  88. package/dist/cjs/workspace/branding/schema.d.ts +5 -5
  89. package/dist/cjs/workspace/branding/schema.d.ts.map +1 -1
  90. package/dist/cjs/workspace/branding/schema.js +4 -4
  91. package/dist/cjs/workspace/membership/schema.d.ts +2 -2
  92. package/dist/cjs/workspace/registration/schema.d.ts +5 -5
  93. package/dist/cjs/workspace/registration/schema.d.ts.map +1 -1
  94. package/dist/cjs/workspace/registration/schema.js +4 -4
  95. package/dist/cjs/workspace/settings/schema.d.ts +5 -5
  96. package/dist/cjs/workspace/settings/schema.d.ts.map +1 -1
  97. package/dist/cjs/workspace/settings/schema.js +4 -4
  98. package/dist/cjs/workspace/tenant/schema.d.ts +10 -10
  99. package/dist/cjs/workspace/user/notifications/schema.d.ts +8 -8
  100. package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -1
  101. package/dist/cjs/workspace/user/notifications/schema.js +9 -9
  102. package/dist/cjs/workspace/user/preferences/schema.d.ts +5 -5
  103. package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -1
  104. package/dist/cjs/workspace/user/preferences/schema.js +4 -4
  105. package/dist/esm/action/schema/base.d.ts +3 -3
  106. package/dist/esm/action/schema/base.d.ts.map +1 -1
  107. package/dist/esm/action/schema/base.js +4 -4
  108. package/dist/esm/action/schema/operations/set-password.d.ts +3 -3
  109. package/dist/esm/action/schema/operations/sign-up-verification.d.ts +3 -3
  110. package/dist/esm/action/schema/operations/sign-up.d.ts +3 -3
  111. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +3 -3
  112. package/dist/esm/action/schema/schema.d.ts +12 -12
  113. package/dist/esm/activity/schema/base.d.ts +6 -6
  114. package/dist/esm/activity/schema/base.d.ts.map +1 -1
  115. package/dist/esm/activity/schema/base.js +9 -9
  116. package/dist/esm/activity/schema/schema.d.ts +30 -30
  117. package/dist/esm/activity/schema/types/authentication.d.ts +6 -6
  118. package/dist/esm/activity/schema/types/authorization.d.ts +6 -6
  119. package/dist/esm/activity/schema/types/note.d.ts +6 -6
  120. package/dist/esm/activity/schema/types/operation.d.ts +6 -6
  121. package/dist/esm/activity/schema/types/unknown.d.ts +6 -6
  122. package/dist/esm/app/authorization/schema.d.ts +5 -5
  123. package/dist/esm/app/authorization/schema.d.ts.map +1 -1
  124. package/dist/esm/app/authorization/schema.js +5 -5
  125. package/dist/esm/app/oauth/schema.d.ts +5 -5
  126. package/dist/esm/app/oauth/schema.d.ts.map +1 -1
  127. package/dist/esm/app/oauth/schema.js +5 -5
  128. package/dist/esm/app/oidc/schema.d.ts +5 -5
  129. package/dist/esm/app/oidc/schema.d.ts.map +1 -1
  130. package/dist/esm/app/oidc/schema.js +5 -5
  131. package/dist/esm/app/registration/schema.d.ts +5 -5
  132. package/dist/esm/app/registration/schema.d.ts.map +1 -1
  133. package/dist/esm/app/registration/schema.js +5 -5
  134. package/dist/esm/app/saml/schema.d.ts +5 -5
  135. package/dist/esm/app/saml/schema.d.ts.map +1 -1
  136. package/dist/esm/app/saml/schema.js +5 -5
  137. package/dist/esm/app/schema.d.ts +6 -6
  138. package/dist/esm/app/schema.d.ts.map +1 -1
  139. package/dist/esm/app/schema.js +10 -9
  140. package/dist/esm/association/schema.d.ts +7 -7
  141. package/dist/esm/association/schema.d.ts.map +1 -1
  142. package/dist/esm/association/schema.js +8 -8
  143. package/dist/esm/authentication/providers/schema.d.ts +3 -3
  144. package/dist/esm/authentication/providers/schema.d.ts.map +1 -1
  145. package/dist/esm/authentication/providers/schema.js +4 -4
  146. package/dist/esm/authentication/sessions/schema.d.ts +10 -10
  147. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
  148. package/dist/esm/authentication/sessions/schema.js +9 -9
  149. package/dist/esm/authentication/settings/schema.d.ts +7 -7
  150. package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
  151. package/dist/esm/authentication/settings/schema.js +7 -7
  152. package/dist/esm/authentication/strategies/schema/base.d.ts +8 -8
  153. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
  154. package/dist/esm/authentication/strategies/schema/base.js +9 -9
  155. package/dist/esm/authentication/strategies/schema/schema.d.ts +37 -37
  156. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
  157. package/dist/esm/authentication/strategies/schema/schema.js +21 -4
  158. package/dist/esm/authentication/strategies/schema/types/email.d.ts +8 -8
  159. package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
  160. package/dist/esm/authentication/strategies/schema/types/email.js +2 -2
  161. package/dist/esm/authentication/strategies/schema/types/password.d.ts +8 -8
  162. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -1
  163. package/dist/esm/authentication/strategies/schema/types/password.js +2 -2
  164. package/dist/esm/authentication/strategies/schema/types/totp.d.ts +8 -8
  165. package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  166. package/dist/esm/authentication/strategies/schema/types/totp.js +2 -2
  167. package/dist/esm/authorization/permissions/schema.d.ts +8 -8
  168. package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
  169. package/dist/esm/authorization/permissions/schema.js +9 -9
  170. package/dist/esm/authorization/roles/schema.d.ts +6 -6
  171. package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
  172. package/dist/esm/authorization/roles/schema.js +9 -9
  173. package/dist/esm/common/schema/dates.d.ts +3 -3
  174. package/dist/esm/common/schema/dates.d.ts.map +1 -1
  175. package/dist/esm/common/schema/dates.js +1 -1
  176. package/dist/esm/customer/organization/schema.d.ts +6 -6
  177. package/dist/esm/customer/organization/schema.d.ts.map +1 -1
  178. package/dist/esm/customer/organization/schema.js +9 -9
  179. package/dist/esm/customer/users/schema.d.ts +8 -8
  180. package/dist/esm/customer/users/schema.d.ts.map +1 -1
  181. package/dist/esm/customer/users/schema.js +9 -9
  182. package/dist/esm/oauth/token/schema/schema.d.ts +4 -4
  183. package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
  184. package/dist/esm/oauth/token/schema/schema.js +6 -1
  185. package/dist/esm/workspace/authorization/schema.d.ts +5 -5
  186. package/dist/esm/workspace/authorization/schema.d.ts.map +1 -1
  187. package/dist/esm/workspace/authorization/schema.js +6 -6
  188. package/dist/esm/workspace/branding/schema.d.ts +5 -5
  189. package/dist/esm/workspace/branding/schema.d.ts.map +1 -1
  190. package/dist/esm/workspace/branding/schema.js +5 -5
  191. package/dist/esm/workspace/membership/schema.d.ts +2 -2
  192. package/dist/esm/workspace/registration/schema.d.ts +5 -5
  193. package/dist/esm/workspace/registration/schema.d.ts.map +1 -1
  194. package/dist/esm/workspace/registration/schema.js +5 -5
  195. package/dist/esm/workspace/settings/schema.d.ts +5 -5
  196. package/dist/esm/workspace/settings/schema.d.ts.map +1 -1
  197. package/dist/esm/workspace/settings/schema.js +5 -5
  198. package/dist/esm/workspace/tenant/schema.d.ts +10 -10
  199. package/dist/esm/workspace/user/notifications/schema.d.ts +8 -8
  200. package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -1
  201. package/dist/esm/workspace/user/notifications/schema.js +9 -9
  202. package/dist/esm/workspace/user/preferences/schema.d.ts +5 -5
  203. package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -1
  204. package/dist/esm/workspace/user/preferences/schema.js +5 -5
  205. package/package.json +1 -1
@@ -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":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,e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AAO,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,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PermissionAssociationReferenceSchema = exports.UpdatePermissionPayloadSchema = exports.InsertPermissionPayloadSchema = exports.PermissionPayloadSchema = exports.PermissionSchema = exports.PermissionAssociationsSchema = exports.PermissionIdPropertySchema = exports.PermissionStatus = void 0;
4
+ const index_js_1 = require("src/common/index.js");
4
5
  const zod_1 = require("zod");
5
6
  const schema_js_1 = require("../../app/schema.js");
6
- const index_js_1 = require("../../common/index.js");
7
7
  const aggregate_js_1 = require("../../common/schema/aggregate.js");
8
8
  const metadata_js_1 = require("../../common/schema/metadata.js");
9
9
  const schema_js_2 = require("../schema.js");
@@ -32,20 +32,20 @@ exports.PermissionSchema = zod_1.z.object({
32
32
  ...BaseSchema.shape,
33
33
  apps: aggregate_js_1.AggregateSchema.optional(),
34
34
  roles: aggregate_js_1.AggregateSchema.optional(),
35
- createdAt: index_js_1.RequiredDateSchema,
36
- updatedAt: index_js_1.RequiredDateSchema,
37
- deletedAt: index_js_1.OptionalDateSchema,
38
- deactivatedAt: index_js_1.OptionalDateSchema,
35
+ ...index_js_1.CreatedAtPropertySchema.shape,
36
+ ...index_js_1.UpdatedAtPropertySchema.shape,
37
+ ...index_js_1.DeletedAtPropertySchema.shape,
38
+ ...index_js_1.DeactivatedAtPropertySchema.shape,
39
39
  ...metadata_js_1.MetadataMapPropertySchema.shape,
40
40
  });
41
41
  exports.PermissionPayloadSchema = zod_1.z.object({
42
42
  ...BaseSchema.shape,
43
43
  apps: aggregate_js_1.AggregateSchema.optional(),
44
44
  roles: aggregate_js_1.AggregateSchema.optional(),
45
- createdAt: index_js_1.RequiredDatePayloadSchema,
46
- updatedAt: index_js_1.RequiredDatePayloadSchema,
47
- deletedAt: index_js_1.OptionalDatePayloadSchema,
48
- deactivatedAt: index_js_1.OptionalDatePayloadSchema,
45
+ ...index_js_1.CreatedAtPropertyPayloadSchema.shape,
46
+ ...index_js_1.UpdatedAtPropertyPayloadSchema.shape,
47
+ ...index_js_1.DeletedAtPropertyPayloadSchema.shape,
48
+ ...index_js_1.DeactivatedAtPropertyPayloadSchema.shape,
49
49
  ...metadata_js_1.MetadataPayloadPropertySchema.shape,
50
50
  });
51
51
  /**
@@ -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
- createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
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
- deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
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":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,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;;;;;;;;;;;;;;;;;;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AU;;;;;;;;;;;;;;;;;;;;;;;;;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,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RoleAssociationReferenceSchema = exports.UpdateRolePayloadSchema = exports.InsertRolePayloadSchema = exports.RolePayloadSchema = exports.RoleSchema = exports.RoleAssociationsSchema = exports.RoleIdPropertySchema = exports.RoleStatus = void 0;
4
+ const index_js_1 = require("src/common/index.js");
4
5
  const zod_1 = require("zod");
5
6
  const schema_js_1 = require("../../app/schema.js");
6
- const index_js_1 = require("../../common/index.js");
7
7
  const aggregate_js_1 = require("../../common/schema/aggregate.js");
8
8
  const metadata_js_1 = require("../../common/schema/metadata.js");
9
9
  const schema_js_2 = require("../../customer/schema.js");
@@ -32,18 +32,18 @@ const BaseSchema = zod_1.z.object({
32
32
  });
33
33
  exports.RoleSchema = zod_1.z.object({
34
34
  ...BaseSchema.shape,
35
- createdAt: index_js_1.RequiredDateSchema,
36
- updatedAt: index_js_1.RequiredDateSchema,
37
- deletedAt: index_js_1.OptionalDateSchema,
38
- deactivatedAt: index_js_1.OptionalDateSchema,
35
+ ...index_js_1.CreatedAtPropertySchema.shape,
36
+ ...index_js_1.UpdatedAtPropertySchema.shape,
37
+ ...index_js_1.DeletedAtPropertySchema.shape,
38
+ ...index_js_1.DeactivatedAtPropertySchema.shape,
39
39
  ...metadata_js_1.MetadataMapPropertySchema.shape,
40
40
  });
41
41
  exports.RolePayloadSchema = zod_1.z.object({
42
42
  ...BaseSchema.shape,
43
- createdAt: index_js_1.RequiredDatePayloadSchema,
44
- updatedAt: index_js_1.RequiredDatePayloadSchema,
45
- deletedAt: index_js_1.OptionalDatePayloadSchema,
46
- deactivatedAt: index_js_1.OptionalDatePayloadSchema,
43
+ ...index_js_1.CreatedAtPropertyPayloadSchema.shape,
44
+ ...index_js_1.UpdatedAtPropertyPayloadSchema.shape,
45
+ ...index_js_1.DeletedAtPropertyPayloadSchema.shape,
46
+ ...index_js_1.DeactivatedAtPropertyPayloadSchema.shape,
47
47
  ...metadata_js_1.MetadataPayloadPropertySchema.shape,
48
48
  });
49
49
  /**
@@ -6,7 +6,7 @@ export type RequiredDate = z.output<typeof RequiredDateSchema>;
6
6
  export type AnyOptionalDate = z.input<typeof OptionalDateSchema>;
7
7
  export type OptionalDate = z.output<typeof OptionalDateSchema>;
8
8
  export declare const RequiredDatePayloadSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
9
- export declare const OptionalDatePayloadSchema: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
9
+ export declare const OptionalDatePayloadSchema: 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>>>;
10
10
  export type RequiredDatePayload = z.output<typeof RequiredDatePayloadSchema>;
11
11
  export type OptionalDatePayload = z.output<typeof OptionalDatePayloadSchema>;
12
12
  /**
@@ -35,7 +35,7 @@ export type UpdatedAtProperty = z.output<typeof UpdatedAtPropertySchema>;
35
35
  * Deleted At
36
36
  */
37
37
  export declare const DeletedAtPropertyPayloadSchema: z.ZodObject<{
38
- deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
38
+ 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>>>;
39
39
  }, z.core.$strip>;
40
40
  export type DeletedAtPropertyPayload = z.output<typeof DeletedAtPropertyPayloadSchema>;
41
41
  export declare const DeletedAtPropertySchema: z.ZodObject<{
@@ -46,7 +46,7 @@ export type DeletedAtProperty = z.output<typeof DeletedAtPropertySchema>;
46
46
  * Deactivated At
47
47
  */
48
48
  export declare const DeactivatedAtPropertyPayloadSchema: z.ZodObject<{
49
- deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
49
+ 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>>>;
50
50
  }, z.core.$strip>;
51
51
  export type DeactivatedAtPropertyPayload = z.output<typeof DeactivatedAtPropertyPayloadSchema>;
52
52
  export declare const DeactivatedAtPropertySchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../../../src/common/schema/dates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,wFAM7B,CAAC;AACH,eAAO,MAAM,kBAAkB,uGAAgC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG/D,eAAO,MAAM,yBAAyB,iIAErC,CAAC;AACF,eAAO,MAAM,yBAAyB,wKAErC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;A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C;;iBAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,kCAAkC,CAC1C,CAAC;AACF,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
@@ -13,7 +13,7 @@ exports.RequiredDateSchema = zod_1.z.union([
13
13
  exports.OptionalDateSchema = exports.RequiredDateSchema.optional();
14
14
  // What the class property is serialized to
15
15
  exports.RequiredDatePayloadSchema = exports.RequiredDateSchema.transform((d) => d.toISOString());
16
- exports.OptionalDatePayloadSchema = exports.OptionalDateSchema.transform((d) => d?.toISOString());
16
+ exports.OptionalDatePayloadSchema = exports.OptionalDateSchema.transform((d) => d?.toISOString()).optional();
17
17
  /**
18
18
  * Created At
19
19
  */
@@ -10,10 +10,10 @@ export declare const OrganizationIdPropertySchema: z.ZodObject<{
10
10
  export type OrganizationIdProperty = z.output<typeof OrganizationIdPropertySchema>;
11
11
  export declare const OrganizationSchema: z.ZodObject<{
12
12
  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>>;
13
- createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
14
- updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
15
- deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
16
13
  deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
14
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
15
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
16
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
17
17
  name: z.ZodString;
18
18
  status: z.ZodEnum<{
19
19
  active: "active";
@@ -25,10 +25,10 @@ export type OrganizationProperties = z.input<typeof OrganizationSchema>;
25
25
  export type Organization = z.output<typeof OrganizationSchema>;
26
26
  export declare const OrganizationPayloadSchema: z.ZodObject<{
27
27
  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>>>;
28
- createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
28
+ 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>>>;
29
+ 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>>>;
29
30
  updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
30
- deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
31
- deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
31
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
32
32
  name: z.ZodString;
33
33
  status: z.ZodEnum<{
34
34
  active: "active";
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/organization/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,4BAA4B,CACpC,CAAC;AAeF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAO7B,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;;;;;;;;;;;;iBAOpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;;;;iB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A+B,CACvC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;iBAIjD,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CACrD,OAAO,sCAAsC,CAC9C,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrganizationAssociationReferenceSchema = exports.UpdateOrganizationPayloadSchema = exports.InsertOrganizationPayloadSchema = exports.OrganizationPayloadSchema = exports.OrganizationSchema = exports.OrganizationIdPropertySchema = exports.OrganizationStatus = void 0;
4
+ const index_js_1 = require("src/common/index.js");
4
5
  const zod_1 = require("zod");
5
- const index_js_1 = require("../../common/index.js");
6
6
  const metadata_js_1 = require("../../common/schema/metadata.js");
7
7
  const schema_js_1 = require("../schema.js");
8
8
  exports.OrganizationStatus = {
@@ -24,18 +24,18 @@ const BaseSchema = zod_1.z.object({
24
24
  });
25
25
  exports.OrganizationSchema = zod_1.z.object({
26
26
  ...BaseSchema.shape,
27
- createdAt: index_js_1.RequiredDateSchema,
28
- updatedAt: index_js_1.RequiredDateSchema,
29
- deletedAt: index_js_1.OptionalDateSchema,
30
- deactivatedAt: index_js_1.OptionalDateSchema,
27
+ ...index_js_1.CreatedAtPropertySchema.shape,
28
+ ...index_js_1.UpdatedAtPropertySchema.shape,
29
+ ...index_js_1.DeletedAtPropertySchema.shape,
30
+ ...index_js_1.DeactivatedAtPropertySchema.shape,
31
31
  ...metadata_js_1.MetadataMapPropertySchema.shape,
32
32
  });
33
33
  exports.OrganizationPayloadSchema = zod_1.z.object({
34
34
  ...BaseSchema.shape,
35
- createdAt: index_js_1.RequiredDatePayloadSchema,
36
- updatedAt: index_js_1.RequiredDatePayloadSchema,
37
- deletedAt: index_js_1.OptionalDatePayloadSchema,
38
- deactivatedAt: index_js_1.OptionalDatePayloadSchema,
35
+ ...index_js_1.CreatedAtPropertyPayloadSchema.shape,
36
+ ...index_js_1.UpdatedAtPropertyPayloadSchema.shape,
37
+ ...index_js_1.DeletedAtPropertyPayloadSchema.shape,
38
+ ...index_js_1.DeactivatedAtPropertyPayloadSchema.shape,
39
39
  ...metadata_js_1.MetadataPayloadPropertySchema.shape,
40
40
  });
41
41
  exports.InsertOrganizationPayloadSchema = zod_1.z.object({
@@ -46,11 +46,11 @@ export declare const UserAssociationsSchema: z.ZodObject<{
46
46
  export type UserAssociations = z.output<typeof UserAssociationsSchema>;
47
47
  export declare const UserSchema: z.ZodObject<{
48
48
  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>>;
49
- lastLogin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
50
- createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
51
- updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
52
- deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
53
49
  deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
50
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
51
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
52
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
53
+ lastLogin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
54
54
  status: z.ZodEnum<{
55
55
  active: "active";
56
56
  suspended: "suspended";
@@ -75,11 +75,11 @@ export type UserProperties = z.input<typeof UserSchema>;
75
75
  export type User = z.output<typeof UserSchema>;
76
76
  export declare const UserPayloadSchema: z.ZodObject<{
77
77
  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>>>;
78
- lastLogin: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
79
- createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
78
+ 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>>>;
79
+ 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>>>;
80
80
  updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
81
- deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
82
- deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
81
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
82
+ lastLogin: 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>>>;
83
83
  status: z.ZodEnum<{
84
84
  active: "active";
85
85
  suspended: "suspended";
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAQzE,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAGH,eAAO,MAAM,8BAA8B;;;;;;iBAMzC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,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;;;;;;;;;;;;;;iBAQ5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAMlC,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,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;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC"}
@@ -66,19 +66,19 @@ const BaseSchema = zod_1.z.object({
66
66
  exports.UserSchema = zod_1.z.object({
67
67
  ...BaseSchema.shape,
68
68
  lastLogin: dates_js_1.OptionalDateSchema,
69
- createdAt: dates_js_1.RequiredDateSchema,
70
- updatedAt: dates_js_1.RequiredDateSchema,
71
- deletedAt: dates_js_1.OptionalDateSchema,
72
- deactivatedAt: dates_js_1.OptionalDateSchema,
69
+ ...dates_js_1.CreatedAtPropertySchema.shape,
70
+ ...dates_js_1.UpdatedAtPropertySchema.shape,
71
+ ...dates_js_1.DeletedAtPropertySchema.shape,
72
+ ...dates_js_1.DeactivatedAtPropertySchema.shape,
73
73
  ...metadata_js_1.MetadataMapPropertySchema.shape,
74
74
  });
75
75
  exports.UserPayloadSchema = zod_1.z.object({
76
76
  ...BaseSchema.shape,
77
77
  lastLogin: dates_js_1.OptionalDatePayloadSchema,
78
- createdAt: dates_js_1.RequiredDatePayloadSchema,
79
- updatedAt: dates_js_1.RequiredDatePayloadSchema,
80
- deletedAt: dates_js_1.OptionalDatePayloadSchema,
81
- deactivatedAt: dates_js_1.OptionalDatePayloadSchema,
78
+ ...dates_js_1.CreatedAtPropertyPayloadSchema.shape,
79
+ ...dates_js_1.UpdatedAtPropertyPayloadSchema.shape,
80
+ ...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
81
+ ...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
82
82
  ...metadata_js_1.MetadataPayloadPropertySchema.shape,
83
83
  });
84
84
  exports.InsertUserPayloadSchema = zod_1.z.object({
@@ -1,11 +1,11 @@
1
- import type { z } from 'zod';
1
+ import { z } from 'zod';
2
2
  export * from './grants/authorization-code.js';
3
3
  export * from './grants/client-credentials.js';
4
4
  export * from './grants/refresh-token.js';
5
5
  /**
6
6
  * Union(s)
7
7
  */
8
- export declare const Schema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
8
+ export declare const Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
9
  code_verifier: z.ZodOptional<z.ZodString>;
10
10
  grant_type: z.ZodEnum<{
11
11
  authorization_code: "authorization_code";
@@ -22,7 +22,7 @@ export declare const Schema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
22
22
  grant_type: z.ZodEnum<{
23
23
  client_credentials: "client_credentials";
24
24
  }>;
25
- }, z.core.$strip>]>, z.ZodObject<{
25
+ }, z.core.$strip>, z.ZodObject<{
26
26
  grant_type: z.ZodEnum<{
27
27
  refresh_token: "refresh_token";
28
28
  }>;
@@ -30,6 +30,6 @@ export declare const Schema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
30
30
  scope: z.ZodOptional<z.ZodString>;
31
31
  client_id: z.ZodString;
32
32
  client_secret: z.ZodString;
33
- }, z.core.$strip>]>;
33
+ }, z.core.$strip>], "grant_type">;
34
34
  export type Payload = z.output<typeof Schema>;
35
35
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/oauth/token/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAM7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;mBAElB,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/oauth/token/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;iCAIjB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC"}
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.Schema = void 0;
18
+ const zod_1 = require("zod");
18
19
  const authorization_code_js_1 = require("./grants/authorization-code.js");
19
20
  const client_credentials_js_1 = require("./grants/client-credentials.js");
20
21
  const refresh_token_js_1 = require("./grants/refresh-token.js");
@@ -24,4 +25,8 @@ __exportStar(require("./grants/refresh-token.js"), exports);
24
25
  /**
25
26
  * Union(s)
26
27
  */
27
- exports.Schema = authorization_code_js_1.AuthorizationCodeSchema.or(client_credentials_js_1.ClientCredentialsSchema).or(refresh_token_js_1.RefreshTokenSchema);
28
+ exports.Schema = zod_1.z.discriminatedUnion('grant_type', [
29
+ authorization_code_js_1.AuthorizationCodeSchema,
30
+ client_credentials_js_1.ClientCredentialsSchema,
31
+ refresh_token_js_1.RefreshTokenSchema,
32
+ ]);
@@ -4,9 +4,9 @@ export declare const DEFAULT_REFRESH_TOKEN_DURATION: number;
4
4
  export declare const DEFAULT_ACCESS_TOKEN_DURATION: number;
5
5
  export declare const AuthorizationSchema: z.ZodObject<{
6
6
  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>>;
7
- updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
8
- deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
9
7
  deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
8
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
9
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
10
10
  sessionDuration: z.ZodDefault<z.ZodNumber>;
11
11
  refreshTokenDuration: z.ZodDefault<z.ZodNumber>;
12
12
  accessTokenDuration: z.ZodDefault<z.ZodNumber>;
@@ -28,9 +28,9 @@ export type AuthorizationProperties = z.input<typeof AuthorizationSchema>;
28
28
  export type Authorization = z.output<typeof AuthorizationSchema>;
29
29
  export declare const AuthorizationPayloadSchema: z.ZodObject<{
30
30
  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>>>;
31
- updatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
32
- deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
33
- deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
31
+ 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>>>;
32
+ 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>>>;
33
+ updatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
34
34
  sessionDuration: z.ZodDefault<z.ZodNumber>;
35
35
  refreshTokenDuration: z.ZodDefault<z.ZodNumber>;
36
36
  accessTokenDuration: z.ZodDefault<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/authorization/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,wBAAwB,QAAc,CAAC;AACpD,eAAO,MAAM,8BAA8B,QAAoB,CAAC;AAChE,eAAO,MAAM,6BAA6B,QAAc,CAAC;AASzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;iBAO9B,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;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/authorization/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,wBAAwB,QAAc,CAAC;AACpD,eAAO,MAAM,8BAA8B,QAAoB,CAAC;AAChE,eAAO,MAAM,6BAA6B,QAAc,CAAC;AASzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;iBAO9B,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;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC"}
@@ -16,16 +16,16 @@ const BaseAttributes = zod_1.z.object({
16
16
  });
17
17
  exports.AuthorizationSchema = zod_1.z.object({
18
18
  ...BaseAttributes.shape,
19
- updatedAt: dates_js_1.RequiredDateSchema.optional(),
20
- deletedAt: dates_js_1.OptionalDateSchema,
21
- deactivatedAt: dates_js_1.OptionalDateSchema,
19
+ ...dates_js_1.UpdatedAtPropertySchema.shape,
20
+ ...dates_js_1.DeletedAtPropertySchema.shape,
21
+ ...dates_js_1.DeactivatedAtPropertySchema.shape,
22
22
  ...metadata_js_1.MetadataMapPropertySchema.shape,
23
23
  });
24
24
  exports.AuthorizationPayloadSchema = zod_1.z.object({
25
25
  ...BaseAttributes.shape,
26
26
  updatedAt: dates_js_1.OptionalDatePayloadSchema,
27
- deletedAt: dates_js_1.OptionalDatePayloadSchema,
28
- deactivatedAt: dates_js_1.OptionalDatePayloadSchema,
27
+ ...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
28
+ ...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
29
29
  ...metadata_js_1.MetadataPayloadPropertySchema.shape,
30
30
  });
31
31
  exports.UpsertAuthorizationPayloadSchema = zod_1.z.object({
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const BrandingSchema: z.ZodObject<{
3
3
  metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
4
- updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
5
- deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
6
4
  deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
5
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
6
+ updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
7
7
  logo: z.ZodOptional<z.ZodObject<{
8
8
  dark: z.ZodOptional<z.ZodURL>;
9
9
  light: z.ZodOptional<z.ZodURL>;
@@ -18,9 +18,9 @@ export type BrandingProperties = z.input<typeof BrandingSchema>;
18
18
  export type Branding = z.output<typeof BrandingSchema>;
19
19
  export declare const BrandingPayloadSchema: z.ZodObject<{
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
- updatedAt: 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.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
23
- deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | 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.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
24
24
  logo: z.ZodOptional<z.ZodObject<{
25
25
  dark: z.ZodOptional<z.ZodURL>;
26
26
  light: z.ZodOptional<z.ZodURL>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/branding/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAMzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/branding/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8BxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAMzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
@@ -20,15 +20,15 @@ const BaseSchema = zod_1.z.object({
20
20
  exports.BrandingSchema = zod_1.z.object({
21
21
  ...BaseSchema.shape,
22
22
  updatedAt: dates_js_1.OptionalDateSchema,
23
- deletedAt: dates_js_1.OptionalDateSchema,
24
- deactivatedAt: dates_js_1.OptionalDateSchema,
23
+ ...dates_js_1.DeletedAtPropertySchema.shape,
24
+ ...dates_js_1.DeactivatedAtPropertySchema.shape,
25
25
  ...metadata_js_1.MetadataMapPropertySchema.shape,
26
26
  });
27
27
  exports.BrandingPayloadSchema = zod_1.z.object({
28
28
  ...BaseSchema.shape,
29
29
  updatedAt: dates_js_1.OptionalDatePayloadSchema,
30
- deletedAt: dates_js_1.OptionalDatePayloadSchema,
31
- deactivatedAt: dates_js_1.OptionalDatePayloadSchema,
30
+ ...dates_js_1.DeletedAtPropertyPayloadSchema.shape,
31
+ ...dates_js_1.DeactivatedAtPropertyPayloadSchema.shape,
32
32
  ...metadata_js_1.MetadataPayloadPropertySchema.shape,
33
33
  });
34
34
  exports.UpsertBrandingPayloadSchema = zod_1.z.object({
@@ -30,8 +30,8 @@ export declare const MembershipPayloadSchema: z.ZodObject<{
30
30
  expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
31
31
  }, z.core.$strip>>;
32
32
  }, z.core.$strip>>;
33
- startAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
34
- endAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
33
+ startAt: 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>>>;
34
+ endAt: 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>>>;
35
35
  }, z.core.$strip>;
36
36
  export type MembershipPayload = z.output<typeof MembershipPayloadSchema>;
37
37
  //# sourceMappingURL=schema.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const RegistrationSchema: z.ZodObject<{
3
3
  metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
4
- updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
5
- deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
6
4
  deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
5
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
6
+ updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
7
7
  allowSelfRegistration: z.ZodBoolean;
8
8
  identifiers: z.ZodArray<z.ZodObject<{
9
9
  type: z.ZodEnum<{
@@ -16,9 +16,9 @@ export type RegistrationProperties = z.input<typeof RegistrationSchema>;
16
16
  export type Registration = z.output<typeof RegistrationSchema>;
17
17
  export declare const RegistrationPayloadSchema: z.ZodObject<{
18
18
  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>>>;
19
- updatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
20
- deletedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
21
- deactivatedAt: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>;
19
+ 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>>>;
20
+ 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>>>;
21
+ updatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
22
22
  allowSelfRegistration: z.ZodBoolean;
23
23
  identifiers: z.ZodArray<z.ZodObject<{
24
24
  type: z.ZodEnum<{