@enbox/dwn-sdk-js 0.4.15 → 0.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/browser.mjs +1 -1
  2. package/dist/browser.mjs.map +4 -4
  3. package/dist/esm/generated/precompiled-validators.js +734 -747
  4. package/dist/esm/generated/precompiled-validators.js.map +1 -1
  5. package/dist/esm/json-schemas/definitions.json +5 -0
  6. package/dist/esm/src/core/dwn-constant.js +2 -2
  7. package/dist/esm/src/core/dwn-error.js +0 -1
  8. package/dist/esm/src/core/dwn-error.js.map +1 -1
  9. package/dist/esm/src/core/protocol-authorization-validation.js +1 -24
  10. package/dist/esm/src/core/protocol-authorization-validation.js.map +1 -1
  11. package/dist/esm/src/core/protocol-authorization.js +1 -5
  12. package/dist/esm/src/core/protocol-authorization.js.map +1 -1
  13. package/dist/esm/src/core/validation-state-reader.js +2 -3
  14. package/dist/esm/src/core/validation-state-reader.js.map +1 -1
  15. package/dist/esm/src/handlers/messages-query.js +2 -29
  16. package/dist/esm/src/handlers/messages-query.js.map +1 -1
  17. package/dist/esm/src/handlers/messages-subscribe.js +52 -1
  18. package/dist/esm/src/handlers/messages-subscribe.js.map +1 -1
  19. package/dist/esm/src/handlers/records-count.js +18 -10
  20. package/dist/esm/src/handlers/records-count.js.map +1 -1
  21. package/dist/esm/src/handlers/records-query.js +10 -7
  22. package/dist/esm/src/handlers/records-query.js.map +1 -1
  23. package/dist/esm/src/handlers/records-subscribe.js +10 -7
  24. package/dist/esm/src/handlers/records-subscribe.js.map +1 -1
  25. package/dist/esm/src/handlers/records-write.js +8 -26
  26. package/dist/esm/src/handlers/records-write.js.map +1 -1
  27. package/dist/esm/src/index.js +1 -1
  28. package/dist/esm/src/index.js.map +1 -1
  29. package/dist/esm/src/interfaces/protocols-configure.js +4 -9
  30. package/dist/esm/src/interfaces/protocols-configure.js.map +1 -1
  31. package/dist/esm/src/store/index-level.js +143 -6
  32. package/dist/esm/src/store/index-level.js.map +1 -1
  33. package/dist/esm/src/store/message-store-level.js +162 -23
  34. package/dist/esm/src/store/message-store-level.js.map +1 -1
  35. package/dist/esm/src/store/storage-controller.js +1 -3
  36. package/dist/esm/src/store/storage-controller.js.map +1 -1
  37. package/dist/esm/src/types/protocols-types.js +0 -10
  38. package/dist/esm/src/types/protocols-types.js.map +1 -1
  39. package/dist/esm/src/utils/filter.js +35 -1
  40. package/dist/esm/src/utils/filter.js.map +1 -1
  41. package/dist/esm/src/utils/grant-key-coverage.js +4 -6
  42. package/dist/esm/src/utils/grant-key-coverage.js.map +1 -1
  43. package/dist/esm/src/utils/messages.js +40 -14
  44. package/dist/esm/src/utils/messages.js.map +1 -1
  45. package/dist/esm/src/utils/permission-scope.js +3 -9
  46. package/dist/esm/src/utils/permission-scope.js.map +1 -1
  47. package/dist/esm/src/utils/record-limit-occupancy.js +70 -202
  48. package/dist/esm/src/utils/record-limit-occupancy.js.map +1 -1
  49. package/dist/esm/src/utils/records.js +9 -9
  50. package/dist/esm/src/utils/records.js.map +1 -1
  51. package/dist/esm/src/utils/replication.js +14 -0
  52. package/dist/esm/src/utils/replication.js.map +1 -1
  53. package/dist/esm/tests/core/records-grant-authorization.spec.js +13 -0
  54. package/dist/esm/tests/core/records-grant-authorization.spec.js.map +1 -1
  55. package/dist/esm/tests/core/replication-replay-property.spec.js +2 -2
  56. package/dist/esm/tests/core/replication-replay-property.spec.js.map +1 -1
  57. package/dist/esm/tests/core/validation-read-closure.spec.js +1 -1
  58. package/dist/esm/tests/core/validation-read-closure.spec.js.map +1 -1
  59. package/dist/esm/tests/dwn.spec.js +2 -2
  60. package/dist/esm/tests/dwn.spec.js.map +1 -1
  61. package/dist/esm/tests/features/records-delivery.spec.js +2 -5
  62. package/dist/esm/tests/features/records-delivery.spec.js.map +1 -1
  63. package/dist/esm/tests/features/records-nested-query-scope.spec.js +138 -73
  64. package/dist/esm/tests/features/records-nested-query-scope.spec.js.map +1 -1
  65. package/dist/esm/tests/features/records-record-limit.spec.js +264 -95
  66. package/dist/esm/tests/features/records-record-limit.spec.js.map +1 -1
  67. package/dist/esm/tests/fuzz/filter.fuzz.spec.js +19 -4
  68. package/dist/esm/tests/fuzz/filter.fuzz.spec.js.map +1 -1
  69. package/dist/esm/tests/handlers/messages-query.spec.js +7 -15
  70. package/dist/esm/tests/handlers/messages-query.spec.js.map +1 -1
  71. package/dist/esm/tests/handlers/messages-subscribe.spec.js +129 -1
  72. package/dist/esm/tests/handlers/messages-subscribe.spec.js.map +1 -1
  73. package/dist/esm/tests/handlers/records-write.spec.js +57 -3
  74. package/dist/esm/tests/handlers/records-write.spec.js.map +1 -1
  75. package/dist/esm/tests/store/index-level.spec.js +114 -1
  76. package/dist/esm/tests/store/index-level.spec.js.map +1 -1
  77. package/dist/esm/tests/store/message-store-cross-context.spec.js +46 -0
  78. package/dist/esm/tests/store/message-store-cross-context.spec.js.map +1 -0
  79. package/dist/esm/tests/store/message-store-level.spec.js +27 -0
  80. package/dist/esm/tests/store/message-store-level.spec.js.map +1 -1
  81. package/dist/esm/tests/store/message-store.spec.js +81 -0
  82. package/dist/esm/tests/store/message-store.spec.js.map +1 -1
  83. package/dist/esm/tests/utils/filters.spec.js +25 -4
  84. package/dist/esm/tests/utils/filters.spec.js.map +1 -1
  85. package/dist/esm/tests/utils/permission-scope.spec.js +4 -0
  86. package/dist/esm/tests/utils/permission-scope.spec.js.map +1 -1
  87. package/dist/esm/tests/utils/records.spec.js +12 -0
  88. package/dist/esm/tests/utils/records.spec.js.map +1 -1
  89. package/dist/esm/tests/validation/json-schemas/records/records-write.spec.js +3 -1
  90. package/dist/esm/tests/validation/json-schemas/records/records-write.spec.js.map +1 -1
  91. package/dist/types/generated/precompiled-validators.d.ts.map +1 -1
  92. package/dist/types/src/core/dwn-constant.d.ts +2 -2
  93. package/dist/types/src/core/dwn-error.d.ts +0 -1
  94. package/dist/types/src/core/dwn-error.d.ts.map +1 -1
  95. package/dist/types/src/core/protocol-authorization-validation.d.ts +0 -10
  96. package/dist/types/src/core/protocol-authorization-validation.d.ts.map +1 -1
  97. package/dist/types/src/core/protocol-authorization.d.ts.map +1 -1
  98. package/dist/types/src/core/validation-state-reader.d.ts.map +1 -1
  99. package/dist/types/src/handlers/messages-query.d.ts +0 -2
  100. package/dist/types/src/handlers/messages-query.d.ts.map +1 -1
  101. package/dist/types/src/handlers/messages-subscribe.d.ts +16 -0
  102. package/dist/types/src/handlers/messages-subscribe.d.ts.map +1 -1
  103. package/dist/types/src/handlers/records-count.d.ts +1 -0
  104. package/dist/types/src/handlers/records-count.d.ts.map +1 -1
  105. package/dist/types/src/handlers/records-query.d.ts.map +1 -1
  106. package/dist/types/src/handlers/records-subscribe.d.ts.map +1 -1
  107. package/dist/types/src/handlers/records-write.d.ts +3 -0
  108. package/dist/types/src/handlers/records-write.d.ts.map +1 -1
  109. package/dist/types/src/index.d.ts +3 -3
  110. package/dist/types/src/index.d.ts.map +1 -1
  111. package/dist/types/src/interfaces/protocols-configure.d.ts.map +1 -1
  112. package/dist/types/src/store/index-level.d.ts +37 -0
  113. package/dist/types/src/store/index-level.d.ts.map +1 -1
  114. package/dist/types/src/store/message-store-level.d.ts +23 -6
  115. package/dist/types/src/store/message-store-level.d.ts.map +1 -1
  116. package/dist/types/src/store/storage-controller.d.ts.map +1 -1
  117. package/dist/types/src/types/message-store.d.ts +23 -2
  118. package/dist/types/src/types/message-store.d.ts.map +1 -1
  119. package/dist/types/src/types/messages-types.d.ts +14 -0
  120. package/dist/types/src/types/messages-types.d.ts.map +1 -1
  121. package/dist/types/src/types/protocols-types.d.ts +7 -24
  122. package/dist/types/src/types/protocols-types.d.ts.map +1 -1
  123. package/dist/types/src/types/query-types.d.ts +8 -1
  124. package/dist/types/src/types/query-types.d.ts.map +1 -1
  125. package/dist/types/src/types/records-types.d.ts +2 -1
  126. package/dist/types/src/types/records-types.d.ts.map +1 -1
  127. package/dist/types/src/utils/filter.d.ts +14 -1
  128. package/dist/types/src/utils/filter.d.ts.map +1 -1
  129. package/dist/types/src/utils/grant-key-coverage.d.ts.map +1 -1
  130. package/dist/types/src/utils/messages.d.ts +8 -0
  131. package/dist/types/src/utils/messages.d.ts.map +1 -1
  132. package/dist/types/src/utils/permission-scope.d.ts +0 -2
  133. package/dist/types/src/utils/permission-scope.d.ts.map +1 -1
  134. package/dist/types/src/utils/record-limit-occupancy.d.ts +25 -12
  135. package/dist/types/src/utils/record-limit-occupancy.d.ts.map +1 -1
  136. package/dist/types/src/utils/records.d.ts +3 -2
  137. package/dist/types/src/utils/records.d.ts.map +1 -1
  138. package/dist/types/src/utils/replication.d.ts +8 -1
  139. package/dist/types/src/utils/replication.d.ts.map +1 -1
  140. package/dist/types/tests/features/records-delivery.spec.d.ts.map +1 -1
  141. package/dist/types/tests/features/records-nested-query-scope.spec.d.ts.map +1 -1
  142. package/dist/types/tests/features/records-record-limit.spec.d.ts.map +1 -1
  143. package/dist/types/tests/handlers/messages-query.spec.d.ts.map +1 -1
  144. package/dist/types/tests/handlers/messages-subscribe.spec.d.ts.map +1 -1
  145. package/dist/types/tests/handlers/records-write.spec.d.ts.map +1 -1
  146. package/dist/types/tests/store/message-store-cross-context.spec.d.ts +2 -0
  147. package/dist/types/tests/store/message-store-cross-context.spec.d.ts.map +1 -0
  148. package/dist/types/tests/store/message-store.spec.d.ts.map +1 -1
  149. package/package.json +4 -4
  150. package/src/core/dwn-constant.ts +2 -2
  151. package/src/core/dwn-error.ts +0 -2
  152. package/src/core/protocol-authorization-validation.ts +1 -33
  153. package/src/core/protocol-authorization.ts +0 -7
  154. package/src/core/validation-state-reader.ts +2 -3
  155. package/src/handlers/messages-query.ts +3 -41
  156. package/src/handlers/messages-subscribe.ts +67 -3
  157. package/src/handlers/records-count.ts +34 -13
  158. package/src/handlers/records-query.ts +14 -11
  159. package/src/handlers/records-subscribe.ts +18 -11
  160. package/src/handlers/records-write.ts +17 -32
  161. package/src/index.ts +3 -3
  162. package/src/interfaces/protocols-configure.ts +4 -13
  163. package/src/store/index-level.ts +197 -10
  164. package/src/store/message-store-level.ts +220 -27
  165. package/src/store/storage-controller.ts +1 -3
  166. package/src/types/message-store.ts +25 -2
  167. package/src/types/messages-types.ts +14 -0
  168. package/src/types/protocols-types.ts +7 -26
  169. package/src/types/query-types.ts +10 -2
  170. package/src/types/records-types.ts +2 -1
  171. package/src/utils/filter.ts +40 -3
  172. package/src/utils/grant-key-coverage.ts +4 -7
  173. package/src/utils/messages.ts +49 -14
  174. package/src/utils/permission-scope.ts +4 -11
  175. package/src/utils/record-limit-occupancy.ts +105 -293
  176. package/src/utils/records.ts +9 -9
  177. package/src/utils/replication.ts +19 -1
@@ -167,17 +167,18 @@ validate20.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": f
167
167
  export const AuthorizationDelegatedGrant = validate24;
168
168
  const schema37 = { "$id": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "properties": { "signature": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "authorDelegatedGrant": { "$ref": "https://identity.foundation/dwn/json-schemas/records-write-data-encoded.json" } } };
