@mapletip/data 0.1.0

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 (88) hide show
  1. package/NOTICE +52 -0
  2. package/README.md +209 -0
  3. package/client/contract-compatibility.d.mts +27 -0
  4. package/client/contract-compatibility.mjs +159 -0
  5. package/client/core.d.ts +150 -0
  6. package/client/core.js +359 -0
  7. package/client/equipment.d.ts +22 -0
  8. package/client/equipment.js +63 -0
  9. package/client/items.d.ts +22 -0
  10. package/client/items.js +63 -0
  11. package/client/media.d.ts +19 -0
  12. package/client/media.js +47 -0
  13. package/client/monster-client.d.ts +35 -0
  14. package/client/monster-client.js +155 -0
  15. package/client/monsters.d.ts +24 -0
  16. package/client/monsters.js +14 -0
  17. package/client/quests.d.ts +31 -0
  18. package/client/quests.js +124 -0
  19. package/client/release.d.ts +63 -0
  20. package/client/release.js +279 -0
  21. package/client/static-client.d.ts +40 -0
  22. package/client/static-client.js +44 -0
  23. package/client/static-domains.d.ts +48 -0
  24. package/client/static-domains.js +113 -0
  25. package/generated/contract-2-catalog-fact.d.ts +51 -0
  26. package/generated/equipment-catalog-2.d.ts +434 -0
  27. package/generated/equipment-catalog-2.validator.js +17 -0
  28. package/generated/equipment-detail-2.d.ts +350 -0
  29. package/generated/equipment-detail-2.validator.js +17 -0
  30. package/generated/equipment-evidence-pack-2.d.ts +243 -0
  31. package/generated/equipment-evidence-pack-2.validator.js +17 -0
  32. package/generated/equipment-pack-2.validator.js +17 -0
  33. package/generated/equipment-relationship-pack-2.d.ts +170 -0
  34. package/generated/equipment-relationship-pack-2.validator.js +17 -0
  35. package/generated/item-catalog-2.d.ts +366 -0
  36. package/generated/item-catalog-2.validator.js +17 -0
  37. package/generated/item-detail-2.d.ts +540 -0
  38. package/generated/item-detail-2.validator.js +17 -0
  39. package/generated/item-evidence-pack-2.d.ts +243 -0
  40. package/generated/item-evidence-pack-2.validator.js +17 -0
  41. package/generated/item-pack-2.validator.js +17 -0
  42. package/generated/item-relationship-pack-2.d.ts +170 -0
  43. package/generated/item-relationship-pack-2.validator.js +17 -0
  44. package/generated/media-catalog-2.d.ts +133 -0
  45. package/generated/media-catalog-2.validator.js +17 -0
  46. package/generated/media-detail-2.d.ts +125 -0
  47. package/generated/media-detail-2.validator.js +17 -0
  48. package/generated/media-pack-2.validator.js +17 -0
  49. package/generated/monster-catalog-2.d.ts +230 -0
  50. package/generated/monster-catalog-2.validator.js +17 -0
  51. package/generated/monster-catalog.d.ts +224 -0
  52. package/generated/monster-catalog.validator.js +1 -0
  53. package/generated/monster-core-relationship-pack-2.d.ts +208 -0
  54. package/generated/monster-core-relationship-pack-2.validator.js +17 -0
  55. package/generated/monster-detail-2.d.ts +372 -0
  56. package/generated/monster-detail-2.validator.js +17 -0
  57. package/generated/monster-detail.d.ts +799 -0
  58. package/generated/monster-detail.validator.js +17 -0
  59. package/generated/monster-evidence-pack-2.d.ts +378 -0
  60. package/generated/monster-evidence-pack-2.validator.js +17 -0
  61. package/generated/monster-evidence-pack.d.ts +269 -0
  62. package/generated/monster-evidence-pack.validator.js +17 -0
  63. package/generated/monster-location-pack-2.validator.js +1 -0
  64. package/generated/monster-pack-2.validator.js +17 -0
  65. package/generated/monster-pack.validator.js +17 -0
  66. package/generated/monster-relationship-pack.d.ts +126 -0
  67. package/generated/monster-relationship-pack.validator.js +1 -0
  68. package/generated/product-manifest.d.ts +188 -0
  69. package/generated/product-manifest.validator.js +1 -0
  70. package/generated/quest-auxiliary-pack-2.d.ts +391 -0
  71. package/generated/quest-auxiliary-pack-2.validator.js +17 -0
  72. package/generated/quest-browse-pack-2.d.ts +353 -0
  73. package/generated/quest-browse-pack-2.validator.js +17 -0
  74. package/generated/quest-catalog-2.d.ts +501 -0
  75. package/generated/quest-catalog-2.validator.js +17 -0
  76. package/generated/quest-evidence-pack-2.d.ts +269 -0
  77. package/generated/quest-evidence-pack-2.validator.js +17 -0
  78. package/generated/quest-pack-2.d.ts +410 -0
  79. package/generated/quest-pack-2.validator.js +17 -0
  80. package/generated/quest-relationship-pack-2.d.ts +868 -0
  81. package/generated/quest-relationship-pack-2.validator.js +17 -0
  82. package/generated/release-build-index.d.ts +42 -0
  83. package/generated/release-build-index.validator.js +1 -0
  84. package/generated/release-manifest.d.ts +24 -0
  85. package/generated/release-manifest.validator.js +1 -0
  86. package/generated/release-pin.d.ts +12 -0
  87. package/generated/release-pin.validator.js +1 -0
  88. package/package.json +155 -0
