@degenerate/generic 0.1.9 → 0.1.11

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 (95) hide show
  1. package/dist/application/audit-log/create-application-audit-log.d.ts.map +1 -1
  2. package/dist/application/audit-log/create-application-audit-log.js +1 -1
  3. package/dist/application/database/firestore/generics/add-items-to-database.d.ts.map +1 -1
  4. package/dist/application/database/firestore/generics/add-items-to-database.js +2 -2
  5. package/dist/application/database/firestore/generics/add-or-update-items-to-database.d.ts.map +1 -1
  6. package/dist/application/database/firestore/generics/add-or-update-items-to-database.js +3 -3
  7. package/dist/application/database/firestore/generics/delete-items-on-database.d.ts.map +1 -1
  8. package/dist/application/database/firestore/generics/delete-items-on-database.js +2 -2
  9. package/dist/application/database/firestore/generics/get-item-from-database.d.ts.map +1 -1
  10. package/dist/application/database/firestore/generics/get-item-from-database.js +2 -2
  11. package/dist/application/database/firestore/generics/get-items-different-path-on-database.d.ts.map +1 -1
  12. package/dist/application/database/firestore/generics/get-items-different-path-on-database.js +2 -2
  13. package/dist/application/database/firestore/generics/get-items-from-database.d.ts.map +1 -1
  14. package/dist/application/database/firestore/generics/get-items-from-database.js +2 -2
  15. package/dist/application/database/firestore/generics/update-items-on-database.d.ts.map +1 -1
  16. package/dist/application/database/firestore/generics/update-items-on-database.js +2 -2
  17. package/dist/application/database/firestore/generics/update-items-properties-on-database.d.ts.map +1 -1
  18. package/dist/application/database/firestore/generics/update-items-properties-on-database.js +2 -2
  19. package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts +2 -2
  20. package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts.map +1 -1
  21. package/dist/authorization/jwt/sign/create-authorization-subject.d.ts +2 -2
  22. package/dist/authorization/jwt/sign/create-authorization-subject.d.ts.map +1 -1
  23. package/dist/authorization/jwt/sign/create-jwt-options.d.ts +2 -2
  24. package/dist/authorization/jwt/sign/create-jwt-options.d.ts.map +1 -1
  25. package/dist/authorization/safe/authorization/authorized-authorities.d.ts +5 -5
  26. package/dist/authorization/safe/authorization/authorized-authorities.d.ts.map +1 -1
  27. package/dist/authorization/safe/request/determine-issuer-from-request.d.ts +2 -2
  28. package/dist/authorization/safe/request/determine-issuer-from-request.d.ts.map +1 -1
  29. package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +2 -2
  30. package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +1 -1
  31. package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +2 -2
  32. package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +1 -1
  33. package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +2 -2
  34. package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +1 -1
  35. package/dist/helpers/request/params-object-helpers.d.ts +7 -1
  36. package/dist/helpers/request/params-object-helpers.d.ts.map +1 -1
  37. package/dist/helpers/request/params-object-helpers.js +10 -1
  38. package/dist/helpers/request/request-object-helpers.d.ts +16 -1
  39. package/dist/helpers/request/request-object-helpers.d.ts.map +1 -1
  40. package/dist/helpers/request/request-object-helpers.js +25 -2
  41. package/dist/models/application/audit-log/application-audit-log-models.d.ts +144 -60
  42. package/dist/models/application/audit-log/application-audit-log-models.d.ts.map +1 -1
  43. package/dist/models/application/audit-log/application-audit-log-models.js +87 -41
  44. package/dist/models/application/database/firestore-models.d.ts +370 -54
  45. package/dist/models/application/database/firestore-models.d.ts.map +1 -1
  46. package/dist/models/application/database/firestore-models.js +119 -1
  47. package/dist/models/authorization/authorization-models.d.ts +76 -33
  48. package/dist/models/authorization/authorization-models.d.ts.map +1 -1
  49. package/dist/models/authorization/authorization-models.js +82 -12
  50. package/dist/models/crypto/crypto-models.d.ts +10 -2
  51. package/dist/models/crypto/crypto-models.d.ts.map +1 -1
  52. package/dist/models/crypto/crypto-models.js +6 -0
  53. package/dist/models/data/data-models.d.ts +18 -5
  54. package/dist/models/data/data-models.d.ts.map +1 -1
  55. package/dist/models/data/data-models.js +24 -1
  56. package/dist/models/dynamic-execution/dynamic-execution-models.d.ts +13 -3
  57. package/dist/models/dynamic-execution/dynamic-execution-models.d.ts.map +1 -1
  58. package/dist/models/dynamic-execution/dynamic-execution-models.js +10 -0
  59. package/dist/models/events/share-event-models.d.ts +145 -24
  60. package/dist/models/events/share-event-models.d.ts.map +1 -1
  61. package/dist/models/events/share-event-models.js +53 -2
  62. package/dist/models/functions/share-data-function-models.d.ts +251 -32
  63. package/dist/models/functions/share-data-function-models.d.ts.map +1 -1
  64. package/dist/models/functions/share-data-function-models.js +100 -3
  65. package/dist/models/generic/request-response-models.d.ts +11 -3
  66. package/dist/models/generic/request-response-models.d.ts.map +1 -1
  67. package/dist/models/generic/request-response-models.js +9 -0
  68. package/dist/models/index.d.ts +2 -1
  69. package/dist/models/index.d.ts.map +1 -1
  70. package/dist/models/index.js +6 -1
  71. package/dist/models/safe/rules/share-rule-models.d.ts +931 -0
  72. package/dist/models/safe/rules/share-rule-models.d.ts.map +1 -0
  73. package/dist/models/safe/rules/share-rule-models.js +341 -0
  74. package/dist/models/safe/safe-transaction-models.d.ts +137 -20
  75. package/dist/models/safe/safe-transaction-models.d.ts.map +1 -1
  76. package/dist/models/safe/safe-transaction-models.js +88 -3
  77. package/dist/models/safe/transactions/authorities-transactions-models.d.ts +391 -0
  78. package/dist/models/safe/transactions/authorities-transactions-models.d.ts.map +1 -0
  79. package/dist/models/safe/transactions/authorities-transactions-models.js +56 -0
  80. package/dist/models/share-data/share-data.d.ts +144 -23
  81. package/dist/models/share-data/share-data.d.ts.map +1 -1
  82. package/dist/models/share-data/share-data.js +66 -1
  83. package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts +14 -0
  84. package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts.map +1 -0
  85. package/dist/transactions/authority/create-safe-transaction-authority-data.js +21 -0
  86. package/dist/transactions/authority/create-safe-transaction-authority.d.ts +15 -0
  87. package/dist/transactions/authority/create-safe-transaction-authority.d.ts.map +1 -0
  88. package/dist/transactions/authority/create-safe-transaction-authority.js +29 -0
  89. package/dist/transactions/index.d.ts +3 -0
  90. package/dist/transactions/index.d.ts.map +1 -0
  91. package/dist/transactions/index.js +20 -0
  92. package/package.json +2 -2
  93. package/dist/models/rules/share-rule-models.d.ts +0 -303
  94. package/dist/models/rules/share-rule-models.d.ts.map +0 -1
  95. package/dist/models/rules/share-rule-models.js +0 -93
