@enbox/dwn-sdk-js 0.4.3 → 0.4.4

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.
@@ -7962,7 +7962,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
7962
7962
  } validate67.errors = vErrors; return errors === 0; }
7963
7963
  validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7964
7964
  export const PermissionGrantData = validate68;
7965
- const schema94 = { "$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" }, "delegateKeyDelivery": { "type": "object", "additionalProperties": false, "required": ["rootKeyId", "publicKeyJwk"], "properties": { "rootKeyId": { "type": "string" }, "publicKeyJwk": { "type": "object" } } } } };
7965
+ const schema94 = { "$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" }, "delegateKeyDelivery": { "type": "object", "additionalProperties": false, "required": ["rootKeyId", "publicKeyJwk"], "properties": { "rootKeyId": { "type": "string" }, "publicKeyJwk": { "type": "object" } } }, "connectSession": { "type": "object", "additionalProperties": false, "required": ["id", "createdAt", "expiresAt"], "properties": { "id": { "type": "string", "maxLength": 128 }, "appName": { "type": "string", "maxLength": 128 }, "appIcon": { "type": "string", "maxLength": 2048 }, "origin": { "type": "string", "maxLength": 512 }, "userAgent": { "type": "string", "maxLength": 512 }, "platform": { "type": "string", "maxLength": 128 }, "language": { "type": "string", "maxLength": 64 }, "languages": { "type": "array", "maxItems": 16, "items": { "type": "string", "maxLength": 64 } }, "timezone": { "type": "string", "maxLength": 128 }, "transport": { "enum": ["relay", "postMessage"] }, "createdAt": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" }, "expiresAt": { "$ref": "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time" } } } } };
7966
7966
  const schema105 = { "type": "object", "additionalProperties": false, "properties": { "publication": { "enum": ["Required", "Prohibited"], "type": "string" } } };
7967
7967
  const schema97 = { "oneOf": [{ "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/messages-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-configure-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/protocols-query-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-read-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-delete-scope" }, { "$ref": "https://identity.foundation/dwn/json-schemas/permissions/scopes.json#/$defs/records-write-scope" }] };
7968
7968
  const schema99 = { "type": "object", "additionalProperties": false, "required": ["interface", "method"], "properties": { "interface": { "const": "Messages" }, "method": { "const": "Read" }, "protocol": { "type": "string" }, "contextId": { "type": "string", "maxLength": 600 }, "protocolPath": { "type": "string", "maxLength": 600 } }, "allOf": [{ "not": { "required": ["contextId", "protocolPath"] } }, { "if": { "anyOf": [{ "required": ["contextId"] }, { "required": ["protocolPath"] }] }, "then": { "required": ["protocol"] } }] };
@@ -9082,7 +9082,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
9082
9082
  else {
9083
9083
  const _errs1 = errors;
9084
9084
  for (const key0 in data) {
9085
- if (!(((((((key0 === "description") || (key0 === "dateExpires")) || (key0 === "requestId")) || (key0 === "delegated")) || (key0 === "scope")) || (key0 === "conditions")) || (key0 === "delegateKeyDelivery"))) {
9085
+ if (!((((((((key0 === "description") || (key0 === "dateExpires")) || (key0 === "requestId")) || (key0 === "delegated")) || (key0 === "scope")) || (key0 === "conditions")) || (key0 === "delegateKeyDelivery")) || (key0 === "connectSession"))) {
9086
9086
  validate68.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
9087
9087
  return false;
9088
9088
  break;
@@ -9256,6 +9256,321 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
9256
9256
  else {
9257
9257
  var valid0 = true;
9258
9258
  }
9259
+ if (valid0) {
9260
+ if (data.connectSession !== undefined) {
9261
+ let data10 = data.connectSession;
9262
+ const _errs25 = errors;
9263
+ if (errors === _errs25) {
9264
+ if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
9265
+ let missing2;
9266
+ if ((((data10.id === undefined) && (missing2 = "id")) || ((data10.createdAt === undefined) && (missing2 = "createdAt"))) || ((data10.expiresAt === undefined) && (missing2 = "expiresAt"))) {
9267
+ validate68.errors = [{ instancePath: instancePath + "/connectSession", schemaPath: "#/properties/connectSession/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
9268
+ return false;
9269
+ }
9270
+ else {
9271
+ const _errs27 = errors;
9272
+ for (const key3 in data10) {
9273
+ if (!(func2.call(schema94.properties.connectSession.properties, key3))) {
9274
+ validate68.errors = [{ instancePath: instancePath + "/connectSession", schemaPath: "#/properties/connectSession/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
9275
+ return false;
9276
+ break;
9277
+ }
9278
+ }
9279
+ if (_errs27 === errors) {
9280
+ if (data10.id !== undefined) {
9281
+ let data11 = data10.id;
9282
+ const _errs28 = errors;
9283
+ if (errors === _errs28) {
9284
+ if (typeof data11 === "string") {
9285
+ if (func1(data11) > 128) {
9286
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/id", schemaPath: "#/properties/connectSession/properties/id/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
9287
+ return false;
9288
+ }
9289
+ }
9290
+ else {
9291
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/id", schemaPath: "#/properties/connectSession/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9292
+ return false;
9293
+ }
9294
+ }
9295
+ var valid5 = _errs28 === errors;
9296
+ }
9297
+ else {
9298
+ var valid5 = true;
9299
+ }
9300
+ if (valid5) {
9301
+ if (data10.appName !== undefined) {
9302
+ let data12 = data10.appName;
9303
+ const _errs30 = errors;
9304
+ if (errors === _errs30) {
9305
+ if (typeof data12 === "string") {
9306
+ if (func1(data12) > 128) {
9307
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/appName", schemaPath: "#/properties/connectSession/properties/appName/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
9308
+ return false;
9309
+ }
9310
+ }
9311
+ else {
9312
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/appName", schemaPath: "#/properties/connectSession/properties/appName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9313
+ return false;
9314
+ }
9315
+ }
9316
+ var valid5 = _errs30 === errors;
9317
+ }
9318
+ else {
9319
+ var valid5 = true;
9320
+ }
9321
+ if (valid5) {
9322
+ if (data10.appIcon !== undefined) {
9323
+ let data13 = data10.appIcon;
9324
+ const _errs32 = errors;
9325
+ if (errors === _errs32) {
9326
+ if (typeof data13 === "string") {
9327
+ if (func1(data13) > 2048) {
9328
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/appIcon", schemaPath: "#/properties/connectSession/properties/appIcon/maxLength", keyword: "maxLength", params: { limit: 2048 }, message: "must NOT have more than 2048 characters" }];
9329
+ return false;
9330
+ }
9331
+ }
9332
+ else {
9333
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/appIcon", schemaPath: "#/properties/connectSession/properties/appIcon/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9334
+ return false;
9335
+ }
9336
+ }
9337
+ var valid5 = _errs32 === errors;
9338
+ }
9339
+ else {
9340
+ var valid5 = true;
9341
+ }
9342
+ if (valid5) {
9343
+ if (data10.origin !== undefined) {
9344
+ let data14 = data10.origin;
9345
+ const _errs34 = errors;
9346
+ if (errors === _errs34) {
9347
+ if (typeof data14 === "string") {
9348
+ if (func1(data14) > 512) {
9349
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/origin", schemaPath: "#/properties/connectSession/properties/origin/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" }];
9350
+ return false;
9351
+ }
9352
+ }
9353
+ else {
9354
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/origin", schemaPath: "#/properties/connectSession/properties/origin/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9355
+ return false;
9356
+ }
9357
+ }
9358
+ var valid5 = _errs34 === errors;
9359
+ }
9360
+ else {
9361
+ var valid5 = true;
9362
+ }
9363
+ if (valid5) {
9364
+ if (data10.userAgent !== undefined) {
9365
+ let data15 = data10.userAgent;
9366
+ const _errs36 = errors;
9367
+ if (errors === _errs36) {
9368
+ if (typeof data15 === "string") {
9369
+ if (func1(data15) > 512) {
9370
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/userAgent", schemaPath: "#/properties/connectSession/properties/userAgent/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" }];
9371
+ return false;
9372
+ }
9373
+ }
9374
+ else {
9375
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/userAgent", schemaPath: "#/properties/connectSession/properties/userAgent/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9376
+ return false;
9377
+ }
9378
+ }
9379
+ var valid5 = _errs36 === errors;
9380
+ }
9381
+ else {
9382
+ var valid5 = true;
9383
+ }
9384
+ if (valid5) {
9385
+ if (data10.platform !== undefined) {
9386
+ let data16 = data10.platform;
9387
+ const _errs38 = errors;
9388
+ if (errors === _errs38) {
9389
+ if (typeof data16 === "string") {
9390
+ if (func1(data16) > 128) {
9391
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/platform", schemaPath: "#/properties/connectSession/properties/platform/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
9392
+ return false;
9393
+ }
9394
+ }
9395
+ else {
9396
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/platform", schemaPath: "#/properties/connectSession/properties/platform/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9397
+ return false;
9398
+ }
9399
+ }
9400
+ var valid5 = _errs38 === errors;
9401
+ }
9402
+ else {
9403
+ var valid5 = true;
9404
+ }
9405
+ if (valid5) {
9406
+ if (data10.language !== undefined) {
9407
+ let data17 = data10.language;
9408
+ const _errs40 = errors;
9409
+ if (errors === _errs40) {
9410
+ if (typeof data17 === "string") {
9411
+ if (func1(data17) > 64) {
9412
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/language", schemaPath: "#/properties/connectSession/properties/language/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" }];
9413
+ return false;
9414
+ }
9415
+ }
9416
+ else {
9417
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/language", schemaPath: "#/properties/connectSession/properties/language/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9418
+ return false;
9419
+ }
9420
+ }
9421
+ var valid5 = _errs40 === errors;
9422
+ }
9423
+ else {
9424
+ var valid5 = true;
9425
+ }
9426
+ if (valid5) {
9427
+ if (data10.languages !== undefined) {
9428
+ let data18 = data10.languages;
9429
+ const _errs42 = errors;
9430
+ if (errors === _errs42) {
9431
+ if (Array.isArray(data18)) {
9432
+ if (data18.length > 16) {
9433
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/languages", schemaPath: "#/properties/connectSession/properties/languages/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" }];
9434
+ return false;
9435
+ }
9436
+ else {
9437
+ var valid6 = true;
9438
+ const len0 = data18.length;
9439
+ for (let i0 = 0; i0 < len0; i0++) {
9440
+ let data19 = data18[i0];
9441
+ const _errs44 = errors;
9442
+ if (errors === _errs44) {
9443
+ if (typeof data19 === "string") {
9444
+ if (func1(data19) > 64) {
9445
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/languages/" + i0, schemaPath: "#/properties/connectSession/properties/languages/items/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" }];
9446
+ return false;
9447
+ }
9448
+ }
9449
+ else {
9450
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/languages/" + i0, schemaPath: "#/properties/connectSession/properties/languages/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9451
+ return false;
9452
+ }
9453
+ }
9454
+ var valid6 = _errs44 === errors;
9455
+ if (!valid6) {
9456
+ break;
9457
+ }
9458
+ }
9459
+ }
9460
+ }
9461
+ else {
9462
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/languages", schemaPath: "#/properties/connectSession/properties/languages/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
9463
+ return false;
9464
+ }
9465
+ }
9466
+ var valid5 = _errs42 === errors;
9467
+ }
9468
+ else {
9469
+ var valid5 = true;
9470
+ }
9471
+ if (valid5) {
9472
+ if (data10.timezone !== undefined) {
9473
+ let data20 = data10.timezone;
9474
+ const _errs46 = errors;
9475
+ if (errors === _errs46) {
9476
+ if (typeof data20 === "string") {
9477
+ if (func1(data20) > 128) {
9478
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/timezone", schemaPath: "#/properties/connectSession/properties/timezone/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
9479
+ return false;
9480
+ }
9481
+ }
9482
+ else {
9483
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/timezone", schemaPath: "#/properties/connectSession/properties/timezone/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9484
+ return false;
9485
+ }
9486
+ }
9487
+ var valid5 = _errs46 === errors;
9488
+ }
9489
+ else {
9490
+ var valid5 = true;
9491
+ }
9492
+ if (valid5) {
9493
+ if (data10.transport !== undefined) {
9494
+ let data21 = data10.transport;
9495
+ const _errs48 = errors;
9496
+ if (!((data21 === "relay") || (data21 === "postMessage"))) {
9497
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/transport", schemaPath: "#/properties/connectSession/properties/transport/enum", keyword: "enum", params: { allowedValues: schema94.properties.connectSession.properties.transport.enum }, message: "must be equal to one of the allowed values" }];
9498
+ return false;
9499
+ }
9500
+ var valid5 = _errs48 === errors;
9501
+ }
9502
+ else {
9503
+ var valid5 = true;
9504
+ }
9505
+ if (valid5) {
9506
+ if (data10.createdAt !== undefined) {
9507
+ let data22 = data10.createdAt;
9508
+ const _errs49 = errors;
9509
+ const _errs50 = errors;
9510
+ if (errors === _errs50) {
9511
+ if (typeof data22 === "string") {
9512
+ if (!pattern14.test(data22)) {
9513
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/createdAt", 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$" + "\"" }];
9514
+ return false;
9515
+ }
9516
+ }
9517
+ else {
9518
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/createdAt", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9519
+ return false;
9520
+ }
9521
+ }
9522
+ var valid5 = _errs49 === errors;
9523
+ }
9524
+ else {
9525
+ var valid5 = true;
9526
+ }
9527
+ if (valid5) {
9528
+ if (data10.expiresAt !== undefined) {
9529
+ let data23 = data10.expiresAt;
9530
+ const _errs52 = errors;
9531
+ const _errs53 = errors;
9532
+ if (errors === _errs53) {
9533
+ if (typeof data23 === "string") {
9534
+ if (!pattern14.test(data23)) {
9535
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/expiresAt", 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$" + "\"" }];
9536
+ return false;
9537
+ }
9538
+ }
9539
+ else {
9540
+ validate68.errors = [{ instancePath: instancePath + "/connectSession/expiresAt", schemaPath: "https://identity.foundation/dwn/json-schemas/defs.json#/$defs/date-time/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9541
+ return false;
9542
+ }
9543
+ }
9544
+ var valid5 = _errs52 === errors;
9545
+ }
9546
+ else {
9547
+ var valid5 = true;
9548
+ }
9549
+ }
9550
+ }
9551
+ }
9552
+ }
9553
+ }
9554
+ }
9555
+ }
9556
+ }
9557
+ }
9558
+ }
9559
+ }
9560
+ }
9561
+ }
9562
+ }
9563
+ else {
9564
+ validate68.errors = [{ instancePath: instancePath + "/connectSession", schemaPath: "#/properties/connectSession/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
9565
+ return false;
9566
+ }
9567
+ }
9568
+ var valid0 = _errs25 === errors;
9569
+ }
9570
+ else {
9571
+ var valid0 = true;
9572
+ }
9573
+ }
9259
9574
  }
9260
9575
  }
9261
9576
  }
@@ -9272,7 +9587,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
9272
9587
  } validate68.errors = vErrors; return errors === 0; }
9273
9588
  validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
9274
9589
  export const PermissionRequestData = validate73;
9275
- const schema106 = { "$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" } } };
9590
+ const schema108 = { "$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" } } };
9276
9591
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate74.evaluated; if (evaluated0.dynamicProps) {
9277
9592
  evaluated0.props = undefined;
9278
9593
  } if (evaluated0.dynamicItems) {
@@ -10478,7 +10793,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
10478
10793
  } validate73.errors = vErrors; return errors === 0; }