@@ -0,0 +1,42 @@
1
+ /* Generated automatically from Rust-owned wire definitions. Do not edit. */
2
+
3
+ export type ReleaseClass = "local-diagnostic" | "production";
4
+ export type ReleaseCoverage = "partial" | "complete";
5
+ export type ReleaseBuildIndexFormat = "mapletip.release-build-index";
6
+
7
+ export interface ReleaseBuildIndex {
8
+ builds: ReleaseBuild[];
9
+ contractVersion: string;
10
+ format: ReleaseBuildIndexFormat;
11
+ releaseId: string;
12
+ [k: string]: unknown | undefined;
13
+ }
14
+ export interface ReleaseBuild {
15
+ buildId: string;
16
+ familyId: string;
17
+ productCapabilities?: string[];
18
+ products: ReleaseProductDescriptor[];
19
+ [k: string]: unknown | undefined;
20
+ }
21
+ export interface ReleaseProductDescriptor {
22
+ buildId: string;
23
+ catalog: ReleaseFileDescriptor;
24
+ catalogAlias: ReleaseFileDescriptor;
25
+ completionClass: ReleaseClass;
26
+ contractVersion: string;
27
+ coverage: ReleaseCoverage;
28
+ familyId: string;
29
+ productAlias: ReleaseFileDescriptor;
30
+ productDigest: string;
31
+ productId: string;
32
+ productManifest: ReleaseFileDescriptor;
33
+ requiredClientCapabilities: string[];
34
+ schemaSha256: string;
35
+ [k: string]: unknown | undefined;
36
+ }
37
+ export interface ReleaseFileDescriptor {
38
+ byteLength: number;
39
+ path: string;
40
+ sha256: string;
41
+ [k: string]: unknown | undefined;
42
+ }
@@ -0,0 +1 @@
1
+ "use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"ReleaseBuildIndex","type":"object","properties":{"builds":{"type":"array","items":{"$ref":"#/$defs/ReleaseBuild"}},"contractVersion":{"type":"string","pattern":"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},"format":{"$ref":"#/$defs/ReleaseBuildIndexFormat"},"releaseId":{"type":"string","pattern":"^release-[0-9a-f]{64}$"}},"required":["format","contractVersion","releaseId","builds"],"$defs":{"ReleaseBuild":{"type":"object","properties":{"buildId":{"type":"string"},"familyId":{"type":"string"},"productCapabilities":{"type":"array","items":{"type":"string"}},"products":{"type":"array","items":{"$ref":"#/$defs/ReleaseProductDescriptor"}}},"required":["familyId","buildId","products"]},"ReleaseBuildIndexFormat":{"type":"string","enum":["mapletip.release-build-index"]},"ReleaseClass":{"type":"string","enum":["local-diagnostic","production"]},"ReleaseCoverage":{"type":"string","enum":["partial","complete"]},"ReleaseFileDescriptor":{"type":"object","properties":{"byteLength":{"type":"integer","format":"uint64","maximum":9007199254740991,"minimum":0},"path":{"type":"string","pattern":"^(?!/)[A-Za-z0-9._/-]+$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["path","sha256","byteLength"]},"ReleaseProductDescriptor":{"type":"object","properties":{"buildId":{"type":"string"},"catalog":{"$ref":"#/$defs/ReleaseFileDescriptor"},"catalogAlias":{"$ref":"#/$defs/ReleaseFileDescriptor"},"completionClass":{"$ref":"#/$defs/ReleaseClass"},"contractVersion":{"type":"string","pattern":"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},"coverage":{"$ref":"#/$defs/ReleaseCoverage"},"familyId":{"type":"string"},"productAlias":{"$ref":"#/$defs/ReleaseFileDescriptor"},"productDigest":{"type":"string","pattern":"^[0-9a-f]{64}$"},"productId":{"type":"string","pattern":"^(monsters|items|equipment|quests|media|maps|npcs|reactors|skills|jobs|recipes|cash-shop|avatars)-[0-9a-f]{64}$"},"productManifest":{"$ref":"#/$defs/ReleaseFileDescriptor"},"requiredClientCapabilities":{"type":"array","items":{"type":"string"}},"schemaSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["productId","familyId","buildId","productDigest","contractVersion","schemaSha256","coverage","completionClass","requiredClientCapabilities","productManifest","productAlias","catalog","catalogAlias"]}}};const schema40 = {"type":"string","enum":["mapletip.release-build-index"]};const schema32 = {"type":"object","properties":{"buildId":{"type":"string"},"familyId":{"type":"string"},"productCapabilities":{"type":"array","items":{"type":"string"}},"products":{"type":"array","items":{"$ref":"#/$defs/ReleaseProductDescriptor"}}},"required":["familyId","buildId","products"]};const schema33 = {"type":"object","properties":{"buildId":{"type":"string"},"catalog":{"$ref":"#/$defs/ReleaseFileDescriptor"},"catalogAlias":{"$ref":"#/$defs/ReleaseFileDescriptor"},"completionClass":{"$ref":"#/$defs/ReleaseClass"},"contractVersion":{"type":"string","pattern":"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},"coverage":{"$ref":"#/$defs/ReleaseCoverage"},"familyId":{"type":"string"},"productAlias":{"$ref":"#/$defs/ReleaseFileDescriptor"},"productDigest":{"type":"string","pattern":"^[0-9a-f]{64}$"},"productId":{"type":"string","pattern":"^(monsters|items|equipment|quests|media|maps|npcs|reactors|skills|jobs|recipes|cash-shop|avatars)-[0-9a-f]{64}$"},"productManifest":{"$ref":"#/$defs/ReleaseFileDescriptor"},"requiredClientCapabilities":{"type":"array","items":{"type":"string"}},"schemaSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["productId","familyId","buildId","productDigest","contractVersion","schemaSha256","coverage","completionClass","requiredClientCapabilities","productManifest","productAlias","catalog","catalogAlias"]};const schema34 = {"type":"object","properties":{"byteLength":{"type":"integer","format":"uint64","maximum":9007199254740991,"minimum":0},"path":{"type":"string","pattern":"^(?!/)[A-Za-z0-9._/-]+$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["path","sha256","byteLength"]};const schema36 = {"type":"string","enum":["local-diagnostic","production"]};const schema37 = {"type":"string","enum":["partial","complete"]};const pattern4 = new RegExp("^(?!/)[A-Za-z0-9._/-]+$", "u");const pattern5 = new RegExp("^[0-9a-f]{64}$", "u");const pattern8 = new RegExp("^(1\\.(0|[1-9][0-9]*)|2\\.0)$", "u");const pattern12 = new RegExp("^(monsters|items|equipment|quests|media|maps|npcs|reactors|skills|jobs|recipes|cash-shop|avatars)-[0-9a-f]{64}$", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.productId === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "productId"},message:"must have required property '"+"productId"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.familyId === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "familyId"},message:"must have required property '"+"familyId"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.buildId === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "buildId"},message:"must have required property '"+"buildId"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.productDigest === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "productDigest"},message:"must have required property '"+"productDigest"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.contractVersion === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "contractVersion"},message:"must have required property '"+"contractVersion"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.schemaSha256 === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schemaSha256"},message:"must have required property '"+"schemaSha256"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.coverage === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "coverage"},message:"must have required property '"+"coverage"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.completionClass === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "completionClass"},message:"must have required property '"+"completionClass"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.requiredClientCapabilities === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requiredClientCapabilities"},message:"must have required property '"+"requiredClientCapabilities"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.productManifest === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "productManifest"},message:"must have required property '"+"productManifest"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.productAlias === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "productAlias"},message:"must have required property '"+"productAlias"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.catalog === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "catalog"},message:"must have required property '"+"catalog"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.catalogAlias === undefined){const err12 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "catalogAlias"},message:"must have required property '"+"catalogAlias"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data.buildId !== undefined){if(typeof data.buildId !== "string"){const err13 = {instancePath:instancePath+"/buildId",schemaPath:"#/properties/buildId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.catalog !== undefined){let data1 = data.catalog;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.path === undefined){const err14 = {instancePath:instancePath+"/catalog",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data1.sha256 === undefined){const err15 = {instancePath:instancePath+"/catalog",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data1.byteLength === undefined){const err16 = {instancePath:instancePath+"/catalog",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "byteLength"},message:"must have required property '"+"byteLength"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data1.byteLength !== undefined){let data2 = data1.byteLength;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err17 = {instancePath:instancePath+"/catalog/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 9007199254740991 || isNaN(data2)){const err18 = {instancePath:instancePath+"/catalog/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data2 < 0 || isNaN(data2)){const err19 = {instancePath:instancePath+"/catalog/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}if(data1.path !== undefined){let data3 = data1.path;if(typeof data3 === "string"){if(!pattern4.test(data3)){const err20 = {instancePath:instancePath+"/catalog/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/pattern",keyword:"pattern",params:{pattern: "^(?!/)[A-Za-z0-9._/-]+$"},message:"must match pattern \""+"^(?!/)[A-Za-z0-9._/-]+$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/catalog/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data1.sha256 !== undefined){let data4 = data1.sha256;if(typeof data4 === "string"){if(!pattern5.test(data4)){const err22 = {instancePath:instancePath+"/catalog/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/catalog/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/catalog",schemaPath:"#/$defs/ReleaseFileDescriptor/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.catalogAlias !== undefined){let data5 = data.catalogAlias;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.path === undefined){const err25 = {instancePath:instancePath+"/catalogAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data5.sha256 === undefined){const err26 = {instancePath:instancePath+"/catalogAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.byteLength === undefined){const err27 = {instancePath:instancePath+"/catalogAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "byteLength"},message:"must have required property '"+"byteLength"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data5.byteLength !== undefined){let data6 = data5.byteLength;if(!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))){const err28 = {instancePath:instancePath+"/catalogAlias/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if((typeof data6 == "number") && (isFinite(data6))){if(data6 > 9007199254740991 || isNaN(data6)){const err29 = {instancePath:instancePath+"/catalogAlias/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data6 < 0 || isNaN(data6)){const err30 = {instancePath:instancePath+"/catalogAlias/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}if(data5.path !== undefined){let data7 = data5.path;if(typeof data7 === "string"){if(!pattern4.test(data7)){const err31 = {instancePath:instancePath+"/catalogAlias/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/pattern",keyword:"pattern",params:{pattern: "^(?!/)[A-Za-z0-9._/-]+$"},message:"must match pattern \""+"^(?!/)[A-Za-z0-9._/-]+$"+"\""};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/catalogAlias/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data5.sha256 !== undefined){let data8 = data5.sha256;if(typeof data8 === "string"){if(!pattern5.test(data8)){const err33 = {instancePath:instancePath+"/catalogAlias/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}else {const err34 = {instancePath:instancePath+"/catalogAlias/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/catalogAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.completionClass !== undefined){let data9 = data.completionClass;if(typeof data9 !== "string"){const err36 = {instancePath:instancePath+"/completionClass",schemaPath:"#/$defs/ReleaseClass/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if(!((data9 === "local-diagnostic") || (data9 === "production"))){const err37 = {instancePath:instancePath+"/completionClass",schemaPath:"#/$defs/ReleaseClass/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.contractVersion !== undefined){let data10 = data.contractVersion;if(typeof data10 === "string"){if(!pattern8.test(data10)){const err38 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/pattern",keyword:"pattern",params:{pattern: "^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},message:"must match pattern \""+"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"+"\""};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.coverage !== undefined){let data11 = data.coverage;if(typeof data11 !== "string"){const err40 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/ReleaseCoverage/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!((data11 === "partial") || (data11 === "complete"))){const err41 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/ReleaseCoverage/enum",keyword:"enum",params:{allowedValues: schema37.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.familyId !== undefined){if(typeof data.familyId !== "string"){const err42 = {instancePath:instancePath+"/familyId",schemaPath:"#/properties/familyId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.productAlias !== undefined){let data13 = data.productAlias;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.path === undefined){const err43 = {instancePath:instancePath+"/productAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.sha256 === undefined){const err44 = {instancePath:instancePath+"/productAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(data13.byteLength === undefined){const err45 = {instancePath:instancePath+"/productAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "byteLength"},message:"must have required property '"+"byteLength"+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data13.byteLength !== undefined){let data14 = data13.byteLength;if(!(((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14))) && (isFinite(data14)))){const err46 = {instancePath:instancePath+"/productAlias/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if((typeof data14 == "number") && (isFinite(data14))){if(data14 > 9007199254740991 || isNaN(data14)){const err47 = {instancePath:instancePath+"/productAlias/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(data14 < 0 || isNaN(data14)){const err48 = {instancePath:instancePath+"/productAlias/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}if(data13.path !== undefined){let data15 = data13.path;if(typeof data15 === "string"){if(!pattern4.test(data15)){const err49 = {instancePath:instancePath+"/productAlias/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/pattern",keyword:"pattern",params:{pattern: "^(?!/)[A-Za-z0-9._/-]+$"},message:"must match pattern \""+"^(?!/)[A-Za-z0-9._/-]+$"+"\""};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/productAlias/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data13.sha256 !== undefined){let data16 = data13.sha256;if(typeof data16 === "string"){if(!pattern5.test(data16)){const err51 = {instancePath:instancePath+"/productAlias/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}else {const err52 = {instancePath:instancePath+"/productAlias/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}else {const err53 = {instancePath:instancePath+"/productAlias",schemaPath:"#/$defs/ReleaseFileDescriptor/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data.productDigest !== undefined){let data17 = data.productDigest;if(typeof data17 === "string"){if(!pattern5.test(data17)){const err54 = {instancePath:instancePath+"/productDigest",schemaPath:"#/properties/productDigest/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}else {const err55 = {instancePath:instancePath+"/productDigest",schemaPath:"#/properties/productDigest/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data.productId !== undefined){let data18 = data.productId;if(typeof data18 === "string"){if(!pattern12.test(data18)){const err56 = {instancePath:instancePath+"/productId",schemaPath:"#/properties/productId/pattern",keyword:"pattern",params:{pattern: "^(monsters|items|equipment|quests|media|maps|npcs|reactors|skills|jobs|recipes|cash-shop|avatars)-[0-9a-f]{64}$"},message:"must match pattern \""+"^(monsters|items|equipment|quests|media|maps|npcs|reactors|skills|jobs|recipes|cash-shop|avatars)-[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/productId",schemaPath:"#/properties/productId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data.productManifest !== undefined){let data19 = data.productManifest;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.path === undefined){const err58 = {instancePath:instancePath+"/productManifest",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data19.sha256 === undefined){const err59 = {instancePath:instancePath+"/productManifest",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data19.byteLength === undefined){const err60 = {instancePath:instancePath+"/productManifest",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "byteLength"},message:"must have required property '"+"byteLength"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data19.byteLength !== undefined){let data20 = data19.byteLength;if(!(((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20))) && (isFinite(data20)))){const err61 = {instancePath:instancePath+"/productManifest/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if((typeof data20 == "number") && (isFinite(data20))){if(data20 > 9007199254740991 || isNaN(data20)){const err62 = {instancePath:instancePath+"/productManifest/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data20 < 0 || isNaN(data20)){const err63 = {instancePath:instancePath+"/productManifest/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}if(data19.path !== undefined){let data21 = data19.path;if(typeof data21 === "string"){if(!pattern4.test(data21)){const err64 = {instancePath:instancePath+"/productManifest/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/pattern",keyword:"pattern",params:{pattern: "^(?!/)[A-Za-z0-9._/-]+$"},message:"must match pattern \""+"^(?!/)[A-Za-z0-9._/-]+$"+"\""};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}else {const err65 = {instancePath:instancePath+"/productManifest/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data19.sha256 !== undefined){let data22 = data19.sha256;if(typeof data22 === "string"){if(!pattern5.test(data22)){const err66 = {instancePath:instancePath+"/productManifest/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/productManifest/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}else {const err68 = {instancePath:instancePath+"/productManifest",schemaPath:"#/$defs/ReleaseFileDescriptor/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data.requiredClientCapabilities !== undefined){let data23 = data.requiredClientCapabilities;if(Array.isArray(data23)){const len0 = data23.length;for(let i0=0; i0<len0; i0++){if(typeof data23[i0] !== "string"){const err69 = {instancePath:instancePath+"/requiredClientCapabilities/" + i0,schemaPath:"#/properties/requiredClientCapabilities/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {instancePath:instancePath+"/requiredClientCapabilities",schemaPath:"#/properties/requiredClientCapabilities/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data.schemaSha256 !== undefined){let data25 = data.schemaSha256;if(typeof data25 === "string"){if(!pattern5.test(data25)){const err71 = {instancePath:instancePath+"/schemaSha256",schemaPath:"#/properties/schemaSha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/schemaSha256",schemaPath:"#/properties/schemaSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"props":{"buildId":true,"catalog":true,"catalogAlias":true,"completionClass":true,"contractVersion":true,"coverage":true,"familyId":true,"productAlias":true,"productDigest":true,"productId":true,"productManifest":true,"requiredClientCapabilities":true,"schemaSha256":true},"dynamicProps":false,"dynamicItems":false};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.familyId === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "familyId"},message:"must have required property '"+"familyId"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.buildId === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "buildId"},message:"must have required property '"+"buildId"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.products === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "products"},message:"must have required property '"+"products"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.buildId !== undefined){if(typeof data.buildId !== "string"){const err3 = {instancePath:instancePath+"/buildId",schemaPath:"#/properties/buildId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.familyId !== undefined){if(typeof data.familyId !== "string"){const err4 = {instancePath:instancePath+"/familyId",schemaPath:"#/properties/familyId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.productCapabilities !== undefined){let data2 = data.productCapabilities;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(typeof data2[i0] !== "string"){const err5 = {instancePath:instancePath+"/productCapabilities/" + i0,schemaPath:"#/properties/productCapabilities/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}else {const err6 = {instancePath:instancePath+"/productCapabilities",schemaPath:"#/properties/productCapabilities/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.products !== undefined){let data4 = data.products;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(!(validate22(data4[i1], {instancePath:instancePath+"/products/" + i1,parentData:data4,parentDataProperty:i1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}}else {const err7 = {instancePath:instancePath+"/products",schemaPath:"#/properties/products/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":{"buildId":true,"familyId":true,"productCapabilities":true,"products":true},"dynamicProps":false,"dynamicItems":false};const pattern17 = new RegExp("^release-[0-9a-f]{64}$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.contractVersion === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "contractVersion"},message:"must have required property '"+"contractVersion"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.releaseId === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "releaseId"},message:"must have required property '"+"releaseId"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.builds === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "builds"},message:"must have required property '"+"builds"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.builds !== undefined){let data0 = data.builds;if(Array.isArray(data0)){const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate21(data0[i0], {instancePath:instancePath+"/builds/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}else {const err4 = {instancePath:instancePath+"/builds",schemaPath:"#/properties/builds/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.contractVersion !== undefined){let data2 = data.contractVersion;if(typeof data2 === "string"){if(!pattern8.test(data2)){const err5 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/pattern",keyword:"pattern",params:{pattern: "^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},message:"must match pattern \""+"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.format !== undefined){let data3 = data.format;if(typeof data3 !== "string"){const err7 = {instancePath:instancePath+"/format",schemaPath:"#/$defs/ReleaseBuildIndexFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(!(data3 === "mapletip.release-build-index")){const err8 = {instancePath:instancePath+"/format",schemaPath:"#/$defs/ReleaseBuildIndexFormat/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.releaseId !== undefined){let data4 = data.releaseId;if(typeof data4 === "string"){if(!pattern17.test(data4)){const err9 = {instancePath:instancePath+"/releaseId",schemaPath:"#/properties/releaseId/pattern",keyword:"pattern",params:{pattern: "^release-[0-9a-f]{64}$"},message:"must match pattern \""+"^release-[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/releaseId",schemaPath:"#/properties/releaseId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"builds":true,"contractVersion":true,"format":true,"releaseId":true},"dynamicProps":false,"dynamicItems":false};
@@ -0,0 +1,24 @@
1
+ /* Generated automatically from Rust-owned wire definitions. Do not edit. */
2
+
3
+ export type ReleaseCoverage = "partial" | "complete";
4
+ export type ReleaseManifestFormat = "mapletip.local-release";
5
+ export type ReleaseClass = "local-diagnostic" | "production";
6
+ export type ReleaseFormatVersion = "1";
7
+
8
+ export interface ReleaseManifest {
9
+ buildIndex: ReleaseFileDescriptor;
10
+ contractVersion: string;
11
+ coverage: ReleaseCoverage;
12
+ format: ReleaseManifestFormat;
13
+ releaseClass: ReleaseClass;
14
+ releaseFormat: ReleaseFormatVersion;
15
+ releaseId: string;
16
+ requiredClientCapabilities: string[];
17
+ [k: string]: unknown | undefined;
18
+ }
19
+ export interface ReleaseFileDescriptor {
20
+ byteLength: number;
21
+ path: string;
22
+ sha256: string;
23
+ [k: string]: unknown | undefined;
24
+ }
@@ -0,0 +1 @@
1
+ "use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"ReleaseManifest","type":"object","properties":{"buildIndex":{"$ref":"#/$defs/ReleaseFileDescriptor"},"contractVersion":{"type":"string","pattern":"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},"coverage":{"$ref":"#/$defs/ReleaseCoverage"},"format":{"$ref":"#/$defs/ReleaseManifestFormat"},"releaseClass":{"$ref":"#/$defs/ReleaseClass"},"releaseFormat":{"$ref":"#/$defs/ReleaseFormatVersion"},"releaseId":{"type":"string","pattern":"^release-[0-9a-f]{64}$"},"requiredClientCapabilities":{"type":"array","items":{"type":"string"}}},"required":["format","releaseFormat","contractVersion","releaseId","releaseClass","coverage","requiredClientCapabilities","buildIndex"],"$defs":{"ReleaseClass":{"type":"string","enum":["local-diagnostic","production"]},"ReleaseCoverage":{"type":"string","enum":["partial","complete"]},"ReleaseFileDescriptor":{"type":"object","properties":{"byteLength":{"type":"integer","format":"uint64","maximum":9007199254740991,"minimum":0},"path":{"type":"string","pattern":"^(?!/)[A-Za-z0-9._/-]+$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["path","sha256","byteLength"]},"ReleaseFormatVersion":{"type":"string","enum":["1"]},"ReleaseManifestFormat":{"type":"string","enum":["mapletip.local-release"]}}};const schema32 = {"type":"object","properties":{"byteLength":{"type":"integer","format":"uint64","maximum":9007199254740991,"minimum":0},"path":{"type":"string","pattern":"^(?!/)[A-Za-z0-9._/-]+$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["path","sha256","byteLength"]};const schema33 = {"type":"string","enum":["partial","complete"]};const schema34 = {"type":"string","enum":["mapletip.local-release"]};const schema35 = {"type":"string","enum":["local-diagnostic","production"]};const schema36 = {"type":"string","enum":["1"]};const pattern4 = new RegExp("^(?!/)[A-Za-z0-9._/-]+$", "u");const pattern5 = new RegExp("^[0-9a-f]{64}$", "u");const pattern6 = new RegExp("^(1\\.(0|[1-9][0-9]*)|2\\.0)$", "u");const pattern7 = new RegExp("^release-[0-9a-f]{64}$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.releaseFormat === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "releaseFormat"},message:"must have required property '"+"releaseFormat"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.contractVersion === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "contractVersion"},message:"must have required property '"+"contractVersion"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.releaseId === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "releaseId"},message:"must have required property '"+"releaseId"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.releaseClass === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "releaseClass"},message:"must have required property '"+"releaseClass"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.coverage === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "coverage"},message:"must have required property '"+"coverage"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.requiredClientCapabilities === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requiredClientCapabilities"},message:"must have required property '"+"requiredClientCapabilities"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.buildIndex === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "buildIndex"},message:"must have required property '"+"buildIndex"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.buildIndex !== undefined){let data0 = data.buildIndex;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.path === undefined){const err8 = {instancePath:instancePath+"/buildIndex",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data0.sha256 === undefined){const err9 = {instancePath:instancePath+"/buildIndex",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data0.byteLength === undefined){const err10 = {instancePath:instancePath+"/buildIndex",schemaPath:"#/$defs/ReleaseFileDescriptor/required",keyword:"required",params:{missingProperty: "byteLength"},message:"must have required property '"+"byteLength"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data0.byteLength !== undefined){let data1 = data0.byteLength;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err11 = {instancePath:instancePath+"/buildIndex/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err12 = {instancePath:instancePath+"/buildIndex/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data1 < 0 || isNaN(data1)){const err13 = {instancePath:instancePath+"/buildIndex/byteLength",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/byteLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}if(data0.path !== undefined){let data2 = data0.path;if(typeof data2 === "string"){if(!pattern4.test(data2)){const err14 = {instancePath:instancePath+"/buildIndex/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/pattern",keyword:"pattern",params:{pattern: "^(?!/)[A-Za-z0-9._/-]+$"},message:"must match pattern \""+"^(?!/)[A-Za-z0-9._/-]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/buildIndex/path",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data0.sha256 !== undefined){let data3 = data0.sha256;if(typeof data3 === "string"){if(!pattern5.test(data3)){const err16 = {instancePath:instancePath+"/buildIndex/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}else {const err17 = {instancePath:instancePath+"/buildIndex/sha256",schemaPath:"#/$defs/ReleaseFileDescriptor/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath:instancePath+"/buildIndex",schemaPath:"#/$defs/ReleaseFileDescriptor/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.contractVersion !== undefined){let data4 = data.contractVersion;if(typeof data4 === "string"){if(!pattern6.test(data4)){const err19 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/pattern",keyword:"pattern",params:{pattern: "^(1\\.(0|[1-9][0-9]*)|2\\.0)$"},message:"must match pattern \""+"^(1\\.(0|[1-9][0-9]*)|2\\.0)$"+"\""};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.coverage !== undefined){let data5 = data.coverage;if(typeof data5 !== "string"){const err21 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/ReleaseCoverage/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(!((data5 === "partial") || (data5 === "complete"))){const err22 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/ReleaseCoverage/enum",keyword:"enum",params:{allowedValues: schema33.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.format !== undefined){let data6 = data.format;if(typeof data6 !== "string"){const err23 = {instancePath:instancePath+"/format",schemaPath:"#/$defs/ReleaseManifestFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!(data6 === "mapletip.local-release")){const err24 = {instancePath:instancePath+"/format",schemaPath:"#/$defs/ReleaseManifestFormat/enum",keyword:"enum",params:{allowedValues: schema34.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.releaseClass !== undefined){let data7 = data.releaseClass;if(typeof data7 !== "string"){const err25 = {instancePath:instancePath+"/releaseClass",schemaPath:"#/$defs/ReleaseClass/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(!((data7 === "local-diagnostic") || (data7 === "production"))){const err26 = {instancePath:instancePath+"/releaseClass",schemaPath:"#/$defs/ReleaseClass/enum",keyword:"enum",params:{allowedValues: schema35.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.releaseFormat !== undefined){let data8 = data.releaseFormat;if(typeof data8 !== "string"){const err27 = {instancePath:instancePath+"/releaseFormat",schemaPath:"#/$defs/ReleaseFormatVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(!(data8 === "1")){const err28 = {instancePath:instancePath+"/releaseFormat",schemaPath:"#/$defs/ReleaseFormatVersion/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.releaseId !== undefined){let data9 = data.releaseId;if(typeof data9 === "string"){if(!pattern7.test(data9)){const err29 = {instancePath:instancePath+"/releaseId",schemaPath:"#/properties/releaseId/pattern",keyword:"pattern",params:{pattern: "^release-[0-9a-f]{64}$"},message:"must match pattern \""+"^release-[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}else {const err30 = {instancePath:instancePath+"/releaseId",schemaPath:"#/properties/releaseId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.requiredClientCapabilities !== undefined){let data10 = data.requiredClientCapabilities;if(Array.isArray(data10)){const len0 = data10.length;for(let i0=0; i0<len0; i0++){if(typeof data10[i0] !== "string"){const err31 = {instancePath:instancePath+"/requiredClientCapabilities/" + i0,schemaPath:"#/properties/requiredClientCapabilities/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/requiredClientCapabilities",schemaPath:"#/properties/requiredClientCapabilities/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}else {const err33 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"buildIndex":true,"contractVersion":true,"coverage":true,"format":true,"releaseClass":true,"releaseFormat":true,"releaseId":true,"requiredClientCapabilities":true},"dynamicProps":false,"dynamicItems":false};
@@ -0,0 +1,12 @@
1
+ /* Generated automatically from Rust-owned wire definitions. Do not edit. */
2
+
3
+ export type ReleasePinFormat = "mapletip.local-release-pin";
4
+
5
+ export interface ReleasePin {
6
+ byteLength: number;
7
+ format: ReleasePinFormat;
8
+ path: string;
9
+ releaseId: string;
10
+ sha256: string;
11
+ [k: string]: unknown | undefined;
12
+ }
@@ -0,0 +1 @@
1
+ "use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"ReleasePin","type":"object","properties":{"byteLength":{"type":"integer","format":"uint64","maximum":9007199254740991,"minimum":0},"format":{"$ref":"#/$defs/ReleasePinFormat"},"path":{"type":"string","pattern":"^v1/releases/[0-9a-f]{64}\\.json$"},"releaseId":{"type":"string","pattern":"^release-[0-9a-f]{64}$"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["format","releaseId","path","sha256","byteLength"],"$defs":{"ReleasePinFormat":{"type":"string","enum":["mapletip.local-release-pin"]}}};const schema32 = {"type":"string","enum":["mapletip.local-release-pin"]};const pattern4 = new RegExp("^v1/releases/[0-9a-f]{64}\\.json$", "u");const pattern5 = new RegExp("^release-[0-9a-f]{64}$", "u");const pattern6 = new RegExp("^[0-9a-f]{64}$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.releaseId === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "releaseId"},message:"must have required property '"+"releaseId"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.path === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.sha256 === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.byteLength === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "byteLength"},message:"must have required property '"+"byteLength"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.byteLength !== undefined){let data0 = data.byteLength;if(!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))){const err5 = {instancePath:instancePath+"/byteLength",schemaPath:"#/properties/byteLength/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 9007199254740991 || isNaN(data0)){const err6 = {instancePath:instancePath+"/byteLength",schemaPath:"#/properties/byteLength/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data0 < 0 || isNaN(data0)){const err7 = {instancePath:instancePath+"/byteLength",schemaPath:"#/properties/byteLength/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}if(data.format !== undefined){let data1 = data.format;if(typeof data1 !== "string"){const err8 = {instancePath:instancePath+"/format",schemaPath:"#/$defs/ReleasePinFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(!(data1 === "mapletip.local-release-pin")){const err9 = {instancePath:instancePath+"/format",schemaPath:"#/$defs/ReleasePinFormat/enum",keyword:"enum",params:{allowedValues: schema32.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.path !== undefined){let data2 = data.path;if(typeof data2 === "string"){if(!pattern4.test(data2)){const err10 = {instancePath:instancePath+"/path",schemaPath:"#/properties/path/pattern",keyword:"pattern",params:{pattern: "^v1/releases/[0-9a-f]{64}\\.json$"},message:"must match pattern \""+"^v1/releases/[0-9a-f]{64}\\.json$"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.releaseId !== undefined){let data3 = data.releaseId;if(typeof data3 === "string"){if(!pattern5.test(data3)){const err12 = {instancePath:instancePath+"/releaseId",schemaPath:"#/properties/releaseId/pattern",keyword:"pattern",params:{pattern: "^release-[0-9a-f]{64}$"},message:"must match pattern \""+"^release-[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/releaseId",schemaPath:"#/properties/releaseId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.sha256 !== undefined){let data4 = data.sha256;if(typeof data4 === "string"){if(!pattern6.test(data4)){const err14 = {instancePath:instancePath+"/sha256",schemaPath:"#/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[0-9a-f]{64}$"},message:"must match pattern \""+"^[0-9a-f]{64}$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/sha256",schemaPath:"#/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"byteLength":true,"format":true,"path":true,"releaseId":true,"sha256":true},"dynamicProps":false,"dynamicItems":false};
package/package.json ADDED
@@ -0,0 +1,155 @@
1
+ {
2
+ "name": "@mapletip/data",
3
+ "version": "0.1.0",
4
+ "description": "Verified, immutable MapleTip public-data client for Node and browsers",
5
+ "license": "UNLICENSED",
6
+ "packageManager": "pnpm@11.18.0",
7
+ "type": "module",
8
+ "types": "./client/static-client.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./client/static-client.d.ts",
12
+ "import": "./client/static-client.js"
13
+ },
14
+ "./client": {
15
+ "types": "./client/static-client.d.ts",
16
+ "import": "./client/static-client.js"
17
+ },
18
+ "./contract-compatibility": {
19
+ "types": "./client/contract-compatibility.d.mts",
20
+ "import": "./client/contract-compatibility.mjs"
21
+ },
22
+ "./monsters": {
23
+ "types": "./client/monsters.d.ts",
24
+ "import": "./client/monsters.js"
25
+ },
26
+ "./items": {
27
+ "types": "./client/items.d.ts",
28
+ "import": "./client/items.js"
29
+ },
30
+ "./equipment": {
31
+ "types": "./client/equipment.d.ts",
32
+ "import": "./client/equipment.js"
33
+ },
34
+ "./quests": {
35
+ "types": "./client/quests.d.ts",
36
+ "import": "./client/quests.js"
37
+ },
38
+ "./media": {
39
+ "types": "./client/media.d.ts",
40
+ "import": "./client/media.js"
41
+ },
42
+ "./release": {
43
+ "types": "./client/release.d.ts",
44
+ "import": "./client/release.js"
45
+ }
46
+ },
47
+ "files": [
48
+ "NOTICE",
49
+ "client/contract-compatibility.d.mts",
50
+ "client/contract-compatibility.mjs",
51
+ "client/core.d.ts",
52
+ "client/core.js",
53
+ "client/equipment.d.ts",
54
+ "client/equipment.js",
55
+ "client/items.d.ts",
56
+ "client/items.js",
57
+ "client/media.d.ts",
58
+ "client/media.js",
59
+ "client/monster-client.d.ts",
60
+ "client/monster-client.js",
61
+ "client/monsters.d.ts",
62
+ "client/monsters.js",
63
+ "client/quests.d.ts",
64
+ "client/quests.js",
65
+ "client/release.d.ts",
66
+ "client/release.js",
67
+ "client/static-client.d.ts",
68
+ "client/static-client.js",
69
+ "client/static-domains.d.ts",
70
+ "client/static-domains.js",
71
+ "generated/contract-2-catalog-fact.d.ts",
72
+ "generated/equipment-catalog-2.d.ts",
73
+ "generated/equipment-catalog-2.validator.js",
74
+ "generated/equipment-detail-2.d.ts",
75
+ "generated/equipment-detail-2.validator.js",
76
+ "generated/equipment-evidence-pack-2.d.ts",
77
+ "generated/equipment-evidence-pack-2.validator.js",
78
+ "generated/equipment-pack-2.validator.js",
79
+ "generated/equipment-relationship-pack-2.d.ts",
80
+ "generated/equipment-relationship-pack-2.validator.js",
81
+ "generated/item-catalog-2.d.ts",
82
+ "generated/item-catalog-2.validator.js",
83
+ "generated/item-detail-2.d.ts",
84
+ "generated/item-detail-2.validator.js",
85
+ "generated/item-evidence-pack-2.d.ts",
86
+ "generated/item-evidence-pack-2.validator.js",
87
+ "generated/item-pack-2.validator.js",
88
+ "generated/item-relationship-pack-2.d.ts",
89
+ "generated/item-relationship-pack-2.validator.js",
90
+ "generated/media-catalog-2.d.ts",
91
+ "generated/media-catalog-2.validator.js",
92
+ "generated/media-detail-2.d.ts",
93
+ "generated/media-detail-2.validator.js",
94
+ "generated/media-pack-2.validator.js",
95
+ "generated/monster-catalog-2.d.ts",
96
+ "generated/monster-catalog-2.validator.js",
97
+ "generated/monster-catalog.d.ts",
98
+ "generated/monster-catalog.validator.js",
99
+ "generated/monster-core-relationship-pack-2.d.ts",
100
+ "generated/monster-core-relationship-pack-2.validator.js",
101
+ "generated/monster-detail-2.d.ts",
102
+ "generated/monster-detail-2.validator.js",
103
+ "generated/monster-detail.d.ts",
104
+ "generated/monster-detail.validator.js",
105
+ "generated/monster-evidence-pack-2.d.ts",
106
+ "generated/monster-evidence-pack-2.validator.js",
107
+ "generated/monster-evidence-pack.d.ts",
108
+ "generated/monster-evidence-pack.validator.js",
109
+ "generated/monster-location-pack-2.validator.js",
110
+ "generated/monster-pack-2.validator.js",
111
+ "generated/monster-pack.validator.js",
112
+ "generated/monster-relationship-pack.d.ts",
113
+ "generated/monster-relationship-pack.validator.js",
114
+ "generated/product-manifest.d.ts",
115
+ "generated/product-manifest.validator.js",
116
+ "generated/quest-auxiliary-pack-2.d.ts",
117
+ "generated/quest-auxiliary-pack-2.validator.js",
118
+ "generated/quest-browse-pack-2.d.ts",
119
+ "generated/quest-browse-pack-2.validator.js",
120
+ "generated/quest-catalog-2.d.ts",
121
+ "generated/quest-catalog-2.validator.js",
122
+ "generated/quest-evidence-pack-2.d.ts",
123
+ "generated/quest-evidence-pack-2.validator.js",
124
+ "generated/quest-pack-2.d.ts",
125
+ "generated/quest-pack-2.validator.js",
126
+ "generated/quest-relationship-pack-2.d.ts",
127
+ "generated/quest-relationship-pack-2.validator.js",
128
+ "generated/release-build-index.d.ts",
129
+ "generated/release-build-index.validator.js",
130
+ "generated/release-manifest.d.ts",
131
+ "generated/release-manifest.validator.js",
132
+ "generated/release-pin.d.ts",
133
+ "generated/release-pin.validator.js",
134
+ "README.md"
135
+ ],
136
+ "publishConfig": {
137
+ "access": "public"
138
+ },
139
+ "scripts": {
140
+ "build": "tsc -p tsconfig.json --noEmit false",
141
+ "generate": "node tools/generate-contracts.mjs",
142
+ "drift": "node tools/generate-contracts.mjs --check",
143
+ "test": "pnpm run build && node --test tools/test-fixtures.mjs tools/test-browser-consumption.mjs tools/expectations.test.mjs tools/historical-attribution.test.mjs tools/test-static-client.mjs tools/test-item-equipment-sdk.mjs tools/test-contract-2.mjs tools/test-quest-auxiliary.mjs tools/developer-loop.test.mjs tools/test-package-contents.mjs tools/test-package-consumer.mjs",
144
+ "test:package": "node tools/test-package-contents.mjs && node tools/test-package-consumer.mjs",
145
+ "developer-loop": "node tools/developer-loop.mjs",
146
+ "time-developer-loop": "node tools/time-developer-loop.mjs",
147
+ "benchmark:bundle": "node tools/benchmark-bundle.mjs"
148
+ },
149
+ "devDependencies": {
150
+ "ajv": "8.17.1",
151
+ "ajv-formats": "3.0.1",
152
+ "json-schema-to-typescript": "15.0.4",
153
+ "typescript": "5.8.2"
154
+ }
155
+ }