@degenerate/generic 0.1.10 → 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.
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts.map +1 -1
- package/dist/authorization/safe/authorization/authorized-authorities.d.ts +5 -5
- package/dist/authorization/safe/authorization/authorized-authorities.d.ts.map +1 -1
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts +2 -2
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts.map +1 -1
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +2 -2
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +2 -2
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +2 -2
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.d.ts +3 -3
- package/dist/models/authorization/authorization-models.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.js +3 -1
- package/dist/models/crypto/crypto-models.d.ts +10 -2
- package/dist/models/crypto/crypto-models.d.ts.map +1 -1
- package/dist/models/crypto/crypto-models.js +6 -0
- package/dist/models/data/data-models.d.ts +18 -5
- package/dist/models/data/data-models.d.ts.map +1 -1
- package/dist/models/data/data-models.js +24 -1
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts +13 -3
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts.map +1 -1
- package/dist/models/dynamic-execution/dynamic-execution-models.js +10 -0
- package/dist/models/events/share-event-models.d.ts +145 -24
- package/dist/models/events/share-event-models.d.ts.map +1 -1
- package/dist/models/events/share-event-models.js +53 -2
- package/dist/models/functions/share-data-function-models.d.ts +251 -32
- package/dist/models/functions/share-data-function-models.d.ts.map +1 -1
- package/dist/models/functions/share-data-function-models.js +100 -3
- package/dist/models/generic/request-response-models.d.ts +11 -3
- package/dist/models/generic/request-response-models.d.ts.map +1 -1
- package/dist/models/generic/request-response-models.js +9 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +6 -1
- package/dist/models/safe/rules/share-rule-models.d.ts +931 -0
- package/dist/models/safe/rules/share-rule-models.d.ts.map +1 -0
- package/dist/models/safe/rules/share-rule-models.js +341 -0
- package/dist/models/safe/safe-transaction-models.d.ts +137 -20
- package/dist/models/safe/safe-transaction-models.d.ts.map +1 -1
- package/dist/models/safe/safe-transaction-models.js +88 -3
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts +391 -0
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts.map +1 -0
- package/dist/models/safe/transactions/authorities-transactions-models.js +56 -0
- package/dist/models/share-data/share-data.d.ts +144 -23
- package/dist/models/share-data/share-data.d.ts.map +1 -1
- package/dist/models/share-data/share-data.js +66 -1
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts +2 -2
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/models/rules/share-rule-models.d.ts +0 -303
- package/dist/models/rules/share-rule-models.d.ts.map +0 -1
- package/dist/models/rules/share-rule-models.js +0 -93
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthorizationIssuer } from '../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This function creates an authorization issuer.
|
|
4
4
|
* @param issuerName the name of the issuer (this should be letters and numbers only)
|
|
5
5
|
* @param publicKey the public key of the issuer (this should be a hex string)
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
declare const createAuthorizationIssuer: (issuerName: string, publicKey: string) =>
|
|
8
|
+
declare const createAuthorizationIssuer: (issuerName: string, publicKey: string) => AuthorizationIssuer;
|
|
9
9
|
export { createAuthorizationIssuer };
|
|
10
10
|
//# sourceMappingURL=create-authorization-issuer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-authorization-issuer.d.ts","sourceRoot":"","sources":["../../../../src/authorization/jwt/sign/create-authorization-issuer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-authorization-issuer.d.ts","sourceRoot":"","sources":["../../../../src/authorization/jwt/sign/create-authorization-issuer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAEzF;;;;;GAKG;AACH,QAAA,MAAM,yBAAyB,eAAgB,MAAM,aAAa,MAAM,KAAG,mBAe1E,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthorizationSubjectStart,
|
|
1
|
+
import { AuthorizationSubjectStart, AuthorizationSubject } from '../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This creates an authorization subject.
|
|
4
4
|
*
|
|
@@ -7,6 +7,6 @@ import { AuthorizationSubjectStart, IAuthorizationSubject } from '../../../model
|
|
|
7
7
|
*
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
declare const createAuthorizationSubject: (subjectType: AuthorizationSubjectStart, subjectId: string) =>
|
|
10
|
+
declare const createAuthorizationSubject: (subjectType: AuthorizationSubjectStart, subjectId: string) => AuthorizationSubject;
|
|
11
11
|
export { createAuthorizationSubject };
|
|
12
12
|
//# sourceMappingURL=create-authorization-subject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-authorization-subject.d.ts","sourceRoot":"","sources":["../../../../src/authorization/jwt/sign/create-authorization-subject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"create-authorization-subject.d.ts","sourceRoot":"","sources":["../../../../src/authorization/jwt/sign/create-authorization-subject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAErH;;;;;;;GAOG;AACH,QAAA,MAAM,0BAA0B,gBACf,yBAAyB,aAC3B,MAAM,KAClB,oBAKF,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import jwt from 'jsonwebtoken';
|
|
2
|
-
import { AuthorizationAudience,
|
|
2
|
+
import { AuthorizationAudience, AuthorizationSubject } from '../../../models/authorization/authorization-models';
|
|
3
3
|
/**
|
|
4
4
|
* This function creates the options for the jwt token issuance
|
|
5
5
|
*
|
|
@@ -12,6 +12,6 @@ import { AuthorizationAudience, IAuthorizationSubject } from '../../../models/au
|
|
|
12
12
|
* @param header An object containing additional header properties to include in the token. (optional)
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
declare const createJwtOptions: (subject:
|
|
15
|
+
declare const createJwtOptions: (subject: AuthorizationSubject, audience?: AuthorizationAudience | AuthorizationAudience[], algorithm?: jwt.Algorithm, expiresIn?: string | number, notBefore?: string | number, keyid?: string, header?: jwt.JwtHeader) => jwt.SignOptions;
|
|
16
16
|
export { createJwtOptions };
|
|
17
17
|
//# sourceMappingURL=create-jwt-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-jwt-options.d.ts","sourceRoot":"","sources":["../../../../src/authorization/jwt/sign/create-jwt-options.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"create-jwt-options.d.ts","sourceRoot":"","sources":["../../../../src/authorization/jwt/sign/create-jwt-options.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAGjH;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,gBAAgB,YACT,oBAAoB,aACnB,qBAAqB,GAAG,qBAAqB,EAAE,cAC9C,GAAG,CAAC,SAAS,cACb,MAAM,GAAG,MAAM,cACf,MAAM,GAAG,MAAM,UAClB,MAAM,WACL,GAAG,CAAC,SAAS,KACvB,GAAG,CAAC,WAkBN,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthorizationAudience,
|
|
1
|
+
import { AuthorizationAudience, AuthorizationIssuer } from '../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This class is used to keep and maintain the authorized authorities in the SAFE system.
|
|
4
4
|
*/
|
|
@@ -13,26 +13,26 @@ export declare class AuthorizedAuthorities {
|
|
|
13
13
|
* @param authorizationIssuer the authority to add
|
|
14
14
|
* @param publicKey the public key
|
|
15
15
|
*/
|
|
16
|
-
addAuthorizedJWTAuthority(audience: AuthorizationAudience, authorizationIssuer:
|
|
16
|
+
addAuthorizedJWTAuthority(audience: AuthorizationAudience, authorizationIssuer: AuthorizationIssuer, publicKey: string): void;
|
|
17
17
|
/**
|
|
18
18
|
* This removes a JWT authority from the authorized authorities for the given audience.
|
|
19
19
|
*
|
|
20
20
|
* @param authority the authority to remove
|
|
21
21
|
*/
|
|
22
|
-
removeAuthorizedJWTAuthority(audience: AuthorizationAudience, authority:
|
|
22
|
+
removeAuthorizedJWTAuthority(audience: AuthorizationAudience, authority: AuthorizationIssuer): void;
|
|
23
23
|
/**
|
|
24
24
|
* This gets the public key for the given authority for the given audience.
|
|
25
25
|
*
|
|
26
26
|
* @param authority the authority to get the public key for
|
|
27
27
|
* @returns
|
|
28
28
|
*/
|
|
29
|
-
getAuthorizedJWTAuthorityPublicKey(audience: AuthorizationAudience, authority:
|
|
29
|
+
getAuthorizedJWTAuthorityPublicKey(audience: AuthorizationAudience, authority: AuthorizationIssuer): string | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* this gets the authorized JWT authorities for the given audience.
|
|
32
32
|
* @param audience the audience to get the authorized authorities for
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
|
-
getAuthorizedJWTAuthorities(audience: AuthorizationAudience): Map<
|
|
35
|
+
getAuthorizedJWTAuthorities(audience: AuthorizationAudience): Map<AuthorizationIssuer, string>;
|
|
36
36
|
/**
|
|
37
37
|
* This gets the number of authorized JWT providers for the given audience.
|
|
38
38
|
* @returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-authorities.d.ts","sourceRoot":"","sources":["../../../../src/authorization/safe/authorization/authorized-authorities.ts"],"names":[],"mappings":"AACA,OAAO,EACH,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"authorized-authorities.d.ts","sourceRoot":"","sources":["../../../../src/authorization/safe/authorization/authorized-authorities.ts"],"names":[],"mappings":"AACA,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,oDAAoD,CAAC;AAE5D;;GAEG;AACH,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,yBAAyB,CAA+D;IAEhG,OAAO,CAAC,0BAA0B,CAAqC;;IAYtE;;;;;;MAME;IACI,yBAAyB,CAC5B,QAAQ,EAAE,qBAAqB,EAC/B,mBAAmB,EAAE,mBAAmB,EACxC,SAAS,EAAE,MAAM,GAClB,IAAI;IAKP;;;;OAIG;IACI,4BAA4B,CAAC,QAAQ,EAAE,qBAAqB,EAAE,SAAS,EAAE,mBAAmB,GAAG,IAAI;IAO1G;;;;;OAKG;IACI,kCAAkC,CAAC,QAAQ,EAAE,qBAAqB,EAAE,SAAS,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS;IAI9H;;;;OAIG;IACI,2BAA2B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,GAAG,CAAC,mBAAmB,EAAE,MAAM,CAAC;IAIrG;;;OAGG;IACI,gCAAgC,CAAC,QAAQ,EAAE,qBAAqB,GAAG,MAAM;CAGnF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthorizationIssuer } from '../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This function determines the issuer from the request.
|
|
4
4
|
*
|
|
5
5
|
* @param req the request to determine the issuer from
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
declare const determineIssuerFromRequest: (req: any) =>
|
|
8
|
+
declare const determineIssuerFromRequest: (req: any) => AuthorizationIssuer;
|
|
9
9
|
export { determineIssuerFromRequest };
|
|
10
10
|
//# sourceMappingURL=determine-issuer-from-request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"determine-issuer-from-request.d.ts","sourceRoot":"","sources":["../../../../src/authorization/safe/request/determine-issuer-from-request.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"determine-issuer-from-request.d.ts","sourceRoot":"","sources":["../../../../src/authorization/safe/request/determine-issuer-from-request.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAGzF;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B,QAAS,GAAG,KAAG,mBAa9C,CAAA;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthorizationIssuer } from '../../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This function determines the issuer from the bearer token (if it exists).
|
|
4
4
|
* doesn't validate the signature of the token, just that the shape is correct and
|
|
@@ -7,6 +7,6 @@ import { IAuthorizationIssuer } from '../../../../models/authorization/authoriza
|
|
|
7
7
|
* @param bearerToken the bearer token to determine the issuer from
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
declare const determineIssuerFromBearerToken: (bearerToken: string) =>
|
|
10
|
+
declare const determineIssuerFromBearerToken: (bearerToken: string) => AuthorizationIssuer;
|
|
11
11
|
export { determineIssuerFromBearerToken };
|
|
12
12
|
//# sourceMappingURL=determine-issuer-from-bearer-token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"determine-issuer-from-bearer-token.d.ts","sourceRoot":"","sources":["../../../../../src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"determine-issuer-from-bearer-token.d.ts","sourceRoot":"","sources":["../../../../../src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAI5F;;;;;;;GAOG;AACH,QAAA,MAAM,8BAA8B,gBAAiB,MAAM,KAAG,mBAiB7D,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthorizationIssuer } from '../../../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This function verifies that the incoming object is a valid authorization issuer.
|
|
4
4
|
*
|
|
5
5
|
* @param iss the object to verify
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
declare const verifyAuthorizationIssuer: (iss: unknown) => iss is
|
|
8
|
+
declare const verifyAuthorizationIssuer: (iss: unknown) => iss is AuthorizationIssuer;
|
|
9
9
|
export { verifyAuthorizationIssuer };
|
|
10
10
|
//# sourceMappingURL=verify-authorization-issuer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-authorization-issuer.d.ts","sourceRoot":"","sources":["../../../../../../src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"verify-authorization-issuer.d.ts","sourceRoot":"","sources":["../../../../../../src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAG/F;;;;;GAKG;AACH,QAAA,MAAM,yBAAyB,QAAS,OAAO,KAAG,GAAG,IAAI,mBAexD,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthorizationSubject } from '../../../../../models/authorization/authorization-models';
|
|
2
2
|
/**
|
|
3
3
|
* This function validates that the input string is a valid authorization subject.
|
|
4
4
|
*
|
|
5
5
|
* @param sub The input string to validate.
|
|
6
6
|
* @returns True if the input is a valid authorization subject, false otherwise.
|
|
7
7
|
*/
|
|
8
|
-
declare const verifyAuthorizationSubject: (sub: unknown) => sub is
|
|
8
|
+
declare const verifyAuthorizationSubject: (sub: unknown) => sub is AuthorizationSubject;
|
|
9
9
|
export { verifyAuthorizationSubject };
|
|
10
10
|
//# sourceMappingURL=verify-authorization-subject.d.ts.map
|
package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-authorization-subject.d.ts","sourceRoot":"","sources":["../../../../../../src/authorization/safe/validation/jwt/payload/verify-authorization-subject.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"verify-authorization-subject.d.ts","sourceRoot":"","sources":["../../../../../../src/authorization/safe/validation/jwt/payload/verify-authorization-subject.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,oBAAoB,EAEvB,MAAM,0DAA0D,CAAC;AAElE;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B,QAAS,OAAO,KAAG,GAAG,IAAI,oBASzD,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type IJWTAuthority = z.infer<typeof JWTAuthoritySchema>;
|
|
|
11
11
|
export declare enum AuthorityValidationType {
|
|
12
12
|
JWT = "JWT"
|
|
13
13
|
}
|
|
14
|
-
export declare const AuthorityValidationTypeSchema: z.ZodEnum<[
|
|
14
|
+
export declare const AuthorityValidationTypeSchema: z.ZodEnum<["JWT"]>;
|
|
15
15
|
/**
|
|
16
16
|
* This is the payload for the jwt.
|
|
17
17
|
*/
|
|
@@ -55,12 +55,12 @@ export declare const AuthorizationSubjectStartSchema: z.ZodEnum<[AuthorizationSu
|
|
|
55
55
|
* This type represents the formatted authorization subject.
|
|
56
56
|
*/
|
|
57
57
|
export declare const AuthorizationSubjectSchema: z.ZodString;
|
|
58
|
-
export type
|
|
58
|
+
export type AuthorizationSubject = z.infer<typeof AuthorizationSubjectSchema>;
|
|
59
59
|
/**
|
|
60
60
|
* This is the issuer of the token.
|
|
61
61
|
*/
|
|
62
62
|
export declare const AuthorizationIssuerSchema: z.ZodString;
|
|
63
|
-
export type
|
|
63
|
+
export type AuthorizationIssuer = z.infer<typeof AuthorizationIssuerSchema>;
|
|
64
64
|
/**
|
|
65
65
|
* Any custom network claims that are added to the token.
|
|
66
66
|
*/
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -15,7 +15,9 @@ var AuthorityValidationType;
|
|
|
15
15
|
(function (AuthorityValidationType) {
|
|
16
16
|
AuthorityValidationType["JWT"] = "JWT";
|
|
17
17
|
})(AuthorityValidationType || (exports.AuthorityValidationType = AuthorityValidationType = {}));
|
|
18
|
-
exports.AuthorityValidationTypeSchema = zod_1.z.enum([
|
|
18
|
+
exports.AuthorityValidationTypeSchema = zod_1.z.enum([
|
|
19
|
+
'JWT',
|
|
20
|
+
]);
|
|
19
21
|
//#endregion Authorities
|
|
20
22
|
//#region jwt models
|
|
21
23
|
/**
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
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,
|
|
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
|
|
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
|
|
22
|
-
|
|
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":"
|
|
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
|
|
5
|
-
output:
|
|
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,
|
|
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
|
|
40
|
+
* This is all data that is required to find the sharedata and function to execute.
|
|
36
41
|
*/
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
|
53
|
-
shareData:
|
|
54
|
-
|
|
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
|
|
99
|
+
* This is the interface for the share data event.
|
|
58
100
|
*/
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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;
|
|
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"}
|