@@ -1,81 +1,124 @@
1
+ import { z } from 'zod';
1
2
  /**
2
3
  * This is the authorities that can be validated with incoming requests.
3
4
  * it is AuthorityName Declaration-with ending of the original hex version of the publickey, publickey for the authority
4
5
  */
5
- export type IJWTAuthority = Map<IAuthorizationIssuer, string>;
6
+ export declare const JWTAuthoritySchema: z.ZodMap<z.ZodString, z.ZodString>;
7
+ export type IJWTAuthority = z.infer<typeof JWTAuthoritySchema>;
6
8
  /**
7
9
  * This contains the types of validation that can be done on the authority.
8
10
  */
9
11
  export declare enum AuthorityValidationType {
10
- JWT = "jwt"
12
+ JWT = "JWT"
11
13
  }
14
+ export declare const AuthorityValidationTypeSchema: z.ZodEnum<["JWT"]>;
12
15
  /**
13
16
  * This is the payload for the jwt.
14
17
  */
15
- export interface IAuthorizationPayload {
16
- [key: string]: any;
17
- }
18
+ export declare const AuthorizationPayloadSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
19
+ export type IAuthorizationPayload = z.infer<typeof AuthorizationPayloadSchema>;
18
20
  /**
19
21
  * This is the header for the jwt.
20
22
  */
21
- export interface IAuthorizationHeader {
23
+ export declare const AuthorizationHeaderSchema: z.ZodObject<{
24
+ alg: z.ZodString;
25
+ typ: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
22
27
  alg: string;
23
28
  typ: string;
24
- }
29
+ }, {
30
+ alg: string;
31
+ typ: string;
32
+ }>;
33
+ export type IAuthorizationHeader = z.infer<typeof AuthorizationHeaderSchema>;
25
34
  /**
26
35
  * This is the audience that the jwt is intended for.
27
36
  */
28
37
  export declare enum AuthorizationAudience {
29
- AUTHORITIES = "authorities",// the authorities in the SAFE Ecosystem
30
- SHAREDATA = "sharedata",// the Share Data in the SAFE Ecosystem
31
- FUNCTIONS = "functions",// the functions in the SAFE Ecosystem
32
- RULES = "rules",// the rules in the SAFE Ecosystem
33
- EVENTS = "events",// the events in the SAFE Ecosystem
34
- ENDPOINTS = "endpoints"
38
+ AUTHORITIES = "AUTHORITIES",
39
+ SHAREDATA = "SHAREDATA",
40
+ FUNCTIONS = "FUNCTIONS",
41
+ RULES = "RULES",
42
+ EVENTS = "EVENTS",
43
+ ENDPOINTS = "ENDPOINTS"
35
44
  }
