@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.
- package/NOTICE +52 -0
- package/README.md +209 -0
- package/client/contract-compatibility.d.mts +27 -0
- package/client/contract-compatibility.mjs +159 -0
- package/client/core.d.ts +150 -0
- package/client/core.js +359 -0
- package/client/equipment.d.ts +22 -0
- package/client/equipment.js +63 -0
- package/client/items.d.ts +22 -0
- package/client/items.js +63 -0
- package/client/media.d.ts +19 -0
- package/client/media.js +47 -0
- package/client/monster-client.d.ts +35 -0
- package/client/monster-client.js +155 -0
- package/client/monsters.d.ts +24 -0
- package/client/monsters.js +14 -0
- package/client/quests.d.ts +31 -0
- package/client/quests.js +124 -0
- package/client/release.d.ts +63 -0
- package/client/release.js +279 -0
- package/client/static-client.d.ts +40 -0
- package/client/static-client.js +44 -0
- package/client/static-domains.d.ts +48 -0
- package/client/static-domains.js +113 -0
- package/generated/contract-2-catalog-fact.d.ts +51 -0
- package/generated/equipment-catalog-2.d.ts +434 -0
- package/generated/equipment-catalog-2.validator.js +17 -0
- package/generated/equipment-detail-2.d.ts +350 -0
- package/generated/equipment-detail-2.validator.js +17 -0
- package/generated/equipment-evidence-pack-2.d.ts +243 -0
- package/generated/equipment-evidence-pack-2.validator.js +17 -0
- package/generated/equipment-pack-2.validator.js +17 -0
- package/generated/equipment-relationship-pack-2.d.ts +170 -0
- package/generated/equipment-relationship-pack-2.validator.js +17 -0
- package/generated/item-catalog-2.d.ts +366 -0
- package/generated/item-catalog-2.validator.js +17 -0
- package/generated/item-detail-2.d.ts +540 -0
- package/generated/item-detail-2.validator.js +17 -0
- package/generated/item-evidence-pack-2.d.ts +243 -0
- package/generated/item-evidence-pack-2.validator.js +17 -0
- package/generated/item-pack-2.validator.js +17 -0
- package/generated/item-relationship-pack-2.d.ts +170 -0
- package/generated/item-relationship-pack-2.validator.js +17 -0
- package/generated/media-catalog-2.d.ts +133 -0
- package/generated/media-catalog-2.validator.js +17 -0
- package/generated/media-detail-2.d.ts +125 -0
- package/generated/media-detail-2.validator.js +17 -0
- package/generated/media-pack-2.validator.js +17 -0
- package/generated/monster-catalog-2.d.ts +230 -0
- package/generated/monster-catalog-2.validator.js +17 -0
- package/generated/monster-catalog.d.ts +224 -0
- package/generated/monster-catalog.validator.js +1 -0
- package/generated/monster-core-relationship-pack-2.d.ts +208 -0
- package/generated/monster-core-relationship-pack-2.validator.js +17 -0
- package/generated/monster-detail-2.d.ts +372 -0
- package/generated/monster-detail-2.validator.js +17 -0
- package/generated/monster-detail.d.ts +799 -0
- package/generated/monster-detail.validator.js +17 -0
- package/generated/monster-evidence-pack-2.d.ts +378 -0
- package/generated/monster-evidence-pack-2.validator.js +17 -0
- package/generated/monster-evidence-pack.d.ts +269 -0
- package/generated/monster-evidence-pack.validator.js +17 -0
- package/generated/monster-location-pack-2.validator.js +1 -0
- package/generated/monster-pack-2.validator.js +17 -0
- package/generated/monster-pack.validator.js +17 -0
- package/generated/monster-relationship-pack.d.ts +126 -0
- package/generated/monster-relationship-pack.validator.js +1 -0
- package/generated/product-manifest.d.ts +188 -0
- package/generated/product-manifest.validator.js +1 -0
- package/generated/quest-auxiliary-pack-2.d.ts +391 -0
- package/generated/quest-auxiliary-pack-2.validator.js +17 -0
- package/generated/quest-browse-pack-2.d.ts +353 -0
- package/generated/quest-browse-pack-2.validator.js +17 -0
- package/generated/quest-catalog-2.d.ts +501 -0
- package/generated/quest-catalog-2.validator.js +17 -0
- package/generated/quest-evidence-pack-2.d.ts +269 -0
- package/generated/quest-evidence-pack-2.validator.js +17 -0
- package/generated/quest-pack-2.d.ts +410 -0
- package/generated/quest-pack-2.validator.js +17 -0
- package/generated/quest-relationship-pack-2.d.ts +868 -0
- package/generated/quest-relationship-pack-2.validator.js +17 -0
- package/generated/release-build-index.d.ts +42 -0
- package/generated/release-build-index.validator.js +1 -0
- package/generated/release-manifest.d.ts +24 -0
- package/generated/release-manifest.validator.js +1 -0
- package/generated/release-pin.d.ts +12 -0
- package/generated/release-pin.validator.js +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* Generated automatically from Rust-owned wire definitions. Do not edit. */
|
|
2
|
+
|
|
3
|
+
export type SafeInt64 = number;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Bounded monster relationship pack (`v1/packs/<sha256>.json`).
|
|
7
|
+
*
|
|
8
|
+
* Stores paged relationship occurrence records matching the `PageDescriptor` keys
|
|
9
|
+
* referenced in `MonsterDetailRecord` (e.g., 'monster-<key>:locations:0000').
|
|
10
|
+
*/
|
|
11
|
+
export interface MonsterRelationshipPack {
|
|
12
|
+
/**
|
|
13
|
+
* Wire contract version ('major.minor').
|
|
14
|
+
*/
|
|
15
|
+
contractVersion: string;
|
|
16
|
+
/**
|
|
17
|
+
* Format identifier ('mapletip.monster-relationship-pack').
|
|
18
|
+
*/
|
|
19
|
+
format: "mapletip.monster-relationship-pack";
|
|
20
|
+
/**
|
|
21
|
+
* Record kind ('relationships').
|
|
22
|
+
*/
|
|
23
|
+
recordKind: string;
|
|
24
|
+
/**
|
|
25
|
+
* Map of page record key to array of occurrences.
|
|
26
|
+
*/
|
|
27
|
+
records: {
|
|
28
|
+
[k: string]: MonsterLocationOccurrence[] | undefined;
|
|
29
|
+
};
|
|
30
|
+
scope: BuildScope;
|
|
31
|
+
[k: string]: unknown | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Map occurrence and individual placement metadata for a monster.
|
|
35
|
+
*/
|
|
36
|
+
export interface MonsterLocationOccurrence {
|
|
37
|
+
/**
|
|
38
|
+
* Ground foothold snap Y ordinate if present.
|
|
39
|
+
*/
|
|
40
|
+
cy?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* Facing direction (0 or 1).
|
|
43
|
+
*/
|
|
44
|
+
facing?: number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Ground foothold line segment ID if present.
|
|
47
|
+
*/
|
|
48
|
+
foothold?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
* Public entity key for the map.
|
|
51
|
+
*/
|
|
52
|
+
mapKey: string;
|
|
53
|
+
/**
|
|
54
|
+
* Localized map name.
|
|
55
|
+
*/
|
|
56
|
+
mapName?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Verbatim upstream map source ID string.
|
|
59
|
+
*/
|
|
60
|
+
mapSourceId: string;
|
|
61
|
+
/**
|
|
62
|
+
* Exact `map_version.mob_rate` source value if present; no gameplay unit
|
|
63
|
+
* or spawn-rate interpretation is added.
|
|
64
|
+
*/
|
|
65
|
+
mobRate?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Exact client `map_life.mob_time` source value; it is not reinterpreted
|
|
68
|
+
* as a server spawn rate.
|
|
69
|
+
*/
|
|
70
|
+
mobTime?: SafeInt64 | null;
|
|
71
|
+
/**
|
|
72
|
+
* Life placement ordinal within the map's life block.
|
|
73
|
+
*/
|
|
74
|
+
ordinal: number;
|
|
75
|
+
/**
|
|
76
|
+
* Number of mob spawn placements represented by this entry (1 for individual placement).
|
|
77
|
+
*/
|
|
78
|
+
placementCount: number;
|
|
79
|
+
/**
|
|
80
|
+
* Physical content-map source identity owning this placement.
|
|
81
|
+
*/
|
|
82
|
+
placementMapSourceId: string;
|
|
83
|
+
/**
|
|
84
|
+
* Horizontal wander range min bound (rx0).
|
|
85
|
+
*/
|
|
86
|
+
rangeX0?: number | null;
|
|
87
|
+
/**
|
|
88
|
+
* Horizontal wander range max bound (rx1).
|
|
89
|
+
*/
|
|
90
|
+
rangeX1?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* Street or region classification code.
|
|
93
|
+
*/
|
|
94
|
+
regionCode?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Exact source path for the physical placement occurrence.
|
|
97
|
+
*/
|
|
98
|
+
sourcePath: string;
|
|
99
|
+
/**
|
|
100
|
+
* Street or area name.
|
|
101
|
+
*/
|
|
102
|
+
streetName?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Spatial X coordinate on map.
|
|
105
|
+
*/
|
|
106
|
+
x: number | null;
|
|
107
|
+
/**
|
|
108
|
+
* Spatial Y coordinate on map.
|
|
109
|
+
*/
|
|
110
|
+
y: number | null;
|
|
111
|
+
[k: string]: unknown | undefined;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Build scope.
|
|
115
|
+
*/
|
|
116
|
+
export interface BuildScope {
|
|
117
|
+
/**
|
|
118
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
119
|
+
*/
|
|
120
|
+
build_id: string;
|
|
121
|
+
/**
|
|
122
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
123
|
+
*/
|
|
124
|
+
family_id: string;
|
|
125
|
+
[k: string]: unknown | undefined;
|
|
126
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$defs":{"BuildScope":{"description":"Build scope specifying the game family and concrete build identity.","properties":{"build_id":{"description":"Exact build identity (e.g., 'gms-v83', 'cw-cot2').","type":"string"},"family_id":{"description":"Family identity (e.g., 'gms', 'classic-world').","type":"string"}},"required":["family_id","build_id"],"type":"object"},"MonsterLocationOccurrence":{"description":"Map occurrence and individual placement metadata for a monster.","properties":{"cy":{"description":"Ground foothold snap Y ordinate if present.","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"facing":{"description":"Facing direction (0 or 1).","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"foothold":{"description":"Ground foothold line segment ID if present.","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"mapKey":{"description":"Public entity key for the map.","type":"string"},"mapName":{"description":"Localized map name.","type":["string","null"]},"mapSourceId":{"description":"Verbatim upstream map source ID string.","type":"string"},"mobRate":{"description":"Exact `map_version.mob_rate` source value if present; no gameplay unit\nor spawn-rate interpretation is added.","format":"double","type":["number","null"]},"mobTime":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Exact client `map_life.mob_time` source value; it is not reinterpreted\nas a server spawn rate."},"ordinal":{"description":"Life placement ordinal within the map's life block.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"placementCount":{"description":"Number of mob spawn placements represented by this entry (1 for individual placement).","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"placementMapSourceId":{"description":"Physical content-map source identity owning this placement.","type":"string"},"rangeX0":{"description":"Horizontal wander range min bound (rx0).","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"rangeX1":{"description":"Horizontal wander range max bound (rx1).","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"regionCode":{"description":"Street or region classification code.","type":["string","null"]},"sourcePath":{"description":"Exact source path for the physical placement occurrence.","type":"string"},"streetName":{"description":"Street or area name.","type":["string","null"]},"x":{"$ref":"#/$defs/Nullable_i32","description":"Spatial X coordinate on map."},"y":{"$ref":"#/$defs/Nullable_i32","description":"Spatial Y coordinate on map."}},"required":["mapKey","mapSourceId","placementMapSourceId","ordinal","sourcePath","x","y","placementCount"],"type":"object"},"Nullable_i32":{"format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"SafeInt64":{"format":"int64","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Bounded monster relationship pack (`v1/packs/<sha256>.json`).\n\nStores paged relationship occurrence records matching the `PageDescriptor` keys\nreferenced in `MonsterDetailRecord` (e.g., 'monster-<key>:locations:0000').","properties":{"contractVersion":{"description":"Wire contract version ('major.minor').","pattern":"^1\\.(0|[1-9][0-9]*)$","type":"string"},"format":{"const":"mapletip.monster-relationship-pack","description":"Format identifier ('mapletip.monster-relationship-pack').","type":"string"},"recordKind":{"description":"Record kind ('relationships').","type":"string"},"records":{"additionalProperties":{"items":{"$ref":"#/$defs/MonsterLocationOccurrence"},"type":"array"},"description":"Map of page record key to array of occurrences.","type":"object"},"scope":{"$ref":"#/$defs/BuildScope","description":"Build scope."}},"required":["format","contractVersion","scope","recordKind","records"],"title":"MonsterRelationshipPack","type":"object"};const schema36 = {"description":"Build scope specifying the game family and concrete build identity.","properties":{"build_id":{"description":"Exact build identity (e.g., 'gms-v83', 'cw-cot2').","type":"string"},"family_id":{"description":"Family identity (e.g., 'gms', 'classic-world').","type":"string"}},"required":["family_id","build_id"],"type":"object"};const pattern4 = new RegExp("^1\\.(0|[1-9][0-9]*)$", "u");const schema32 = {"description":"Map occurrence and individual placement metadata for a monster.","properties":{"cy":{"description":"Ground foothold snap Y ordinate if present.","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"facing":{"description":"Facing direction (0 or 1).","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"foothold":{"description":"Ground foothold line segment ID if present.","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"mapKey":{"description":"Public entity key for the map.","type":"string"},"mapName":{"description":"Localized map name.","type":["string","null"]},"mapSourceId":{"description":"Verbatim upstream map source ID string.","type":"string"},"mobRate":{"description":"Exact `map_version.mob_rate` source value if present; no gameplay unit\nor spawn-rate interpretation is added.","format":"double","type":["number","null"]},"mobTime":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Exact client `map_life.mob_time` source value; it is not reinterpreted\nas a server spawn rate."},"ordinal":{"description":"Life placement ordinal within the map's life block.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"placementCount":{"description":"Number of mob spawn placements represented by this entry (1 for individual placement).","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"placementMapSourceId":{"description":"Physical content-map source identity owning this placement.","type":"string"},"rangeX0":{"description":"Horizontal wander range min bound (rx0).","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"rangeX1":{"description":"Horizontal wander range max bound (rx1).","format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]},"regionCode":{"description":"Street or region classification code.","type":["string","null"]},"sourcePath":{"description":"Exact source path for the physical placement occurrence.","type":"string"},"streetName":{"description":"Street or area name.","type":["string","null"]},"x":{"$ref":"#/$defs/Nullable_i32","description":"Spatial X coordinate on map."},"y":{"$ref":"#/$defs/Nullable_i32","description":"Spatial Y coordinate on map."}},"required":["mapKey","mapSourceId","placementMapSourceId","ordinal","sourcePath","x","y","placementCount"],"type":"object"};const schema33 = {"format":"int64","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"};const schema34 = {"format":"int32","maximum":2147483647,"minimum":-2147483648,"type":["integer","null"]};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.mapKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mapKey"},message:"must have required property '"+"mapKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.mapSourceId === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mapSourceId"},message:"must have required property '"+"mapSourceId"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.placementMapSourceId === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "placementMapSourceId"},message:"must have required property '"+"placementMapSourceId"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.ordinal === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "ordinal"},message:"must have required property '"+"ordinal"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.sourcePath === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourcePath"},message:"must have required property '"+"sourcePath"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.x === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "x"},message:"must have required property '"+"x"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.y === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "y"},message:"must have required property '"+"y"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.placementCount === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "placementCount"},message:"must have required property '"+"placementCount"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.cy !== undefined){let data0 = data.cy;if((!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))) && (data0 !== null)){const err8 = {instancePath:instancePath+"/cy",schemaPath:"#/properties/cy/type",keyword:"type",params:{type: schema32.properties.cy.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if((typeof data0 == "number") && (isFinite(data0))){if(data0 > 2147483647 || isNaN(data0)){const err9 = {instancePath:instancePath+"/cy",schemaPath:"#/properties/cy/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data0 < -2147483648 || isNaN(data0)){const err10 = {instancePath:instancePath+"/cy",schemaPath:"#/properties/cy/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}if(data.facing !== undefined){let data1 = data.facing;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err11 = {instancePath:instancePath+"/facing",schemaPath:"#/properties/facing/type",keyword:"type",params:{type: schema32.properties.facing.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 2147483647 || isNaN(data1)){const err12 = {instancePath:instancePath+"/facing",schemaPath:"#/properties/facing/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data1 < -2147483648 || isNaN(data1)){const err13 = {instancePath:instancePath+"/facing",schemaPath:"#/properties/facing/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}if(data.foothold !== undefined){let data2 = data.foothold;if((!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) && (data2 !== null)){const err14 = {instancePath:instancePath+"/foothold",schemaPath:"#/properties/foothold/type",keyword:"type",params:{type: schema32.properties.foothold.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 2147483647 || isNaN(data2)){const err15 = {instancePath:instancePath+"/foothold",schemaPath:"#/properties/foothold/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data2 < -2147483648 || isNaN(data2)){const err16 = {instancePath:instancePath+"/foothold",schemaPath:"#/properties/foothold/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}if(data.mapKey !== undefined){if(typeof data.mapKey !== "string"){const err17 = {instancePath:instancePath+"/mapKey",schemaPath:"#/properties/mapKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data.mapName !== undefined){let data4 = data.mapName;if((typeof data4 !== "string") && (data4 !== null)){const err18 = {instancePath:instancePath+"/mapName",schemaPath:"#/properties/mapName/type",keyword:"type",params:{type: schema32.properties.mapName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.mapSourceId !== undefined){if(typeof data.mapSourceId !== "string"){const err19 = {instancePath:instancePath+"/mapSourceId",schemaPath:"#/properties/mapSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.mobRate !== undefined){let data6 = data.mobRate;if((!((typeof data6 == "number") && (isFinite(data6)))) && (data6 !== null)){const err20 = {instancePath:instancePath+"/mobRate",schemaPath:"#/properties/mobRate/type",keyword:"type",params:{type: schema32.properties.mobRate.type},message:"must be number,null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.mobTime !== undefined){let data7 = data.mobTime;const _errs16 = errors;let valid1 = false;const _errs17 = errors;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err21 = {instancePath:instancePath+"/mobTime",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if((typeof data7 == "number") && (isFinite(data7))){if(data7 > 9007199254740991 || isNaN(data7)){const err22 = {instancePath:instancePath+"/mobTime",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data7 < -9007199254740991 || isNaN(data7)){const err23 = {instancePath:instancePath+"/mobTime",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid0 = _errs17 === errors;valid1 = valid1 || _valid0;const _errs20 = errors;if(data7 !== null){const err24 = {instancePath:instancePath+"/mobTime",schemaPath:"#/properties/mobTime/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid0 = _errs20 === errors;valid1 = valid1 || _valid0;if(!valid1){const err25 = {instancePath:instancePath+"/mobTime",schemaPath:"#/properties/mobTime/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}}}if(data.ordinal !== undefined){let data8 = data.ordinal;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err26 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 9007199254740991 || isNaN(data8)){const err27 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data8 < 0 || isNaN(data8)){const err28 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}if(data.placementCount !== undefined){let data9 = data.placementCount;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err29 = {instancePath:instancePath+"/placementCount",schemaPath:"#/properties/placementCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 9007199254740991 || isNaN(data9)){const err30 = {instancePath:instancePath+"/placementCount",schemaPath:"#/properties/placementCount/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data9 < 0 || isNaN(data9)){const err31 = {instancePath:instancePath+"/placementCount",schemaPath:"#/properties/placementCount/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}if(data.placementMapSourceId !== undefined){if(typeof data.placementMapSourceId !== "string"){const err32 = {instancePath:instancePath+"/placementMapSourceId",schemaPath:"#/properties/placementMapSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.rangeX0 !== undefined){let data11 = data.rangeX0;if((!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))) && (data11 !== null)){const err33 = {instancePath:instancePath+"/rangeX0",schemaPath:"#/properties/rangeX0/type",keyword:"type",params:{type: schema32.properties.rangeX0.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if((typeof data11 == "number") && (isFinite(data11))){if(data11 > 2147483647 || isNaN(data11)){const err34 = {instancePath:instancePath+"/rangeX0",schemaPath:"#/properties/rangeX0/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data11 < -2147483648 || isNaN(data11)){const err35 = {instancePath:instancePath+"/rangeX0",schemaPath:"#/properties/rangeX0/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}if(data.rangeX1 !== undefined){let data12 = data.rangeX1;if((!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))) && (data12 !== null)){const err36 = {instancePath:instancePath+"/rangeX1",schemaPath:"#/properties/rangeX1/type",keyword:"type",params:{type: schema32.properties.rangeX1.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if((typeof data12 == "number") && (isFinite(data12))){if(data12 > 2147483647 || isNaN(data12)){const err37 = {instancePath:instancePath+"/rangeX1",schemaPath:"#/properties/rangeX1/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data12 < -2147483648 || isNaN(data12)){const err38 = {instancePath:instancePath+"/rangeX1",schemaPath:"#/properties/rangeX1/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}if(data.regionCode !== undefined){let data13 = data.regionCode;if((typeof data13 !== "string") && (data13 !== null)){const err39 = {instancePath:instancePath+"/regionCode",schemaPath:"#/properties/regionCode/type",keyword:"type",params:{type: schema32.properties.regionCode.type},message:"must be string,null"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.sourcePath !== undefined){if(typeof data.sourcePath !== "string"){const err40 = {instancePath:instancePath+"/sourcePath",schemaPath:"#/properties/sourcePath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.streetName !== undefined){let data15 = data.streetName;if((typeof data15 !== "string") && (data15 !== null)){const err41 = {instancePath:instancePath+"/streetName",schemaPath:"#/properties/streetName/type",keyword:"type",params:{type: schema32.properties.streetName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.x !== undefined){let data16 = data.x;if((!(((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16))) && (isFinite(data16)))) && (data16 !== null)){const err42 = {instancePath:instancePath+"/x",schemaPath:"#/$defs/Nullable_i32/type",keyword:"type",params:{type: schema34.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if((typeof data16 == "number") && (isFinite(data16))){if(data16 > 2147483647 || isNaN(data16)){const err43 = {instancePath:instancePath+"/x",schemaPath:"#/$defs/Nullable_i32/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data16 < -2147483648 || isNaN(data16)){const err44 = {instancePath:instancePath+"/x",schemaPath:"#/$defs/Nullable_i32/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}if(data.y !== undefined){let data17 = data.y;if((!(((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17))) && (isFinite(data17)))) && (data17 !== null)){const err45 = {instancePath:instancePath+"/y",schemaPath:"#/$defs/Nullable_i32/type",keyword:"type",params:{type: schema34.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if((typeof data17 == "number") && (isFinite(data17))){if(data17 > 2147483647 || isNaN(data17)){const err46 = {instancePath:instancePath+"/y",schemaPath:"#/$defs/Nullable_i32/maximum",keyword:"maximum",params:{comparison: "<=", limit: 2147483647},message:"must be <= 2147483647"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data17 < -2147483648 || isNaN(data17)){const err47 = {instancePath:instancePath+"/y",schemaPath:"#/$defs/Nullable_i32/minimum",keyword:"minimum",params:{comparison: ">=", limit: -2147483648},message:"must be >= -2147483648"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}}else {const err48 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":{"cy":true,"facing":true,"foothold":true,"mapKey":true,"mapName":true,"mapSourceId":true,"mobRate":true,"mobTime":true,"ordinal":true,"placementCount":true,"placementMapSourceId":true,"rangeX0":true,"rangeX1":true,"regionCode":true,"sourcePath":true,"streetName":true,"x":true,"y":true},"dynamicProps":false,"dynamicItems":false};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.scope === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scope"},message:"must have required property '"+"scope"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.recordKind === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "recordKind"},message:"must have required property '"+"recordKind"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.records === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "records"},message:"must have required property '"+"records"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.contractVersion !== undefined){let data0 = data.contractVersion;if(typeof data0 === "string"){if(!pattern4.test(data0)){const err5 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/pattern",keyword:"pattern",params:{pattern: "^1\\.(0|[1-9][0-9]*)$"},message:"must match pattern \""+"^1\\.(0|[1-9][0-9]*)$"+"\""};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 data1 = data.format;if(typeof data1 !== "string"){const err7 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("mapletip.monster-relationship-pack" !== data1){const err8 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "mapletip.monster-relationship-pack"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.recordKind !== undefined){if(typeof data.recordKind !== "string"){const err9 = {instancePath:instancePath+"/recordKind",schemaPath:"#/properties/recordKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.records !== undefined){let data3 = data.records;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){for(const key0 in data3){let data4 = data3[key0];if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){if(!(validate21(data4[i0], {instancePath:instancePath+"/records/" + key0.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}else {const err10 = {instancePath:instancePath+"/records/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/records/additionalProperties/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}else {const err11 = {instancePath:instancePath+"/records",schemaPath:"#/properties/records/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.scope !== undefined){let data6 = data.scope;if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.family_id === undefined){const err12 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "family_id"},message:"must have required property '"+"family_id"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data6.build_id === undefined){const err13 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "build_id"},message:"must have required property '"+"build_id"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data6.build_id !== undefined){if(typeof data6.build_id !== "string"){const err14 = {instancePath:instancePath+"/scope/build_id",schemaPath:"#/$defs/BuildScope/properties/build_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data6.family_id !== undefined){if(typeof data6.family_id !== "string"){const err15 = {instancePath:instancePath+"/scope/family_id",schemaPath:"#/$defs/BuildScope/properties/family_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"contractVersion":true,"format":true,"recordKind":true,"records":true,"scope":true},"dynamicProps":false,"dynamicItems":false};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/* Generated automatically from Rust-owned wire definitions. Do not edit. */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Product manifest describing published packs and catalog ('product.json').
|
|
5
|
+
*/
|
|
6
|
+
export interface ConnectedProductManifest {
|
|
7
|
+
/**
|
|
8
|
+
* Bounded browse packs with non-overlapping sorted key ranges.
|
|
9
|
+
*/
|
|
10
|
+
browsePacks?: PackDescriptor[];
|
|
11
|
+
catalog: PackDescriptor1;
|
|
12
|
+
/**
|
|
13
|
+
* Wire contract version ('major.minor').
|
|
14
|
+
*/
|
|
15
|
+
contractVersion: string;
|
|
16
|
+
/**
|
|
17
|
+
* Product-scoped evidence pages whose source occurrence has no Monster owner.
|
|
18
|
+
*/
|
|
19
|
+
coreEvidencePages?: PageDescriptor[];
|
|
20
|
+
/**
|
|
21
|
+
* Lazy contract-2.0 core relationship pages.
|
|
22
|
+
*/
|
|
23
|
+
coreRelationshipPacks?: PackDescriptor[];
|
|
24
|
+
/**
|
|
25
|
+
* Product completeness coverage.
|
|
26
|
+
*/
|
|
27
|
+
coverage: "complete" | "partial" | "unknown" | "unsupported";
|
|
28
|
+
/**
|
|
29
|
+
* Bounded detail packs with non-overlapping sorted key ranges.
|
|
30
|
+
*/
|
|
31
|
+
detailPacks: PackDescriptor[];
|
|
32
|
+
/**
|
|
33
|
+
* Optional bounded evidence packs for oversized drop/Quest collections.
|
|
34
|
+
*/
|
|
35
|
+
evidencePacks?: PackDescriptor[];
|
|
36
|
+
/**
|
|
37
|
+
* Format identifier ('mapletip.product-manifest').
|
|
38
|
+
*/
|
|
39
|
+
format: "mapletip.product-manifest";
|
|
40
|
+
/**
|
|
41
|
+
* Optional product-input identity metadata (required for local-D identity products).
|
|
42
|
+
*/
|
|
43
|
+
identity?: ProductIdentityMetadata | null;
|
|
44
|
+
/**
|
|
45
|
+
* Contract-2.0 gzip-6 encoded target used to fill each record pack.
|
|
46
|
+
*/
|
|
47
|
+
packGzipTargetBytes?: number | null;
|
|
48
|
+
packingPolicy: PackSizePolicy;
|
|
49
|
+
/**
|
|
50
|
+
* Product identifier ('monsters').
|
|
51
|
+
*/
|
|
52
|
+
productId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Bounded relationship packs with non-overlapping sorted key ranges.
|
|
55
|
+
*/
|
|
56
|
+
relationshipPacks: PackDescriptor[];
|
|
57
|
+
/**
|
|
58
|
+
* Capabilities a client must understand before consuming this product.
|
|
59
|
+
*/
|
|
60
|
+
requiredClientCapabilities?: string[];
|
|
61
|
+
scope: BuildScope;
|
|
62
|
+
/**
|
|
63
|
+
* Total entity count across all packs.
|
|
64
|
+
*/
|
|
65
|
+
totalEntityCount: number;
|
|
66
|
+
[k: string]: unknown | undefined;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Pack descriptor describing a bounded ordinary JSON file in product manifests.
|
|
70
|
+
*/
|
|
71
|
+
export interface PackDescriptor {
|
|
72
|
+
/**
|
|
73
|
+
* Uncompressed file byte length.
|
|
74
|
+
*/
|
|
75
|
+
byteLength: number;
|
|
76
|
+
/**
|
|
77
|
+
* Number of records contained in this pack.
|
|
78
|
+
*/
|
|
79
|
+
count: number;
|
|
80
|
+
/**
|
|
81
|
+
* Inclusive first key in the pack.
|
|
82
|
+
*/
|
|
83
|
+
firstKey: string;
|
|
84
|
+
/**
|
|
85
|
+
* Inclusive last key in the pack.
|
|
86
|
+
*/
|
|
87
|
+
lastKey: string;
|
|
88
|
+
/**
|
|
89
|
+
* Normalized relative POSIX path.
|
|
90
|
+
*/
|
|
91
|
+
path: string;
|
|
92
|
+
/**
|
|
93
|
+
* SHA-256 digest of the pack bytes.
|
|
94
|
+
*/
|
|
95
|
+
sha256: string;
|
|
96
|
+
[k: string]: unknown | undefined;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Pack descriptor describing a bounded ordinary JSON file in product manifests.
|
|
100
|
+
*/
|
|
101
|
+
export interface PackDescriptor1 {
|
|
102
|
+
/**
|
|
103
|
+
* Uncompressed file byte length.
|
|
104
|
+
*/
|
|
105
|
+
byteLength: number;
|
|
106
|
+
/**
|
|
107
|
+
* Number of records contained in this pack.
|
|
108
|
+
*/
|
|
109
|
+
count: number;
|
|
110
|
+
/**
|
|
111
|
+
* Inclusive first key in the pack.
|
|
112
|
+
*/
|
|
113
|
+
firstKey: string;
|
|
114
|
+
/**
|
|
115
|
+
* Inclusive last key in the pack.
|
|
116
|
+
*/
|
|
117
|
+
lastKey: string;
|
|
118
|
+
/**
|
|
119
|
+
* Normalized relative POSIX path.
|
|
120
|
+
*/
|
|
121
|
+
path: string;
|
|
122
|
+
/**
|
|
123
|
+
* SHA-256 digest of the pack bytes.
|
|
124
|
+
*/
|
|
125
|
+
sha256: string;
|
|
126
|
+
[k: string]: unknown | undefined;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Page descriptor for paged relationship or evidence records.
|
|
130
|
+
*/
|
|
131
|
+
export interface PageDescriptor {
|
|
132
|
+
/**
|
|
133
|
+
* Number of items in this page.
|
|
134
|
+
*/
|
|
135
|
+
count: number;
|
|
136
|
+
/**
|
|
137
|
+
* Bounded record key for direct fetch.
|
|
138
|
+
*/
|
|
139
|
+
recordKey: string;
|
|
140
|
+
/**
|
|
141
|
+
* Record kind ('relationships' or 'evidence').
|
|
142
|
+
*/
|
|
143
|
+
recordKind: string;
|
|
144
|
+
[k: string]: unknown | undefined;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Product-input identity metadata carried only by the new local-D product envelope.
|
|
148
|
+
*/
|
|
149
|
+
export interface ProductIdentityMetadata {
|
|
150
|
+
identityFormat: string;
|
|
151
|
+
inputFingerprint: string;
|
|
152
|
+
optionsFingerprint: string;
|
|
153
|
+
producerFingerprint: string;
|
|
154
|
+
productDigest: string;
|
|
155
|
+
productId: string;
|
|
156
|
+
projectionRevision: string;
|
|
157
|
+
schemaFingerprint: string;
|
|
158
|
+
semanticFingerprint: string;
|
|
159
|
+
[k: string]: unknown | undefined;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Effective packing sizing policy used for generation.
|
|
163
|
+
*/
|
|
164
|
+
export interface PackSizePolicy {
|
|
165
|
+
/**
|
|
166
|
+
* Maximum allowable uncompressed byte size for any pack (default: 1 MiB).
|
|
167
|
+
*/
|
|
168
|
+
maxBytes: number;
|
|
169
|
+
/**
|
|
170
|
+
* Target uncompressed byte size before flushing a pack (default: 512 KiB).
|
|
171
|
+
*/
|
|
172
|
+
targetBytes: number;
|
|
173
|
+
[k: string]: unknown | undefined;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Build scope.
|
|
177
|
+
*/
|
|
178
|
+
export interface BuildScope {
|
|
179
|
+
/**
|
|
180
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
181
|
+
*/
|
|
182
|
+
build_id: string;
|
|
183
|
+
/**
|
|
184
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
185
|
+
*/
|
|
186
|
+
family_id: string;
|
|
187
|
+
[k: string]: unknown | undefined;
|
|
188
|
+
}
|