169
169
  const schema38 = { "$id": "https://identity.foundation/dwn/json-schemas/records-write-data-encoded.json", "$ref": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json", "unevaluatedProperties": false, "type": "object", "required": ["recordId", "authorization", "encodedData"], "properties": { "encodedData": { "type": "string" } } };
170
- const schema39 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json", "type": "object", "required": ["descriptor", "contextId"], "properties": { "recordId": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600, "pattern": "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$" }, "attestation": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json" }, "encryption": { "type": "object", "properties": { "algorithm": { "type": "string", "enum": ["A256CTR"] }, "initializationVector": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" }, "keyEncryption": { "type": "array", "minItems": 1, "items": { "oneOf": [{ "type": "object", "properties": { "algorithm": { "type": "string", "enum": ["X25519-HKDF-SHA256+A256KW"] }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "derivationScheme": { "const": "protocolPath" }, "ephemeralPublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } }, "additionalProperties": false, "required": ["algorithm", "keyId", "derivationScheme", "ephemeralPublicKey", "encryptedKey"] }, { "type": "object", "properties": { "algorithm": { "type": "string", "enum": ["X25519-HKDF-SHA256+A256KW"] }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "derivationScheme": { "const": "roleAudience" }, "protocol": { "type": "string" }, "rolePath": { "type": "string" }, "ephemeralPublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } }, "additionalProperties": false, "required": ["algorithm", "keyId", "derivationScheme", "protocol", "rolePath", "ephemeralPublicKey", "encryptedKey"] }] } } }, "additionalProperties": false, "required": ["algorithm", "initializationVector", "keyEncryption"] }, "descriptor": { "type": "object", "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Write"], "type": "string" }, "recipient": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, "protocol": { "type": "string" }, "protocolPath": { "type": "string", "pattern": "^(?:[a-zA-Z]+(/[a-zA-Z]+)*|\\$encryption/(?:audience|delivery))$" }, "schema": { "type": "string" }, "tags": { "type": "object", "minProperties": 1, "maxProperties": 10, "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "minItems": 1, "maxItems": 10, "items": { "type": "string" } }, { "type": "array", "minItems": 1, "maxItems": 10, "items": { "type": "number" } }] } }, "parentId": { "type": "string" }, "dataCid": { "type": "string" }, "dataSize": { "type": "number" }, "dateCreated": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "published": { "type": "boolean" }, "datePublished": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "dataFormat": { "type": "string" }, "permissionGrantId": { "type": "string" }, "squash": { "type": "boolean", "enum": [true] } }, "additionalProperties": false, "required": ["interface", "method", "protocol", "protocolPath", "dataCid", "dataSize", "dateCreated", "messageTimestamp", "dataFormat"], "dependencies": { "parentId": ["protocol"] }, "allOf": [{ "$comment": "rule defining `published` and `datePublished` relationship", "anyOf": [{ "properties": { "published": { "type": "boolean", "enum": [true] } }, "required": ["published", "datePublished"] }, { "properties": { "published": { "type": "boolean", "enum": [false] } }, "not": { "required": ["datePublished"] } }, { "allOf": [{ "not": { "required": ["published"] } }, { "not": { "required": ["datePublished"] } }] }] }] } } };
171
- const schema48 = { "type": "string", "pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" };
172
- const schema49 = { "type": "string", "pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" };
170
+ const schema39 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json", "type": "object", "required": ["descriptor", "contextId"], "properties": { "recordId": { "type": "string" }, "contextId": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId" }, "attestation": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-owner.json" }, "encryption": { "type": "object", "properties": { "algorithm": { "type": "string", "enum": ["A256CTR"] }, "initializationVector": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" }, "keyEncryption": { "type": "array", "minItems": 1, "items": { "oneOf": [{ "type": "object", "properties": { "algorithm": { "type": "string", "enum": ["X25519-HKDF-SHA256+A256KW"] }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "derivationScheme": { "const": "protocolPath" }, "ephemeralPublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } }, "additionalProperties": false, "required": ["algorithm", "keyId", "derivationScheme", "ephemeralPublicKey", "encryptedKey"] }, { "type": "object", "properties": { "algorithm": { "type": "string", "enum": ["X25519-HKDF-SHA256+A256KW"] }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "derivationScheme": { "const": "roleAudience" }, "protocol": { "type": "string" }, "rolePath": { "type": "string" }, "ephemeralPublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } }, "additionalProperties": false, "required": ["algorithm", "keyId", "derivationScheme", "protocol", "rolePath", "ephemeralPublicKey", "encryptedKey"] }] } } }, "additionalProperties": false, "required": ["algorithm", "initializationVector", "keyEncryption"] }, "descriptor": { "type": "object", "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Write"], "type": "string" }, "recipient": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, "protocol": { "type": "string" }, "protocolPath": { "type": "string", "pattern": "^(?:[a-zA-Z]+(/[a-zA-Z]+)*|\\$encryption/(?:audience|delivery))$" }, "schema": { "type": "string" }, "tags": { "type": "object", "minProperties": 1, "maxProperties": 10, "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "minItems": 1, "maxItems": 10, "items": { "type": "string" } }, { "type": "array", "minItems": 1, "maxItems": 10, "items": { "type": "number" } }] } }, "parentId": { "type": "string" }, "dataCid": { "type": "string" }, "dataSize": { "type": "number" }, "dateCreated": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "published": { "type": "boolean" }, "datePublished": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "dataFormat": { "type": "string" }, "permissionGrantId": { "type": "string" }, "squash": { "type": "boolean", "enum": [true] } }, "additionalProperties": false, "required": ["interface", "method", "protocol", "protocolPath", "dataCid", "dataSize", "dateCreated", "messageTimestamp", "dataFormat"], "dependencies": { "parentId": ["protocol"] }, "allOf": [{ "$comment": "rule defining `published` and `datePublished` relationship", "anyOf": [{ "properties": { "published": { "type": "boolean", "enum": [true] } }, "required": ["published", "datePublished"] }, { "properties": { "published": { "type": "boolean", "enum": [false] } }, "not": { "required": ["datePublished"] } }, { "allOf": [{ "not": { "required": ["published"] } }, { "not": { "required": ["datePublished"] } }] }] }] } } };
171
+ const schema40 = { "type": "string", "maxLength": 600, "pattern": "^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$" };
172
+ const schema49 = { "type": "string", "pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" };
173
+ const schema50 = { "type": "string", "pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" };
173
174
  const func1 = func1Mod.default ?? func1Mod;
174
175
  const func2 = Object.prototype.hasOwnProperty;
175
- const pattern7 = new RegExp("^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$", "u");
176
+ const pattern7 = new RegExp("^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$", "u");
176
177
  const pattern9 = new RegExp("^[A-Za-z0-9_-]{43}$", "u");
177
178
  const pattern15 = new RegExp("^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$", "u");
178
179
  const pattern16 = new RegExp("^(?:[a-zA-Z]+(/[a-zA-Z]+)*|\\$encryption/(?:audience|delivery))$", "u");
179
180
  const pattern17 = new RegExp("^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$", "u");
180
- const schema40 = { "$id": "https://identity.foundation/dwn/json-schemas/authorization-owner.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "properties": { "signature": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "authorDelegatedGrant": { "$ref": "https://identity.foundation/dwn/json-schemas/records-write-data-encoded.json" }, "ownerSignature": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "ownerDelegatedGrant": { "$ref": "https://identity.foundation/dwn/json-schemas/records-write-data-encoded.json" } }, "description": "`signature` can exist by itself. But if `ownerSignature` is present, then `signature` must also exist", "dependencies": { "ownerSignature": ["signature"] } };
181
+ const schema41 = { "$id": "https://identity.foundation/dwn/json-schemas/authorization-owner.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "properties": { "signature": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "authorDelegatedGrant": { "$ref": "https://identity.foundation/dwn/json-schemas/records-write-data-encoded.json" }, "ownerSignature": { "$ref": "https://identity.foundation/dwn/json-schemas/general-jws.json" }, "ownerDelegatedGrant": { "$ref": "https://identity.foundation/dwn/json-schemas/records-write-data-encoded.json" } }, "description": "`signature` can exist by itself. But if `ownerSignature` is present, then `signature` must also exist", "dependencies": { "ownerSignature": ["signature"] } };
181
182
  const wrapper0 = { validate: validate26 };
182
183
  function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
183
184
  ;
@@ -272,8 +273,8 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
272
273
  return errors === 0;
273
274
  }
274
275
  validate29.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
275
- const schema42 = { "$id": "https://identity.foundation/dwn/json-schemas/public-jwk.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "$ref": "https://identity.foundation/dwn/json-schemas/general-jwk.json", "not": { "anyOf": [{ "type": "object", "properties": { "kty": { "const": "EC" } }, "anyOf": [{ "required": ["d"] }] }, { "type": "object", "properties": { "kty": { "const": "OKP" } }, "anyOf": [{ "required": ["d"] }] }, { "type": "object", "properties": { "kty": { "const": "RSA" }, "d": {}, "p": {}, "q": {}, "dp": {}, "dq": {}, "qi": {}, "oth": { "type": "object" } }, "anyOf": [{ "required": ["d"] }, { "required": ["p"] }, { "required": ["q"] }, { "required": ["dp"] }, { "required": ["dq"] }, { "required": ["qi"] }, { "required": ["oth"] }] }] } };
276
- const schema43 = { "$id": "https://identity.foundation/dwn/json-schemas/general-jwk.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "required": ["kty"], "properties": { "alg": { "type": "string" }, "kid": { "type": "string" }, "kty": { "enum": ["EC", "RSA", "oct", "OKP"] }, "crv": { "type": "string" }, "use": { "type": "string" }, "key_ops": { "type": "string" }, "x5u": { "type": "string" }, "x5c": { "type": "string" }, "x5t": { "type": "string" }, "x5t#S256": { "type": "string" } }, "oneOf": [{ "properties": { "kty": { "const": "EC" }, "crv": { "type": "string" }, "x": { "type": "string" }, "y": { "type": "string" }, "d": { "type": "string" } }, "required": ["crv", "x"] }, { "properties": { "kty": { "const": "OKP" }, "crv": { "type": "string" }, "x": { "type": "string" }, "d": { "type": "string" } }, "required": ["crv", "x"] }, { "properties": { "kty": { "const": "RSA" }, "n": { "type": "string" }, "e": { "type": "string" }, "d": { "type": "string" }, "p": { "type": "string" }, "q": { "type": "string" }, "dp": { "type": "string" }, "dq": { "type": "string" }, "qi": { "type": "string" }, "oth": { "type": "object" } }, "required": ["n", "e"] }, { "properties": { "kty": { "const": "oct" }, "k": { "type": "string" } }, "required": ["k"] }] };
276
+ const schema43 = { "$id": "https://identity.foundation/dwn/json-schemas/public-jwk.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "$ref": "https://identity.foundation/dwn/json-schemas/general-jwk.json", "not": { "anyOf": [{ "type": "object", "properties": { "kty": { "const": "EC" } }, "anyOf": [{ "required": ["d"] }] }, { "type": "object", "properties": { "kty": { "const": "OKP" } }, "anyOf": [{ "required": ["d"] }] }, { "type": "object", "properties": { "kty": { "const": "RSA" }, "d": {}, "p": {}, "q": {}, "dp": {}, "dq": {}, "qi": {}, "oth": { "type": "object" } }, "anyOf": [{ "required": ["d"] }, { "required": ["p"] }, { "required": ["q"] }, { "required": ["dp"] }, { "required": ["dq"] }, { "required": ["qi"] }, { "required": ["oth"] }] }] } };
277
+ const schema44 = { "$id": "https://identity.foundation/dwn/json-schemas/general-jwk.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "required": ["kty"], "properties": { "alg": { "type": "string" }, "kid": { "type": "string" }, "kty": { "enum": ["EC", "RSA", "oct", "OKP"] }, "crv": { "type": "string" }, "use": { "type": "string" }, "key_ops": { "type": "string" }, "x5u": { "type": "string" }, "x5c": { "type": "string" }, "x5t": { "type": "string" }, "x5t#S256": { "type": "string" } }, "oneOf": [{ "properties": { "kty": { "const": "EC" }, "crv": { "type": "string" }, "x": { "type": "string" }, "y": { "type": "string" }, "d": { "type": "string" } }, "required": ["crv", "x"] }, { "properties": { "kty": { "const": "OKP" }, "crv": { "type": "string" }, "x": { "type": "string" }, "d": { "type": "string" } }, "required": ["crv", "x"] }, { "properties": { "kty": { "const": "RSA" }, "n": { "type": "string" }, "e": { "type": "string" }, "d": { "type": "string" }, "p": { "type": "string" }, "q": { "type": "string" }, "dp": { "type": "string" }, "dq": { "type": "string" }, "qi": { "type": "string" }, "oth": { "type": "object" } }, "required": ["n", "e"] }, { "properties": { "kty": { "const": "oct" }, "k": { "type": "string" } }, "required": ["k"] }] };
277
278
  function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/public-jwk.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate33.evaluated; if (evaluated0.dynamicProps) {
278
279
  evaluated0.props = undefined;
279
280
  } if (evaluated0.dynamicItems) {
@@ -866,7 +867,7 @@ else {
866
867
  let data23 = data.kty;
867
868
  const _errs49 = errors;
868
869
  if (!((((data23 === "EC") || (data23 === "RSA")) || (data23 === "oct")) || (data23 === "OKP"))) {
869
- validate33.errors = [{ instancePath: instancePath + "/kty", schemaPath: "https://identity.foundation/dwn/json-schemas/general-jwk.json/properties/kty/enum", keyword: "enum", params: { allowedValues: schema43.properties.kty.enum }, message: "must be equal to one of the allowed values" }];
870
+ validate33.errors = [{ instancePath: instancePath + "/kty", schemaPath: "https://identity.foundation/dwn/json-schemas/general-jwk.json/properties/kty/enum", keyword: "enum", params: { allowedValues: schema44.properties.kty.enum }, message: "must be equal to one of the allowed values" }];
870
871
  return false;
871
872
  }
872
873
  var valid6 = _errs49 === errors;
@@ -1399,21 +1400,22 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1399
1400
  if (data.contextId !== undefined) {
1400
1401
  let data1 = data.contextId;
1401
1402
  const _errs3 = errors;
1402
- if (errors === _errs3) {
1403
+ const _errs4 = errors;
1404
+ if (errors === _errs4) {
1403
1405
  if (typeof data1 === "string") {
1404
1406
  if (func1(data1) > 600) {
1405
- validate27.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/maxLength", keyword: "maxLength", params: { limit: 600 }, message: "must NOT have more than 600 characters" }];
1407
+ validate27.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId/maxLength", keyword: "maxLength", params: { limit: 600 }, message: "must NOT have more than 600 characters" }];
1406
1408
  return false;
1407
1409
  }
1408
1410
  else {
1409
1411
  if (!pattern7.test(data1)) {
1410
- validate27.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$" }, message: "must match pattern \"" + "^[a-zA-Z0-9]+(/[a-zA-Z0-9]+)*$" + "\"" }];
1412
+ validate27.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$" }, message: "must match pattern \"" + "^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$" + "\"" }];
1411
1413
  return false;
1412
1414
  }
1413
1415
  }
1414
1416
  }
1415
1417
  else {
1416
- validate27.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1418
+ validate27.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1417
1419
  return false;
1418
1420
  }
1419
1421
  }
@@ -1424,24 +1426,24 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1424
1426
  }
1425
1427
  if (valid0) {
1426
1428
  if (data.attestation !== undefined) {
1427
- const _errs5 = errors;
1429
+ const _errs6 = errors;
1428
1430
  if (!(validate21(data.attestation, { instancePath: instancePath + "/attestation", parentData: data, parentDataProperty: "attestation", rootData, dynamicAnchors }))) {
1429
1431
  vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
1430
1432
  errors = vErrors.length;
1431
1433
  }
1432
- var valid0 = _errs5 === errors;
1434
+ var valid0 = _errs6 === errors;
1433
1435
  }
1434
1436
  else {
1435
1437
  var valid0 = true;
1436
1438
  }
1437
1439
  if (valid0) {
1438
1440
  if (data.authorization !== undefined) {
1439
- const _errs6 = errors;
1441
+ const _errs7 = errors;
1440
1442
  if (!(validate29(data.authorization, { instancePath: instancePath + "/authorization", parentData: data, parentDataProperty: "authorization", rootData, dynamicAnchors }))) {
1441
1443
  vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
1442
1444
  errors = vErrors.length;
1443
1445
  }
1444
- var valid0 = _errs6 === errors;
1446
+ var valid0 = _errs7 === errors;
1445
1447
  }
1446
1448
  else {
1447
1449
  var valid0 = true;
@@ -1449,8 +1451,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1449
1451
  if (valid0) {
1450
1452
  if (data.encryption !== undefined) {
1451
1453
  let data4 = data.encryption;
1452
- const _errs7 = errors;
1453
- if (errors === _errs7) {
1454
+ const _errs8 = errors;
1455
+ if (errors === _errs8) {
1454
1456
  if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
1455
1457
  let missing1;
1456
1458
  if ((((data4.algorithm === undefined) && (missing1 = "algorithm")) || ((data4.initializationVector === undefined) && (missing1 = "initializationVector"))) || ((data4.keyEncryption === undefined) && (missing1 = "keyEncryption"))) {
@@ -1458,7 +1460,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1458
1460
  return false;
1459
1461
  }
1460
1462
  else {
1461
- const _errs9 = errors;
1463
+ const _errs10 = errors;
1462
1464
  for (const key0 in data4) {
1463
1465
  if (!(((key0 === "algorithm") || (key0 === "initializationVector")) || (key0 === "keyEncryption"))) {
1464
1466
  validate27.errors = [{ instancePath: instancePath + "/encryption", schemaPath: "#/properties/encryption/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
@@ -1466,10 +1468,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1466
1468
  break;
1467
1469
  }
1468
1470
  }
1469
- if (_errs9 === errors) {
1471
+ if (_errs10 === errors) {
1470
1472
  if (data4.algorithm !== undefined) {
1471
1473
  let data5 = data4.algorithm;
1472
- const _errs10 = errors;
1474
+ const _errs11 = errors;
1473
1475
  if (typeof data5 !== "string") {
1474
1476
  validate27.errors = [{ instancePath: instancePath + "/encryption/algorithm", schemaPath: "#/properties/encryption/properties/algorithm/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1475
1477
  return false;
@@ -1478,17 +1480,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1478
1480
  validate27.errors = [{ instancePath: instancePath + "/encryption/algorithm", schemaPath: "#/properties/encryption/properties/algorithm/enum", keyword: "enum", params: { allowedValues: schema39.properties.encryption.properties.algorithm.enum }, message: "must be equal to one of the allowed values" }];
1479
1481
  return false;
1480
1482
  }
1481
- var valid1 = _errs10 === errors;
1483
+ var valid2 = _errs11 === errors;
1482
1484
  }
1483
1485
  else {
1484
- var valid1 = true;
1486
+ var valid2 = true;
1485
1487
  }
1486
- if (valid1) {
1488
+ if (valid2) {
1487
1489
  if (data4.initializationVector !== undefined) {
1488
1490
  let data6 = data4.initializationVector;
1489
- const _errs12 = errors;
1490
1491
  const _errs13 = errors;
1491
- if (errors === _errs13) {
1492
+ const _errs14 = errors;
1493
+ if (errors === _errs14) {
1492
1494
  if (typeof data6 === "string") {
1493
1495
  if (!pattern4.test(data6)) {
1494
1496
  validate27.errors = [{ instancePath: instancePath + "/encryption/initializationVector", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]+$" + "\"" }];
@@ -1500,32 +1502,32 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1500
1502
  return false;
1501
1503
  }
1502
1504
  }
1503
- var valid1 = _errs12 === errors;
1505
+ var valid2 = _errs13 === errors;
1504
1506
  }
1505
1507
  else {
1506
- var valid1 = true;
1508
+ var valid2 = true;
1507
1509
  }
1508
- if (valid1) {
1510
+ if (valid2) {
1509
1511
  if (data4.keyEncryption !== undefined) {
1510
1512
  let data7 = data4.keyEncryption;
1511
- const _errs15 = errors;
1512
- if (errors === _errs15) {
1513
+ const _errs16 = errors;
1514
+ if (errors === _errs16) {
1513
1515
  if (Array.isArray(data7)) {
1514
1516
  if (data7.length < 1) {
1515
1517
  validate27.errors = [{ instancePath: instancePath + "/encryption/keyEncryption", schemaPath: "#/properties/encryption/properties/keyEncryption/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
1516
1518
  return false;
1517
1519
  }
1518
1520
  else {
1519
- var valid3 = true;
1521
+ var valid4 = true;
1520
1522
  const len0 = data7.length;
1521
1523
  for (let i0 = 0; i0 < len0; i0++) {
1522
1524
  let data8 = data7[i0];
1523
- const _errs17 = errors;
1524
1525
  const _errs18 = errors;
1525
- let valid4 = false;
1526
- let passing0 = null;
1527
1526
  const _errs19 = errors;
1528
- if (errors === _errs19) {
1527
+ let valid5 = false;
1528
+ let passing0 = null;
1529
+ const _errs20 = errors;
1530
+ if (errors === _errs20) {
1529
1531
  if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
1530
1532
  let missing2;
1531
1533
  if ((((((data8.algorithm === undefined) && (missing2 = "algorithm")) || ((data8.keyId === undefined) && (missing2 = "keyId"))) || ((data8.derivationScheme === undefined) && (missing2 = "derivationScheme"))) || ((data8.ephemeralPublicKey === undefined) && (missing2 = "ephemeralPublicKey"))) || ((data8.encryptedKey === undefined) && (missing2 = "encryptedKey"))) {
@@ -1539,7 +1541,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1539
1541
  errors++;
1540
1542
  }
1541
1543
  else {
1542
- const _errs21 = errors;
1544
+ const _errs22 = errors;
1543
1545
  for (const key1 in data8) {
1544
1546
  if (!(((((key1 === "algorithm") || (key1 === "keyId")) || (key1 === "derivationScheme")) || (key1 === "ephemeralPublicKey")) || (key1 === "encryptedKey"))) {
1545
1547
  const err1 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0, schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
@@ -1553,10 +1555,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1553
1555
  break;
1554
1556
  }
1555
1557
  }
1556
- if (_errs21 === errors) {
1558
+ if (_errs22 === errors) {
1557
1559
  if (data8.algorithm !== undefined) {
1558
1560
  let data9 = data8.algorithm;
1559
- const _errs22 = errors;
1561
+ const _errs23 = errors;
1560
1562
  if (typeof data9 !== "string") {
1561
1563
  const err2 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/algorithm", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/0/properties/algorithm/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1562
1564
  if (vErrors === null) {
@@ -1577,16 +1579,16 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1577
1579
  }
1578
1580
  errors++;
1579
1581
  }
1580
- var valid5 = _errs22 === errors;
1582
+ var valid6 = _errs23 === errors;
1581
1583
  }
1582
1584
  else {
1583
- var valid5 = true;
1585
+ var valid6 = true;
1584
1586
  }
1585
- if (valid5) {
1587
+ if (valid6) {
1586
1588
  if (data8.keyId !== undefined) {
1587
1589
  let data10 = data8.keyId;
1588
- const _errs24 = errors;
1589
- if (errors === _errs24) {
1590
+ const _errs25 = errors;
1591
+ if (errors === _errs25) {
1590
1592
  if (typeof data10 === "string") {
1591
1593
  if (!pattern9.test(data10)) {
1592
1594
  const err4 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/keyId", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/0/properties/keyId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]{43}$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]{43}$" + "\"" };
@@ -1610,14 +1612,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1610
1612
  errors++;
1611
1613
  }
1612
1614
  }
1613
- var valid5 = _errs24 === errors;
1615
+ var valid6 = _errs25 === errors;
1614
1616
  }
1615
1617
  else {
1616
- var valid5 = true;
1618
+ var valid6 = true;
1617
1619
  }
1618
- if (valid5) {
1620
+ if (valid6) {
1619
1621
  if (data8.derivationScheme !== undefined) {
1620
- const _errs26 = errors;
1622
+ const _errs27 = errors;
1621
1623
  if ("protocolPath" !== data8.derivationScheme) {
1622
1624
  const err6 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/derivationScheme", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/0/properties/derivationScheme/const", keyword: "const", params: { allowedValue: "protocolPath" }, message: "must be equal to constant" };
1623
1625
  if (vErrors === null) {
@@ -1628,15 +1630,15 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1628
1630
  }
1629
1631
  errors++;
1630
1632
  }
1631
- var valid5 = _errs26 === errors;
1633
+ var valid6 = _errs27 === errors;
1632
1634
  }
1633
1635
  else {
1634
- var valid5 = true;
1636
+ var valid6 = true;
1635
1637
  }
1636
- if (valid5) {
1638
+ if (valid6) {
1637
1639
  if (data8.ephemeralPublicKey !== undefined) {
1638
1640
  let data12 = data8.ephemeralPublicKey;
1639
- const _errs27 = errors;
1641
+ const _errs28 = errors;
1640
1642
  if (!(validate33(data12, { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey", parentData: data8, parentDataProperty: "ephemeralPublicKey", rootData, dynamicAnchors }))) {
1641
1643
  vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
1642
1644
  errors = vErrors.length;
@@ -1644,7 +1646,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1644
1646
  else {
1645
1647
  var props0 = validate33.evaluated.props;
1646
1648
  }
1647
- if (errors === _errs27) {
1649
+ if (errors === _errs28) {
1648
1650
  if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
1649
1651
  let missing3;
1650
1652
  if ((((data12.kty === undefined) && (missing3 = "kty")) || ((data12.crv === undefined) && (missing3 = "crv"))) || ((data12.x === undefined) && (missing3 = "x"))) {
@@ -1665,7 +1667,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1665
1667
  props0.x = true;
1666
1668
  }
1667
1669
  if (data12.kty !== undefined) {
1668
- const _errs30 = errors;
1670
+ const _errs31 = errors;
1669
1671
  if ("OKP" !== data12.kty) {
1670
1672
  const err8 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey/kty", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/0/properties/ephemeralPublicKey/properties/kty/const", keyword: "const", params: { allowedValue: "OKP" }, message: "must be equal to constant" };
1671
1673
  if (vErrors === null) {
@@ -1676,14 +1678,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1676
1678
  }
1677
1679
  errors++;
1678
1680
  }
1679
- var valid7 = _errs30 === errors;
1681
+ var valid8 = _errs31 === errors;
1680
1682
  }
1681
1683
  else {
1682
- var valid7 = true;
1684
+ var valid8 = true;
1683
1685
  }
1684
- if (valid7) {
1686
+ if (valid8) {
1685
1687
  if (data12.crv !== undefined) {
1686
- const _errs31 = errors;
1688
+ const _errs32 = errors;
1687
1689
  if ("X25519" !== data12.crv) {
1688
1690
  const err9 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey/crv", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/0/properties/ephemeralPublicKey/properties/crv/const", keyword: "const", params: { allowedValue: "X25519" }, message: "must be equal to constant" };
1689
1691
  if (vErrors === null) {
@@ -1694,17 +1696,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1694
1696
  }
1695
1697
  errors++;
1696
1698
  }
1697
- var valid7 = _errs31 === errors;
1699
+ var valid8 = _errs32 === errors;
1698
1700
  }
1699
1701
  else {
1700
- var valid7 = true;
1702
+ var valid8 = true;
1701
1703
  }
1702
- if (valid7) {
1704
+ if (valid8) {
1703
1705
  if (data12.x !== undefined) {
1704
1706
  let data15 = data12.x;
1705
- const _errs32 = errors;
1706
1707
  const _errs33 = errors;
1707
- if (errors === _errs33) {
1708
+ const _errs34 = errors;
1709
+ if (errors === _errs34) {
1708
1710
  if (typeof data15 === "string") {
1709
1711
  if (!pattern4.test(data15)) {
1710
1712
  const err10 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey/x", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]+$" + "\"" };
@@ -1728,10 +1730,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1728
1730
  errors++;
1729
1731
  }
1730
1732
  }
1731
- var valid7 = _errs32 === errors;
1733
+ var valid8 = _errs33 === errors;
1732
1734
  }
1733
1735
  else {
1734
- var valid7 = true;
1736
+ var valid8 = true;
1735
1737
  }
1736
1738
  }
1737
1739
  }
@@ -1748,17 +1750,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1748
1750
  errors++;
1749
1751
  }
1750
1752
  }
1751
- var valid5 = _errs27 === errors;
1753
+ var valid6 = _errs28 === errors;
1752
1754
  }
1753
1755
  else {
1754
- var valid5 = true;
1756
+ var valid6 = true;
1755
1757
  }
1756
- if (valid5) {
1758
+ if (valid6) {
1757
1759
  if (data8.encryptedKey !== undefined) {
1758
1760
  let data16 = data8.encryptedKey;
1759
- const _errs35 = errors;
1760
1761
  const _errs36 = errors;
1761
- if (errors === _errs36) {
1762
+ const _errs37 = errors;
1763
+ if (errors === _errs37) {
1762
1764
  if (typeof data16 === "string") {
1763
1765
  if (!pattern4.test(data16)) {
1764
1766
  const err13 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/encryptedKey", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]+$" + "\"" };
@@ -1782,10 +1784,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1782
1784
  errors++;
1783
1785
  }
1784
1786
  }
1785
- var valid5 = _errs35 === errors;
1787
+ var valid6 = _errs36 === errors;
1786
1788
  }
1787
1789
  else {
1788
- var valid5 = true;
1790
+ var valid6 = true;
1789
1791
  }
1790
1792
  }
1791
1793
  }
@@ -1805,14 +1807,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1805
1807
  errors++;
1806
1808
  }
1807
1809
  }
1808
- var _valid0 = _errs19 === errors;
1810
+ var _valid0 = _errs20 === errors;
1809
1811
  if (_valid0) {
1810
- valid4 = true;
1812
+ valid5 = true;
1811
1813
  passing0 = 0;
1812
1814
  var props1 = true;
1813
1815
  }
1814
- const _errs38 = errors;
1815
- if (errors === _errs38) {
1816
+ const _errs39 = errors;
1817
+ if (errors === _errs39) {
1816
1818
  if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
1817
1819
  let missing4;
1818
1820
  if ((((((((data8.algorithm === undefined) && (missing4 = "algorithm")) || ((data8.keyId === undefined) && (missing4 = "keyId"))) || ((data8.derivationScheme === undefined) && (missing4 = "derivationScheme"))) || ((data8.protocol === undefined) && (missing4 = "protocol"))) || ((data8.rolePath === undefined) && (missing4 = "rolePath"))) || ((data8.ephemeralPublicKey === undefined) && (missing4 = "ephemeralPublicKey"))) || ((data8.encryptedKey === undefined) && (missing4 = "encryptedKey"))) {
@@ -1826,7 +1828,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1826
1828
  errors++;
1827
1829
  }
1828
1830
  else {
1829
- const _errs40 = errors;
1831
+ const _errs41 = errors;
1830
1832
  for (const key2 in data8) {
1831
1833
  if (!(((((((key2 === "algorithm") || (key2 === "keyId")) || (key2 === "derivationScheme")) || (key2 === "protocol")) || (key2 === "rolePath")) || (key2 === "ephemeralPublicKey")) || (key2 === "encryptedKey"))) {
1832
1834
  const err17 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0, schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
@@ -1840,10 +1842,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1840
1842
  break;
1841
1843
  }
1842
1844
  }
1843
- if (_errs40 === errors) {
1845
+ if (_errs41 === errors) {
1844
1846
  if (data8.algorithm !== undefined) {
1845
1847
  let data17 = data8.algorithm;
1846
- const _errs41 = errors;
1848
+ const _errs42 = errors;
1847
1849
  if (typeof data17 !== "string") {
1848
1850
  const err18 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/algorithm", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/algorithm/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1849
1851
  if (vErrors === null) {
@@ -1864,16 +1866,16 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1864
1866
  }
1865
1867
  errors++;
1866
1868
  }
1867
- var valid10 = _errs41 === errors;
1869
+ var valid11 = _errs42 === errors;
1868
1870
  }
1869
1871
  else {
1870
- var valid10 = true;
1872
+ var valid11 = true;
1871
1873
  }
1872
- if (valid10) {
1874
+ if (valid11) {
1873
1875
  if (data8.keyId !== undefined) {
1874
1876
  let data18 = data8.keyId;
1875
- const _errs43 = errors;
1876
- if (errors === _errs43) {
1877
+ const _errs44 = errors;
1878
+ if (errors === _errs44) {
1877
1879
  if (typeof data18 === "string") {
1878
1880
  if (!pattern9.test(data18)) {
1879
1881
  const err20 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/keyId", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/keyId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]{43}$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]{43}$" + "\"" };
@@ -1897,14 +1899,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1897
1899
  errors++;
1898
1900
  }
1899
1901
  }
1900
- var valid10 = _errs43 === errors;
1902
+ var valid11 = _errs44 === errors;
1901
1903
  }
1902
1904
  else {
1903
- var valid10 = true;
1905
+ var valid11 = true;
1904
1906
  }
1905
- if (valid10) {
1907
+ if (valid11) {
1906
1908
  if (data8.derivationScheme !== undefined) {
1907
- const _errs45 = errors;
1909
+ const _errs46 = errors;
1908
1910
  if ("roleAudience" !== data8.derivationScheme) {
1909
1911
  const err22 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/derivationScheme", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/derivationScheme/const", keyword: "const", params: { allowedValue: "roleAudience" }, message: "must be equal to constant" };
1910
1912
  if (vErrors === null) {
@@ -1915,14 +1917,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1915
1917
  }
1916
1918
  errors++;
1917
1919
  }
1918
- var valid10 = _errs45 === errors;
1920
+ var valid11 = _errs46 === errors;
1919
1921
  }
1920
1922
  else {
1921
- var valid10 = true;
1923
+ var valid11 = true;
1922
1924
  }
1923
- if (valid10) {
1925
+ if (valid11) {
1924
1926
  if (data8.protocol !== undefined) {
1925
- const _errs46 = errors;
1927
+ const _errs47 = errors;
1926
1928
  if (typeof data8.protocol !== "string") {
1927
1929
  const err23 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/protocol", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1928
1930
  if (vErrors === null) {
@@ -1933,14 +1935,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1933
1935
  }
1934
1936
  errors++;
1935
1937
  }
1936
- var valid10 = _errs46 === errors;
1938
+ var valid11 = _errs47 === errors;
1937
1939
  }
1938
1940
  else {
1939
- var valid10 = true;
1941
+ var valid11 = true;
1940
1942
  }
1941
- if (valid10) {
1943
+ if (valid11) {
1942
1944
  if (data8.rolePath !== undefined) {
1943
- const _errs48 = errors;
1945
+ const _errs49 = errors;
1944
1946
  if (typeof data8.rolePath !== "string") {
1945
1947
  const err24 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/rolePath", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/rolePath/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1946
1948
  if (vErrors === null) {
@@ -1951,15 +1953,15 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1951
1953
  }
1952
1954
  errors++;
1953
1955
  }
1954
- var valid10 = _errs48 === errors;
1956
+ var valid11 = _errs49 === errors;
1955
1957
  }
1956
1958
  else {
1957
- var valid10 = true;
1959
+ var valid11 = true;
1958
1960
  }
1959
- if (valid10) {
1961
+ if (valid11) {
1960
1962
  if (data8.ephemeralPublicKey !== undefined) {
1961
1963
  let data22 = data8.ephemeralPublicKey;
1962
- const _errs50 = errors;
1964
+ const _errs51 = errors;
1963
1965
  if (!(validate33(data22, { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey", parentData: data8, parentDataProperty: "ephemeralPublicKey", rootData, dynamicAnchors }))) {
1964
1966
  vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
1965
1967
  errors = vErrors.length;
@@ -1967,7 +1969,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1967
1969
  else {
1968
1970
  var props2 = validate33.evaluated.props;
1969
1971
  }
1970
- if (errors === _errs50) {
1972
+ if (errors === _errs51) {
1971
1973
  if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
1972
1974
  let missing5;
1973
1975
  if ((((data22.kty === undefined) && (missing5 = "kty")) || ((data22.crv === undefined) && (missing5 = "crv"))) || ((data22.x === undefined) && (missing5 = "x"))) {
@@ -1988,7 +1990,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1988
1990
  props2.x = true;
1989
1991
  }
1990
1992
  if (data22.kty !== undefined) {
1991
- const _errs53 = errors;
1993
+ const _errs54 = errors;
1992
1994
  if ("OKP" !== data22.kty) {
1993
1995
  const err26 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey/kty", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/ephemeralPublicKey/properties/kty/const", keyword: "const", params: { allowedValue: "OKP" }, message: "must be equal to constant" };
1994
1996
  if (vErrors === null) {
@@ -1999,14 +2001,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
1999
2001
  }
2000
2002
  errors++;
2001
2003
  }
2002
- var valid12 = _errs53 === errors;
2004
+ var valid13 = _errs54 === errors;
2003
2005
  }
2004
2006
  else {
2005
- var valid12 = true;
2007
+ var valid13 = true;
2006
2008
  }
2007
- if (valid12) {
2009
+ if (valid13) {
2008
2010
  if (data22.crv !== undefined) {
2009
- const _errs54 = errors;
2011
+ const _errs55 = errors;
2010
2012
  if ("X25519" !== data22.crv) {
2011
2013
  const err27 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey/crv", schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf/1/properties/ephemeralPublicKey/properties/crv/const", keyword: "const", params: { allowedValue: "X25519" }, message: "must be equal to constant" };
2012
2014
  if (vErrors === null) {
@@ -2017,17 +2019,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2017
2019
  }
2018
2020
  errors++;
2019
2021
  }
2020
- var valid12 = _errs54 === errors;
2022
+ var valid13 = _errs55 === errors;
2021
2023
  }
2022
2024
  else {
2023
- var valid12 = true;
2025
+ var valid13 = true;
2024
2026
  }
2025
- if (valid12) {
2027
+ if (valid13) {
2026
2028
  if (data22.x !== undefined) {
2027
2029
  let data25 = data22.x;
2028
- const _errs55 = errors;
2029
2030
  const _errs56 = errors;
2030
- if (errors === _errs56) {
2031
+ const _errs57 = errors;
2032
+ if (errors === _errs57) {
2031
2033
  if (typeof data25 === "string") {
2032
2034
  if (!pattern4.test(data25)) {
2033
2035
  const err28 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/ephemeralPublicKey/x", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]+$" + "\"" };
@@ -2051,10 +2053,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2051
2053
  errors++;
2052
2054
  }
2053
2055
  }
2054
- var valid12 = _errs55 === errors;
2056
+ var valid13 = _errs56 === errors;
2055
2057
  }
2056
2058
  else {
2057
- var valid12 = true;
2059
+ var valid13 = true;
2058
2060
  }
2059
2061
  }
2060
2062
  }
@@ -2071,17 +2073,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2071
2073
  errors++;
2072
2074
  }
2073
2075
  }
2074
- var valid10 = _errs50 === errors;
2076
+ var valid11 = _errs51 === errors;
2075
2077
  }
2076
2078
  else {
2077
- var valid10 = true;
2079
+ var valid11 = true;
2078
2080
  }
2079
- if (valid10) {
2081
+ if (valid11) {
2080
2082
  if (data8.encryptedKey !== undefined) {
2081
2083
  let data26 = data8.encryptedKey;
2082
- const _errs58 = errors;
2083
2084
  const _errs59 = errors;
2084
- if (errors === _errs59) {
2085
+ const _errs60 = errors;
2086
+ if (errors === _errs60) {
2085
2087
  if (typeof data26 === "string") {
2086
2088
  if (!pattern4.test(data26)) {
2087
2089
  const err31 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0 + "/encryptedKey", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: "must match pattern \"" + "^[A-Za-z0-9_-]+$" + "\"" };
@@ -2105,10 +2107,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2105
2107
  errors++;
2106
2108
  }
2107
2109
  }
2108
- var valid10 = _errs58 === errors;
2110
+ var valid11 = _errs59 === errors;
2109
2111
  }
2110
2112
  else {
2111
- var valid10 = true;
2113
+ var valid11 = true;
2112
2114
  }
2113
2115
  }
2114
2116
  }
@@ -2130,21 +2132,21 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2130
2132
  errors++;
2131
2133
  }
2132
2134
  }
2133
- var _valid0 = _errs38 === errors;
2134
- if (_valid0 && valid4) {
2135
- valid4 = false;
2135
+ var _valid0 = _errs39 === errors;
2136
+ if (_valid0 && valid5) {
2137
+ valid5 = false;
2136
2138
  passing0 = [passing0, 1];
2137
2139
  }
2138
2140
  else {
2139
2141
  if (_valid0) {
2140
- valid4 = true;
2142
+ valid5 = true;
2141
2143
  passing0 = 1;
2142
2144
  if (props1 !== true) {
2143
2145
  props1 = true;
2144
2146
  }
2145
2147
  }
2146
2148
  }
2147
- if (!valid4) {
2149
+ if (!valid5) {
2148
2150
  const err34 = { instancePath: instancePath + "/encryption/keyEncryption/" + i0, schemaPath: "#/properties/encryption/properties/keyEncryption/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
2149
2151
  if (vErrors === null) {
2150
2152
  vErrors = [err34];
@@ -2157,18 +2159,18 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2157
2159
  return false;
2158
2160
  }
2159
2161
  else {
2160
- errors = _errs18;
2162
+ errors = _errs19;
2161
2163
  if (vErrors !== null) {
2162
- if (_errs18) {
2163
- vErrors.length = _errs18;
2164
+ if (_errs19) {
2165
+ vErrors.length = _errs19;
2164
2166
  }
2165
2167
  else {
2166
2168
  vErrors = null;
2167
2169
  }
2168
2170
  }
2169
2171
  }
2170
- var valid3 = _errs17 === errors;
2171
- if (!valid3) {
2172
+ var valid4 = _errs18 === errors;
2173
+ if (!valid4) {
2172
2174
  break;
2173
2175
  }
2174
2176
  }
@@ -2179,10 +2181,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2179
2181
  return false;
2180
2182
  }
2181
2183
  }
2182
- var valid1 = _errs15 === errors;
2184
+ var valid2 = _errs16 === errors;
2183
2185
  }
2184
2186
  else {
2185
- var valid1 = true;
2187
+ var valid2 = true;
2186
2188
  }
2187
2189
  }
2188
2190
  }
@@ -2194,7 +2196,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2194
2196
  return false;
2195
2197
  }
2196
2198
  }
2197
- var valid0 = _errs7 === errors;
2199
+ var valid0 = _errs8 === errors;
2198
2200
  }
2199
2201
  else {
2200
2202
  var valid0 = true;
@@ -2202,10 +2204,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2202
2204
  if (valid0) {
2203
2205
  if (data.descriptor !== undefined) {
2204
2206
  let data27 = data.descriptor;
2205
- const _errs61 = errors;
2206
- const _errs65 = errors;
2207
- let valid16 = false;
2207
+ const _errs62 = errors;
2208
2208
  const _errs66 = errors;
2209
+ let valid17 = false;
2210
+ const _errs67 = errors;
2209
2211
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2210
2212
  let missing6;
2211
2213
  if (((data27.published === undefined) && (missing6 = "published")) || ((data27.datePublished === undefined) && (missing6 = "datePublished"))) {
@@ -2244,15 +2246,15 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2244
2246
  }
2245
2247
  }
2246
2248
  }
2247
- var _valid1 = _errs66 === errors;
2248
- valid16 = valid16 || _valid1;
2249
+ var _valid1 = _errs67 === errors;
2250
+ valid17 = valid17 || _valid1;
2249
2251
  if (_valid1) {
2250
2252
  var props3 = {};
2251
2253
  props3.published = true;
2252
2254
  }
2253
- const _errs69 = errors;
2254
2255
  const _errs70 = errors;
2255
2256
  const _errs71 = errors;
2257
+ const _errs72 = errors;
2256
2258
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2257
2259
  let missing7;
2258
2260
  if ((data27.datePublished === undefined) && (missing7 = "datePublished")) {
@@ -2266,8 +2268,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2266
2268
  errors++;
2267
2269
  }
2268
2270
  }
2269
- var valid18 = _errs71 === errors;
2270
- if (valid18) {
2271
+ var valid19 = _errs72 === errors;
2272
+ if (valid19) {
2271
2273
  const err39 = { instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/allOf/0/anyOf/1/not", keyword: "not", params: {}, message: "must NOT be valid" };
2272
2274
  if (vErrors === null) {
2273
2275
  vErrors = [err39];
@@ -2278,17 +2280,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2278
2280
  errors++;
2279
2281
  }
2280
2282
  else {
2281
- errors = _errs70;
2283
+ errors = _errs71;
2282
2284
  if (vErrors !== null) {
2283
- if (_errs70) {
2284
- vErrors.length = _errs70;
2285
+ if (_errs71) {
2286
+ vErrors.length = _errs71;
2285
2287
  }
2286
2288
  else {
2287
2289
  vErrors = null;
2288
2290
  }
2289
2291
  }
2290
2292
  }
2291
- if (errors === _errs69) {
2293
+ if (errors === _errs70) {
2292
2294
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2293
2295
  if (data27.published !== undefined) {
2294
2296
  let data29 = data27.published;
@@ -2315,18 +2317,18 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2315
2317
  }
2316
2318
  }
2317
2319
  }
2318
- var _valid1 = _errs69 === errors;
2319
- valid16 = valid16 || _valid1;
2320
+ var _valid1 = _errs70 === errors;
2321
+ valid17 = valid17 || _valid1;
2320
2322
  if (_valid1) {
2321
2323
  if (props3 !== true) {
2322
2324
  props3 = props3 || {};
2323
2325
  props3.published = true;
2324
2326
  }
2325
2327
  }
2326
- const _errs74 = errors;
2327
2328
  const _errs75 = errors;
2328
2329
  const _errs76 = errors;
2329
2330
  const _errs77 = errors;
2331
+ const _errs78 = errors;
2330
2332
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2331
2333
  let missing8;
2332
2334
  if ((data27.published === undefined) && (missing8 = "published")) {
@@ -2340,8 +2342,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2340
2342
  errors++;
2341
2343
  }
2342
2344
  }
2343
- var valid21 = _errs77 === errors;
2344
- if (valid21) {
2345
+ var valid22 = _errs78 === errors;
2346
+ if (valid22) {
2345
2347
  const err43 = { instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/allOf/0/anyOf/2/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
2346
2348
  if (vErrors === null) {
2347
2349
  vErrors = [err43];
@@ -2352,21 +2354,21 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2352
2354
  errors++;
2353
2355
  }
2354
2356
  else {
2355
- errors = _errs76;
2357
+ errors = _errs77;
2356
2358
  if (vErrors !== null) {
2357
- if (_errs76) {
2358
- vErrors.length = _errs76;
2359
+ if (_errs77) {
2360
+ vErrors.length = _errs77;
2359
2361
  }
2360
2362
  else {
2361
2363
  vErrors = null;
2362
2364
  }
2363
2365
  }
2364
2366
  }
2365
- var valid20 = _errs75 === errors;
2366
- if (valid20) {
2367
- const _errs78 = errors;
2367
+ var valid21 = _errs76 === errors;
2368
+ if (valid21) {
2368
2369
  const _errs79 = errors;
2369
2370
  const _errs80 = errors;
2371
+ const _errs81 = errors;
2370
2372
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2371
2373
  let missing9;
2372
2374
  if ((data27.datePublished === undefined) && (missing9 = "datePublished")) {
@@ -2380,8 +2382,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2380
2382
  errors++;
2381
2383
  }
2382
2384
  }
2383
- var valid22 = _errs80 === errors;
2384
- if (valid22) {
2385
+ var valid23 = _errs81 === errors;
2386
+ if (valid23) {
2385
2387
  const err45 = { instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/allOf/0/anyOf/2/allOf/1/not", keyword: "not", params: {}, message: "must NOT be valid" };
2386
2388
  if (vErrors === null) {
2387
2389
  vErrors = [err45];
@@ -2392,21 +2394,21 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2392
2394
  errors++;
2393
2395
  }
2394
2396
  else {
2395
- errors = _errs79;
2397
+ errors = _errs80;
2396
2398
  if (vErrors !== null) {
2397
- if (_errs79) {
2398
- vErrors.length = _errs79;
2399
+ if (_errs80) {
2400
+ vErrors.length = _errs80;
2399
2401
  }
2400
2402
  else {
2401
2403
  vErrors = null;
2402
2404
  }
2403
2405
  }
2404
2406
  }
2405
- var valid20 = _errs78 === errors;
2407
+ var valid21 = _errs79 === errors;
2406
2408
  }
2407
- var _valid1 = _errs74 === errors;
2408
- valid16 = valid16 || _valid1;
2409
- if (!valid16) {
2409
+ var _valid1 = _errs75 === errors;
2410
+ valid17 = valid17 || _valid1;
2411
+ if (!valid17) {
2410
2412
  const err46 = { instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/allOf/0/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2411
2413
  if (vErrors === null) {
2412
2414
  vErrors = [err46];
@@ -2419,17 +2421,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2419
2421
  return false;
2420
2422
  }
2421
2423
  else {
2422
- errors = _errs65;
2424
+ errors = _errs66;
2423
2425
  if (vErrors !== null) {
2424
- if (_errs65) {
2425
- vErrors.length = _errs65;
2426
+ if (_errs66) {
2427
+ vErrors.length = _errs66;
2426
2428
  }
2427
2429
  else {
2428
2430
  vErrors = null;
2429
2431
  }
2430
2432
  }
2431
2433
  }
2432
- if (errors === _errs61) {
2434
+ if (errors === _errs62) {
2433
2435
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2434
2436
  let missing10;
2435
2437
  if ((((((((((data27.interface === undefined) && (missing10 = "interface")) || ((data27.method === undefined) && (missing10 = "method"))) || ((data27.protocol === undefined) && (missing10 = "protocol"))) || ((data27.protocolPath === undefined) && (missing10 = "protocolPath"))) || ((data27.dataCid === undefined) && (missing10 = "dataCid"))) || ((data27.dataSize === undefined) && (missing10 = "dataSize"))) || ((data27.dateCreated === undefined) && (missing10 = "dateCreated"))) || ((data27.messageTimestamp === undefined) && (missing10 = "messageTimestamp"))) || ((data27.dataFormat === undefined) && (missing10 = "dataFormat"))) {
@@ -2437,7 +2439,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2437
2439
  return false;
2438
2440
  }
2439
2441
  else {
2440
- const _errs81 = errors;
2442
+ const _errs82 = errors;
2441
2443
  for (const key3 in data27) {
2442
2444
  if (!(func2.call(schema39.properties.descriptor.properties, key3))) {
2443
2445
  validate27.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
@@ -2445,7 +2447,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2445
2447
  break;
2446
2448
  }
2447
2449
  }
2448
- if (_errs81 === errors) {
2450
+ if (_errs82 === errors) {
2449
2451
  let missing11;
2450
2452
  if (data27.parentId !== undefined && ((data27.protocol === undefined) && (missing11 = "protocol"))) {
2451
2453
  validate27.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/dependencies", keyword: "dependencies", params: { property: "parentId",
@@ -2457,7 +2459,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2457
2459
  else {
2458
2460
  if (data27.interface !== undefined) {
2459
2461
  let data30 = data27.interface;
2460
- const _errs82 = errors;
2462
+ const _errs83 = errors;
2461
2463
  if (typeof data30 !== "string") {
2462
2464
  validate27.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2463
2465
  return false;
@@ -2466,15 +2468,15 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2466
2468
  validate27.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema39.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
2467
2469
  return false;
2468
2470
  }
2469
- var valid24 = _errs82 === errors;
2471
+ var valid25 = _errs83 === errors;
2470
2472
  }
2471
2473
  else {
2472
- var valid24 = true;
2474
+ var valid25 = true;
2473
2475
  }
2474
- if (valid24) {
2476
+ if (valid25) {
2475
2477
  if (data27.method !== undefined) {
2476
2478
  let data31 = data27.method;
2477
- const _errs84 = errors;
2479
+ const _errs85 = errors;
2478
2480
  if (typeof data31 !== "string") {
2479
2481
  validate27.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2480
2482
  return false;
@@ -2483,17 +2485,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2483
2485
  validate27.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema39.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
2484
2486
  return false;
2485
2487
  }
2486
- var valid24 = _errs84 === errors;
2488
+ var valid25 = _errs85 === errors;
2487
2489
  }
2488
2490
  else {
2489
- var valid24 = true;
2491
+ var valid25 = true;
2490
2492
  }
2491
- if (valid24) {
2493
+ if (valid25) {
2492
2494
  if (data27.recipient !== undefined) {
2493
2495
  let data32 = data27.recipient;
2494
- const _errs86 = errors;
2495
2496
  const _errs87 = errors;
2496
- if (errors === _errs87) {
2497
+ const _errs88 = errors;
2498
+ if (errors === _errs88) {
2497
2499
  if (typeof data32 === "string") {
2498
2500
  if (!pattern15.test(data32)) {
2499
2501
  validate27.errors = [{ instancePath: instancePath + "/descriptor/recipient", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did/pattern", keyword: "pattern", params: { pattern: "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" }, message: "must match pattern \"" + "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" + "\"" }];
@@ -2505,28 +2507,28 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2505
2507
  return false;
2506
2508
  }
2507
2509
  }
2508
- var valid24 = _errs86 === errors;
2510
+ var valid25 = _errs87 === errors;
2509
2511
  }
2510
2512
  else {
2511
- var valid24 = true;
2513
+ var valid25 = true;
2512
2514
  }
2513
- if (valid24) {
2515
+ if (valid25) {
2514
2516
  if (data27.protocol !== undefined) {
2515
- const _errs89 = errors;
2517
+ const _errs90 = errors;
2516
2518
  if (typeof data27.protocol !== "string") {
2517
2519
  validate27.errors = [{ instancePath: instancePath + "/descriptor/protocol", schemaPath: "#/properties/descriptor/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2518
2520
  return false;
2519
2521
  }
2520
- var valid24 = _errs89 === errors;
2522
+ var valid25 = _errs90 === errors;
2521
2523
  }
2522
2524
  else {
2523
- var valid24 = true;
2525
+ var valid25 = true;
2524
2526
  }
2525
- if (valid24) {
2527
+ if (valid25) {
2526
2528
  if (data27.protocolPath !== undefined) {
2527
2529
  let data34 = data27.protocolPath;
2528
- const _errs91 = errors;
2529
- if (errors === _errs91) {
2530
+ const _errs92 = errors;
2531
+ if (errors === _errs92) {
2530
2532
  if (typeof data34 === "string") {
2531
2533
  if (!pattern16.test(data34)) {
2532
2534
  validate27.errors = [{ instancePath: instancePath + "/descriptor/protocolPath", schemaPath: "#/properties/descriptor/properties/protocolPath/pattern", keyword: "pattern", params: { pattern: "^(?:[a-zA-Z]+(/[a-zA-Z]+)*|\\$encryption/(?:audience|delivery))$" }, message: "must match pattern \"" + "^(?:[a-zA-Z]+(/[a-zA-Z]+)*|\\$encryption/(?:audience|delivery))$" + "\"" }];
@@ -2538,28 +2540,28 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2538
2540
  return false;
2539
2541
  }
2540
2542
  }
2541
- var valid24 = _errs91 === errors;
2543
+ var valid25 = _errs92 === errors;
2542
2544
  }
2543
2545
  else {
2544
- var valid24 = true;
2546
+ var valid25 = true;
2545
2547
  }
2546
- if (valid24) {
2548
+ if (valid25) {
2547
2549
  if (data27.schema !== undefined) {
2548
- const _errs93 = errors;
2550
+ const _errs94 = errors;
2549
2551
  if (typeof data27.schema !== "string") {
2550
2552
  validate27.errors = [{ instancePath: instancePath + "/descriptor/schema", schemaPath: "#/properties/descriptor/properties/schema/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2551
2553
  return false;
2552
2554
  }
2553
- var valid24 = _errs93 === errors;
2555
+ var valid25 = _errs94 === errors;
2554
2556
  }
2555
2557
  else {
2556
- var valid24 = true;
2558
+ var valid25 = true;
2557
2559
  }
2558
- if (valid24) {
2560
+ if (valid25) {
2559
2561
  if (data27.tags !== undefined) {
2560
2562
  let data36 = data27.tags;
2561
- const _errs95 = errors;
2562
- if (errors === _errs95) {
2563
+ const _errs96 = errors;
2564
+ if (errors === _errs96) {
2563
2565
  if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
2564
2566
  if (Object.keys(data36).length > 10) {
2565
2567
  validate27.errors = [{ instancePath: instancePath + "/descriptor/tags", schemaPath: "#/properties/descriptor/properties/tags/maxProperties", keyword: "maxProperties", params: { limit: 10 }, message: "must NOT have more than 10 properties" }];
@@ -2573,11 +2575,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2573
2575
  else {
2574
2576
  for (const key4 in data36) {
2575
2577
  let data37 = data36[key4];
2576
- const _errs98 = errors;
2577
2578
  const _errs99 = errors;
2578
- let valid27 = false;
2579
- let passing1 = null;
2580
2579
  const _errs100 = errors;
2580
+ let valid28 = false;
2581
+ let passing1 = null;
2582
+ const _errs101 = errors;
2581
2583
  if (typeof data37 !== "string") {
2582
2584
  const err47 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2583
2585
  if (vErrors === null) {
@@ -2588,12 +2590,12 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2588
2590
  }
2589
2591
  errors++;
2590
2592
  }
2591
- var _valid2 = _errs100 === errors;
2593
+ var _valid2 = _errs101 === errors;
2592
2594
  if (_valid2) {
2593
- valid27 = true;
2595
+ valid28 = true;
2594
2596
  passing1 = 0;
2595
2597
  }
2596
- const _errs102 = errors;
2598
+ const _errs103 = errors;
2597
2599
  if (!((typeof data37 == "number") && (isFinite(data37)))) {
2598
2600
  const err48 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/1/type", keyword: "type", params: { type: "number" }, message: "must be number" };
2599
2601
  if (vErrors === null) {
@@ -2604,17 +2606,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2604
2606
  }
2605
2607
  errors++;
2606
2608
  }
2607
- var _valid2 = _errs102 === errors;
2608
- if (_valid2 && valid27) {
2609
- valid27 = false;
2609
+ var _valid2 = _errs103 === errors;
2610
+ if (_valid2 && valid28) {
2611
+ valid28 = false;
2610
2612
  passing1 = [passing1, 1];
2611
2613
  }
2612
2614
  else {
2613
2615
  if (_valid2) {
2614
- valid27 = true;
2616
+ valid28 = true;
2615
2617
  passing1 = 1;
2616
2618
  }
2617
- const _errs104 = errors;
2619
+ const _errs105 = errors;
2618
2620
  if (typeof data37 !== "boolean") {
2619
2621
  const err49 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/2/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2620
2622
  if (vErrors === null) {
@@ -2625,18 +2627,18 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2625
2627
  }
2626
2628
  errors++;
2627
2629
  }
2628
- var _valid2 = _errs104 === errors;
2629
- if (_valid2 && valid27) {
2630
- valid27 = false;
2630
+ var _valid2 = _errs105 === errors;
2631
+ if (_valid2 && valid28) {
2632
+ valid28 = false;
2631
2633
  passing1 = [passing1, 2];
2632
2634
  }
2633
2635
  else {
2634
2636
  if (_valid2) {
2635
- valid27 = true;
2637
+ valid28 = true;
2636
2638
  passing1 = 2;
2637
2639
  }
2638
- const _errs106 = errors;
2639
- if (errors === _errs106) {
2640
+ const _errs107 = errors;
2641
+ if (errors === _errs107) {
2640
2642
  if (Array.isArray(data37)) {
2641
2643
  if (data37.length > 10) {
2642
2644
  const err50 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/3/maxItems", keyword: "maxItems", params: { limit: 10 }, message: "must NOT have more than 10 items" };
@@ -2660,10 +2662,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2660
2662
  errors++;
2661
2663
  }
2662
2664
  else {
2663
- var valid28 = true;
2665
+ var valid29 = true;
2664
2666
  const len1 = data37.length;
2665
2667
  for (let i1 = 0; i1 < len1; i1++) {
2666
- const _errs108 = errors;
2668
+ const _errs109 = errors;
2667
2669
  if (typeof data37[i1] !== "string") {
2668
2670
  const err52 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i1, schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/3/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2669
2671
  if (vErrors === null) {
@@ -2674,8 +2676,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2674
2676
  }
2675
2677
  errors++;
2676
2678
  }
2677
- var valid28 = _errs108 === errors;
2678
- if (!valid28) {
2679
+ var valid29 = _errs109 === errors;
2680
+ if (!valid29) {
2679
2681
  break;
2680
2682
  }
2681
2683
  }
@@ -2693,19 +2695,19 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2693
2695
  errors++;
2694
2696
  }
2695
2697
  }
2696
- var _valid2 = _errs106 === errors;
2697
- if (_valid2 && valid27) {
2698
- valid27 = false;
2698
+ var _valid2 = _errs107 === errors;
2699
+ if (_valid2 && valid28) {
2700
+ valid28 = false;
2699
2701
  passing1 = [passing1, 3];
2700
2702
  }
2701
2703
  else {
2702
2704
  if (_valid2) {
2703
- valid27 = true;
2705
+ valid28 = true;
2704
2706
  passing1 = 3;
2705
2707
  var items0 = true;
2706
2708
  }
2707
- const _errs110 = errors;
2708
- if (errors === _errs110) {
2709
+ const _errs111 = errors;
2710
+ if (errors === _errs111) {
2709
2711
  if (Array.isArray(data37)) {
2710
2712
  if (data37.length > 10) {
2711
2713
  const err54 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/4/maxItems", keyword: "maxItems", params: { limit: 10 }, message: "must NOT have more than 10 items" };
@@ -2729,11 +2731,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2729
2731
  errors++;
2730
2732
  }
2731
2733
  else {
2732
- var valid29 = true;
2734
+ var valid30 = true;
2733
2735
  const len2 = data37.length;
2734
2736
  for (let i2 = 0; i2 < len2; i2++) {
2735
2737
  let data39 = data37[i2];
2736
- const _errs112 = errors;
2738
+ const _errs113 = errors;
2737
2739
  if (!((typeof data39 == "number") && (isFinite(data39)))) {
2738
2740
  const err56 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i2, schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf/4/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
2739
2741
  if (vErrors === null) {
@@ -2744,8 +2746,8 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2744
2746
  }
2745
2747
  errors++;
2746
2748
  }
2747
- var valid29 = _errs112 === errors;
2748
- if (!valid29) {
2749
+ var valid30 = _errs113 === errors;
2750
+ if (!valid30) {
2749
2751
  break;
2750
2752
  }
2751
2753
  }
@@ -2763,14 +2765,14 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2763
2765
  errors++;
2764
2766
  }
2765
2767
  }
2766
- var _valid2 = _errs110 === errors;
2767
- if (_valid2 && valid27) {
2768
- valid27 = false;
2768
+ var _valid2 = _errs111 === errors;
2769
+ if (_valid2 && valid28) {
2770
+ valid28 = false;
2769
2771
  passing1 = [passing1, 4];
2770
2772
  }
2771
2773
  else {
2772
2774
  if (_valid2) {
2773
- valid27 = true;
2775
+ valid28 = true;
2774
2776
  passing1 = 4;
2775
2777
  if (items0 !== true) {
2776
2778
  items0 = true;
@@ -2780,7 +2782,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2780
2782
  }
2781
2783
  }
2782
2784
  }
2783
- if (!valid27) {
2785
+ if (!valid28) {
2784
2786
  const err58 = { instancePath: instancePath + "/descriptor/tags/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/descriptor/properties/tags/additionalProperties/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
2785
2787
  if (vErrors === null) {
2786
2788
  vErrors = [err58];
@@ -2793,18 +2795,18 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2793
2795
  return false;
2794
2796
  }
2795
2797
  else {
2796
- errors = _errs99;
2798
+ errors = _errs100;
2797
2799
  if (vErrors !== null) {
2798
- if (_errs99) {
2799
- vErrors.length = _errs99;
2800
+ if (_errs100) {
2801
+ vErrors.length = _errs100;
2800
2802
  }
2801
2803
  else {
2802
2804
  vErrors = null;
2803
2805
  }
2804
2806
  }
2805
2807
  }
2806
- var valid26 = _errs98 === errors;
2807
- if (!valid26) {
2808
+ var valid27 = _errs99 === errors;
2809
+ if (!valid27) {
2808
2810
  break;
2809
2811
  }
2810
2812
  }
@@ -2816,54 +2818,54 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2816
2818
  return false;
2817
2819
  }
2818
2820
  }
2819
- var valid24 = _errs95 === errors;
2821
+ var valid25 = _errs96 === errors;
2820
2822
  }
2821
2823
  else {
2822
- var valid24 = true;
2824
+ var valid25 = true;
2823
2825
  }
2824
- if (valid24) {
2826
+ if (valid25) {
2825
2827
  if (data27.parentId !== undefined) {
2826
- const _errs114 = errors;
2828
+ const _errs115 = errors;
2827
2829
  if (typeof data27.parentId !== "string") {
2828
2830
  validate27.errors = [{ instancePath: instancePath + "/descriptor/parentId", schemaPath: "#/properties/descriptor/properties/parentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2829
2831
  return false;
2830
2832
  }
2831
- var valid24 = _errs114 === errors;
2833
+ var valid25 = _errs115 === errors;
2832
2834
  }
2833
2835
  else {
2834
- var valid24 = true;
2836
+ var valid25 = true;
2835
2837
  }
2836
- if (valid24) {
2838
+ if (valid25) {
2837
2839
  if (data27.dataCid !== undefined) {
2838
- const _errs116 = errors;
2840
+ const _errs117 = errors;
2839
2841
  if (typeof data27.dataCid !== "string") {
2840
2842
  validate27.errors = [{ instancePath: instancePath + "/descriptor/dataCid", schemaPath: "#/properties/descriptor/properties/dataCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2841
2843
  return false;
2842
2844
  }
2843
- var valid24 = _errs116 === errors;
2845
+ var valid25 = _errs117 === errors;
2844
2846
  }
2845
2847
  else {
2846
- var valid24 = true;
2848
+ var valid25 = true;
2847
2849
  }
2848
- if (valid24) {
2850
+ if (valid25) {
2849
2851
  if (data27.dataSize !== undefined) {
2850
2852
  let data42 = data27.dataSize;
2851
- const _errs118 = errors;
2853
+ const _errs119 = errors;
2852
2854
  if (!((typeof data42 == "number") && (isFinite(data42)))) {
2853
2855
  validate27.errors = [{ instancePath: instancePath + "/descriptor/dataSize", schemaPath: "#/properties/descriptor/properties/dataSize/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
2854
2856
  return false;
2855
2857
  }
2856
- var valid24 = _errs118 === errors;
2858
+ var valid25 = _errs119 === errors;
2857
2859
  }
2858
2860
  else {
2859
- var valid24 = true;
2861
+ var valid25 = true;
2860
2862
  }
2861
- if (valid24) {
2863
+ if (valid25) {
2862
2864
  if (data27.dateCreated !== undefined) {
2863
2865
  let data43 = data27.dateCreated;
2864
- const _errs120 = errors;
2865
2866
  const _errs121 = errors;
2866
- if (errors === _errs121) {
2867
+ const _errs122 = errors;
2868
+ if (errors === _errs122) {
2867
2869
  if (typeof data43 === "string") {
2868
2870
  if (!pattern17.test(data43)) {
2869
2871
  validate27.errors = [{ instancePath: instancePath + "/descriptor/dateCreated", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -2875,17 +2877,17 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2875
2877
  return false;
2876
2878
  }
2877
2879
  }
2878
- var valid24 = _errs120 === errors;
2880
+ var valid25 = _errs121 === errors;
2879
2881
  }
2880
2882
  else {
2881
- var valid24 = true;
2883
+ var valid25 = true;
2882
2884
  }
2883
- if (valid24) {
2885
+ if (valid25) {
2884
2886
  if (data27.messageTimestamp !== undefined) {
2885
2887
  let data44 = data27.messageTimestamp;
2886
- const _errs123 = errors;
2887
2888
  const _errs124 = errors;
2888
- if (errors === _errs124) {
2889
+ const _errs125 = errors;
2890
+ if (errors === _errs125) {
2889
2891
  if (typeof data44 === "string") {
2890
2892
  if (!pattern17.test(data44)) {
2891
2893
  validate27.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -2897,29 +2899,29 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2897
2899
  return false;
2898
2900
  }
2899
2901
  }
2900
- var valid24 = _errs123 === errors;
2902
+ var valid25 = _errs124 === errors;
2901
2903
  }
2902
2904
  else {
2903
- var valid24 = true;
2905
+ var valid25 = true;
2904
2906
  }
2905
- if (valid24) {
2907
+ if (valid25) {
2906
2908
  if (data27.published !== undefined) {
2907
- const _errs126 = errors;
2909
+ const _errs127 = errors;
2908
2910
  if (typeof data27.published !== "boolean") {
2909
2911
  validate27.errors = [{ instancePath: instancePath + "/descriptor/published", schemaPath: "#/properties/descriptor/properties/published/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2910
2912
  return false;
2911
2913
  }
2912
- var valid24 = _errs126 === errors;
2914
+ var valid25 = _errs127 === errors;
2913
2915
  }
2914
2916
  else {
2915
- var valid24 = true;
2917
+ var valid25 = true;
2916
2918
  }
2917
- if (valid24) {
2919
+ if (valid25) {
2918
2920
  if (data27.datePublished !== undefined) {
2919
2921
  let data46 = data27.datePublished;
2920
- const _errs128 = errors;
2921
2922
  const _errs129 = errors;
2922
- if (errors === _errs129) {
2923
+ const _errs130 = errors;
2924
+ if (errors === _errs130) {
2923
2925
  if (typeof data46 === "string") {
2924
2926
  if (!pattern17.test(data46)) {
2925
2927
  validate27.errors = [{ instancePath: instancePath + "/descriptor/datePublished", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -2931,39 +2933,39 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2931
2933
  return false;
2932
2934
  }
2933
2935
  }
2934
- var valid24 = _errs128 === errors;
2936
+ var valid25 = _errs129 === errors;
2935
2937
  }
2936
2938
  else {
2937
- var valid24 = true;
2939
+ var valid25 = true;
2938
2940
  }
2939
- if (valid24) {
2941
+ if (valid25) {
2940
2942
  if (data27.dataFormat !== undefined) {
2941
- const _errs131 = errors;
2943
+ const _errs132 = errors;
2942
2944
  if (typeof data27.dataFormat !== "string") {
2943
2945
  validate27.errors = [{ instancePath: instancePath + "/descriptor/dataFormat", schemaPath: "#/properties/descriptor/properties/dataFormat/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2944
2946
  return false;
2945
2947
  }
2946
- var valid24 = _errs131 === errors;
2948
+ var valid25 = _errs132 === errors;
2947
2949
  }
2948
2950
  else {
2949
- var valid24 = true;
2951
+ var valid25 = true;
2950
2952
  }
2951
- if (valid24) {
2953
+ if (valid25) {
2952
2954
  if (data27.permissionGrantId !== undefined) {
2953
- const _errs133 = errors;
2955
+ const _errs134 = errors;
2954
2956
  if (typeof data27.permissionGrantId !== "string") {
2955
2957
  validate27.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2956
2958
  return false;
2957
2959
  }
2958
- var valid24 = _errs133 === errors;
2960
+ var valid25 = _errs134 === errors;
2959
2961
  }
2960
2962
  else {
2961
- var valid24 = true;
2963
+ var valid25 = true;
2962
2964
  }
2963
- if (valid24) {
2965
+ if (valid25) {
2964
2966
  if (data27.squash !== undefined) {
2965
2967
  let data49 = data27.squash;
2966
- const _errs135 = errors;
2968
+ const _errs136 = errors;
2967
2969
  if (typeof data49 !== "boolean") {
2968
2970
  validate27.errors = [{ instancePath: instancePath + "/descriptor/squash", schemaPath: "#/properties/descriptor/properties/squash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2969
2971
  return false;
@@ -2972,10 +2974,10 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
2972
2974
  validate27.errors = [{ instancePath: instancePath + "/descriptor/squash", schemaPath: "#/properties/descriptor/properties/squash/enum", keyword: "enum", params: { allowedValues: schema39.properties.descriptor.properties.squash.enum }, message: "must be equal to one of the allowed values" }];
2973
2975
  return false;
2974
2976
  }
2975
- var valid24 = _errs135 === errors;
2977
+ var valid25 = _errs136 === errors;
2976
2978
  }
2977
2979
  else {
2978
- var valid24 = true;
2980
+ var valid25 = true;
2979
2981
  }
2980
2982
  }
2981
2983
  }
@@ -3002,7 +3004,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
3002
3004
  return false;
3003
3005
  }
3004
3006
  }
3005
- var valid0 = _errs61 === errors;
3007
+ var valid0 = _errs62 === errors;
3006
3008
  }
3007
3009
  else {
3008
3010
  var valid0 = true;
@@ -3115,8 +3117,8 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
3115
3117
  validate24.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
3116
3118
  export const AuthorizationOwner = validate29;
3117
3119
  export const Audience = validate38;
3118
- const schema52 = { "$id": "https://identity.foundation/dwn/json-schemas/encryption/audience.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["protocol", "rolePath", "contextId", "keyId", "publicKeyJwk", "sealedPrivateKey"], "properties": { "protocol": { "type": "string" }, "rolePath": { "type": "string", "minLength": 1 }, "contextId": { "type": "string" }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "publicKeyJwk": { "$ref": "#/$defs/x25519PublicKey" }, "sealedPrivateKey": { "type": "object", "additionalProperties": false, "required": ["algorithm", "derivationScheme", "keyId", "ephemeralPublicKey", "encryptedKey"], "properties": { "algorithm": { "const": "X25519-HKDF-SHA256+A256KW" }, "derivationScheme": { "const": "seal" }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "ephemeralPublicKey": { "$ref": "#/$defs/x25519PublicKey" }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } }, "$defs": { "x25519PublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } };
3119
- const schema53 = { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } };
3120
+ const schema53 = { "$id": "https://identity.foundation/dwn/json-schemas/encryption/audience.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["protocol", "rolePath", "contextId", "keyId", "publicKeyJwk", "sealedPrivateKey"], "properties": { "protocol": { "type": "string" }, "rolePath": { "type": "string", "minLength": 1 }, "contextId": { "type": "string" }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "publicKeyJwk": { "$ref": "#/$defs/x25519PublicKey" }, "sealedPrivateKey": { "type": "object", "additionalProperties": false, "required": ["algorithm", "derivationScheme", "keyId", "ephemeralPublicKey", "encryptedKey"], "properties": { "algorithm": { "const": "X25519-HKDF-SHA256+A256KW" }, "derivationScheme": { "const": "seal" }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "ephemeralPublicKey": { "$ref": "#/$defs/x25519PublicKey" }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } }, "$defs": { "x25519PublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } };
3121
+ const schema54 = { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } };
3120
3122
  function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate39.evaluated; if (evaluated0.dynamicProps) {
3121
3123
  evaluated0.props = undefined;
3122
3124
  } if (evaluated0.dynamicItems) {
@@ -3425,10 +3427,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
3425
3427
  } validate38.errors = vErrors; return errors === 0; }
3426
3428
  validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
3427
3429
  export const RecordsCount = validate43;
3428
- const schema56 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-count.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Count"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" } } } } };
3429
- const schema58 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-filter.json", "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "protocol": { "type": "string" }, "protocolPath": { "type": "string" }, "author": { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" } }] }, "attester": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, "recipient": { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" } }] }, "contextId": { "type": "string", "maxLength": 600 }, "schema": { "type": "string" }, "tags": { "type": "object", "minProperties": 1, "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "startsWith": { "type": "string" } } }, { "$ref": "https://identity.foundation/dwn/json-schemas/string-range-filter.json" }, { "$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json" }] } }, "recordId": { "type": "string" }, "parentId": { "type": "string" }, "published": { "type": "boolean" }, "dataFormat": { "type": "string" }, "dataSize": { "$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json" }, "dataCid": { "type": "string" }, "dateCreated": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } }, "datePublished": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } }, "dateUpdated": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } }, "dependencies": { "datePublished": { "oneOf": [{ "properties": { "published": { "enum": [true] } }, "required": ["published"] }, { "not": { "required": ["published"] } }] } } };
3430
- const schema64 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/string-range-filter.json", "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "gt": { "type": "string" }, "gte": { "type": "string" }, "lt": { "type": "string" }, "lte": { "type": "string" } }, "dependencies": { "gt": { "not": { "required": ["gte"] } }, "gte": { "not": { "required": ["gt"] } }, "lt": { "not": { "required": ["lte"] } }, "lte": { "not": { "required": ["lt"] } } } };
3431
- const schema65 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/number-range-filter.json", "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "gt": { "type": "number" }, "gte": { "type": "number" }, "lt": { "type": "number" }, "lte": { "type": "number" } }, "dependencies": { "gt": { "not": { "required": ["gte"] } }, "gte": { "not": { "required": ["gt"] } }, "lt": { "not": { "required": ["lte"] } }, "lte": { "not": { "required": ["lt"] } } } };
3430
+ const schema57 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-count.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Count"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" } } } } };
3431
+ const schema59 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-filter.json", "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "protocol": { "type": "string" }, "protocolPath": { "type": "string" }, "author": { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" } }] }, "attester": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, "recipient": { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" } }] }, "contextId": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId" }, "schema": { "type": "string" }, "tags": { "type": "object", "minProperties": 1, "additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "startsWith": { "type": "string" } } }, { "$ref": "https://identity.foundation/dwn/json-schemas/string-range-filter.json" }, { "$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json" }] } }, "recordId": { "type": "string" }, "parentId": { "type": "string" }, "published": { "type": "boolean" }, "dataFormat": { "type": "string" }, "dataSize": { "$ref": "https://identity.foundation/dwn/json-schemas/number-range-filter.json" }, "dataCid": { "type": "string" }, "dateCreated": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } }, "datePublished": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } }, "dateUpdated": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } }, "dependencies": { "datePublished": { "oneOf": [{ "properties": { "published": { "enum": [true] } }, "required": ["published"] }, { "not": { "required": ["published"] } }] } } };
3432
+ const schema66 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/string-range-filter.json", "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "gt": { "type": "string" }, "gte": { "type": "string" }, "lt": { "type": "string" }, "lte": { "type": "string" } }, "dependencies": { "gt": { "not": { "required": ["gte"] } }, "gte": { "not": { "required": ["gt"] } }, "lt": { "not": { "required": ["lte"] } }, "lte": { "not": { "required": ["lt"] } } } };
3433
+ const schema67 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/number-range-filter.json", "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "gt": { "type": "number" }, "gte": { "type": "number" }, "lt": { "type": "number" }, "lte": { "type": "number" } }, "dependencies": { "gt": { "not": { "required": ["gte"] } }, "gte": { "not": { "required": ["gt"] } }, "lt": { "not": { "required": ["lte"] } }, "lte": { "not": { "required": ["lt"] } } } };
3432
3434
  function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/records-filter.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate45.evaluated; if (evaluated0.dynamicProps) {
3433
3435
  evaluated0.props = undefined;
3434
3436
  } if (evaluated0.dynamicItems) {
@@ -3442,7 +3444,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3442
3444
  else {
3443
3445
  const _errs1 = errors;
3444
3446
  for (const key0 in data) {
3445
- if (!(func2.call(schema58.properties, key0))) {
3447
+ if (!(func2.call(schema59.properties, key0))) {
3446
3448
  validate45.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
3447
3449
  return false;
3448
3450
  break;
@@ -3470,7 +3472,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3470
3472
  else {
3471
3473
  if (data.published !== undefined) {
3472
3474
  if (!(data.published === true)) {
3473
- const err1 = { instancePath: instancePath + "/published", schemaPath: "#/dependencies/datePublished/oneOf/0/properties/published/enum", keyword: "enum", params: { allowedValues: schema58.dependencies.datePublished.oneOf[0].properties.published.enum }, message: "must be equal to one of the allowed values" };
3475
+ const err1 = { instancePath: instancePath + "/published", schemaPath: "#/dependencies/datePublished/oneOf/0/properties/published/enum", keyword: "enum", params: { allowedValues: schema59.dependencies.datePublished.oneOf[0].properties.published.enum }, message: "must be equal to one of the allowed values" };
3474
3476
  if (vErrors === null) {
3475
3477
  vErrors = [err1];
3476
3478
  }
@@ -3870,15 +3872,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3870
3872
  if (data.contextId !== undefined) {
3871
3873
  let data8 = data.contextId;
3872
3874
  const _errs36 = errors;
3873
- if (errors === _errs36) {
3875
+ const _errs37 = errors;
3876
+ if (errors === _errs37) {
3874
3877
  if (typeof data8 === "string") {
3875
3878
  if (func1(data8) > 600) {
3876
- validate45.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/maxLength", keyword: "maxLength", params: { limit: 600 }, message: "must NOT have more than 600 characters" }];
3879
+ validate45.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId/maxLength", keyword: "maxLength", params: { limit: 600 }, message: "must NOT have more than 600 characters" }];
3877
3880
  return false;
3878
3881
  }
3882
+ else {
3883
+ if (!pattern7.test(data8)) {
3884
+ validate45.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$" }, message: "must match pattern \"" + "^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$" + "\"" }];
3885
+ return false;
3886
+ }
3887
+ }
3879
3888
  }
3880
3889
  else {
3881
- validate45.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3890
+ validate45.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/contextId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3882
3891
  return false;
3883
3892
  }
3884
3893
  }
@@ -3889,12 +3898,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3889
3898
  }
3890
3899
  if (valid4) {
3891
3900
  if (data.schema !== undefined) {
3892
- const _errs38 = errors;
3901
+ const _errs39 = errors;
3893
3902
  if (typeof data.schema !== "string") {
3894
3903
  validate45.errors = [{ instancePath: instancePath + "/schema", schemaPath: "#/properties/schema/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3895
3904
  return false;
3896
3905
  }
3897
- var valid4 = _errs38 === errors;
3906
+ var valid4 = _errs39 === errors;
3898
3907
  }
3899
3908
  else {
3900
3909
  var valid4 = true;
@@ -3902,8 +3911,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3902
3911
  if (valid4) {
3903
3912
  if (data.tags !== undefined) {
3904
3913
  let data10 = data.tags;
3905
- const _errs40 = errors;
3906
- if (errors === _errs40) {
3914
+ const _errs41 = errors;
3915
+ if (errors === _errs41) {
3907
3916
  if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
3908
3917
  if (Object.keys(data10).length < 1) {
3909
3918
  validate45.errors = [{ instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
@@ -3912,11 +3921,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3912
3921
  else {
3913
3922
  for (const key1 in data10) {
3914
3923
  let data11 = data10[key1];
3915
- const _errs43 = errors;
3916
3924
  const _errs44 = errors;
3917
- let valid15 = false;
3918
- let passing3 = null;
3919
3925
  const _errs45 = errors;
3926
+ let valid16 = false;
3927
+ let passing3 = null;
3928
+ const _errs46 = errors;
3920
3929
  if (typeof data11 !== "string") {
3921
3930
  const err17 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/tags/additionalProperties/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3922
3931
  if (vErrors === null) {
@@ -3927,12 +3936,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3927
3936
  }
3928
3937
  errors++;
3929
3938
  }
3930
- var _valid3 = _errs45 === errors;
3939
+ var _valid3 = _errs46 === errors;
3931
3940
  if (_valid3) {
3932
- valid15 = true;
3941
+ valid16 = true;
3933
3942
  passing3 = 0;
3934
3943
  }
3935
- const _errs47 = errors;
3944
+ const _errs48 = errors;
3936
3945
  if (!((typeof data11 == "number") && (isFinite(data11)))) {
3937
3946
  const err18 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/tags/additionalProperties/oneOf/1/type", keyword: "type", params: { type: "number" }, message: "must be number" };
3938
3947
  if (vErrors === null) {
@@ -3943,17 +3952,17 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3943
3952
  }
3944
3953
  errors++;
3945
3954
  }
3946
- var _valid3 = _errs47 === errors;
3947
- if (_valid3 && valid15) {
3948
- valid15 = false;
3955
+ var _valid3 = _errs48 === errors;
3956
+ if (_valid3 && valid16) {
3957
+ valid16 = false;
3949
3958
  passing3 = [passing3, 1];
3950
3959
  }
3951
3960
  else {
3952
3961
  if (_valid3) {
3953
- valid15 = true;
3962
+ valid16 = true;
3954
3963
  passing3 = 1;
3955
3964
  }
3956
- const _errs49 = errors;
3965
+ const _errs50 = errors;
3957
3966
  if (typeof data11 !== "boolean") {
3958
3967
  const err19 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/tags/additionalProperties/oneOf/2/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
3959
3968
  if (vErrors === null) {
@@ -3964,18 +3973,18 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3964
3973
  }
3965
3974
  errors++;
3966
3975
  }
3967
- var _valid3 = _errs49 === errors;
3968
- if (_valid3 && valid15) {
3969
- valid15 = false;
3976
+ var _valid3 = _errs50 === errors;
3977
+ if (_valid3 && valid16) {
3978
+ valid16 = false;
3970
3979
  passing3 = [passing3, 2];
3971
3980
  }
3972
3981
  else {
3973
3982
  if (_valid3) {
3974
- valid15 = true;
3983
+ valid16 = true;
3975
3984
  passing3 = 2;
3976
3985
  }
3977
- const _errs51 = errors;
3978
- if (errors === _errs51) {
3986
+ const _errs52 = errors;
3987
+ if (errors === _errs52) {
3979
3988
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
3980
3989
  if (Object.keys(data11).length < 1) {
3981
3990
  const err20 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/tags/additionalProperties/oneOf/3/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
@@ -3988,7 +3997,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3988
3997
  errors++;
3989
3998
  }
3990
3999
  else {
3991
- const _errs53 = errors;
4000
+ const _errs54 = errors;
3992
4001
  for (const key2 in data11) {
3993
4002
  if (!(key2 === "startsWith")) {
3994
4003
  const err21 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/tags/additionalProperties/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
@@ -4002,7 +4011,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4002
4011
  break;
4003
4012
  }
4004
4013
  }
4005
- if (_errs53 === errors) {
4014
+ if (_errs54 === errors) {
4006
4015
  if (data11.startsWith !== undefined) {
4007
4016
  if (typeof data11.startsWith !== "string") {
4008
4017
  const err22 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/startsWith", schemaPath: "#/properties/tags/additionalProperties/oneOf/3/properties/startsWith/type", keyword: "type", params: { type: "string" }, message: "must be string" };
@@ -4029,20 +4038,20 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4029
4038
  errors++;
4030
4039
  }
4031
4040
  }
4032
- var _valid3 = _errs51 === errors;
4033
- if (_valid3 && valid15) {
4034
- valid15 = false;
4041
+ var _valid3 = _errs52 === errors;
4042
+ if (_valid3 && valid16) {
4043
+ valid16 = false;
4035
4044
  passing3 = [passing3, 3];
4036
4045
  }
4037
4046
  else {
4038
4047
  if (_valid3) {
4039
- valid15 = true;
4048
+ valid16 = true;
4040
4049
  passing3 = 3;
4041
4050
  var props1 = true;
4042
4051
  }
4043
- const _errs56 = errors;
4044
4052
  const _errs57 = errors;
4045
- if (errors === _errs57) {
4053
+ const _errs58 = errors;
4054
+ if (errors === _errs58) {
4046
4055
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4047
4056
  if (Object.keys(data11).length < 1) {
4048
4057
  const err24 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
@@ -4055,7 +4064,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4055
4064
  errors++;
4056
4065
  }
4057
4066
  else {
4058
- const _errs59 = errors;
4067
+ const _errs60 = errors;
4059
4068
  for (const key3 in data11) {
4060
4069
  if (!((((key3 === "gt") || (key3 === "gte")) || (key3 === "lt")) || (key3 === "lte"))) {
4061
4070
  const err25 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
@@ -4069,11 +4078,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4069
4078
  break;
4070
4079
  }
4071
4080
  }
4072
- if (_errs59 === errors) {
4081
+ if (_errs60 === errors) {
4073
4082
  if (data11.gt !== undefined) {
4074
- const _errs60 = errors;
4075
4083
  const _errs61 = errors;
4076
4084
  const _errs62 = errors;
4085
+ const _errs63 = errors;
4077
4086
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4078
4087
  let missing2;
4079
4088
  if ((data11.gte === undefined) && (missing2 = "gte")) {
@@ -4087,8 +4096,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4087
4096
  errors++;
4088
4097
  }
4089
4098
  }
4090
- var valid19 = _errs62 === errors;
4091
- if (valid19) {
4099
+ var valid20 = _errs63 === errors;
4100
+ if (valid20) {
4092
4101
  const err27 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/dependencies/gt/not", keyword: "not", params: {}, message: "must NOT be valid" };
4093
4102
  if (vErrors === null) {
4094
4103
  vErrors = [err27];
@@ -4099,26 +4108,26 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4099
4108
  errors++;
4100
4109
  }
4101
4110
  else {
4102
- errors = _errs61;
4111
+ errors = _errs62;
4103
4112
  if (vErrors !== null) {
4104
- if (_errs61) {
4105
- vErrors.length = _errs61;
4113
+ if (_errs62) {
4114
+ vErrors.length = _errs62;
4106
4115
  }
4107
4116
  else {
4108
4117
  vErrors = null;
4109
4118
  }
4110
4119
  }
4111
4120
  }
4112
- var valid18 = _errs60 === errors;
4121
+ var valid19 = _errs61 === errors;
4113
4122
  }
4114
4123
  else {
4115
- var valid18 = true;
4124
+ var valid19 = true;
4116
4125
  }
4117
- if (valid18) {
4126
+ if (valid19) {
4118
4127
  if (data11.gte !== undefined) {
4119
- const _errs63 = errors;
4120
4128
  const _errs64 = errors;
4121
4129
  const _errs65 = errors;
4130
+ const _errs66 = errors;
4122
4131
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4123
4132
  let missing3;
4124
4133
  if ((data11.gt === undefined) && (missing3 = "gt")) {
@@ -4132,8 +4141,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4132
4141
  errors++;
4133
4142
  }
4134
4143
  }
4135
- var valid20 = _errs65 === errors;
4136
- if (valid20) {
4144
+ var valid21 = _errs66 === errors;
4145
+ if (valid21) {
4137
4146
  const err29 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/dependencies/gte/not", keyword: "not", params: {}, message: "must NOT be valid" };
4138
4147
  if (vErrors === null) {
4139
4148
  vErrors = [err29];
@@ -4144,26 +4153,26 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4144
4153
  errors++;
4145
4154
  }
4146
4155
  else {
4147
- errors = _errs64;
4156
+ errors = _errs65;
4148
4157
  if (vErrors !== null) {
4149
- if (_errs64) {
4150
- vErrors.length = _errs64;
4158
+ if (_errs65) {
4159
+ vErrors.length = _errs65;
4151
4160
  }
4152
4161
  else {
4153
4162
  vErrors = null;
4154
4163
  }
4155
4164
  }
4156
4165
  }
4157
- var valid18 = _errs63 === errors;
4166
+ var valid19 = _errs64 === errors;
4158
4167
  }
4159
4168
  else {
4160
- var valid18 = true;
4169
+ var valid19 = true;
4161
4170
  }
4162
- if (valid18) {
4171
+ if (valid19) {
4163
4172
  if (data11.lt !== undefined) {
4164
- const _errs66 = errors;
4165
4173
  const _errs67 = errors;
4166
4174
  const _errs68 = errors;
4175
+ const _errs69 = errors;
4167
4176
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4168
4177
  let missing4;
4169
4178
  if ((data11.lte === undefined) && (missing4 = "lte")) {
@@ -4177,8 +4186,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4177
4186
  errors++;
4178
4187
  }
4179
4188
  }
4180
- var valid21 = _errs68 === errors;
4181
- if (valid21) {
4189
+ var valid22 = _errs69 === errors;
4190
+ if (valid22) {
4182
4191
  const err31 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/dependencies/lt/not", keyword: "not", params: {}, message: "must NOT be valid" };
4183
4192
  if (vErrors === null) {
4184
4193
  vErrors = [err31];
@@ -4189,26 +4198,26 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4189
4198
  errors++;
4190
4199
  }
4191
4200
  else {
4192
- errors = _errs67;
4201
+ errors = _errs68;
4193
4202
  if (vErrors !== null) {
4194
- if (_errs67) {
4195
- vErrors.length = _errs67;
4203
+ if (_errs68) {
4204
+ vErrors.length = _errs68;
4196
4205
  }
4197
4206
  else {
4198
4207
  vErrors = null;
4199
4208
  }
4200
4209
  }
4201
4210
  }
4202
- var valid18 = _errs66 === errors;
4211
+ var valid19 = _errs67 === errors;
4203
4212
  }
4204
4213
  else {
4205
- var valid18 = true;
4214
+ var valid19 = true;
4206
4215
  }
4207
- if (valid18) {
4216
+ if (valid19) {
4208
4217
  if (data11.lte !== undefined) {
4209
- const _errs69 = errors;
4210
4218
  const _errs70 = errors;
4211
4219
  const _errs71 = errors;
4220
+ const _errs72 = errors;
4212
4221
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4213
4222
  let missing5;
4214
4223
  if ((data11.lt === undefined) && (missing5 = "lt")) {
@@ -4222,8 +4231,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4222
4231
  errors++;
4223
4232
  }
4224
4233
  }
4225
- var valid22 = _errs71 === errors;
4226
- if (valid22) {
4234
+ var valid23 = _errs72 === errors;
4235
+ if (valid23) {
4227
4236
  const err33 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/dependencies/lte/not", keyword: "not", params: {}, message: "must NOT be valid" };
4228
4237
  if (vErrors === null) {
4229
4238
  vErrors = [err33];
@@ -4234,24 +4243,24 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4234
4243
  errors++;
4235
4244
  }
4236
4245
  else {
4237
- errors = _errs70;
4246
+ errors = _errs71;
4238
4247
  if (vErrors !== null) {
4239
- if (_errs70) {
4240
- vErrors.length = _errs70;
4248
+ if (_errs71) {
4249
+ vErrors.length = _errs71;
4241
4250
  }
4242
4251
  else {
4243
4252
  vErrors = null;
4244
4253
  }
4245
4254
  }
4246
4255
  }
4247
- var valid18 = _errs69 === errors;
4256
+ var valid19 = _errs70 === errors;
4248
4257
  }
4249
4258
  else {
4250
- var valid18 = true;
4259
+ var valid19 = true;
4251
4260
  }
4252
- if (valid18) {
4261
+ if (valid19) {
4253
4262
  if (data11.gt !== undefined) {
4254
- const _errs72 = errors;
4263
+ const _errs73 = errors;
4255
4264
  if (typeof data11.gt !== "string") {
4256
4265
  const err34 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/gt", schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/properties/gt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4257
4266
  if (vErrors === null) {
@@ -4262,14 +4271,14 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4262
4271
  }
4263
4272
  errors++;
4264
4273
  }
4265
- var valid23 = _errs72 === errors;
4274
+ var valid24 = _errs73 === errors;
4266
4275
  }
4267
4276
  else {
4268
- var valid23 = true;
4277
+ var valid24 = true;
4269
4278
  }
4270
- if (valid23) {
4279
+ if (valid24) {
4271
4280
  if (data11.gte !== undefined) {
4272
- const _errs74 = errors;
4281
+ const _errs75 = errors;
4273
4282
  if (typeof data11.gte !== "string") {
4274
4283
  const err35 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/gte", schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/properties/gte/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4275
4284
  if (vErrors === null) {
@@ -4280,14 +4289,14 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4280
4289
  }
4281
4290
  errors++;
4282
4291
  }
4283
- var valid23 = _errs74 === errors;
4292
+ var valid24 = _errs75 === errors;
4284
4293
  }
4285
4294
  else {
4286
- var valid23 = true;
4295
+ var valid24 = true;
4287
4296
  }
4288
- if (valid23) {
4297
+ if (valid24) {
4289
4298
  if (data11.lt !== undefined) {
4290
- const _errs76 = errors;
4299
+ const _errs77 = errors;
4291
4300
  if (typeof data11.lt !== "string") {
4292
4301
  const err36 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/lt", schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/properties/lt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4293
4302
  if (vErrors === null) {
@@ -4298,14 +4307,14 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4298
4307
  }
4299
4308
  errors++;
4300
4309
  }
4301
- var valid23 = _errs76 === errors;
4310
+ var valid24 = _errs77 === errors;
4302
4311
  }
4303
4312
  else {
4304
- var valid23 = true;
4313
+ var valid24 = true;
4305
4314
  }
4306
- if (valid23) {
4315
+ if (valid24) {
4307
4316
  if (data11.lte !== undefined) {
4308
- const _errs78 = errors;
4317
+ const _errs79 = errors;
4309
4318
  if (typeof data11.lte !== "string") {
4310
4319
  const err37 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/lte", schemaPath: "https://identity.foundation/dwn/json-schemas/string-range-filter.json/properties/lte/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4311
4320
  if (vErrors === null) {
@@ -4316,10 +4325,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4316
4325
  }
4317
4326
  errors++;
4318
4327
  }
4319
- var valid23 = _errs78 === errors;
4328
+ var valid24 = _errs79 === errors;
4320
4329
  }
4321
4330
  else {
4322
- var valid23 = true;
4331
+ var valid24 = true;
4323
4332
  }
4324
4333
  }
4325
4334
  }
@@ -4342,22 +4351,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4342
4351
  errors++;
4343
4352
  }
4344
4353
  }
4345
- var _valid3 = _errs56 === errors;
4346
- if (_valid3 && valid15) {
4347
- valid15 = false;
4354
+ var _valid3 = _errs57 === errors;
4355
+ if (_valid3 && valid16) {
4356
+ valid16 = false;
4348
4357
  passing3 = [passing3, 4];
4349
4358
  }
4350
4359
  else {
4351
4360
  if (_valid3) {
4352
- valid15 = true;
4361
+ valid16 = true;
4353
4362
  passing3 = 4;
4354
4363
  if (props1 !== true) {
4355
4364
  props1 = true;
4356
4365
  }
4357
4366
  }
4358
- const _errs80 = errors;
4359
4367
  const _errs81 = errors;
4360
- if (errors === _errs81) {
4368
+ const _errs82 = errors;
4369
+ if (errors === _errs82) {
4361
4370
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4362
4371
  if (Object.keys(data11).length < 1) {
4363
4372
  const err39 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
@@ -4370,7 +4379,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4370
4379
  errors++;
4371
4380
  }
4372
4381
  else {
4373
- const _errs83 = errors;
4382
+ const _errs84 = errors;
4374
4383
  for (const key4 in data11) {
4375
4384
  if (!((((key4 === "gt") || (key4 === "gte")) || (key4 === "lt")) || (key4 === "lte"))) {
4376
4385
  const err40 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
@@ -4384,11 +4393,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4384
4393
  break;
4385
4394
  }
4386
4395
  }
4387
- if (_errs83 === errors) {
4396
+ if (_errs84 === errors) {
4388
4397
  if (data11.gt !== undefined) {
4389
- const _errs84 = errors;
4390
4398
  const _errs85 = errors;
4391
4399
  const _errs86 = errors;
4400
+ const _errs87 = errors;
4392
4401
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4393
4402
  let missing6;
4394
4403
  if ((data11.gte === undefined) && (missing6 = "gte")) {
@@ -4402,8 +4411,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4402
4411
  errors++;
4403
4412
  }
4404
4413
  }
4405
- var valid26 = _errs86 === errors;
4406
- if (valid26) {
4414
+ var valid27 = _errs87 === errors;
4415
+ if (valid27) {
4407
4416
  const err42 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/gt/not", keyword: "not", params: {}, message: "must NOT be valid" };
4408
4417
  if (vErrors === null) {
4409
4418
  vErrors = [err42];
@@ -4414,26 +4423,26 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4414
4423
  errors++;
4415
4424
  }
4416
4425
  else {
4417
- errors = _errs85;
4426
+ errors = _errs86;
4418
4427
  if (vErrors !== null) {
4419
- if (_errs85) {
4420
- vErrors.length = _errs85;
4428
+ if (_errs86) {
4429
+ vErrors.length = _errs86;
4421
4430
  }
4422
4431
  else {
4423
4432
  vErrors = null;
4424
4433
  }
4425
4434
  }
4426
4435
  }
4427
- var valid25 = _errs84 === errors;
4436
+ var valid26 = _errs85 === errors;
4428
4437
  }
4429
4438
  else {
4430
- var valid25 = true;
4439
+ var valid26 = true;
4431
4440
  }
4432
- if (valid25) {
4441
+ if (valid26) {
4433
4442
  if (data11.gte !== undefined) {
4434
- const _errs87 = errors;
4435
4443
  const _errs88 = errors;
4436
4444
  const _errs89 = errors;
4445
+ const _errs90 = errors;
4437
4446
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4438
4447
  let missing7;
4439
4448
  if ((data11.gt === undefined) && (missing7 = "gt")) {
@@ -4447,8 +4456,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4447
4456
  errors++;
4448
4457
  }
4449
4458
  }
4450
- var valid27 = _errs89 === errors;
4451
- if (valid27) {
4459
+ var valid28 = _errs90 === errors;
4460
+ if (valid28) {
4452
4461
  const err44 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/gte/not", keyword: "not", params: {}, message: "must NOT be valid" };
4453
4462
  if (vErrors === null) {
4454
4463
  vErrors = [err44];
@@ -4459,26 +4468,26 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4459
4468
  errors++;
4460
4469
  }
4461
4470
  else {
4462
- errors = _errs88;
4471
+ errors = _errs89;
4463
4472
  if (vErrors !== null) {
4464
- if (_errs88) {
4465
- vErrors.length = _errs88;
4473
+ if (_errs89) {
4474
+ vErrors.length = _errs89;
4466
4475
  }
4467
4476
  else {
4468
4477
  vErrors = null;
4469
4478
  }
4470
4479
  }
4471
4480
  }
4472
- var valid25 = _errs87 === errors;
4481
+ var valid26 = _errs88 === errors;
4473
4482
  }
4474
4483
  else {
4475
- var valid25 = true;
4484
+ var valid26 = true;
4476
4485
  }
4477
- if (valid25) {
4486
+ if (valid26) {
4478
4487
  if (data11.lt !== undefined) {
4479
- const _errs90 = errors;
4480
4488
  const _errs91 = errors;
4481
4489
  const _errs92 = errors;
4490
+ const _errs93 = errors;
4482
4491
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4483
4492
  let missing8;
4484
4493
  if ((data11.lte === undefined) && (missing8 = "lte")) {
@@ -4492,8 +4501,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4492
4501
  errors++;
4493
4502
  }
4494
4503
  }
4495
- var valid28 = _errs92 === errors;
4496
- if (valid28) {
4504
+ var valid29 = _errs93 === errors;
4505
+ if (valid29) {
4497
4506
  const err46 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/lt/not", keyword: "not", params: {}, message: "must NOT be valid" };
4498
4507
  if (vErrors === null) {
4499
4508
  vErrors = [err46];
@@ -4504,26 +4513,26 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4504
4513
  errors++;
4505
4514
  }
4506
4515
  else {
4507
- errors = _errs91;
4516
+ errors = _errs92;
4508
4517
  if (vErrors !== null) {
4509
- if (_errs91) {
4510
- vErrors.length = _errs91;
4518
+ if (_errs92) {
4519
+ vErrors.length = _errs92;
4511
4520
  }
4512
4521
  else {
4513
4522
  vErrors = null;
4514
4523
  }
4515
4524
  }
4516
4525
  }
4517
- var valid25 = _errs90 === errors;
4526
+ var valid26 = _errs91 === errors;
4518
4527
  }
4519
4528
  else {
4520
- var valid25 = true;
4529
+ var valid26 = true;
4521
4530
  }
4522
- if (valid25) {
4531
+ if (valid26) {
4523
4532
  if (data11.lte !== undefined) {
4524
- const _errs93 = errors;
4525
4533
  const _errs94 = errors;
4526
4534
  const _errs95 = errors;
4535
+ const _errs96 = errors;
4527
4536
  if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
4528
4537
  let missing9;
4529
4538
  if ((data11.lt === undefined) && (missing9 = "lt")) {
@@ -4537,8 +4546,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4537
4546
  errors++;
4538
4547
  }
4539
4548
  }
4540
- var valid29 = _errs95 === errors;
4541
- if (valid29) {
4549
+ var valid30 = _errs96 === errors;
4550
+ if (valid30) {
4542
4551
  const err48 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/lte/not", keyword: "not", params: {}, message: "must NOT be valid" };
4543
4552
  if (vErrors === null) {
4544
4553
  vErrors = [err48];
@@ -4549,25 +4558,25 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4549
4558
  errors++;
4550
4559
  }
4551
4560
  else {
4552
- errors = _errs94;
4561
+ errors = _errs95;
4553
4562
  if (vErrors !== null) {
4554
- if (_errs94) {
4555
- vErrors.length = _errs94;
4563
+ if (_errs95) {
4564
+ vErrors.length = _errs95;
4556
4565
  }
4557
4566
  else {
4558
4567
  vErrors = null;
4559
4568
  }
4560
4569
  }
4561
4570
  }
4562
- var valid25 = _errs93 === errors;
4571
+ var valid26 = _errs94 === errors;
4563
4572
  }
4564
4573
  else {
4565
- var valid25 = true;
4574
+ var valid26 = true;
4566
4575
  }
4567
- if (valid25) {
4576
+ if (valid26) {
4568
4577
  if (data11.gt !== undefined) {
4569
4578
  let data17 = data11.gt;
4570
- const _errs96 = errors;
4579
+ const _errs97 = errors;
4571
4580
  if (!((typeof data17 == "number") && (isFinite(data17)))) {
4572
4581
  const err49 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/gt", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/gt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
4573
4582
  if (vErrors === null) {
@@ -4578,15 +4587,15 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4578
4587
  }
4579
4588
  errors++;
4580
4589
  }
4581
- var valid30 = _errs96 === errors;
4590
+ var valid31 = _errs97 === errors;
4582
4591
  }
4583
4592
  else {
4584
- var valid30 = true;
4593
+ var valid31 = true;
4585
4594
  }
4586
- if (valid30) {
4595
+ if (valid31) {
4587
4596
  if (data11.gte !== undefined) {
4588
4597
  let data18 = data11.gte;
4589
- const _errs98 = errors;
4598
+ const _errs99 = errors;
4590
4599
  if (!((typeof data18 == "number") && (isFinite(data18)))) {
4591
4600
  const err50 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/gte", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/gte/type", keyword: "type", params: { type: "number" }, message: "must be number" };
4592
4601
  if (vErrors === null) {
@@ -4597,15 +4606,15 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4597
4606
  }
4598
4607
  errors++;
4599
4608
  }
4600
- var valid30 = _errs98 === errors;
4609
+ var valid31 = _errs99 === errors;
4601
4610
  }
4602
4611
  else {
4603
- var valid30 = true;
4612
+ var valid31 = true;
4604
4613
  }
4605
- if (valid30) {
4614
+ if (valid31) {
4606
4615
  if (data11.lt !== undefined) {
4607
4616
  let data19 = data11.lt;
4608
- const _errs100 = errors;
4617
+ const _errs101 = errors;
4609
4618
  if (!((typeof data19 == "number") && (isFinite(data19)))) {
4610
4619
  const err51 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/lt", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/lt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
4611
4620
  if (vErrors === null) {
@@ -4616,15 +4625,15 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4616
4625
  }
4617
4626
  errors++;
4618
4627
  }
4619
- var valid30 = _errs100 === errors;
4628
+ var valid31 = _errs101 === errors;
4620
4629
  }
4621
4630
  else {
4622
- var valid30 = true;
4631
+ var valid31 = true;
4623
4632
  }
4624
- if (valid30) {
4633
+ if (valid31) {
4625
4634
  if (data11.lte !== undefined) {
4626
4635
  let data20 = data11.lte;
4627
- const _errs102 = errors;
4636
+ const _errs103 = errors;
4628
4637
  if (!((typeof data20 == "number") && (isFinite(data20)))) {
4629
4638
  const err52 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/lte", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/lte/type", keyword: "type", params: { type: "number" }, message: "must be number" };
4630
4639
  if (vErrors === null) {
@@ -4635,10 +4644,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4635
4644
  }
4636
4645
  errors++;
4637
4646
  }
4638
- var valid30 = _errs102 === errors;
4647
+ var valid31 = _errs103 === errors;
4639
4648
  }
4640
4649
  else {
4641
- var valid30 = true;
4650
+ var valid31 = true;
4642
4651
  }
4643
4652
  }
4644
4653
  }
@@ -4661,14 +4670,14 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4661
4670
  errors++;
4662
4671
  }
4663
4672
  }
4664
- var _valid3 = _errs80 === errors;
4665
- if (_valid3 && valid15) {
4666
- valid15 = false;
4673
+ var _valid3 = _errs81 === errors;
4674
+ if (_valid3 && valid16) {
4675
+ valid16 = false;
4667
4676
  passing3 = [passing3, 5];
4668
4677
  }
4669
4678
  else {
4670
4679
  if (_valid3) {
4671
- valid15 = true;
4680
+ valid16 = true;
4672
4681
  passing3 = 5;
4673
4682
  if (props1 !== true) {
4674
4683
  props1 = true;
@@ -4679,7 +4688,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4679
4688
  }
4680
4689
  }
4681
4690
  }
4682
- if (!valid15) {
4691
+ if (!valid16) {
4683
4692
  const err54 = { instancePath: instancePath + "/tags/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/tags/additionalProperties/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
4684
4693
  if (vErrors === null) {
4685
4694
  vErrors = [err54];
@@ -4692,18 +4701,18 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4692
4701
  return false;
4693
4702
  }
4694
4703
  else {
4695
- errors = _errs44;
4704
+ errors = _errs45;
4696
4705
  if (vErrors !== null) {
4697
- if (_errs44) {
4698
- vErrors.length = _errs44;
4706
+ if (_errs45) {
4707
+ vErrors.length = _errs45;
4699
4708
  }
4700
4709
  else {
4701
4710
  vErrors = null;
4702
4711
  }
4703
4712
  }
4704
4713
  }
4705
- var valid14 = _errs43 === errors;
4706
- if (!valid14) {
4714
+ var valid15 = _errs44 === errors;
4715
+ if (!valid15) {
4707
4716
  break;
4708
4717
  }
4709
4718
  }
@@ -4714,55 +4723,55 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4714
4723
  return false;
4715
4724
  }
4716
4725
  }
4717
- var valid4 = _errs40 === errors;
4726
+ var valid4 = _errs41 === errors;
4718
4727
  }
4719
4728
  else {
4720
4729
  var valid4 = true;
4721
4730
  }
4722
4731
  if (valid4) {
4723
4732
  if (data.recordId !== undefined) {
4724
- const _errs104 = errors;
4733
+ const _errs105 = errors;
4725
4734
  if (typeof data.recordId !== "string") {
4726
4735
  validate45.errors = [{ instancePath: instancePath + "/recordId", schemaPath: "#/properties/recordId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
4727
4736
  return false;
4728
4737
  }
4729
- var valid4 = _errs104 === errors;
4738
+ var valid4 = _errs105 === errors;
4730
4739
  }
4731
4740
  else {
4732
4741
  var valid4 = true;
4733
4742
  }
4734
4743
  if (valid4) {
4735
4744
  if (data.parentId !== undefined) {
4736
- const _errs106 = errors;
4745
+ const _errs107 = errors;
4737
4746
  if (typeof data.parentId !== "string") {
4738
4747
  validate45.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "#/properties/parentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
4739
4748
  return false;
4740
4749
  }
4741
- var valid4 = _errs106 === errors;
4750
+ var valid4 = _errs107 === errors;
4742
4751
  }
4743
4752
  else {
4744
4753
  var valid4 = true;
4745
4754
  }
4746
4755
  if (valid4) {
4747
4756
  if (data.published !== undefined) {
4748
- const _errs108 = errors;
4757
+ const _errs109 = errors;
4749
4758
  if (typeof data.published !== "boolean") {
4750
4759
  validate45.errors = [{ instancePath: instancePath + "/published", schemaPath: "#/properties/published/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
4751
4760
  return false;
4752
4761
  }
4753
- var valid4 = _errs108 === errors;
4762
+ var valid4 = _errs109 === errors;
4754
4763
  }
4755
4764
  else {
4756
4765
  var valid4 = true;
4757
4766
  }
4758
4767
  if (valid4) {
4759
4768
  if (data.dataFormat !== undefined) {
4760
- const _errs110 = errors;
4769
+ const _errs111 = errors;
4761
4770
  if (typeof data.dataFormat !== "string") {
4762
4771
  validate45.errors = [{ instancePath: instancePath + "/dataFormat", schemaPath: "#/properties/dataFormat/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
4763
4772
  return false;
4764
4773
  }
4765
- var valid4 = _errs110 === errors;
4774
+ var valid4 = _errs111 === errors;
4766
4775
  }
4767
4776
  else {
4768
4777
  var valid4 = true;
@@ -4770,16 +4779,16 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4770
4779
  if (valid4) {
4771
4780
  if (data.dataSize !== undefined) {
4772
4781
  let data25 = data.dataSize;
4773
- const _errs112 = errors;
4774
4782
  const _errs113 = errors;
4775
- if (errors === _errs113) {
4783
+ const _errs114 = errors;
4784
+ if (errors === _errs114) {
4776
4785
  if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4777
4786
  if (Object.keys(data25).length < 1) {
4778
4787
  validate45.errors = [{ instancePath: instancePath + "/dataSize", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
4779
4788
  return false;
4780
4789
  }
4781
4790
  else {
4782
- const _errs115 = errors;
4791
+ const _errs116 = errors;
4783
4792
  for (const key5 in data25) {
4784
4793
  if (!((((key5 === "gt") || (key5 === "gte")) || (key5 === "lt")) || (key5 === "lte"))) {
4785
4794
  validate45.errors = [{ instancePath: instancePath + "/dataSize", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
@@ -4787,11 +4796,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4787
4796
  break;
4788
4797
  }
4789
4798
  }
4790
- if (_errs115 === errors) {
4799
+ if (_errs116 === errors) {
4791
4800
  if (data25.gt !== undefined) {
4792
- const _errs116 = errors;
4793
4801
  const _errs117 = errors;
4794
4802
  const _errs118 = errors;
4803
+ const _errs119 = errors;
4795
4804
  if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4796
4805
  let missing10;
4797
4806
  if ((data25.gte === undefined) && (missing10 = "gte")) {
@@ -4805,32 +4814,32 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4805
4814
  errors++;
4806
4815
  }
4807
4816
  }
4808
- var valid33 = _errs118 === errors;
4809
- if (valid33) {
4817
+ var valid34 = _errs119 === errors;
4818
+ if (valid34) {
4810
4819
  validate45.errors = [{ instancePath: instancePath + "/dataSize", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/gt/not", keyword: "not", params: {}, message: "must NOT be valid" }];
4811
4820
  return false;
4812
4821
  }
4813
4822
  else {
4814
- errors = _errs117;
4823
+ errors = _errs118;
4815
4824
  if (vErrors !== null) {
4816
- if (_errs117) {
4817
- vErrors.length = _errs117;
4825
+ if (_errs118) {
4826
+ vErrors.length = _errs118;
4818
4827
  }
4819
4828
  else {
4820
4829
  vErrors = null;
4821
4830
  }
4822
4831
  }
4823
4832
  }
4824
- var valid32 = _errs116 === errors;
4833
+ var valid33 = _errs117 === errors;
4825
4834
  }
4826
4835
  else {
4827
- var valid32 = true;
4836
+ var valid33 = true;
4828
4837
  }
4829
- if (valid32) {
4838
+ if (valid33) {
4830
4839
  if (data25.gte !== undefined) {
4831
- const _errs119 = errors;
4832
4840
  const _errs120 = errors;
4833
4841
  const _errs121 = errors;
4842
+ const _errs122 = errors;
4834
4843
  if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4835
4844
  let missing11;
4836
4845
  if ((data25.gt === undefined) && (missing11 = "gt")) {
@@ -4844,32 +4853,32 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4844
4853
  errors++;
4845
4854
  }
4846
4855
  }
4847
- var valid34 = _errs121 === errors;
4848
- if (valid34) {
4856
+ var valid35 = _errs122 === errors;
4857
+ if (valid35) {
4849
4858
  validate45.errors = [{ instancePath: instancePath + "/dataSize", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/gte/not", keyword: "not", params: {}, message: "must NOT be valid" }];
4850
4859
  return false;
4851
4860
  }
4852
4861
  else {
4853
- errors = _errs120;
4862
+ errors = _errs121;
4854
4863
  if (vErrors !== null) {
4855
- if (_errs120) {
4856
- vErrors.length = _errs120;
4864
+ if (_errs121) {
4865
+ vErrors.length = _errs121;
4857
4866
  }
4858
4867
  else {
4859
4868
  vErrors = null;
4860
4869
  }
4861
4870
  }
4862
4871
  }
4863
- var valid32 = _errs119 === errors;
4872
+ var valid33 = _errs120 === errors;
4864
4873
  }
4865
4874
  else {
4866
- var valid32 = true;
4875
+ var valid33 = true;
4867
4876
  }
4868
- if (valid32) {
4877
+ if (valid33) {
4869
4878
  if (data25.lt !== undefined) {
4870
- const _errs122 = errors;
4871
4879
  const _errs123 = errors;
4872
4880
  const _errs124 = errors;
4881
+ const _errs125 = errors;
4873
4882
  if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4874
4883
  let missing12;
4875
4884
  if ((data25.lte === undefined) && (missing12 = "lte")) {
@@ -4883,32 +4892,32 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4883
4892
  errors++;
4884
4893
  }
4885
4894
  }
4886
- var valid35 = _errs124 === errors;
4887
- if (valid35) {
4895
+ var valid36 = _errs125 === errors;
4896
+ if (valid36) {
4888
4897
  validate45.errors = [{ instancePath: instancePath + "/dataSize", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/lt/not", keyword: "not", params: {}, message: "must NOT be valid" }];
4889
4898
  return false;
4890
4899
  }
4891
4900
  else {
4892
- errors = _errs123;
4901
+ errors = _errs124;
4893
4902
  if (vErrors !== null) {
4894
- if (_errs123) {
4895
- vErrors.length = _errs123;
4903
+ if (_errs124) {
4904
+ vErrors.length = _errs124;
4896
4905
  }
4897
4906
  else {
4898
4907
  vErrors = null;
4899
4908
  }
4900
4909
  }
4901
4910
  }
4902
- var valid32 = _errs122 === errors;
4911
+ var valid33 = _errs123 === errors;
4903
4912
  }
4904
4913
  else {
4905
- var valid32 = true;
4914
+ var valid33 = true;
4906
4915
  }
4907
- if (valid32) {
4916
+ if (valid33) {
4908
4917
  if (data25.lte !== undefined) {
4909
- const _errs125 = errors;
4910
4918
  const _errs126 = errors;
4911
4919
  const _errs127 = errors;
4920
+ const _errs128 = errors;
4912
4921
  if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
4913
4922
  let missing13;
4914
4923
  if ((data25.lt === undefined) && (missing13 = "lt")) {
@@ -4922,78 +4931,78 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
4922
4931
  errors++;
4923
4932
  }
4924
4933
  }
4925
- var valid36 = _errs127 === errors;
4926
- if (valid36) {
4934
+ var valid37 = _errs128 === errors;
4935
+ if (valid37) {
4927
4936
  validate45.errors = [{ instancePath: instancePath + "/dataSize", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/dependencies/lte/not", keyword: "not", params: {}, message: "must NOT be valid" }];
4928
4937
  return false;
4929
4938
  }
4930
4939
  else {
4931
- errors = _errs126;
4940
+ errors = _errs127;
4932
4941
  if (vErrors !== null) {
4933
- if (_errs126) {
4934
- vErrors.length = _errs126;
4942
+ if (_errs127) {
4943
+ vErrors.length = _errs127;
4935
4944
  }
4936
4945
  else {
4937
4946
  vErrors = null;
4938
4947
  }
4939
4948
  }
4940
4949
  }
4941
- var valid32 = _errs125 === errors;
4950
+ var valid33 = _errs126 === errors;
4942
4951
  }
4943
4952
  else {
4944
- var valid32 = true;
4953
+ var valid33 = true;
4945
4954
  }
4946
- if (valid32) {
4955
+ if (valid33) {
4947
4956
  if (data25.gt !== undefined) {
4948
4957
  let data26 = data25.gt;
4949
- const _errs128 = errors;
4958
+ const _errs129 = errors;
4950
4959
  if (!((typeof data26 == "number") && (isFinite(data26)))) {
4951
4960
  validate45.errors = [{ instancePath: instancePath + "/dataSize/gt", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/gt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
4952
4961
  return false;
4953
4962
  }
4954
- var valid37 = _errs128 === errors;
4963
+ var valid38 = _errs129 === errors;
4955
4964
  }
4956
4965
  else {
4957
- var valid37 = true;
4966
+ var valid38 = true;
4958
4967
  }
4959
- if (valid37) {
4968
+ if (valid38) {
4960
4969
  if (data25.gte !== undefined) {
4961
4970
  let data27 = data25.gte;
4962
- const _errs130 = errors;
4971
+ const _errs131 = errors;
4963
4972
  if (!((typeof data27 == "number") && (isFinite(data27)))) {
4964
4973
  validate45.errors = [{ instancePath: instancePath + "/dataSize/gte", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/gte/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
4965
4974
  return false;
4966
4975
  }
4967
- var valid37 = _errs130 === errors;
4976
+ var valid38 = _errs131 === errors;
4968
4977
  }
4969
4978
  else {
4970
- var valid37 = true;
4979
+ var valid38 = true;
4971
4980
  }
4972
- if (valid37) {
4981
+ if (valid38) {
4973
4982
  if (data25.lt !== undefined) {
4974
4983
  let data28 = data25.lt;
4975
- const _errs132 = errors;
4984
+ const _errs133 = errors;
4976
4985
  if (!((typeof data28 == "number") && (isFinite(data28)))) {
4977
4986
  validate45.errors = [{ instancePath: instancePath + "/dataSize/lt", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/lt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
4978
4987
  return false;
4979
4988
  }
4980
- var valid37 = _errs132 === errors;
4989
+ var valid38 = _errs133 === errors;
4981
4990
  }
4982
4991
  else {
4983
- var valid37 = true;
4992
+ var valid38 = true;
4984
4993
  }
4985
- if (valid37) {
4994
+ if (valid38) {
4986
4995
  if (data25.lte !== undefined) {
4987
4996
  let data29 = data25.lte;
4988
- const _errs134 = errors;
4997
+ const _errs135 = errors;
4989
4998
  if (!((typeof data29 == "number") && (isFinite(data29)))) {
4990
4999
  validate45.errors = [{ instancePath: instancePath + "/dataSize/lte", schemaPath: "https://identity.foundation/dwn/json-schemas/number-range-filter.json/properties/lte/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
4991
5000
  return false;
4992
5001
  }
4993
- var valid37 = _errs134 === errors;
5002
+ var valid38 = _errs135 === errors;
4994
5003
  }
4995
5004
  else {
4996
- var valid37 = true;
5005
+ var valid38 = true;
4997
5006
  }
4998
5007
  }
4999
5008
  }
@@ -5010,19 +5019,19 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5010
5019
  return false;
5011
5020
  }
5012
5021
  }
5013
- var valid4 = _errs112 === errors;
5022
+ var valid4 = _errs113 === errors;
5014
5023
  }
5015
5024
  else {
5016
5025
  var valid4 = true;
5017
5026
  }
5018
5027
  if (valid4) {
5019
5028
  if (data.dataCid !== undefined) {
5020
- const _errs136 = errors;
5029
+ const _errs137 = errors;
5021
5030
  if (typeof data.dataCid !== "string") {
5022
5031
  validate45.errors = [{ instancePath: instancePath + "/dataCid", schemaPath: "#/properties/dataCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5023
5032
  return false;
5024
5033
  }
5025
- var valid4 = _errs136 === errors;
5034
+ var valid4 = _errs137 === errors;
5026
5035
  }
5027
5036
  else {
5028
5037
  var valid4 = true;
@@ -5030,15 +5039,15 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5030
5039
  if (valid4) {
5031
5040
  if (data.dateCreated !== undefined) {
5032
5041
  let data31 = data.dateCreated;
5033
- const _errs138 = errors;
5034
- if (errors === _errs138) {
5042
+ const _errs139 = errors;
5043
+ if (errors === _errs139) {
5035
5044
  if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
5036
5045
  if (Object.keys(data31).length < 1) {
5037
5046
  validate45.errors = [{ instancePath: instancePath + "/dateCreated", schemaPath: "#/properties/dateCreated/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
5038
5047
  return false;
5039
5048
  }
5040
5049
  else {
5041
- const _errs140 = errors;
5050
+ const _errs141 = errors;
5042
5051
  for (const key6 in data31) {
5043
5052
  if (!((key6 === "from") || (key6 === "to"))) {
5044
5053
  validate45.errors = [{ instancePath: instancePath + "/dateCreated", schemaPath: "#/properties/dateCreated/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
@@ -5046,12 +5055,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5046
5055
  break;
5047
5056
  }
5048
5057
  }
5049
- if (_errs140 === errors) {
5058
+ if (_errs141 === errors) {
5050
5059
  if (data31.from !== undefined) {
5051
5060
  let data32 = data31.from;
5052
- const _errs141 = errors;
5053
5061
  const _errs142 = errors;
5054
- if (errors === _errs142) {
5062
+ const _errs143 = errors;
5063
+ if (errors === _errs143) {
5055
5064
  if (typeof data32 === "string") {
5056
5065
  if (!pattern17.test(data32)) {
5057
5066
  validate45.errors = [{ instancePath: instancePath + "/dateCreated/from", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -5063,17 +5072,17 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5063
5072
  return false;
5064
5073
  }
5065
5074
  }
5066
- var valid38 = _errs141 === errors;
5075
+ var valid39 = _errs142 === errors;
5067
5076
  }
5068
5077
  else {
5069
- var valid38 = true;
5078
+ var valid39 = true;
5070
5079
  }
5071
- if (valid38) {
5080
+ if (valid39) {
5072
5081
  if (data31.to !== undefined) {
5073
5082
  let data33 = data31.to;
5074
- const _errs144 = errors;
5075
5083
  const _errs145 = errors;
5076
- if (errors === _errs145) {
5084
+ const _errs146 = errors;
5085
+ if (errors === _errs146) {
5077
5086
  if (typeof data33 === "string") {
5078
5087
  if (!pattern17.test(data33)) {
5079
5088
  validate45.errors = [{ instancePath: instancePath + "/dateCreated/to", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -5085,10 +5094,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5085
5094
  return false;
5086
5095
  }
5087
5096
  }
5088
- var valid38 = _errs144 === errors;
5097
+ var valid39 = _errs145 === errors;
5089
5098
  }
5090
5099
  else {
5091
- var valid38 = true;
5100
+ var valid39 = true;
5092
5101
  }
5093
5102
  }
5094
5103
  }
@@ -5099,7 +5108,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5099
5108
  return false;
5100
5109
  }
5101
5110
  }
5102
- var valid4 = _errs138 === errors;
5111
+ var valid4 = _errs139 === errors;
5103
5112
  }
5104
5113
  else {
5105
5114
  var valid4 = true;
@@ -5107,15 +5116,15 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5107
5116
  if (valid4) {
5108
5117
  if (data.datePublished !== undefined) {
5109
5118
  let data34 = data.datePublished;
5110
- const _errs147 = errors;
5111
- if (errors === _errs147) {
5119
+ const _errs148 = errors;
5120
+ if (errors === _errs148) {
5112
5121
  if (data34 && typeof data34 == "object" && !Array.isArray(data34)) {
5113
5122
  if (Object.keys(data34).length < 1) {
5114
5123
  validate45.errors = [{ instancePath: instancePath + "/datePublished", schemaPath: "#/properties/datePublished/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
5115
5124
  return false;
5116
5125
  }
5117
5126
  else {
5118
- const _errs149 = errors;
5127
+ const _errs150 = errors;
5119
5128
  for (const key7 in data34) {
5120
5129
  if (!((key7 === "from") || (key7 === "to"))) {
5121
5130
  validate45.errors = [{ instancePath: instancePath + "/datePublished", schemaPath: "#/properties/datePublished/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" }];
@@ -5123,12 +5132,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5123
5132
  break;
5124
5133
  }
5125
5134
  }
5126
- if (_errs149 === errors) {
5135
+ if (_errs150 === errors) {
5127
5136
  if (data34.from !== undefined) {
5128
5137
  let data35 = data34.from;
5129
- const _errs150 = errors;
5130
5138
  const _errs151 = errors;
5131
- if (errors === _errs151) {
5139
+ const _errs152 = errors;
5140
+ if (errors === _errs152) {
5132
5141
  if (typeof data35 === "string") {
5133
5142
  if (!pattern17.test(data35)) {
5134
5143
  validate45.errors = [{ instancePath: instancePath + "/datePublished/from", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -5140,17 +5149,17 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5140
5149
  return false;
5141
5150
  }
5142
5151
  }
5143
- var valid41 = _errs150 === errors;
5152
+ var valid42 = _errs151 === errors;
5144
5153
  }
5145
5154
  else {
5146
- var valid41 = true;
5155
+ var valid42 = true;
5147
5156
  }
5148
- if (valid41) {
5157
+ if (valid42) {
5149
5158
  if (data34.to !== undefined) {
5150
5159
  let data36 = data34.to;
5151
- const _errs153 = errors;
5152
5160
  const _errs154 = errors;
5153
- if (errors === _errs154) {
5161
+ const _errs155 = errors;
5162
+ if (errors === _errs155) {
5154
5163
  if (typeof data36 === "string") {
5155
5164
  if (!pattern17.test(data36)) {
5156
5165
  validate45.errors = [{ instancePath: instancePath + "/datePublished/to", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -5162,10 +5171,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5162
5171
  return false;
5163
5172
  }
5164
5173
  }
5165
- var valid41 = _errs153 === errors;
5174
+ var valid42 = _errs154 === errors;
5166
5175
  }
5167
5176
  else {
5168
- var valid41 = true;
5177
+ var valid42 = true;
5169
5178
  }
5170
5179
  }
5171
5180
  }
@@ -5176,7 +5185,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5176
5185
  return false;
5177
5186
  }
5178
5187
  }
5179
- var valid4 = _errs147 === errors;
5188
+ var valid4 = _errs148 === errors;
5180
5189
  }
5181
5190
  else {
5182
5191
  var valid4 = true;
@@ -5184,15 +5193,15 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5184
5193
  if (valid4) {
5185
5194
  if (data.dateUpdated !== undefined) {
5186
5195
  let data37 = data.dateUpdated;
5187
- const _errs156 = errors;
5188
- if (errors === _errs156) {
5196
+ const _errs157 = errors;
5197
+ if (errors === _errs157) {
5189
5198
  if (data37 && typeof data37 == "object" && !Array.isArray(data37)) {
5190
5199
  if (Object.keys(data37).length < 1) {
5191
5200
  validate45.errors = [{ instancePath: instancePath + "/dateUpdated", schemaPath: "#/properties/dateUpdated/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
5192
5201
  return false;
5193
5202
  }
5194
5203
  else {
5195
- const _errs158 = errors;
5204
+ const _errs159 = errors;
5196
5205
  for (const key8 in data37) {
5197
5206
  if (!((key8 === "from") || (key8 === "to"))) {
5198
5207
  validate45.errors = [{ instancePath: instancePath + "/dateUpdated", schemaPath: "#/properties/dateUpdated/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key8 }, message: "must NOT have additional properties" }];
@@ -5200,12 +5209,12 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5200
5209
  break;
5201
5210
  }
5202
5211
  }
5203
- if (_errs158 === errors) {
5212
+ if (_errs159 === errors) {
5204
5213
  if (data37.from !== undefined) {
5205
5214
  let data38 = data37.from;
5206
- const _errs159 = errors;
5207
5215
  const _errs160 = errors;
5208
- if (errors === _errs160) {
5216
+ const _errs161 = errors;
5217
+ if (errors === _errs161) {
5209
5218
  if (typeof data38 === "string") {
5210
5219
  if (!pattern17.test(data38)) {
5211
5220
  validate45.errors = [{ instancePath: instancePath + "/dateUpdated/from", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -5217,17 +5226,17 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5217
5226
  return false;
5218
5227
  }
5219
5228
  }
5220
- var valid44 = _errs159 === errors;
5229
+ var valid45 = _errs160 === errors;
5221
5230
  }
5222
5231
  else {
5223
- var valid44 = true;
5232
+ var valid45 = true;
5224
5233
  }
5225
- if (valid44) {
5234
+ if (valid45) {
5226
5235
  if (data37.to !== undefined) {
5227
5236
  let data39 = data37.to;
5228
- const _errs162 = errors;
5229
5237
  const _errs163 = errors;
5230
- if (errors === _errs163) {
5238
+ const _errs164 = errors;
5239
+ if (errors === _errs164) {
5231
5240
  if (typeof data39 === "string") {
5232
5241
  if (!pattern17.test(data39)) {
5233
5242
  validate45.errors = [{ instancePath: instancePath + "/dateUpdated/to", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/pattern", keyword: "pattern", params: { pattern: "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, message: "must match pattern \"" + "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" + "\"" }];
@@ -5239,10 +5248,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5239
5248
  return false;
5240
5249
  }
5241
5250
  }
5242
- var valid44 = _errs162 === errors;
5251
+ var valid45 = _errs163 === errors;
5243
5252
  }
5244
5253
  else {
5245
- var valid44 = true;
5254
+ var valid45 = true;
5246
5255
  }
5247
5256
  }
5248
5257
  }
@@ -5253,7 +5262,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5253
5262
  return false;
5254
5263
  }
5255
5264
  }
5256
- var valid4 = _errs156 === errors;
5265
+ var valid4 = _errs157 === errors;
5257
5266
  }
5258
5267
  else {
5259
5268
  var valid4 = true;
@@ -5345,7 +5354,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
5345
5354
  return false;
5346
5355
  }
5347
5356
  if (!(data2 === "Records")) {
5348
- validate43.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema56.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5357
+ validate43.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema57.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5349
5358
  return false;
5350
5359
  }
5351
5360
  var valid1 = _errs6 === errors;
@@ -5362,7 +5371,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
5362
5371
  return false;
5363
5372
  }
5364
5373
  if (!(data3 === "Count")) {
5365
- validate43.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema56.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5374
+ validate43.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema57.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5366
5375
  return false;
5367
5376
  }
5368
5377
  var valid1 = _errs8 === errors;
@@ -5444,7 +5453,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
5444
5453
  } validate43.errors = vErrors; return errors === 0; }
5445
5454
  validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
5446
5455
  export const RecordsDelete = validate47;
5447
- const schema73 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-delete.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "recordId", "prune"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Delete"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "recordId": { "type": "string" }, "permissionGrantId": { "type": "string" }, "prune": { "type": "boolean" } } } } };
5456
+ const schema75 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-delete.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "recordId", "prune"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Delete"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "recordId": { "type": "string" }, "permissionGrantId": { "type": "string" }, "prune": { "type": "boolean" } } } } };
5448
5457
  function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/records-delete.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate47.evaluated; if (evaluated0.dynamicProps) {
5449
5458
  evaluated0.props = undefined;
5450
5459
  } if (evaluated0.dynamicItems) {
@@ -5506,7 +5515,7 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
5506
5515
  return false;
5507
5516
  }
5508
5517
  if (!(data2 === "Records")) {
5509
- validate47.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema73.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5518
+ validate47.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema75.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5510
5519
  return false;
5511
5520
  }
5512
5521
  var valid1 = _errs6 === errors;
@@ -5523,7 +5532,7 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
5523
5532
  return false;
5524
5533
  }
5525
5534
  if (!(data3 === "Delete")) {
5526
- validate47.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema73.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5535
+ validate47.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema75.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5527
5536
  return false;
5528
5537
  }
5529
5538
  var valid1 = _errs8 === errors;
@@ -5618,8 +5627,8 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
5618
5627
  } validate47.errors = vErrors; return errors === 0; }
5619
5628
  validate47.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
5620
5629
  export const RecordsQuery = validate49;
5621
- const schema75 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-query.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Query"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" }, "pagination": { "type": "object", "additionalProperties": false, "properties": { "limit": { "type": "number", "minimum": 1 }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json" } } }, "dateSort": { "enum": ["createdAscending", "createdDescending", "publishedAscending", "publishedDescending", "updatedAscending", "updatedDescending"], "type": "string" } } } } };
5622
- const schema77 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json", "type": "object", "minProperties": 1, "additionalProperties": false, "required": ["messageCid", "value"], "properties": { "messageCid": { "type": "string" }, "value": { "type": ["string", "number"] } } };
5630
+ const schema77 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-query.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Query"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" }, "pagination": { "type": "object", "additionalProperties": false, "properties": { "limit": { "type": "number", "minimum": 1 }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json" } } }, "dateSort": { "enum": ["createdAscending", "createdDescending", "publishedAscending", "publishedDescending", "updatedAscending", "updatedDescending"], "type": "string" } } } } };
5631
+ const schema79 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json", "type": "object", "minProperties": 1, "additionalProperties": false, "required": ["messageCid", "value"], "properties": { "messageCid": { "type": "string" }, "value": { "type": ["string", "number"] } } };
5623
5632
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/records-query.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate49.evaluated; if (evaluated0.dynamicProps) {
5624
5633
  evaluated0.props = undefined;
5625
5634
  } if (evaluated0.dynamicItems) {
@@ -5681,7 +5690,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
5681
5690
  return false;
5682
5691
  }
5683
5692
  if (!(data2 === "Records")) {
5684
- validate49.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema75.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5693
+ validate49.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema77.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5685
5694
  return false;
5686
5695
  }
5687
5696
  var valid1 = _errs6 === errors;
@@ -5698,7 +5707,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
5698
5707
  return false;
5699
5708
  }
5700
5709
  if (!(data3 === "Query")) {
5701
- validate49.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema75.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5710
+ validate49.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema77.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5702
5711
  return false;
5703
5712
  }
5704
5713
  var valid1 = _errs8 === errors;
@@ -5830,7 +5839,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
5830
5839
  let data11 = data9.value;
5831
5840
  const _errs27 = errors;
5832
5841
  if ((typeof data11 !== "string") && (!((typeof data11 == "number") && (isFinite(data11))))) {
5833
- validate49.errors = [{ instancePath: instancePath + "/descriptor/pagination/cursor/value", schemaPath: "https://identity.foundation/dwn/json-schemas/pagination-cursor.json/properties/value/type", keyword: "type", params: { type: schema77.properties.value.type }, message: "must be string,number" }];
5842
+ validate49.errors = [{ instancePath: instancePath + "/descriptor/pagination/cursor/value", schemaPath: "https://identity.foundation/dwn/json-schemas/pagination-cursor.json/properties/value/type", keyword: "type", params: { type: schema79.properties.value.type }, message: "must be string,number" }];
5834
5843
  return false;
5835
5844
  }
5836
5845
  var valid5 = _errs27 === errors;
@@ -5875,7 +5884,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
5875
5884
  return false;
5876
5885
  }
5877
5886
  if (!((((((data12 === "createdAscending") || (data12 === "createdDescending")) || (data12 === "publishedAscending")) || (data12 === "publishedDescending")) || (data12 === "updatedAscending")) || (data12 === "updatedDescending"))) {
5878
- validate49.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema75.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
5887
+ validate49.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema77.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
5879
5888
  return false;
5880
5889
  }
5881
5890
  var valid1 = _errs29 === errors;
@@ -5913,8 +5922,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
5913
5922
  } validate49.errors = vErrors; return errors === 0; }
5914
5923
  validate49.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
5915
5924
  export const RecordsSubscribe = validate52;
5916
- const schema78 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-subscribe.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Subscribe"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" }, "pagination": { "type": "object", "additionalProperties": false, "properties": { "limit": { "type": "number", "minimum": 1 }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json" } } }, "dateSort": { "enum": ["createdAscending", "createdDescending", "publishedAscending", "publishedDescending", "updatedAscending", "updatedDescending"], "type": "string" }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" } } } } };
5917
- const schema81 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/progress-token.json", "type": "object", "additionalProperties": false, "required": ["streamId", "epoch", "position"], "properties": { "streamId": { "type": "string", "minLength": 1 }, "epoch": { "type": "string", "minLength": 1 }, "position": { "type": "string", "minLength": 1 }, "messageCid": { "type": "string", "minLength": 1 } } };
5925
+ const schema80 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-subscribe.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Subscribe"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" }, "pagination": { "type": "object", "additionalProperties": false, "properties": { "limit": { "type": "number", "minimum": 1 }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/pagination-cursor.json" } } }, "dateSort": { "enum": ["createdAscending", "createdDescending", "publishedAscending", "publishedDescending", "updatedAscending", "updatedDescending"], "type": "string" }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" } } } } };
5926
+ const schema83 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/progress-token.json", "type": "object", "additionalProperties": false, "required": ["streamId", "epoch", "position"], "properties": { "streamId": { "type": "string", "minLength": 1 }, "epoch": { "type": "string", "minLength": 1 }, "position": { "type": "string", "minLength": 1 }, "messageCid": { "type": "string", "minLength": 1 } } };
5918
5927
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/records-subscribe.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate52.evaluated; if (evaluated0.dynamicProps) {
5919
5928
  evaluated0.props = undefined;
5920
5929
  } if (evaluated0.dynamicItems) {
@@ -5976,7 +5985,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
5976
5985
  return false;
5977
5986
  }
5978
5987
  if (!(data2 === "Records")) {
5979
- validate52.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema78.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5988
+ validate52.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema80.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
5980
5989
  return false;
5981
5990
  }
5982
5991
  var valid1 = _errs6 === errors;
@@ -5993,7 +6002,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
5993
6002
  return false;
5994
6003
  }
5995
6004
  if (!(data3 === "Subscribe")) {
5996
- validate52.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema78.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6005
+ validate52.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema80.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
5997
6006
  return false;
5998
6007
  }
5999
6008
  var valid1 = _errs8 === errors;
@@ -6125,7 +6134,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
6125
6134
  let data11 = data9.value;
6126
6135
  const _errs27 = errors;
6127
6136
  if ((typeof data11 !== "string") && (!((typeof data11 == "number") && (isFinite(data11))))) {
6128
- validate52.errors = [{ instancePath: instancePath + "/descriptor/pagination/cursor/value", schemaPath: "https://identity.foundation/dwn/json-schemas/pagination-cursor.json/properties/value/type", keyword: "type", params: { type: schema77.properties.value.type }, message: "must be string,number" }];
6137
+ validate52.errors = [{ instancePath: instancePath + "/descriptor/pagination/cursor/value", schemaPath: "https://identity.foundation/dwn/json-schemas/pagination-cursor.json/properties/value/type", keyword: "type", params: { type: schema79.properties.value.type }, message: "must be string,number" }];
6129
6138
  return false;
6130
6139
  }
6131
6140
  var valid5 = _errs27 === errors;
@@ -6170,7 +6179,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
6170
6179
  return false;
6171
6180
  }
6172
6181
  if (!((((((data12 === "createdAscending") || (data12 === "createdDescending")) || (data12 === "publishedAscending")) || (data12 === "publishedDescending")) || (data12 === "updatedAscending")) || (data12 === "updatedDescending"))) {
6173
- validate52.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema78.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
6182
+ validate52.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema80.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
6174
6183
  return false;
6175
6184
  }
6176
6185
  var valid1 = _errs29 === errors;
@@ -6330,7 +6339,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
6330
6339
  } validate52.errors = vErrors; return errors === 0; }
6331
6340
  validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
6332
6341
  export const RecordsWrite = validate55;
6333
- const schema82 = { "$id": "https://identity.foundation/dwn/json-schemas/records-write.json", "$ref": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json", "unevaluatedProperties": false, "type": "object", "required": ["recordId", "authorization"] };
6342
+ const schema84 = { "$id": "https://identity.foundation/dwn/json-schemas/records-write.json", "$ref": "https://identity.foundation/dwn/json-schemas/records-write-unidentified.json", "unevaluatedProperties": false, "type": "object", "required": ["recordId", "authorization"] };
6334
6343
  function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/records-write.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate55.evaluated; if (evaluated0.dynamicProps) {
6335
6344
  evaluated0.props = undefined;
6336
6345
  } if (evaluated0.dynamicItems) {
@@ -6364,7 +6373,7 @@ validate55.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": f
6364
6373
  export const RecordsWriteDataEncoded = validate26;
6365
6374
  export const RecordsWriteUnidentified = validate27;
6366
6375
  export const Definitions = validate22;
6367
- const schema33 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/defs.json", "type": "object", "$defs": { "base64url": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" }, "uuid": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" }, "did": { "type": "string", "pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" }, "date-time": { "type": "string", "pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" } }, "definitions": { "base64url": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" }, "uuid": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" }, "did": { "type": "string", "pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(\\/[^#?]*)?([?][^#]*)?(#.*)?$" }, "date-time": { "type": "string", "pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" } } };
6376
+ const schema33 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/defs.json", "type": "object", "$defs": { "base64url": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" }, "uuid": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" }, "did": { "type": "string", "pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" }, "date-time": { "type": "string", "pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" }, "contextId": { "type": "string", "maxLength": 600, "pattern": "^[a-zA-Z0-9]+(\\/[a-zA-Z0-9]+)*$" } }, "definitions": { "base64url": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" }, "uuid": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" }, "did": { "type": "string", "pattern": "^did:([a-z0-9]+):((?:(?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))*:)*((?:[a-zA-Z0-9._-]|(?:%[0-9a-fA-F]{2}))+))((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)(\\/[^#?]*)?([?][^#]*)?(#.*)?$" }, "date-time": { "type": "string", "pattern": "^\\d{4}-[0-1]\\d-[0-3]\\dT(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)\\.\\d{6}Z$" } } };
6368
6377
  function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/defs.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate22.evaluated; if (evaluated0.dynamicProps) {
6369
6378
  evaluated0.props = undefined;
6370
6379
  } if (evaluated0.dynamicItems) {
@@ -6967,7 +6976,7 @@ else {
6967
6976
  let data23 = data.kty;
6968
6977
  const _errs48 = errors;
6969
6978
  if (!((((data23 === "EC") || (data23 === "RSA")) || (data23 === "oct")) || (data23 === "OKP"))) {
6970
- validate57.errors = [{ instancePath: instancePath + "/kty", schemaPath: "#/properties/kty/enum", keyword: "enum", params: { allowedValues: schema43.properties.kty.enum }, message: "must be equal to one of the allowed values" }];
6979
+ validate57.errors = [{ instancePath: instancePath + "/kty", schemaPath: "#/properties/kty/enum", keyword: "enum", params: { allowedValues: schema44.properties.kty.enum }, message: "must be equal to one of the allowed values" }];
6971
6980
  return false;
6972
6981
  }
6973
6982
  var valid5 = _errs48 === errors;
@@ -7078,7 +7087,7 @@ else {
7078
7087
  validate57.evaluated = { "dynamicProps": true, "dynamicItems": false };
7079
7088
  export const GeneralJws = validate21;
7080
7089
  export const JwkVerificationMethod = validate58;
7081
- const schema84 = { "$id": "https://identity.foundation/dwn/json-schemas/jwk-verification-method.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["id", "type", "controller", "publicKeyJwk"], "properties": { "id": { "type": "string" }, "type": { "enum": ["JsonWebKey", "JsonWebKey2020"] }, "controller": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, "publicKeyJwk": { "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" } } };
7090
+ const schema86 = { "$id": "https://identity.foundation/dwn/json-schemas/jwk-verification-method.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["id", "type", "controller", "publicKeyJwk"], "properties": { "id": { "type": "string" }, "type": { "enum": ["JsonWebKey", "JsonWebKey2020"] }, "controller": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" }, "publicKeyJwk": { "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" } } };
7082
7091
  function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/jwk-verification-method.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate58.evaluated; if (evaluated0.dynamicProps) {
7083
7092
  evaluated0.props = undefined;
7084
7093
  } if (evaluated0.dynamicItems) {
@@ -7116,7 +7125,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
7116
7125
  let data1 = data.type;
7117
7126
  const _errs4 = errors;
7118
7127
  if (!((data1 === "JsonWebKey") || (data1 === "JsonWebKey2020"))) {
7119
- validate58.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema84.properties.type.enum }, message: "must be equal to one of the allowed values" }];
7128
+ validate58.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema86.properties.type.enum }, message: "must be equal to one of the allowed values" }];
7120
7129
  return false;
7121
7130
  }
7122
7131
  var valid0 = _errs4 === errors;
@@ -7171,7 +7180,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
7171
7180
  } validate58.errors = vErrors; return errors === 0; }
7172
7181
  validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7173
7182
  export const MessagesFilter = validate60;
7174
- const schema86 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-filter.json", "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "interface": { "enum": ["Messages", "Protocols", "Records"], "type": "string" }, "method": { "enum": ["Configure", "Delete", "Write"], "type": "string" }, "protocol": { "type": "string" }, "protocolPathPrefix": { "type": "string" }, "contextIdPrefix": { "type": "string" }, "messageTimestamp": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } } };
7183
+ const schema88 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-filter.json", "type": "object", "additionalProperties": false, "minProperties": 1, "properties": { "interface": { "enum": ["Messages", "Protocols", "Records"], "type": "string" }, "method": { "enum": ["Configure", "Delete", "Write"], "type": "string" }, "protocol": { "type": "string" }, "protocolPathPrefix": { "type": "string" }, "contextIdPrefix": { "type": "string" }, "messageTimestamp": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "from": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "to": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } } };
7175
7184
  function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/messages-filter.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate60.evaluated; if (evaluated0.dynamicProps) {
7176
7185
  evaluated0.props = undefined;
7177
7186
  } if (evaluated0.dynamicItems) {
@@ -7200,7 +7209,7 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
7200
7209
  return false;
7201
7210
  }
7202
7211
  if (!(((data0 === "Messages") || (data0 === "Protocols")) || (data0 === "Records"))) {
7203
- validate60.errors = [{ instancePath: instancePath + "/interface", schemaPath: "#/properties/interface/enum", keyword: "enum", params: { allowedValues: schema86.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7212
+ validate60.errors = [{ instancePath: instancePath + "/interface", schemaPath: "#/properties/interface/enum", keyword: "enum", params: { allowedValues: schema88.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7204
7213
  return false;
7205
7214
  }
7206
7215
  var valid0 = _errs2 === errors;
@@ -7217,7 +7226,7 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
7217
7226
  return false;
7218
7227
  }
7219
7228
  if (!(((data1 === "Configure") || (data1 === "Delete")) || (data1 === "Write"))) {
7220
- validate60.errors = [{ instancePath: instancePath + "/method", schemaPath: "#/properties/method/enum", keyword: "enum", params: { allowedValues: schema86.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7229
+ validate60.errors = [{ instancePath: instancePath + "/method", schemaPath: "#/properties/method/enum", keyword: "enum", params: { allowedValues: schema88.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7221
7230
  return false;
7222
7231
  }
7223
7232
  var valid0 = _errs4 === errors;
@@ -7353,7 +7362,7 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
7353
7362
  } validate60.errors = vErrors; return errors === 0; }
7354
7363
  validate60.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7355
7364
  export const MessagesQuery = validate61;
7356
- const schema89 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-query.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filters"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Query"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filters": { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/messages-filter.json" } }, "permissionGrantIds": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" }, "limit": { "type": "integer", "minimum": 0 }, "cidsOnly": { "type": "boolean" } } } } };
7365
+ const schema91 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-query.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filters"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Query"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filters": { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/messages-filter.json" } }, "permissionGrantIds": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" }, "limit": { "type": "integer", "minimum": 0 }, "cidsOnly": { "type": "boolean" } } } } };
7357
7366
  function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/messages-query.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate61.evaluated; if (evaluated0.dynamicProps) {
7358
7367
  evaluated0.props = undefined;
7359
7368
  } if (evaluated0.dynamicItems) {
@@ -7415,7 +7424,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
7415
7424
  return false;
7416
7425
  }
7417
7426
  if (!(data2 === "Messages")) {
7418
- validate61.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema89.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7427
+ validate61.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema91.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7419
7428
  return false;
7420
7429
  }
7421
7430
  var valid1 = _errs6 === errors;
@@ -7432,7 +7441,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
7432
7441
  return false;
7433
7442
  }
7434
7443
  if (!(data3 === "Query")) {
7435
- validate61.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema89.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7444
+ validate61.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema91.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7436
7445
  return false;
7437
7446
  }
7438
7447
  var valid1 = _errs8 === errors;
@@ -7733,7 +7742,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
7733
7742
  } validate61.errors = vErrors; return errors === 0; }
7734
7743
  validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7735
7744
  export const MessagesRead = validate64;
7736
- const schema92 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-read.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "messageCid"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Read"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "messageCid": { "type": "string" }, "permissionGrantIds": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true } } } } };
7745
+ const schema94 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-read.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "messageCid"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Read"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "messageCid": { "type": "string" }, "permissionGrantIds": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true } } } } };
7737
7746
  function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/messages-read.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate64.evaluated; if (evaluated0.dynamicProps) {
7738
7747
  evaluated0.props = undefined;
7739
7748
  } if (evaluated0.dynamicItems) {
@@ -7795,7 +7804,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
7795
7804
  return false;
7796
7805
  }
7797
7806
  if (!(data2 === "Messages")) {
7798
- validate64.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema92.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7807
+ validate64.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema94.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7799
7808
  return false;
7800
7809
  }
7801
7810
  var valid1 = _errs6 === errors;
@@ -7812,7 +7821,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
7812
7821
  return false;
7813
7822
  }
7814
7823
  if (!(data3 === "Read")) {
7815
- validate64.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema92.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7824
+ validate64.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema94.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7816
7825
  return false;
7817
7826
  }
7818
7827
  var valid1 = _errs8 === errors;
@@ -7938,7 +7947,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
7938
7947
  } validate64.errors = vErrors; return errors === 0; }
7939
7948
  validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7940
7949
  export const MessagesSubscribe = validate66;
7941
- const schema94 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-subscribe.json", "type": "object", "additionalProperties": false, "required": ["descriptor", "authorization"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filters"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Subscribe"], "type": "string" }, "messageTimestamp": { "type": "string" }, "filters": { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/messages-filter.json" } }, "permissionGrantIds": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" } } } } };
7950
+ const schema96 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-subscribe.json", "type": "object", "additionalProperties": false, "required": ["descriptor", "authorization"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filters"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Subscribe"], "type": "string" }, "messageTimestamp": { "type": "string" }, "filters": { "type": "array", "items": { "$ref": "https://identity.foundation/dwn/json-schemas/messages-filter.json" } }, "permissionGrantIds": { "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" } } } } };
7942
7951
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/messages-subscribe.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate66.evaluated; if (evaluated0.dynamicProps) {
7943
7952
  evaluated0.props = undefined;
7944
7953
  } if (evaluated0.dynamicItems) {
@@ -8000,7 +8009,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
8000
8009
  return false;
8001
8010
  }
8002
8011
  if (!(data2 === "Messages")) {
8003
- validate66.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema94.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
8012
+ validate66.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema96.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
8004
8013
  return false;
8005
8014
  }
8006
8015
  var valid1 = _errs6 === errors;
@@ -8017,7 +8026,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
8017
8026
  return false;
8018
8027
  }
8019
8028
  if (!(data3 === "Subscribe")) {
8020
- validate66.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema94.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
8029
+ validate66.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema96.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
8021
8030
  return false;
8022
8031
  }
8023
8032
  var valid1 = _errs8 === errors;
@@ -8559,7 +8568,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
8559
8568
  let data1 = data.value;
8560
8569
  const _errs4 = errors;
8561
8570
  if ((typeof data1 !== "string") && (!((typeof data1 == "number") && (isFinite(data1))))) {
8562
- validate70.errors = [{ instancePath: instancePath + "/value", schemaPath: "#/properties/value/type", keyword: "type", params: { type: schema77.properties.value.type }, message: "must be string,number" }];
8571
+ validate70.errors = [{ instancePath: instancePath + "/value", schemaPath: "#/properties/value/type", keyword: "type", params: { type: schema79.properties.value.type }, message: "must be string,number" }];
8563
8572
  return false;
8564
8573
  }
8565
8574
  var valid0 = _errs4 === errors;
@@ -8696,15 +8705,15 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
8696
8705
  } validate71.errors = vErrors; return errors === 0; }
8697
8706
  validate71.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
8698
8707
  export const PermissionGrantData = validate72;
8699
- const schema99 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permission-grant-data.json", "type": "object", "additionalProperties": false, "required": ["dateExpires", "scope"], "properties": { "description": { "type": "string" }, "dateExpires": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "requestId": { "type": "string" }, "delegated": { "type": "boolean" }, "scope": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/scope" }, "conditions": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions" }, "connectSession": { "type": "object", "additionalProperties": false, "required": ["id", "createdAt", "expiresAt"], "properties": { "id": { "type": "string", "maxLength": 128 }, "appName": { "type": "string", "maxLength": 128 }, "appIcon": { "type": "string", "maxLength": 2048 }, "origin": { "type": "string", "maxLength": 512 }, "userAgent": { "type": "string", "maxLength": 512 }, "platform": { "type": "string", "maxLength": 128 }, "language": { "type": "string", "maxLength": 64 }, "languages": { "type": "array", "maxItems": 16, "items": { "type": "string", "maxLength": 64 } }, "timezone": { "type": "string", "maxLength": 128 }, "transport": { "enum": ["relay", "postMessage"] }, "createdAt": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "expiresAt": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } } };
8700
- const schema110 = { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } };
8701
- const schema102 = { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-configure-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-delete-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-write-scope" }] };
8702
- const schema104 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } }, "allOf": [{ "not": { "required": ["contextId", "protocolPath"] } }, { "if": { "anyOf": [{ "required": ["contextId"] }, { "required": ["protocolPath"] }] }, "then": { "required": ["protocol"] } }] };
8703
- const schema105 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Configure" }, "protocol": { "type": "string" } } };
8704
- const schema106 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Query" }, "protocol": { "type": "string" } } };
8705
- const schema107 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } };
8706
- const schema108 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Delete" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } };
8707
- const schema109 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Write" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } };
8708
+ const schema101 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permission-grant-data.json", "type": "object", "additionalProperties": false, "required": ["dateExpires", "scope"], "properties": { "description": { "type": "string" }, "dateExpires": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "requestId": { "type": "string" }, "delegated": { "type": "boolean" }, "scope": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/scope" }, "conditions": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions" }, "connectSession": { "type": "object", "additionalProperties": false, "required": ["id", "createdAt", "expiresAt"], "properties": { "id": { "type": "string", "maxLength": 128 }, "appName": { "type": "string", "maxLength": 128 }, "appIcon": { "type": "string", "maxLength": 2048 }, "origin": { "type": "string", "maxLength": 512 }, "userAgent": { "type": "string", "maxLength": 512 }, "platform": { "type": "string", "maxLength": 128 }, "language": { "type": "string", "maxLength": 64 }, "languages": { "type": "array", "maxItems": 16, "items": { "type": "string", "maxLength": 64 } }, "timezone": { "type": "string", "maxLength": 128 }, "transport": { "enum": ["relay", "postMessage"] }, "createdAt": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "expiresAt": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } } };
8709
+ const schema112 = { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } };
8710
+ const schema104 = { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-configure-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-delete-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-write-scope" }] };
8711
+ const schema106 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } }, "allOf": [{ "not": { "required": ["contextId", "protocolPath"] } }, { "if": { "anyOf": [{ "required": ["contextId"] }, { "required": ["protocolPath"] }] }, "then": { "required": ["protocol"] } }] };
8712
+ const schema107 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Configure" }, "protocol": { "type": "string" } } };
8713
+ const schema108 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Query" }, "protocol": { "type": "string" } } };
8714
+ const schema109 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } };
8715
+ const schema110 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Delete" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } };
8716
+ const schema111 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Write" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } };
8708
8717
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate74.evaluated; if (evaluated0.dynamicProps) {
8709
8718
  evaluated0.props = undefined;
8710
8719
  } if (evaluated0.dynamicItems) {
@@ -9915,7 +9924,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
9915
9924
  return false;
9916
9925
  }
9917
9926
  if (!((data6 === "Required") || (data6 === "Prohibited"))) {
9918
- validate72.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema110.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
9927
+ validate72.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema112.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
9919
9928
  return false;
9920
9929
  }
9921
9930
  }
@@ -9945,7 +9954,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
9945
9954
  else {
9946
9955
  const _errs20 = errors;
9947
9956
  for (const key2 in data7) {
9948
- if (!(func2.call(schema99.properties.connectSession.properties, key2))) {
9957
+ if (!(func2.call(schema101.properties.connectSession.properties, key2))) {
9949
9958
  validate72.errors = [{ instancePath: instancePath + "/connectSession", schemaPath: "#/properties/connectSession/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
9950
9959
  return false;
9951
9960
  break;
@@ -10169,7 +10178,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
10169
10178
  let data18 = data7.transport;
10170
10179
  const _errs41 = errors;
10171
10180
  if (!((data18 === "relay") || (data18 === "postMessage"))) {
10172
- validate72.errors = [{ instancePath: instancePath + "/connectSession/transport", schemaPath: "#/properties/connectSession/properties/transport/enum", keyword: "enum", params: { allowedValues: schema99.properties.connectSession.properties.transport.enum }, message: "must be equal to one of the allowed values" }];
10181
+ validate72.errors = [{ instancePath: instancePath + "/connectSession/transport", schemaPath: "#/properties/connectSession/properties/transport/enum", keyword: "enum", params: { allowedValues: schema101.properties.connectSession.properties.transport.enum }, message: "must be equal to one of the allowed values" }];
10173
10182
  return false;
10174
10183
  }
10175
10184
  var valid4 = _errs41 === errors;
@@ -10261,7 +10270,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
10261
10270
  } validate72.errors = vErrors; return errors === 0; }
10262
10271
  validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10263
10272
  export const PermissionRequestData = validate77;
10264
- const schema113 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permission-request-data.json", "type": "object", "additionalProperties": false, "required": ["delegated", "scope"], "properties": { "description": { "type": "string" }, "delegated": { "type": "boolean" }, "scope": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/scope" }, "conditions": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions" } } };
10273
+ const schema115 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permission-request-data.json", "type": "object", "additionalProperties": false, "required": ["delegated", "scope"], "properties": { "description": { "type": "string" }, "delegated": { "type": "boolean" }, "scope": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/scope" }, "conditions": { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions" } } };
10265
10274
  function validate78(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate78.evaluated; if (evaluated0.dynamicProps) {
10266
10275
  evaluated0.props = undefined;
10267
10276
  } if (evaluated0.dynamicItems) {
@@ -11438,7 +11447,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11438
11447
  return false;
11439
11448
  }
11440
11449
  if (!((data4 === "Required") || (data4 === "Prohibited"))) {
11441
- validate77.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema110.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
11450
+ validate77.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema112.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
11442
11451
  return false;
11443
11452
  }
11444
11453
  }
@@ -11467,7 +11476,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11467
11476
  } validate77.errors = vErrors; return errors === 0; }
11468
11477
  validate77.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11469
11478
  export const PermissionRevocationData = validate80;
11470
- const schema122 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permission-revoke-data.json", "type": "object", "additionalProperties": false, "properties": { "description": { "type": "string" } } };
11479
+ const schema124 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permission-revoke-data.json", "type": "object", "additionalProperties": false, "properties": { "description": { "type": "string" } } };
11471
11480
  function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permission-revoke-data.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate80.evaluated; if (evaluated0.dynamicProps) {
11472
11481
  evaluated0.props = undefined;
11473
11482
  } if (evaluated0.dynamicItems) {
@@ -11498,7 +11507,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
11498
11507
  } validate80.errors = vErrors; return errors === 0; }
11499
11508
  validate80.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11500
11509
  export const PermissionsDefinitions = validate73;
11501
- const schema101 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json", "type": "object", "$defs": { "scope": { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-configure-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-delete-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-write-scope" }] }, "conditions": { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } } } };
11510
+ const schema103 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permissions/defs.json", "type": "object", "$defs": { "scope": { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-configure-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-delete-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-write-scope" }] }, "conditions": { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } } } };
11502
11511
  function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permissions/defs.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate73.evaluated; if (evaluated0.dynamicProps) {
11503
11512
  evaluated0.props = undefined;
11504
11513
  } if (evaluated0.dynamicItems) {
@@ -11509,7 +11518,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
11509
11518
  } validate73.errors = vErrors; return errors === 0; }
11510
11519
  validate73.evaluated = { "dynamicProps": false, "dynamicItems": false };
11511
11520
  export const PermissionsScopes = validate75;
11512
- const schema103 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json", "type": "object", "$defs": { "messages-read-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } }, "allOf": [{ "not": { "required": ["contextId", "protocolPath"] } }, { "if": { "anyOf": [{ "required": ["contextId"] }, { "required": ["protocolPath"] }] }, "then": { "required": ["protocol"] } }] }, "protocols-configure-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Configure" }, "protocol": { "type": "string" } } }, "protocols-query-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Query" }, "protocol": { "type": "string" } } }, "records-delete-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Delete" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } }, "records-read-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } }, "records-write-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Write" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } } } };
11521
+ const schema105 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json", "type": "object", "$defs": { "messages-read-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } }, "allOf": [{ "not": { "required": ["contextId", "protocolPath"] } }, { "if": { "anyOf": [{ "required": ["contextId"] }, { "required": ["protocolPath"] }] }, "then": { "required": ["protocol"] } }] }, "protocols-configure-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Configure" }, "protocol": { "type": "string" } } }, "protocols-query-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Query" }, "protocol": { "type": "string" } } }, "records-delete-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Delete" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } }, "records-read-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } }, "records-write-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Write" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } } } } };
11513
11522
  function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permissions/scopes.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate75.evaluated; if (evaluated0.dynamicProps) {
11514
11523
  evaluated0.props = undefined;
11515
11524
  } if (evaluated0.dynamicItems) {
@@ -11520,14 +11529,14 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11520
11529
  } validate75.errors = vErrors; return errors === 0; }
11521
11530
  validate75.evaluated = { "dynamicProps": false, "dynamicItems": false };
11522
11531
  export const ProtocolDefinition = validate81;
11523
- const schema123 = { "$id": "https://identity.foundation/dwn/json-schemas/protocol-definition.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["protocol", "published", "types", "structure"], "properties": { "protocol": { "type": "string" }, "published": { "type": "boolean" }, "uses": { "$comment": "Maps alias names to external protocol URIs for composition. Each alias can be used in $ref values and cross-protocol role/of references using 'alias:path' syntax.", "type": "object", "minProperties": 1, "patternProperties": { "^[a-zA-Z][a-zA-Z0-9_-]*$": { "type": "string" } }, "additionalProperties": false }, "$keyAgreement": { "type": "object", "additionalProperties": false, "required": ["publicKeyJwk"], "properties": { "publicKeyJwk": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } }, "types": { "type": "object", "additionalProperties": false, "patternProperties": { "^[^$].*$": { "type": "object", "additionalProperties": false, "properties": { "schema": { "type": "string" }, "dataFormats": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "encryptionRequired": { "type": "boolean" } } } } }, "structure": { "type": "object", "additionalProperties": false, "patternProperties": { "^[^$].*$": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" } } } } };
11524
- const pattern47 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");
11525
- const pattern50 = new RegExp("^[^$].*$", "u");
11526
- const schema125 = { "$id": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "properties": { "$keyAgreement": { "type": "object", "additionalProperties": false, "required": ["publicKeyJwk"], "properties": { "publicKeyJwk": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } }, "$actions": { "type": "array", "minItems": 1, "items": { "type": "object", "oneOf": [{ "required": ["who", "can"], "additionalProperties": false, "properties": { "who": { "type": "string", "enum": ["anyone", "author", "recipient"] }, "of": { "type": "string" }, "can": { "type": "array", "minItems": 1, "items": { "type": "string", "enum": ["co-delete", "co-prune", "co-update", "create", "delete", "prune", "read", "squash", "update"] } } } }, { "required": ["role", "can"], "additionalProperties": false, "properties": { "role": { "$comment": "Must be the protocol path of a role record type", "type": "string" }, "can": { "type": "array", "minItems": 1, "items": { "type": "string", "enum": ["co-delete", "co-prune", "co-update", "create", "delete", "prune", "read", "squash", "update"] } } } }] } }, "$role": { "$comment": "When `true`, this turns a record into `role` that may be used within a context/sub-context", "type": "boolean" }, "$ref": { "$comment": "References a type from an external protocol declared in `uses`. Format: 'alias:typePath'. A $ref node is a pure attachment point and must not have $actions, $role, $size, $tags, or $keyAgreement.", "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*:.+$" }, "$size": { "type": "object", "additionalProperties": false, "properties": { "min": { "type": "number", "minimum": 0 }, "max": { "type": "number", "minimum": 0 } } }, "$recordLimit": { "type": "object", "additionalProperties": false, "required": ["max", "strategy"], "properties": { "max": { "type": "integer", "minimum": 1 }, "strategy": { "type": "string", "enum": ["reject", "purgeOldest"] } } }, "$immutable": { "$comment": "When true, records at this protocol path cannot be updated after initial write", "type": "boolean" }, "$delivery": { "$comment": "Delivery strategy hint for records at this protocol path. 'direct' = origin pushes to all participant DWN endpoints; 'subscribe' = participant providers subscribe to the origin DWN.", "type": "string", "enum": ["direct", "subscribe"] }, "$squash": { "$comment": "When true, enables squash writes at this protocol path — a RecordsWrite with squash: true atomically creates a snapshot and deletes all older sibling records", "type": "boolean", "enum": [true] }, "$tags": { "type": "object", "minProperties": 1, "properties": { "$requiredTags": { "type": "array", "items": { "type": "string" } }, "$allowUndefinedTags": { "type": "boolean" } }, "patternProperties": { "^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$": { "type": "object", "additionalProperties": false, "properties": { "type": { "enum": ["string", "number", "integer", "boolean", "array"] }, "items": { "type": "object", "properties": { "type": { "enum": ["string", "number", "integer"] } }, "patternProperties": { "^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$": {} } }, "contains": { "type": "object", "properties": { "type": { "enum": ["string", "number", "integer"] } }, "patternProperties": { "^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$": {} } } }, "patternProperties": { "^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$": {} } } } } }, "patternProperties": { "^[^$].*$": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" } } };
11527
- const pattern56 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*:.+$", "u");
11528
- const pattern57 = new RegExp("^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$", "u");
11529
- const pattern58 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$", "u");
11530
- const pattern59 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$", "u");
11532
+ const schema125 = { "$id": "https://identity.foundation/dwn/json-schemas/protocol-definition.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["protocol", "published", "types", "structure"], "properties": { "protocol": { "type": "string" }, "published": { "type": "boolean" }, "uses": { "$comment": "Maps alias names to external protocol URIs for composition. Each alias can be used in $ref values and cross-protocol role/of references using 'alias:path' syntax.", "type": "object", "minProperties": 1, "patternProperties": { "^[a-zA-Z][a-zA-Z0-9_-]*$": { "type": "string" } }, "additionalProperties": false }, "$keyAgreement": { "type": "object", "additionalProperties": false, "required": ["publicKeyJwk"], "properties": { "publicKeyJwk": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } }, "types": { "type": "object", "additionalProperties": false, "patternProperties": { "^[^$].*$": { "type": "object", "additionalProperties": false, "properties": { "schema": { "type": "string" }, "dataFormats": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "encryptionRequired": { "type": "boolean" } } } } }, "structure": { "type": "object", "additionalProperties": false, "patternProperties": { "^[^$].*$": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" } } } } };
11533
+ const pattern48 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");
11534
+ const pattern51 = new RegExp("^[^$].*$", "u");
11535
+ const schema127 = { "$id": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "properties": { "$keyAgreement": { "type": "object", "additionalProperties": false, "required": ["publicKeyJwk"], "properties": { "publicKeyJwk": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } }, "$actions": { "type": "array", "minItems": 1, "items": { "type": "object", "oneOf": [{ "required": ["who", "can"], "additionalProperties": false, "properties": { "who": { "type": "string", "enum": ["anyone", "author", "recipient"] }, "of": { "type": "string" }, "can": { "type": "array", "minItems": 1, "items": { "type": "string", "enum": ["co-delete", "co-prune", "co-update", "create", "delete", "prune", "read", "squash", "update"] } } } }, { "required": ["role", "can"], "additionalProperties": false, "properties": { "role": { "$comment": "Must be the protocol path of a role record type", "type": "string" }, "can": { "type": "array", "minItems": 1, "items": { "type": "string", "enum": ["co-delete", "co-prune", "co-update", "create", "delete", "prune", "read", "squash", "update"] } } } }] } }, "$role": { "$comment": "When `true`, this turns a record into `role` that may be used within a context/sub-context", "type": "boolean" }, "$ref": { "$comment": "References a type from an external protocol declared in `uses`. Format: 'alias:typePath'. A $ref node is a pure attachment point and must not have $actions, $role, $size, $tags, or $keyAgreement.", "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*:.+$" }, "$size": { "type": "object", "additionalProperties": false, "properties": { "min": { "type": "number", "minimum": 0 }, "max": { "type": "number", "minimum": 0 } } }, "$recordLimit": { "type": "object", "additionalProperties": false, "required": ["max"], "properties": { "max": { "type": "integer", "minimum": 1 } } }, "$immutable": { "$comment": "When true, records at this protocol path cannot be updated after initial write", "type": "boolean" }, "$delivery": { "$comment": "Delivery strategy hint for records at this protocol path. 'direct' = origin pushes to all participant DWN endpoints; 'subscribe' = participant providers subscribe to the origin DWN.", "type": "string", "enum": ["direct", "subscribe"] }, "$squash": { "$comment": "When true, enables squash writes at this protocol path — a RecordsWrite with squash: true atomically creates a snapshot and deletes all older sibling records", "type": "boolean", "enum": [true] }, "$tags": { "type": "object", "minProperties": 1, "properties": { "$requiredTags": { "type": "array", "items": { "type": "string" } }, "$allowUndefinedTags": { "type": "boolean" } }, "patternProperties": { "^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$": { "type": "object", "additionalProperties": false, "properties": { "type": { "enum": ["string", "number", "integer", "boolean", "array"] }, "items": { "type": "object", "properties": { "type": { "enum": ["string", "number", "integer"] } }, "patternProperties": { "^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$": {} } }, "contains": { "type": "object", "properties": { "type": { "enum": ["string", "number", "integer"] } }, "patternProperties": { "^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$": {} } } }, "patternProperties": { "^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$": {} } } } } }, "patternProperties": { "^[^$].*$": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" } } };
11536
+ const pattern57 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*:.+$", "u");
11537
+ const pattern58 = new RegExp("^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$", "u");
11538
+ const pattern59 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$", "u");
11539
+ const pattern60 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$", "u");
11531
11540
  const wrapper2 = { validate: validate83 };
11532
11541
  function validate83(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate83.evaluated; if (evaluated0.dynamicProps) {
11533
11542
  evaluated0.props = undefined;
@@ -11537,7 +11546,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
11537
11546
  if (data && typeof data == "object" && !Array.isArray(data)) {
11538
11547
  const _errs1 = errors;
11539
11548
  for (const key0 in data) {
11540
- if (!((func2.call(schema125.properties, key0)) || (pattern50.test(key0)))) {
11549
+ if (!((func2.call(schema127.properties, key0)) || (pattern51.test(key0)))) {
11541
11550
  validate83.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11542
11551
  return false;
11543
11552
  break;
@@ -11722,7 +11731,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
11722
11731
  errors++;
11723
11732
  }
11724
11733
  if (!(((data7 === "anyone") || (data7 === "author")) || (data7 === "recipient"))) {
11725
- const err3 = { instancePath: instancePath + "/$actions/" + i0 + "/who", schemaPath: "#/properties/%24actions/items/oneOf/0/properties/who/enum", keyword: "enum", params: { allowedValues: schema125.properties.$actions.items.oneOf[0].properties.who.enum }, message: "must be equal to one of the allowed values" };
11734
+ const err3 = { instancePath: instancePath + "/$actions/" + i0 + "/who", schemaPath: "#/properties/%24actions/items/oneOf/0/properties/who/enum", keyword: "enum", params: { allowedValues: schema127.properties.$actions.items.oneOf[0].properties.who.enum }, message: "must be equal to one of the allowed values" };
11726
11735
  if (vErrors === null) {
11727
11736
  vErrors = [err3];
11728
11737
  }
@@ -11787,7 +11796,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
11787
11796
  errors++;
11788
11797
  }
11789
11798
  if (!(((((((((data10 === "co-delete") || (data10 === "co-prune")) || (data10 === "co-update")) || (data10 === "create")) || (data10 === "delete")) || (data10 === "prune")) || (data10 === "read")) || (data10 === "squash")) || (data10 === "update"))) {
11790
- const err7 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i1, schemaPath: "#/properties/%24actions/items/oneOf/0/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema125.properties.$actions.items.oneOf[0].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11799
+ const err7 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i1, schemaPath: "#/properties/%24actions/items/oneOf/0/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema127.properties.$actions.items.oneOf[0].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11791
11800
  if (vErrors === null) {
11792
11801
  vErrors = [err7];
11793
11802
  }
@@ -11909,7 +11918,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
11909
11918
  errors++;
11910
11919
  }
11911
11920
  if (!(((((((((data13 === "co-delete") || (data13 === "co-prune")) || (data13 === "co-update")) || (data13 === "create")) || (data13 === "delete")) || (data13 === "prune")) || (data13 === "read")) || (data13 === "squash")) || (data13 === "update"))) {
11912
- const err14 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i2, schemaPath: "#/properties/%24actions/items/oneOf/1/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema125.properties.$actions.items.oneOf[1].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11921
+ const err14 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i2, schemaPath: "#/properties/%24actions/items/oneOf/1/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema127.properties.$actions.items.oneOf[1].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11913
11922
  if (vErrors === null) {
11914
11923
  vErrors = [err14];
11915
11924
  }
@@ -12017,7 +12026,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12017
12026
  const _errs40 = errors;
12018
12027
  if (errors === _errs40) {
12019
12028
  if (typeof data15 === "string") {
12020
- if (!pattern56.test(data15)) {
12029
+ if (!pattern57.test(data15)) {
12021
12030
  validate83.errors = [{ instancePath: instancePath + "/$ref", schemaPath: "#/properties/%24ref/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z][a-zA-Z0-9_-]*:.+$" }, message: "must match pattern \"" + "^[a-zA-Z][a-zA-Z0-9_-]*:.+$" + "\"" }];
12022
12031
  return false;
12023
12032
  }
@@ -12108,14 +12117,14 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12108
12117
  if (errors === _errs50) {
12109
12118
  if (data19 && typeof data19 == "object" && !Array.isArray(data19)) {
12110
12119
  let missing4;
12111
- if (((data19.max === undefined) && (missing4 = "max")) || ((data19.strategy === undefined) && (missing4 = "strategy"))) {
12120
+ if ((data19.max === undefined) && (missing4 = "max")) {
12112
12121
  validate83.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
12113
12122
  return false;
12114
12123
  }
12115
12124
  else {
12116
12125
  const _errs52 = errors;
12117
12126
  for (const key5 in data19) {
12118
- if (!((key5 === "max") || (key5 === "strategy"))) {
12127
+ if (!(key5 === "max")) {
12119
12128
  validate83.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
12120
12129
  return false;
12121
12130
  break;
@@ -12137,28 +12146,6 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12137
12146
  }
12138
12147
  }
12139
12148
  }
12140
- var valid12 = _errs53 === errors;
12141
- }
12142
- else {
12143
- var valid12 = true;
12144
- }
12145
- if (valid12) {
12146
- if (data19.strategy !== undefined) {
12147
- let data21 = data19.strategy;
12148
- const _errs55 = errors;
12149
- if (typeof data21 !== "string") {
12150
- validate83.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12151
- return false;
12152
- }
12153
- if (!((data21 === "reject") || (data21 === "purgeOldest"))) {
12154
- validate83.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/enum", keyword: "enum", params: { allowedValues: schema125.properties.$recordLimit.properties.strategy.enum }, message: "must be equal to one of the allowed values" }];
12155
- return false;
12156
- }
12157
- var valid12 = _errs55 === errors;
12158
- }
12159
- else {
12160
- var valid12 = true;
12161
- }
12162
12149
  }
12163
12150
  }
12164
12151
  }
@@ -12175,75 +12162,75 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12175
12162
  }
12176
12163
  if (valid0) {
12177
12164
  if (data.$immutable !== undefined) {
12178
- const _errs57 = errors;
12165
+ const _errs55 = errors;
12179
12166
  if (typeof data.$immutable !== "boolean") {
12180
12167
  validate83.errors = [{ instancePath: instancePath + "/$immutable", schemaPath: "#/properties/%24immutable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12181
12168
  return false;
12182
12169
  }
12183
- var valid0 = _errs57 === errors;
12170
+ var valid0 = _errs55 === errors;
12184
12171
  }
12185
12172
  else {
12186
12173
  var valid0 = true;
12187
12174
  }
12188
12175
  if (valid0) {
12189
12176
  if (data.$delivery !== undefined) {
12190
- let data23 = data.$delivery;
12191
- const _errs60 = errors;
12192
- if (typeof data23 !== "string") {
12177
+ let data22 = data.$delivery;
12178
+ const _errs58 = errors;
12179
+ if (typeof data22 !== "string") {
12193
12180
  validate83.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12194
12181
  return false;
12195
12182
  }
12196
- if (!((data23 === "direct") || (data23 === "subscribe"))) {
12197
- validate83.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/enum", keyword: "enum", params: { allowedValues: schema125.properties.$delivery.enum }, message: "must be equal to one of the allowed values" }];
12183
+ if (!((data22 === "direct") || (data22 === "subscribe"))) {
12184
+ validate83.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/enum", keyword: "enum", params: { allowedValues: schema127.properties.$delivery.enum }, message: "must be equal to one of the allowed values" }];
12198
12185
  return false;
12199
12186
  }
12200
- var valid0 = _errs60 === errors;
12187
+ var valid0 = _errs58 === errors;
12201
12188
  }
12202
12189
  else {
12203
12190
  var valid0 = true;
12204
12191
  }
12205
12192
  if (valid0) {
12206
12193
  if (data.$squash !== undefined) {
12207
- let data24 = data.$squash;
12208
- const _errs63 = errors;
12209
- if (typeof data24 !== "boolean") {
12194
+ let data23 = data.$squash;
12195
+ const _errs61 = errors;
12196
+ if (typeof data23 !== "boolean") {
12210
12197
  validate83.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12211
12198
  return false;
12212
12199
  }
12213
- if (!(data24 === true)) {
12214
- validate83.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/enum", keyword: "enum", params: { allowedValues: schema125.properties.$squash.enum }, message: "must be equal to one of the allowed values" }];
12200
+ if (!(data23 === true)) {
12201
+ validate83.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/enum", keyword: "enum", params: { allowedValues: schema127.properties.$squash.enum }, message: "must be equal to one of the allowed values" }];
12215
12202
  return false;
12216
12203
  }
12217
- var valid0 = _errs63 === errors;
12204
+ var valid0 = _errs61 === errors;
12218
12205
  }
12219
12206
  else {
12220
12207
  var valid0 = true;
12221
12208
  }
12222
12209
  if (valid0) {
12223
12210
  if (data.$tags !== undefined) {
12224
- let data25 = data.$tags;
12225
- const _errs66 = errors;
12226
- if (errors === _errs66) {
12227
- if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
12228
- if (Object.keys(data25).length < 1) {
12211
+ let data24 = data.$tags;
12212
+ const _errs64 = errors;
12213
+ if (errors === _errs64) {
12214
+ if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
12215
+ if (Object.keys(data24).length < 1) {
12229
12216
  validate83.errors = [{ instancePath: instancePath + "/$tags", schemaPath: "#/properties/%24tags/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
12230
12217
  return false;
12231
12218
  }
12232
12219
  else {
12233
- if (data25.$requiredTags !== undefined) {
12234
- let data26 = data25.$requiredTags;
12235
- const _errs68 = errors;
12236
- if (errors === _errs68) {
12237
- if (Array.isArray(data26)) {
12220
+ if (data24.$requiredTags !== undefined) {
12221
+ let data25 = data24.$requiredTags;
12222
+ const _errs66 = errors;
12223
+ if (errors === _errs66) {
12224
+ if (Array.isArray(data25)) {
12238
12225
  var valid14 = true;
12239
- const len3 = data26.length;
12226
+ const len3 = data25.length;
12240
12227
  for (let i3 = 0; i3 < len3; i3++) {
12241
- const _errs70 = errors;
12242
- if (typeof data26[i3] !== "string") {
12228
+ const _errs68 = errors;
12229
+ if (typeof data25[i3] !== "string") {
12243
12230
  validate83.errors = [{ instancePath: instancePath + "/$tags/$requiredTags/" + i3, schemaPath: "#/properties/%24tags/properties/%24requiredTags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12244
12231
  return false;
12245
12232
  }
12246
- var valid14 = _errs70 === errors;
12233
+ var valid14 = _errs68 === errors;
12247
12234
  if (!valid14) {
12248
12235
  break;
12249
12236
  }
@@ -12254,19 +12241,19 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12254
12241
  return false;
12255
12242
  }
12256
12243
  }
12257
- var valid13 = _errs68 === errors;
12244
+ var valid13 = _errs66 === errors;
12258
12245
  }
12259
12246
  else {
12260
12247
  var valid13 = true;
12261
12248
  }
12262
12249
  if (valid13) {
12263
- if (data25.$allowUndefinedTags !== undefined) {
12264
- const _errs72 = errors;
12265
- if (typeof data25.$allowUndefinedTags !== "boolean") {
12250
+ if (data24.$allowUndefinedTags !== undefined) {
12251
+ const _errs70 = errors;
12252
+ if (typeof data24.$allowUndefinedTags !== "boolean") {
12266
12253
  validate83.errors = [{ instancePath: instancePath + "/$tags/$allowUndefinedTags", schemaPath: "#/properties/%24tags/properties/%24allowUndefinedTags/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12267
12254
  return false;
12268
12255
  }
12269
- var valid13 = _errs72 === errors;
12256
+ var valid13 = _errs70 === errors;
12270
12257
  }
12271
12258
  else {
12272
12259
  var valid13 = true;
@@ -12275,47 +12262,47 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12275
12262
  var props2 = {};
12276
12263
  props2.$requiredTags = true;
12277
12264
  props2.$allowUndefinedTags = true;
12278
- for (const key6 in data25) {
12279
- if (pattern57.test(key6)) {
12280
- let data29 = data25[key6];
12281
- const _errs74 = errors;
12282
- if (errors === _errs74) {
12283
- if (data29 && typeof data29 == "object" && !Array.isArray(data29)) {
12284
- const _errs76 = errors;
12285
- for (const key7 in data29) {
12286
- if (!((((key7 === "type") || (key7 === "items")) || (key7 === "contains")) || (pattern58.test(key7)))) {
12265
+ for (const key6 in data24) {
12266
+ if (pattern58.test(key6)) {
12267
+ let data28 = data24[key6];
12268
+ const _errs72 = errors;
12269
+ if (errors === _errs72) {
12270
+ if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
12271
+ const _errs74 = errors;
12272
+ for (const key7 in data28) {
12273
+ if (!((((key7 === "type") || (key7 === "items")) || (key7 === "contains")) || (pattern59.test(key7)))) {
12287
12274
  validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" }];
12288
12275
  return false;
12289
12276
  break;
12290
12277
  }
12291
12278
  }
12292
- if (_errs76 === errors) {
12293
- if (data29.type !== undefined) {
12294
- let data30 = data29.type;
12295
- const _errs77 = errors;
12296
- if (!(((((data30 === "string") || (data30 === "number")) || (data30 === "integer")) || (data30 === "boolean")) || (data30 === "array"))) {
12297
- validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/type/enum", keyword: "enum", params: { allowedValues: schema125.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.type.enum }, message: "must be equal to one of the allowed values" }];
12279
+ if (_errs74 === errors) {
12280
+ if (data28.type !== undefined) {
12281
+ let data29 = data28.type;
12282
+ const _errs75 = errors;
12283
+ if (!(((((data29 === "string") || (data29 === "number")) || (data29 === "integer")) || (data29 === "boolean")) || (data29 === "array"))) {
12284
+ validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/type/enum", keyword: "enum", params: { allowedValues: schema127.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.type.enum }, message: "must be equal to one of the allowed values" }];
12298
12285
  return false;
12299
12286
  }
12300
- var valid16 = _errs77 === errors;
12287
+ var valid16 = _errs75 === errors;
12301
12288
  }
12302
12289
  else {
12303
12290
  var valid16 = true;
12304
12291
  }
12305
12292
  if (valid16) {
12306
- if (data29.items !== undefined) {
12307
- let data31 = data29.items;
12308
- const _errs78 = errors;
12309
- if (errors === _errs78) {
12310
- if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
12311
- if (data31.type !== undefined) {
12312
- let data32 = data31.type;
12313
- const _errs80 = errors;
12314
- if (!(((data32 === "string") || (data32 === "number")) || (data32 === "integer"))) {
12315
- validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/items/type", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/items/properties/type/enum", keyword: "enum", params: { allowedValues: schema125.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
12293
+ if (data28.items !== undefined) {
12294
+ let data30 = data28.items;
12295
+ const _errs76 = errors;
12296
+ if (errors === _errs76) {
12297
+ if (data30 && typeof data30 == "object" && !Array.isArray(data30)) {
12298
+ if (data30.type !== undefined) {
12299
+ let data31 = data30.type;
12300
+ const _errs78 = errors;
12301
+ if (!(((data31 === "string") || (data31 === "number")) || (data31 === "integer"))) {
12302
+ validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/items/type", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/items/properties/type/enum", keyword: "enum", params: { allowedValues: schema127.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
12316
12303
  return false;
12317
12304
  }
12318
- var valid17 = _errs80 === errors;
12305
+ var valid17 = _errs78 === errors;
12319
12306
  }
12320
12307
  else {
12321
12308
  var valid17 = true;
@@ -12323,8 +12310,8 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12323
12310
  if (valid17) {
12324
12311
  var props3 = {};
12325
12312
  props3.type = true;
12326
- for (const key8 in data31) {
12327
- if (pattern59.test(key8)) {
12313
+ for (const key8 in data30) {
12314
+ if (pattern60.test(key8)) {
12328
12315
  props3[key8] = true;
12329
12316
  }
12330
12317
  }
@@ -12335,25 +12322,25 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12335
12322
  return false;
12336
12323
  }
12337
12324
  }
12338
- var valid16 = _errs78 === errors;
12325
+ var valid16 = _errs76 === errors;
12339
12326
  }
12340
12327
  else {
12341
12328
  var valid16 = true;
12342
12329
  }
12343
12330
  if (valid16) {
12344
- if (data29.contains !== undefined) {
12345
- let data33 = data29.contains;
12346
- const _errs81 = errors;
12347
- if (errors === _errs81) {
12348
- if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
12349
- if (data33.type !== undefined) {
12350
- let data34 = data33.type;
12351
- const _errs83 = errors;
12352
- if (!(((data34 === "string") || (data34 === "number")) || (data34 === "integer"))) {
12353
- validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/contains/type", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/contains/properties/type/enum", keyword: "enum", params: { allowedValues: schema125.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.contains.properties.type.enum }, message: "must be equal to one of the allowed values" }];
12331
+ if (data28.contains !== undefined) {
12332
+ let data32 = data28.contains;
12333
+ const _errs79 = errors;
12334
+ if (errors === _errs79) {
12335
+ if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
12336
+ if (data32.type !== undefined) {
12337
+ let data33 = data32.type;
12338
+ const _errs81 = errors;
12339
+ if (!(((data33 === "string") || (data33 === "number")) || (data33 === "integer"))) {
12340
+ validate83.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/contains/type", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/contains/properties/type/enum", keyword: "enum", params: { allowedValues: schema127.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.contains.properties.type.enum }, message: "must be equal to one of the allowed values" }];
12354
12341
  return false;
12355
12342
  }
12356
- var valid19 = _errs83 === errors;
12343
+ var valid19 = _errs81 === errors;
12357
12344
  }
12358
12345
  else {
12359
12346
  var valid19 = true;
@@ -12361,8 +12348,8 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12361
12348
  if (valid19) {
12362
12349
  var props4 = {};
12363
12350
  props4.type = true;
12364
- for (const key9 in data33) {
12365
- if (pattern59.test(key9)) {
12351
+ for (const key9 in data32) {
12352
+ if (pattern60.test(key9)) {
12366
12353
  props4[key9] = true;
12367
12354
  }
12368
12355
  }
@@ -12373,7 +12360,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12373
12360
  return false;
12374
12361
  }
12375
12362
  }
12376
- var valid16 = _errs81 === errors;
12363
+ var valid16 = _errs79 === errors;
12377
12364
  }
12378
12365
  else {
12379
12366
  var valid16 = true;
@@ -12399,7 +12386,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12399
12386
  return false;
12400
12387
  }
12401
12388
  }
12402
- var valid0 = _errs66 === errors;
12389
+ var valid0 = _errs64 === errors;
12403
12390
  }
12404
12391
  else {
12405
12392
  var valid0 = true;
@@ -12407,13 +12394,13 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
12407
12394
  if (valid0) {
12408
12395
  var valid21 = true;
12409
12396
  for (const key10 in data) {
12410
- if (pattern50.test(key10)) {
12411
- const _errs84 = errors;
12397
+ if (pattern51.test(key10)) {
12398
+ const _errs82 = errors;
12412
12399
  if (!(wrapper2.validate(data[key10], { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key10, rootData, dynamicAnchors }))) {
12413
12400
  vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
12414
12401
  errors = vErrors.length;
12415
12402
  }
12416
- var valid21 = _errs84 === errors;
12403
+ var valid21 = _errs82 === errors;
12417
12404
  if (!valid21) {
12418
12405
  break;
12419
12406
  }
@@ -12494,7 +12481,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12494
12481
  else {
12495
12482
  const _errs9 = errors;
12496
12483
  for (const key1 in data2) {
12497
- if (!(pattern47.test(key1))) {
12484
+ if (!(pattern48.test(key1))) {
12498
12485
  validate81.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12499
12486
  return false;
12500
12487
  break;
@@ -12503,7 +12490,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12503
12490
  if (_errs9 === errors) {
12504
12491
  var valid1 = true;
12505
12492
  for (const key2 in data2) {
12506
- if (pattern47.test(key2)) {
12493
+ if (pattern48.test(key2)) {
12507
12494
  const _errs10 = errors;
12508
12495
  if (typeof data2[key2] !== "string") {
12509
12496
  validate81.errors = [{ instancePath: instancePath + "/uses/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/uses/patternProperties/%5E%5Ba-zA-Z%5D%5Ba-zA-Z0-9_-%5D*%24/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -12649,7 +12636,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12649
12636
  if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
12650
12637
  const _errs25 = errors;
12651
12638
  for (const key4 in data9) {
12652
- if (!(pattern50.test(key4))) {
12639
+ if (!(pattern51.test(key4))) {
12653
12640
  validate81.errors = [{ instancePath: instancePath + "/types", schemaPath: "#/properties/types/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
12654
12641
  return false;
12655
12642
  break;
@@ -12658,7 +12645,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12658
12645
  if (_errs25 === errors) {
12659
12646
  var valid6 = true;
12660
12647
  for (const key5 in data9) {
12661
- if (pattern50.test(key5)) {
12648
+ if (pattern51.test(key5)) {
12662
12649
  let data10 = data9[key5];
12663
12650
  const _errs26 = errors;
12664
12651
  if (errors === _errs26) {
@@ -12766,7 +12753,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12766
12753
  if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
12767
12754
  const _errs39 = errors;
12768
12755
  for (const key7 in data15) {
12769
- if (!(pattern50.test(key7))) {
12756
+ if (!(pattern51.test(key7))) {
12770
12757
  validate81.errors = [{ instancePath: instancePath + "/structure", schemaPath: "#/properties/structure/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" }];
12771
12758
  return false;
12772
12759
  break;
@@ -12775,7 +12762,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12775
12762
  if (_errs39 === errors) {
12776
12763
  var valid9 = true;
12777
12764
  for (const key8 in data15) {
12778
- if (pattern50.test(key8)) {
12765
+ if (pattern51.test(key8)) {
12779
12766
  const _errs40 = errors;
12780
12767
  if (!(validate83(data15[key8], { instancePath: instancePath + "/structure/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data15, parentDataProperty: key8, rootData, dynamicAnchors }))) {
12781
12768
  vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
@@ -12815,7 +12802,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
12815
12802
  validate81.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12816
12803
  export const ProtocolRuleSet = validate83;
12817
12804
  export const ProtocolsConfigure = validate86;
12818
- const schema127 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/protocols-configure.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "definition"], "properties": { "interface": { "enum": ["Protocols"], "type": "string" }, "method": { "enum": ["Configure"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "definition": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-definition.json" }, "permissionGrantId": { "type": "string" } } } } };
12805
+ const schema129 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/protocols-configure.json", "type": "object", "additionalProperties": false, "required": ["authorization", "descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "definition"], "properties": { "interface": { "enum": ["Protocols"], "type": "string" }, "method": { "enum": ["Configure"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "definition": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-definition.json" }, "permissionGrantId": { "type": "string" } } } } };
12819
12806
  function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/protocols-configure.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate86.evaluated; if (evaluated0.dynamicProps) {
12820
12807
  evaluated0.props = undefined;
12821
12808
  } if (evaluated0.dynamicItems) {
@@ -12877,7 +12864,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
12877
12864
  return false;
12878
12865
  }
12879
12866
  if (!(data2 === "Protocols")) {
12880
- validate86.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema127.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12867
+ validate86.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema129.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12881
12868
  return false;
12882
12869
  }
12883
12870
  var valid1 = _errs6 === errors;
@@ -12894,7 +12881,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
12894
12881
  return false;
12895
12882
  }
12896
12883
  if (!(data3 === "Configure")) {
12897
- validate86.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema127.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12884
+ validate86.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema129.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12898
12885
  return false;
12899
12886
  }
12900
12887
  var valid1 = _errs8 === errors;
@@ -12976,7 +12963,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
12976
12963
  } validate86.errors = vErrors; return errors === 0; }
12977
12964
  validate86.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12978
12965
  export const ProtocolsQuery = validate89;
12979
- const schema129 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp"], "properties": { "interface": { "enum": ["Protocols"], "type": "string" }, "method": { "enum": ["Query"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "protocol": { "type": "string" }, "recipient": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" } } }, "permissionGrantId": { "type": "string" } } } } };
12966
+ const schema131 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/protocols-query.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp"], "properties": { "interface": { "enum": ["Protocols"], "type": "string" }, "method": { "enum": ["Query"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "type": "object", "minProperties": 1, "additionalProperties": false, "properties": { "protocol": { "type": "string" }, "recipient": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did" } } }, "permissionGrantId": { "type": "string" } } } } };
12980
12967
  function validate89(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/protocols-query.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate89.evaluated; if (evaluated0.dynamicProps) {
12981
12968
  evaluated0.props = undefined;
12982
12969
  } if (evaluated0.dynamicItems) {
@@ -13038,7 +13025,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13038
13025
  return false;
13039
13026
  }
13040
13027
  if (!(data2 === "Protocols")) {
13041
- validate89.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema129.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
13028
+ validate89.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema131.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
13042
13029
  return false;
13043
13030
  }
13044
13031
  var valid1 = _errs6 === errors;
@@ -13055,7 +13042,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13055
13042
  return false;
13056
13043
  }
13057
13044
  if (!(data3 === "Query")) {
13058
- validate89.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema129.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
13045
+ validate89.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema131.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
13059
13046
  return false;
13060
13047
  }
13061
13048
  var valid1 = _errs8 === errors;
@@ -13192,7 +13179,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13192
13179
  } validate89.errors = vErrors; return errors === 0; }
13193
13180
  validate89.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13194
13181
  export const RecordsRead = validate91;
13195
- const schema132 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-read.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Read"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" }, "dateSort": { "enum": ["createdAscending", "createdDescending", "publishedAscending", "publishedDescending", "updatedAscending", "updatedDescending"], "type": "string" } } } } };
13182
+ const schema134 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/records-read.json", "type": "object", "additionalProperties": false, "required": ["descriptor"], "properties": { "authorization": { "$ref": "https://identity.foundation/dwn/json-schemas/authorization-delegated-grant.json" }, "descriptor": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "messageTimestamp", "filter"], "properties": { "interface": { "enum": ["Records"], "type": "string" }, "method": { "enum": ["Read"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "filter": { "$ref": "https://identity.foundation/dwn/json-schemas/records-filter.json" }, "permissionGrantId": { "type": "string" }, "dateSort": { "enum": ["createdAscending", "createdDescending", "publishedAscending", "publishedDescending", "updatedAscending", "updatedDescending"], "type": "string" } } } } };
13196
13183
  function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/records-read.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate91.evaluated; if (evaluated0.dynamicProps) {
13197
13184
  evaluated0.props = undefined;
13198
13185
  } if (evaluated0.dynamicItems) {
@@ -13254,7 +13241,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
13254
13241
  return false;
13255
13242
  }
13256
13243
  if (!(data2 === "Records")) {
13257
- validate91.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema132.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
13244
+ validate91.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema134.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
13258
13245
  return false;
13259
13246
  }
13260
13247
  var valid1 = _errs6 === errors;
@@ -13271,7 +13258,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
13271
13258
  return false;
13272
13259
  }
13273
13260
  if (!(data3 === "Read")) {
13274
- validate91.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema132.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
13261
+ validate91.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema134.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
13275
13262
  return false;
13276
13263
  }
13277
13264
  var valid1 = _errs8 === errors;
@@ -13334,7 +13321,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
13334
13321
  return false;
13335
13322
  }
13336
13323
  if (!((((((data7 === "createdAscending") || (data7 === "createdDescending")) || (data7 === "publishedAscending")) || (data7 === "publishedDescending")) || (data7 === "updatedAscending")) || (data7 === "updatedDescending"))) {
13337
- validate91.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema132.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
13324
+ validate91.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema134.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
13338
13325
  return false;
13339
13326
  }
13340
13327
  var valid1 = _errs16 === errors;
@@ -13373,7 +13360,7 @@ validate91.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": f
13373
13360
  export const RecordsFilter = validate45;
13374
13361
  export const PublicJwk = validate33;
13375
13362
  export const GenericSignaturePayload = validate94;
13376
- const schema134 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json", "type": "object", "additionalProperties": false, "required": ["descriptorCid"], "properties": { "descriptorCid": { "type": "string" }, "delegatedGrantId": { "type": "string" }, "permissionGrantId": { "$comment": "Direct Records and Protocols operations invoke a single grant with permissionGrantId. Message.createSignature rejects payloads that also include permissionGrantIds.", "type": "string" }, "permissionGrantIds": { "$comment": "Messages operations invoke grants with permissionGrantIds, including the single-grant case. Message.createSignature rejects payloads that also include permissionGrantId.", "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "protocolRole": { "$comment": "Used in the Records interface to authorize role-authorized actions for protocol records", "type": "string" } } };
13363
+ const schema136 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json", "type": "object", "additionalProperties": false, "required": ["descriptorCid"], "properties": { "descriptorCid": { "type": "string" }, "delegatedGrantId": { "type": "string" }, "permissionGrantId": { "$comment": "Direct Records and Protocols operations invoke a single grant with permissionGrantId. Message.createSignature rejects payloads that also include permissionGrantIds.", "type": "string" }, "permissionGrantIds": { "$comment": "Messages operations invoke grants with permissionGrantIds, including the single-grant case. Message.createSignature rejects payloads that also include permissionGrantId.", "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "protocolRole": { "$comment": "Used in the Records interface to authorize role-authorized actions for protocol records", "type": "string" } } };
13377
13364
  function validate94(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate94.evaluated; if (evaluated0.dynamicProps) {
13378
13365
  evaluated0.props = undefined;
13379
13366
  } if (evaluated0.dynamicItems) {
@@ -13512,7 +13499,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
13512
13499
  } validate94.errors = vErrors; return errors === 0; }
13513
13500
  validate94.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13514
13501
  export const RecordsWriteSignaturePayload = validate95;
13515
- const schema135 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/records-write-signature-payload.json", "type": "object", "additionalProperties": false, "required": ["descriptorCid", "recordId"], "properties": { "descriptorCid": { "type": "string" }, "recordId": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "attestationCid": { "type": "string" }, "encryptionCid": { "type": "string" }, "delegatedGrantId": { "type": "string" }, "permissionGrantId": { "type": "string" }, "protocolRole": { "type": "string" } } };
13502
+ const schema137 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/records-write-signature-payload.json", "type": "object", "additionalProperties": false, "required": ["descriptorCid", "recordId"], "properties": { "descriptorCid": { "type": "string" }, "recordId": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "attestationCid": { "type": "string" }, "encryptionCid": { "type": "string" }, "delegatedGrantId": { "type": "string" }, "permissionGrantId": { "type": "string" }, "protocolRole": { "type": "string" } } };
13516
13503
  function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/signature-payloads/records-write-signature-payload.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate95.evaluated; if (evaluated0.dynamicProps) {
13517
13504
  evaluated0.props = undefined;
13518
13505
  } if (evaluated0.dynamicItems) {
@@ -13895,8 +13882,8 @@ function validate96(data, { instancePath = "", parentData, parentDataProperty, r
13895
13882
  } validate96.errors = vErrors; return errors === 0; }
13896
13883
  validate96.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13897
13884
  export const WrappedGrantKeyEnvelope = validate97;
13898
- const schema137 = { "$id": "https://identity.foundation/dwn/json-schemas/encryption/wrapped-grant-key-envelope.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["format", "keyEncryption", "contentEncryption", "ciphertext"], "properties": { "format": { "const": "enbox/wrapped-grant-key@1" }, "keyEncryption": { "type": "object", "additionalProperties": false, "required": ["algorithm", "keyId", "ephemeralPublicKey", "encryptedKey"], "properties": { "algorithm": { "const": "X25519-HKDF-SHA256+A256KW" }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "ephemeralPublicKey": { "$ref": "#/$defs/x25519PublicKey" }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "contentEncryption": { "type": "object", "additionalProperties": false, "required": ["algorithm", "initializationVector"], "properties": { "algorithm": { "const": "A256CTR" }, "initializationVector": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "ciphertext": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } }, "$defs": { "x25519PublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } };
13899
- const schema138 = { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } };
13885
+ const schema139 = { "$id": "https://identity.foundation/dwn/json-schemas/encryption/wrapped-grant-key-envelope.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": ["format", "keyEncryption", "contentEncryption", "ciphertext"], "properties": { "format": { "const": "enbox/wrapped-grant-key@1" }, "keyEncryption": { "type": "object", "additionalProperties": false, "required": ["algorithm", "keyId", "ephemeralPublicKey", "encryptedKey"], "properties": { "algorithm": { "const": "X25519-HKDF-SHA256+A256KW" }, "keyId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "ephemeralPublicKey": { "$ref": "#/$defs/x25519PublicKey" }, "encryptedKey": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "contentEncryption": { "type": "object", "additionalProperties": false, "required": ["algorithm", "initializationVector"], "properties": { "algorithm": { "const": "A256CTR" }, "initializationVector": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } }, "ciphertext": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } }, "$defs": { "x25519PublicKey": { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } } } };
13886
+ const schema140 = { "allOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" }], "type": "object", "required": ["kty", "crv", "x"], "properties": { "kty": { "const": "OKP" }, "crv": { "const": "X25519" }, "x": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/base64url" } } };
13900
13887
  function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate98.evaluated; if (evaluated0.dynamicProps) {
13901
13888
  evaluated0.props = undefined;
13902
13889
  } if (evaluated0.dynamicItems) {