45
+ export declare const AuthorizationAudienceSchema: z.ZodEnum<[AuthorizationAudience.AUTHORITIES, AuthorizationAudience.SHAREDATA, AuthorizationAudience.FUNCTIONS, AuthorizationAudience.RULES, AuthorizationAudience.EVENTS, AuthorizationAudience.ENDPOINTS]>;
36
46
  /**
37
47
  * This contains the start of the subject for the authorization subject
38
48
  */
39
49
  export declare enum AuthorizationSubjectStart {
40
- USER = "user",
41
- SAFE_NETWORK = "safe-network"
50
+ USER = "USER",
51
+ SAFE_NETWORK = "SAFE_NETWORK"
42
52
  }
53
+ export declare const AuthorizationSubjectStartSchema: z.ZodEnum<[AuthorizationSubjectStart.USER, AuthorizationSubjectStart.SAFE_NETWORK]>;
43
54
  /**
44
55
  * This type represents the formatted authorization subject.
45
56
  */
46
- export type IAuthorizationSubject = `${AuthorizationSubjectStart}:${string}`;
57
+ export declare const AuthorizationSubjectSchema: z.ZodString;
58
+ export type AuthorizationSubject = z.infer<typeof AuthorizationSubjectSchema>;
47
59
  /**
48
60
  * This is the issuer of the token.
49
61
  */
50
- export type IAuthorizationIssuer = `${string}-${string}`;
62
+ export declare const AuthorizationIssuerSchema: z.ZodString;
63
+ export type AuthorizationIssuer = z.infer<typeof AuthorizationIssuerSchema>;
51
64
  /**
52
65
  * Any custom network claims that are added to the token.
53
66
  */
54
- export interface ICustomClaims {
55
- [key: string]: any;
56
- }
67
+ export declare const CustomClaimsSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
68
+ export type ICustomClaims = z.infer<typeof CustomClaimsSchema>;
57
69
  /**
58
70
  * This interface represents the valid safe token payload (after deconstructing the jwt token).
59
71
  */
60
- export interface IValidSafeTokenPayload {
61
- [key: string]: any;
72
+ export declare const ValidSafeTokenPayloadSchema: z.ZodObject<{
73
+ aud: z.ZodEnum<[AuthorizationAudience.AUTHORITIES, AuthorizationAudience.SHAREDATA, AuthorizationAudience.FUNCTIONS, AuthorizationAudience.RULES, AuthorizationAudience.EVENTS, AuthorizationAudience.ENDPOINTS]>;
74
+ exp: z.ZodNumber;
75
+ iat: z.ZodNumber;
76
+ nbf: z.ZodNumber;
77
+ sub: z.ZodString;
78
+ iss: z.ZodString;
79
+ }, "strip", z.ZodAny, z.objectOutputType<{
80
+ aud: z.ZodEnum<[AuthorizationAudience.AUTHORITIES, AuthorizationAudience.SHAREDATA, AuthorizationAudience.FUNCTIONS, AuthorizationAudience.RULES, AuthorizationAudience.EVENTS, AuthorizationAudience.ENDPOINTS]>;
81
+ exp: z.ZodNumber;
82
+ iat: z.ZodNumber;
83
+ nbf: z.ZodNumber;
84
+ sub: z.ZodString;
85
+ iss: z.ZodString;
86
+ }, z.ZodAny, "strip">, z.objectInputType<{
87
+ aud: z.ZodEnum<[AuthorizationAudience.AUTHORITIES, AuthorizationAudience.SHAREDATA, AuthorizationAudience.FUNCTIONS, AuthorizationAudience.RULES, AuthorizationAudience.EVENTS, AuthorizationAudience.ENDPOINTS]>;
88
+ exp: z.ZodNumber;
89
+ iat: z.ZodNumber;
90
+ nbf: z.ZodNumber;
91
+ sub: z.ZodString;
92
+ iss: z.ZodString;
93
+ }, z.ZodAny, "strip">>;
94
+ export type IValidSafeTokenPayload = z.infer<typeof ValidSafeTokenPayloadSchema>;
95
+ /**
96
+ * This is the decoded jwt token.
97
+ */
98
+ export declare const DecodedJwtTokenSchema: z.ZodObject<{
99
+ customClaims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
100
+ aud: z.ZodEnum<[AuthorizationAudience.AUTHORITIES, AuthorizationAudience.SHAREDATA, AuthorizationAudience.FUNCTIONS, AuthorizationAudience.RULES, AuthorizationAudience.EVENTS, AuthorizationAudience.ENDPOINTS]>;
101
+ exp: z.ZodNumber;
102
+ iat: z.ZodNumber;
103
+ nbf: z.ZodNumber;
104
+ sub: z.ZodString;
105
+ iss: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
62
107
  aud: AuthorizationAudience;
63
108
  exp: number;
64
109
  iat: number;
65
110
  nbf: number;
66
- sub: IAuthorizationSubject;
67
- iss: IAuthorizationIssuer;
68
- }
69
- /**
70
- * This is the decoded jwt token.
71
- */
72
- export interface IDecodedJwtToken {
73
- customClaims?: ICustomClaims;
111
+ sub: string;
112
+ iss: string;
113
+ customClaims?: Record<string, any> | undefined;
114
+ }, {
74
115
  aud: AuthorizationAudience;
75
116
  exp: number;
76
117
  iat: number;
77
118
  nbf: number;
78
- sub: IAuthorizationSubject;
79
- iss: IAuthorizationIssuer;
80
- }
119
+ sub: string;
120
+ iss: string;
121
+ customClaims?: Record<string, any> | undefined;
122
+ }>;
123
+ export type IDecodedJwtToken = z.infer<typeof DecodedJwtTokenSchema>;
81
124
  //# sourceMappingURL=authorization-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authorization-models.d.ts","sourceRoot":"","sources":["../../../src/models/authorization/authorization-models.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;AAG9D;;GAEG;AACH,oBAAY,uBAAuB;IAC/B,GAAG,QAAQ;CACd;AAOD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,oBAAY,qBAAqB;IAC7B,WAAW,gBAAgB,CAAE,wCAAwC;IACrE,SAAS,cAAc,CAAE,uCAAuC;IAChE,SAAS,cAAc,CAAE,sCAAsC;IAC/D,KAAK,UAAU,CAAE,kCAAkC;IACnD,MAAM,WAAW,CAAE,mCAAmC;IACtD,SAAS,cAAc;CAC1B;AAED;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,YAAY,iBAAiB;CAChC;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,GAAG,yBAAyB,IAAI,MAAM,EAAE,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAIzD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,oBAAoB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,oBAAoB,CAAC;CAC7B"}
