@xyo-network/boundwitness-model 2.84.6 → 2.84.7
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/dist/node/index.cjs +72 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +5 -38
- package/dist/node/index.js.map +1 -1
- package/package.json +11 -11
- package/dist/node/index.mjs +0 -39
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
BoundWitnessJsonSchema: () => BoundWitnessJsonSchema,
|
|
24
|
+
BoundWitnessSchema: () => BoundWitnessSchema,
|
|
25
|
+
QueryBoundWitnessSchema: () => QueryBoundWitnessSchema,
|
|
26
|
+
isBoundWitness: () => isBoundWitness,
|
|
27
|
+
isBoundWitnessPayload: () => isBoundWitnessPayload,
|
|
28
|
+
isQueryBoundWitness: () => isQueryBoundWitness,
|
|
29
|
+
notBoundWitness: () => notBoundWitness
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
|
32
|
+
|
|
33
|
+
// src/BoundWitness/BoundWitnessJsonSchema.ts
|
|
34
|
+
var BoundWitnessJsonSchema = () => {
|
|
35
|
+
return {
|
|
36
|
+
$id: "https://schemas.xyo.network/2.0/boundwitness",
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
properties: {
|
|
39
|
+
addresses: { items: { type: "string" }, type: "array" },
|
|
40
|
+
payload_hashes: { items: { type: "string" }, type: "array" },
|
|
41
|
+
payload_schemas: { items: { type: "string" }, type: "array" },
|
|
42
|
+
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
|
|
43
|
+
schema: { type: "string" }
|
|
44
|
+
},
|
|
45
|
+
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
|
|
46
|
+
type: "object"
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// src/BoundWitness/BoundWitnessSchema.ts
|
|
51
|
+
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
52
|
+
|
|
53
|
+
// src/isBoundWitness.ts
|
|
54
|
+
var import_payload_model = require("@xyo-network/payload-model");
|
|
55
|
+
var isBoundWitness = (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema);
|
|
56
|
+
var notBoundWitness = (0, import_payload_model.notPayloadOfSchemaType)(BoundWitnessSchema);
|
|
57
|
+
var isBoundWitnessPayload = isBoundWitness;
|
|
58
|
+
|
|
59
|
+
// src/QueryBoundWitness.ts
|
|
60
|
+
var QueryBoundWitnessSchema = BoundWitnessSchema;
|
|
61
|
+
var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0;
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
BoundWitnessJsonSchema,
|
|
65
|
+
BoundWitnessSchema,
|
|
66
|
+
QueryBoundWitnessSchema,
|
|
67
|
+
isBoundWitness,
|
|
68
|
+
isBoundWitnessPayload,
|
|
69
|
+
isQueryBoundWitness,
|
|
70
|
+
notBoundWitness
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/BoundWitness/BoundWitnessJsonSchema.ts","../../src/BoundWitness/BoundWitnessSchema.ts","../../src/isBoundWitness.ts","../../src/QueryBoundWitness.ts"],"sourcesContent":["export * from './BoundWitness'\nexport * from './isBoundWitness'\nexport * from './QueryBoundWitness'\n","//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { isPayloadOfSchemaType, notPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness'\n\nexport const isBoundWitness = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness'\nimport { isBoundWitness } from './isBoundWitness'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n query: string\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: Payload | null): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;;;AChBO,IAAM,qBAAyC;;;ACDtD,2BAA8D;AAIvD,IAAM,qBAAiB,4CAAoC,kBAAkB;AAC7E,IAAM,sBAAkB,6CAAqC,kBAAkB;AAG/E,IAAM,wBAAwB;;;ACF9B,IAAM,0BAAmD;AAQzD,IAAM,sBAAsB,CAAC,MAA+C,eAAe,CAAC,MAAM,uBAAyB,WAAU;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
BoundWitnessJsonSchema: () => BoundWitnessJsonSchema,
|
|
24
|
-
BoundWitnessSchema: () => BoundWitnessSchema,
|
|
25
|
-
QueryBoundWitnessSchema: () => QueryBoundWitnessSchema,
|
|
26
|
-
isBoundWitness: () => isBoundWitness,
|
|
27
|
-
isBoundWitnessPayload: () => isBoundWitnessPayload,
|
|
28
|
-
isQueryBoundWitness: () => isQueryBoundWitness,
|
|
29
|
-
notBoundWitness: () => notBoundWitness
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(src_exports);
|
|
32
|
-
|
|
33
1
|
// src/BoundWitness/BoundWitnessJsonSchema.ts
|
|
34
2
|
var BoundWitnessJsonSchema = () => {
|
|
35
3
|
return {
|
|
@@ -51,16 +19,15 @@ var BoundWitnessJsonSchema = () => {
|
|
|
51
19
|
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
52
20
|
|
|
53
21
|
// src/isBoundWitness.ts
|
|
54
|
-
|
|
55
|
-
var isBoundWitness =
|
|
56
|
-
var notBoundWitness =
|
|
22
|
+
import { isPayloadOfSchemaType, notPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
23
|
+
var isBoundWitness = isPayloadOfSchemaType(BoundWitnessSchema);
|
|
24
|
+
var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema);
|
|
57
25
|
var isBoundWitnessPayload = isBoundWitness;
|
|
58
26
|
|
|
59
27
|
// src/QueryBoundWitness.ts
|
|
60
28
|
var QueryBoundWitnessSchema = BoundWitnessSchema;
|
|
61
29
|
var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0;
|
|
62
|
-
|
|
63
|
-
0 && (module.exports = {
|
|
30
|
+
export {
|
|
64
31
|
BoundWitnessJsonSchema,
|
|
65
32
|
BoundWitnessSchema,
|
|
66
33
|
QueryBoundWitnessSchema,
|
|
@@ -68,5 +35,5 @@ var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.qu
|
|
|
68
35
|
isBoundWitnessPayload,
|
|
69
36
|
isQueryBoundWitness,
|
|
70
37
|
notBoundWitness
|
|
71
|
-
}
|
|
38
|
+
};
|
|
72
39
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/BoundWitness/BoundWitnessJsonSchema.ts","../../src/BoundWitness/BoundWitnessSchema.ts","../../src/isBoundWitness.ts","../../src/QueryBoundWitness.ts"],"sourcesContent":["//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { isPayloadOfSchemaType, notPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness'\n\nexport const isBoundWitness = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness'\nimport { isBoundWitness } from './isBoundWitness'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n query: string\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: Payload | null): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\n"],"mappings":";AAGO,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;;;AChBO,IAAM,qBAAyC;;;ACDtD,SAAS,uBAAuB,8BAA8B;AAIvD,IAAM,iBAAiB,sBAAoC,kBAAkB;AAC7E,IAAM,kBAAkB,uBAAqC,kBAAkB;AAG/E,IAAM,wBAAwB;;;ACF9B,IAAM,0BAAmD;AAQzD,IAAM,sBAAsB,CAAC,MAA+C,eAAe,CAAC,MAAM,uBAAyB,WAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -11,15 +11,14 @@
|
|
|
11
11
|
},
|
|
12
12
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
15
|
-
"@xylabs/tsconfig": "^3.2.
|
|
14
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.24",
|
|
15
|
+
"@xylabs/tsconfig": "^3.2.24",
|
|
16
16
|
"typescript": "^5.3.3"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@xyo-network/object": "~2.84.
|
|
20
|
-
"@xyo-network/payload-model": "~2.84.
|
|
19
|
+
"@xyo-network/object": "~2.84.7",
|
|
20
|
+
"@xyo-network/payload-model": "~2.84.7"
|
|
21
21
|
},
|
|
22
|
-
"docs": "dist/docs.json",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"browser": {
|
|
@@ -34,19 +33,19 @@
|
|
|
34
33
|
},
|
|
35
34
|
"node": {
|
|
36
35
|
"require": {
|
|
37
|
-
"types": "./dist/node/index.d.
|
|
38
|
-
"default": "./dist/node/index.
|
|
36
|
+
"types": "./dist/node/index.d.cts",
|
|
37
|
+
"default": "./dist/node/index.cjs"
|
|
39
38
|
},
|
|
40
39
|
"import": {
|
|
41
40
|
"types": "./dist/node/index.d.mts",
|
|
42
|
-
"default": "./dist/node/index.
|
|
41
|
+
"default": "./dist/node/index.js"
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
"./package.json": "./package.json"
|
|
47
46
|
},
|
|
48
|
-
"main": "dist/node/index.
|
|
49
|
-
"module": "dist/node/index.
|
|
47
|
+
"main": "dist/node/index.cjs",
|
|
48
|
+
"module": "dist/node/index.js",
|
|
50
49
|
"homepage": "https://xyo.network",
|
|
51
50
|
"license": "LGPL-3.0-only",
|
|
52
51
|
"publishConfig": {
|
|
@@ -58,5 +57,6 @@
|
|
|
58
57
|
},
|
|
59
58
|
"sideEffects": false,
|
|
60
59
|
"types": "dist/node/index.d.ts",
|
|
61
|
-
"version": "2.84.
|
|
60
|
+
"version": "2.84.7",
|
|
61
|
+
"type": "module"
|
|
62
62
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// src/BoundWitness/BoundWitnessJsonSchema.ts
|
|
2
|
-
var BoundWitnessJsonSchema = () => {
|
|
3
|
-
return {
|
|
4
|
-
$id: "https://schemas.xyo.network/2.0/boundwitness",
|
|
5
|
-
additionalProperties: false,
|
|
6
|
-
properties: {
|
|
7
|
-
addresses: { items: { type: "string" }, type: "array" },
|
|
8
|
-
payload_hashes: { items: { type: "string" }, type: "array" },
|
|
9
|
-
payload_schemas: { items: { type: "string" }, type: "array" },
|
|
10
|
-
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
|
|
11
|
-
schema: { type: "string" }
|
|
12
|
-
},
|
|
13
|
-
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
|
|
14
|
-
type: "object"
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// src/BoundWitness/BoundWitnessSchema.ts
|
|
19
|
-
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
20
|
-
|
|
21
|
-
// src/isBoundWitness.ts
|
|
22
|
-
import { isPayloadOfSchemaType, notPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
23
|
-
var isBoundWitness = isPayloadOfSchemaType(BoundWitnessSchema);
|
|
24
|
-
var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema);
|
|
25
|
-
var isBoundWitnessPayload = isBoundWitness;
|
|
26
|
-
|
|
27
|
-
// src/QueryBoundWitness.ts
|
|
28
|
-
var QueryBoundWitnessSchema = BoundWitnessSchema;
|
|
29
|
-
var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0;
|
|
30
|
-
export {
|
|
31
|
-
BoundWitnessJsonSchema,
|
|
32
|
-
BoundWitnessSchema,
|
|
33
|
-
QueryBoundWitnessSchema,
|
|
34
|
-
isBoundWitness,
|
|
35
|
-
isBoundWitnessPayload,
|
|
36
|
-
isQueryBoundWitness,
|
|
37
|
-
notBoundWitness
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/BoundWitness/BoundWitnessJsonSchema.ts","../../src/BoundWitness/BoundWitnessSchema.ts","../../src/isBoundWitness.ts","../../src/QueryBoundWitness.ts"],"sourcesContent":["//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { isPayloadOfSchemaType, notPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness'\n\nexport const isBoundWitness = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness'\nimport { isBoundWitness } from './isBoundWitness'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n query: string\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: Payload | null): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\n"],"mappings":";AAGO,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;;;AChBO,IAAM,qBAAyC;;;ACDtD,SAAS,uBAAuB,8BAA8B;AAIvD,IAAM,iBAAiB,sBAAoC,kBAAkB;AAC7E,IAAM,kBAAkB,uBAAqC,kBAAkB;AAG/E,IAAM,wBAAwB;;;ACF9B,IAAM,0BAAmD;AAQzD,IAAM,sBAAsB,CAAC,MAA+C,eAAe,CAAC,MAAM,uBAAyB,WAAU;","names":[]}
|