@enbox/dwn-sdk-js 0.4.3 → 0.4.5
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 +15 -15
- package/dist/browser.mjs.map +4 -4
- package/dist/esm/generated/precompiled-validators.js +5406 -2200
- package/dist/esm/generated/precompiled-validators.js.map +1 -1
- package/dist/esm/json-schemas/definitions.json +18 -0
- package/dist/esm/src/core/constants.js +3 -3
- package/dist/esm/src/core/constants.js.map +1 -1
- package/dist/esm/src/core/dwn-error.js +29 -1
- package/dist/esm/src/core/dwn-error.js.map +1 -1
- package/dist/esm/src/core/messages-grant-authorization.js +20 -0
- package/dist/esm/src/core/messages-grant-authorization.js.map +1 -1
- package/dist/esm/src/core/protocol-authorization-validation.js +80 -3
- package/dist/esm/src/core/protocol-authorization-validation.js.map +1 -1
- package/dist/esm/src/core/recording-validation-state-reader.js +5 -0
- package/dist/esm/src/core/recording-validation-state-reader.js.map +1 -1
- package/dist/esm/src/core/replication-apply.js +163 -7
- package/dist/esm/src/core/replication-apply.js.map +1 -1
- package/dist/esm/src/core/validation-state-reader.js +20 -0
- package/dist/esm/src/core/validation-state-reader.js.map +1 -1
- package/dist/esm/src/dwn.js +19 -2
- package/dist/esm/src/dwn.js.map +1 -1
- package/dist/esm/src/handlers/messages-query.js +3 -5
- package/dist/esm/src/handlers/messages-query.js.map +1 -1
- package/dist/esm/src/handlers/protocols-configure.js +10 -4
- package/dist/esm/src/handlers/protocols-configure.js.map +1 -1
- package/dist/esm/src/handlers/records-write.js +1 -1
- package/dist/esm/src/handlers/records-write.js.map +1 -1
- package/dist/esm/src/index.js +2 -1
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/interfaces/protocols-configure.js +23 -10
- package/dist/esm/src/interfaces/protocols-configure.js.map +1 -1
- package/dist/esm/src/interfaces/records-write-signing.js +2 -8
- package/dist/esm/src/interfaces/records-write-signing.js.map +1 -1
- package/dist/esm/src/interfaces/records-write.js +43 -65
- package/dist/esm/src/interfaces/records-write.js.map +1 -1
- package/dist/esm/src/protocols/encryption.js +411 -0
- package/dist/esm/src/protocols/encryption.js.map +1 -0
- package/dist/esm/src/protocols/permission-grant.js +3 -3
- package/dist/esm/src/protocols/permission-grant.js.map +1 -1
- package/dist/esm/src/protocols/permissions.js +1 -0
- package/dist/esm/src/protocols/permissions.js.map +1 -1
- 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/types/protocols-types.js.map +1 -1
- package/dist/esm/src/utils/encryption.js +135 -187
- package/dist/esm/src/utils/encryption.js.map +1 -1
- package/dist/esm/src/utils/hd-key.js +0 -1
- package/dist/esm/src/utils/hd-key.js.map +1 -1
- package/dist/esm/src/utils/permission-scope.js +9 -6
- package/dist/esm/src/utils/permission-scope.js.map +1 -1
- package/dist/esm/src/utils/protocols.js +12 -9
- package/dist/esm/src/utils/protocols.js.map +1 -1
- package/dist/esm/src/utils/records.js +54 -56
- package/dist/esm/src/utils/records.js.map +1 -1
- package/dist/esm/src/utils/replication.js +27 -4
- package/dist/esm/src/utils/replication.js.map +1 -1
- package/dist/esm/tests/core/replication-apply.spec.js +141 -1
- package/dist/esm/tests/core/replication-apply.spec.js.map +1 -1
- package/dist/esm/tests/core/replication-replay-property.spec.js +1 -0
- package/dist/esm/tests/core/replication-replay-property.spec.js.map +1 -1
- package/dist/esm/tests/core/validation-read-closure.spec.js +111 -0
- package/dist/esm/tests/core/validation-read-closure.spec.js.map +1 -1
- package/dist/esm/tests/core/validation-state-reader.spec.js +89 -0
- package/dist/esm/tests/core/validation-state-reader.spec.js.map +1 -1
- package/dist/esm/tests/features/protocol-composition.spec.js +30 -31
- package/dist/esm/tests/features/protocol-composition.spec.js.map +1 -1
- package/dist/esm/tests/fuzz/encryption.fuzz.spec.js +29 -121
- package/dist/esm/tests/fuzz/encryption.fuzz.spec.js.map +1 -1
- package/dist/esm/tests/handlers/messages-query.spec.js +71 -3
- package/dist/esm/tests/handlers/messages-query.spec.js.map +1 -1
- package/dist/esm/tests/handlers/messages-read.spec.js +2 -2
- package/dist/esm/tests/handlers/messages-read.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-read.spec.js +9 -135
- package/dist/esm/tests/handlers/records-read.spec.js.map +1 -1
- package/dist/esm/tests/handlers/records-write.spec.js +279 -19
- package/dist/esm/tests/handlers/records-write.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/protocols-configure.spec.js +17 -22
- package/dist/esm/tests/interfaces/protocols-configure.spec.js.map +1 -1
- package/dist/esm/tests/interfaces/records-write.spec.js +170 -150
- package/dist/esm/tests/interfaces/records-write.spec.js.map +1 -1
- package/dist/esm/tests/protocols/encryption.spec.js +914 -0
- package/dist/esm/tests/protocols/encryption.spec.js.map +1 -0
- package/dist/esm/tests/protocols/permission-grant.spec.js +55 -0
- package/dist/esm/tests/protocols/permission-grant.spec.js.map +1 -1
- package/dist/esm/tests/scenarios/end-to-end-tests.spec.js +100 -100
- package/dist/esm/tests/scenarios/end-to-end-tests.spec.js.map +1 -1
- package/dist/esm/tests/store/message-store-level.spec.js +20 -2
- package/dist/esm/tests/store/message-store-level.spec.js.map +1 -1
- package/dist/esm/tests/utils/encryption-callbacks.spec.js +88 -125
- package/dist/esm/tests/utils/encryption-callbacks.spec.js.map +1 -1
- package/dist/esm/tests/utils/encryption.spec.js +125 -255
- package/dist/esm/tests/utils/encryption.spec.js.map +1 -1
- package/dist/esm/tests/utils/permission-scope.spec.js +5 -1
- package/dist/esm/tests/utils/permission-scope.spec.js.map +1 -1
- package/dist/esm/tests/utils/records.spec.js +15 -5
- package/dist/esm/tests/utils/records.spec.js.map +1 -1
- package/dist/esm/tests/utils/test-data-generator.js +7 -44
- package/dist/esm/tests/utils/test-data-generator.js.map +1 -1
- package/dist/esm/tests/validation/json-schemas/encryption/grant-key.spec.js +63 -0
- package/dist/esm/tests/validation/json-schemas/encryption/grant-key.spec.js.map +1 -0
- package/dist/types/generated/precompiled-validators.d.ts +140 -92
- package/dist/types/generated/precompiled-validators.d.ts.map +1 -1
- package/dist/types/src/core/constants.d.ts +2 -2
- package/dist/types/src/core/constants.d.ts.map +1 -1
- package/dist/types/src/core/core-protocol.d.ts +1 -1
- package/dist/types/src/core/core-protocol.d.ts.map +1 -1
- package/dist/types/src/core/dwn-error.d.ts +29 -1
- package/dist/types/src/core/dwn-error.d.ts.map +1 -1
- package/dist/types/src/core/messages-grant-authorization.d.ts +2 -0
- package/dist/types/src/core/messages-grant-authorization.d.ts.map +1 -1
- package/dist/types/src/core/protocol-authorization-validation.d.ts +2 -2
- package/dist/types/src/core/protocol-authorization-validation.d.ts.map +1 -1
- package/dist/types/src/core/recording-validation-state-reader.d.ts +9 -0
- package/dist/types/src/core/recording-validation-state-reader.d.ts.map +1 -1
- package/dist/types/src/core/replication-apply.d.ts +4 -3
- package/dist/types/src/core/replication-apply.d.ts.map +1 -1
- package/dist/types/src/core/validation-state-reader.d.ts +9 -0
- package/dist/types/src/core/validation-state-reader.d.ts.map +1 -1
- package/dist/types/src/dwn.d.ts +1 -0
- package/dist/types/src/dwn.d.ts.map +1 -1
- package/dist/types/src/handlers/messages-query.d.ts.map +1 -1
- package/dist/types/src/handlers/protocols-configure.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +6 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/interfaces/protocols-configure.d.ts +1 -1
- package/dist/types/src/interfaces/protocols-configure.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-write-signing.d.ts +4 -8
- package/dist/types/src/interfaces/records-write-signing.d.ts.map +1 -1
- package/dist/types/src/interfaces/records-write.d.ts +10 -26
- package/dist/types/src/interfaces/records-write.d.ts.map +1 -1
- package/dist/types/src/protocols/encryption.d.ts +43 -0
- package/dist/types/src/protocols/encryption.d.ts.map +1 -0
- package/dist/types/src/protocols/permission-grant.d.ts +3 -6
- package/dist/types/src/protocols/permission-grant.d.ts.map +1 -1
- package/dist/types/src/protocols/permissions.d.ts +2 -1
- package/dist/types/src/protocols/permissions.d.ts.map +1 -1
- package/dist/types/src/types/encryption-types.d.ts +5 -38
- package/dist/types/src/types/encryption-types.d.ts.map +1 -1
- package/dist/types/src/types/message-types.d.ts +0 -13
- package/dist/types/src/types/message-types.d.ts.map +1 -1
- package/dist/types/src/types/permission-types.d.ts +44 -9
- package/dist/types/src/types/permission-types.d.ts.map +1 -1
- package/dist/types/src/types/protocols-types.d.ts +9 -14
- package/dist/types/src/types/protocols-types.d.ts.map +1 -1
- package/dist/types/src/types/records-types.d.ts +3 -3
- package/dist/types/src/types/records-types.d.ts.map +1 -1
- package/dist/types/src/types/validation-state-reader.d.ts +12 -0
- package/dist/types/src/types/validation-state-reader.d.ts.map +1 -1
- package/dist/types/src/utils/encryption.d.ts +54 -145
- package/dist/types/src/utils/encryption.d.ts.map +1 -1
- package/dist/types/src/utils/hd-key.d.ts +1 -1
- package/dist/types/src/utils/hd-key.d.ts.map +1 -1
- package/dist/types/src/utils/permission-scope.d.ts +4 -3
- package/dist/types/src/utils/permission-scope.d.ts.map +1 -1
- package/dist/types/src/utils/protocols.d.ts +3 -5
- package/dist/types/src/utils/protocols.d.ts.map +1 -1
- package/dist/types/src/utils/records.d.ts +5 -13
- package/dist/types/src/utils/records.d.ts.map +1 -1
- package/dist/types/src/utils/replication.d.ts +3 -0
- package/dist/types/src/utils/replication.d.ts.map +1 -1
- package/dist/types/tests/features/protocol-composition.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/messages-query.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/records-read.spec.d.ts.map +1 -1
- package/dist/types/tests/handlers/records-write.spec.d.ts.map +1 -1
- package/dist/types/tests/protocols/encryption.spec.d.ts +2 -0
- package/dist/types/tests/protocols/encryption.spec.d.ts.map +1 -0
- package/dist/types/tests/scenarios/end-to-end-tests.spec.d.ts.map +1 -1
- package/dist/types/tests/utils/test-data-generator.d.ts +0 -5
- package/dist/types/tests/utils/test-data-generator.d.ts.map +1 -1
- package/dist/types/tests/validation/json-schemas/encryption/grant-key.spec.d.ts +2 -0
- package/dist/types/tests/validation/json-schemas/encryption/grant-key.spec.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/core/constants.ts +3 -3
- package/src/core/core-protocol.ts +1 -1
- package/src/core/dwn-error.ts +29 -1
- package/src/core/messages-grant-authorization.ts +27 -0
- package/src/core/protocol-authorization-validation.ts +145 -6
- package/src/core/recording-validation-state-reader.ts +13 -0
- package/src/core/replication-apply.ts +222 -8
- package/src/core/validation-state-reader.ts +30 -0
- package/src/dwn.ts +24 -2
- package/src/handlers/messages-query.ts +6 -5
- package/src/handlers/protocols-configure.ts +19 -3
- package/src/handlers/records-write.ts +1 -1
- package/src/index.ts +15 -5
- package/src/interfaces/protocols-configure.ts +39 -12
- package/src/interfaces/records-write-signing.ts +5 -12
- package/src/interfaces/records-write.ts +75 -92
- package/src/protocols/encryption.ts +649 -0
- package/src/protocols/permission-grant.ts +4 -5
- package/src/protocols/permissions.ts +8 -6
- package/src/types/encryption-types.ts +9 -38
- package/src/types/message-types.ts +0 -13
- package/src/types/permission-types.ts +57 -9
- package/src/types/protocols-types.ts +9 -16
- package/src/types/records-types.ts +3 -3
- package/src/types/validation-state-reader.ts +13 -0
- package/src/utils/encryption.ts +213 -283
- package/src/utils/hd-key.ts +1 -1
- package/src/utils/permission-scope.ts +10 -6
- package/src/utils/protocols.ts +16 -15
- package/src/utils/records.ts +86 -71
- package/src/utils/replication.ts +30 -4
- package/dist/esm/tests/vectors/protocol-definitions/chat.json +0 -70
|
@@ -16,6 +16,22 @@ export declare enum DwnErrorCode {
|
|
|
16
16
|
ComputeCidCodecNotSupported = "ComputeCidCodecNotSupported",
|
|
17
17
|
ComputeCidMultihashNotSupported = "ComputeCidMultihashNotSupported",
|
|
18
18
|
Ed25519InvalidJwk = "Ed25519InvalidJwk",
|
|
19
|
+
EncryptionProtocolValidateAudienceEpochEncrypted = "EncryptionProtocolValidateAudienceEpochEncrypted",
|
|
20
|
+
EncryptionProtocolValidateAudienceEpochKeyIdMismatch = "EncryptionProtocolValidateAudienceEpochKeyIdMismatch",
|
|
21
|
+
EncryptionProtocolValidateAudienceEpochMissing = "EncryptionProtocolValidateAudienceEpochMissing",
|
|
22
|
+
EncryptionProtocolValidateAudienceKeyRecipientMissing = "EncryptionProtocolValidateAudienceKeyRecipientMissing",
|
|
23
|
+
EncryptionProtocolValidateAudienceKeyRoleRecordMissing = "EncryptionProtocolValidateAudienceKeyRoleRecordMissing",
|
|
24
|
+
EncryptionProtocolValidateAudienceMissingRequiredTag = "EncryptionProtocolValidateAudienceMissingRequiredTag",
|
|
25
|
+
EncryptionProtocolValidateAudienceTagsMismatch = "EncryptionProtocolValidateAudienceTagsMismatch",
|
|
26
|
+
EncryptionProtocolValidateAudienceWriterUnauthorized = "EncryptionProtocolValidateAudienceWriterUnauthorized",
|
|
27
|
+
EncryptionProtocolValidateEncryptedDeliveryMissingEncryption = "EncryptionProtocolValidateEncryptedDeliveryMissingEncryption",
|
|
28
|
+
EncryptionProtocolValidateGrantKeyAuthorMismatch = "EncryptionProtocolValidateGrantKeyAuthorMismatch",
|
|
29
|
+
EncryptionProtocolValidateGrantKeyGrantScopeMismatch = "EncryptionProtocolValidateGrantKeyGrantScopeMismatch",
|
|
30
|
+
EncryptionProtocolValidateGrantKeyMissingRequiredTag = "EncryptionProtocolValidateGrantKeyMissingRequiredTag",
|
|
31
|
+
EncryptionProtocolValidateGrantKeyRecipientMismatch = "EncryptionProtocolValidateGrantKeyRecipientMismatch",
|
|
32
|
+
EncryptionProtocolValidateRoleAudienceContextInvalid = "EncryptionProtocolValidateRoleAudienceContextInvalid",
|
|
33
|
+
EncryptionProtocolValidateRoleAudienceInvalid = "EncryptionProtocolValidateRoleAudienceInvalid",
|
|
34
|
+
EncryptionProtocolValidateSchemaUnexpectedRecord = "EncryptionProtocolValidateSchemaUnexpectedRecord",
|
|
19
35
|
EventLogNotOpenError = "EventLogNotOpenError",
|
|
20
36
|
EventLogProgressGap = "EventLogProgressGap",
|
|
21
37
|
MessagesGrantAuthorizationMismatchedProtocol = "MessagesGrantAuthorizationMismatchedProtocol",
|
|
@@ -97,6 +113,10 @@ export declare enum DwnErrorCode {
|
|
|
97
113
|
ProtocolAuthorizationInitialWriteRevalidationNotInitial = "ProtocolAuthorizationInitialWriteRevalidationNotInitial",
|
|
98
114
|
ProtocolAuthorizationDuplicateRoleRecipient = "ProtocolAuthorizationDuplicateRoleRecipient",
|
|
99
115
|
ProtocolAuthorizationEncryptionRequired = "ProtocolAuthorizationEncryptionRequired",
|
|
116
|
+
ProtocolAuthorizationEncryptionKeyAgreementMissing = "ProtocolAuthorizationEncryptionKeyAgreementMissing",
|
|
117
|
+
ProtocolAuthorizationEncryptionProtocolPathEntryMissing = "ProtocolAuthorizationEncryptionProtocolPathEntryMissing",
|
|
118
|
+
ProtocolAuthorizationEncryptionRoleAudienceEntryMissing = "ProtocolAuthorizationEncryptionRoleAudienceEntryMissing",
|
|
119
|
+
ProtocolAuthorizationEncryptionRoleAudienceEpochMissing = "ProtocolAuthorizationEncryptionRoleAudienceEpochMissing",
|
|
100
120
|
ProtocolAuthorizationImmutableRecord = "ProtocolAuthorizationImmutableRecord",
|
|
101
121
|
ProtocolAuthorizationInvalidSchema = "ProtocolAuthorizationInvalidSchema",
|
|
102
122
|
ProtocolAuthorizationInvalidType = "ProtocolAuthorizationInvalidType",
|
|
@@ -138,6 +158,10 @@ export declare enum DwnErrorCode {
|
|
|
138
158
|
ProtocolsConfigureInvalidActionUpdateWithoutCreate = "ProtocolsConfigureInvalidActionUpdateWithoutCreate",
|
|
139
159
|
ProtocolsConfigureInvalidCrossProtocolOf = "ProtocolsConfigureInvalidCrossProtocolOf",
|
|
140
160
|
ProtocolsConfigureInvalidCrossProtocolRole = "ProtocolsConfigureInvalidCrossProtocolRole",
|
|
161
|
+
ProtocolsConfigureInvalidEncryptedAnyoneRead = "ProtocolsConfigureInvalidEncryptedAnyoneRead",
|
|
162
|
+
ProtocolsConfigureInvalidEncryptedRoleMissingKeyAgreement = "ProtocolsConfigureInvalidEncryptedRoleMissingKeyAgreement",
|
|
163
|
+
ProtocolsConfigureMissingEncryptedPathKeyAgreement = "ProtocolsConfigureMissingEncryptedPathKeyAgreement",
|
|
164
|
+
ProtocolsConfigureMissingTopLevelKeyAgreement = "ProtocolsConfigureMissingTopLevelKeyAgreement",
|
|
141
165
|
ProtocolsConfigureInvalidRecipientOfAction = "ProtocolsConfigureInvalidRecipientOfAction",
|
|
142
166
|
ProtocolsConfigureInvalidRuleSetRecordType = "ProtocolsConfigureInvalidRuleSetRecordType",
|
|
143
167
|
ProtocolsConfigureInvalidTagSchema = "ProtocolsConfigureInvalidTagSchema",
|
|
@@ -154,6 +178,7 @@ export declare enum DwnErrorCode {
|
|
|
154
178
|
RecordsAuthorDelegatedGrantGrantedToAndOwnerSignatureMismatch = "RecordsAuthorDelegatedGrantGrantedToAndOwnerSignatureMismatch",
|
|
155
179
|
RecordsAuthorDelegatedGrantNotADelegatedGrant = "RecordsAuthorDelegatedGrantNotADelegatedGrant",
|
|
156
180
|
RecordsDecryptNoMatchingKeyEncryptedFound = "RecordsDecryptNoMatchingKeyEncryptedFound",
|
|
181
|
+
RecordsDecryptUnsupportedKeyDerivationScheme = "RecordsDecryptUnsupportedKeyDerivationScheme",
|
|
157
182
|
RecordsCountFilterMissingRequiredProperties = "RecordsCountFilterMissingRequiredProperties",
|
|
158
183
|
RecordsCountNestedProtocolPathContextIdInvalid = "RecordsCountNestedProtocolPathContextIdInvalid",
|
|
159
184
|
RecordsQueryCreateFilterPublishedSortInvalid = "RecordsQueryCreateFilterPublishedSortInvalid",
|
|
@@ -185,6 +210,7 @@ export declare enum DwnErrorCode {
|
|
|
185
210
|
RecordsWriteCreateMissingSigner = "RecordsWriteCreateMissingSigner",
|
|
186
211
|
RecordsWriteCreateDataAndDataCidMutuallyExclusive = "RecordsWriteCreateDataAndDataCidMutuallyExclusive",
|
|
187
212
|
RecordsWriteCreateDataCidAndDataSizeMutuallyInclusive = "RecordsWriteCreateDataCidAndDataSizeMutuallyInclusive",
|
|
213
|
+
RecordsWriteCreateEncryptionAndEncryptionInputMutuallyExclusive = "RecordsWriteCreateEncryptionAndEncryptionInputMutuallyExclusive",
|
|
188
214
|
RecordsWriteCreateMissingProtocol = "RecordsWriteCreateMissingProtocol",
|
|
189
215
|
RecordsWriteDataCidMismatch = "RecordsWriteDataCidMismatch",
|
|
190
216
|
RecordsWriteDataSizeMismatch = "RecordsWriteDataSizeMismatch",
|
|
@@ -195,7 +221,6 @@ export declare enum DwnErrorCode {
|
|
|
195
221
|
RecordsWriteMissingSigner = "RecordsWriteMissingSigner",
|
|
196
222
|
RecordsWriteMissingDataInPrevious = "RecordsWriteMissingDataInPrevious",
|
|
197
223
|
RecordsWriteMissingEncodedDataInPrevious = "RecordsWriteMissingEncodedDataInPrevious",
|
|
198
|
-
RecordsWriteMissingEncryption = "RecordsWriteMissingEncryption",
|
|
199
224
|
RecordsWriteNotAllowedAfterDelete = "RecordsWriteNotAllowedAfterDelete",
|
|
200
225
|
RecordsWriteOwnerAndTenantMismatch = "RecordsWriteOwnerAndTenantMismatch",
|
|
201
226
|
RecordsWriteSignAsOwnerDelegateUnknownAuthor = "RecordsWriteSignAsOwnerDelegateUnknownAuthor",
|
|
@@ -204,7 +229,10 @@ export declare enum DwnErrorCode {
|
|
|
204
229
|
RecordsWriteValidateIntegrityContextIdMismatch = "RecordsWriteValidateIntegrityContextIdMismatch",
|
|
205
230
|
RecordsWriteValidateIntegrityContextIdNotInSignerSignaturePayload = "RecordsWriteValidateIntegrityContextIdNotInSignerSignaturePayload",
|
|
206
231
|
RecordsWriteValidateIntegrityDateCreatedMismatch = "RecordsWriteValidateIntegrityDateCreatedMismatch",
|
|
232
|
+
RecordsWriteValidateIntegrityEncryptionCidMissing = "RecordsWriteValidateIntegrityEncryptionCidMissing",
|
|
207
233
|
RecordsWriteValidateIntegrityEncryptionCidMismatch = "RecordsWriteValidateIntegrityEncryptionCidMismatch",
|
|
234
|
+
RecordsWriteValidateIntegrityEncryptionEphemeralPublicKeyInvalid = "RecordsWriteValidateIntegrityEncryptionEphemeralPublicKeyInvalid",
|
|
235
|
+
RecordsWriteValidateIntegrityEncryptionInitializationVectorInvalid = "RecordsWriteValidateIntegrityEncryptionInitializationVectorInvalid",
|
|
208
236
|
RecordsWriteValidateIntegrityRecordIdUnauthorized = "RecordsWriteValidateIntegrityRecordIdUnauthorized",
|
|
209
237
|
SchemaValidatorAdditionalPropertyNotAllowed = "SchemaValidatorAdditionalPropertyNotAllowed",
|
|
210
238
|
SchemaValidatorFailure = "SchemaValidatorFailure",
|
|
@@ -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,+BAA+B,oCAAoC;IACnE,2BAA2B,gCAAgC;IAC3D,+BAA+B,oCAAoC;IACnE,iBAAiB,sBAAsB;IACvC,oBAAoB,yBAAyB;IAC7C,mBAAmB,wBAAwB;IAC3C,4CAA4C,iDAAiD;IAC7F,mDAAmD,wDAAwD;IAC3G,0DAA0D,+DAA+D;IACzH,oCAAoC,yCAAyC;IAC7E,4CAA4C,iDAAiD;IAC7F,sCAAsC,2CAA2C;IACjF,sCAAsC,2CAA2C;IACjF,kCAAkC,uCAAuC;IACzE,4BAA4B,iCAAiC;IAC7D,4BAA4B,iCAAiC;IAC7D,8BAA8B,mCAAmC;IACjE,8BAA8B,mCAAmC;IACjE,8BAA8B,mCAAmC;IACjE,mCAAmC,wCAAwC;IAC3E,gCAAgC,qCAAqC;IACrE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,sDAAsD,2DAA2D;IAEjH,+BAA+B,oCAAoC;IACnE,iDAAiD,sDAAsD;IACvG,qDAAqD,0DAA0D;IAC/G,+DAA+D,oEAAoE;IACnI,iCAAiC,sCAAsC;IACvE,2BAA2B,gCAAgC;IAC3D,4BAA4B,iCAAiC;IAC7D,qCAAqC,0CAA0C;IAC/E,wCAAwC,6CAA6C;IACrF,mCAAmC,wCAAwC;IAC3E,oCAAoC,yCAAyC;IAC7E,yBAAyB,8BAA8B;IACvD,iCAAiC,sCAAsC;IACvE,wCAAwC,6CAA6C;IAErF,iCAAiC,sCAAsC;IACvE,kCAAkC,uCAAuC;IACzE,4CAA4C,iDAAiD;IAC7F,oCAAoC,yCAAyC;IAC7E,gDAAgD,qDAAqD;IACrG,8CAA8C,mDAAmD;IACjG,iEAAiE,sEAAsE;IACvI,gDAAgD,qDAAqD;IACrG,iDAAiD,sDAAsD;IACvG,kDAAkD,uDAAuD;IACzG,gEAAgE,qEAAqE;IACrI,kEAAkE,uEAAuE;IACzI,iDAAiD,sDAAsD;IACvG,2CAA2C,gDAAgD;IAC3F,sBAAsB,2BAA2B;IACjD,6BAA6B,kCAAkC;IAC/D,4CAA4C,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"}
|
|
@@ -55,9 +55,11 @@ export declare class MessagesGrantAuthorization {
|
|
|
55
55
|
private static isScopeAuthorized;
|
|
56
56
|
private static isRecordsMessageScopeAuthorized;
|
|
57
57
|
private static isPermissionRecordScopeAuthorized;
|
|
58
|
+
private static isEncryptionRecordScopeAuthorized;
|
|
58
59
|
private static isProtocolsConfigureScopeAuthorized;
|
|
59
60
|
private static getAssociatedRecordsWrite;
|
|
60
61
|
private static getRecordsScopeTarget;
|
|
62
|
+
private static getStringTag;
|
|
61
63
|
private static isSubtreeScope;
|
|
62
64
|
}
|
|
63
65
|
//# 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,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,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,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAUtH,qBAAa,0BAA0B;WAEjB,qBAAqB,CACvC,MAAM,EAAE,MAAM,EACd,qBAAqB,EAAE,qBAAqB,EAC5C,kBAAkB,EAAE,MAAM,EAAE,GAC3B,OAAO,CAAC,eAAe,EAAE,CAAC;IAM7B;;;OAGG;WACiB,qBAAqB,CAAC,KAAK,EAAE;QAC/C,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,aAAa,EAAE,cAAc,CAAC;QAC9B,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,eAAe,EAAE,CAAC;QACpC,qBAAqB,EAAE,qBAAqB,CAAC;KAC9C,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBjB;;;OAGG;WACiB,yBAAyB,CAAC,KAAK,EAAE;QACnD,eAAe,EAAE,oBAAoB,GAAG,wBAAwB,CAAC;QACjE,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,eAAe,EAAE,CAAC;QACpC,qBAAqB,EAAE,qBAAqB,CAAC;KAC9C,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBjB,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAyBnC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAI/B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAI/B;;;;;OAKG;WACiB,0BAA0B,CAAC,KAAK,EAAE;QACpD,wBAAwB,EAAE,wBAAwB,CAAC;QACnD,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,eAAe,EAAE,CAAC;QACpC,qBAAqB,EAAE,qBAAqB,CAAC;QAC7C,iBAAiB,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BjB;;;OAGG;mBACkB,gCAAgC;IAsBrD;;OAEG;mBACkB,iBAAiB;mBA6BjB,+BAA+B;mBA4B/B,iCAAiC;IAoBtD,OAAO,CAAC,MAAM,CAAC,iCAAiC;IAiBhD,OAAO,CAAC,MAAM,CAAC,mCAAmC;mBAU7B,yBAAyB;IAY9C,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAMpC,OAAO,CAAC,MAAM,CAAC,YAAY;IAK3B,OAAO,CAAC,MAAM,CAAC,cAAc;CAG9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RecordsWrite } from '../interfaces/records-write.js';
|
|
2
2
|
import type { RecordsWriteMessage } from '../types/records-types.js';
|
|
3
3
|
import type { ValidationStateReader } from '../types/validation-state-reader.js';
|
|
4
|
-
import type { ProtocolDefinition, ProtocolRuleSet, ProtocolTypes } from '../types/protocols-types.js';
|
|
4
|
+
import type { ProtocolDefinition, ProtocolRuleSet, ProtocolType, ProtocolTypes } from '../types/protocols-types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Verifies the `protocolPath` declared in the given message matches the path of actual record chain.
|
|
7
7
|
* For cross-protocol composition, the parent record may belong to a different protocol (resolved via `$ref` in the composing protocol).
|
|
@@ -38,7 +38,7 @@ export declare function resolveProtocolTypesForPath(tenant: string, protocolPath
|
|
|
38
38
|
* and schema of the type in the given protocol.
|
|
39
39
|
* @throws {DwnError} if fails verification.
|
|
40
40
|
*/
|
|
41
|
-
export declare function verifyType(inboundMessage: RecordsWriteMessage, protocolTypes: ProtocolTypes, typeName?: string):
|
|
41
|
+
export declare function verifyType(inboundMessage: RecordsWriteMessage, protocolTypes: ProtocolTypes, typeName?: string): ProtocolType;
|
|
42
42
|
/**
|
|
43
43
|
* Verifies that writes adhere to the $size constraints if provided
|
|
44
44
|
* @throws {Error} if size is exceeded.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-authorization-validation.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol-authorization-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"protocol-authorization-validation.d.ts","sourceRoot":"","sources":["../../../../src/core/protocol-authorization-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAsB,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AA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E,MAAM,EACd,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,eAAe,EACxB,qBAAqB,EAAE,qBAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CACrC,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,IAAI,CAAC,CAkBf;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,IAAI,CAAC,CAwBf;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,IAAI,CAAC,CAcf"}
|
|
@@ -55,6 +55,15 @@ export declare class RecordingValidationStateReader implements ValidationStateRe
|
|
|
55
55
|
contextIdPrefix?: string;
|
|
56
56
|
}): Promise<RecordsWriteMessage[]>;
|
|
57
57
|
/** @inheritdoc */
|
|
58
|
+
queryAudienceEpochs(input: {
|
|
59
|
+
tenant: string;
|
|
60
|
+
protocol: string;
|
|
61
|
+
contextId: string;
|
|
62
|
+
role: string;
|
|
63
|
+
epoch: number;
|
|
64
|
+
keyId?: string;
|
|
65
|
+
}): Promise<RecordsWriteMessage[]>;
|
|
66
|
+
/** @inheritdoc */
|
|
58
67
|
fetchGrant(tenant: string, permissionGrantId: string): Promise<PermissionGrant>;
|
|
59
68
|
/** @inheritdoc */
|
|
60
69
|
fetchOldestGrantRevocation(tenant: string, permissionGrantId: string): Promise<GenericMessage | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recording-validation-state-reader.d.ts","sourceRoot":"","sources":["../../../../src/core/recording-validation-state-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE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AAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIhG"}
|
|
1
|
+
{"version":3,"file":"recording-validation-state-reader.d.ts","sourceRoot":"","sources":["../../../../src/core/recording-validation-state-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,qBAAqB,CAAC;CACrC,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,8BAA+B,YAAW,qBAAqB;IAGvD,OAAO,CAAC,QAAQ,CAAC,KAAK;IAFzC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgC;gBAE1B,KAAK,EAAE,qBAAqB;IAEhE,gFAAgF;IAChF,IAAW,KAAK,IAAI,sBAAsB,EAAE,CAE3C;IAED,sEAAsE;IAC/D,kBAAkB,IAAI,IAAI;IAIjC,kBAAkB;IACL,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAK1G,kBAAkB;IACL,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAK1G,kBAAkB;IACL,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,mBAAmB,EA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AM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAKpG,kBAAkB;IACL,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAKjI,kBAAkB;IACL,8BAA8B,CAAC,KAAK,EAAE;QACjD,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAK5C,kBAAkB;IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIhG"}
|
|
@@ -73,9 +73,10 @@ export type DependencyRef = {
|
|
|
73
73
|
messageCid?: string;
|
|
74
74
|
terminal?: boolean;
|
|
75
75
|
} | {
|
|
76
|
-
type: '
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
type: 'EncryptionProtocol';
|
|
77
|
+
protocolPath: 'audienceEpoch' | 'audienceKey' | 'grantKey';
|
|
78
|
+
tags?: Record<string, string | number>;
|
|
79
|
+
recipient?: string;
|
|
79
80
|
messageCid?: string;
|
|
80
81
|
terminal?: boolean;
|
|
81
82
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replication-apply.d.ts","sourceRoot":"","sources":["../../../../src/core/replication-apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,qB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AM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GACD;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GACzG;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1H;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE;IAAE,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,aAAa,CAAA;CAAE,EAC9E,OAAO,GAAE,6BAAkC,GAC1C,sBAAsB,CAiCxB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE;IAAE,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACtC,qBAAqB,EAAE,qBAAqB,GAC3C,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAuC/B"}
|
|
@@ -49,6 +49,15 @@ export declare class StoreValidationStateReader implements ValidationStateReader
|
|
|
49
49
|
contextIdPrefix?: string;
|
|
50
50
|
}): Promise<RecordsWriteMessage[]>;
|
|
51
51
|
/** @inheritdoc */
|
|
52
|
+
queryAudienceEpochs(input: {
|
|
53
|
+
tenant: string;
|
|
54
|
+
protocol: string;
|
|
55
|
+
contextId: string;
|
|
56
|
+
role: string;
|
|
57
|
+
epoch: number;
|
|
58
|
+
keyId?: string;
|
|
59
|
+
}): Promise<RecordsWriteMessage[]>;
|
|
60
|
+
/** @inheritdoc */
|
|
52
61
|
fetchGrant(tenant: string, permissionGrantId: string): Promise<PermissionGrant>;
|
|
53
62
|
/** @inheritdoc */
|
|
54
63
|
fetchOldestGrantRevocation(tenant: string, permissionGrantId: string): Promise<GenericMessage | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-state-reader.d.ts","sourceRoot":"","sources":["../../../../src/core/validation-state-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAkC,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrG,OAAO,KAAK,EAAE,kBAAkB,EAA6B,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"validation-state-reader.d.ts","sourceRoot":"","sources":["../../../../src/core/validation-state-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAkC,mBAAmB,EAAE,MA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CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAwB5C,kBAAkB;IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/F;;;OAGG;YACW,uBAAuB;IAUrC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;CAyBzC"}
|
package/dist/types/src/dwn.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export declare class Dwn {
|
|
|
93
93
|
private static getDataStreamByteLength;
|
|
94
94
|
private getReplicationApplyProtocolDefinition;
|
|
95
95
|
private static getReplicationApplyProtocolDefinitionLookup;
|
|
96
|
+
private static getEncryptionRecordTaggedProtocol;
|
|
96
97
|
private static getMessageProtocolForReplicationApply;
|
|
97
98
|
private static isRecordsWriteMessage;
|
|
98
99
|
private replicatedMessageAlreadyStored;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dwn.d.ts","sourceRoot":"","sources":["../../../src/dwn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA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,oBAAoB,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,KAAK,qBAAqB,CAAC;IAE1G,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-query.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAkB,oBAAoB,EAAE,kBAAkB,EAA2B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"messages-query.d.ts","sourceRoot":"","sources":["../../../../src/handlers/messages-query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAkB,oBAAoB,EAAE,kBAAkB,EAA2B,MAAM,4BAA4B,CAAC;AAWpI,qBAAa,oBAAqB,YAAW,aAAa;IAE5C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,mBAAmB;IAEzC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;YA2D1G,sBAAsB;IA4BpC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAYtC,OAAO,CAAC,MAAM,CAAC,cAAc;mBAQR,YAAY;mBAaZ,UAAU;IA0B/B,OAAO,CAAC,MAAM,CAAC,cAAc;IAK7B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAIhC,OAAO,CAAC,MAAM,CAAC,wBAAwB;IA0BvC,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAIlC"}
|
|
@@ -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;AAIrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAuC,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAMlH,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;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,yBAAyB,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAgGxF,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;YAiDvC,mCAAmC;IAqBjD,OAAO,CAAC,MAAM,CAAC,sCAAsC;IAIrD;;;;;;;OAOG;mBACkB,+BAA+B;
|
|
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;AAIrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EAAuC,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAMlH,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;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,yBAAyB,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAgGxF,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;YAiDvC,mCAAmC;IAqBjD,OAAO,CAAC,MAAM,CAAC,sCAAsC;IAIrD;;;;;;;OAOG;mBACkB,+BAA+B;IAuCpD;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;CAiI/C"}
|
|
@@ -9,7 +9,7 @@ export type { RecordedValidationRead } from './core/recording-validation-state-r
|
|
|
9
9
|
export { RecordingValidationStateReader } from './core/recording-validation-state-reader.js';
|
|
10
10
|
export type { MessagesFilter, MessagesQueryDescriptor, MessagesQueryMessage, MessagesQueryReply, MessagesQueryReplyEntry, MessagesReadMessage, MessagesReadReply, MessagesReadReplyEntry, MessagesReadDescriptor, MessagesSubscribeDescriptor, MessagesSubscribeMessage, MessagesSubscribeReply, MessagesSubscribeMessageOptions } from './types/messages-types.js';
|
|
11
11
|
export type { GT, LT, Filter, FilterValue, KeyValues, EqualFilter, OneOfFilter, RangeFilter, RangeCriterion, PaginationCursor, QueryOptions, RangeValue, StartsWithFilter } from './types/query-types.js';
|
|
12
|
-
export type { ProtocolsConfigureDescriptor, ProtocolDefinition, ProtocolTypes, ProtocolRuleSet, ProtocolsQueryFilter, ProtocolsConfigureMessage, ProtocolsQueryMessage, ProtocolsQueryReply, ProtocolActionRule, ProtocolDeliveryStrategy,
|
|
12
|
+
export type { ProtocolsConfigureDescriptor, ProtocolDefinition, ProtocolTypes, ProtocolRuleSet, ProtocolsQueryFilter, ProtocolsConfigureMessage, ProtocolsQueryMessage, ProtocolsQueryReply, ProtocolActionRule, ProtocolDeliveryStrategy, ProtocolKeyAgreement, ProtocolsQueryDescriptor, ProtocolRecordLimitDefinition, ProtocolSizeDefinition, ProtocolTagsDefinition, ProtocolTagSchema, ProtocolType, ProtocolUses } from './types/protocols-types.js';
|
|
13
13
|
export { ProtocolRecordLimitStrategy } from './types/protocols-types.js';
|
|
14
14
|
export type { DataEncodedRecordsWriteMessage, RecordsCountDescriptor, RecordsCountMessage, RecordsCountReply, RecordsDeleteMessage, RecordsFilter, RecordsQueryMessage, RecordsQueryReply, RecordsQueryReplyEntry, RecordsReadMessage, RecordsReadReply, RecordsSubscribeDescriptor, RecordsSubscribeMessage, RecordsSubscribeReply, RecordsWriteDescriptor, RecordsWriteTags, RecordsWriteTagValue, RecordsWriteMessage, RecordsWriteSignaturePayload, RecordsDeleteDescriptor, RecordsQueryDescriptor, RecordsReadDescriptor, RecordsSubscribeMessageOptions, RecordsWriteMessageOptions, InternalRecordsWriteMessage, RecordEvent, RecordsWriteTagsFilter } from './types/records-types.js';
|
|
15
15
|
export type { GeneralJws, SignatureEntry } from './types/jws-types.js';
|
|
@@ -37,10 +37,10 @@ export { DwnInterfaceName, DwnMethodName } from './enums/dwn-interface-method.js
|
|
|
37
37
|
export { Encoder } from './utils/encoder.js';
|
|
38
38
|
export { MessagesSubscribe } from './interfaces/messages-subscribe.js';
|
|
39
39
|
export type { MessagesSubscribeOptions } from './interfaces/messages-subscribe.js';
|
|
40
|
-
export { Encryption, ContentEncryptionAlgorithm, KeyAgreementAlgorithm } from './utils/encryption.js';
|
|
41
|
-
export type {
|
|
40
|
+
export { Encryption, ContentEncryptionAlgorithm, KeyAgreementAlgorithm, ROLE_AUDIENCE_DERIVATION_SCHEME } from './utils/encryption.js';
|
|
41
|
+
export type { DwnEncryption, KeyEncryption, KeyEncryptionInput, KeyUnwrapPayload, ProtocolPathKeyEncryption, ProtocolPathKeyEncryptionInput, RoleAudienceKeyEncryption, RoleAudienceKeyEncryptionInput, } from './utils/encryption.js';
|
|
42
42
|
export { RecordsWrite } from './interfaces/records-write.js';
|
|
43
|
-
export type { EncryptionInput,
|
|
43
|
+
export type { EncryptionInput, RecordsWriteOptions, CreateFromOptions } from './interfaces/records-write.js';
|
|
44
44
|
export { executeUnlessAborted } from './utils/abort.js';
|
|
45
45
|
export { Jws } from './utils/jws.js';
|
|
46
46
|
export type { KeyMaterial, PrivateKeyJwk, PublicKeyJwk, Jwk } from './types/jose-types.js';
|
|
@@ -56,6 +56,7 @@ export type { MessageInterface } from './types/message-interface.js';
|
|
|
56
56
|
export { PermissionGrant } from './protocols/permission-grant.js';
|
|
57
57
|
export { PermissionRequest } from './protocols/permission-request.js';
|
|
58
58
|
export { PermissionsProtocol } from './protocols/permissions.js';
|
|
59
|
+
export { EncryptionProtocol } from './protocols/encryption.js';
|
|
59
60
|
export type { PermissionGrantCreateOptions, PermissionRequestCreateOptions, PermissionRevocationCreateOptions } from './protocols/permissions.js';
|
|
60
61
|
export { PermissionScopeMatcher } from './utils/permission-scope.js';
|
|
61
62
|
export type { ProtocolScope } from './utils/permission-scope.js';
|
|
@@ -79,7 +80,7 @@ export { Secp256r1 } from './utils/secp256r1.js';
|
|
|
79
80
|
export type { SupportedCurve } from './jose/algorithms/signing/signature-algorithms.js';
|
|
80
81
|
export type { MessageSigner } from './types/signer.js';
|
|
81
82
|
export { SortDirection } from './types/query-types.js';
|
|
82
|
-
export type { EncryptionKeyDeriver, KeyDecrypter } from './types/encryption-types.js';
|
|
83
|
+
export type { EncryptionKeyDeriver, KeyDecrypter, KeyDecrypterDerivationScheme } from './types/encryption-types.js';
|
|
83
84
|
export { Time } from './utils/time.js';
|
|
84
85
|
export * from './types/permission-types.js';
|
|
85
86
|
export * from './types/records-types.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,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACjZ,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,iCAAiC,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACxP,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AACjJ,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,YAAY,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CA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,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5L,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,YAAY,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAGvG,YAAY,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,2BAA2B,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;AAClwB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -42,7 +42,7 @@ export declare class ProtocolsConfigure extends AbstractMessage<ProtocolsConfigu
|
|
|
42
42
|
private static validateRuleSetRecursively;
|
|
43
43
|
/**
|
|
44
44
|
* Validates that a `$ref` node is a pure attachment point: it must NOT have
|
|
45
|
-
* `$actions`, `$role`, `$size`, `$tags`, or `$
|
|
45
|
+
* `$actions`, `$role`, `$size`, `$tags`, or `$keyAgreement`.
|
|
46
46
|
* Also validates that the `$ref` alias exists in the `uses` map.
|
|
47
47
|
*/
|
|
48
48
|
private static validateRefNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocols-configure.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/protocols-configure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EACU,kBAAkB,EACtC,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAa9D,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,8BAA8B,CAAC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,yBAAyB,CAAC;WAC5D,KAAK,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC;WAStE,MAAM,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA4B3F;;;OAGG;IACU,uBAAuB,CAAC,qBAAqB,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjG;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAuBzC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IA+B3B,OAAO,CAAC,MAAM,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"protocols-configure.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/protocols-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AAM,CAAC,mBAAmB;CAmCnC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import type { GeneralJws } from '../types/jws-types.js';
|
|
2
2
|
import type { MessageSigner } from '../types/signer.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { DwnEncryption, EncryptionInput } from '../utils/encryption.js';
|
|
4
4
|
import type { RecordsWriteMessage } from '../types/records-types.js';
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
* Uses ECDH-ES+A256KW key agreement with X25519 and AEAD content encryption (A256GCM or XC20P).
|
|
8
|
-
* @param encryptionInput The encryption input containing CEK, IV, authentication tag, and recipient key encryption inputs.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createEncryptionProperty(encryptionInput: EncryptionInput | undefined): Promise<JweEncryption | undefined>;
|
|
5
|
+
/** Creates the RecordsWrite `encryption` property if encryption input is given. */
|
|
6
|
+
export declare function createEncryptionProperty(encryptionInput: EncryptionInput | undefined): Promise<DwnEncryption | undefined>;
|
|
11
7
|
/**
|
|
12
8
|
* Creates the `attestation` property of a RecordsWrite message if given signature inputs; returns `undefined` otherwise.
|
|
13
9
|
*/
|
|
@@ -20,7 +16,7 @@ export declare function createSignerSignature(input: {
|
|
|
20
16
|
contextId: string;
|
|
21
17
|
descriptorCid: string;
|
|
22
18
|
attestation: GeneralJws | undefined;
|
|
23
|
-
encryption:
|
|
19
|
+
encryption: DwnEncryption | undefined;
|
|
24
20
|
signer: MessageSigner;
|
|
25
21
|
delegatedGrantId?: string;
|
|
26
22
|
permissionGrantId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-write-signing.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/records-write-signing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"records-write-signing.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/records-write-signing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAkC,mBAAmB,EAAgC,MAAM,2BAA2B,CAAC;AAUnI,mFAAmF;AACnF,wBAAsB,wBAAwB,CAC5C,eAAe,EAAE,eAAe,GAAG,SAAS,GAC3C,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAMpC;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAUzH;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,aAAa,GAAG,SAAS,CAAC;IACtC,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,UAAU,CAAC,CAwBtB;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiC9F"}
|
|
@@ -3,10 +3,9 @@ import type { KeyValues } from '../types/query-types.js';
|
|
|
3
3
|
import type { MessageInterface } from '../types/message-interface.js';
|
|
4
4
|
import type { MessageSigner } from '../types/signer.js';
|
|
5
5
|
import type { MessageStore } from '../types/message-store.js';
|
|
6
|
-
import type { PublicKeyJwk } from '../types/jose-types.js';
|
|
7
6
|
import type { ValidationStateReader } from '../types/validation-state-reader.js';
|
|
8
7
|
import type { DataEncodedRecordsWriteMessage, InternalRecordsWriteMessage, RecordsWriteDescriptor, RecordsWriteMessage, RecordsWriteSignaturePayload, RecordsWriteTags } from '../types/records-types.js';
|
|
9
|
-
import type {
|
|
8
|
+
import type { DwnEncryption, EncryptionInput } from '../utils/encryption.js';
|
|
10
9
|
import type { GenericMessage, GenericSignaturePayload } from '../types/message-types.js';
|
|
11
10
|
export type RecordsWriteOptions = {
|
|
12
11
|
recipient?: string;
|
|
@@ -38,6 +37,10 @@ export type RecordsWriteOptions = {
|
|
|
38
37
|
*/
|
|
39
38
|
delegatedGrant?: DataEncodedRecordsWriteMessage;
|
|
40
39
|
attestationSigners?: MessageSigner[];
|
|
40
|
+
/**
|
|
41
|
+
* Pre-built encryption envelope. Use `encryptionInput` when wrapping a CEK from plaintext/ciphertext inputs.
|
|
42
|
+
*/
|
|
43
|
+
encryption?: DwnEncryption;
|
|
41
44
|
encryptionInput?: EncryptionInput;
|
|
42
45
|
permissionGrantId?: string;
|
|
43
46
|
/**
|
|
@@ -46,18 +49,8 @@ export type RecordsWriteOptions = {
|
|
|
46
49
|
* Only valid at protocol paths with `$squash: true`. Must be an initial write (new record).
|
|
47
50
|
*/
|
|
48
51
|
squash?: true;
|
|
49
|
-
/**
|
|
50
|
-
* The author's ProtocolPath-derived public key for key delivery.
|
|
51
|
-
* When set, this is attached to the authorization model so the DWN owner
|
|
52
|
-
* can encrypt context keys back to the author without querying the
|
|
53
|
-
* author's DWN.
|
|
54
|
-
*/
|
|
55
|
-
authorKeyDeliveryPublicKey?: {
|
|
56
|
-
rootKeyId: string;
|
|
57
|
-
publicKeyJwk: PublicKeyJwk;
|
|
58
|
-
};
|
|
59
52
|
};
|
|
60
|
-
export type { EncryptionInput, KeyEncryptionInput } from '../utils/encryption.js';
|
|
53
|
+
export type { EncryptionInput, KeyEncryptionInput, ProtocolPathKeyEncryptionInput, RoleAudienceKeyEncryptionInput, } from '../utils/encryption.js';
|
|
61
54
|
export type CreateFromOptions = {
|
|
62
55
|
recordsWriteMessage: RecordsWriteMessage;
|
|
63
56
|
data?: Uint8Array;
|
|
@@ -148,6 +141,7 @@ export declare class RecordsWrite implements MessageInterface<RecordsWriteMessag
|
|
|
148
141
|
* If not given, it means this write is for a root protocol record.
|
|
149
142
|
*/
|
|
150
143
|
static create(options: RecordsWriteOptions): Promise<RecordsWrite>;
|
|
144
|
+
private static validateCreateOptions;
|
|
151
145
|
private static getRecordIdFromContextId;
|
|
152
146
|
/**
|
|
153
147
|
* Convenience method that creates a message by:
|
|
@@ -179,15 +173,9 @@ export declare class RecordsWrite implements MessageInterface<RecordsWriteMessag
|
|
|
179
173
|
*/
|
|
180
174
|
toJSON(): RecordsWriteMessage;
|
|
181
175
|
/**
|
|
182
|
-
* Encrypts the symmetric encryption key using the public keys given and
|
|
183
|
-
*
|
|
184
|
-
* @param options.append - When `true`, appends new `recipients` entries to the existing
|
|
185
|
-
* `encryption` property instead of replacing it. Requires `this._message.encryption` to
|
|
186
|
-
* already exist (i.e., the record must already be encrypted).
|
|
176
|
+
* Encrypts the symmetric encryption key using the public keys given and attaches the resulting `encryption` property.
|
|
187
177
|
*/
|
|
188
|
-
encryptSymmetricEncryptionKey(encryptionInput: EncryptionInput
|
|
189
|
-
append?: boolean;
|
|
190
|
-
}): Promise<void>;
|
|
178
|
+
encryptSymmetricEncryptionKey(encryptionInput: EncryptionInput): Promise<void>;
|
|
191
179
|
/**
|
|
192
180
|
* Signs the RecordsWrite, the signer is commonly the author, but can also be a delegate.
|
|
193
181
|
*/
|
|
@@ -196,10 +184,6 @@ export declare class RecordsWrite implements MessageInterface<RecordsWriteMessag
|
|
|
196
184
|
delegatedGrant?: DataEncodedRecordsWriteMessage;
|
|
197
185
|
permissionGrantId?: string;
|
|
198
186
|
protocolRole?: string;
|
|
199
|
-
authorKeyDeliveryPublicKey?: {
|
|
200
|
-
rootKeyId: string;
|
|
201
|
-
publicKeyJwk: PublicKeyJwk;
|
|
202
|
-
};
|
|
203
187
|
}): Promise<void>;
|
|
204
188
|
/**
|
|
205
189
|
* Signs the `RecordsWrite` as the DWN owner.
|
|
@@ -253,7 +237,7 @@ export declare class RecordsWrite implements MessageInterface<RecordsWriteMessag
|
|
|
253
237
|
contextId: string;
|
|
254
238
|
descriptorCid: string;
|
|
255
239
|
attestation: GeneralJws | undefined;
|
|
256
|
-
encryption:
|
|
240
|
+
encryption: DwnEncryption | undefined;
|
|
257
241
|
signer: MessageSigner;
|
|
258
242
|
delegatedGrantId?: string;
|
|
259
243
|
permissionGrantId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-write.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/records-write.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"records-write.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/records-write.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY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AE,MAAM,CAAA;KACtB,GAAG,OAAO,CAAC,UAAU,CAAC;IAIvB,iEAAiE;WAC7C,eAAe,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI7F,qFAAqF;WACvE,mCAAmC,CAC/C,oBAAoB,EAAE,mBAAmB,EAAE,UAAU,EAAE,mBAAmB,GACzE,OAAO;IAIV,8DAA8D;WAChD,YAAY,CAAC,OAAO,EAAE,2BAA2B,GAAG,MAAM,EAAE;IAI1E,yEAAyE;WACrD,uBAAuB,CACzC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAC3D,OAAO,CAAC,mBAAmB,CAAC;IAI/B,0EAA0E;WACtD,wBAAwB,CAC1C,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAC3D,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAIpC,iFAAiF;WAC7D,+BAA+B,CACjD,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAC3D,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;CAG5C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CoreProtocol } from '../core/core-protocol.js';
|
|
2
|
+
import type { Filter } from '../types/query-types.js';
|
|
3
|
+
import type { MessagesFilter } from '../types/messages-types.js';
|
|
4
|
+
import type { RecordsWriteMessage } from '../types/records-types.js';
|
|
5
|
+
import type { ValidationStateReader } from '../types/validation-state-reader.js';
|
|
6
|
+
import type { ProtocolDefinition } from '../types/protocols-types.js';
|
|
7
|
+
export declare class EncryptionProtocol implements CoreProtocol {
|
|
8
|
+
static readonly uri = "https://identity.foundation/dwn/protocols/encryption";
|
|
9
|
+
static readonly audienceEpochPath = "audienceEpoch";
|
|
10
|
+
static readonly audienceKeyPath = "audienceKey";
|
|
11
|
+
static readonly grantKeyPath = "grantKey";
|
|
12
|
+
static readonly definition: ProtocolDefinition;
|
|
13
|
+
get uri(): string;
|
|
14
|
+
get definition(): ProtocolDefinition;
|
|
15
|
+
preProcessWrite(tenant: string, message: RecordsWriteMessage, validationStateReader: ValidationStateReader): Promise<void>;
|
|
16
|
+
validateRecord(message: RecordsWriteMessage, dataBytes: Uint8Array): Promise<void>;
|
|
17
|
+
private static preProcessAudienceEpoch;
|
|
18
|
+
private static preProcessAudienceKey;
|
|
19
|
+
private static preProcessGrantKey;
|
|
20
|
+
private static verifyEncryptedDelivery;
|
|
21
|
+
private static validateAudienceEpoch;
|
|
22
|
+
private static verifyAudiencePayloadMatchesTags;
|
|
23
|
+
private static getRequiredStringTag;
|
|
24
|
+
private static getRequiredIntegerTag;
|
|
25
|
+
private static getAudienceTags;
|
|
26
|
+
private static getOptionalStringTag;
|
|
27
|
+
private static verifyGrantActive;
|
|
28
|
+
private static verifyGrantKeyAuthor;
|
|
29
|
+
private static verifyGrantKeyRecipient;
|
|
30
|
+
private static verifyGrantKeyScope;
|
|
31
|
+
private static isReadScope;
|
|
32
|
+
private static isBoundaryAwareSubtree;
|
|
33
|
+
private static verifyRoleAudienceDefinition;
|
|
34
|
+
private static verifyRoleAudienceContext;
|
|
35
|
+
private static verifyWriterCanCreateRole;
|
|
36
|
+
private static constructRoleParentChain;
|
|
37
|
+
private static roleRuleAllowsAuthor;
|
|
38
|
+
private static hasInvokedRole;
|
|
39
|
+
private static resolveRoleReference;
|
|
40
|
+
mapErrorToStatusCode(errorCode: string): number | undefined;
|
|
41
|
+
constructAdditionalMessageFilter(filter: MessagesFilter): Filter | undefined;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=encryption.d.ts.map
|