@enbox/dwn-sdk-js 0.3.0 → 0.3.1

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 (69) hide show
  1. package/dist/browser.mjs +6 -6
  2. package/dist/browser.mjs.map +3 -3
  3. package/dist/esm/generated/precompiled-validators.js +704 -342
  4. package/dist/esm/generated/precompiled-validators.js.map +1 -1
  5. package/dist/esm/src/core/dwn-error.js +1 -0
  6. package/dist/esm/src/core/dwn-error.js.map +1 -1
  7. package/dist/esm/src/event-stream/event-emitter-event-log.js +151 -20
  8. package/dist/esm/src/event-stream/event-emitter-event-log.js.map +1 -1
  9. package/dist/esm/src/handlers/messages-subscribe.js +7 -0
  10. package/dist/esm/src/handlers/messages-subscribe.js.map +1 -1
  11. package/dist/esm/src/handlers/protocols-configure.js +1 -1
  12. package/dist/esm/src/handlers/protocols-configure.js.map +1 -1
  13. package/dist/esm/src/handlers/records-subscribe.js +7 -0
  14. package/dist/esm/src/handlers/records-subscribe.js.map +1 -1
  15. package/dist/esm/src/handlers/records-write.js +3 -2
  16. package/dist/esm/src/handlers/records-write.js.map +1 -1
  17. package/dist/esm/src/interfaces/messages-subscribe.js.map +1 -1
  18. package/dist/esm/src/interfaces/records-subscribe.js.map +1 -1
  19. package/dist/esm/src/store/storage-controller.js +1 -1
  20. package/dist/esm/src/store/storage-controller.js.map +1 -1
  21. package/dist/esm/src/utils/messages.js +41 -1
  22. package/dist/esm/src/utils/messages.js.map +1 -1
  23. package/dist/esm/tests/event-emitter-event-log.spec.js +214 -81
  24. package/dist/esm/tests/event-emitter-event-log.spec.js.map +1 -1
  25. package/dist/esm/tests/handlers/messages-subscribe.spec.js +288 -0
  26. package/dist/esm/tests/handlers/messages-subscribe.spec.js.map +1 -1
  27. package/dist/esm/tests/utils/test-data-generator.js.map +1 -1
  28. package/dist/types/generated/precompiled-validators.d.ts +50 -34
  29. package/dist/types/generated/precompiled-validators.d.ts.map +1 -1
  30. package/dist/types/src/core/dwn-error.d.ts +1 -0
  31. package/dist/types/src/core/dwn-error.d.ts.map +1 -1
  32. package/dist/types/src/event-stream/event-emitter-event-log.d.ts +34 -4
  33. package/dist/types/src/event-stream/event-emitter-event-log.d.ts.map +1 -1
  34. package/dist/types/src/handlers/messages-subscribe.d.ts +1 -1
  35. package/dist/types/src/handlers/messages-subscribe.d.ts.map +1 -1
  36. package/dist/types/src/handlers/records-subscribe.d.ts +1 -1
  37. package/dist/types/src/handlers/records-subscribe.d.ts.map +1 -1
  38. package/dist/types/src/handlers/records-write.d.ts.map +1 -1
  39. package/dist/types/src/index.d.ts +1 -1
  40. package/dist/types/src/index.d.ts.map +1 -1
  41. package/dist/types/src/interfaces/messages-subscribe.d.ts +4 -3
  42. package/dist/types/src/interfaces/messages-subscribe.d.ts.map +1 -1
  43. package/dist/types/src/interfaces/records-subscribe.d.ts +4 -3
  44. package/dist/types/src/interfaces/records-subscribe.d.ts.map +1 -1
  45. package/dist/types/src/types/messages-types.d.ts +14 -4
  46. package/dist/types/src/types/messages-types.d.ts.map +1 -1
  47. package/dist/types/src/types/records-types.d.ts +8 -4
  48. package/dist/types/src/types/records-types.d.ts.map +1 -1
  49. package/dist/types/src/types/subscriptions.d.ts +73 -20
  50. package/dist/types/src/types/subscriptions.d.ts.map +1 -1
  51. package/dist/types/src/utils/messages.d.ts.map +1 -1
  52. package/dist/types/tests/handlers/messages-subscribe.spec.d.ts.map +1 -1
  53. package/dist/types/tests/utils/test-data-generator.d.ts +5 -4
  54. package/dist/types/tests/utils/test-data-generator.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/core/dwn-error.ts +1 -0
  57. package/src/event-stream/event-emitter-event-log.ts +169 -21
  58. package/src/handlers/messages-subscribe.ts +8 -1
  59. package/src/handlers/protocols-configure.ts +1 -1
  60. package/src/handlers/records-subscribe.ts +8 -1
  61. package/src/handlers/records-write.ts +3 -2
  62. package/src/index.ts +1 -1
  63. package/src/interfaces/messages-subscribe.ts +4 -3
  64. package/src/interfaces/records-subscribe.ts +4 -3
  65. package/src/store/storage-controller.ts +1 -1
  66. package/src/types/messages-types.ts +12 -4
  67. package/src/types/records-types.ts +6 -4
  68. package/src/types/subscriptions.ts +78 -20
  69. package/src/utils/messages.ts +47 -1
@@ -5140,7 +5140,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
5140
5140
  } validate45.errors = vErrors; return errors === 0; }
5141
5141
  validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
5142
5142
  export const RecordsSubscribe = validate48;
5143
- const schema73 = { "$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" }, "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": { "type": "string" } } } } };
5143
+ const schema73 = { "$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" }, "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" } } } } };
5144
+ const schema76 = { "$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", "messageCid"], "properties": { "streamId": { "type": "string", "minLength": 1 }, "epoch": { "type": "string", "minLength": 1 }, "position": { "type": "string", "minLength": 1 }, "messageCid": { "type": "string", "minLength": 1 } } };
5144
5145
  function validate48(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 = validate48.evaluated; if (evaluated0.dynamicProps) {
5145
5146
  evaluated0.props = undefined;
5146
5147
  } if (evaluated0.dynamicItems) {
@@ -5394,10 +5395,119 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
5394
5395
  }
5395
5396
  if (valid1) {
5396
5397
  if (data1.cursor !== undefined) {
5398
+ let data12 = data1.cursor;
5397
5399
  const _errs29 = errors;
5398
- if (typeof data1.cursor !== "string") {
5399
- validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "#/properties/descriptor/properties/cursor/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5400
- return false;
5400
+ const _errs30 = errors;
5401
+ if (errors === _errs30) {
5402
+ if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
5403
+ let missing3;
5404
+ if (((((data12.streamId === undefined) && (missing3 = "streamId")) || ((data12.epoch === undefined) && (missing3 = "epoch"))) || ((data12.position === undefined) && (missing3 = "position"))) || ((data12.messageCid === undefined) && (missing3 = "messageCid"))) {
5405
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
5406
+ return false;
5407
+ }
5408
+ else {
5409
+ const _errs32 = errors;
5410
+ for (const key4 in data12) {
5411
+ if (!((((key4 === "streamId") || (key4 === "epoch")) || (key4 === "position")) || (key4 === "messageCid"))) {
5412
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
5413
+ return false;
5414
+ break;
5415
+ }
5416
+ }
5417
+ if (_errs32 === errors) {
5418
+ if (data12.streamId !== undefined) {
5419
+ let data13 = data12.streamId;
5420
+ const _errs33 = errors;
5421
+ if (errors === _errs33) {
5422
+ if (typeof data13 === "string") {
5423
+ if (func1(data13) < 1) {
5424
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/streamId", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/streamId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5425
+ return false;
5426
+ }
5427
+ }
5428
+ else {
5429
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/streamId", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/streamId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5430
+ return false;
5431
+ }
5432
+ }
5433
+ var valid7 = _errs33 === errors;
5434
+ }
5435
+ else {
5436
+ var valid7 = true;
5437
+ }
5438
+ if (valid7) {
5439
+ if (data12.epoch !== undefined) {
5440
+ let data14 = data12.epoch;
5441
+ const _errs35 = errors;
5442
+ if (errors === _errs35) {
5443
+ if (typeof data14 === "string") {
5444
+ if (func1(data14) < 1) {
5445
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/epoch", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/epoch/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5446
+ return false;
5447
+ }
5448
+ }
5449
+ else {
5450
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/epoch", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/epoch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5451
+ return false;
5452
+ }
5453
+ }
5454
+ var valid7 = _errs35 === errors;
5455
+ }
5456
+ else {
5457
+ var valid7 = true;
5458
+ }
5459
+ if (valid7) {
5460
+ if (data12.position !== undefined) {
5461
+ let data15 = data12.position;
5462
+ const _errs37 = errors;
5463
+ if (errors === _errs37) {
5464
+ if (typeof data15 === "string") {
5465
+ if (func1(data15) < 1) {
5466
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/position", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/position/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5467
+ return false;
5468
+ }
5469
+ }
5470
+ else {
5471
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/position", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5472
+ return false;
5473
+ }
5474
+ }
5475
+ var valid7 = _errs37 === errors;
5476
+ }
5477
+ else {
5478
+ var valid7 = true;
5479
+ }
5480
+ if (valid7) {
5481
+ if (data12.messageCid !== undefined) {
5482
+ let data16 = data12.messageCid;
5483
+ const _errs39 = errors;
5484
+ if (errors === _errs39) {
5485
+ if (typeof data16 === "string") {
5486
+ if (func1(data16) < 1) {
5487
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/messageCid", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/messageCid/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5488
+ return false;
5489
+ }
5490
+ }
5491
+ else {
5492
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor/messageCid", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/messageCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5493
+ return false;
5494
+ }
5495
+ }
5496
+ var valid7 = _errs39 === errors;
5497
+ }
5498
+ else {
5499
+ var valid7 = true;
5500
+ }
5501
+ }
5502
+ }
5503
+ }
5504
+ }
5505
+ }
5506
+ }
5507
+ else {
5508
+ validate48.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
5509
+ return false;
5510
+ }
5401
5511
  }
5402
5512
  var valid1 = _errs29 === errors;
5403
5513
  }
@@ -5434,7 +5544,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
5434
5544
  } validate48.errors = vErrors; return errors === 0; }
5435
5545
  validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
5436
5546
  export const RecordsWrite = validate51;
5437
- const schema76 = { "$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"] };
5547
+ const schema77 = { "$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"] };
5438
5548
  function validate51(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 = validate51.evaluated; if (evaluated0.dynamicProps) {
5439
5549
  evaluated0.props = undefined;
5440
5550
  } if (evaluated0.dynamicItems) {
@@ -6182,7 +6292,7 @@ else {
6182
6292
  validate53.evaluated = { "dynamicProps": true, "dynamicItems": false };
6183
6293
  export const GeneralJws = validate21;
6184
6294
  export const JwkVerificationMethod = validate54;
6185
- const schema78 = { "$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" } } };
6295
+ const schema79 = { "$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" } } };
6186
6296
  function validate54(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 = validate54.evaluated; if (evaluated0.dynamicProps) {
6187
6297
  evaluated0.props = undefined;
6188
6298
  } if (evaluated0.dynamicItems) {
@@ -6220,7 +6330,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
6220
6330
  let data1 = data.type;
6221
6331
  const _errs4 = errors;
6222
6332
  if (!((data1 === "JsonWebKey") || (data1 === "JsonWebKey2020"))) {
6223
- validate54.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema78.properties.type.enum }, message: "must be equal to one of the allowed values" }];
6333
+ validate54.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema79.properties.type.enum }, message: "must be equal to one of the allowed values" }];
6224
6334
  return false;
6225
6335
  }
6226
6336
  var valid0 = _errs4 === errors;
@@ -6275,7 +6385,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
6275
6385
  } validate54.errors = vErrors; return errors === 0; }
6276
6386
  validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
6277
6387
  export const MessagesFilter = validate56;
