@xyo-network/boundwitness-model 2.75.14 → 2.75.16

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 (42) hide show
  1. package/dist/docs.json +57 -57
  2. package/package.json +4 -4
  3. package/dist/browser/isBoundWitnessPayload.cjs +0 -33
  4. package/dist/browser/isBoundWitnessPayload.cjs.map +0 -1
  5. package/dist/browser/isBoundWitnessPayload.js +0 -12
  6. package/dist/browser/isBoundWitnessPayload.js.map +0 -1
  7. package/dist/browser/models/BoundWitness.cjs +0 -34
  8. package/dist/browser/models/BoundWitness.cjs.map +0 -1
  9. package/dist/browser/models/BoundWitness.js +0 -11
  10. package/dist/browser/models/BoundWitness.js.map +0 -1
  11. package/dist/browser/models/BoundWitnessJsonSchema.cjs +0 -41
  12. package/dist/browser/models/BoundWitnessJsonSchema.cjs.map +0 -1
  13. package/dist/browser/models/BoundWitnessJsonSchema.js +0 -20
  14. package/dist/browser/models/BoundWitnessJsonSchema.js.map +0 -1
  15. package/dist/browser/models/BoundWitnessSchema.cjs +0 -27
  16. package/dist/browser/models/BoundWitnessSchema.cjs.map +0 -1
  17. package/dist/browser/models/BoundWitnessSchema.js +0 -6
  18. package/dist/browser/models/BoundWitnessSchema.js.map +0 -1
  19. package/dist/browser/models/index.cjs +0 -53
  20. package/dist/browser/models/index.cjs.map +0 -1
  21. package/dist/browser/models/index.js +0 -30
  22. package/dist/browser/models/index.js.map +0 -1
  23. package/dist/node/isBoundWitnessPayload.js +0 -37
  24. package/dist/node/isBoundWitnessPayload.js.map +0 -1
  25. package/dist/node/isBoundWitnessPayload.mjs +0 -12
  26. package/dist/node/isBoundWitnessPayload.mjs.map +0 -1
  27. package/dist/node/models/BoundWitness.js +0 -39
  28. package/dist/node/models/BoundWitness.js.map +0 -1
  29. package/dist/node/models/BoundWitness.mjs +0 -11
  30. package/dist/node/models/BoundWitness.mjs.map +0 -1
  31. package/dist/node/models/BoundWitnessJsonSchema.js +0 -45
  32. package/dist/node/models/BoundWitnessJsonSchema.js.map +0 -1
  33. package/dist/node/models/BoundWitnessJsonSchema.mjs +0 -20
  34. package/dist/node/models/BoundWitnessJsonSchema.mjs.map +0 -1
  35. package/dist/node/models/BoundWitnessSchema.js +0 -31
  36. package/dist/node/models/BoundWitnessSchema.js.map +0 -1
  37. package/dist/node/models/BoundWitnessSchema.mjs +0 -6
  38. package/dist/node/models/BoundWitnessSchema.mjs.map +0 -1
  39. package/dist/node/models/index.js +0 -60
  40. package/dist/node/models/index.js.map +0 -1
  41. package/dist/node/models/index.mjs +0 -30
  42. package/dist/node/models/index.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,qBAAyC;;;ADmB/C,IAAM,iBAAiB,CAAC,MAA0C,GAAG,WAAW;AAChF,IAAM,kBAAkB,CAAC,MAAqC,GAAG,WAAW;","names":[]}