10479
10794
  validate73.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10480
10795
  export const PermissionRevocationData = validate76;
10481
- const schema115 = { "$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" } } };
10796
+ const schema117 = { "$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" } } };
10482
10797
  function validate76(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 = validate76.evaluated; if (evaluated0.dynamicProps) {
10483
10798
  evaluated0.props = undefined;
10484
10799
  } if (evaluated0.dynamicItems) {
@@ -10531,15 +10846,15 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
10531
10846
  } validate71.errors = vErrors; return errors === 0; }
10532
10847
  validate71.evaluated = { "dynamicProps": false, "dynamicItems": false };
10533
10848
  export const ProtocolDefinition = validate77;
10534
- const schema116 = { "$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" } } } } };
10535
- const pattern38 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");
10536
- const pattern40 = new RegExp(".*", "u");
10537
- const schema117 = { "$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" } } };
10538
- const pattern42 = new RegExp("^[^$].*$", "u");
10539
- const pattern43 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*:.+$", "u");
10540
- const pattern44 = new RegExp("^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$", "u");
10541
- const pattern45 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$", "u");
10542
- const pattern46 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$", "u");
10849
+ const schema118 = { "$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" } } } } };
10850
+ const pattern40 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");
10851
+ const pattern42 = new RegExp(".*", "u");
10852
+ const schema119 = { "$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" } } };
10853
+ const pattern44 = new RegExp("^[^$].*$", "u");
10854
+ const pattern45 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*:.+$", "u");
10855
+ const pattern46 = new RegExp("^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$", "u");
10856
+ const pattern47 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength|minItems|maxItems|uniqueItems|minContains|maxContains)$", "u");
10857
+ const pattern48 = new RegExp("^(enum|minimum|maximum|exclusiveMinimum|exclusiveMaximum|minLength|maxLength)$", "u");
10543
10858
  const wrapper2 = { validate: validate78 };