6278
- const schema80 = { "$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" }, "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" } } } } };
6388
+ const schema81 = { "$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" } } } } };
6279
6389
  function validate56(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 = validate56.evaluated; if (evaluated0.dynamicProps) {
6280
6390
  evaluated0.props = undefined;
6281
6391
  } if (evaluated0.dynamicItems) {
@@ -6289,7 +6399,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
6289
6399
  else {
6290
6400
  const _errs1 = errors;
6291
6401
  for (const key0 in data) {
6292
- if (!((((key0 === "interface") || (key0 === "method")) || (key0 === "protocol")) || (key0 === "messageTimestamp"))) {
6402
+ if (!((((((key0 === "interface") || (key0 === "method")) || (key0 === "protocol")) || (key0 === "protocolPathPrefix")) || (key0 === "contextIdPrefix")) || (key0 === "messageTimestamp"))) {
6293
6403
  validate56.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
6294
6404
  return false;
6295
6405
  break;
@@ -6304,7 +6414,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
6304
6414
  return false;
6305
6415
  }
6306
6416
  if (!(((data0 === "Messages") || (data0 === "Protocols")) || (data0 === "Records"))) {
6307
- validate56.errors = [{ instancePath: instancePath + "/interface", schemaPath: "#/properties/interface/enum", keyword: "enum", params: { allowedValues: schema80.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
6417
+ validate56.errors = [{ instancePath: instancePath + "/interface", schemaPath: "#/properties/interface/enum", keyword: "enum", params: { allowedValues: schema81.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
6308
6418
  return false;
6309
6419
  }
6310
6420
  var valid0 = _errs2 === errors;
@@ -6321,7 +6431,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
6321
6431
  return false;
6322
6432
  }
6323
6433
  if (!(((data1 === "Configure") || (data1 === "Delete")) || (data1 === "Write"))) {
6324
- validate56.errors = [{ instancePath: instancePath + "/method", schemaPath: "#/properties/method/enum", keyword: "enum", params: { allowedValues: schema80.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6434
+ validate56.errors = [{ instancePath: instancePath + "/method", schemaPath: "#/properties/method/enum", keyword: "enum", params: { allowedValues: schema81.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6325
6435
  return false;
6326
6436
  }
6327
6437
  var valid0 = _errs4 === errors;
@@ -6342,81 +6452,107 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
6342
6452
  var valid0 = true;
6343
6453
  }
6344
6454
  if (valid0) {
6345
- if (data.messageTimestamp !== undefined) {
6346
- let data3 = data.messageTimestamp;
6455
+ if (data.protocolPathPrefix !== undefined) {
6347
6456
  const _errs8 = errors;
6348
- if (errors === _errs8) {
6349
- if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
6350
- if (Object.keys(data3).length < 1) {
6351
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp", schemaPath: "#/properties/messageTimestamp/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
6352
- return false;
6353
- }
6354
- else {
6355
- const _errs10 = errors;
6356
- for (const key1 in data3) {
6357
- if (!((key1 === "from") || (key1 === "to"))) {
6358
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp", schemaPath: "#/properties/messageTimestamp/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
6457
+ if (typeof data.protocolPathPrefix !== "string") {
6458
+ validate56.errors = [{ instancePath: instancePath + "/protocolPathPrefix", schemaPath: "#/properties/protocolPathPrefix/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6459
+ return false;
6460
+ }
6461
+ var valid0 = _errs8 === errors;
6462
+ }
6463
+ else {
6464
+ var valid0 = true;
6465
+ }
6466
+ if (valid0) {
6467
+ if (data.contextIdPrefix !== undefined) {
6468
+ const _errs10 = errors;
6469
+ if (typeof data.contextIdPrefix !== "string") {
6470
+ validate56.errors = [{ instancePath: instancePath + "/contextIdPrefix", schemaPath: "#/properties/contextIdPrefix/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6471
+ return false;
6472
+ }
6473
+ var valid0 = _errs10 === errors;
6474
+ }
6475
+ else {
6476
+ var valid0 = true;
6477
+ }
6478
+ if (valid0) {
6479
+ if (data.messageTimestamp !== undefined) {
6480
+ let data5 = data.messageTimestamp;
6481
+ const _errs12 = errors;
6482
+ if (errors === _errs12) {
6483
+ if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
6484
+ if (Object.keys(data5).length < 1) {
6485
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp", schemaPath: "#/properties/messageTimestamp/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
6359
6486
  return false;
6360
- break;
6361
6487
  }
6362
- }
6363
- if (_errs10 === errors) {
6364
- if (data3.from !== undefined) {
6365
- let data4 = data3.from;
6366
- const _errs11 = errors;
6367
- const _errs12 = errors;
6368
- if (errors === _errs12) {
6369
- if (typeof data4 === "string") {
6370
- if (!pattern14.test(data4)) {
6371
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/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$" + "\"" }];
6372
- return false;
6373
- }
6374
- }
6375
- else {
6376
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/from", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6488
+ else {
6489
+ const _errs14 = errors;
6490
+ for (const key1 in data5) {
6491
+ if (!((key1 === "from") || (key1 === "to"))) {
6492
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp", schemaPath: "#/properties/messageTimestamp/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
6377
6493
  return false;
6494
+ break;
6378
6495
  }
6379
6496
  }
6380
- var valid1 = _errs11 === errors;
6381
- }
6382
- else {
6383
- var valid1 = true;
6384
- }
6385
- if (valid1) {
6386
- if (data3.to !== undefined) {
6387
- let data5 = data3.to;
6388
- const _errs14 = errors;
6389
- const _errs15 = errors;
6390
- if (errors === _errs15) {
6391
- if (typeof data5 === "string") {
6392
- if (!pattern14.test(data5)) {
6393
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/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$" + "\"" }];
6497
+ if (_errs14 === errors) {
6498
+ if (data5.from !== undefined) {
6499
+ let data6 = data5.from;
6500
+ const _errs15 = errors;
6501
+ const _errs16 = errors;
6502
+ if (errors === _errs16) {
6503
+ if (typeof data6 === "string") {
6504
+ if (!pattern14.test(data6)) {
6505
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/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$" + "\"" }];
6506
+ return false;
6507
+ }
6508
+ }
6509
+ else {
6510
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/from", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6394
6511
  return false;
6395
6512
  }
6396
6513
  }
6514
+ var valid1 = _errs15 === errors;
6515
+ }
6516
+ else {
6517
+ var valid1 = true;
6518
+ }
6519
+ if (valid1) {
6520
+ if (data5.to !== undefined) {
6521
+ let data7 = data5.to;
6522
+ const _errs18 = errors;
6523
+ const _errs19 = errors;
6524
+ if (errors === _errs19) {
6525
+ if (typeof data7 === "string") {
6526
+ if (!pattern14.test(data7)) {
6527
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/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$" + "\"" }];
6528
+ return false;
6529
+ }
6530
+ }
6531
+ else {
6532
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/to", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6533
+ return false;
6534
+ }
6535
+ }
6536
+ var valid1 = _errs18 === errors;
6537
+ }
6397
6538
  else {
6398
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp/to", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6399
- return false;
6539
+ var valid1 = true;
6400
6540
  }
6401
6541
  }
6402
- var valid1 = _errs14 === errors;
6403
- }
6404
- else {
6405
- var valid1 = true;
6406
6542
  }
6407
6543
  }
6408
6544
  }
6545
+ else {
6546
+ validate56.errors = [{ instancePath: instancePath + "/messageTimestamp", schemaPath: "#/properties/messageTimestamp/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
6547
+ return false;
6548
+ }
6409
6549
  }
6550
+ var valid0 = _errs12 === errors;
6410
6551
  }
6411
6552
  else {
6412
- validate56.errors = [{ instancePath: instancePath + "/messageTimestamp", schemaPath: "#/properties/messageTimestamp/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
6413
- return false;
6553
+ var valid0 = true;
6414
6554
  }
6415
6555
  }
6416
- var valid0 = _errs8 === errors;
6417
- }
6418
- else {
6419
- var valid0 = true;
6420
6556
  }
6421
6557
  }
6422
6558
  }
@@ -6431,7 +6567,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
6431
6567
  } validate56.errors = vErrors; return errors === 0; }
6432
6568
  validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
6433
6569
  export const MessagesRead = validate57;
6434
- const schema83 = { "$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" }, "permissionGrantId": { "type": "string" } } } } };
6570
+ const schema84 = { "$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" }, "permissionGrantId": { "type": "string" } } } } };
6435
6571
  function validate57(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 = validate57.evaluated; if (evaluated0.dynamicProps) {
6436
6572
  evaluated0.props = undefined;
6437
6573
  } if (evaluated0.dynamicItems) {
@@ -6493,7 +6629,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
6493
6629
  return false;
6494
6630
  }
6495
6631
  if (!(data2 === "Messages")) {
6496
- validate57.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema83.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
6632
+ validate57.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema84.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
6497
6633
  return false;
6498
6634
  }
6499
6635
  var valid1 = _errs6 === errors;
@@ -6510,7 +6646,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
6510
6646
  return false;
6511
6647
  }
6512
6648
  if (!(data3 === "Read")) {
6513
- validate57.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema83.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6649
+ validate57.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema84.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6514
6650
  return false;
6515
6651
  }
6516
6652
  var valid1 = _errs8 === errors;
@@ -6592,7 +6728,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
6592
6728
  } validate57.errors = vErrors; return errors === 0; }
6593
6729
  validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
6594
6730
  export const MessagesSubscribe = validate59;
6595
- const schema85 = { "$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" } }, "permissionGrantId": { "type": "string" }, "cursor": { "type": "string" } } } } };
6731
+ const schema86 = { "$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" } }, "permissionGrantId": { "type": "string" }, "cursor": { "$ref": "https://identity.foundation/dwn/json-schemas/progress-token.json" } } } } };
6596
6732
  function validate59(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 = validate59.evaluated; if (evaluated0.dynamicProps) {
6597
6733
  evaluated0.props = undefined;
6598
6734
  } if (evaluated0.dynamicItems) {
@@ -6654,7 +6790,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
6654
6790
  return false;
6655
6791
  }
6656
6792
  if (!(data2 === "Messages")) {
6657
- validate59.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema85.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
6793
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema86.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
6658
6794
  return false;
6659
6795
  }
6660
6796
  var valid1 = _errs6 === errors;
@@ -6671,7 +6807,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
6671
6807
  return false;
6672
6808
  }
6673
6809
  if (!(data3 === "Subscribe")) {
6674
- validate59.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema85.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6810
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema86.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
6675
6811
  return false;
6676
6812
  }
6677
6813
  var valid1 = _errs8 === errors;
@@ -6735,10 +6871,119 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
6735
6871
  }
6736
6872
  if (valid1) {
6737
6873
  if (data1.cursor !== undefined) {
6874
+ let data8 = data1.cursor;
6738
6875
  const _errs17 = errors;
6739
- if (typeof data1.cursor !== "string") {
6740
- validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "#/properties/descriptor/properties/cursor/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6741
- return false;
6876
+ const _errs18 = errors;
6877
+ if (errors === _errs18) {
6878
+ if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
6879
+ let missing2;
6880
+ if (((((data8.streamId === undefined) && (missing2 = "streamId")) || ((data8.epoch === undefined) && (missing2 = "epoch"))) || ((data8.position === undefined) && (missing2 = "position"))) || ((data8.messageCid === undefined) && (missing2 = "messageCid"))) {
6881
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
6882
+ return false;
6883
+ }
6884
+ else {
6885
+ const _errs20 = errors;
6886
+ for (const key2 in data8) {
6887
+ if (!((((key2 === "streamId") || (key2 === "epoch")) || (key2 === "position")) || (key2 === "messageCid"))) {
6888
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
6889
+ return false;
6890
+ break;
6891
+ }
6892
+ }
6893
+ if (_errs20 === errors) {
6894
+ if (data8.streamId !== undefined) {
6895
+ let data9 = data8.streamId;
6896
+ const _errs21 = errors;
6897
+ if (errors === _errs21) {
6898
+ if (typeof data9 === "string") {
6899
+ if (func1(data9) < 1) {
6900
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/streamId", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/streamId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
6901
+ return false;
6902
+ }
6903
+ }
6904
+ else {
6905
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/streamId", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/streamId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6906
+ return false;
6907
+ }
6908
+ }
6909
+ var valid4 = _errs21 === errors;
6910
+ }
6911
+ else {
6912
+ var valid4 = true;
6913
+ }
6914
+ if (valid4) {
6915
+ if (data8.epoch !== undefined) {
6916
+ let data10 = data8.epoch;
6917
+ const _errs23 = errors;
6918
+ if (errors === _errs23) {
6919
+ if (typeof data10 === "string") {
6920
+ if (func1(data10) < 1) {
6921
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/epoch", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/epoch/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
6922
+ return false;
6923
+ }
6924
+ }
6925
+ else {
6926
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/epoch", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/epoch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6927
+ return false;
6928
+ }
6929
+ }
6930
+ var valid4 = _errs23 === errors;
6931
+ }
6932
+ else {
6933
+ var valid4 = true;
6934
+ }
6935
+ if (valid4) {
6936
+ if (data8.position !== undefined) {
6937
+ let data11 = data8.position;
6938
+ const _errs25 = errors;
6939
+ if (errors === _errs25) {
6940
+ if (typeof data11 === "string") {
6941
+ if (func1(data11) < 1) {
6942
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/position", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/position/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
6943
+ return false;
6944
+ }
6945
+ }
6946
+ else {
6947
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/position", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6948
+ return false;
6949
+ }
6950
+ }
6951
+ var valid4 = _errs25 === errors;
6952
+ }
6953
+ else {
6954
+ var valid4 = true;
6955
+ }
6956
+ if (valid4) {
6957
+ if (data8.messageCid !== undefined) {
6958
+ let data12 = data8.messageCid;
6959
+ const _errs27 = errors;
6960
+ if (errors === _errs27) {
6961
+ if (typeof data12 === "string") {
6962
+ if (func1(data12) < 1) {
6963
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/messageCid", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/messageCid/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
6964
+ return false;
6965
+ }
6966
+ }
6967
+ else {
6968
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor/messageCid", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/properties/messageCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6969
+ return false;
6970
+ }
6971
+ }
6972
+ var valid4 = _errs27 === errors;
6973
+ }
6974
+ else {
6975
+ var valid4 = true;
6976
+ }
6977
+ }
6978
+ }
6979
+ }
6980
+ }
6981
+ }
6982
+ }
6983
+ else {
6984
+ validate59.errors = [{ instancePath: instancePath + "/descriptor/cursor", schemaPath: "https://identity.foundation/dwn/json-schemas/progress-token.json/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
6985
+ return false;
6986
+ }
6742
6987
  }
6743
6988
  var valid1 = _errs17 === errors;
6744
6989
  }
@@ -6774,7 +7019,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
6774
7019
  } validate59.errors = vErrors; return errors === 0; }
6775
7020
  validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
6776
7021
  export const MessagesSync = validate62;
6777
- const schema86 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-sync.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", "action"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Sync"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "action": { "enum": ["root", "subtree", "leaves", "diff"], "type": "string" }, "protocol": { "type": "string" }, "prefix": { "type": "string", "pattern": "^[01]*$" }, "permissionGrantId": { "type": "string" }, "hashes": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Map of { bitPrefix: hexHash } for the 'diff' action." }, "depth": { "type": "integer", "minimum": 1, "maximum": 256, "description": "Bit depth at which the client computed its subtree hashes." } }, "allOf": [{ "if": { "properties": { "action": { "const": "subtree" } } }, "then": { "required": ["prefix"] } }, { "if": { "properties": { "action": { "const": "leaves" } } }, "then": { "required": ["prefix"] } }, { "if": { "properties": { "action": { "const": "diff" } } }, "then": { "required": ["hashes", "depth"] } }] } } };
7022
+ const schema88 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/messages-sync.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", "action"], "properties": { "interface": { "enum": ["Messages"], "type": "string" }, "method": { "enum": ["Sync"], "type": "string" }, "messageTimestamp": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "action": { "enum": ["root", "subtree", "leaves", "diff"], "type": "string" }, "protocol": { "type": "string" }, "prefix": { "type": "string", "pattern": "^[01]*$" }, "permissionGrantId": { "type": "string" }, "hashes": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Map of { bitPrefix: hexHash } for the 'diff' action." }, "depth": { "type": "integer", "minimum": 1, "maximum": 256, "description": "Bit depth at which the client computed its subtree hashes." } }, "allOf": [{ "if": { "properties": { "action": { "const": "subtree" } } }, "then": { "required": ["prefix"] } }, { "if": { "properties": { "action": { "const": "leaves" } } }, "then": { "required": ["prefix"] } }, { "if": { "properties": { "action": { "const": "diff" } } }, "then": { "required": ["hashes", "depth"] } }] } } };
6778
7023
  const pattern37 = new RegExp("^[01]*$", "u");
6779
7024
  function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/messages-sync.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate62.evaluated; if (evaluated0.dynamicProps) {
6780
7025
  evaluated0.props = undefined;
@@ -6985,7 +7230,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
6985
7230
  else {
6986
7231
  const _errs20 = errors;
6987
7232
  for (const key1 in data1) {
6988
- if (!(func2.call(schema86.properties.descriptor.properties, key1))) {
7233
+ if (!(func2.call(schema88.properties.descriptor.properties, key1))) {
6989
7234
  validate62.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
6990
7235
  return false;
6991
7236
  break;
@@ -7000,7 +7245,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
7000
7245
  return false;
7001
7246
  }
7002
7247
  if (!(data5 === "Messages")) {
7003
- validate62.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema86.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7248
+ validate62.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema88.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
7004
7249
  return false;
7005
7250
  }
7006
7251
  var valid8 = _errs21 === errors;
@@ -7017,7 +7262,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
7017
7262
  return false;
7018
7263
  }
7019
7264
  if (!(data6 === "Sync")) {
7020
- validate62.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema86.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7265
+ validate62.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema88.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
7021
7266
  return false;
7022
7267
  }
7023
7268
  var valid8 = _errs23 === errors;
@@ -7056,7 +7301,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
7056
7301
  return false;
7057
7302
  }
7058
7303
  if (!((((data8 === "root") || (data8 === "subtree")) || (data8 === "leaves")) || (data8 === "diff"))) {
7059
- validate62.errors = [{ instancePath: instancePath + "/descriptor/action", schemaPath: "#/properties/descriptor/properties/action/enum", keyword: "enum", params: { allowedValues: schema86.properties.descriptor.properties.action.enum }, message: "must be equal to one of the allowed values" }];
7304
+ validate62.errors = [{ instancePath: instancePath + "/descriptor/action", schemaPath: "#/properties/descriptor/properties/action/enum", keyword: "enum", params: { allowedValues: schema88.properties.descriptor.properties.action.enum }, message: "must be equal to one of the allowed values" }];
7060
7305
  return false;
7061
7306
  }
7062
7307
  var valid8 = _errs28 === errors;
@@ -7501,22 +7746,139 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
7501
7746
  }
7502
7747
  } validate65.errors = vErrors; return errors === 0; }
