@enbox/dwn-sdk-js 0.3.7 → 0.3.9
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/browser.mjs +8 -8
- package/dist/browser.mjs.map +4 -4
- package/dist/esm/generated/precompiled-validators.js +2591 -1435
- package/dist/esm/generated/precompiled-validators.js.map +1 -1
- package/dist/esm/src/core/constants.js +20 -0
- package/dist/esm/src/core/constants.js.map +1 -1
- package/dist/esm/src/core/dwn-error.js +24 -1
- package/dist/esm/src/core/dwn-error.js.map +1 -1
- package/dist/esm/src/core/grant-authorization.js +4 -4
- package/dist/esm/src/core/grant-authorization.js.map +1 -1
- package/dist/esm/src/core/message.js +89 -4
- package/dist/esm/src/core/message.js.map +1 -1
- package/dist/esm/src/core/messages-grant-authorization.js +147 -55
- package/dist/esm/src/core/messages-grant-authorization.js.map +1 -1
- package/dist/esm/src/core/protocol-authorization.js +76 -0
- package/dist/esm/src/core/protocol-authorization.js.map +1 -1
- package/dist/esm/src/core/records-grant-authorization.js +40 -15
- package/dist/esm/src/core/records-grant-authorization.js.map +1 -1
- package/dist/esm/src/handlers/messages-read.js +5 -5
- package/dist/esm/src/handlers/messages-read.js.map +1 -1
- package/dist/esm/src/handlers/messages-subscribe.js +109 -7
- package/dist/esm/src/handlers/messages-subscribe.js.map +1 -1
- package/dist/esm/src/handlers/messages-sync.js +341 -96
- package/dist/esm/src/handlers/messages-sync.js.map +1 -1
- package/dist/esm/src/handlers/protocols-configure.js +81 -2
- package/dist/esm/src/handlers/protocols-configure.js.map +1 -1
- package/dist/esm/src/handlers/records-count.js +30 -0
- package/dist/esm/src/handlers/records-count.js.map +1 -1
- package/dist/esm/src/handlers/records-delete.js +3 -2
- package/dist/esm/src/handlers/records-delete.js.map +1 -1
- package/dist/esm/src/handlers/records-query.js +30 -0
- package/dist/esm/src/handlers/records-query.js.map +1 -1
- package/dist/esm/src/handlers/records-read.js +3 -2
- package/dist/esm/src/handlers/records-read.js.map +1 -1
- package/dist/esm/src/handlers/records-subscribe.js +31 -0
- package/dist/esm/src/handlers/records-subscribe.js.map +1 -1
- package/dist/esm/src/handlers/records-write.js +21 -14
- package/dist/esm/src/handlers/records-write.js.map +1 -1
- package/dist/esm/src/index.js +2 -0
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/interfaces/messages-read.js +6 -3
- package/dist/esm/src/interfaces/messages-read.js.map +1 -1
- package/dist/esm/src/interfaces/messages-subscribe.js +6 -3
- package/dist/esm/src/interfaces/messages-subscribe.js.map +1 -1
- package/dist/esm/src/interfaces/messages-sync.js +17 -3
- package/dist/esm/src/interfaces/messages-sync.js.map +1 -1
- package/dist/esm/src/interfaces/protocols-configure.js +5 -2
- package/dist/esm/src/interfaces/protocols-configure.js.map +1 -1
- package/dist/esm/src/interfaces/protocols-query.js +8 -4
- package/dist/esm/src/interfaces/protocols-query.js.map +1 -1
- package/dist/esm/src/interfaces/records-count.js +5 -0
- package/dist/esm/src/interfaces/records-count.js.map +1 -1
- package/dist/esm/src/interfaces/records-delete.js +6 -2
- package/dist/esm/src/interfaces/records-delete.js.map +1 -1
- package/dist/esm/src/interfaces/records-query.js +5 -0
- package/dist/esm/src/interfaces/records-query.js.map +1 -1
- package/dist/esm/src/interfaces/records-read.js +6 -3
- package/dist/esm/src/interfaces/records-read.js.map +1 -1
- package/dist/esm/src/interfaces/records-subscribe.js +5 -0
- package/dist/esm/src/interfaces/records-subscribe.js.map +1 -1
- package/dist/esm/src/interfaces/records-write.js +6 -3
- package/dist/esm/src/interfaces/records-write.js.map +1 -1
- package/dist/esm/src/protocols/permissions.js +28 -7
- package/dist/esm/src/protocols/permissions.js.map +1 -1
- package/dist/esm/src/sync/records-projection.js +228 -0
- package/dist/esm/src/sync/records-projection.js.map +1 -0
- package/dist/esm/src/types/message-types.js.map +1 -1
- package/dist/esm/src/types/permission-types.js.map +1 -1
- package/dist/esm/src/utils/permission-scope.js +37 -0
- package/dist/esm/src/utils/permission-scope.js.map +1 -0
- package/dist/esm/tests/core/grant-authorization.spec.js +26 -3
- package/dist/esm/tests/core/grant-authorization.spec.js.map +1 -1
- package/dist/esm/tests/core/records-grant-authorization.spec.js +117 -0
- package/dist/esm/tests/core/records-grant-authorization.spec.js.map +1 -0
- package/dist/esm/tests/features/permissions.spec.js +126 -0
- package/dist/esm/tests/features/permissions.spec.js.map +1 -1
- package/dist/esm/tests/features/records-record-limit.spec.js +14 -0
- package/dist/esm/tests/features/records-record-limit.spec.js.map +1 -1
- package/dist/esm/tests/handlers/messages-read.spec.js +345 -12
- package/dist/esm/tests/handlers/messages-read.spec.js.map +1 -1
- package/dist/esm/tests/handlers/messages-subscribe.spec.js +326 -9
- package/dist/esm/tests/handlers/messages-subscribe.spec.js.map +1 -1
- package/dist/esm/tests/handlers/messages-sync.spec.js +1053 -7
- package/dist/esm/tests/handlers/messages-sync.spec.js.map +1 -1
- package/dist/esm/tests/handlers/protocols-configure.spec.js +361 -0
- package/dist/esm/tests/handlers/protocols-configure.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-count.spec.js +75 -2
- package/dist/esm/tests/handlers/records-count.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-query.spec.js +73 -0
- package/dist/esm/tests/handlers/records-query.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-subscribe.spec.js +75 -1
- package/dist/esm/tests/handlers/records-subscribe.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-write.spec.js +41 -0
- package/dist/esm/tests/handlers/records-write.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/messages-get.spec.js +107 -5
- package/dist/esm/tests/interfaces/messages-get.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/protocols-configure.spec.js +13 -0
- package/dist/esm/tests/interfaces/protocols-configure.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/records-delete.spec.js +12 -0
- package/dist/esm/tests/interfaces/records-delete.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/records-query.spec.js +10 -0
- package/dist/esm/tests/interfaces/records-query.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/records-subscribe.spec.js +10 -0
- package/dist/esm/tests/interfaces/records-subscribe.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/records-write.spec.js +33 -0
- package/dist/esm/tests/interfaces/records-write.spec.js.map +1 -1
- package/dist/esm/tests/sync/records-projection.spec.js +245 -0
- package/dist/esm/tests/sync/records-projection.spec.js.map +1 -0
- package/dist/esm/tests/test-suite.js +2 -0
- package/dist/esm/tests/test-suite.js.map +1 -1
- package/dist/esm/tests/utils/permission-scope.spec.js +66 -0
- package/dist/esm/tests/utils/permission-scope.spec.js.map +1 -0
- package/dist/esm/tests/utils/test-data-generator.js +5 -2
- package/dist/esm/tests/utils/test-data-generator.js.map +1 -1
- package/dist/types/generated/precompiled-validators.d.ts.map +1 -1
- package/dist/types/src/core/constants.d.ts +13 -0
- package/dist/types/src/core/constants.d.ts.map +1 -1
- package/dist/types/src/core/dwn-error.d.ts +24 -1
- package/dist/types/src/core/dwn-error.d.ts.map +1 -1
- package/dist/types/src/core/grant-authorization.d.ts +1 -2
- package/dist/types/src/core/grant-authorization.d.ts.map +1 -1
- package/dist/types/src/core/message.d.ts +41 -1
- package/dist/types/src/core/message.d.ts.map +1 -1
- package/dist/types/src/core/messages-grant-authorization.d.ts +36 -4
- package/dist/types/src/core/messages-grant-authorization.d.ts.map +1 -1
- package/dist/types/src/core/protocol-authorization.d.ts +12 -0
- package/dist/types/src/core/protocol-authorization.d.ts.map +1 -1
- package/dist/types/src/core/records-grant-authorization.d.ts +6 -0
- package/dist/types/src/core/records-grant-authorization.d.ts.map +1 -1
- package/dist/types/src/handlers/messages-read.d.ts.map +1 -1
- package/dist/types/src/handlers/messages-subscribe.d.ts +2 -1
- package/dist/types/src/handlers/messages-subscribe.d.ts.map +1 -1
- package/dist/types/src/handlers/messages-sync.d.ts +31 -0
- package/dist/types/src/handlers/messages-sync.d.ts.map +1 -1
- package/dist/types/src/handlers/protocols-configure.d.ts +3 -0
- package/dist/types/src/handlers/protocols-configure.d.ts.map +1 -1
- package/dist/types/src/handlers/records-count.d.ts +4 -0
- package/dist/types/src/handlers/records-count.d.ts.map +1 -1
- package/dist/types/src/handlers/records-delete.d.ts.map +1 -1
- package/dist/types/src/handlers/records-query.d.ts +4 -0
- package/dist/types/src/handlers/records-query.d.ts.map +1 -1
- package/dist/types/src/handlers/records-read.d.ts.map +1 -1
- package/dist/types/src/handlers/records-subscribe.d.ts.map +1 -1
- package/dist/types/src/handlers/records-write.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +6 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/interfaces/messages-read.d.ts +1 -1
- package/dist/types/src/interfaces/messages-read.d.ts.map +1 -1
- package/dist/types/src/interfaces/messages-subscribe.d.ts +1 -1
- package/dist/types/src/interfaces/messages-subscribe.d.ts.map +1 -1
- package/dist/types/src/interfaces/messages-sync.d.ts +4 -1
- package/dist/types/src/interfaces/messages-sync.d.ts.map +1 -1
- package/dist/types/src/interfaces/protocols-configure.d.ts.map +1 -1
- package/dist/types/src/interfaces/protocols-query.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-count.d.ts +1 -0
- package/dist/types/src/interfaces/records-count.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-delete.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-query.d.ts +1 -0
- package/dist/types/src/interfaces/records-query.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-read.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-subscribe.d.ts +1 -0
- package/dist/types/src/interfaces/records-subscribe.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-write.d.ts.map +1 -1
- package/dist/types/src/protocols/permissions.d.ts +2 -0
- package/dist/types/src/protocols/permissions.d.ts.map +1 -1
- package/dist/types/src/sync/records-projection.d.ts +98 -0
- package/dist/types/src/sync/records-projection.d.ts.map +1 -0
- package/dist/types/src/types/message-types.d.ts +1 -0
- package/dist/types/src/types/message-types.d.ts.map +1 -1
- package/dist/types/src/types/messages-types.d.ts +21 -3
- package/dist/types/src/types/messages-types.d.ts.map +1 -1
- package/dist/types/src/types/permission-types.d.ts +4 -0
- package/dist/types/src/types/permission-types.d.ts.map +1 -1
- package/dist/types/src/types/records-types.d.ts +4 -0
- package/dist/types/src/types/records-types.d.ts.map +1 -1
- package/dist/types/src/types/subscriptions.d.ts +18 -3
- package/dist/types/src/types/subscriptions.d.ts.map +1 -1
- package/dist/types/src/utils/permission-scope.d.ts +29 -0
- package/dist/types/src/utils/permission-scope.d.ts.map +1 -0
- package/dist/types/tests/core/records-grant-authorization.spec.d.ts +2 -0
- package/dist/types/tests/core/records-grant-authorization.spec.d.ts.map +1 -0
- package/dist/types/tests/features/permissions.spec.d.ts.map +1 -1
- package/dist/types/tests/features/records-record-limit.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/messages-read.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/messages-subscribe.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/messages-sync.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/protocols-configure.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/records-count.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/records-query.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/records-subscribe.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/records-write.spec.d.ts.map +1 -1
- package/dist/types/tests/sync/records-projection.spec.d.ts +2 -0
- package/dist/types/tests/sync/records-projection.spec.d.ts.map +1 -0
- package/dist/types/tests/test-suite.d.ts.map +1 -1
- package/dist/types/tests/utils/permission-scope.spec.d.ts +2 -0
- package/dist/types/tests/utils/permission-scope.spec.d.ts.map +1 -0
- package/dist/types/tests/utils/test-data-generator.d.ts +5 -2
- package/dist/types/tests/utils/test-data-generator.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/constants.ts +24 -0
- package/src/core/dwn-error.ts +24 -1
- package/src/core/grant-authorization.ts +7 -5
- package/src/core/message.ts +153 -6
- package/src/core/messages-grant-authorization.ts +282 -70
- package/src/core/protocol-authorization.ts +130 -0
- package/src/core/records-grant-authorization.ts +64 -21
- package/src/handlers/messages-read.ts +7 -5
- package/src/handlers/messages-subscribe.ts +149 -9
- package/src/handlers/messages-sync.ts +593 -102
- package/src/handlers/protocols-configure.ts +103 -2
- package/src/handlers/records-count.ts +33 -0
- package/src/handlers/records-delete.ts +3 -2
- package/src/handlers/records-query.ts +33 -0
- package/src/handlers/records-read.ts +3 -2
- package/src/handlers/records-subscribe.ts +34 -0
- package/src/handlers/records-write.ts +21 -15
- package/src/index.ts +7 -3
- package/src/interfaces/messages-read.ts +8 -5
- package/src/interfaces/messages-subscribe.ts +12 -9
- package/src/interfaces/messages-sync.ts +33 -12
- package/src/interfaces/protocols-configure.ts +8 -4
- package/src/interfaces/protocols-query.ts +13 -9
- package/src/interfaces/records-count.ts +7 -0
- package/src/interfaces/records-delete.ts +9 -5
- package/src/interfaces/records-query.ts +7 -0
- package/src/interfaces/records-read.ts +6 -3
- package/src/interfaces/records-subscribe.ts +7 -0
- package/src/interfaces/records-write.ts +25 -17
- package/src/protocols/permissions.ts +47 -9
- package/src/sync/records-projection.ts +328 -0
- package/src/types/message-types.ts +1 -0
- package/src/types/messages-types.ts +23 -3
- package/src/types/permission-types.ts +5 -1
- package/src/types/records-types.ts +5 -1
- package/src/types/subscriptions.ts +19 -3
- package/src/utils/permission-scope.ts +55 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dwn-error.d.ts","sourceRoot":"","sources":["../../../../src/core/dwn-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACb,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAKlD;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,sBAAsB,2BAA2B;IACjD,iCAAiC,sCAAsC;IACvE,8CAA8C,mDAAmD;IACjG,+BA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AA4C,iDAAiD;IAC7F,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,gBAAgB,qBAAqB;IACrC,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,sBAAsB,2BAA2B;IACjD,+BAA+B,oCAAoC;CACpE"}
|
|
@@ -37,8 +37,7 @@ export declare class GrantAuthorization {
|
|
|
37
37
|
* Verify that the `interface` and `method` grant scopes match the incoming message.
|
|
38
38
|
*
|
|
39
39
|
* For the Messages interface, a `Read` scope is treated as a unified scope that also authorizes
|
|
40
|
-
* `Subscribe` and `Sync` operations.
|
|
41
|
-
* unified action covering read, query, subscribe, and count.
|
|
40
|
+
* `Subscribe` and `Sync` operations.
|
|
42
41
|
*
|
|
43
42
|
* @throws {DwnError} if the `interface` and `method` of the incoming message do not match the scope of the permission grant.
|
|
44
43
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/grant-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAOxE,qBAAa,kBAAkB;IAE7B;;;;;;;;;;OAUG;WACiB,qBAAqB,CAAC,KAAK,EAAE;QAC/C,eAAe,EAAE,cAAc,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,eAAe,CAAC;QACjC,YAAY,EAAE,YAAY,CAAC;KAC1B,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBnB;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAuB9C;;;;;OAKG;mBACkB,iBAAiB;IAwCtC
|
|
1
|
+
{"version":3,"file":"grant-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/grant-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAOxE,qBAAa,kBAAkB;IAE7B;;;;;;;;;;OAUG;WACiB,qBAAqB,CAAC,KAAK,EAAE;QAC/C,eAAe,EAAE,cAAc,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,eAAe,CAAC;QACjC,YAAY,EAAE,YAAY,CAAC;KAC1B,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBnB;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAuB9C;;;;;OAKG;mBACkB,iBAAiB;IAwCtC;;;;;;;OAOG;mBACkB,kCAAkC;CAuCxD"}
|
|
@@ -2,6 +2,18 @@ import type { DataEncodedRecordsWriteMessage } from '../types/records-types.js';
|
|
|
2
2
|
import type { GeneralJws } from '../types/jws-types.js';
|
|
3
3
|
import type { MessageSigner } from '../types/signer.js';
|
|
4
4
|
import type { AuthorizationModel, Descriptor, GenericMessage, GenericSignaturePayload } from '../types/message-types.js';
|
|
5
|
+
type PermissionGrantInvocation = {
|
|
6
|
+
permissionGrantId?: string;
|
|
7
|
+
permissionGrantIds?: string[];
|
|
8
|
+
};
|
|
9
|
+
type ValidateSignatureStructureOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Permission grant invocations are bound to the author signature payload.
|
|
12
|
+
* Owner signatures only prove owner retention/consent and do not repeat
|
|
13
|
+
* the author's grant invocation fields.
|
|
14
|
+
*/
|
|
15
|
+
validatePermissionGrantInvocation?: boolean;
|
|
16
|
+
};
|
|
5
17
|
/**
|
|
6
18
|
* A class containing utility methods for working with DWN messages.
|
|
7
19
|
*/
|
|
@@ -38,6 +50,7 @@ export declare class Message {
|
|
|
38
50
|
signer: MessageSigner;
|
|
39
51
|
delegatedGrant?: DataEncodedRecordsWriteMessage;
|
|
40
52
|
permissionGrantId?: string;
|
|
53
|
+
permissionGrantIds?: string[];
|
|
41
54
|
protocolRole?: string;
|
|
42
55
|
}): Promise<AuthorizationModel>;
|
|
43
56
|
/**
|
|
@@ -47,8 +60,29 @@ export declare class Message {
|
|
|
47
60
|
static createSignature(descriptor: Descriptor, signer: MessageSigner, additionalPayloadProperties?: {
|
|
48
61
|
delegatedGrantId?: string;
|
|
49
62
|
permissionGrantId?: string;
|
|
63
|
+
permissionGrantIds?: string[];
|
|
50
64
|
protocolRole?: string;
|
|
51
65
|
}): Promise<GeneralJws>;
|
|
66
|
+
/**
|
|
67
|
+
* Normalizes permission grant invocation before it is written into a descriptor
|
|
68
|
+
* and signed payload.
|
|
69
|
+
*
|
|
70
|
+
* Direct operation messages use `permissionGrantId`; Messages operations use
|
|
71
|
+
* canonicalized `permissionGrantIds` so a request can invoke a grant set.
|
|
72
|
+
*/
|
|
73
|
+
static normalizePermissionGrantInvocation(input: PermissionGrantInvocation): PermissionGrantInvocation;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the permission grant ID carried by a direct operation signature payload.
|
|
76
|
+
*/
|
|
77
|
+
static getPermissionGrantId(signaturePayload: GenericSignaturePayload): string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Returns all permission grant IDs invoked by a signature payload.
|
|
80
|
+
*
|
|
81
|
+
* Direct Records/Protocols operations carry a single `permissionGrantId`.
|
|
82
|
+
* Messages operations carry `permissionGrantIds`. Generic cleanup and
|
|
83
|
+
* revocation code uses this helper across both wire shapes.
|
|
84
|
+
*/
|
|
85
|
+
static getPermissionGrantIds(signaturePayload: GenericSignaturePayload): string[];
|
|
52
86
|
/**
|
|
53
87
|
* @returns newest message in the array. `undefined` if given array is empty.
|
|
54
88
|
*/
|
|
@@ -87,8 +121,14 @@ export declare class Message {
|
|
|
87
121
|
* 3. The `descriptorCid` property matches the CID of the message descriptor
|
|
88
122
|
* NOTE: signature is NOT verified.
|
|
89
123
|
* @param payloadJsonSchemaKey The key to look up the JSON schema referenced in `compile-validators.js` and perform payload schema validation on.
|
|
124
|
+
* @param options Additional structural validation controls.
|
|
90
125
|
* @returns the parsed JSON payload object if validation succeeds.
|
|
91
126
|
*/
|
|
92
|
-
static validateSignatureStructure(messageSignature: GeneralJws, messageDescriptor: Descriptor, payloadJsonSchemaKey?: string): Promise<GenericSignaturePayload>;
|
|
127
|
+
static validateSignatureStructure(messageSignature: GeneralJws, messageDescriptor: Descriptor, payloadJsonSchemaKey?: string, options?: ValidateSignatureStructureOptions): Promise<GenericSignaturePayload>;
|
|
128
|
+
private static normalizePermissionGrantIds;
|
|
129
|
+
private static validatePermissionGrantInvocationCanonical;
|
|
130
|
+
private static validatePermissionGrantInvocationMatchesPayload;
|
|
131
|
+
private static areStringArraysEqual;
|
|
93
132
|
}
|
|
133
|
+
export {};
|
|
94
134
|
//# sourceMappingURL=message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/core/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAWzH;;GAEG;AACH,qBAAa,OAAO;IAElB;;OAEG;WACW,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS;IAepE;;;OAGG;WACW,kBAAkB,CAAC,UAAU,EAAE,GAAG,GAAG,IAAI;IASvD;;OAEG;WACW,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,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MG;WACW,qBAAqB,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,MAAM,EAAE;IAQxF;;OAEG;WACiB,gBAAgB,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAWrG;;OAEG;WACiB,gBAAgB,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAWrG;;;OAGG;WACiB,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAKnF;;;OAGG;WACiB,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAKnF;;OAEG;WACW,wBAAwB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO;IAIxE;;OAEG;WACW,uBAAuB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO;IAIvE;;;OAGG;WACiB,uBAAuB,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAYlG;;;;;;;;;OASG;WACiB,0BAA0B,CAC5C,gBAAgB,EAAE,UAAU,EAC5B,iBAAiB,EAAE,UAAU,EAC7B,oBAAoB,GAAE,MAAkC,EACxD,OAAO,GAAE,iCAAsC,GAC9C,OAAO,CAAC,uBAAuB,CAAC;IA4BnC,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAe1C,OAAO,CAAC,MAAM,CAAC,0CAA0C;IAwBzD,OAAO,CAAC,MAAM,CAAC,+CAA+C;IAsB9D,OAAO,CAAC,MAAM,CAAC,oBAAoB;CAGpC"}
|
|
@@ -3,6 +3,7 @@ import type { MessageStore } from '../types/message-store.js';
|
|
|
3
3
|
import type { PermissionGrant } from '../protocols/permission-grant.js';
|
|
4
4
|
import type { MessagesReadMessage, MessagesSubscribeMessage, MessagesSyncMessage } from '../types/messages-types.js';
|
|
5
5
|
export declare class MessagesGrantAuthorization {
|
|
6
|
+
static fetchPermissionGrants(tenant: string, messageStore: MessageStore, permissionGrantIds: string[]): Promise<PermissionGrant[]>;
|
|
6
7
|
/**
|
|
7
8
|
* Authorizes a MessagesReadMessage using the given permission grant.
|
|
8
9
|
* @param messageStore Used to check if the given grant has been revoked; and to fetch related RecordsWrites if needed.
|
|
@@ -12,7 +13,7 @@ export declare class MessagesGrantAuthorization {
|
|
|
12
13
|
messageToRead: GenericMessage;
|
|
13
14
|
expectedGrantor: string;
|
|
14
15
|
expectedGrantee: string;
|
|
15
|
-
|
|
16
|
+
permissionGrants: PermissionGrant[];
|
|
16
17
|
messageStore: MessageStore;
|
|
17
18
|
}): Promise<void>;
|
|
18
19
|
/**
|
|
@@ -23,12 +24,43 @@ export declare class MessagesGrantAuthorization {
|
|
|
23
24
|
incomingMessage: MessagesSubscribeMessage | MessagesSyncMessage;
|
|
24
25
|
expectedGrantor: string;
|
|
25
26
|
expectedGrantee: string;
|
|
26
|
-
|
|
27
|
+
permissionGrants: PermissionGrant[];
|
|
27
28
|
messageStore: MessageStore;
|
|
28
29
|
}): Promise<void>;
|
|
30
|
+
private static authorizeSyncScope;
|
|
31
|
+
private static authorizeProtocolSyncScope;
|
|
32
|
+
private static authorizeProjectionScopes;
|
|
33
|
+
private static authorizeSubscribeScope;
|
|
34
|
+
private static someScopeMatches;
|
|
35
|
+
private static hasUnscopedGrant;
|
|
29
36
|
/**
|
|
30
|
-
*
|
|
37
|
+
* Revalidates an already-open delegated MessagesSubscribe grant set at event
|
|
38
|
+
* delivery time. Subscription messages are signed at open time, but grant
|
|
39
|
+
* expiry and revocation must stop future delivery after the grant set becomes
|
|
40
|
+
* invalid.
|
|
31
41
|
*/
|
|
32
|
-
|
|
42
|
+
static authorizeSubscribeDelivery(input: {
|
|
43
|
+
messagesSubscribeMessage: MessagesSubscribeMessage;
|
|
44
|
+
expectedGrantor: string;
|
|
45
|
+
expectedGrantee: string;
|
|
46
|
+
permissionGrants: PermissionGrant[];
|
|
47
|
+
messageStore: MessageStore;
|
|
48
|
+
deliveryTimestamp: string;
|
|
49
|
+
}): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Performs base validation on every invoked grant. The grant set is all-or-nothing:
|
|
52
|
+
* unresolved, revoked, expired, or interface/method-mismatched grants fail the request.
|
|
53
|
+
*/
|
|
54
|
+
private static performBaseValidationForGrantSet;
|
|
55
|
+
/**
|
|
56
|
+
* Determines whether the given record is inside a grant scope.
|
|
57
|
+
*/
|
|
58
|
+
private static isScopeAuthorized;
|
|
59
|
+
private static isRecordsMessageScopeAuthorized;
|
|
60
|
+
private static isPermissionRecordScopeAuthorized;
|
|
61
|
+
private static isProtocolsConfigureScopeAuthorized;
|
|
62
|
+
private static getAssociatedRecordsWrite;
|
|
63
|
+
private static getRecordsScopeTarget;
|
|
64
|
+
private static isSubtreeScope;
|
|
33
65
|
}
|
|
34
66
|
//# sourceMappingURL=messages-grant-authorization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-grant-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/messages-grant-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"messages-grant-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/messages-grant-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EA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C3B,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BjB;;;OAGG;mBACkB,gCAAgC;IAsBrD;;OAEG;mBACkB,iBAAiB;mBA6BjB,+BAA+B;mBAwB/B,iCAAiC;IAoBtD,OAAO,CAAC,MAAM,CAAC,mCAAmC;mBAU7B,yBAAyB;IAY9C,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAMpC,OAAO,CAAC,MAAM,CAAC,cAAc;CAG9B"}
|
|
@@ -18,6 +18,14 @@ export declare class ProtocolAuthorization {
|
|
|
18
18
|
* @throws {Error} if validation fails.
|
|
19
19
|
*/
|
|
20
20
|
static validateReferentialIntegrity(tenant: string, incomingMessage: RecordsWrite, messageStore: MessageStore, coreProtocols?: CoreProtocolRegistry): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Revalidates a stored initial write against the protocol definition that governed its creation timestamp.
|
|
23
|
+
*
|
|
24
|
+
* This is used only for destructive config-history repair, so it deliberately validates config-owned
|
|
25
|
+
* structure and avoids live dependency checks. Missing grant, role, or parent records must not cause
|
|
26
|
+
* an already-admitted record to be hard-purged.
|
|
27
|
+
*/
|
|
28
|
+
static validateStoredInitialWrite(tenant: string, incomingMessage: RecordsWrite, messageStore: MessageStore, coreProtocols?: CoreProtocolRegistry): Promise<void>;
|
|
21
29
|
/**
|
|
22
30
|
* Performs protocol-based authorization against the incoming RecordsWrite message.
|
|
23
31
|
* @throws {Error} if authorization fails.
|
|
@@ -58,5 +66,9 @@ export declare class ProtocolAuthorization {
|
|
|
58
66
|
* Gets the rule set corresponding to the given protocolPath.
|
|
59
67
|
*/
|
|
60
68
|
private static getRuleSet;
|
|
69
|
+
private static verifyStoredInitialWrite;
|
|
70
|
+
private static verifyStoredInitialWriteRoleRecipientIfNeeded;
|
|
71
|
+
private static verifyStoredInitialWriteCreateAction;
|
|
72
|
+
private static isStoredInitialWriteDirectlyAuthorized;
|
|
61
73
|
}
|
|
62
74
|
//# sourceMappingURL=protocol-authorization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAA8C,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"protocol-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAA8C,MAAM,6BA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B,aAAa,CAAC,EAAE,oBAAoB,GACnC,OAAO,CAAC,IAAI,CAAC;IAsDhB;;;;;;;;;;OAUG;WACiB,uBAAuB,CACzC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,CAAC,EAAE,MAAM,EACzB,aAAa,CAAC,EAAE,oBAAoB,GACnC,OAAO,CAAC,kBAAkB,CAAC;IAuC9B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAWzC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;mBAYJ,wBAAwB;IAW7C,OAAO,CAAC,MAAM,CAAC,6CAA6C;IAc5D,OAAO,CAAC,MAAM,CAAC,oCAAoC;IAkDnD,OAAO,CAAC,MAAM,CAAC,sCAAsC;CAQtD"}
|
|
@@ -51,6 +51,12 @@ export declare class RecordsGrantAuthorization {
|
|
|
51
51
|
* Verifies a record against the scope of the given grant.
|
|
52
52
|
*/
|
|
53
53
|
private static verifyScope;
|
|
54
|
+
/**
|
|
55
|
+
* Verifies RecordsDelete scope while preserving the delete-specific protocol mismatch code.
|
|
56
|
+
*/
|
|
57
|
+
private static verifyDeleteScope;
|
|
58
|
+
private static getProtocolScopeTarget;
|
|
59
|
+
private static throwScopeMismatchAfterProtocolMatch;
|
|
54
60
|
/**
|
|
55
61
|
* Verifies grant `conditions`.
|
|
56
62
|
* Currently the only condition is `published` which only applies to RecordsWrites
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-grant-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/records-grant-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"records-grant-authorization.d.ts","sourceRoot":"","sources":["../../../../src/core/records-grant-authorization.ts"],"names":[],"m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QACxB,eAAe,EAAE,eAAe,CAAC;QACjC,YAAY,EAAE,YAAY,CAAC;KAC5B,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBjB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAoB1B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAoBhC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAQrC,OAAO,CAAC,MAAM,CAAC,oCAAoC;IA0BnD;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAkBhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-read.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-read.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAA0B,MAAM,4BAA4B,CAAC;AAYjH,KAAK,UAAU,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEnE,qBAAa,mBAAoB,YAAW,aAAa;IAE3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmDhF;;OAEG;mBACkB,qBAAqB;
|
|
1
|
+
{"version":3,"file":"messages-read.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-read.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAA0B,MAAM,4BAA4B,CAAC;AAYjH,KAAK,UAAU,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEnE,qBAAa,mBAAoB,YAAW,aAAa;IAE3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmDhF;;OAEG;mBACkB,qBAAqB;CA2B3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { SubscriptionListener } from '../types/subscriptions.js';
|
|
1
2
|
import type { HandlerDependencies, MethodHandler } from '../types/method-handler.js';
|
|
2
3
|
import type { MessagesSubscribeMessage, MessagesSubscribeReply } from '../types/messages-types.js';
|
|
3
|
-
import type { SubscriptionListener } from '../types/subscriptions.js';
|
|
4
4
|
export declare class MessagesSubscribeHandler implements MethodHandler {
|
|
5
5
|
private readonly deps;
|
|
6
6
|
constructor(deps: HandlerDependencies);
|
|
@@ -10,5 +10,6 @@ export declare class MessagesSubscribeHandler implements MethodHandler {
|
|
|
10
10
|
subscriptionHandler: SubscriptionListener;
|
|
11
11
|
}): Promise<MessagesSubscribeReply>;
|
|
12
12
|
private static authorizeMessagesSubscribe;
|
|
13
|
+
private static createAuthorizationGuard;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=messages-subscribe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-subscribe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-subscribe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAyD,oBAAoB,EAAuB,MAAM,2BAA2B,CAAC;AAClJ,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAyBnG,qBAAa,wBAAyB,YAAW,aAAa;IAEhD,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACP,mBAAmB,EACpB,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,wBAAwB,CAAC;QAClC,mBAAmB,EAAE,oBAAoB,CAAC;KAC3C,GAAG,OAAO,CAAC,sBAAsB,CAAC;mBAyDd,0BAA0B;IA+B/C,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAsGxC"}
|
|
@@ -7,6 +7,15 @@ export declare class MessagesSyncHandler implements MethodHandler {
|
|
|
7
7
|
tenant: string;
|
|
8
8
|
message: MessagesSyncMessage;
|
|
9
9
|
}): Promise<MessagesSyncReply>;
|
|
10
|
+
private handleRoot;
|
|
11
|
+
private getRootHex;
|
|
12
|
+
private getIndexedRootHash;
|
|
13
|
+
private handleSubtree;
|
|
14
|
+
private handleLeaves;
|
|
15
|
+
private getSubtreeHash;
|
|
16
|
+
private getLeaves;
|
|
17
|
+
private getIndexedSubtreeHash;
|
|
18
|
+
private getIndexedLeaves;
|
|
10
19
|
/**
|
|
11
20
|
* Handle the 'diff' action: the client sends its subtree hashes at a given
|
|
12
21
|
* depth, and the server compares them against its own tree to compute the
|
|
@@ -24,6 +33,11 @@ export declare class MessagesSyncHandler implements MethodHandler {
|
|
|
24
33
|
* subtree hashes as a `{ prefix: hexHash }` map.
|
|
25
34
|
*/
|
|
26
35
|
private collectSubtreeHashes;
|
|
36
|
+
private createProjectionSnapshot;
|
|
37
|
+
private static getServerLeaves;
|
|
38
|
+
private static getServerSubtreeHash;
|
|
39
|
+
private static getIndexedLeavesFromStateIndex;
|
|
40
|
+
private static getIndexedSubtreeHashFromStateIndex;
|
|
27
41
|
/**
|
|
28
42
|
* Get the hex-encoded default hash for a given depth. Lazily cached.
|
|
29
43
|
*/
|
|
@@ -35,10 +49,27 @@ export declare class MessagesSyncHandler implements MethodHandler {
|
|
|
35
49
|
* payloads, inlines the data as base64url.
|
|
36
50
|
*/
|
|
37
51
|
private buildDiffEntries;
|
|
52
|
+
private buildProjectedDependencyEntries;
|
|
53
|
+
private readRecordsDeleteInitialWrite;
|
|
54
|
+
private static addRecordsInitialWriteDependency;
|
|
55
|
+
private addProtocolConfigClosureDependencies;
|
|
56
|
+
private getCachedGoverningProtocolsConfigure;
|
|
57
|
+
private static addProtocolConfigDependencies;
|
|
58
|
+
private static addProtocolConfigDependency;
|
|
59
|
+
private static takeNextUnvisitedProtocol;
|
|
60
|
+
private static queueUnvisitedProtocols;
|
|
61
|
+
private static protocolsConfigureUses;
|
|
62
|
+
private readGoverningProtocolsConfigure;
|
|
63
|
+
private static recordsWriteProtocolMetadata;
|
|
64
|
+
private static recordsDeleteRecordId;
|
|
65
|
+
private static toWireMessage;
|
|
38
66
|
/**
|
|
39
67
|
* Read a message and its data from the MessageStore + DataStore by CID.
|
|
40
68
|
*/
|
|
41
69
|
private readMessageByCid;
|
|
70
|
+
private static hasEncodedData;
|
|
71
|
+
private static getProjectionScopes;
|
|
72
|
+
private withProjectionSnapshot;
|
|
42
73
|
/**
|
|
43
74
|
* Read a ReadableStream to completion and return the bytes.
|
|
44
75
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-sync.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages-sync.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-sync.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAsD,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AA2C7I,qBAAa,mBAAoB,YAAW,aAAa;IAE3C,OAAO,CAAC,QAAQ,CAAC,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string | boolean;
|
|
14
14
|
};
|
|
15
15
|
private static authorizeProtocolsConfigure;
|
|
16
|
+
private purgeRecordsInvalidatedByProtocolConfig;
|
|
17
|
+
private getStoredInitialWriteConfigValidity;
|
|
18
|
+
private static isStoredInitialWriteConfigInvalidError;
|
|
16
19
|
/**
|
|
17
20
|
* Validates composition dependencies at install time:
|
|
18
21
|
* 1. All `uses` protocols must already be installed for the tenant.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocols-configure.d.ts","sourceRoot":"","sources":["../../../../src/handlers/protocols-configure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"protocols-configure.d.ts","sourceRoot":"","sources":["../../../../src/handlers/protocols-configure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAuC,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAOlH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AA2B1E,qBAAa,yBAA0B,YAAW,aAAa;IAEjD,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,GACR,EAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,yBAAyB,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoGvF,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,OAAO,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE;mBAgB3G,2BAA2B;YAuBlC,uCAAuC;YAkDvC,mCAAmC;IAqBjD,OAAO,CAAC,MAAM,CAAC,sCAAsC;IAIrD;;;;;;;OAOG;mBACkB,+BAA+B;IA4BpD;;;OAGG;mBACkB,gCAAgC;IAkBrD;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;CAsH/C"}
|
|
@@ -28,6 +28,10 @@ export declare class RecordsCountHandler implements MethodHandler {
|
|
|
28
28
|
* Creates a filter for unpublished records that are within the specified protocol.
|
|
29
29
|
*/
|
|
30
30
|
private static buildUnpublishedProtocolAuthorizedRecordsFilter;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a filter for unpublished records authorized by a permission grant.
|
|
33
|
+
*/
|
|
34
|
+
private static buildUnpublishedPermissionGrantAuthorizedRecordsFilter;
|
|
31
35
|
/**
|
|
32
36
|
* Creates a filter for only unpublished records where the author is the same as the count author.
|
|
33
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-count.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-count.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"records-count.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-count.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAYxF,qBAAa,mBAAoB,YAAW,aAAa;IAE3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACR,EAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,mBAAmB,CAAA;KAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAoC9E;;OAEG;YACW,mBAAmB;IAYjC;;OAEG;YACW,sBAAsB;IA6BpC;;OAEG;YACW,qBAAqB;IAKnC,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAW1C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,2CAA2C;IAY1D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,+CAA+C;IAW9D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sDAAsD;IAWrE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0CAA0C;IAYzD;;OAEG;mBACkB,qBAAqB;CA+B3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-delete.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-delete.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAcrF,qBAAa,oBAAqB,YAAW,aAAa;IAE5C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACR,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAA;KAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoElF;;;;OAIG;mBACkB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"records-delete.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-delete.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAcrF,qBAAa,oBAAqB,YAAW,aAAa;IAE5C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACR,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAA;KAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoElF;;;;OAIG;mBACkB,sBAAsB;CA6B5C"}
|
|
@@ -53,6 +53,10 @@ export declare class RecordsQueryHandler implements MethodHandler {
|
|
|
53
53
|
* Validation that `protocol` and other required protocol-related fields occurs before this method.
|
|
54
54
|
*/
|
|
55
55
|
private static buildUnpublishedProtocolAuthorizedRecordsFilter;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a filter for unpublished records authorized by a permission grant.
|
|
58
|
+
*/
|
|
59
|
+
private static buildUnpublishedPermissionGrantAuthorizedRecordsFilter;
|
|
56
60
|
/**
|
|
57
61
|
* Creates a filter for only unpublished records where the author is the same as the query author.
|
|
58
62
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-query.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-query.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAA0B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"records-query.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-query.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAA0B,MAAM,2BAA2B,CAAC;AAehH,qBAAa,mBAAoB,YAAW,aAAa;IAE3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACR,EAAE;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,mBAAmB,CAAA;KAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAwD9E;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IAmBvB;;OAEG;YACW,mBAAmB;IAiBjC;;;;;;;;;;;;;;;;;;OAkBG;YACW,sBAAsB;IA+BpC;;OAEG;YACW,qBAAqB;IASnC,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAY1C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,2CAA2C;IAa1D;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,+CAA+C;IAW9D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sDAAsD;IAWrE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0CAA0C;IAazD;;OAEG;mBACkB,qBAAqB;CA+B3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-read.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-read.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAgD,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAgBpI,qBAAa,kBAAmB,YAAW,aAAa;IAE1C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACR,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkI9E;;OAEG;mBACkB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"records-read.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-read.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAgD,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAgBpI,qBAAa,kBAAmB,YAAW,aAAa;IAE1C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAClB,MAAM,EACN,OAAO,EACR,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkI9E;;OAEG;mBACkB,oBAAoB;CAuC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAmB,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EAA0B,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"records-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/handlers/records-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAmB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5B,6BAA6B;YA2B7B,+BAA+B;IAyC7C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAqBpC;;;;;;OAMG;YACW,qBAAqB;YA4ErB,qBAAqB;CAsCpC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { DwnConfig } from './dwn.js';
|
|
2
|
-
export type { EventListener, EventLog, EventLogEntry, EventLogReadOptions, EventLogReadResult, EventLogSubscribeOptions, EventSubscription, MessageEvent, ProgressGapInfo, ProgressGapReason, ProgressToken, SubscriptionEose, SubscriptionEvent, SubscriptionListener, SubscriptionMessage, SubscriptionReply } from './types/subscriptions.js';
|
|
2
|
+
export type { EventListener, EventLog, EventLogEntry, EventLogReadOptions, EventLogReadResult, EventLogSubscribeOptions, EventSubscription, MessageEvent, ProgressGapInfo, ProgressGapReason, ProgressToken, SubscriptionEose, SubscriptionError, SubscriptionEvent, SubscriptionListener, SubscriptionMessage, SubscriptionReply } from './types/subscriptions.js';
|
|
3
3
|
export type { AuthorizationModel, Descriptor, DelegatedGrantRecordsWriteMessage, GenericMessage, GenericMessageReply, GenericSignaturePayload, MessageSort, MessageSubscription, Pagination, QueryResultEntry, Status } from './types/message-types.js';
|
|
4
|
-
export type { MessagesFilter, MessagesReadMessage, MessagesReadReply, MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply, MessagesSubscribeMessageOptions, MessagesSyncAction, MessagesSyncDescriptor, MessagesSyncDiffEntry, MessagesSyncMessage, MessagesSyncReply } from './types/messages-types.js';
|
|
4
|
+
export type { MessagesFilter, MessagesReadMessage, MessagesReadReply, MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply, MessagesSubscribeMessageOptions, MessagesSyncAction, MessagesSyncDependencyClass, MessagesSyncDependencyEntry, MessagesSyncDescriptor, MessagesSyncDiffEntry, MessagesSyncMessage, MessagesSyncReply } from './types/messages-types.js';
|
|
5
5
|
export type { GT, LT, Filter, FilterValue, KeyValues, EqualFilter, OneOfFilter, RangeFilter, RangeCriterion, PaginationCursor, QueryOptions, RangeValue, StartsWithFilter } from './types/query-types.js';
|
|
6
6
|
export type { ProtocolsConfigureDescriptor, ProtocolDefinition, ProtocolTypes, ProtocolRuleSet, ProtocolsQueryFilter, ProtocolsConfigureMessage, ProtocolsQueryMessage, ProtocolsQueryReply, ProtocolActionRule, ProtocolDeliveryStrategy, ProtocolPathEncryption, ProtocolsQueryDescriptor, ProtocolRecordLimitDefinition, ProtocolSizeDefinition, ProtocolTagsDefinition, ProtocolTagSchema, ProtocolType, ProtocolUses } from './types/protocols-types.js';
|
|
7
7
|
export { ProtocolRecordLimitStrategy } from './types/protocols-types.js';
|
|
@@ -50,6 +50,8 @@ export { PermissionGrant } from './protocols/permission-grant.js';
|
|
|
50
50
|
export { PermissionRequest } from './protocols/permission-request.js';
|
|
51
51
|
export { PermissionsProtocol } from './protocols/permissions.js';
|
|
52
52
|
export type { PermissionGrantCreateOptions, PermissionRequestCreateOptions, PermissionRevocationCreateOptions } from './protocols/permissions.js';
|
|
53
|
+
export { PermissionScopeMatcher } from './utils/permission-scope.js';
|
|
54
|
+
export type { ProtocolScope } from './utils/permission-scope.js';
|
|
53
55
|
export { PrivateKeySigner } from './utils/private-key-signer.js';
|
|
54
56
|
export type { PrivateKeySignerOptions } from './utils/private-key-signer.js';
|
|
55
57
|
export { Protocols, parseCrossProtocolRef, isCrossProtocolRef, getRuleSetAtPath } from './utils/protocols.js';
|
|
@@ -96,6 +98,8 @@ export { SMTStoreLevel } from './smt/smt-store-level.js';
|
|
|
96
98
|
export { SMTStoreMemory } from './smt/smt-store-memory.js';
|
|
97
99
|
export type { Hash, SMTNode, SMTInternalNode, SMTLeafNode, SMTProof, SMTDiffResult, SMTNodeStore } from './types/smt-types.js';
|
|
98
100
|
export { hashChildren, hashEquals, hashKey, hashLeaf, hashToHex, hexToHash, getBit, initDefaultHashes, getDefaultHashes, SMT_DEPTH, ZERO_HASH } from './smt/smt-utils.js';
|
|
101
|
+
export { RECORDS_PROJECTION_ROOT_VERSION, RecordsProjection } from './sync/records-projection.js';
|
|
102
|
+
export type { NormalizedRecordsProjectionScope, RecordsProjectionInput, RecordsProjectionScope, RecordsProjectionSnapshot, RecordsProjectionTreeInput } from './sync/records-projection.js';
|
|
99
103
|
export type { GenerateFromRecordsWriteInput, GenerateFromRecordsWriteOut, GenerateGrantCreateInput, GenerateGrantCreateOutput, GenerateMessagesReadInput, GenerateMessagesReadOutput, GenerateMessagesSubscribeInput, GenerateMessagesSubscribeOutput, GenerateProtocolsConfigureInput, GenerateProtocolsConfigureOutput, GenerateProtocolsQueryInput, GenerateProtocolsQueryOutput, GenerateRecordsCountInput, GenerateRecordsCountOutput, GenerateRecordsDeleteInput, GenerateRecordsDeleteOutput, GenerateRecordsQueryInput, GenerateRecordsQueryOutput, GenerateRecordsSubscribeInput, GenerateRecordsSubscribeOutput, GenerateRecordsWriteInput, GenerateRecordsWriteOutput, Persona } from '../tests/utils/test-data-generator.js';
|
|
100
104
|
export { TestDataGenerator } from '../tests/utils/test-data-generator.js';
|
|
101
105
|
export { Poller } from '../tests/utils/poller.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"m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,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACzsB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -5,7 +5,7 @@ export type MessagesReadOptions = {
|
|
|
5
5
|
messageCid: string;
|
|
6
6
|
signer: MessageSigner;
|
|
7
7
|
messageTimestamp?: string;
|
|
8
|
-
|
|
8
|
+
permissionGrantIds?: string[];
|
|
9
9
|
};
|
|
10
10
|
export declare class MessagesRead extends AbstractMessage<MessagesReadMessage> {
|
|
11
11
|
static parse(message: MessagesReadMessage): Promise<MessagesRead>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-read.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/messages-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAA0B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAO9D,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"messages-read.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/messages-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAA0B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE9F,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAO9D,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B,CAAC;AAEF,qBAAa,YAAa,SAAQ,eAAe,CAAC,mBAAmB,CAAC;WAChD,KAAK,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;WAU1D,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;IA0B/E;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAOlC"}
|
|
@@ -7,7 +7,7 @@ export type MessagesSubscribeOptions = {
|
|
|
7
7
|
signer: MessageSigner;
|
|
8
8
|
messageTimestamp?: string;
|
|
9
9
|
filters?: MessagesFilter[];
|
|
10
|
-
|
|
10
|
+
permissionGrantIds?: string[];
|
|
11
11
|
/**
|
|
12
12
|
* Progress token to resume from. When provided, catch-up events are replayed
|
|
13
13
|
* from the EventLog and an EOSE marker is delivered before live events.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/messages-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAA+B,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAQ9D,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,
|
|
1
|
+
{"version":3,"file":"messages-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/messages-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAA+B,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAQ9D,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,wBAAwB,CAAC;WAC1D,KAAK,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAcxF;;;;OAIG;WACiB,MAAM,CACxB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,iBAAiB,CAAC;CA2B9B"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { MessageSigner } from '../types/signer.js';
|
|
2
|
+
import type { RecordsProjectionScope } from '../sync/records-projection.js';
|
|
2
3
|
import type { MessagesSyncAction, MessagesSyncMessage } from '../types/messages-types.js';
|
|
3
4
|
import { AbstractMessage } from '../core/abstract-message.js';
|
|
4
5
|
export type MessagesSyncOptions = {
|
|
5
6
|
signer: MessageSigner;
|
|
6
7
|
action: MessagesSyncAction;
|
|
7
8
|
protocol?: string;
|
|
9
|
+
projectionRootVersion?: string;
|
|
10
|
+
projectionScopes?: RecordsProjectionScope[];
|
|
8
11
|
prefix?: string;
|
|
9
12
|
messageTimestamp?: string;
|
|
10
|
-
|
|
13
|
+
permissionGrantIds?: string[];
|
|
11
14
|
/** For `action: 'diff'`: client's subtree hashes at `depth`. */
|
|
12
15
|
hashes?: Record<string, string>;
|
|
13
16
|
/** For `action: 'diff'`: bit depth at which hashes were computed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-sync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/messages-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAA0B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAElH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"messages-sync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/messages-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAA0B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAElH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAS9D,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAG,aAAa,CAAC;IACvB,MAAM,EAAG,kBAAkB,CAAC;IAC5B,QAAQ,CAAC,EAAG,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,CAAC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AM,CAAC,4BAA4B;IAiC3C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAyRzC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAgC9B;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B;IA+BzC,OAAO,CAAC,MAAM,CAAC,mBAAmB;CAmCnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocols-query.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/protocols-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAA4B,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAU9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,qBAAa,cAAe,SAAQ,eAAe,CAAC,qBAAqB,CAAC;WAEpD,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;WAa9D,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"protocols-query.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/protocols-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAA4B,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAU9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,qBAAa,cAAe,SAAQ,eAAe,CAAC,qBAAqB,CAAC;WAEpD,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;WAa9D,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;IAmCnF,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,oBAAoB;IAO7D,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CAqBlF"}
|
|
@@ -6,6 +6,7 @@ export type RecordsCountOptions = {
|
|
|
6
6
|
messageTimestamp?: string;
|
|
7
7
|
filter: RecordsFilter;
|
|
8
8
|
signer?: MessageSigner;
|
|
9
|
+
permissionGrantId?: string;
|
|
9
10
|
protocolRole?: string;
|
|
10
11
|
/**
|
|
11
12
|
* The delegated grant to sign on behalf of the logical author, which is the grantor (`grantedBy`) of the delegated grant.
|