10544
10859
  function validate78(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 = validate78.evaluated; if (evaluated0.dynamicProps) {
10545
10860
  evaluated0.props = undefined;
@@ -10549,7 +10864,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
10549
10864
  if (data && typeof data == "object" && !Array.isArray(data)) {
10550
10865
  const _errs1 = errors;
10551
10866
  for (const key0 in data) {
10552
- if (!((func2.call(schema117.properties, key0)) || (pattern42.test(key0)))) {
10867
+ if (!((func2.call(schema119.properties, key0)) || (pattern44.test(key0)))) {
10553
10868
  validate78.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
10554
10869
  return false;
10555
10870
  break;
@@ -10679,7 +10994,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
10679
10994
  errors++;
10680
10995
  }
10681
10996
  if (!(((data5 === "anyone") || (data5 === "author")) || (data5 === "recipient"))) {
10682
- const err3 = { instancePath: instancePath + "/$actions/" + i0 + "/who", schemaPath: "#/properties/%24actions/items/oneOf/0/properties/who/enum", keyword: "enum", params: { allowedValues: schema117.properties.$actions.items.oneOf[0].properties.who.enum }, message: "must be equal to one of the allowed values" };
10997
+ const err3 = { instancePath: instancePath + "/$actions/" + i0 + "/who", schemaPath: "#/properties/%24actions/items/oneOf/0/properties/who/enum", keyword: "enum", params: { allowedValues: schema119.properties.$actions.items.oneOf[0].properties.who.enum }, message: "must be equal to one of the allowed values" };
10683
10998
  if (vErrors === null) {
10684
10999
  vErrors = [err3];
10685
11000
  }
@@ -10744,7 +11059,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
10744
11059
  errors++;
10745
11060
  }
10746
11061
  if (!(((((((((data8 === "co-delete") || (data8 === "co-prune")) || (data8 === "co-update")) || (data8 === "create")) || (data8 === "delete")) || (data8 === "prune")) || (data8 === "read")) || (data8 === "squash")) || (data8 === "update"))) {
10747
- const err7 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i1, schemaPath: "#/properties/%24actions/items/oneOf/0/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema117.properties.$actions.items.oneOf[0].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11062
+ const err7 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i1, schemaPath: "#/properties/%24actions/items/oneOf/0/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema119.properties.$actions.items.oneOf[0].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
10748
11063
  if (vErrors === null) {
10749
11064
  vErrors = [err7];
10750
11065
  }
@@ -10866,7 +11181,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
10866
11181
  errors++;
10867
11182
  }
10868
11183
  if (!(((((((((data11 === "co-delete") || (data11 === "co-prune")) || (data11 === "co-update")) || (data11 === "create")) || (data11 === "delete")) || (data11 === "prune")) || (data11 === "read")) || (data11 === "squash")) || (data11 === "update"))) {
10869
- const err14 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i2, schemaPath: "#/properties/%24actions/items/oneOf/1/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema117.properties.$actions.items.oneOf[1].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
11184
+ const err14 = { instancePath: instancePath + "/$actions/" + i0 + "/can/" + i2, schemaPath: "#/properties/%24actions/items/oneOf/1/properties/can/items/enum", keyword: "enum", params: { allowedValues: schema119.properties.$actions.items.oneOf[1].properties.can.items.enum }, message: "must be equal to one of the allowed values" };
10870
11185
  if (vErrors === null) {
10871
11186
  vErrors = [err14];
10872
11187
  }
@@ -10974,7 +11289,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
10974
11289
  const _errs35 = errors;
10975
11290
  if (errors === _errs35) {
10976
11291
  if (typeof data13 === "string") {
10977
- if (!pattern43.test(data13)) {
11292
+ if (!pattern45.test(data13)) {
10978
11293
  validate78.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_-]*:.+$" + "\"" }];
10979
11294
  return false;
10980
11295
  }
@@ -11108,7 +11423,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11108
11423
  return false;
11109
11424
  }
11110
11425
  if (!((data19 === "reject") || (data19 === "purgeOldest"))) {
11111
- validate78.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/enum", keyword: "enum", params: { allowedValues: schema117.properties.$recordLimit.properties.strategy.enum }, message: "must be equal to one of the allowed values" }];
11426
+ validate78.errors = [{ instancePath: instancePath + "/$recordLimit/strategy", schemaPath: "#/properties/%24recordLimit/properties/strategy/enum", keyword: "enum", params: { allowedValues: schema119.properties.$recordLimit.properties.strategy.enum }, message: "must be equal to one of the allowed values" }];
11112
11427
  return false;
11113
11428
  }
11114
11429
  var valid9 = _errs50 === errors;
@@ -11151,7 +11466,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11151
11466
  return false;
11152
11467
  }
11153
11468
  if (!((data21 === "direct") || (data21 === "subscribe"))) {
11154
- validate78.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/enum", keyword: "enum", params: { allowedValues: schema117.properties.$delivery.enum }, message: "must be equal to one of the allowed values" }];
11469
+ validate78.errors = [{ instancePath: instancePath + "/$delivery", schemaPath: "#/properties/%24delivery/enum", keyword: "enum", params: { allowedValues: schema119.properties.$delivery.enum }, message: "must be equal to one of the allowed values" }];
11155
11470
  return false;
11156
11471
  }
11157
11472
  var valid0 = _errs55 === errors;
@@ -11168,7 +11483,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11168
11483
  return false;
11169
11484
  }
11170
11485
  if (!(data22 === true)) {
11171
- validate78.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/enum", keyword: "enum", params: { allowedValues: schema117.properties.$squash.enum }, message: "must be equal to one of the allowed values" }];
11486
+ validate78.errors = [{ instancePath: instancePath + "/$squash", schemaPath: "#/properties/%24squash/enum", keyword: "enum", params: { allowedValues: schema119.properties.$squash.enum }, message: "must be equal to one of the allowed values" }];
11172
11487
  return false;
11173
11488
  }
11174
11489
  var valid0 = _errs58 === errors;
@@ -11233,14 +11548,14 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11233
11548
  props2.$requiredTags = true;
11234
11549
  props2.$allowUndefinedTags = true;
11235
11550
  for (const key6 in data23) {
11236
- if (pattern44.test(key6)) {
11551
+ if (pattern46.test(key6)) {
11237
11552
  let data27 = data23[key6];
11238
11553
  const _errs69 = errors;
11239
11554
  if (errors === _errs69) {
11240
11555
  if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
11241
11556
  const _errs71 = errors;
11242
11557
  for (const key7 in data27) {
11243
- if (!((((key7 === "type") || (key7 === "items")) || (key7 === "contains")) || (pattern45.test(key7)))) {
11558
+ if (!((((key7 === "type") || (key7 === "items")) || (key7 === "contains")) || (pattern47.test(key7)))) {
11244
11559
  validate78.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" }];
11245
11560
  return false;
11246
11561
  break;
@@ -11251,7 +11566,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11251
11566
  let data28 = data27.type;
11252
11567
  const _errs72 = errors;
11253
11568
  if (!(((((data28 === "string") || (data28 === "number")) || (data28 === "integer")) || (data28 === "boolean")) || (data28 === "array"))) {
11254
- validate78.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: schema117.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.type.enum }, message: "must be equal to one of the allowed values" }];
11569
+ validate78.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: schema119.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.type.enum }, message: "must be equal to one of the allowed values" }];
11255
11570
  return false;
11256
11571
  }
11257
11572
  var valid13 = _errs72 === errors;
@@ -11269,7 +11584,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11269
11584
  let data30 = data29.type;
11270
11585
  const _errs75 = errors;
11271
11586
  if (!(((data30 === "string") || (data30 === "number")) || (data30 === "integer"))) {
11272
- validate78.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: schema117.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
11587
+ validate78.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: schema119.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.items.properties.type.enum }, message: "must be equal to one of the allowed values" }];
11273
11588
  return false;
11274
11589
  }
11275
11590
  var valid14 = _errs75 === errors;
@@ -11281,7 +11596,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11281
11596
  var props3 = {};
11282
11597
  props3.type = true;
11283
11598
  for (const key8 in data29) {
11284
- if (pattern46.test(key8)) {
11599
+ if (pattern48.test(key8)) {
11285
11600
  props3[key8] = true;
11286
11601
  }
11287
11602
  }
@@ -11307,7 +11622,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11307
11622
  let data32 = data31.type;
11308
11623
  const _errs78 = errors;
11309
11624
  if (!(((data32 === "string") || (data32 === "number")) || (data32 === "integer"))) {
11310
- validate78.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: schema117.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.contains.properties.type.enum }, message: "must be equal to one of the allowed values" }];
11625
+ validate78.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: schema119.properties.$tags.patternProperties["^(?!\\$requiredTags$|\\$allowUndefinedTags$).*$"].properties.contains.properties.type.enum }, message: "must be equal to one of the allowed values" }];
11311
11626
  return false;