7503
7748
  validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7504
- export const PermissionGrantData = validate66;
7505
- const schema90 = { "$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" } } };
7506
- const schema106 = { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } };
7507
- const schema93 = { "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/messages-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-sync-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" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-count-scope" }] };
7508
- const schema95 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" } } };
7509
- const schema96 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" } } };
7510
- const schema97 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Sync" }, "protocol": { "type": "string" } } };
7511
- const schema98 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Configure" }, "protocol": { "type": "string" } } };
7512
- const schema99 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Query" }, "protocol": { "type": "string" } } };
7513
- const schema100 = { "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" } } };
7514
- const schema101 = { "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" } } };
7515
- const schema102 = { "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" } } };
7516
- const schema103 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Query" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } };
7517
- const schema104 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } };
7518
- const schema105 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Count" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } };
7519
- function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate68.evaluated; if (evaluated0.dynamicProps) {
7749
+ export const ProgressToken = validate66;
7750
+ function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/progress-token.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate66.evaluated; if (evaluated0.dynamicProps) {
7751
+ evaluated0.props = undefined;
7752
+ } if (evaluated0.dynamicItems) {
7753
+ evaluated0.items = undefined;
7754
+ } if (errors === 0) {
7755
+ if (data && typeof data == "object" && !Array.isArray(data)) {
7756
+ let missing0;
7757
+ if (((((data.streamId === undefined) && (missing0 = "streamId")) || ((data.epoch === undefined) && (missing0 = "epoch"))) || ((data.position === undefined) && (missing0 = "position"))) || ((data.messageCid === undefined) && (missing0 = "messageCid"))) {
7758
+ validate66.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
7759
+ return false;
7760
+ }
7761
+ else {
7762
+ const _errs1 = errors;
7763
+ for (const key0 in data) {
7764
+ if (!((((key0 === "streamId") || (key0 === "epoch")) || (key0 === "position")) || (key0 === "messageCid"))) {
7765
+ validate66.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
7766
+ return false;
7767
+ break;
7768
+ }
7769
+ }
7770
+ if (_errs1 === errors) {
7771
+ if (data.streamId !== undefined) {
7772
+ let data0 = data.streamId;
7773
+ const _errs2 = errors;
7774
+ if (errors === _errs2) {
7775
+ if (typeof data0 === "string") {
7776
+ if (func1(data0) < 1) {
7777
+ validate66.errors = [{ instancePath: instancePath + "/streamId", schemaPath: "#/properties/streamId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
7778
+ return false;
7779
+ }
7780
+ }
7781
+ else {
7782
+ validate66.errors = [{ instancePath: instancePath + "/streamId", schemaPath: "#/properties/streamId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7783
+ return false;
7784
+ }
7785
+ }
7786
+ var valid0 = _errs2 === errors;
7787
+ }
7788
+ else {
7789
+ var valid0 = true;
7790
+ }
7791
+ if (valid0) {
7792
+ if (data.epoch !== undefined) {
7793
+ let data1 = data.epoch;
7794
+ const _errs4 = errors;
7795
+ if (errors === _errs4) {
7796
+ if (typeof data1 === "string") {
7797
+ if (func1(data1) < 1) {
7798
+ validate66.errors = [{ instancePath: instancePath + "/epoch", schemaPath: "#/properties/epoch/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
7799
+ return false;
7800
+ }
7801
+ }
7802
+ else {
7803
+ validate66.errors = [{ instancePath: instancePath + "/epoch", schemaPath: "#/properties/epoch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7804
+ return false;
7805
+ }
7806
+ }
7807
+ var valid0 = _errs4 === errors;
7808
+ }
7809
+ else {
7810
+ var valid0 = true;
7811
+ }
7812
+ if (valid0) {
7813
+ if (data.position !== undefined) {
7814
+ let data2 = data.position;
7815
+ const _errs6 = errors;
7816
+ if (errors === _errs6) {
7817
+ if (typeof data2 === "string") {
7818
+ if (func1(data2) < 1) {
7819
+ validate66.errors = [{ instancePath: instancePath + "/position", schemaPath: "#/properties/position/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
7820
+ return false;
7821
+ }
7822
+ }
7823
+ else {
7824
+ validate66.errors = [{ instancePath: instancePath + "/position", schemaPath: "#/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7825
+ return false;
7826
+ }
7827
+ }
7828
+ var valid0 = _errs6 === errors;
7829
+ }
7830
+ else {
7831
+ var valid0 = true;
7832
+ }
7833
+ if (valid0) {
7834
+ if (data.messageCid !== undefined) {
7835
+ let data3 = data.messageCid;
7836
+ const _errs8 = errors;
7837
+ if (errors === _errs8) {
7838
+ if (typeof data3 === "string") {
7839
+ if (func1(data3) < 1) {
7840
+ validate66.errors = [{ instancePath: instancePath + "/messageCid", schemaPath: "#/properties/messageCid/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
7841
+ return false;
7842
+ }
7843
+ }
7844
+ else {
7845
+ validate66.errors = [{ instancePath: instancePath + "/messageCid", schemaPath: "#/properties/messageCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7846
+ return false;
7847
+ }
7848
+ }
7849
+ var valid0 = _errs8 === errors;
7850
+ }
7851
+ else {
7852
+ var valid0 = true;
7853
+ }
7854
+ }
7855
+ }
7856
+ }
7857
+ }
7858
+ }
7859
+ }
7860
+ else {
7861
+ validate66.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
7862
+ return false;
7863
+ }
7864
+ } validate66.errors = vErrors; return errors === 0; }
7865
+ validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7866
+ export const PermissionGrantData = validate67;
7867
+ const schema93 = { "$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" } } };
7868
+ const schema109 = { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } };
7869
+ const schema96 = { "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/messages-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-sync-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" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-count-scope" }] };
7870
+ const schema98 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" } } };
7871
+ const schema99 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" } } };
7872
+ const schema100 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Sync" }, "protocol": { "type": "string" } } };
7873
+ const schema101 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Configure" }, "protocol": { "type": "string" } } };
7874
+ const schema102 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Protocols" }, "method": { "const": "Query" }, "protocol": { "type": "string" } } };
7875
+ const schema103 = { "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" } } };
7876
+ const schema104 = { "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" } } };
7877
+ const schema105 = { "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" } } };
7878
+ const schema106 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Query" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } };
7879
+ const schema107 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } };
7880
+ const schema108 = { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Count" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } };
7881
+ function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate69.evaluated; if (evaluated0.dynamicProps) {
7520
7882
  evaluated0.props = undefined;
7521
7883
  } if (evaluated0.dynamicItems) {
7522
7884
  evaluated0.items = undefined;
@@ -9083,7 +9445,7 @@ else {
9083
9445
  vErrors.push(err84);
9084
9446
  }
9085
9447
  errors++;
9086
- validate68.errors = vErrors;
9448
+ validate69.errors = vErrors;
9087
9449
  return false;
9088
9450
  }
9089
9451
  else {
@@ -9096,9 +9458,9 @@ else {
9096
9458
  vErrors = null;
9097
9459
  }
9098
9460
  }
9099
- } validate68.errors = vErrors; evaluated0.props = props0; return errors === 0; }
9100
- validate68.evaluated = { "dynamicProps": true, "dynamicItems": false };
9101
- function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permission-grant-data.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate66.evaluated; if (evaluated0.dynamicProps) {
9461
+ } validate69.errors = vErrors; evaluated0.props = props0; return errors === 0; }
9462
+ validate69.evaluated = { "dynamicProps": true, "dynamicItems": false };
9463
+ function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permission-grant-data.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate67.evaluated; if (evaluated0.dynamicProps) {
9102
9464
  evaluated0.props = undefined;
9103
9465
  } if (evaluated0.dynamicItems) {
9104
9466
  evaluated0.items = undefined;
@@ -9106,14 +9468,14 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9106
9468
  if (data && typeof data == "object" && !Array.isArray(data)) {
9107
9469
  let missing0;
9108
9470
  if (((data.dateExpires === undefined) && (missing0 = "dateExpires")) || ((data.scope === undefined) && (missing0 = "scope"))) {
9109
- validate66.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
9471
+ validate67.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
9110
9472
  return false;
9111
9473
  }
9112
9474
  else {
9113
9475
  const _errs1 = errors;
9114
9476
  for (const key0 in data) {
9115
9477
  if (!((((((key0 === "description") || (key0 === "dateExpires")) || (key0 === "requestId")) || (key0 === "delegated")) || (key0 === "scope")) || (key0 === "conditions"))) {
9116
- validate66.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
9478
+ validate67.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
9117
9479
  return false;
9118
9480
  break;
9119
9481
  }
@@ -9122,7 +9484,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9122
9484
  if (data.description !== undefined) {
9123
9485
  const _errs2 = errors;
9124
9486
  if (typeof data.description !== "string") {
9125
- validate66.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9487
+ validate67.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9126
9488
  return false;
9127
9489
  }
9128
9490
  var valid0 = _errs2 === errors;
@@ -9138,12 +9500,12 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9138
9500
  if (errors === _errs5) {
9139
9501
  if (typeof data1 === "string") {
9140
9502
  if (!pattern14.test(data1)) {
9141
- validate66.errors = [{ instancePath: instancePath + "/dateExpires", 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$" + "\"" }];
9503
+ validate67.errors = [{ instancePath: instancePath + "/dateExpires", 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$" + "\"" }];
9142
9504
  return false;
9143
9505
  }
9144
9506
  }
9145
9507
  else {
9146
- validate66.errors = [{ instancePath: instancePath + "/dateExpires", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9508
+ validate67.errors = [{ instancePath: instancePath + "/dateExpires", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9147
9509
  return false;
9148
9510
  }
9149
9511
  }
@@ -9156,7 +9518,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9156
9518
  if (data.requestId !== undefined) {
9157
9519
  const _errs7 = errors;
9158
9520
  if (typeof data.requestId !== "string") {
9159
- validate66.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "#/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9521
+ validate67.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "#/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9160
9522
  return false;
9161
9523
  }
9162
9524
  var valid0 = _errs7 === errors;
@@ -9168,7 +9530,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9168
9530
  if (data.delegated !== undefined) {
9169
9531
  const _errs9 = errors;
9170
9532
  if (typeof data.delegated !== "boolean") {
9171
- validate66.errors = [{ instancePath: instancePath + "/delegated", schemaPath: "#/properties/delegated/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
9533
+ validate67.errors = [{ instancePath: instancePath + "/delegated", schemaPath: "#/properties/delegated/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
9172
9534
  return false;
9173
9535
  }
9174
9536
  var valid0 = _errs9 === errors;
@@ -9179,8 +9541,8 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9179
9541
  if (valid0) {
9180
9542
  if (data.scope !== undefined) {
9181
9543
  const _errs11 = errors;
9182
- if (!(validate68(data.scope, { instancePath: instancePath + "/scope", parentData: data, parentDataProperty: "scope", rootData, dynamicAnchors }))) {
9183
- vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
9544
+ if (!(validate69(data.scope, { instancePath: instancePath + "/scope", parentData: data, parentDataProperty: "scope", rootData, dynamicAnchors }))) {
9545
+ vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
9184
9546
  errors = vErrors.length;
9185
9547
  }
9186
9548
  var valid0 = _errs11 === errors;
@@ -9198,7 +9560,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9198
9560
  const _errs15 = errors;
9199
9561
  for (const key1 in data5) {
9200
9562
  if (!(key1 === "publication")) {
9201
- validate66.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
9563
+ validate67.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
9202
9564
  return false;
9203
9565
  break;
9204
9566
  }
@@ -9207,18 +9569,18 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9207
9569
  if (data5.publication !== undefined) {
9208
9570
  let data6 = data5.publication;
9209
9571
  if (typeof data6 !== "string") {
9210
- validate66.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9572
+ validate67.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9211
9573
  return false;
9212
9574
  }
9213
9575
  if (!((data6 === "Required") || (data6 === "Prohibited"))) {
9214
- validate66.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema106.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
9576
+ validate67.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema109.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
9215
9577
  return false;
9216
9578
  }
9217
9579
  }
9218
9580
  }
9219
9581
  }
9220
9582
  else {
9221
- validate66.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
9583
+ validate67.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
9222
9584
  return false;
9223
9585
  }
9224
9586
  }
@@ -9236,14 +9598,14 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
9236
9598
  }
9237
9599
  }
9238
9600
  else {
9239
- validate66.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
9601
+ validate67.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
9240
9602
  return false;
9241
9603
  }
9242
- } validate66.errors = vErrors; return errors === 0; }
9243
- validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
9244
- export const PermissionRequestData = validate71;
9245
- const schema107 = { "$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" } } };
9246
- function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate72.evaluated; if (evaluated0.dynamicProps) {
9604
+ } validate67.errors = vErrors; return errors === 0; }
9605
+ validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
9606
+ export const PermissionRequestData = validate72;
9607
+ const schema110 = { "$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" } } };
9608
+ function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate73.evaluated; if (evaluated0.dynamicProps) {
9247
9609
  evaluated0.props = undefined;
9248
9610
  } if (evaluated0.dynamicItems) {
9249
9611
  evaluated0.items = undefined;
@@ -10810,7 +11172,7 @@ else {
10810
11172
  vErrors.push(err84);
10811
11173
  }
10812
11174
  errors++;
10813
- validate72.errors = vErrors;
11175
+ validate73.errors = vErrors;
10814
11176
  return false;
10815
11177
  }
10816
11178
  else {
@@ -10823,9 +11185,9 @@ else {
10823
11185
  vErrors = null;
10824
11186
  }
10825
11187
  }
10826
- } validate72.errors = vErrors; evaluated0.props = props0; return errors === 0; }
10827
- validate72.evaluated = { "dynamicProps": true, "dynamicItems": false };
10828
- function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permission-request-data.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate71.evaluated; if (evaluated0.dynamicProps) {
11188
+ } validate73.errors = vErrors; evaluated0.props = props0; return errors === 0; }
11189
+ validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
11190
+ function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/permission-request-data.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate72.evaluated; if (evaluated0.dynamicProps) {
10829
11191
  evaluated0.props = undefined;
10830
11192
  } if (evaluated0.dynamicItems) {
10831
11193
  evaluated0.items = undefined;
@@ -10833,14 +11195,14 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10833
11195
  if (data && typeof data == "object" && !Array.isArray(data)) {
10834
11196
  let missing0;
10835
11197
  if (((data.delegated === undefined) && (missing0 = "delegated")) || ((data.scope === undefined) && (missing0 = "scope"))) {
10836
- validate71.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11198
+ validate72.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
10837
11199
  return false;
10838
11200
  }
10839
11201
  else {
10840
11202
  const _errs1 = errors;
10841
11203
  for (const key0 in data) {
10842
11204
  if (!((((key0 === "description") || (key0 === "delegated")) || (key0 === "scope")) || (key0 === "conditions"))) {
10843
- validate71.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11205
+ validate72.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
10844
11206
  return false;
10845
11207
  break;
10846
11208
  }
@@ -10849,7 +11211,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10849
11211
  if (data.description !== undefined) {
10850
11212
  const _errs2 = errors;
10851
11213
  if (typeof data.description !== "string") {
10852
- validate71.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11214
+ validate72.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10853
11215
  return false;
10854
11216
  }
10855
11217
  var valid0 = _errs2 === errors;
@@ -10861,7 +11223,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10861
11223
  if (data.delegated !== undefined) {
10862
11224
  const _errs4 = errors;
10863
11225
  if (typeof data.delegated !== "boolean") {
10864
- validate71.errors = [{ instancePath: instancePath + "/delegated", schemaPath: "#/properties/delegated/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11226
+ validate72.errors = [{ instancePath: instancePath + "/delegated", schemaPath: "#/properties/delegated/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
10865
11227
  return false;
10866
11228
  }
10867
11229
  var valid0 = _errs4 === errors;
@@ -10872,8 +11234,8 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10872
11234
  if (valid0) {
10873
11235
  if (data.scope !== undefined) {
10874
11236
  const _errs6 = errors;
10875
- if (!(validate72(data.scope, { instancePath: instancePath + "/scope", parentData: data, parentDataProperty: "scope", rootData, dynamicAnchors }))) {
10876
- vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
11237
+ if (!(validate73(data.scope, { instancePath: instancePath + "/scope", parentData: data, parentDataProperty: "scope", rootData, dynamicAnchors }))) {
11238
+ vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
10877
11239
  errors = vErrors.length;
10878
11240
  }
10879
11241
  var valid0 = _errs6 === errors;
@@ -10891,7 +11253,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10891
11253
  const _errs10 = errors;
10892
11254
  for (const key1 in data3) {
10893
11255
  if (!(key1 === "publication")) {
10894
- validate71.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11256
+ validate72.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
10895
11257
  return false;
10896
11258
  break;
10897
11259
  }
@@ -10900,18 +11262,18 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10900
11262
  if (data3.publication !== undefined) {
10901
11263
  let data4 = data3.publication;
10902
11264
  if (typeof data4 !== "string") {
10903
- validate71.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11265
+ validate72.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10904
11266
  return false;
10905
11267
  }
10906
11268
  if (!((data4 === "Required") || (data4 === "Prohibited"))) {
10907
- validate71.errors = [{ instancePath: instancePath + "/conditions/publication", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/properties/publication/enum", keyword: "enum", params: { allowedValues: schema106.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
11269
+ 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: schema109.properties.publication.enum }, message: "must be equal to one of the allowed values" }];
10908
11270
  return false;
10909
11271
  }
10910
11272
  }
10911
11273
  }
10912
11274
  }
10913
11275
  else {
10914
- validate71.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11276
+ validate72.errors = [{ instancePath: instancePath + "/conditions", schemaPath: "https://identity.foundation/dwn/json-schemas/permissions/defs.json#/$defs/conditions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
10915
11277
  return false;
10916
11278
  }
10917
11279
  }
@@ -10927,14 +11289,14 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10927
11289
  }
10928
11290
  }
10929
11291
  else {
10930
- validate71.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11292
+ validate72.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
10931
11293
  return false;
10932
11294
  }
10933
- } validate71.errors = vErrors; return errors === 0; }
10934
- validate71.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10935
- export const PermissionRevocationData = validate74;
10936
- const schema121 = { "$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" } } };
10937
- function validate74(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 = validate74.evaluated; if (evaluated0.dynamicProps) {
11295
+ } validate72.errors = vErrors; return errors === 0; }
11296
+ validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11297
+ export const PermissionRevocationData = validate75;
11298
+ 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" } } };
11299
+ function validate75(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 = validate75.evaluated; if (evaluated0.dynamicProps) {
10938
11300
  evaluated0.props = undefined;
10939
11301
  } if (evaluated0.dynamicItems) {
10940
11302
  evaluated0.items = undefined;
@@ -10943,7 +11305,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
10943
11305
  const _errs1 = errors;
10944
11306
  for (const key0 in data) {
10945
11307
  if (!(key0 === "description")) {
10946
- validate74.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11308
+ validate75.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
10947
11309
  return false;
10948
11310
  break;
10949
11311
  }
@@ -10951,52 +11313,52 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
10951
11313
  if (_errs1 === errors) {
10952
11314
  if (data.description !== undefined) {
10953
11315
  if (typeof data.description !== "string") {
10954
- validate74.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11316
+ validate75.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10955
11317
  return false;
10956
11318
  }
10957
11319
  }
10958
11320
  }
10959
11321
  }
10960
11322
  else {
10961
- validate74.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11323
+ validate75.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
10962
11324
  return false;
10963
11325
  }
10964
- } validate74.errors = vErrors; return errors === 0; }
10965
- validate74.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10966
- export const PermissionsDefinitions = validate67;
10967
- const schema92 = { "$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/messages-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-sync-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" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-count-scope" }] }, "conditions": { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } } } };
10968
- function validate67(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 = validate67.evaluated; if (evaluated0.dynamicProps) {
11326
+ } validate75.errors = vErrors; return errors === 0; }
11327
+ validate75.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11328
+ export const PermissionsDefinitions = validate68;
11329
+ const schema95 = { "$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/messages-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-sync-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" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-subscribe-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-count-scope" }] }, "conditions": { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } } } };
11330
+ function validate68(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 = validate68.evaluated; if (evaluated0.dynamicProps) {
10969
11331
  evaluated0.props = undefined;
10970
11332
  } if (evaluated0.dynamicItems) {
10971
11333
  evaluated0.items = undefined;
10972
11334
  } if (!(data && typeof data == "object" && !Array.isArray(data))) {
10973
- validate67.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11335
+ validate68.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
10974
11336
  return false;
10975
- } validate67.errors = vErrors; return errors === 0; }
10976
- validate67.evaluated = { "dynamicProps": false, "dynamicItems": false };
10977
- export const PermissionsScopes = validate69;
10978
- const schema94 = { "$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" } } }, "messages-subscribe-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" } } }, "messages-sync-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Sync" }, "protocol": { "type": "string" } } }, "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" } } }, "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" } } }, "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" } } }, "records-query-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Query" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } }, "records-subscribe-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } }, "records-count-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Count" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } } } };
10979
- function validate69(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 = validate69.evaluated; if (evaluated0.dynamicProps) {
11337
+ } validate68.errors = vErrors; return errors === 0; }
11338
+ validate68.evaluated = { "dynamicProps": false, "dynamicItems": false };
11339
+ export const PermissionsScopes = validate70;
11340
+ const schema97 = { "$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" } } }, "messages-subscribe-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" } } }, "messages-sync-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Sync" }, "protocol": { "type": "string" } } }, "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" } } }, "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" } } }, "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" } } }, "records-query-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Query" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } }, "records-subscribe-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Subscribe" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } }, "records-count-scope": { "type": "object", "additionalProperties": false, "required": ["interface", "method", "protocol"], "properties": { "interface": { "const": "Records" }, "method": { "const": "Count" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string" } } } } };
11341
+ function validate70(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 = validate70.evaluated; if (evaluated0.dynamicProps) {
10980
11342
  evaluated0.props = undefined;
10981
11343
  } if (evaluated0.dynamicItems) {
10982
11344
  evaluated0.items = undefined;
10983
11345
  } if (!(data && typeof data == "object" && !Array.isArray(data))) {
10984
- validate69.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11346
+ validate70.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
10985
11347
  return false;
10986
- } validate69.errors = vErrors; return errors === 0; }
10987
- validate69.evaluated = { "dynamicProps": false, "dynamicItems": false };
10988
- export const ProtocolDefinition = validate75;
10989
- const schema122 = { "$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 }, "types": { "type": "object", "patternProperties": { ".*": { "type": "object", "additionalProperties": false, "properties": { "schema": { "type": "string" }, "dataFormats": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "encryptionRequired": { "type": "boolean" } } } } }, "structure": { "type": "object", "patternProperties": { ".*": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" } } } } };
11348
+ } validate70.errors = vErrors; return errors === 0; }
11349
+ validate70.evaluated = { "dynamicProps": false, "dynamicItems": false };
11350
+ export const ProtocolDefinition = validate76;
11351
+ 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 }, "types": { "type": "object", "patternProperties": { ".*": { "type": "object", "additionalProperties": false, "properties": { "schema": { "type": "string" }, "dataFormats": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "encryptionRequired": { "type": "boolean" } } } } }, "structure": { "type": "object", "patternProperties": { ".*": { "$ref": "https://identity.foundation/dwn/json-schemas/protocol-rule-set.json" } } } } };
10990
11352
  const pattern39 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");