1
+ {"version":3,"file":"authorization-models.d.ts","sourceRoot":"","sources":["../../../src/models/authorization/authorization-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,oCAAgC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D;;GAEG;AACH,oBAAY,uBAAuB;IAC/B,GAAG,QAAQ;CACd;AAED,eAAO,MAAM,6BAA6B,oBAExC,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,0BAA0B,oCAAoB,CAAC;AAC5D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,oBAAY,qBAAqB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,2BAA2B,8MAOtC,CAAC;AAEH;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,YAAY,iBAAiB;CAChC;AAED,eAAO,MAAM,+BAA+B,qFAG1C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B,aAA+C,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,yBAAyB,aAAkD,CAAC;AACzF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAI5E;;GAEG;AACH,eAAO,MAAM,kBAAkB,oCAAoB,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;sBAOpB,CAAC;AAErB,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAQhC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,33 +1,103 @@
1
1
  "use strict";
2
- // This file contains the models for the authorization.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AuthorizationSubjectStart = exports.AuthorizationAudience = exports.AuthorityValidationType = void 0;
3
+ exports.DecodedJwtTokenSchema = exports.ValidSafeTokenPayloadSchema = exports.CustomClaimsSchema = exports.AuthorizationIssuerSchema = exports.AuthorizationSubjectSchema = exports.AuthorizationSubjectStartSchema = exports.AuthorizationSubjectStart = exports.AuthorizationAudienceSchema = exports.AuthorizationAudience = exports.AuthorizationHeaderSchema = exports.AuthorizationPayloadSchema = exports.AuthorityValidationTypeSchema = exports.AuthorityValidationType = exports.JWTAuthoritySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ //#region Authorities
6
+ /**
7
+ * This is the authorities that can be validated with incoming requests.
8
+ * it is AuthorityName Declaration-with ending of the original hex version of the publickey, publickey for the authority
9
+ */
10
+ exports.JWTAuthoritySchema = zod_1.z.map(zod_1.z.string(), zod_1.z.string());
5
11
  /**
6
12
  * This contains the types of validation that can be done on the authority.
7
13
  */
8
14
  var AuthorityValidationType;
9
15
  (function (AuthorityValidationType) {
10
- AuthorityValidationType["JWT"] = "jwt";
16
+ AuthorityValidationType["JWT"] = "JWT";
11
17
  })(AuthorityValidationType || (exports.AuthorityValidationType = AuthorityValidationType = {}));
18
+ exports.AuthorityValidationTypeSchema = zod_1.z.enum([
19
+ 'JWT',
20
+ ]);
21
+ //#endregion Authorities
22
+ //#region jwt models
23
+ /**
24
+ * This is the payload for the jwt.
25
+ */
26
+ exports.AuthorizationPayloadSchema = zod_1.z.record(zod_1.z.any());
27
+ /**
28
+ * This is the header for the jwt.
29
+ */
30
+ exports.AuthorizationHeaderSchema = zod_1.z.object({
31
+ alg: zod_1.z.string(),
32
+ typ: zod_1.z.string(),
33
+ });
12
34
  /**
13
35
  * This is the audience that the jwt is intended for.
14
36
  */
15
37
  var AuthorizationAudience;
16
38
  (function (AuthorizationAudience) {
17
- AuthorizationAudience["AUTHORITIES"] = "authorities";
18
- AuthorizationAudience["SHAREDATA"] = "sharedata";
19
- AuthorizationAudience["FUNCTIONS"] = "functions";
20
- AuthorizationAudience["RULES"] = "rules";
21
- AuthorizationAudience["EVENTS"] = "events";
22
- AuthorizationAudience["ENDPOINTS"] = "endpoints";
39
+ AuthorizationAudience["AUTHORITIES"] = "AUTHORITIES";
40
+ AuthorizationAudience["SHAREDATA"] = "SHAREDATA";
41
+ AuthorizationAudience["FUNCTIONS"] = "FUNCTIONS";
42
+ AuthorizationAudience["RULES"] = "RULES";
43
+ AuthorizationAudience["EVENTS"] = "EVENTS";
44
+ AuthorizationAudience["ENDPOINTS"] = "ENDPOINTS";
23
45
  })(AuthorizationAudience || (exports.AuthorizationAudience = AuthorizationAudience = {}));
46
+ exports.AuthorizationAudienceSchema = zod_1.z.enum([
47
+ AuthorizationAudience.AUTHORITIES,
48
+ AuthorizationAudience.SHAREDATA,
49
+ AuthorizationAudience.FUNCTIONS,
50
+ AuthorizationAudience.RULES,
51
+ AuthorizationAudience.EVENTS,
52
+ AuthorizationAudience.ENDPOINTS,
53
+ ]);
24
54
  /**
25
55
  * This contains the start of the subject for the authorization subject
26
56
  */
27
57
  var AuthorizationSubjectStart;
28
58
  (function (AuthorizationSubjectStart) {
29
- AuthorizationSubjectStart["USER"] = "user";
30
- AuthorizationSubjectStart["SAFE_NETWORK"] = "safe-network";
59
+ AuthorizationSubjectStart["USER"] = "USER";
60
+ AuthorizationSubjectStart["SAFE_NETWORK"] = "SAFE_NETWORK";
31
61
  })(AuthorizationSubjectStart || (exports.AuthorizationSubjectStart = AuthorizationSubjectStart = {}));
32
- //#region jwt header models
62
+ exports.AuthorizationSubjectStartSchema = zod_1.z.enum([
63
+ AuthorizationSubjectStart.USER,
64
+ AuthorizationSubjectStart.SAFE_NETWORK
65
+ ]);
66
+ /**
67
+ * This type represents the formatted authorization subject.
68
+ */
69
+ exports.AuthorizationSubjectSchema = zod_1.z.string().regex(/^(USER|SAFE_NETWORK):.+$/);
70
+ /**
71
+ * This is the issuer of the token.
72
+ */
73
+ exports.AuthorizationIssuerSchema = zod_1.z.string().regex(/^[a-zA-Z0-9]+-[a-zA-Z0-9]+$/);
74
+ //#region jwt token models
75
+ /**
76
+ * Any custom network claims that are added to the token.
77
+ */
78
+ exports.CustomClaimsSchema = zod_1.z.record(zod_1.z.any());
79
+ /**
80
+ * This interface represents the valid safe token payload (after deconstructing the jwt token).
81
+ */
82
+ exports.ValidSafeTokenPayloadSchema = zod_1.z.object({
83
+ aud: exports.AuthorizationAudienceSchema, // the audience of the token
84
+ exp: zod_1.z.number(), // the expiration time of the token
85
+ iat: zod_1.z.number(), // the issued at time of the token
86
+ nbf: zod_1.z.number(), // the not before time of the token
87
+ sub: exports.AuthorizationSubjectSchema, // the subject of the token
88
+ iss: exports.AuthorizationIssuerSchema, // the issuer of the token
89
+ }).catchall(zod_1.z.any()); // any other information that was added to the token
90
+ /**
91
+ * This is the decoded jwt token.
92
+ */
93
+ exports.DecodedJwtTokenSchema = zod_1.z.object({
94
+ customClaims: exports.CustomClaimsSchema.optional(), // the custom claims of the token
95
+ aud: exports.AuthorizationAudienceSchema, // the audience of the token
96
+ exp: zod_1.z.number(), // the expiration time of the token
97
+ iat: zod_1.z.number(), // the issued at time of the token
98
+ nbf: zod_1.z.number(), // the not before time of the token
99
+ sub: exports.AuthorizationSubjectSchema, // the subject of the token
100
+ iss: exports.AuthorizationIssuerSchema, // the issuer of the token
101
+ });
102
+ //#endregion jwt token models
33
103
  //#endregion jwt models
@@ -1,5 +1,13 @@
1
- export interface IPublicPrivateKeyDerPair {
1
+ import { z } from 'zod';
2
+ export declare const PublicPrivateKeyDerPairSchema: z.ZodObject<{
3
+ privateKeyDer: z.ZodString;
4
+ publicKeyDer: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
2
6
  privateKeyDer: string;
3
7
  publicKeyDer: string;
4
- }
8
+ }, {
9
+ privateKeyDer: string;
10
+ publicKeyDer: string;
11
+ }>;
12
+ export type IPublicPrivateKeyDerPair = z.infer<typeof PublicPrivateKeyDerPairSchema>;
5
13
  //# sourceMappingURL=crypto-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"crypto-models.d.ts","sourceRoot":"","sources":["../../../src/models/crypto/crypto-models.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"crypto-models.d.ts","sourceRoot":"","sources":["../../../src/models/crypto/crypto-models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  // This file contains the models use in the cryptography functions of this library.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PublicPrivateKeyDerPairSchema = void 0;
5
+ const zod_1 = require("zod");
6
+ exports.PublicPrivateKeyDerPairSchema = zod_1.z.object({
7
+ privateKeyDer: zod_1.z.string(), // the base 64 encoded private key in DER format.
8
+ publicKeyDer: zod_1.z.string(), // the base 64 encoded public key in DER format.
9
+ });
@@ -1,13 +1,27 @@
1
+ import { z } from 'zod';
1
2
  /**
2
3
  * This contains the minimum information that is needed on a data record.
3
4
  */
4
- export interface IGenericData {
5
+ export declare const GenericDataSchema: z.ZodObject<{
6
+ createdAt: z.ZodNumber;
7
+ createdBy: z.ZodString;
8
+ updatedAt: z.ZodNumber;
9
+ updatedBy: z.ZodString;
10
+ versionNumber: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
5
12
  createdAt: number;
6
13
  createdBy: string;
7
14
  updatedAt: number;
8
15
  updatedBy: string;
9
16
  versionNumber: number;
10
- }
17
+ }, {
18
+ createdAt: number;
19
+ createdBy: string;
20
+ updatedAt: number;
21
+ updatedBy: string;
22
+ versionNumber: number;
23
+ }>;
24
+ export type IGenericData = z.infer<typeof GenericDataSchema>;
11
25
  /**
12
26
  * This contains the data for an item with a searchable index.
13
27
  * for the word 'found' this object would look like this:
@@ -18,7 +32,6 @@ export interface IGenericData {
18
32
  * foun: true,
19
33
  * found: true,
20
34
  */
21
- export interface ISearchableIndex {
22
- [key: string]: true;
23
- }
35
+ export declare const SearchableIndexSchema: z.ZodRecord<z.ZodString, z.ZodLiteral<true>>;
36
+ export type ISearchableIndex = z.infer<typeof SearchableIndexSchema>;
24
37
  //# sourceMappingURL=data-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-models.d.ts","sourceRoot":"","sources":["../../../src/models/data/data-models.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
1
+ {"version":3,"file":"data-models.d.ts","sourceRoot":"","sources":["../../../src/models/data/data-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,8CAA4B,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,3 +1,26 @@
1
1
  "use strict";
2
- /// This contains the models for data in the degenerate package
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchableIndexSchema = exports.GenericDataSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /// This contains the models for data in the degenerate package
6
+ /**
7
+ * This contains the minimum information that is needed on a data record.
8
+ */
9
+ exports.GenericDataSchema = zod_1.z.object({
10
+ createdAt: zod_1.z.number(), // the timestamp of when the user was created.
11
+ createdBy: zod_1.z.string(), // the user id of the user who created the item.
12
+ updatedAt: zod_1.z.number(), // when the user was last updated.
13
+ updatedBy: zod_1.z.string(), // the user id of the user who updated the item.
14
+ versionNumber: zod_1.z.number(), // the version number of the item.
15
+ });
16
+ /**
17
+ * This contains the data for an item with a searchable index.
18
+ * for the word 'found' this object would look like this:
19
+ * {
20
+ * f: true,
21
+ * fo: true,
22
+ * fou: true,
23
+ * foun: true,
24
+ * found: true,
25
+ */
26
+ exports.SearchableIndexSchema = zod_1.z.record(zod_1.z.literal(true));
@@ -1,9 +1,19 @@
1
+ import { z } from 'zod';
1
2
  /**
2
3
  * This file contains all models for the dynamic eexecution fo functions.
3
4
  */
4
- export interface IDynamicExecutionOutput {
5
- output: any;
5
+ export declare const DynamicExecutionOutputSchema: z.ZodObject<{
6
+ output: z.ZodAny;
7
+ executionTime: z.ZodNumber;
8
+ timeoutStepsConsumed: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
6
10
  executionTime: number;
7
11
  timeoutStepsConsumed: number;
8
- }
12
+ output?: any;
13
+ }, {
14
+ executionTime: number;
15
+ timeoutStepsConsumed: number;
16
+ output?: any;
17
+ }>;
18
+ export type IDynamicExecutionOutput = z.infer<typeof DynamicExecutionOutputSchema>;
9
19
  //# sourceMappingURL=dynamic-execution-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-execution-models.d.ts","sourceRoot":"","sources":["../../../src/models/dynamic-execution/dynamic-execution-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,GAAG,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;CAChC"}
1
+ {"version":3,"file":"dynamic-execution-models.d.ts","sourceRoot":"","sources":["../../../src/models/dynamic-execution/dynamic-execution-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,2 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DynamicExecutionOutputSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * This file contains all models for the dynamic eexecution fo functions.
7
+ */
8
+ exports.DynamicExecutionOutputSchema = zod_1.z.object({
9
+ output: zod_1.z.any(), // replace 'TOutput' with an existing type or define a new type.
10
+ executionTime: zod_1.z.number(), // the time that the execution took.
11
+ timeoutStepsConsumed: zod_1.z.number(), // the number of timeout steps consumed.
12
+ });
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  /**
2
3
  * This contains the interfaces for all event data types that can be run on the network.
3
4
  */
@@ -9,6 +10,7 @@ export declare enum ShareEventType {
9
10
  DataChange = "DataChange",
10
11
  Scheduled = "Scheduled"
11
12
  }
13
+ export declare const ShareEventTypeSchema: z.ZodEnum<["Application", "DataChange", "Scheduled"]>;
12
14
  /**
13
15
  * All sources of event trusts
14
16
  */
@@ -17,6 +19,7 @@ export declare enum EventSourceTruthType {
17
19
  Oauth = "Oauth",
18
20
  ShareBlock = "ShareBlock"
19
21
  }
22
+ export declare const EventSourceTruthTypeSchema: z.ZodEnum<["Crypto", "Oauth", "ShareBlock"]>;
20
23
  /**
21
24
  * All the types of proofs that can be sent from the sources of event execution truths.
22
25
  */
@@ -24,6 +27,7 @@ export declare enum EventSourceTruthProofType {
24
27
  Hash = "Hash",
25
28
  Signature = "Signature"
26
29
  }
30
+ export declare const EventSourceTruthProofTypeSchema: z.ZodEnum<["Hash", "Signature"]>;
27
31
  /**
28
32
  * This is the type of processing that can be done on the share data event.
29
33
  */
@@ -31,35 +35,152 @@ export declare enum ShareDataEventProcessingType {
31
35
  Parallel = "parallel",
32
36
  Linear = "linear"
33
37
  }
38
+ export declare const ShareDataEventProcessingTypeSchema: z.ZodEnum<["parallel", "linear"]>;
34
39
  /**
35
- * This is the interface for the share data event.
40
+ * This is all data that is required to find the sharedata and function to execute.
36
41
  */
37
- export interface ShareDataEvent {
38
- eventId: string;
39
- locked: boolean;
40
- eventType: ShareEventType;
41
- eventSource: string;
42
- eventSourceTruthType: EventSourceTruthType;
43
- eventSourceTruthProofType: EventSourceTruthProofType;
44
- eventSourceTruthProof: string | number | Buffer;
45
- triggerCondition: (...args: any[]) => boolean;
46
- shareDataEventInformation: IShareDataEvent[];
47
- eventContext?: object;
48
- }
42
+ export declare const ShareDataAndFunctionEventSchema: z.ZodObject<{
43
+ shareDataId: z.ZodString;
44
+ functionId: z.ZodString;
45
+ shareDataInputs: z.ZodArray<z.ZodString, "many">;
46
+ inputs: z.ZodAny;
47
+ }, "strip", z.ZodTypeAny, {
48
+ shareDataId: string;
49
+ functionId: string;
50
+ shareDataInputs: string[];
51
+ inputs?: any;
52
+ }, {
53
+ shareDataId: string;
54
+ functionId: string;
55
+ shareDataInputs: string[];
56
+ inputs?: any;
57
+ }>;
58
+ export type IShareDataAndFunctionEvent = z.infer<typeof ShareDataAndFunctionEventSchema>;
49
59
  /**
50
60
  * This is the interface for the share data event.
51
61
  */
52
- export interface IShareDataEvent {
53
- shareData: IShareDataAndFunctionEvent[];
54
- processingType: ShareDataEventProcessingType;
55
- }
62
+ export declare const IShareDataEventSchema: z.ZodObject<{
63
+ shareData: z.ZodArray<z.ZodObject<{
64
+ shareDataId: z.ZodString;
65
+ functionId: z.ZodString;
66
+ shareDataInputs: z.ZodArray<z.ZodString, "many">;
67
+ inputs: z.ZodAny;
68
+ }, "strip", z.ZodTypeAny, {
69
+ shareDataId: string;
70
+ functionId: string;
71
+ shareDataInputs: string[];
72
+ inputs?: any;
73
+ }, {
74
+ shareDataId: string;
75
+ functionId: string;
76
+ shareDataInputs: string[];
77
+ inputs?: any;
78
+ }>, "many">;
79
+ processingType: z.ZodEnum<["parallel", "linear"]>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ shareData: {
82
+ shareDataId: string;
83
+ functionId: string;
84
+ shareDataInputs: string[];
85
+ inputs?: any;
86
+ }[];
87
+ processingType: "parallel" | "linear";
88
+ }, {
89
+ shareData: {
90
+ shareDataId: string;
91
+ functionId: string;
92
+ shareDataInputs: string[];
93
+ inputs?: any;
94
+ }[];
95
+ processingType: "parallel" | "linear";
96
+ }>;
97
+ export type IShareDataEvent = z.infer<typeof IShareDataEventSchema>;
56
98
  /**
57
- * This is all data that is required to find the sharedata and function to execute.
99
+ * This is the interface for the share data event.
58
100
  */
59
- export interface IShareDataAndFunctionEvent {
60
- shareDataId: string;
61
- functionId: string;
62
- shareDataInputs: string[];
63
- inputs: any;
64
- }
101
+ export declare const ShareDataEventSchema: z.ZodObject<{
102
+ eventId: z.ZodString;
103
+ locked: z.ZodBoolean;
104
+ eventType: z.ZodEnum<["Application", "DataChange", "Scheduled"]>;
105
+ eventSource: z.ZodString;
106
+ eventSourceTruthType: z.ZodEnum<["Crypto", "Oauth", "ShareBlock"]>;
107
+ eventSourceTruthProofType: z.ZodEnum<["Hash", "Signature"]>;
108
+ eventSourceTruthProof: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodType<Buffer, z.ZodTypeDef, Buffer>]>;
109
+ triggerCondition: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodBoolean>;
110
+ shareDataEventInformation: z.ZodArray<z.ZodObject<{
111
+ shareData: z.ZodArray<z.ZodObject<{
112
+ shareDataId: z.ZodString;
113
+ functionId: z.ZodString;
114
+ shareDataInputs: z.ZodArray<z.ZodString, "many">;
115
+ inputs: z.ZodAny;
116
+ }, "strip", z.ZodTypeAny, {
117
+ shareDataId: string;
118
+ functionId: string;
119
+ shareDataInputs: string[];
120
+ inputs?: any;
121
+ }, {
122
+ shareDataId: string;
123
+ functionId: string;
124
+ shareDataInputs: string[];
125
+ inputs?: any;
126
+ }>, "many">;
127
+ processingType: z.ZodEnum<["parallel", "linear"]>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ shareData: {
130
+ shareDataId: string;
131
+ functionId: string;
132
+ shareDataInputs: string[];
133
+ inputs?: any;
134
+ }[];
135
+ processingType: "parallel" | "linear";
136
+ }, {
137
+ shareData: {
138
+ shareDataId: string;
139
+ functionId: string;
140
+ shareDataInputs: string[];
141
+ inputs?: any;
142
+ }[];
143
+ processingType: "parallel" | "linear";
144
+ }>, "many">;
145
+ eventContext: z.ZodRecord<z.ZodString, z.ZodAny>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ eventId: string;
148
+ locked: boolean;
149
+ eventType: "Application" | "DataChange" | "Scheduled";
150
+ eventSource: string;
151
+ eventSourceTruthType: "Crypto" | "Oauth" | "ShareBlock";
152
+ eventSourceTruthProofType: "Hash" | "Signature";
153
+ eventSourceTruthProof: string | number | Buffer;
154
+ triggerCondition: (args_0: any, ...args: unknown[]) => boolean;
155
+ shareDataEventInformation: {
156
+ shareData: {
157
+ shareDataId: string;
158
+ functionId: string;
159
+ shareDataInputs: string[];
160
+ inputs?: any;
161
+ }[];
162
+ processingType: "parallel" | "linear";
163
+ }[];
164
+ eventContext: Record<string, any>;
165
+ }, {
166
+ eventId: string;
167
+ locked: boolean;
168
+ eventType: "Application" | "DataChange" | "Scheduled";
169
+ eventSource: string;
170
+ eventSourceTruthType: "Crypto" | "Oauth" | "ShareBlock";
171
+ eventSourceTruthProofType: "Hash" | "Signature";
172
+ eventSourceTruthProof: string | number | Buffer;
173
+ triggerCondition: (args_0: any, ...args: unknown[]) => boolean;
174
+ shareDataEventInformation: {
175
+ shareData: {
176
+ shareDataId: string;
177
+ functionId: string;
178
+ shareDataInputs: string[];
179
+ inputs?: any;
180
+ }[];
181
+ processingType: "parallel" | "linear";
182
+ }[];
183
+ eventContext: Record<string, any>;
184
+ }>;
185
+ export type ShareDataEvent = z.infer<typeof ShareDataEventSchema>;
65
186
  //# sourceMappingURL=share-event-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"share-event-models.d.ts","sourceRoot":"","sources":["../../../src/models/events/share-event-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,oBAAY,cAAc;IACtB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;CAC1B;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED;;GAEG;AACH,oBAAY,4BAA4B;IACpC,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAKD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,qBAAqB,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAChD,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IAE9C,yBAAyB,EAAE,eAAe,EAAE,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,0BAA0B,EAAE,CAAC;IACxC,cAAc,EAAE,4BAA4B,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,GAAG,CAAC;CACf"}
1
+ {"version":3,"file":"share-event-models.d.ts","sourceRoot":"","sources":["../../../src/models/events/share-event-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAIH;;GAEG;AACH,oBAAY,cAAc;IACtB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,oBAAoB,uDAI/B,CAAC;AAEH;;GAEG;AACH,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED,eAAO,MAAM,0BAA0B,8CAIrC,CAAC;AAEH;;GAEG;AACH,oBAAY,yBAAyB;IACjC,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B;AAED,eAAO,MAAM,+BAA+B,kCAG1C,CAAC;AAEH;;GAEG;AACH,oBAAY,4BAA4B;IACpC,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,eAAO,MAAM,kCAAkC,mCAG7C,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}