11312
11627
  }
11313
11628
  var valid16 = _errs78 === errors;
@@ -11319,7 +11634,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11319
11634
  var props4 = {};
11320
11635
  props4.type = true;
11321
11636
  for (const key9 in data31) {
11322
- if (pattern46.test(key9)) {
11637
+ if (pattern48.test(key9)) {
11323
11638
  props4[key9] = true;
11324
11639
  }
11325
11640
  }
@@ -11364,7 +11679,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
11364
11679
  if (valid0) {
11365
11680
  var valid18 = true;
11366
11681
  for (const key10 in data) {
11367
- if (pattern42.test(key10)) {
11682
+ if (pattern44.test(key10)) {
11368
11683
  const _errs79 = errors;
11369
11684
  if (!(wrapper2.validate(data[key10], { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key10, rootData, dynamicAnchors }))) {
11370
11685
  vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
@@ -11451,7 +11766,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11451
11766
  else {
11452
11767
  const _errs9 = errors;
11453
11768
  for (const key1 in data2) {
11454
- if (!(pattern38.test(key1))) {
11769
+ if (!(pattern40.test(key1))) {
11455
11770
  validate77.errors = [{ instancePath: instancePath + "/uses", schemaPath: "#/properties/uses/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11456
11771
  return false;
11457
11772
  break;
@@ -11460,7 +11775,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11460
11775
  if (_errs9 === errors) {
11461
11776
  var valid1 = true;
11462
11777
  for (const key2 in data2) {
11463
- if (pattern38.test(key2)) {
11778
+ if (pattern40.test(key2)) {
11464
11779
  const _errs10 = errors;
11465
11780
  if (typeof data2[key2] !== "string") {
11466
11781
  validate77.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" }];
@@ -11493,7 +11808,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11493
11808
  if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
11494
11809
  var props0 = {};
11495
11810
  for (const key3 in data4) {
11496
- if (pattern40.test(key3)) {
11811
+ if (pattern42.test(key3)) {
11497
11812
  let data5 = data4[key3];
11498
11813
  const _errs14 = errors;
11499
11814
  if (errors === _errs14) {
@@ -11597,7 +11912,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11597
11912
  if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
11598
11913
  var props1 = {};
11599
11914
  for (const key5 in data10) {
11600
- if (pattern40.test(key5)) {
11915
+ if (pattern42.test(key5)) {
11601
11916
  if (!(validate78(data10[key5], { instancePath: instancePath + "/structure/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data10, parentDataProperty: key5, rootData, dynamicAnchors }))) {
11602
11917
  vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
11603
11918
  errors = vErrors.length;
@@ -11631,7 +11946,7 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
11631
11946
  validate77.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11632
11947
  export const ProtocolRuleSet = validate78;
11633
11948
  export const ProtocolsConfigure = validate81;
11634
- const schema118 = { "$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" } } } } };
11949
+ const schema120 = { "$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" } } } } };
11635
11950
  function validate81(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 = validate81.evaluated; if (evaluated0.dynamicProps) {
11636
11951
  evaluated0.props = undefined;
11637
11952
  } if (evaluated0.dynamicItems) {
@@ -11693,7 +12008,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
11693
12008
  return false;
11694
12009
  }
11695
12010
  if (!(data2 === "Protocols")) {
11696
- validate81.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema118.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12011
+ validate81.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema120.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
11697
12012
  return false;
11698
12013
  }
11699
12014
  var valid1 = _errs6 === errors;
@@ -11710,7 +12025,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
11710
12025
  return false;
11711
12026
  }
11712
12027
  if (!(data3 === "Configure")) {
11713
- validate81.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema118.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12028
+ validate81.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema120.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
11714
12029
  return false;
11715
12030
  }
11716
12031
  var valid1 = _errs8 === errors;
@@ -11792,7 +12107,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
11792
12107
  } validate81.errors = vErrors; return errors === 0; }
11793
12108
  validate81.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11794
12109
  export const ProtocolsQuery = validate84;
11795
- const schema120 = { "$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" } } } } };
12110
+ const schema122 = { "$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" } } } } };
11796
12111
  function validate84(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 = validate84.evaluated; if (evaluated0.dynamicProps) {
11797
12112
  evaluated0.props = undefined;
11798
12113
  } if (evaluated0.dynamicItems) {
@@ -11854,7 +12169,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
11854
12169
  return false;
11855
12170
  }
11856
12171
  if (!(data2 === "Protocols")) {
11857
- validate84.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema120.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12172
+ validate84.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema122.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
11858
12173
  return false;
11859
12174
  }
11860
12175
  var valid1 = _errs6 === errors;
@@ -11871,7 +12186,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
11871
12186
  return false;
11872
12187
  }
11873
12188
  if (!(data3 === "Query")) {
11874
- validate84.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema120.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12189
+ validate84.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema122.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
11875
12190
  return false;
11876
12191
  }
11877
12192
  var valid1 = _errs8 === errors;
@@ -12008,7 +12323,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
12008
12323
  } validate84.errors = vErrors; return errors === 0; }
12009
12324
  validate84.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12010
12325
  export const RecordsRead = validate86;
12011
- const schema123 = { "$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" } } } } };
12326
+ const schema125 = { "$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" } } } } };
12012
12327
  function validate86(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 = validate86.evaluated; if (evaluated0.dynamicProps) {
12013
12328
  evaluated0.props = undefined;
12014
12329
  } if (evaluated0.dynamicItems) {
@@ -12070,7 +12385,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
12070
12385
  return false;
12071
12386
  }
12072
12387
  if (!(data2 === "Records")) {
12073
- validate86.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema123.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12388
+ validate86.errors = [{ instancePath: instancePath + "/descriptor/interface", schemaPath: "#/properties/descriptor/properties/interface/enum", keyword: "enum", params: { allowedValues: schema125.properties.descriptor.properties.interface.enum }, message: "must be equal to one of the allowed values" }];
12074
12389
  return false;
12075
12390
  }
12076
12391
  var valid1 = _errs6 === errors;
@@ -12087,7 +12402,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
12087
12402
  return false;
12088
12403
  }