10991
11353
  const pattern41 = new RegExp(".*", "u");
10992
- const schema123 = { "$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": { "$encryption": { "type": "object", "additionalProperties": false, "properties": { "rootKeyId": { "type": "string" }, "publicKeyJwk": { "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" } }, "required": ["rootKeyId", "publicKeyJwk"] }, "$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 $encryption.", "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" } } };
11354
+ const schema126 = { "$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": { "$encryption": { "type": "object", "additionalProperties": false, "properties": { "rootKeyId": { "type": "string" }, "publicKeyJwk": { "$ref": "https://identity.foundation/dwn/json-schemas/public-jwk.json" } }, "required": ["rootKeyId", "publicKeyJwk"] }, "$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 $encryption.", "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" } } };
10993
11355
  const pattern43 = new RegExp("^[^$].*$", "u");
10994
11356
  const pattern44 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*:.+$", "u");
10995
11357
  const pattern45 = new RegExp("^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$", "u");
10996
11358
  const pattern46 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$", "u");
10997
11359
  const pattern47 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$", "u");
10998
- const wrapper2 = { validate: validate76 };
10999
- function validate76(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 = validate76.evaluated; if (evaluated0.dynamicProps) {
11360
+ const wrapper2 = { validate: validate77 };
11361
+ function validate77(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 = validate77.evaluated; if (evaluated0.dynamicProps) {
11000
11362
  evaluated0.props = undefined;
11001
11363
  } if (evaluated0.dynamicItems) {
11002
11364
  evaluated0.items = undefined;
@@ -11004,8 +11366,8 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11004
11366
  if (data && typeof data == "object" && !Array.isArray(data)) {
11005
11367
  const _errs1 = errors;
11006
11368
  for (const key0 in data) {
11007
- if (!((func2.call(schema123.properties, key0)) || (pattern43.test(key0)))) {
11008
- validate76.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11369
+ if (!((func2.call(schema126.properties, key0)) || (pattern43.test(key0)))) {
11370
+ validate77.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11009
11371
  return false;
11010
11372
  break;
11011
11373
  }
@@ -11018,14 +11380,14 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11018
11380
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
11019
11381
  let missing0;
11020
11382
  if (((data0.rootKeyId === undefined) && (missing0 = "rootKeyId")) || ((data0.publicKeyJwk === undefined) && (missing0 = "publicKeyJwk"))) {
11021
- validate76.errors = [{ instancePath: instancePath + "/$encryption", schemaPath: "#/properties/%24encryption/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11383
+ validate77.errors = [{ instancePath: instancePath + "/$encryption", schemaPath: "#/properties/%24encryption/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11022
11384
  return false;
11023
11385
  }
11024
11386
  else {
11025
11387
  const _errs4 = errors;
11026
11388
  for (const key1 in data0) {
11027
11389
  if (!((key1 === "rootKeyId") || (key1 === "publicKeyJwk"))) {
11028
- validate76.errors = [{ instancePath: instancePath + "/$encryption", schemaPath: "#/properties/%24encryption/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11390
+ validate77.errors = [{ instancePath: instancePath + "/$encryption", schemaPath: "#/properties/%24encryption/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11029
11391
  return false;
11030
11392
  break;
11031
11393
  }
@@ -11034,7 +11396,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11034
11396
  if (data0.rootKeyId !== undefined) {
11035
11397
  const _errs5 = errors;
11036
11398
  if (typeof data0.rootKeyId !== "string") {
11037
- validate76.errors = [{ instancePath: instancePath + "/$encryption/rootKeyId", schemaPath: "#/properties/%24encryption/properties/rootKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11399
+ validate77.errors = [{ instancePath: instancePath + "/$encryption/rootKeyId", schemaPath: "#/properties/%24encryption/properties/rootKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11038
11400
  return false;
11039
11401
  }
11040
11402
  var valid1 = _errs5 === errors;
@@ -11059,7 +11421,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11059
11421
  }
11060
11422
  }
11061
11423
  else {
11062
- validate76.errors = [{ instancePath: instancePath + "/$encryption", schemaPath: "#/properties/%24encryption/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11424
+ validate77.errors = [{ instancePath: instancePath + "/$encryption", schemaPath: "#/properties/%24encryption/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11063
11425
  return false;
11064
11426
  }
11065
11427
  }
@@ -11075,7 +11437,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11075
11437
  if (errors === _errs8) {
11076
11438
  if (Array.isArray(data3)) {
11077
11439
  if (data3.length < 1) {
11078
- validate76.errors = [{ instancePath: instancePath + "/$actions", schemaPath: "#/properties/%24actions/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
11440
+ validate77.errors = [{ instancePath: instancePath + "/$actions", schemaPath: "#/properties/%24actions/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
11079
11441
  return false;
11080
11442
  }
11081
11443
  else {
@@ -11085,7 +11447,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11085
11447
  let data4 = data3[i0];
11086
11448
  const _errs10 = errors;
11087
11449
  if (!(data4 && typeof data4 == "object" && !Array.isArray(data4))) {
11088
- validate76.errors = [{ instancePath: instancePath + "/$actions/" + i0, schemaPath: "#/properties/%24actions/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11450
+ validate77.errors = [{ instancePath: instancePath + "/$actions/" + i0, schemaPath: "#/properties/%24actions/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11089
11451
  return false;
11090
11452
  }
11091
11453
  const _errs12 = errors;
@@ -11134,7 +11496,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11134
11496
  errors++;
11135
11497
  }
11136
11498
  if (!(((data5 === "anyone") || (data5 === "author")) || (data5 === "recipient"))) {
11137
- const err3 = { instancePath: instancePath + "/$actions/" + i0 + "/who", schemaPath: "#/properties/%24actions/items/oneOf/0/properties/who/enum", keyword: "enum", params: { allowedValues: schema123.properties.$actions.items.oneOf[0].properties.who.enum }, message: "must be equal to one of the allowed values" };
11499
+ const err3 = { instancePath: instancePath + "/$actions/" + i0 + "/who", schemaPath: "#/properties/%24actions/items/oneOf/0/properties/who/enum", keyword: "enum", params: { allowedValues: schema126.properties.$actions.items.oneOf[0].properties.who.enum }, message: "must be equal to one of the allowed values" };
11138
11500
  if (vErrors === null) {
11139
11501
  vErrors = [err3];
11140
11502
  }
@@ -11199,7 +11561,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11199
11561
  errors++;
11200
11562
  }
11201
11563
  if (!(((((((((data8 === "co-delete") || (data8 === "co-prune")) || (data8 === "co-update")) || (data8 === "create")) || (data8 === "delete")) || (data8 === "prune")) || (data8 === "read")) || (data8 === "squash")) || (data8 === "update"))) {
11202
- const err7 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i1, schemaPath: "#/properties/%24actions/items/oneOf/0/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema123.properties.$actions.items.oneOf[0].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11564
+ const err7 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i1, schemaPath: "#/properties/%24actions/items/oneOf/0/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema126.properties.$actions.items.oneOf[0].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11203
11565
  if (vErrors === null) {
11204
11566
  vErrors = [err7];
11205
11567
  }
@@ -11321,7 +11683,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11321
11683
  errors++;
11322
11684
  }
11323
11685
  if (!(((((((((data11 === "co-delete") || (data11 === "co-prune")) || (data11 === "co-update")) || (data11 === "create")) || (data11 === "delete")) || (data11 === "prune")) || (data11 === "read")) || (data11 === "squash")) || (data11 === "update"))) {
11324
- const err14 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i2, schemaPath: "#/properties/%24actions/items/oneOf/1/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema123.properties.$actions.items.oneOf[1].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11686
+ const err14 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i2, schemaPath: "#/properties/%24actions/items/oneOf/1/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema126.properties.$actions.items.oneOf[1].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11325
11687
  if (vErrors === null) {
11326
11688
  vErrors = [err14];
11327
11689
  }
@@ -11380,7 +11742,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11380
11742
  vErrors.push(err16);
11381
11743
  }
11382
11744
  errors++;
11383
- validate76.errors = vErrors;
11745
+ validate77.errors = vErrors;
11384
11746
  return false;
11385
11747
  }
11386
11748
  else {
@@ -11402,7 +11764,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11402
11764
  }
11403
11765
  }
11404
11766
  else {
11405
- validate76.errors = [{ instancePath: instancePath + "/$actions", schemaPath: "#/properties/%24actions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
11767
+ validate77.errors = [{ instancePath: instancePath + "/$actions", schemaPath: "#/properties/%24actions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
11406
11768
  return false;
11407
11769
  }
11408
11770
  }
@@ -11415,7 +11777,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11415
11777
  if (data.$role !== undefined) {
11416
11778
  const _errs32 = errors;
11417
11779
  if (typeof data.$role !== "boolean") {
11418
- validate76.errors = [{ instancePath: instancePath + "/$role", schemaPath: "#/properties/%24role/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11780
+ validate77.errors = [{ instancePath: instancePath + "/$role", schemaPath: "#/properties/%24role/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11419
11781
  return false;
11420
11782
  }
11421
11783
  var valid0 = _errs32 === errors;
@@ -11430,12 +11792,12 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11430
11792
  if (errors === _errs35) {
11431
11793
  if (typeof data13 === "string") {
11432
11794
  if (!pattern44.test(data13)) {
11433
- validate76.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_-]*:.+$" + "\"" }];
11795
+ validate77.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_-]*:.+$" + "\"" }];
11434
11796
  return false;
11435
11797
  }
11436
11798
  }
11437
11799
  else {
11438
- validate76.errors = [{ instancePath: instancePath + "/$ref", schemaPath: "#/properties/%24ref/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11800
+ validate77.errors = [{ instancePath: instancePath + "/$ref", schemaPath: "#/properties/%24ref/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11439
11801
  return false;
11440
11802
  }
11441
11803
  }
@@ -11453,7 +11815,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11453
11815
  const _errs40 = errors;
11454
11816
  for (const key4 in data14) {
11455
11817
  if (!((key4 === "min") || (key4 === "max"))) {
11456
- validate76.errors = [{ instancePath: instancePath + "/$size", schemaPath: "#/properties/%24size/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
11818
+ validate77.errors = [{ instancePath: instancePath + "/$size", schemaPath: "#/properties/%24size/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
11457
11819
  return false;
11458
11820
  break;
11459
11821
  }
@@ -11465,12 +11827,12 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11465
11827
  if (errors === _errs41) {
11466
11828
  if ((typeof data15 == "number") && (isFinite(data15))) {
11467
11829
  if (data15 < 0 || isNaN(data15)) {
11468
- validate76.errors = [{ instancePath: instancePath + "/$size/min", schemaPath: "#/properties/%24size/properties/min/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11830
+ validate77.errors = [{ instancePath: instancePath + "/$size/min", schemaPath: "#/properties/%24size/properties/min/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11469
11831
  return false;
11470
11832
  }
11471
11833
  }
11472
11834
  else {
11473
- validate76.errors = [{ instancePath: instancePath + "/$size/min", schemaPath: "#/properties/%24size/properties/min/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11835
+ validate77.errors = [{ instancePath: instancePath + "/$size/min", schemaPath: "#/properties/%24size/properties/min/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11474
11836
  return false;
11475
11837
  }
11476
11838
  }
@@ -11486,12 +11848,12 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11486
11848
  if (errors === _errs43) {
11487
11849
  if ((typeof data16 == "number") && (isFinite(data16))) {
11488
11850
  if (data16 < 0 || isNaN(data16)) {
11489
- validate76.errors = [{ instancePath: instancePath + "/$size/max", schemaPath: "#/properties/%24size/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11851
+ validate77.errors = [{ instancePath: instancePath + "/$size/max", schemaPath: "#/properties/%24size/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11490
11852
  return false;
11491
11853
  }
11492
11854
  }
11493
11855
  else {
11494
- validate76.errors = [{ instancePath: instancePath + "/$size/max", schemaPath: "#/properties/%24size/properties/max/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11856
+ validate77.errors = [{ instancePath: instancePath + "/$size/max", schemaPath: "#/properties/%24size/properties/max/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11495
11857
  return false;
11496
11858
  }
11497
11859
  }
@@ -11504,7 +11866,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11504
11866
  }
11505
11867
  }
11506
11868
  else {
11507
- validate76.errors = [{ instancePath: instancePath + "/$size", schemaPath: "#/properties/%24size/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11869
+ validate77.errors = [{ instancePath: instancePath + "/$size", schemaPath: "#/properties/%24size/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11508
11870
  return false;
11509
11871
  }
11510
11872
  }
@@ -11521,14 +11883,14 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11521
11883
  if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
11522
11884
  let missing3;
11523
11885
  if (((data17.max === undefined) && (missing3 = "max")) || ((data17.strategy === undefined) && (missing3 = "strategy"))) {
11524
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
11886
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
11525
11887
  return false;
11526
11888
  }
11527
11889
  else {
11528
11890
  const _errs47 = errors;
11529
11891
  for (const key5 in data17) {
11530
11892
  if (!((key5 === "max") || (key5 === "strategy"))) {
11531
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
11893
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
11532
11894
  return false;
11533
11895
  break;
11534
11896
  }
@@ -11538,13 +11900,13 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11538
11900
  let data18 = data17.max;
11539
11901
  const _errs48 = errors;
11540
11902
  if (!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))) {
11541
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit/max", schemaPath: "#/properties/%24recordLimit/properties/max/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11903
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit/max", schemaPath: "#/properties/%24recordLimit/properties/max/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11542
11904
  return false;
11543
11905
  }
11544
11906
  if (errors === _errs48) {
11545
11907
  if ((typeof data18 == "number") && (isFinite(data18))) {
11546
11908
  if (data18 < 1 || isNaN(data18)) {
11547
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit/max", schemaPath: "#/properties/%24recordLimit/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
11909
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit/max", schemaPath: "#/properties/%24recordLimit/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
11548
11910
  return false;
11549
11911
  }
11550
11912
  }
@@ -11559,11 +11921,11 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11559
11921
  let data19 = data17.strategy;
11560
11922
  const _errs50 = errors;
11561
11923
  if (typeof data19 !== "string") {
11562
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11924
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11563
11925
  return false;
11564
11926
  }
11565
11927
  if (!((data19 === "reject") || (data19 === "purgeOldest"))) {
11566
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/enum", keyword: "enum", params: { allowedValues: schema123.properties.$recordLimit.properties.strategy.enum }, message: "must be equal to one of the allowed values" }];
11928
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/enum", keyword: "enum", params: { allowedValues: schema126.properties.$recordLimit.properties.strategy.enum }, message: "must be equal to one of the allowed values" }];
11567
11929
  return false;
11568
11930
  }
11569
11931
  var valid9 = _errs50 === errors;
@@ -11576,7 +11938,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11576
11938
  }
11577
11939
  }
11578
11940
  else {
11579
- validate76.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11941
+ validate77.errors = [{ instancePath: instancePath + "/$recordLimit", schemaPath: "#/properties/%24recordLimit/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11580
11942
  return false;
11581
11943
  }
11582
11944
  }
@@ -11589,7 +11951,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11589
11951
  if (data.$immutable !== undefined) {
11590
11952
  const _errs52 = errors;
11591
11953
  if (typeof data.$immutable !== "boolean") {
11592
- validate76.errors = [{ instancePath: instancePath + "/$immutable", schemaPath: "#/properties/%24immutable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11954
+ validate77.errors = [{ instancePath: instancePath + "/$immutable", schemaPath: "#/properties/%24immutable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11593
11955
  return false;
11594
11956
  }
11595
11957
  var valid0 = _errs52 === errors;
@@ -11602,11 +11964,11 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11602
11964
  let data21 = data.$delivery;
11603
11965
  const _errs55 = errors;
11604
11966
  if (typeof data21 !== "string") {
11605
- validate76.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11967
+ validate77.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11606
11968
  return false;
11607
11969
  }
11608
11970
  if (!((data21 === "direct") || (data21 === "subscribe"))) {
11609
- validate76.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/enum", keyword: "enum", params: { allowedValues: schema123.properties.$delivery.enum }, message: "must be equal to one of the allowed values" }];
11971
+ validate77.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/enum", keyword: "enum", params: { allowedValues: schema126.properties.$delivery.enum }, message: "must be equal to one of the allowed values" }];
11610
11972
  return false;
11611
11973
  }
11612
11974
  var valid0 = _errs55 === errors;
@@ -11619,11 +11981,11 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11619
11981
  let data22 = data.$squash;
11620
11982
  const _errs58 = errors;
11621
11983
  if (typeof data22 !== "boolean") {
11622
- validate76.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11984
+ validate77.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11623
11985
  return false;
11624
11986
  }
11625
11987
  if (!(data22 === true)) {
11626
- validate76.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/enum", keyword: "enum", params: { allowedValues: schema123.properties.$squash.enum }, message: "must be equal to one of the allowed values" }];
11988
+ validate77.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/enum", keyword: "enum", params: { allowedValues: schema126.properties.$squash.enum }, message: "must be equal to one of the allowed values" }];
11627
11989
  return false;
11628
11990
  }
11629
11991
  var valid0 = _errs58 === errors;
@@ -11638,7 +12000,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11638
12000
  if (errors === _errs61) {
11639
12001
  if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
11640
12002
  if (Object.keys(data23).length < 1) {
11641
- validate76.errors = [{ instancePath: instancePath + "/$tags", schemaPath: "#/properties/%24tags/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
12003
+ validate77.errors = [{ instancePath: instancePath + "/$tags", schemaPath: "#/properties/%24tags/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
11642
12004
  return false;
11643
12005
  }
11644
12006
  else {
@@ -11652,7 +12014,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11652
12014
  for (let i3 = 0; i3 < len3; i3++) {
11653
12015
  const _errs65 = errors;
11654
12016
  if (typeof data24[i3] !== "string") {
11655
- validate76.errors = [{ instancePath: instancePath + "/$tags/$requiredTags/" + i3, schemaPath: "#/properties/%24tags/properties/%24requiredTags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12017
+ validate77.errors = [{ instancePath: instancePath + "/$tags/$requiredTags/" + i3, schemaPath: "#/properties/%24tags/properties/%24requiredTags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11656
12018
  return false;
11657
12019
  }
11658
12020
  var valid11 = _errs65 === errors;
@@ -11662,7 +12024,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11662
12024
  }
11663
12025
  }
11664
12026
  else {
11665
- validate76.errors = [{ instancePath: instancePath + "/$tags/$requiredTags", schemaPath: "#/properties/%24tags/properties/%24requiredTags/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
12027
+ validate77.errors = [{ instancePath: instancePath + "/$tags/$requiredTags", schemaPath: "#/properties/%24tags/properties/%24requiredTags/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
11666
12028
  return false;
11667
12029
  }
11668
12030
  }
@@ -11675,7 +12037,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11675
12037
  if (data23.$allowUndefinedTags !== undefined) {
11676
12038
  const _errs67 = errors;
11677
12039
  if (typeof data23.$allowUndefinedTags !== "boolean") {
11678
- validate76.errors = [{ instancePath: instancePath + "/$tags/$allowUndefinedTags", schemaPath: "#/properties/%24tags/properties/%24allowUndefinedTags/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12040
+ validate77.errors = [{ instancePath: instancePath + "/$tags/$allowUndefinedTags", schemaPath: "#/properties/%24tags/properties/%24allowUndefinedTags/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11679
12041
  return false;
11680
12042
  }
11681
12043
  var valid10 = _errs67 === errors;
@@ -11696,7 +12058,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11696
12058
  const _errs71 = errors;
11697
12059
  for (const key7 in data27) {
11698
12060
  if (!((((key7 === "type") || (key7 === "items")) || (key7 === "contains")) || (pattern46.test(key7)))) {
11699
- validate76.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" }];
12061
+ validate77.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" }];
11700
12062
  return false;
11701
12063
  break;
11702
12064
  }
@@ -11706,7 +12068,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11706
12068
  let data28 = data27.type;
11707
12069
  const _errs72 = errors;
11708
12070
  if (!(((((data28 === "string") || (data28 === "number")) || (data28 === "integer")) || (data28 === "boolean")) || (data28 === "array"))) {
11709
- validate76.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: schema123.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.type.enum }, message: "must be equal to one of the allowed values" }];
12071
+ validate77.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: schema126.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.type.enum }, message: "must be equal to one of the allowed values" }];
11710
12072
  return false;
11711
12073
  }
11712
12074
  var valid13 = _errs72 === errors;
@@ -11724,7 +12086,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11724
12086
  let data30 = data29.type;
11725
12087
  const _errs75 = errors;
11726
12088
  if (!(((data30 === "string") || (data30 === "number")) || (data30 === "integer"))) {
11727
- validate76.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: schema123.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
12089
+ validate77.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: schema126.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
11728
12090
  return false;
11729
12091
  }
11730
12092
  var valid14 = _errs75 === errors;
@@ -11743,7 +12105,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11743
12105
  }
11744
12106
  }
11745
12107
  else {
11746
- validate76.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/items", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12108
+ validate77.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/items", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11747
12109
  return false;
11748
12110
  }
11749
12111
  }
@@ -11762,7 +12124,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11762
12124
  let data32 = data31.type;
11763
12125
  const _errs78 = errors;
11764
12126
  if (!(((data32 === "string") || (data32 === "number")) || (data32 === "integer"))) {
11765
- validate76.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: schema123.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.contains.properties.type.enum }, message: "must be equal to one of the allowed values" }];
12127
+ validate77.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: schema126.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.contains.properties.type.enum }, message: "must be equal to one of the allowed values" }];
11766
12128
  return false;
11767
12129
  }
11768
12130
  var valid16 = _errs78 === errors;
@@ -11781,7 +12143,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11781
12143
  }
11782
12144
  }
11783
12145
  else {
11784
- validate76.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/contains", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/contains/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12146
+ validate77.errors = [{ instancePath: instancePath + "/$tags/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/contains", schemaPath: "#/properties/%24tags/patternProperties/%5E(%3F!%5C%24requiredTags%24%7C%5C%24allowUndefinedTags%24).*%24/properties/contains/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11785
12147
  return false;
11786
12148
  }
11787
12149
  }
@@ -11795,7 +12157,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11795
12157
  }
11796
12158
  }
11797
12159
  else {
11798
- validate76.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/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12160
+ validate77.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/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11799
12161
  return false;
11800
12162
  }
11801
12163
  }
@@ -11807,7 +12169,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11807
12169
  }
11808
12170
  }
11809
12171
  else {
11810
- validate76.errors = [{ instancePath: instancePath + "/$tags", schemaPath: "#/properties/%24tags/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12172
+ validate77.errors = [{ instancePath: instancePath + "/$tags", schemaPath: "#/properties/%24tags/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11811
12173
  return false;
11812
12174
  }
11813
12175
  }
@@ -11844,12 +12206,12 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
11844
12206
  }
11845
12207
  }
11846
12208
  else {
11847
- validate76.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12209
+ validate77.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11848
12210
  return false;
11849
12211
  }
11850
- } validate76.errors = vErrors; return errors === 0; }
11851
- validate76.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11852
- function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/protocol-definition.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate75.evaluated; if (evaluated0.dynamicProps) {
12212
+ } validate77.errors = vErrors; return errors === 0; }
12213
+ validate77.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12214
+ function validate76(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/protocol-definition.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate76.evaluated; if (evaluated0.dynamicProps) {
11853
12215
  evaluated0.props = undefined;
11854
12216
  } if (evaluated0.dynamicItems) {
11855
12217
  evaluated0.items = undefined;
@@ -11857,14 +12219,14 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11857
12219
  if (data && typeof data == "object" && !Array.isArray(data)) {
11858
12220
  let missing0;
11859
12221
  if (((((data.protocol === undefined) && (missing0 = "protocol")) || ((data.published === undefined) && (missing0 = "published"))) || ((data.types === undefined) && (missing0 = "types"))) || ((data.structure === undefined) && (missing0 = "structure"))) {
11860
- validate75.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12222
+ validate76.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11861
12223
  return false;
11862
12224
  }
11863
12225
  else {
11864
12226
  const _errs1 = errors;
11865
12227
  for (const key0 in data) {
11866
12228
  if (!(((((key0 === "protocol") || (key0 === "published")) || (key0 === "uses")) || (key0 === "types")) || (key0 === "structure"))) {
11867
- validate75.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12229
+ validate76.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11868
12230
  return false;
11869
12231
  break;
11870
12232
  }
@@ -11873,7 +12235,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11873
12235
  if (data.protocol !== undefined) {
11874
12236
  const _errs2 = errors;
11875
12237
  if (typeof data.protocol !== "string") {
11876
- validate75.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12238
+ validate76.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11877
12239
  return false;
11878
12240
  }
11879
12241
  var valid0 = _errs2 === errors;
@@ -11885,7 +12247,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11885
12247
  if (data.published !== undefined) {
11886
12248
  const _errs4 = errors;
11887
12249
  if (typeof data.published !== "boolean") {
11888
- validate75.errors = [{ instancePath: instancePath + "/published", schemaPath: "#/properties/published/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12250
+ validate76.errors = [{ instancePath: instancePath + "/published", schemaPath: "#/properties/published/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11889
12251
  return false;
11890
12252
  }
11891
12253
  var valid0 = _errs4 === errors;
@@ -11900,14 +12262,14 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11900
12262
  if (errors === _errs6) {
11901
12263
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
11902
12264
  if (Object.keys(data2).length < 1) {
11903
- validate75.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
12265
+ validate76.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
11904
12266
  return false;
11905
12267
  }
11906
12268
  else {
11907
12269
  const _errs9 = errors;
11908
12270
  for (const key1 in data2) {
11909
12271
  if (!(pattern39.test(key1))) {
11910
- validate75.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12272
+ validate76.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11911
12273
  return false;
11912
12274
  break;
11913
12275
  }
@@ -11918,7 +12280,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11918
12280
  if (pattern39.test(key2)) {
11919
12281
  const _errs10 = errors;
11920
12282
  if (typeof data2[key2] !== "string") {
11921
- validate75.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" }];
12283
+ validate76.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" }];
11922
12284
  return false;
11923
12285
  }
11924
12286
  var valid1 = _errs10 === errors;
@@ -11931,7 +12293,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11931
12293
  }
11932
12294
  }
11933
12295
  else {
11934
- validate75.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12296
+ validate76.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11935
12297
  return false;
11936
12298
  }
11937
12299
  }
@@ -11956,7 +12318,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11956
12318
  const _errs16 = errors;
11957
12319
  for (const key4 in data5) {
11958
12320
  if (!(((key4 === "schema") || (key4 === "dataFormats")) || (key4 === "encryptionRequired"))) {
11959
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/types/patternProperties/.*/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
12321
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/types/patternProperties/.*/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
11960
12322
  return false;
11961
12323
  break;
11962
12324
  }
@@ -11965,7 +12327,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11965
12327
  if (data5.schema !== undefined) {
11966
12328
  const _errs17 = errors;
11967
12329
  if (typeof data5.schema !== "string") {
11968
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/schema", schemaPath: "#/properties/types/patternProperties/.*/properties/schema/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12330
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/schema", schemaPath: "#/properties/types/patternProperties/.*/properties/schema/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11969
12331
  return false;
11970
12332
  }
11971
12333
  var valid3 = _errs17 === errors;
@@ -11980,7 +12342,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11980
12342
  if (errors === _errs19) {
11981
12343
  if (Array.isArray(data7)) {
11982
12344
  if (data7.length < 1) {
11983
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/dataFormats", schemaPath: "#/properties/types/patternProperties/.*/properties/dataFormats/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
12345
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/dataFormats", schemaPath: "#/properties/types/patternProperties/.*/properties/dataFormats/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
11984
12346
  return false;
11985
12347
  }
11986
12348
  else {
@@ -11989,7 +12351,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
11989
12351
  for (let i0 = 0; i0 < len0; i0++) {
11990
12352
  const _errs21 = errors;
11991
12353
  if (typeof data7[i0] !== "string") {
11992
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/dataFormats/" + i0, schemaPath: "#/properties/types/patternProperties/.*/properties/dataFormats/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12354
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/dataFormats/" + i0, schemaPath: "#/properties/types/patternProperties/.*/properties/dataFormats/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11993
12355
  return false;
11994
12356
  }
11995
12357
  var valid4 = _errs21 === errors;
@@ -12000,7 +12362,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12000
12362
  }
12001
12363
  }
12002
12364
  else {
12003
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/dataFormats", schemaPath: "#/properties/types/patternProperties/.*/properties/dataFormats/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
12365
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/dataFormats", schemaPath: "#/properties/types/patternProperties/.*/properties/dataFormats/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
12004
12366
  return false;
12005
12367
  }
12006
12368
  }
@@ -12013,7 +12375,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12013
12375
  if (data5.encryptionRequired !== undefined) {
12014
12376
  const _errs23 = errors;
12015
12377
  if (typeof data5.encryptionRequired !== "boolean") {
12016
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/encryptionRequired", schemaPath: "#/properties/types/patternProperties/.*/properties/encryptionRequired/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12378
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/encryptionRequired", schemaPath: "#/properties/types/patternProperties/.*/properties/encryptionRequired/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
12017
12379
  return false;
12018
12380
  }
12019
12381
  var valid3 = _errs23 === errors;
@@ -12026,7 +12388,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12026
12388
  }
12027
12389
  }
12028
12390
  else {
12029
- validate75.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/types/patternProperties/.*/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12391
+ validate76.errors = [{ instancePath: instancePath + "/types/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/types/patternProperties/.*/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12030
12392
  return false;
12031
12393
  }
12032
12394
  }
@@ -12035,7 +12397,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12035
12397
  }
12036
12398
  }
12037
12399
  else {
12038
- validate75.errors = [{ instancePath: instancePath + "/types", schemaPath: "#/properties/types/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12400
+ validate76.errors = [{ instancePath: instancePath + "/types", schemaPath: "#/properties/types/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12039
12401
  return false;
12040
12402
  }
12041
12403
  }
@@ -12053,8 +12415,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12053
12415
  var props1 = {};
12054
12416
  for (const key5 in data10) {
12055
12417
  if (pattern41.test(key5)) {
12056
- if (!(validate76(data10[key5], { instancePath: instancePath + "/structure/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data10, parentDataProperty: key5, rootData, dynamicAnchors }))) {
12057
- vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors);
12418
+ if (!(validate77(data10[key5], { instancePath: instancePath + "/structure/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data10, parentDataProperty: key5, rootData, dynamicAnchors }))) {
12419
+ vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
12058
12420
  errors = vErrors.length;
12059
12421
  }
12060
12422
  props1[key5] = true;
@@ -12062,7 +12424,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12062
12424
  }
12063
12425
  }
12064
12426
  else {
12065
- validate75.errors = [{ instancePath: instancePath + "/structure", schemaPath: "#/properties/structure/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12427
+ validate76.errors = [{ instancePath: instancePath + "/structure", schemaPath: "#/properties/structure/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12066
12428
  return false;
12067
12429
  }
12068
12430
  }
@@ -12079,15 +12441,15 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
12079
12441
  }
12080
12442
  }
12081
12443
  else {
12082
- validate75.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12444
+ validate76.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12083
12445
  return false;
12084
12446
  }
12085
- } validate75.errors = vErrors; return errors === 0; }
12086
- validate75.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12087
- export const ProtocolRuleSet = validate76;
12088
- export const ProtocolsConfigure = validate79;
12089
- const schema124 = { "$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" } } } } };
12090
- function validate79(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 = validate79.evaluated; if (evaluated0.dynamicProps) {
12447
+ } validate76.errors = vErrors; return errors === 0; }
12448
+ validate76.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12449
+ export const ProtocolRuleSet = validate77;
12450
+ export const ProtocolsConfigure = validate80;
12451
+ 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" } } } } };
12452
+ function validate80(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 = validate80.evaluated; if (evaluated0.dynamicProps) {
12091
12453
  evaluated0.props = undefined;
12092
12454
  } if (evaluated0.dynamicItems) {
12093
12455
  evaluated0.items = undefined;
@@ -12095,14 +12457,14 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12095
12457
  if (data && typeof data == "object" && !Array.isArray(data)) {
12096
12458
  let missing0;
12097
12459
  if (((data.authorization === undefined) && (missing0 = "authorization")) || ((data.descriptor === undefined) && (missing0 = "descriptor"))) {
12098
- validate79.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12460
+ validate80.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12099
12461
  return false;
12100
12462
  }
12101
12463
  else {
12102
12464
  const _errs1 = errors;
12103
12465
  for (const key0 in data) {
12104
12466
  if (!((key0 === "authorization") || (key0 === "descriptor"))) {
12105
- validate79.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12467
+ validate80.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12106
12468
  return false;
12107
12469
  break;
12108
12470
  }
@@ -12127,14 +12489,14 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12127
12489
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
12128
12490
  let missing1;
12129
12491
  if (((((data1.interface === undefined) && (missing1 = "interface")) || ((data1.method === undefined) && (missing1 = "method"))) || ((data1.messageTimestamp === undefined) && (missing1 = "messageTimestamp"))) || ((data1.definition === undefined) && (missing1 = "definition"))) {
12130
- validate79.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12492
+ validate80.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12131
12493
  return false;
12132
12494
  }
12133
12495
  else {
12134
12496
  const _errs5 = errors;
12135
12497
  for (const key1 in data1) {
12136
12498
  if (!(((((key1 === "interface") || (key1 === "method")) || (key1 === "messageTimestamp")) || (key1 === "definition")) || (key1 === "permissionGrantId"))) {
12137
- validate79.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12499
+ validate80.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12138
12500
  return false;
12139
12501
  break;
12140
12502
  }
@@ -12144,11 +12506,11 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12144
12506
  let data2 = data1.interface;
12145
12507
  const _errs6 = errors;
12146
12508
  if (typeof data2 !== "string") {
12147
- validate79.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12509
+ validate80.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12148
12510
  return false;
12149
12511
  }
12150
12512
  if (!(data2 === "Protocols")) {
12151
- validate79.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema124.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12513
+ validate80.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" }];
12152
12514
  return false;
12153
12515
  }
12154
12516
  var valid1 = _errs6 === errors;
@@ -12161,11 +12523,11 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12161
12523
  let data3 = data1.method;
12162
12524
  const _errs8 = errors;
12163
12525
  if (typeof data3 !== "string") {
12164
- validate79.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12526
+ validate80.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12165
12527
  return false;
12166
12528
  }
12167
12529
  if (!(data3 === "Configure")) {
12168
- validate79.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema124.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12530
+ validate80.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" }];
12169
12531
  return false;
12170
12532
  }
12171
12533
  var valid1 = _errs8 === errors;
@@ -12181,12 +12543,12 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12181
12543
  if (errors === _errs11) {
12182
12544
  if (typeof data4 === "string") {
12183
12545
  if (!pattern14.test(data4)) {
12184
- validate79.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$" + "\"" }];
12546
+ validate80.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$" + "\"" }];
12185
12547
  return false;
12186
12548
  }
12187
12549
  }
12188
12550
  else {
12189
- validate79.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12551
+ validate80.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12190
12552
  return false;
12191
12553
  }
12192
12554
  }
@@ -12198,8 +12560,8 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12198
12560
  if (valid1) {
12199
12561
  if (data1.definition !== undefined) {
12200
12562
  const _errs13 = errors;
12201
- if (!(validate75(data1.definition, { instancePath: instancePath + "/descriptor/definition", parentData: data1, parentDataProperty: "definition", rootData, dynamicAnchors }))) {
12202
- vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
12563
+ if (!(validate76(data1.definition, { instancePath: instancePath + "/descriptor/definition", parentData: data1, parentDataProperty: "definition", rootData, dynamicAnchors }))) {
12564
+ vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors);
12203
12565
  errors = vErrors.length;
12204
12566
  }
12205
12567
  var valid1 = _errs13 === errors;
@@ -12211,7 +12573,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12211
12573
  if (data1.permissionGrantId !== undefined) {
12212
12574
  const _errs14 = errors;
12213
12575
  if (typeof data1.permissionGrantId !== "string") {
12214
- validate79.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12576
+ validate80.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12215
12577
  return false;
12216
12578
  }
12217
12579
  var valid1 = _errs14 === errors;
@@ -12227,7 +12589,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12227
12589
  }
12228
12590
  }
12229
12591
  else {
12230
- validate79.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12592
+ validate80.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12231
12593
  return false;
12232
12594
  }
12233
12595
  }
@@ -12241,14 +12603,14 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
12241
12603
  }
12242
12604
  }
12243
12605
  else {
12244
- validate79.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12606
+ validate80.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12245
12607
  return false;
12246
12608
  }
12247
- } validate79.errors = vErrors; return errors === 0; }
12248
- validate79.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12249
- export const ProtocolsQuery = validate82;
12250
- const schema126 = { "$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" } } } } };
12251
- function validate82(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 = validate82.evaluated; if (evaluated0.dynamicProps) {
12609
+ } validate80.errors = vErrors; return errors === 0; }
12610
+ validate80.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12611
+ export const ProtocolsQuery = validate83;
12612
+ 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" } } } } };
12613
+ function validate83(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 = validate83.evaluated; if (evaluated0.dynamicProps) {
12252
12614
  evaluated0.props = undefined;
12253
12615
  } if (evaluated0.dynamicItems) {
12254
12616
  evaluated0.items = undefined;
@@ -12256,14 +12618,14 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12256
12618
  if (data && typeof data == "object" && !Array.isArray(data)) {
12257
12619
  let missing0;
12258
12620
  if ((data.descriptor === undefined) && (missing0 = "descriptor")) {
12259
- validate82.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12621
+ validate83.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12260
12622
  return false;
12261
12623
  }
12262
12624
  else {
12263
12625
  const _errs1 = errors;
12264
12626
  for (const key0 in data) {
12265
12627
  if (!((key0 === "authorization") || (key0 === "descriptor"))) {
12266
- validate82.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12628
+ validate83.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12267
12629
  return false;
12268
12630
  break;
12269
12631
  }
@@ -12288,14 +12650,14 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12288
12650
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
12289
12651
  let missing1;
12290
12652
  if ((((data1.interface === undefined) && (missing1 = "interface")) || ((data1.method === undefined) && (missing1 = "method"))) || ((data1.messageTimestamp === undefined) && (missing1 = "messageTimestamp"))) {
12291
- validate82.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12653
+ validate83.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12292
12654
  return false;
12293
12655
  }
12294
12656
  else {
12295
12657
  const _errs5 = errors;
12296
12658
  for (const key1 in data1) {
12297
12659
  if (!(((((key1 === "interface") || (key1 === "method")) || (key1 === "messageTimestamp")) || (key1 === "filter")) || (key1 === "permissionGrantId"))) {
12298
- validate82.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12660
+ validate83.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12299
12661
  return false;
12300
12662
  break;
12301
12663
  }
@@ -12305,11 +12667,11 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12305
12667
  let data2 = data1.interface;
12306
12668
  const _errs6 = errors;
12307
12669
  if (typeof data2 !== "string") {
12308
- validate82.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12670
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12309
12671
  return false;
12310
12672
  }
12311
12673
  if (!(data2 === "Protocols")) {
12312
- validate82.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema126.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12674
+ validate83.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" }];
12313
12675
  return false;
12314
12676
  }
12315
12677
  var valid1 = _errs6 === errors;
@@ -12322,11 +12684,11 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12322
12684
  let data3 = data1.method;
12323
12685
  const _errs8 = errors;
12324
12686
  if (typeof data3 !== "string") {
12325
- validate82.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12687
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12326
12688
  return false;
12327
12689
  }
12328
12690
  if (!(data3 === "Query")) {
12329
- validate82.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema126.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12691
+ validate83.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" }];
12330
12692
  return false;
12331
12693
  }
12332
12694
  var valid1 = _errs8 === errors;
@@ -12342,12 +12704,12 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12342
12704
  if (errors === _errs11) {
12343
12705
  if (typeof data4 === "string") {
12344
12706
  if (!pattern14.test(data4)) {
12345
- validate82.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$" + "\"" }];
12707
+ validate83.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$" + "\"" }];
12346
12708
  return false;
12347
12709
  }
12348
12710
  }
12349
12711
  else {
12350
- validate82.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12712
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12351
12713
  return false;
12352
12714
  }
12353
12715
  }
@@ -12363,14 +12725,14 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12363
12725
  if (errors === _errs13) {
12364
12726
  if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
12365
12727
  if (Object.keys(data5).length < 1) {
12366
- validate82.errors = [{ instancePath: instancePath + "/descriptor/filter", schemaPath: "#/properties/descriptor/properties/filter/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
12728
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/filter", schemaPath: "#/properties/descriptor/properties/filter/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
12367
12729
  return false;
12368
12730
  }
12369
12731
  else {
12370
12732
  const _errs15 = errors;
12371
12733
  for (const key2 in data5) {
12372
12734
  if (!((key2 === "protocol") || (key2 === "recipient"))) {
12373
- validate82.errors = [{ instancePath: instancePath + "/descriptor/filter", schemaPath: "#/properties/descriptor/properties/filter/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
12735
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/filter", schemaPath: "#/properties/descriptor/properties/filter/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
12374
12736
  return false;
12375
12737
  break;
12376
12738
  }
@@ -12379,7 +12741,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12379
12741
  if (data5.protocol !== undefined) {
12380
12742
  const _errs16 = errors;
12381
12743
  if (typeof data5.protocol !== "string") {
12382
- validate82.errors = [{ instancePath: instancePath + "/descriptor/filter/protocol", schemaPath: "#/properties/descriptor/properties/filter/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12744
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/filter/protocol", schemaPath: "#/properties/descriptor/properties/filter/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12383
12745
  return false;
12384
12746
  }
12385
12747
  var valid3 = _errs16 === errors;
@@ -12395,12 +12757,12 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12395
12757
  if (errors === _errs19) {
12396
12758
  if (typeof data7 === "string") {
12397
12759
  if (!pattern12.test(data7)) {
12398
- validate82.errors = [{ instancePath: instancePath + "/descriptor/filter/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_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" + "\"" }];
12760
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/filter/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_.:%-]*)*)(/[^#?]*)?([?][^#]*)?(#.*)?$" + "\"" }];
12399
12761
  return false;
12400
12762
  }
12401
12763
  }
12402
12764
  else {
12403
- validate82.errors = [{ instancePath: instancePath + "/descriptor/filter/recipient", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12765
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/filter/recipient", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/did/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12404
12766
  return false;
12405
12767
  }
12406
12768
  }
@@ -12414,7 +12776,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12414
12776
  }
12415
12777
  }
12416
12778
  else {
12417
- validate82.errors = [{ instancePath: instancePath + "/descriptor/filter", schemaPath: "#/properties/descriptor/properties/filter/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12779
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/filter", schemaPath: "#/properties/descriptor/properties/filter/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12418
12780
  return false;
12419
12781
  }
12420
12782
  }
@@ -12427,7 +12789,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12427
12789
  if (data1.permissionGrantId !== undefined) {
12428
12790
  const _errs21 = errors;
12429
12791
  if (typeof data1.permissionGrantId !== "string") {
12430
- validate82.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12792
+ validate83.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12431
12793
  return false;
12432
12794
  }
12433
12795
  var valid1 = _errs21 === errors;
@@ -12443,7 +12805,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12443
12805
  }
12444
12806
  }
12445
12807
  else {
12446
- validate82.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12808
+ validate83.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12447
12809
  return false;
12448
12810
  }
12449
12811
  }
@@ -12457,14 +12819,14 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
12457
12819
  }
12458
12820
  }
12459
12821
  else {
12460
- validate82.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12822
+ validate83.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12461
12823
  return false;
12462
12824
  }
12463
- } validate82.errors = vErrors; return errors === 0; }
12464
- validate82.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12465
- export const RecordsRead = validate84;
12466
- const schema129 = { "$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" } } } } };
12467
- function validate84(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 = validate84.evaluated; if (evaluated0.dynamicProps) {
12825
+ } validate83.errors = vErrors; return errors === 0; }
12826
+ validate83.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12827
+ export const RecordsRead = validate85;
12828
+ 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" } } } } };
12829
+ function validate85(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 = validate85.evaluated; if (evaluated0.dynamicProps) {
12468
12830
  evaluated0.props = undefined;
12469
12831
  } if (evaluated0.dynamicItems) {
12470
12832
  evaluated0.items = undefined;
@@ -12472,14 +12834,14 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12472
12834
  if (data && typeof data == "object" && !Array.isArray(data)) {
12473
12835
  let missing0;
12474
12836
  if ((data.descriptor === undefined) && (missing0 = "descriptor")) {
12475
- validate84.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12837
+ validate85.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12476
12838
  return false;
12477
12839
  }
12478
12840
  else {
12479
12841
  const _errs1 = errors;
12480
12842
  for (const key0 in data) {
12481
12843
  if (!((key0 === "authorization") || (key0 === "descriptor"))) {
12482
- validate84.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12844
+ validate85.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12483
12845
  return false;
12484
12846
  break;
12485
12847
  }
@@ -12504,14 +12866,14 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12504
12866
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
12505
12867
  let missing1;
12506
12868
  if (((((data1.interface === undefined) && (missing1 = "interface")) || ((data1.method === undefined) && (missing1 = "method"))) || ((data1.messageTimestamp === undefined) && (missing1 = "messageTimestamp"))) || ((data1.filter === undefined) && (missing1 = "filter"))) {
12507
- validate84.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12869
+ validate85.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12508
12870
  return false;
12509
12871
  }
12510
12872
  else {
12511
12873
  const _errs5 = errors;
12512
12874
  for (const key1 in data1) {
12513
12875
  if (!((((((key1 === "interface") || (key1 === "method")) || (key1 === "messageTimestamp")) || (key1 === "filter")) || (key1 === "permissionGrantId")) || (key1 === "dateSort"))) {
12514
- validate84.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12876
+ validate85.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12515
12877
  return false;
12516
12878
  break;
12517
12879
  }
@@ -12521,11 +12883,11 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12521
12883
  let data2 = data1.interface;
12522
12884
  const _errs6 = errors;
12523
12885
  if (typeof data2 !== "string") {
12524
- validate84.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12886
+ validate85.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12525
12887
  return false;
12526
12888
  }
12527
12889
  if (!(data2 === "Records")) {
12528
- validate84.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" }];
12890
+ validate85.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" }];
12529
12891
  return false;
12530
12892
  }
12531
12893
  var valid1 = _errs6 === errors;
@@ -12538,11 +12900,11 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12538
12900
  let data3 = data1.method;
12539
12901
  const _errs8 = errors;
12540
12902
  if (typeof data3 !== "string") {
12541
- validate84.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12903
+ validate85.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12542
12904
  return false;
12543
12905
  }
12544
12906
  if (!(data3 === "Read")) {
12545
- validate84.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" }];
12907
+ validate85.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" }];
12546
12908
  return false;
12547
12909
  }
12548
12910
  var valid1 = _errs8 === errors;
@@ -12558,12 +12920,12 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12558
12920
  if (errors === _errs11) {
12559
12921
  if (typeof data4 === "string") {
12560
12922
  if (!pattern14.test(data4)) {
12561
- validate84.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$" + "\"" }];
12923
+ validate85.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$" + "\"" }];
12562
12924
  return false;
12563
12925
  }
12564
12926
  }
12565
12927
  else {
12566
- validate84.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12928
+ validate85.errors = [{ instancePath: instancePath + "/descriptor/messageTimestamp", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12567
12929
  return false;
12568
12930
  }
12569
12931
  }
@@ -12588,7 +12950,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12588
12950
  if (data1.permissionGrantId !== undefined) {
12589
12951
  const _errs14 = errors;
12590
12952
  if (typeof data1.permissionGrantId !== "string") {
12591
- validate84.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12953
+ validate85.errors = [{ instancePath: instancePath + "/descriptor/permissionGrantId", schemaPath: "#/properties/descriptor/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12592
12954
  return false;
12593
12955
  }
12594
12956
  var valid1 = _errs14 === errors;
@@ -12601,11 +12963,11 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12601
12963
  let data7 = data1.dateSort;
12602
12964
  const _errs16 = errors;
12603
12965
  if (typeof data7 !== "string") {
12604
- validate84.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12966
+ validate85.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12605
12967
  return false;
12606
12968
  }
12607
12969
  if (!((((((data7 === "createdAscending") || (data7 === "createdDescending")) || (data7 === "publishedAscending")) || (data7 === "publishedDescending")) || (data7 === "updatedAscending")) || (data7 === "updatedDescending"))) {
12608
- validate84.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema129.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
12970
+ validate85.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" }];
12609
12971
  return false;
12610
12972
  }
12611
12973
  var valid1 = _errs16 === errors;
@@ -12622,7 +12984,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12622
12984
  }
12623
12985
  }
12624
12986
  else {
12625
- validate84.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12987
+ validate85.errors = [{ instancePath: instancePath + "/descriptor", schemaPath: "#/properties/descriptor/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12626
12988
  return false;
12627
12989
  }
12628
12990
  }
@@ -12636,16 +12998,16 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12636
12998
  }
12637
12999
  }
12638
13000
  else {
12639
- validate84.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13001
+ validate85.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12640
13002
  return false;
12641
13003
  }
12642
- } validate84.errors = vErrors; return errors === 0; }
12643
- validate84.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13004
+ } validate85.errors = vErrors; return errors === 0; }
13005
+ validate85.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12644
13006
  export const RecordsFilter = validate41;
12645
13007
  export const PublicJwk = validate32;
12646
- export const GenericSignaturePayload = validate87;
12647
- const schema131 = { "$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": { "type": "string" }, "protocolRole": { "$comment": "Used in the Records interface to authorize role-authorized actions for protocol records", "type": "string" } } };
12648
- function validate87(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 = validate87.evaluated; if (evaluated0.dynamicProps) {
13008
+ export const GenericSignaturePayload = validate88;
13009
+ 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": { "type": "string" }, "protocolRole": { "$comment": "Used in the Records interface to authorize role-authorized actions for protocol records", "type": "string" } } };
13010
+ function validate88(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 = validate88.evaluated; if (evaluated0.dynamicProps) {
12649
13011
  evaluated0.props = undefined;
12650
13012
  } if (evaluated0.dynamicItems) {
12651
13013
  evaluated0.items = undefined;
@@ -12653,14 +13015,14 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
12653
13015
  if (data && typeof data == "object" && !Array.isArray(data)) {
12654
13016
  let missing0;
12655
13017
  if ((data.descriptorCid === undefined) && (missing0 = "descriptorCid")) {
12656
- validate87.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
13018
+ validate88.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12657
13019
  return false;
12658
13020
  }
12659
13021
  else {
12660
13022
  const _errs1 = errors;
12661
13023
  for (const key0 in data) {
12662
13024
  if (!((((key0 === "descriptorCid") || (key0 === "delegatedGrantId")) || (key0 === "permissionGrantId")) || (key0 === "protocolRole"))) {
12663
- validate87.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
13025
+ validate88.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12664
13026
  return false;
12665
13027
  break;
12666
13028
  }
@@ -12669,7 +13031,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
12669
13031
  if (data.descriptorCid !== undefined) {
12670
13032
  const _errs2 = errors;
12671
13033
  if (typeof data.descriptorCid !== "string") {
12672
- validate87.errors = [{ instancePath: instancePath + "/descriptorCid", schemaPath: "#/properties/descriptorCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13034
+ validate88.errors = [{ instancePath: instancePath + "/descriptorCid", schemaPath: "#/properties/descriptorCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12673
13035
  return false;
12674
13036
  }
12675
13037
  var valid0 = _errs2 === errors;
@@ -12681,7 +13043,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
12681
13043
  if (data.delegatedGrantId !== undefined) {
12682
13044
  const _errs4 = errors;
12683
13045
  if (typeof data.delegatedGrantId !== "string") {
12684
- validate87.errors = [{ instancePath: instancePath + "/delegatedGrantId", schemaPath: "#/properties/delegatedGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13046
+ validate88.errors = [{ instancePath: instancePath + "/delegatedGrantId", schemaPath: "#/properties/delegatedGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12685
13047
  return false;
12686
13048
  }
12687
13049
  var valid0 = _errs4 === errors;
@@ -12693,7 +13055,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
12693
13055
  if (data.permissionGrantId !== undefined) {
12694
13056
  const _errs6 = errors;
12695
13057
  if (typeof data.permissionGrantId !== "string") {
12696
- validate87.errors = [{ instancePath: instancePath + "/permissionGrantId", schemaPath: "#/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13058
+ validate88.errors = [{ instancePath: instancePath + "/permissionGrantId", schemaPath: "#/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12697
13059
  return false;
12698
13060
  }
12699
13061
  var valid0 = _errs6 === errors;
@@ -12705,7 +13067,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
12705
13067
  if (data.protocolRole !== undefined) {
12706
13068
  const _errs8 = errors;
12707
13069
  if (typeof data.protocolRole !== "string") {
12708
- validate87.errors = [{ instancePath: instancePath + "/protocolRole", schemaPath: "#/properties/protocolRole/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13070
+ validate88.errors = [{ instancePath: instancePath + "/protocolRole", schemaPath: "#/properties/protocolRole/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12709
13071
  return false;
12710
13072
  }
12711
13073
  var valid0 = _errs8 === errors;
@@ -12720,14 +13082,14 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
12720
13082
  }
12721
13083
  }
12722
13084
  else {
12723
- validate87.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13085
+ validate88.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12724
13086
  return false;
12725
13087
  }
12726
- } validate87.errors = vErrors; return errors === 0; }
12727
- validate87.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12728
- export const RecordsWriteSignaturePayload = validate88;
12729
- const schema132 = { "$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" } } };
12730
- function validate88(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 = validate88.evaluated; if (evaluated0.dynamicProps) {
13088
+ } validate88.errors = vErrors; return errors === 0; }
13089
+ validate88.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13090
+ export const RecordsWriteSignaturePayload = validate89;
13091
+ 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" } } };
13092
+ function validate89(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 = validate89.evaluated; if (evaluated0.dynamicProps) {
12731
13093
  evaluated0.props = undefined;
12732
13094
  } if (evaluated0.dynamicItems) {
12733
13095
  evaluated0.items = undefined;
@@ -12735,14 +13097,14 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12735
13097
  if (data && typeof data == "object" && !Array.isArray(data)) {
12736
13098
  let missing0;
12737
13099
  if (((data.descriptorCid === undefined) && (missing0 = "descriptorCid")) || ((data.recordId === undefined) && (missing0 = "recordId"))) {
12738
- validate88.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
13100
+ validate89.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12739
13101
  return false;
12740
13102
  }
12741
13103
  else {
12742
13104
  const _errs1 = errors;
12743
13105
  for (const key0 in data) {
12744
13106
  if (!((((((((key0 === "descriptorCid") || (key0 === "recordId")) || (key0 === "contextId")) || (key0 === "attestationCid")) || (key0 === "encryptionCid")) || (key0 === "delegatedGrantId")) || (key0 === "permissionGrantId")) || (key0 === "protocolRole"))) {
12745
- validate88.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
13107
+ validate89.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12746
13108
  return false;
12747
13109
  break;
12748
13110
  }
@@ -12751,7 +13113,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12751
13113
  if (data.descriptorCid !== undefined) {
12752
13114
  const _errs2 = errors;
12753
13115
  if (typeof data.descriptorCid !== "string") {
12754
- validate88.errors = [{ instancePath: instancePath + "/descriptorCid", schemaPath: "#/properties/descriptorCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13116
+ validate89.errors = [{ instancePath: instancePath + "/descriptorCid", schemaPath: "#/properties/descriptorCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12755
13117
  return false;
12756
13118
  }
12757
13119
  var valid0 = _errs2 === errors;
@@ -12763,7 +13125,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12763
13125
  if (data.recordId !== undefined) {
12764
13126
  const _errs4 = errors;
12765
13127
  if (typeof data.recordId !== "string") {
12766
- validate88.errors = [{ instancePath: instancePath + "/recordId", schemaPath: "#/properties/recordId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13128
+ validate89.errors = [{ instancePath: instancePath + "/recordId", schemaPath: "#/properties/recordId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12767
13129
  return false;
12768
13130
  }
12769
13131
  var valid0 = _errs4 === errors;
@@ -12778,12 +13140,12 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12778
13140
  if (errors === _errs6) {
12779
13141
  if (typeof data2 === "string") {
12780
13142
  if (func1(data2) > 600) {
12781
- validate88.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/maxLength", keyword: "maxLength", params: { limit: 600 }, message: "must NOT have more than 600 characters" }];
13143
+ validate89.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/maxLength", keyword: "maxLength", params: { limit: 600 }, message: "must NOT have more than 600 characters" }];
12782
13144
  return false;
12783
13145
  }
12784
13146
  }
12785
13147
  else {
12786
- validate88.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13148
+ validate89.errors = [{ instancePath: instancePath + "/contextId", schemaPath: "#/properties/contextId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12787
13149
  return false;
12788
13150
  }
12789
13151
  }
@@ -12796,7 +13158,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12796
13158
  if (data.attestationCid !== undefined) {
12797
13159
  const _errs8 = errors;
12798
13160
  if (typeof data.attestationCid !== "string") {
12799
- validate88.errors = [{ instancePath: instancePath + "/attestationCid", schemaPath: "#/properties/attestationCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13161
+ validate89.errors = [{ instancePath: instancePath + "/attestationCid", schemaPath: "#/properties/attestationCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12800
13162
  return false;
12801
13163
  }
12802
13164
  var valid0 = _errs8 === errors;
@@ -12808,7 +13170,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12808
13170
  if (data.encryptionCid !== undefined) {
12809
13171
  const _errs10 = errors;
12810
13172
  if (typeof data.encryptionCid !== "string") {
12811
- validate88.errors = [{ instancePath: instancePath + "/encryptionCid", schemaPath: "#/properties/encryptionCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13173
+ validate89.errors = [{ instancePath: instancePath + "/encryptionCid", schemaPath: "#/properties/encryptionCid/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12812
13174
  return false;
12813
13175
  }
12814
13176
  var valid0 = _errs10 === errors;
@@ -12820,7 +13182,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12820
13182
  if (data.delegatedGrantId !== undefined) {
12821
13183
  const _errs12 = errors;
12822
13184
  if (typeof data.delegatedGrantId !== "string") {
12823
- validate88.errors = [{ instancePath: instancePath + "/delegatedGrantId", schemaPath: "#/properties/delegatedGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13185
+ validate89.errors = [{ instancePath: instancePath + "/delegatedGrantId", schemaPath: "#/properties/delegatedGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12824
13186
  return false;
12825
13187
  }
12826
13188
  var valid0 = _errs12 === errors;
@@ -12832,7 +13194,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12832
13194
  if (data.permissionGrantId !== undefined) {
12833
13195
  const _errs14 = errors;
12834
13196
  if (typeof data.permissionGrantId !== "string") {
12835
- validate88.errors = [{ instancePath: instancePath + "/permissionGrantId", schemaPath: "#/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13197
+ validate89.errors = [{ instancePath: instancePath + "/permissionGrantId", schemaPath: "#/properties/permissionGrantId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12836
13198
  return false;
12837
13199
  }
12838
13200
  var valid0 = _errs14 === errors;
@@ -12844,7 +13206,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12844
13206
  if (data.protocolRole !== undefined) {
12845
13207
  const _errs16 = errors;
12846
13208
  if (typeof data.protocolRole !== "string") {
12847
- validate88.errors = [{ instancePath: instancePath + "/protocolRole", schemaPath: "#/properties/protocolRole/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13209
+ validate89.errors = [{ instancePath: instancePath + "/protocolRole", schemaPath: "#/properties/protocolRole/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12848
13210
  return false;
12849
13211
  }
12850
13212
  var valid0 = _errs16 === errors;
@@ -12863,27 +13225,27 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
12863
13225
  }
12864
13226
  }
12865
13227
  else {
12866
- validate88.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13228
+ validate89.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12867
13229
  return false;
12868
13230
  }
12869
- } validate88.errors = vErrors; return errors === 0; }
12870
- validate88.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12871
- export const StringRangeFilter = validate89;
12872
- function validate89(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/string-range-filter.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate89.evaluated; if (evaluated0.dynamicProps) {
13231
+ } validate89.errors = vErrors; return errors === 0; }
13232
+ validate89.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13233
+ export const StringRangeFilter = validate90;
13234
+ function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { /*# sourceURL="https://identity.foundation/dwn/json-schemas/string-range-filter.json" */ ; let vErrors = null; let errors = 0; const evaluated0 = validate90.evaluated; if (evaluated0.dynamicProps) {
12873
13235
  evaluated0.props = undefined;
12874
13236
  } if (evaluated0.dynamicItems) {
12875
13237
  evaluated0.items = undefined;
12876
13238
  } if (errors === 0) {
12877
13239
  if (data && typeof data == "object" && !Array.isArray(data)) {
12878
13240
  if (Object.keys(data).length < 1) {
12879
- validate89.errors = [{ instancePath, schemaPath: "#/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
13241
+ validate90.errors = [{ instancePath, schemaPath: "#/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" }];
12880
13242
  return false;
12881
13243
  }
12882
13244
  else {
12883
13245
  const _errs1 = errors;
12884
13246
  for (const key0 in data) {
12885
13247
  if (!((((key0 === "gt") || (key0 === "gte")) || (key0 === "lt")) || (key0 === "lte"))) {
12886
- validate89.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
13248
+ validate90.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12887
13249
  return false;
12888
13250
  break;
12889
13251
  }
@@ -12908,7 +13270,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
12908
13270
  }
12909
13271
  var valid1 = _errs4 === errors;
12910
13272
  if (valid1) {
12911
- validate89.errors = [{ instancePath, schemaPath: "#/dependencies/gt/not", keyword: "not", params: {}, message: "must NOT be valid" }];
13273
+ validate90.errors = [{ instancePath, schemaPath: "#/dependencies/gt/not", keyword: "not", params: {}, message: "must NOT be valid" }];
12912
13274
  return false;
12913
13275
  }
12914
13276
  else {
@@ -12947,7 +13309,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
12947
13309
  }
12948
13310
  var valid2 = _errs7 === errors;
12949
13311
  if (valid2) {
12950
- validate89.errors = [{ instancePath, schemaPath: "#/dependencies/gte/not", keyword: "not", params: {}, message: "must NOT be valid" }];
13312
+ validate90.errors = [{ instancePath, schemaPath: "#/dependencies/gte/not", keyword: "not", params: {}, message: "must NOT be valid" }];
12951
13313
  return false;
12952
13314
  }
12953
13315
  else {
@@ -12986,7 +13348,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
12986
13348
  }
12987
13349
  var valid3 = _errs10 === errors;
12988
13350
  if (valid3) {
12989
- validate89.errors = [{ instancePath, schemaPath: "#/dependencies/lt/not", keyword: "not", params: {}, message: "must NOT be valid" }];
13351
+ validate90.errors = [{ instancePath, schemaPath: "#/dependencies/lt/not", keyword: "not", params: {}, message: "must NOT be valid" }];
12990
13352
  return false;
12991
13353
  }
12992
13354
  else {
@@ -13025,7 +13387,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13025
13387
  }
13026
13388
  var valid4 = _errs13 === errors;
13027
13389
  if (valid4) {
13028
- validate89.errors = [{ instancePath, schemaPath: "#/dependencies/lte/not", keyword: "not", params: {}, message: "must NOT be valid" }];
13390
+ validate90.errors = [{ instancePath, schemaPath: "#/dependencies/lte/not", keyword: "not", params: {}, message: "must NOT be valid" }];
13029
13391
  return false;
13030
13392
  }
13031
13393
  else {
@@ -13048,7 +13410,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13048
13410
  if (data.gt !== undefined) {
13049
13411
  const _errs14 = errors;
13050
13412
  if (typeof data.gt !== "string") {
13051
- validate89.errors = [{ instancePath: instancePath + "/gt", schemaPath: "#/properties/gt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13413
+ validate90.errors = [{ instancePath: instancePath + "/gt", schemaPath: "#/properties/gt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13052
13414
  return false;
13053
13415
  }
13054
13416
  var valid5 = _errs14 === errors;
@@ -13060,7 +13422,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13060
13422
  if (data.gte !== undefined) {
13061
13423
  const _errs16 = errors;
13062
13424
  if (typeof data.gte !== "string") {
13063
- validate89.errors = [{ instancePath: instancePath + "/gte", schemaPath: "#/properties/gte/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13425
+ validate90.errors = [{ instancePath: instancePath + "/gte", schemaPath: "#/properties/gte/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13064
13426
  return false;
13065
13427
  }
13066
13428
  var valid5 = _errs16 === errors;
@@ -13072,7 +13434,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13072
13434
  if (data.lt !== undefined) {
13073
13435
  const _errs18 = errors;
13074
13436
  if (typeof data.lt !== "string") {
13075
- validate89.errors = [{ instancePath: instancePath + "/lt", schemaPath: "#/properties/lt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13437
+ validate90.errors = [{ instancePath: instancePath + "/lt", schemaPath: "#/properties/lt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13076
13438
  return false;
13077
13439
  }
13078
13440
  var valid5 = _errs18 === errors;
@@ -13084,7 +13446,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13084
13446
  if (data.lte !== undefined) {
13085
13447
  const _errs20 = errors;
13086
13448
  if (typeof data.lte !== "string") {
13087
- validate89.errors = [{ instancePath: instancePath + "/lte", schemaPath: "#/properties/lte/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13449
+ validate90.errors = [{ instancePath: instancePath + "/lte", schemaPath: "#/properties/lte/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13088
13450
  return false;
13089
13451
  }
13090
13452
  var valid5 = _errs20 === errors;
@@ -13103,9 +13465,9 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
13103
13465
  }
13104
13466
  }
13105
13467
  else {
13106
- validate89.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13468
+ validate90.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13107
13469
  return false;
13108
13470
  }
13109
- } validate89.errors = vErrors; return errors === 0; }
13110
- validate89.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13471
+ } validate90.errors = vErrors; return errors === 0; }
13472
+ validate90.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13111
13473
  //# sourceMappingURL=precompiled-validators.js.map