@@ -1,11 +0,0 @@
1
- // src/models/BoundWitnessSchema.ts
2
- var BoundWitnessSchema = "network.xyo.boundwitness";
3
-
4
- // src/models/BoundWitness.ts
5
- var isBoundWitness = (x) => x?.schema === BoundWitnessSchema;
6
- var notBoundWitness = (x) => x?.schema !== BoundWitnessSchema;
7
- export {
8
- isBoundWitness,
9
- notBoundWitness
10
- };
11
- //# sourceMappingURL=BoundWitness.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n"],"mappings":";AACO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,MAA0C,GAAG,WAAW;AAChF,IAAM,kBAAkB,CAAC,MAAqC,GAAG,WAAW;","names":[]}
@@ -1,41 +0,0 @@
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/models/BoundWitnessJsonSchema.ts
21
- var BoundWitnessJsonSchema_exports = {};
22
- __export(BoundWitnessJsonSchema_exports, {
23
- BoundWitnessJsonSchema: () => BoundWitnessJsonSchema
24
- });
25
- module.exports = __toCommonJS(BoundWitnessJsonSchema_exports);
26
- var BoundWitnessJsonSchema = () => {
27
- return {
28
- $id: "https://schemas.xyo.network/2.0/boundwitness",
29
- additionalProperties: false,
30
- properties: {
31
- addresses: { items: { type: "string" }, type: "array" },
32
- payload_hashes: { items: { type: "string" }, type: "array" },
33
- payload_schemas: { items: { type: "string" }, type: "array" },
34
- previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
35
- schema: { type: "string" }
36
- },
37
- required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
38
- type: "object"
39
- };
40
- };
41
- //# sourceMappingURL=BoundWitnessJsonSchema.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessJsonSchema.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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;","names":[]}
@@ -1,20 +0,0 @@
1
- // src/models/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
- export {
18
- BoundWitnessJsonSchema
19
- };
20
- //# sourceMappingURL=BoundWitnessJsonSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessJsonSchema.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"],"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;","names":[]}
@@ -1,27 +0,0 @@
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/models/BoundWitnessSchema.ts
21
- var BoundWitnessSchema_exports = {};
22
- __export(BoundWitnessSchema_exports, {
23
- BoundWitnessSchema: () => BoundWitnessSchema
24
- });
25
- module.exports = __toCommonJS(BoundWitnessSchema_exports);
26
- var BoundWitnessSchema = "network.xyo.boundwitness";
27
- //# sourceMappingURL=BoundWitnessSchema.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,qBAAyC;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/models/BoundWitnessSchema.ts
2
- var BoundWitnessSchema = "network.xyo.boundwitness";
3
- export {
4
- BoundWitnessSchema
5
- };
6
- //# sourceMappingURL=BoundWitnessSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";AACO,IAAM,qBAAyC;","names":[]}
@@ -1,53 +0,0 @@
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/models/index.ts
21
- var models_exports = {};
22
- __export(models_exports, {
23
- BoundWitnessJsonSchema: () => BoundWitnessJsonSchema,
24
- BoundWitnessSchema: () => BoundWitnessSchema,
25
- isBoundWitness: () => isBoundWitness,
26
- notBoundWitness: () => notBoundWitness
27
- });
28
- module.exports = __toCommonJS(models_exports);
29
-
30
- // src/models/BoundWitnessSchema.ts
31
- var BoundWitnessSchema = "network.xyo.boundwitness";
32
-
33
- // src/models/BoundWitness.ts
34
- var isBoundWitness = (x) => x?.schema === BoundWitnessSchema;
35
- var notBoundWitness = (x) => x?.schema !== BoundWitnessSchema;
36
-
37
- // src/models/BoundWitnessJsonSchema.ts
38
- var BoundWitnessJsonSchema = () => {
39
- return {
40
- $id: "https://schemas.xyo.network/2.0/boundwitness",
41
- additionalProperties: false,
42
- properties: {
43
- addresses: { items: { type: "string" }, type: "array" },
44
- payload_hashes: { items: { type: "string" }, type: "array" },
45
- payload_schemas: { items: { type: "string" }, type: "array" },
46
- previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
47
- schema: { type: "string" }
48
- },
49
- required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
50
- type: "object"
51
- };
52
- };
53
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/index.ts","../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["export * from './BoundWitness'\nexport * from './BoundWitnessJsonSchema'\nexport * from './BoundWitnessSchema'\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,MAA0C,GAAG,WAAW;AAChF,IAAM,kBAAkB,CAAC,MAAqC,GAAG,WAAW;;;AClB5E,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;","names":[]}
@@ -1,30 +0,0 @@
1
- // src/models/BoundWitnessSchema.ts
2
- var BoundWitnessSchema = "network.xyo.boundwitness";
3
-
4
- // src/models/BoundWitness.ts
5
- var isBoundWitness = (x) => x?.schema === BoundWitnessSchema;
6
- var notBoundWitness = (x) => x?.schema !== BoundWitnessSchema;
7
-
8
- // src/models/BoundWitnessJsonSchema.ts
9
- var BoundWitnessJsonSchema = () => {
10
- return {
11
- $id: "https://schemas.xyo.network/2.0/boundwitness",
12
- additionalProperties: false,
13
- properties: {
14
- addresses: { items: { type: "string" }, type: "array" },
15
- payload_hashes: { items: { type: "string" }, type: "array" },
16
- payload_schemas: { items: { type: "string" }, type: "array" },
17
- previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
18
- schema: { type: "string" }
19
- },
20
- required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
21
- type: "object"
22
- };
23
- };
24
- export {
25
- BoundWitnessJsonSchema,
26
- BoundWitnessSchema,
27
- isBoundWitness,
28
- notBoundWitness
29
- };
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\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"],"mappings":";AACO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,MAA0C,GAAG,WAAW;AAChF,IAAM,kBAAkB,CAAC,MAAqC,GAAG,WAAW;;;AClB5E,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;","names":[]}
@@ -1,37 +0,0 @@
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/isBoundWitnessPayload.ts
21
- var isBoundWitnessPayload_exports = {};
22
- __export(isBoundWitnessPayload_exports, {
23
- isBoundWitnessPayload: () => isBoundWitnessPayload
24
- });
25
- module.exports = __toCommonJS(isBoundWitnessPayload_exports);
26
- var import_payload_model = require("@xyo-network/payload-model");
27
-
28
- // src/models/BoundWitnessSchema.ts
29
- var BoundWitnessSchema = "network.xyo.boundwitness";
30
-
31
- // src/isBoundWitnessPayload.ts
32
- var isBoundWitnessPayload = (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema);
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- isBoundWitnessPayload
36
- });
37
- //# sourceMappingURL=isBoundWitnessPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/isBoundWitnessPayload.ts","../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './models'\n\nexport const isBoundWitnessPayload = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAsC;;;ACC/B,IAAM,qBAAyC;;;ADG/C,IAAM,4BAAwB,4CAAoC,kBAAkB;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/isBoundWitnessPayload.ts
2
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
3
-
4
- // src/models/BoundWitnessSchema.ts
5
- var BoundWitnessSchema = "network.xyo.boundwitness";
6
-
7
- // src/isBoundWitnessPayload.ts
8
- var isBoundWitnessPayload = isPayloadOfSchemaType(BoundWitnessSchema);
9
- export {
10
- isBoundWitnessPayload
11
- };
12
- //# sourceMappingURL=isBoundWitnessPayload.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/isBoundWitnessPayload.ts","../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './models'\n\nexport const isBoundWitnessPayload = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";AAAA,SAAS,6BAA6B;;;ACC/B,IAAM,qBAAyC;;;ADG/C,IAAM,wBAAwB,sBAAoC,kBAAkB;","names":[]}
@@ -1,39 +0,0 @@
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/models/BoundWitness.ts
21
- var BoundWitness_exports = {};
22
- __export(BoundWitness_exports, {
23
- isBoundWitness: () => isBoundWitness,
24
- notBoundWitness: () => notBoundWitness
25
- });
26
- module.exports = __toCommonJS(BoundWitness_exports);
27
-
28
- // src/models/BoundWitnessSchema.ts
29
- var BoundWitnessSchema = "network.xyo.boundwitness";
30
-
31
- // src/models/BoundWitness.ts
32
- var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
33
- var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
36
- isBoundWitness,
37
- notBoundWitness
38
- });
39
- //# sourceMappingURL=BoundWitness.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,qBAAyC;;;ADmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;","names":[]}
@@ -1,11 +0,0 @@
1
- // src/models/BoundWitnessSchema.ts
2
- var BoundWitnessSchema = "network.xyo.boundwitness";
3
-
4
- // src/models/BoundWitness.ts
5
- var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
6
- var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
7
- export {
8
- isBoundWitness,
9
- notBoundWitness
10
- };
11
- //# sourceMappingURL=BoundWitness.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n"],"mappings":";AACO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;","names":[]}
@@ -1,45 +0,0 @@
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/models/BoundWitnessJsonSchema.ts
21
- var BoundWitnessJsonSchema_exports = {};
22
- __export(BoundWitnessJsonSchema_exports, {
23
- BoundWitnessJsonSchema: () => BoundWitnessJsonSchema
24
- });
25
- module.exports = __toCommonJS(BoundWitnessJsonSchema_exports);
26
- var BoundWitnessJsonSchema = () => {
27
- return {
28
- $id: "https://schemas.xyo.network/2.0/boundwitness",
29
- additionalProperties: false,
30
- properties: {
31
- addresses: { items: { type: "string" }, type: "array" },
32
- payload_hashes: { items: { type: "string" }, type: "array" },
33
- payload_schemas: { items: { type: "string" }, type: "array" },
34
- previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
35
- schema: { type: "string" }
36
- },
37
- required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
38
- type: "object"
39
- };
40
- };
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- BoundWitnessJsonSchema
44
- });
45
- //# sourceMappingURL=BoundWitnessJsonSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessJsonSchema.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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;","names":[]}
@@ -1,20 +0,0 @@
1
- // src/models/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
- export {
18
- BoundWitnessJsonSchema
19
- };
20
- //# sourceMappingURL=BoundWitnessJsonSchema.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessJsonSchema.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"],"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;","names":[]}
@@ -1,31 +0,0 @@
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/models/BoundWitnessSchema.ts
21
- var BoundWitnessSchema_exports = {};
22
- __export(BoundWitnessSchema_exports, {
23
- BoundWitnessSchema: () => BoundWitnessSchema
24
- });
25
- module.exports = __toCommonJS(BoundWitnessSchema_exports);
26
- var BoundWitnessSchema = "network.xyo.boundwitness";
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- BoundWitnessSchema
30
- });
31
- //# sourceMappingURL=BoundWitnessSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,qBAAyC;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/models/BoundWitnessSchema.ts
2
- var BoundWitnessSchema = "network.xyo.boundwitness";
3
- export {
4
- BoundWitnessSchema
5
- };
6
- //# sourceMappingURL=BoundWitnessSchema.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";AACO,IAAM,qBAAyC;","names":[]}
@@ -1,60 +0,0 @@
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/models/index.ts
21
- var models_exports = {};
22
- __export(models_exports, {
23
- BoundWitnessJsonSchema: () => BoundWitnessJsonSchema,
24
- BoundWitnessSchema: () => BoundWitnessSchema,
25
- isBoundWitness: () => isBoundWitness,
26
- notBoundWitness: () => notBoundWitness
27
- });
28
- module.exports = __toCommonJS(models_exports);
29
-
30
- // src/models/BoundWitnessSchema.ts
31
- var BoundWitnessSchema = "network.xyo.boundwitness";
32
-
33
- // src/models/BoundWitness.ts
34
- var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
35
- var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
36
-
37
- // src/models/BoundWitnessJsonSchema.ts
38
- var BoundWitnessJsonSchema = () => {
39
- return {
40
- $id: "https://schemas.xyo.network/2.0/boundwitness",
41
- additionalProperties: false,
42
- properties: {
43
- addresses: { items: { type: "string" }, type: "array" },
44
- payload_hashes: { items: { type: "string" }, type: "array" },
45
- payload_schemas: { items: { type: "string" }, type: "array" },
46
- previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
47
- schema: { type: "string" }
48
- },
49
- required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
50
- type: "object"
51
- };
52
- };
53
- // Annotate the CommonJS export names for ESM import in node:
54
- 0 && (module.exports = {
55
- BoundWitnessJsonSchema,
56
- BoundWitnessSchema,
57
- isBoundWitness,
58
- notBoundWitness
59
- });
60
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/index.ts","../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["export * from './BoundWitness'\nexport * from './BoundWitnessJsonSchema'\nexport * from './BoundWitnessSchema'\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;;;AClB5E,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;","names":[]}
@@ -1,30 +0,0 @@
1
- // src/models/BoundWitnessSchema.ts
2
- var BoundWitnessSchema = "network.xyo.boundwitness";
3
-
4
- // src/models/BoundWitness.ts
5
- var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
6
- var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
7
-
8
- // src/models/BoundWitnessJsonSchema.ts
9
- var BoundWitnessJsonSchema = () => {
10
- return {
11
- $id: "https://schemas.xyo.network/2.0/boundwitness",
12
- additionalProperties: false,
13
- properties: {
14
- addresses: { items: { type: "string" }, type: "array" },
15
- payload_hashes: { items: { type: "string" }, type: "array" },
16
- payload_schemas: { items: { type: "string" }, type: "array" },
17
- previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
18
- schema: { type: "string" }
19
- },
20
- required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
21
- type: "object"
22
- };
23
- };
24
- export {
25
- BoundWitnessJsonSchema,
26
- BoundWitnessSchema,
27
- isBoundWitness,
28
- notBoundWitness
29
- };
30
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\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"],"mappings":";AACO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;;;AClB5E,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;","names":[]}