12089
12404
  if (!(data3 === "Read")) {
12090
- validate86.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema123.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12405
+ validate86.errors = [{ instancePath: instancePath + "/descriptor/method", schemaPath: "#/properties/descriptor/properties/method/enum", keyword: "enum", params: { allowedValues: schema125.properties.descriptor.properties.method.enum }, message: "must be equal to one of the allowed values" }];
12091
12406
  return false;
12092
12407
  }
12093
12408
  var valid1 = _errs8 === errors;
@@ -12150,7 +12465,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
12150
12465
  return false;
12151
12466
  }
12152
12467
  if (!((((((data7 === "createdAscending") || (data7 === "createdDescending")) || (data7 === "publishedAscending")) || (data7 === "publishedDescending")) || (data7 === "updatedAscending")) || (data7 === "updatedDescending"))) {
12153
- validate86.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema123.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
12468
+ validate86.errors = [{ instancePath: instancePath + "/descriptor/dateSort", schemaPath: "#/properties/descriptor/properties/dateSort/enum", keyword: "enum", params: { allowedValues: schema125.properties.descriptor.properties.dateSort.enum }, message: "must be equal to one of the allowed values" }];
12154
12469
  return false;
12155
12470
  }
12156
12471
  var valid1 = _errs16 === errors;
