@degenerate/endpoints 0.0.5 → 0.0.7
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/cors/authority/audience/get-set-audiences.d.ts.map +1 -0
- package/dist/cors/authority/jwt/validate-jwt-authorities.d.ts.map +1 -0
- package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.js +2 -3
- package/dist/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +1 -0
- package/dist/cors/endpoints/helpers/validate-request-body.d.ts.map +1 -0
- package/dist/cors/errors/all-error-handler.d.ts.map +1 -0
- package/dist/cors/errors/bad-request-handler.d.ts.map +1 -0
- package/dist/cors/errors/unauthorized-handler.d.ts.map +1 -0
- package/dist/cors/index.d.ts.map +1 -0
- package/dist/cors/routes/authorities.routes.d.ts.map +1 -0
- package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.js +2 -2
- package/dist/cors/routes/events.routes.d.ts.map +1 -0
- package/dist/cors/routes/functions.routes.d.ts.map +1 -0
- package/dist/cors/routes/rules.routes.d.ts.map +1 -0
- package/dist/cors/routes/share-data.routes.d.ts.map +1 -0
- package/dist/examples/express-server/app.d.ts.map +1 -0
- package/dist/{endpoints/src/examples → examples}/express-server/app.js +2 -2
- package/dist/examples/express-server/server.d.ts.map +1 -0
- package/dist/{endpoints/src/index.d.ts.map → index.d.ts.map} +1 -1
- package/package.json +2 -2
- package/dist/endpoints/src/cors/authority/audience/get-set-audiences.d.ts.map +0 -1
- package/dist/endpoints/src/cors/authority/jwt/validate-jwt-authorities.d.ts.map +0 -1
- package/dist/endpoints/src/cors/endpoints/authorities/validate-authorities-transaction.d.ts.map +0 -1
- package/dist/endpoints/src/cors/endpoints/helpers/validate-request-body.d.ts.map +0 -1
- package/dist/endpoints/src/cors/errors/all-error-handler.d.ts.map +0 -1
- package/dist/endpoints/src/cors/errors/bad-request-handler.d.ts.map +0 -1
- package/dist/endpoints/src/cors/errors/unauthorized-handler.d.ts.map +0 -1
- package/dist/endpoints/src/cors/index.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/authorities.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/events.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/functions.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/rules.routes.d.ts.map +0 -1
- package/dist/endpoints/src/cors/routes/share-data.routes.d.ts.map +0 -1
- package/dist/endpoints/src/examples/express-server/app.d.ts.map +0 -1
- package/dist/endpoints/src/examples/express-server/server.d.ts.map +0 -1
- package/dist/generic/src/_settings/authorization-settings.d.ts +0 -17
- package/dist/generic/src/_settings/authorization-settings.d.ts.map +0 -1
- package/dist/generic/src/_settings/authorization-settings.js +0 -20
- package/dist/generic/src/authorization/index.d.ts +0 -24
- package/dist/generic/src/authorization/index.d.ts.map +0 -1
- package/dist/generic/src/authorization/index.js +0 -61
- package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.d.ts +0 -9
- package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/keys/create-public-key-pem.js +0 -25
- package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.d.ts +0 -9
- package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/keys/create-secret-key-pem.js +0 -24
- package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.d.ts +0 -10
- package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/sign/create-authorization-issuer.js +0 -26
- package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.d.ts +0 -12
- package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/sign/create-authorization-subject.js +0 -19
- package/dist/generic/src/authorization/jwt/sign/create-jwt-options.d.ts +0 -17
- package/dist/generic/src/authorization/jwt/sign/create-jwt-options.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/sign/create-jwt-options.js +0 -43
- package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.d.ts +0 -13
- package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/sign/create-jwt-signed-token.js +0 -22
- package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts +0 -10
- package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/transform/transform-token-payload-to-safe-payload.js +0 -31
- package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.d.ts +0 -10
- package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-header.js +0 -20
- package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts +0 -9
- package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/verify/get-decoded-jwt-signed-token-payload.js +0 -17
- package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.d.ts +0 -12
- package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.d.ts.map +0 -1
- package/dist/generic/src/authorization/jwt/verify/verify-jwt-signed-token.js +0 -34
- package/dist/generic/src/authorization/safe/authorization/authorized-authorities.d.ts +0 -42
- package/dist/generic/src/authorization/safe/authorization/authorized-authorities.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/authorization/authorized-authorities.js +0 -65
- package/dist/generic/src/authorization/safe/request/decode-bearer-token.d.ts +0 -11
- package/dist/generic/src/authorization/safe/request/decode-bearer-token.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/request/decode-bearer-token.js +0 -31
- package/dist/generic/src/authorization/safe/request/decode-safe-request.d.ts +0 -11
- package/dist/generic/src/authorization/safe/request/decode-safe-request.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/request/decode-safe-request.js +0 -30
- package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.d.ts +0 -10
- package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/request/determine-issuer-from-request.js +0 -29
- package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +0 -12
- package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/request/issuer/determine-issuer-from-bearer-token.js +0 -30
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts +0 -10
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-audience.js +0 -24
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts +0 -8
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-expiration-time.js +0 -23
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts +0 -9
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issued-at-time.js +0 -24
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +0 -10
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-issuer.js +0 -25
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts +0 -8
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-not-before-time.js +0 -23
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +0 -10
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/payload/verify-authorization-subject.js +0 -22
- package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.d.ts +0 -9
- package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/verify-token-header.js +0 -25
- package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.d.ts +0 -11
- package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.d.ts.map +0 -1
- package/dist/generic/src/authorization/safe/validation/jwt/verify-token-payload.js +0 -30
- package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts +0 -20
- package/dist/generic/src/errors/audit-log/audit-log-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/audit-log/audit-log-errors.js +0 -31
- package/dist/generic/src/errors/authorization/authorization-errors.d.ts +0 -106
- package/dist/generic/src/errors/authorization/authorization-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/authorization/authorization-errors.js +0 -160
- package/dist/generic/src/errors/base-error.d.ts +0 -23
- package/dist/generic/src/errors/base-error.d.ts.map +0 -1
- package/dist/generic/src/errors/base-error.js +0 -34
- package/dist/generic/src/errors/database/database-errors.d.ts +0 -24
- package/dist/generic/src/errors/database/database-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/database/database-errors.js +0 -33
- package/dist/generic/src/errors/generic/generic-errors.d.ts +0 -35
- package/dist/generic/src/errors/generic/generic-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/generic/generic-errors.js +0 -47
- package/dist/generic/src/errors/index.d.ts +0 -10
- package/dist/generic/src/errors/index.d.ts.map +0 -1
- package/dist/generic/src/errors/index.js +0 -26
- package/dist/generic/src/errors/request/request-errors.d.ts +0 -98
- package/dist/generic/src/errors/request/request-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/request/request-errors.js +0 -134
- package/dist/generic/src/errors/safe/safe-rules-errors.d.ts +0 -102
- package/dist/generic/src/errors/safe/safe-rules-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/safe/safe-rules-errors.js +0 -152
- package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts +0 -8
- package/dist/generic/src/errors/scheduler/scheduler-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/scheduler/scheduler-errors.js +0 -14
- package/dist/generic/src/errors/share-data/share-data-errors.d.ts +0 -67
- package/dist/generic/src/errors/share-data/share-data-errors.d.ts.map +0 -1
- package/dist/generic/src/errors/share-data/share-data-errors.js +0 -92
- package/dist/generic/src/helpers/crypto/cryptography-helpers.d.ts +0 -37
- package/dist/generic/src/helpers/crypto/cryptography-helpers.d.ts.map +0 -1
- package/dist/generic/src/helpers/crypto/cryptography-helpers.js +0 -65
- package/dist/generic/src/helpers/object-validation-helpers.d.ts +0 -66
- package/dist/generic/src/helpers/object-validation-helpers.d.ts.map +0 -1
- package/dist/generic/src/helpers/object-validation-helpers.js +0 -254
- package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts +0 -87
- package/dist/generic/src/models/application/audit-log/application-audit-log-models.d.ts.map +0 -1
- package/dist/generic/src/models/application/audit-log/application-audit-log-models.js +0 -59
- package/dist/generic/src/models/application/database/firestore-models.d.ts +0 -84
- package/dist/generic/src/models/application/database/firestore-models.d.ts.map +0 -1
- package/dist/generic/src/models/application/database/firestore-models.js +0 -4
- package/dist/generic/src/models/authorization/authorization-models.d.ts +0 -81
- package/dist/generic/src/models/authorization/authorization-models.d.ts.map +0 -1
- package/dist/generic/src/models/authorization/authorization-models.js +0 -33
- package/dist/generic/src/models/crypto/crypto-models.d.ts +0 -5
- package/dist/generic/src/models/crypto/crypto-models.d.ts.map +0 -1
- package/dist/generic/src/models/crypto/crypto-models.js +0 -3
- package/dist/generic/src/models/data/data-models.d.ts +0 -24
- package/dist/generic/src/models/data/data-models.d.ts.map +0 -1
- package/dist/generic/src/models/data/data-models.js +0 -3
- package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts +0 -9
- package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.d.ts.map +0 -1
- package/dist/generic/src/models/dynamic-execution/dynamic-execution-models.js +0 -2
- package/dist/generic/src/models/events/share-event-models.d.ts +0 -65
- package/dist/generic/src/models/events/share-event-models.d.ts.map +0 -1
- package/dist/generic/src/models/events/share-event-models.js +0 -70
- package/dist/generic/src/models/functions/share-data-function-models.d.ts +0 -86
- package/dist/generic/src/models/functions/share-data-function-models.d.ts.map +0 -1
- package/dist/generic/src/models/functions/share-data-function-models.js +0 -17
- package/dist/generic/src/models/generic/request-response-models.d.ts +0 -8
- package/dist/generic/src/models/generic/request-response-models.d.ts.map +0 -1
- package/dist/generic/src/models/generic/request-response-models.js +0 -2
- package/dist/generic/src/models/index.d.ts +0 -13
- package/dist/generic/src/models/index.d.ts.map +0 -1
- package/dist/generic/src/models/index.js +0 -29
- package/dist/generic/src/models/rules/share-rule-models.d.ts +0 -303
- package/dist/generic/src/models/rules/share-rule-models.d.ts.map +0 -1
- package/dist/generic/src/models/rules/share-rule-models.js +0 -93
- package/dist/generic/src/models/safe/safe-transaction-models.d.ts +0 -81
- package/dist/generic/src/models/safe/safe-transaction-models.d.ts.map +0 -1
- package/dist/generic/src/models/safe/safe-transaction-models.js +0 -26
- package/dist/generic/src/models/share-data/share-data.d.ts +0 -56
- package/dist/generic/src/models/share-data/share-data.d.ts.map +0 -1
- package/dist/generic/src/models/share-data/share-data.js +0 -20
- /package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/authority/audience/get-set-audiences.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/authority/jwt/validate-jwt-authorities.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/authorities/validate-authorities-transaction.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/endpoints/helpers/validate-request-body.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/all-error-handler.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/bad-request-handler.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/errors/unauthorized-handler.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/index.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/index.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/authorities.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/events.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/events.routes.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/functions.routes.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/rules.routes.js +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.d.ts +0 -0
- /package/dist/{endpoints/src/cors → cors}/routes/share-data.routes.js +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/app.d.ts +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/server.d.ts +0 -0
- /package/dist/{endpoints/src/examples → examples}/express-server/server.js +0 -0
- /package/dist/{endpoints/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{endpoints/src/index.js → index.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application-audit-log-models.d.ts","sourceRoot":"","sources":["../../../../../../../generic/src/models/application/audit-log/application-audit-log-models.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAIH,MAAM,MAAM,oBAAoB,GAAG,gCAAgC,CAAC;AACpE;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,qBAAqB,EAAE,iCAAiC,EAAE,CAAC;IAC3D,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iCAAiC;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,oBAAY,yBAAyB;IACjC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED;;GAEG;AACH,oBAAY,uBAAuB;IAC/B,mBAAmB,wBAAwB,CAAE,qCAAqC;IAClF,MAAM,WAAW;CACpB;AAKD;;GAEG;AACH,oBAAY,2BAA2B;IACnC,gBAAgB,qBAAqB;CACxC;AAMD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACzC;AAMD;;GAEG;AAEH,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,GAAG,mBAAmB,GAAG,yBAAyB,GAClH,2BAA2B,CAAC;AAIlC;;GAEG;AACH,oBAAY,6BAA6B;IACrC,aAAa,kBAAkB;CAClC;AAMD;;GAEG;AACH,oBAAY,mBAAmB;IAC3B,OAAO,YAAY;CACtB;AAMD;;GAEG;AACH,oBAAY,yBAAyB;IACjC,kBAAkB,uBAAuB;CAC5C"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.PublicDataAuditLogSubType = exports.UserAuditLogSubType = exports.AdministrationAuditLogSubType = exports.MultiplePathAuditLogSubType = exports.ApplicationAuditLogType = exports.ApplicationAuditLogAction = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* This contains the enum for the audit log actions.
|
|
7
|
-
*/
|
|
8
|
-
var ApplicationAuditLogAction;
|
|
9
|
-
(function (ApplicationAuditLogAction) {
|
|
10
|
-
ApplicationAuditLogAction["create"] = "create";
|
|
11
|
-
ApplicationAuditLogAction["update"] = "update";
|
|
12
|
-
ApplicationAuditLogAction["delete"] = "delete";
|
|
13
|
-
ApplicationAuditLogAction["read"] = "read";
|
|
14
|
-
ApplicationAuditLogAction["list"] = "list";
|
|
15
|
-
ApplicationAuditLogAction["file"] = "file";
|
|
16
|
-
})(ApplicationAuditLogAction || (exports.ApplicationAuditLogAction = ApplicationAuditLogAction = {}));
|
|
17
|
-
/**
|
|
18
|
-
* This contains the model for the audit logs that are generated in the system.
|
|
19
|
-
*/
|
|
20
|
-
var ApplicationAuditLogType;
|
|
21
|
-
(function (ApplicationAuditLogType) {
|
|
22
|
-
ApplicationAuditLogType["authorizedAuthority"] = "authorizedAuthority";
|
|
23
|
-
ApplicationAuditLogType["global"] = "global";
|
|
24
|
-
})(ApplicationAuditLogType || (exports.ApplicationAuditLogType = ApplicationAuditLogType = {}));
|
|
25
|
-
//#region Multiple Path Audit Log Types
|
|
26
|
-
/**
|
|
27
|
-
* This contains the enum for the audit log sub types for the multiple path classes.
|
|
28
|
-
*/
|
|
29
|
-
var MultiplePathAuditLogSubType;
|
|
30
|
-
(function (MultiplePathAuditLogSubType) {
|
|
31
|
-
MultiplePathAuditLogSubType["multiplePathALAI"] = "multiplePathALAI";
|
|
32
|
-
})(MultiplePathAuditLogSubType || (exports.MultiplePathAuditLogSubType = MultiplePathAuditLogSubType = {}));
|
|
33
|
-
//#region Administration Audit Log Types
|
|
34
|
-
/**
|
|
35
|
-
* This contains the enum for the audit log sub types for the administrator classes.
|
|
36
|
-
*/
|
|
37
|
-
var AdministrationAuditLogSubType;
|
|
38
|
-
(function (AdministrationAuditLogSubType) {
|
|
39
|
-
AdministrationAuditLogSubType["administrator"] = "administrator";
|
|
40
|
-
})(AdministrationAuditLogSubType || (exports.AdministrationAuditLogSubType = AdministrationAuditLogSubType = {}));
|
|
41
|
-
// #endregion Administration Audit Log Types
|
|
42
|
-
//#region User Audit Log Types
|
|
43
|
-
/**
|
|
44
|
-
* This contains the enum for the audit log sub types for the user classes.
|
|
45
|
-
*/
|
|
46
|
-
var UserAuditLogSubType;
|
|
47
|
-
(function (UserAuditLogSubType) {
|
|
48
|
-
UserAuditLogSubType["profile"] = "profile";
|
|
49
|
-
})(UserAuditLogSubType || (exports.UserAuditLogSubType = UserAuditLogSubType = {}));
|
|
50
|
-
//#endregion User Audit Log Types
|
|
51
|
-
//#region Public Data audit log types
|
|
52
|
-
/**
|
|
53
|
-
* This contains the enum for the audit log sub types for the public data classes.
|
|
54
|
-
*/
|
|
55
|
-
var PublicDataAuditLogSubType;
|
|
56
|
-
(function (PublicDataAuditLogSubType) {
|
|
57
|
-
PublicDataAuditLogSubType["userRelatedProfile"] = "userRelatedProfile";
|
|
58
|
-
})(PublicDataAuditLogSubType || (exports.PublicDataAuditLogSubType = PublicDataAuditLogSubType = {}));
|
|
59
|
-
//#endregion Public Data audit log types
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { CollectionReference, DocumentReference } from 'firebase-admin/firestore';
|
|
2
|
-
import * as admin from 'firebase-admin';
|
|
3
|
-
import { IAdditionalApplicationAuditLogIds, ApplicationAuditLogSubType, IApplicationAuditLog } from '../audit-log/application-audit-log-models';
|
|
4
|
-
/**
|
|
5
|
-
* This contains the information that is needed to pass a change to the generic database functions.
|
|
6
|
-
*/
|
|
7
|
-
export interface IDatabaseChangeInformation {
|
|
8
|
-
alai: IAdditionalApplicationAuditLogIds[];
|
|
9
|
-
auditLogSubType: ApplicationAuditLogSubType;
|
|
10
|
-
item: unknown;
|
|
11
|
-
itemDocRef: DocumentReference;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* This contains the information that is needed to pass a change to the generic database functions.
|
|
15
|
-
* It allows for a property of an object to be retrieved and updated without needing the original
|
|
16
|
-
* object when called.
|
|
17
|
-
*/
|
|
18
|
-
export interface IDatabasePropertyChangeInformation {
|
|
19
|
-
alai: IAdditionalApplicationAuditLogIds[];
|
|
20
|
-
auditLogSubType: ApplicationAuditLogSubType;
|
|
21
|
-
partialObjectUpdate: any;
|
|
22
|
-
itemDocRef: DocumentReference;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* This contains the information records and audit logs for database changes
|
|
26
|
-
*/
|
|
27
|
-
export interface IDatabaseUpdates {
|
|
28
|
-
recordsandRefs: IDatabaseRecordAndRef[];
|
|
29
|
-
auditLogInfo: IApplicationAuditLog;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* This contains the database record and document reference to update.
|
|
33
|
-
*/
|
|
34
|
-
export interface IDatabaseRecordAndRef {
|
|
35
|
-
record: unknown;
|
|
36
|
-
recordDocRef: DocumentReference;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* This contains the information to get a single item from the database.
|
|
40
|
-
*/
|
|
41
|
-
export interface IDatabaseGetItem extends IDatabaseAuditLogUpdates {
|
|
42
|
-
itemDocRef: DocumentReference;
|
|
43
|
-
throwErrorOnNotFound: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* This contains the information that is needed to get multiple items from the database.
|
|
47
|
-
*/
|
|
48
|
-
export interface IDatabaseGetInformation extends IDatabaseAuditLogUpdates {
|
|
49
|
-
itemColRef: CollectionReference;
|
|
50
|
-
lastId: string;
|
|
51
|
-
orderBy?: IDatabaseOrderBy;
|
|
52
|
-
queryFields: IDatabaseQueryFields[];
|
|
53
|
-
isMaxSizeDocumentSet?: boolean;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* This contains the information that is needed to get information from the database.
|
|
57
|
-
*/
|
|
58
|
-
export interface IDatabaseOrderBy {
|
|
59
|
-
fieldPath: string | admin.firestore.FieldPath;
|
|
60
|
-
direction: admin.firestore.OrderByDirection;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* This contains the query information for the database if it is required
|
|
64
|
-
*/
|
|
65
|
-
export interface IDatabaseQueryFields {
|
|
66
|
-
fieldPath: string | admin.firestore.FieldPath;
|
|
67
|
-
opStr: admin.firestore.WhereFilterOp;
|
|
68
|
-
value: any;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* This contains the information to delete a single item from the database.
|
|
72
|
-
*/
|
|
73
|
-
export interface IDatabaseDeleteItem extends IDatabaseAuditLogUpdates {
|
|
74
|
-
itemDocRef: DocumentReference;
|
|
75
|
-
throwErrorOnNotFound: boolean;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* This contains the additional information audit logs.
|
|
79
|
-
*/
|
|
80
|
-
export interface IDatabaseAuditLogUpdates {
|
|
81
|
-
alai: IAdditionalApplicationAuditLogIds[];
|
|
82
|
-
auditLogSubType: ApplicationAuditLogSubType;
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=firestore-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firestore-models.d.ts","sourceRoot":"","sources":["../../../../../../../generic/src/models/application/database/firestore-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACH,iCAAiC,EACjC,0BAA0B,EAC1B,oBAAoB,EACvB,MAAM,2CAA2C,CAAC;AAMnD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,eAAe,EAAE,0BAA0B,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,iBAAiB,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,eAAe,EAAE,0BAA0B,CAAC;IAE5C,mBAAmB,EAAE,GAAG,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,cAAc,EAAE,qBAAqB,EAAE,CAAC;IACxC,YAAY,EAAE,oBAAoB,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,iBAAiB,CAAC;CACnC;AAMD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB;IAC9D,UAAU,EAAE,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACrE,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAC9C,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAC9C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAErC,KAAK,EAAE,GAAG,CAAC;CACd;AAMD;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACjE,UAAU,EAAE,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAMD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,eAAe,EAAE,0BAA0B,CAAC;CAC/C"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the authorities that can be validated with incoming requests.
|
|
3
|
-
* it is AuthorityName Declaration-with ending of the original hex version of the publickey, publickey for the authority
|
|
4
|
-
*/
|
|
5
|
-
export type IJWTAuthority = Map<IAuthorizationIssuer, string>;
|
|
6
|
-
/**
|
|
7
|
-
* This contains the types of validation that can be done on the authority.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum AuthorityValidationType {
|
|
10
|
-
JWT = "jwt"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* This is the payload for the jwt.
|
|
14
|
-
*/
|
|
15
|
-
export interface IAuthorizationPayload {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* This is the header for the jwt.
|
|
20
|
-
*/
|
|
21
|
-
export interface IAuthorizationHeader {
|
|
22
|
-
alg: string;
|
|
23
|
-
typ: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* This is the audience that the jwt is intended for.
|
|
27
|
-
*/
|
|
28
|
-
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"
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* This contains the start of the subject for the authorization subject
|
|
38
|
-
*/
|
|
39
|
-
export declare enum AuthorizationSubjectStart {
|
|
40
|
-
USER = "user",
|
|
41
|
-
SAFE_NETWORK = "safe-network"
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* This type represents the formatted authorization subject.
|
|
45
|
-
*/
|
|
46
|
-
export type IAuthorizationSubject = `${AuthorizationSubjectStart}:${string}`;
|
|
47
|
-
/**
|
|
48
|
-
* This is the issuer of the token.
|
|
49
|
-
*/
|
|
50
|
-
export type IAuthorizationIssuer = `${string}-${string}`;
|
|
51
|
-
/**
|
|
52
|
-
* Any custom network claims that are added to the token.
|
|
53
|
-
*/
|
|
54
|
-
export interface ICustomClaims {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* This interface represents the valid safe token payload (after deconstructing the jwt token).
|
|
59
|
-
*/
|
|
60
|
-
export interface IValidSafeTokenPayload {
|
|
61
|
-
[key: string]: any;
|
|
62
|
-
aud: AuthorizationAudience;
|
|
63
|
-
exp: number;
|
|
64
|
-
iat: number;
|
|
65
|
-
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;
|
|
74
|
-
aud: AuthorizationAudience;
|
|
75
|
-
exp: number;
|
|
76
|
-
iat: number;
|
|
77
|
-
nbf: number;
|
|
78
|
-
sub: IAuthorizationSubject;
|
|
79
|
-
iss: IAuthorizationIssuer;
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=authorization-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/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,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file contains the models for the authorization.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AuthorizationSubjectStart = exports.AuthorizationAudience = exports.AuthorityValidationType = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* This contains the types of validation that can be done on the authority.
|
|
7
|
-
*/
|
|
8
|
-
var AuthorityValidationType;
|
|
9
|
-
(function (AuthorityValidationType) {
|
|
10
|
-
AuthorityValidationType["JWT"] = "jwt";
|
|
11
|
-
})(AuthorityValidationType || (exports.AuthorityValidationType = AuthorityValidationType = {}));
|
|
12
|
-
/**
|
|
13
|
-
* This is the audience that the jwt is intended for.
|
|
14
|
-
*/
|
|
15
|
-
var AuthorizationAudience;
|
|
16
|
-
(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";
|
|
23
|
-
})(AuthorizationAudience || (exports.AuthorizationAudience = AuthorizationAudience = {}));
|
|
24
|
-
/**
|
|
25
|
-
* This contains the start of the subject for the authorization subject
|
|
26
|
-
*/
|
|
27
|
-
var AuthorizationSubjectStart;
|
|
28
|
-
(function (AuthorizationSubjectStart) {
|
|
29
|
-
AuthorizationSubjectStart["USER"] = "user";
|
|
30
|
-
AuthorizationSubjectStart["SAFE_NETWORK"] = "safe-network";
|
|
31
|
-
})(AuthorizationSubjectStart || (exports.AuthorizationSubjectStart = AuthorizationSubjectStart = {}));
|
|
32
|
-
//#region jwt header models
|
|
33
|
-
//#endregion jwt models
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crypto-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/crypto/crypto-models.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This contains the minimum information that is needed on a data record.
|
|
3
|
-
*/
|
|
4
|
-
export interface IGenericData {
|
|
5
|
-
createdAt: number;
|
|
6
|
-
createdBy: string;
|
|
7
|
-
updatedAt: number;
|
|
8
|
-
updatedBy: string;
|
|
9
|
-
versionNumber: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* This contains the data for an item with a searchable index.
|
|
13
|
-
* for the word 'found' this object would look like this:
|
|
14
|
-
* {
|
|
15
|
-
* f: true,
|
|
16
|
-
* fo: true,
|
|
17
|
-
* fou: true,
|
|
18
|
-
* foun: true,
|
|
19
|
-
* found: true,
|
|
20
|
-
*/
|
|
21
|
-
export interface ISearchableIndex {
|
|
22
|
-
[key: string]: true;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=data-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-execution-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/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,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This contains the interfaces for all event data types that can be run on the network.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* This is the types of events that can be run on the network.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ShareEventType {
|
|
8
|
-
Application = "Application",
|
|
9
|
-
DataChange = "DataChange",
|
|
10
|
-
Scheduled = "Scheduled"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* All sources of event trusts
|
|
14
|
-
*/
|
|
15
|
-
export declare enum EventSourceTruthType {
|
|
16
|
-
Crypto = "Crypto",
|
|
17
|
-
Oauth = "Oauth",
|
|
18
|
-
ShareBlock = "ShareBlock"
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* All the types of proofs that can be sent from the sources of event execution truths.
|
|
22
|
-
*/
|
|
23
|
-
export declare enum EventSourceTruthProofType {
|
|
24
|
-
Hash = "Hash",
|
|
25
|
-
Signature = "Signature"
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* This is the type of processing that can be done on the share data event.
|
|
29
|
-
*/
|
|
30
|
-
export declare enum ShareDataEventProcessingType {
|
|
31
|
-
Parallel = "parallel",
|
|
32
|
-
Linear = "linear"
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* This is the interface for the share data event.
|
|
36
|
-
*/
|
|
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
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* This is the interface for the share data event.
|
|
51
|
-
*/
|
|
52
|
-
export interface IShareDataEvent {
|
|
53
|
-
shareData: IShareDataAndFunctionEvent[];
|
|
54
|
-
processingType: ShareDataEventProcessingType;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* This is all data that is required to find the sharedata and function to execute.
|
|
58
|
-
*/
|
|
59
|
-
export interface IShareDataAndFunctionEvent {
|
|
60
|
-
shareDataId: string;
|
|
61
|
-
functionId: string;
|
|
62
|
-
shareDataInputs: string[];
|
|
63
|
-
inputs: any;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=share-event-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"share-event-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/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,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This contains the interfaces for all event data types that can be run on the network.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ShareDataEventProcessingType = exports.EventSourceTruthProofType = exports.EventSourceTruthType = exports.ShareEventType = void 0;
|
|
7
|
-
//#region Share Event Data Enums
|
|
8
|
-
/**
|
|
9
|
-
* This is the types of events that can be run on the network.
|
|
10
|
-
*/
|
|
11
|
-
var ShareEventType;
|
|
12
|
-
(function (ShareEventType) {
|
|
13
|
-
ShareEventType["Application"] = "Application";
|
|
14
|
-
ShareEventType["DataChange"] = "DataChange";
|
|
15
|
-
ShareEventType["Scheduled"] = "Scheduled";
|
|
16
|
-
})(ShareEventType || (exports.ShareEventType = ShareEventType = {}));
|
|
17
|
-
/**
|
|
18
|
-
* All sources of event trusts
|
|
19
|
-
*/
|
|
20
|
-
var EventSourceTruthType;
|
|
21
|
-
(function (EventSourceTruthType) {
|
|
22
|
-
EventSourceTruthType["Crypto"] = "Crypto";
|
|
23
|
-
EventSourceTruthType["Oauth"] = "Oauth";
|
|
24
|
-
EventSourceTruthType["ShareBlock"] = "ShareBlock";
|
|
25
|
-
})(EventSourceTruthType || (exports.EventSourceTruthType = EventSourceTruthType = {}));
|
|
26
|
-
/**
|
|
27
|
-
* All the types of proofs that can be sent from the sources of event execution truths.
|
|
28
|
-
*/
|
|
29
|
-
var EventSourceTruthProofType;
|
|
30
|
-
(function (EventSourceTruthProofType) {
|
|
31
|
-
EventSourceTruthProofType["Hash"] = "Hash";
|
|
32
|
-
EventSourceTruthProofType["Signature"] = "Signature";
|
|
33
|
-
})(EventSourceTruthProofType || (exports.EventSourceTruthProofType = EventSourceTruthProofType = {}));
|
|
34
|
-
/**
|
|
35
|
-
* This is the type of processing that can be done on the share data event.
|
|
36
|
-
*/
|
|
37
|
-
var ShareDataEventProcessingType;
|
|
38
|
-
(function (ShareDataEventProcessingType) {
|
|
39
|
-
ShareDataEventProcessingType["Parallel"] = "parallel";
|
|
40
|
-
ShareDataEventProcessingType["Linear"] = "linear";
|
|
41
|
-
})(ShareDataEventProcessingType || (exports.ShareDataEventProcessingType = ShareDataEventProcessingType = {}));
|
|
42
|
-
// const applicationEvent: ShareDataEvent = {
|
|
43
|
-
// eventId: 'appEvent123',
|
|
44
|
-
// eventType: 'Application',
|
|
45
|
-
// eventSource: 'API',
|
|
46
|
-
// triggerCondition: () => true, // Always triggers for demonstration purposes
|
|
47
|
-
// shareDataEventInformation: [
|
|
48
|
-
// {
|
|
49
|
-
// shareData: [
|
|
50
|
-
// { shareDataId: shareDataIds[0], functionId: 'funcA', shareDataInputs: ['financial.principal', 'financial.time'], inputs: { rate: 0.45 } },
|
|
51
|
-
// { shareDataId: 'data2', functionId: 'funcB', shareDataInputs: {}, inputs: { rate: 0.45 } },
|
|
52
|
-
// { shareDataId: 'data3', functionId: 'funcC' },
|
|
53
|
-
// ],
|
|
54
|
-
// processingType: 'parallel', // Process in parallel
|
|
55
|
-
// },
|
|
56
|
-
// {
|
|
57
|
-
// shareData: [
|
|
58
|
-
// { shareDataId: 'data3', functionId: 'funcC' },
|
|
59
|
-
// { shareDataId: 'data4', functionId: 'funcD' },
|
|
60
|
-
// { shareDataId: 'data3', functionId: 'funcE' },
|
|
61
|
-
// ],
|
|
62
|
-
// processingType: 'linear', // Process in linear order
|
|
63
|
-
// },
|
|
64
|
-
// ],
|
|
65
|
-
// eventContext: {
|
|
66
|
-
// user: 'john_doe',
|
|
67
|
-
// timestamp: new Date().toISOString(),
|
|
68
|
-
// },
|
|
69
|
-
// };
|
|
70
|
-
// shareDataIds[0],
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This contains the data for the sahre functions
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* This is the incoming object for the share functions.
|
|
6
|
-
*/
|
|
7
|
-
export interface ITargetObject {
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* This contains all the proof types that exist for the network.
|
|
12
|
-
*/
|
|
13
|
-
export declare enum INetworkProofType {
|
|
14
|
-
CRYPTOGRAPHIC_SIGNATURE = "CRYPTOGRAPHIC_SIGNATURE"
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* This contains the network proof for the share data network functions.
|
|
18
|
-
*/
|
|
19
|
-
export type INetworkProof = ICryptographicSignatureProof;
|
|
20
|
-
/**
|
|
21
|
-
* This contains the cryptographic signature proof for the share data network functions.
|
|
22
|
-
*/
|
|
23
|
-
export interface ICryptographicSignatureProof {
|
|
24
|
-
publicKey: string;
|
|
25
|
-
signature: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* This contains the data for a share data network function without the signature
|
|
29
|
-
*/
|
|
30
|
-
export interface IShareDataFunctionBasic {
|
|
31
|
-
createdAt: number;
|
|
32
|
-
previousHash: string;
|
|
33
|
-
stringifiedFunction: string;
|
|
34
|
-
currentHash: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* This contains the data for a share data network function.
|
|
38
|
-
*/
|
|
39
|
-
export interface IShareDataFunction extends IShareDataFunctionBasic {
|
|
40
|
-
proof: INetworkProof;
|
|
41
|
-
proofType: INetworkProofType;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* This contains a share data network function
|
|
45
|
-
*/
|
|
46
|
-
export interface IShareDataNetworkFunction {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
description: string;
|
|
50
|
-
shareDataFunctions: IShareDataFunction[];
|
|
51
|
-
proof: INetworkProof;
|
|
52
|
-
proofType: INetworkProofType;
|
|
53
|
-
}
|
|
54
|
-
export interface IShareDataNetworkFunctionDescriptor {
|
|
55
|
-
functionNumber: number;
|
|
56
|
-
name: string;
|
|
57
|
-
description: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* This contains the data for a share data network rule that is the basic shape.
|
|
61
|
-
*/
|
|
62
|
-
export interface IShareDataRuleBasic {
|
|
63
|
-
createdAt: number;
|
|
64
|
-
previousHash: string;
|
|
65
|
-
stringifiedRule: string;
|
|
66
|
-
currentHash: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* This contains the interface for a share function record in the share data object
|
|
70
|
-
*/
|
|
71
|
-
export interface IShareDataNetworkRule {
|
|
72
|
-
id: string;
|
|
73
|
-
shareDataRules: IShareDataRule[];
|
|
74
|
-
applicationId: string;
|
|
75
|
-
applicationIdProof: string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* This contains the data for a share data network rule.
|
|
79
|
-
*/
|
|
80
|
-
export interface IShareDataRule {
|
|
81
|
-
createdAt: number;
|
|
82
|
-
previousHash: string;
|
|
83
|
-
stringifiedRule: string;
|
|
84
|
-
currentHash: string;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=share-data-function-models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"share-data-function-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/functions/share-data-function-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,oBAAY,iBAAiB;IACzB,uBAAuB,4BAA4B;CACtD;AACD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,4BAA4B,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;IAC/D,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;CAChC;AAED,MAAM,WAAW,mCAAmC;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACvB;AAGD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This contains the data for the sahre functions
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.INetworkProofType = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* This contains all the proof types that exist for the network.
|
|
9
|
-
*/
|
|
10
|
-
var INetworkProofType;
|
|
11
|
-
(function (INetworkProofType) {
|
|
12
|
-
INetworkProofType["CRYPTOGRAPHIC_SIGNATURE"] = "CRYPTOGRAPHIC_SIGNATURE";
|
|
13
|
-
})(INetworkProofType || (exports.INetworkProofType = INetworkProofType = {}));
|
|
14
|
-
/// Use of user defined function in the share data
|
|
15
|
-
/// Storage / Retrieval of the user defined functions in the network. (logic library)
|
|
16
|
-
// Use of user defined rules in the share data (product)
|
|
17
|
-
// Storage / Retrieval of the user defined rules in the network. (logic library)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-response-models.d.ts","sourceRoot":"","sources":["../../../../../../generic/src/models/generic/request-response-models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './application/audit-log/application-audit-log-models';
|
|
2
|
-
export * from './application/database/firestore-models';
|
|
3
|
-
export * from './authorization/authorization-models';
|
|
4
|
-
export * from './crypto/crypto-models';
|
|
5
|
-
export * from './data/data-models';
|
|
6
|
-
export * from './dynamic-execution/dynamic-execution-models';
|
|
7
|
-
export * from './events/share-event-models';
|
|
8
|
-
export * from './functions/share-data-function-models';
|
|
9
|
-
export * from './generic/request-response-models';
|
|
10
|
-
export * from './rules/share-rule-models';
|
|
11
|
-
export * from './safe/safe-transaction-models';
|
|
12
|
-
export * from './share-data/share-data';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../generic/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC"}
|