@@ -12189,7 +12504,7 @@ validate86.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": f
12189
12504
  export const RecordsFilter = validate41;
12190
12505
  export const PublicJwk = validate32;
12191
12506
  export const GenericSignaturePayload = validate89;
12192
- const schema125 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json", "type": "object", "additionalProperties": false, "required": ["descriptorCid"], "properties": { "descriptorCid": { "type": "string" }, "delegatedGrantId": { "type": "string" }, "permissionGrantId": { "$comment": "Direct Records and Protocols operations invoke a single grant with permissionGrantId. Message.createSignature rejects payloads that also include permissionGrantIds.", "type": "string" }, "permissionGrantIds": { "$comment": "Messages operations invoke grants with permissionGrantIds, including the single-grant case. Message.createSignature rejects payloads that also include permissionGrantId.", "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "protocolRole": { "$comment": "Used in the Records interface to authorize role-authorized actions for protocol records", "type": "string" } } };
12507
+ const schema127 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://identity.foundation/dwn/json-schemas/signature-payloads/generic-signature-payload.json", "type": "object", "additionalProperties": false, "required": ["descriptorCid"], "properties": { "descriptorCid": { "type": "string" }, "delegatedGrantId": { "type": "string" }, "permissionGrantId": { "$comment": "Direct Records and Protocols operations invoke a single grant with permissionGrantId. Message.createSignature rejects payloads that also include permissionGrantIds.", "type": "string" }, "permissionGrantIds": { "$comment": "Messages operations invoke grants with permissionGrantIds, including the single-grant case. Message.createSignature rejects payloads that also include permissionGrantId.", "type": "array", "items": { "type": "string" }, "minItems": 1, "uniqueItems": true }, "protocolRole": { "$comment": "Used in the Records interface to authorize role-authorized actions for protocol records", "type": "string" } } };
12193
12508
  function validate89(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 = validate89.evaluated; if (evaluated0.dynamicProps) {
12194
12509
  evaluated0.props = undefined;
12195
12510
  } if (evaluated0.dynamicItems) {
@@ -12328,7 +12643,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
12328
12643
  } validate89.errors = vErrors; return errors === 0; }
12329
12644
  validate89.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12330
12645
  export const RecordsWriteSignaturePayload = validate90;
12331
- const schema126 = { "$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" } } };
12646
+ const schema128 = { "$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" } } };
12332
12647
  function validate90(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 = validate90.evaluated; if (evaluated0.dynamicProps) {
12333
12648
  evaluated0.props = undefined;
12334
12649
  } if (evaluated0.dynamicItems) {