@xyo-network/boundwitness-model 2.110.10 → 2.110.12

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.
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -35,64 +34,35 @@ __export(src_exports, {
35
34
  module.exports = __toCommonJS(src_exports);
36
35
 
37
36
  // src/BoundWitness/BoundWitnessJsonSchema.ts
38
- var BoundWitnessJsonSchema = /* @__PURE__ */ __name(() => {
37
+ var BoundWitnessJsonSchema = () => {
39
38
  return {
40
39
  $id: "https://schemas.xyo.network/2.0/boundwitness",
41
40
  additionalProperties: false,
42
41
  properties: {
43
- addresses: {
44
- items: {
45
- type: "string"
46
- },
47
- type: "array"
48
- },
49
- payload_hashes: {
50
- items: {
51
- type: "string"
52
- },
53
- type: "array"
54
- },
55
- payload_schemas: {
56
- items: {
57
- type: "string"
58
- },
59
- type: "array"
60
- },
61
- previous_hashes: {
62
- items: {
63
- nullable: true,
64
- type: "string"
65
- },
66
- type: "array"
67
- },
68
- schema: {
69
- type: "string"
70
- }
42
+ addresses: { items: { type: "string" }, type: "array" },
43
+ payload_hashes: { items: { type: "string" }, type: "array" },
44
+ payload_schemas: { items: { type: "string" }, type: "array" },
45
+ previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
46
+ schema: { type: "string" }
71
47
  },
72
- required: [
73
- "addresses",
74
- "payload_hashes",
75
- "payload_schemas",
76
- "previous_hashes",
77
- "schema"
78
- ],
48
+ required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
79
49
  type: "object"
80
50
  };
81
- }, "BoundWitnessJsonSchema");
51
+ };
82
52
 
83
53
  // src/BoundWitness/BoundWitnessSchema.ts
84
54
  var BoundWitnessSchema = "network.xyo.boundwitness";
85
55
 
86
56
  // src/isBoundWitness.ts
87
57
  var import_payload_model = require("@xyo-network/payload-model");
88
- var isBoundWitness = /* @__PURE__ */ __name((value) => (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema)(value), "isBoundWitness");
89
- var isBoundWitnessWithMeta = /* @__PURE__ */ __name((value) => (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(BoundWitnessSchema)(value), "isBoundWitnessWithMeta");
58
+ var isBoundWitness = (value) => (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema)(value);
59
+ var isBoundWitnessWithMeta = (value) => (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(BoundWitnessSchema)(value);
90
60
  var notBoundWitness = (0, import_payload_model.notPayloadOfSchemaType)(BoundWitnessSchema);
91
- var asBoundWitness = /* @__PURE__ */ __name((payload) => isBoundWitness(payload) ? payload : void 0, "asBoundWitness");
61
+ var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0;
92
62
  var isBoundWitnessPayload = isBoundWitness;
93
63
 
94
64
  // src/QueryBoundWitness.ts
95
65
  var QueryBoundWitnessSchema = BoundWitnessSchema;
96
- var isQueryBoundWitness = /* @__PURE__ */ __name((x) => isBoundWitness(x) && x?.query !== void 0, "isQueryBoundWitness");
97
- var isQueryBoundWitnessWithMeta = /* @__PURE__ */ __name((x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0, "isQueryBoundWitnessWithMeta");
66
+ var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0;
67
+ var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0;
98
68
  //# sourceMappingURL=index.cjs.map
@@ -1 +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/index.js'\nexport * from './isBoundWitness.js'\nexport * from './QueryBoundWitness.js'\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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;ACGO,IAAMA,yBAAyB,6BAAA;AACpC,SAAO;IACLC,KAAK;IACLC,sBAAsB;IACtBC,YAAY;MACVC,WAAW;QAAEC,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MACtDC,gBAAgB;QAAEF,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC3DE,iBAAiB;QAAEH,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5DG,iBAAiB;QAAEJ,OAAO;UAAEK,UAAU;UAAMJ,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5EK,QAAQ;QAAEL,MAAM;MAAS;IAC3B;IACAM,UAAU;MAAC;MAAa;MAAkB;MAAmB;MAAmB;;IAChFN,MAAM;EACR;AACF,GAdsC;;;ACF/B,IAAMO,qBAAyC;;;ACDtD,2BAAuG;AAIhG,IAAMC,iBAAiB,wBAACC,cAA0CC,4CAAoCC,kBAAAA,EAAoBF,KAAAA,GAAnG;AACvB,IAAMG,yBAAyB,wBAACH,cACrCI,oDAA4CF,kBAAAA,EAAoBF,KAAAA,GAD5B;AAE/B,IAAMK,sBAAkBC,6CAAqCJ,kBAAAA;AAE7D,IAAMK,iBAAiB,wBAA4DC,YACxFT,eAAeS,OAAAA,IAAYA,UAAgBC,QADf;AAIvB,IAAMC,wBAAwBX;;;ACN9B,IAAMY,0BAAmDC;AASzD,IAAMC,sBAAsB,wBAACC,MAAwCC,eAAeD,CAAAA,KAAOA,GAAyBE,UAAUC,QAAlG;AAC5B,IAAMC,8BAA8B,wBAACJ,MAC1CC,eAAeD,CAAAA,KAAMK,uBAAuBL,CAAAA,KAAOA,GAAmCE,UAAUC,QADvD;","names":["BoundWitnessJsonSchema","$id","additionalProperties","properties","addresses","items","type","payload_hashes","payload_schemas","previous_hashes","nullable","schema","required","BoundWitnessSchema","isBoundWitness","value","isPayloadOfSchemaType","BoundWitnessSchema","isBoundWitnessWithMeta","isPayloadOfSchemaTypeWithMeta","notBoundWitness","notPayloadOfSchemaType","asBoundWitness","payload","undefined","isBoundWitnessPayload","QueryBoundWitnessSchema","BoundWitnessSchema","isQueryBoundWitness","x","isBoundWitness","query","undefined","isQueryBoundWitnessWithMeta","isBoundWitnessWithMeta"]}
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/index.js'\nexport * from './isBoundWitness.js'\nexport * from './QueryBoundWitness.js'\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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;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,2BAAuG;AAIhG,IAAM,iBAAiB,CAAC,cAA0C,4CAAoC,kBAAkB,EAAE,KAAK;AAC/H,IAAM,yBAAyB,CAAC,cACrC,oDAA4C,kBAAkB,EAAE,KAAK;AAChE,IAAM,sBAAkB,6CAAqC,kBAAkB;AAE/E,IAAM,iBAAiB,CAA4D,YACxF,eAAe,OAAO,IAAK,UAAgB;AAGtC,IAAM,wBAAwB;;;ACN9B,IAAM,0BAAmD;AASzD,IAAM,sBAAsB,CAAC,MAAwC,eAAe,CAAC,KAAM,GAAyB,UAAU;AAC9H,IAAM,8BAA8B,CAAC,MAC1C,eAAe,CAAC,KAAK,uBAAuB,CAAC,KAAM,GAAmC,UAAU;","names":[]}
@@ -1,67 +1,35 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/BoundWitness/BoundWitnessJsonSchema.ts
5
- var BoundWitnessJsonSchema = /* @__PURE__ */ __name(() => {
2
+ var BoundWitnessJsonSchema = () => {
6
3
  return {
7
4
  $id: "https://schemas.xyo.network/2.0/boundwitness",
8
5
  additionalProperties: false,
9
6
  properties: {
10
- addresses: {
11
- items: {
12
- type: "string"
13
- },
14
- type: "array"
15
- },
16
- payload_hashes: {
17
- items: {
18
- type: "string"
19
- },
20
- type: "array"
21
- },
22
- payload_schemas: {
23
- items: {
24
- type: "string"
25
- },
26
- type: "array"
27
- },
28
- previous_hashes: {
29
- items: {
30
- nullable: true,
31
- type: "string"
32
- },
33
- type: "array"
34
- },
35
- schema: {
36
- type: "string"
37
- }
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" }
38
12
  },
39
- required: [
40
- "addresses",
41
- "payload_hashes",
42
- "payload_schemas",
43
- "previous_hashes",
44
- "schema"
45
- ],
13
+ required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
46
14
  type: "object"
47
15
  };
48
- }, "BoundWitnessJsonSchema");
16
+ };
49
17
 
50
18
  // src/BoundWitness/BoundWitnessSchema.ts
51
19
  var BoundWitnessSchema = "network.xyo.boundwitness";
52
20
 
53
21
  // src/isBoundWitness.ts
54
22
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType } from "@xyo-network/payload-model";
55
- var isBoundWitness = /* @__PURE__ */ __name((value) => isPayloadOfSchemaType(BoundWitnessSchema)(value), "isBoundWitness");
56
- var isBoundWitnessWithMeta = /* @__PURE__ */ __name((value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value), "isBoundWitnessWithMeta");
23
+ var isBoundWitness = (value) => isPayloadOfSchemaType(BoundWitnessSchema)(value);
24
+ var isBoundWitnessWithMeta = (value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value);
57
25
  var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema);
58
- var asBoundWitness = /* @__PURE__ */ __name((payload) => isBoundWitness(payload) ? payload : void 0, "asBoundWitness");
26
+ var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0;
59
27
  var isBoundWitnessPayload = isBoundWitness;
60
28
 
61
29
  // src/QueryBoundWitness.ts
62
30
  var QueryBoundWitnessSchema = BoundWitnessSchema;
63
- var isQueryBoundWitness = /* @__PURE__ */ __name((x) => isBoundWitness(x) && x?.query !== void 0, "isQueryBoundWitness");
64
- var isQueryBoundWitnessWithMeta = /* @__PURE__ */ __name((x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0, "isQueryBoundWitnessWithMeta");
31
+ var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0;
32
+ var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0;
65
33
  export {
66
34
  BoundWitnessJsonSchema,
67
35
  BoundWitnessSchema,
@@ -1 +1 @@
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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;AAGO,IAAMA,yBAAyB,6BAAA;AACpC,SAAO;IACLC,KAAK;IACLC,sBAAsB;IACtBC,YAAY;MACVC,WAAW;QAAEC,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MACtDC,gBAAgB;QAAEF,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC3DE,iBAAiB;QAAEH,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5DG,iBAAiB;QAAEJ,OAAO;UAAEK,UAAU;UAAMJ,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5EK,QAAQ;QAAEL,MAAM;MAAS;IAC3B;IACAM,UAAU;MAAC;MAAa;MAAkB;MAAmB;MAAmB;;IAChFN,MAAM;EACR;AACF,GAdsC;;;ACF/B,IAAMO,qBAAyC;;;ACDtD,SAASC,uBAAuBC,+BAA+BC,8BAAwC;AAIhG,IAAMC,iBAAiB,wBAACC,UAA0CC,sBAAoCC,kBAAAA,EAAoBF,KAAAA,GAAnG;AACvB,IAAMG,yBAAyB,wBAACH,UACrCI,8BAA4CF,kBAAAA,EAAoBF,KAAAA,GAD5B;AAE/B,IAAMK,kBAAkBC,uBAAqCJ,kBAAAA;AAE7D,IAAMK,iBAAiB,wBAA4DC,YACxFT,eAAeS,OAAAA,IAAYA,UAAgBC,QADf;AAIvB,IAAMC,wBAAwBX;;;ACN9B,IAAMY,0BAAmDC;AASzD,IAAMC,sBAAsB,wBAACC,MAAwCC,eAAeD,CAAAA,KAAOA,GAAyBE,UAAUC,QAAlG;AAC5B,IAAMC,8BAA8B,wBAACJ,MAC1CC,eAAeD,CAAAA,KAAMK,uBAAuBL,CAAAA,KAAOA,GAAmCE,UAAUC,QADvD;","names":["BoundWitnessJsonSchema","$id","additionalProperties","properties","addresses","items","type","payload_hashes","payload_schemas","previous_hashes","nullable","schema","required","BoundWitnessSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","notPayloadOfSchemaType","isBoundWitness","value","isPayloadOfSchemaType","BoundWitnessSchema","isBoundWitnessWithMeta","isPayloadOfSchemaTypeWithMeta","notBoundWitness","notPayloadOfSchemaType","asBoundWitness","payload","undefined","isBoundWitnessPayload","QueryBoundWitnessSchema","BoundWitnessSchema","isQueryBoundWitness","x","isBoundWitness","query","undefined","isQueryBoundWitnessWithMeta","isBoundWitnessWithMeta"]}
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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<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,+BAA+B,8BAAwC;AAIhG,IAAM,iBAAiB,CAAC,UAA0C,sBAAoC,kBAAkB,EAAE,KAAK;AAC/H,IAAM,yBAAyB,CAAC,UACrC,8BAA4C,kBAAkB,EAAE,KAAK;AAChE,IAAM,kBAAkB,uBAAqC,kBAAkB;AAE/E,IAAM,iBAAiB,CAA4D,YACxF,eAAe,OAAO,IAAK,UAAgB;AAGtC,IAAM,wBAAwB;;;ACN9B,IAAM,0BAAmD;AASzD,IAAM,sBAAsB,CAAC,MAAwC,eAAe,CAAC,KAAM,GAAyB,UAAU;AAC9H,IAAM,8BAA8B,CAAC,MAC1C,eAAe,CAAC,KAAK,uBAAuB,CAAC,KAAM,GAAmC,UAAU;","names":[]}
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -35,64 +34,35 @@ __export(src_exports, {
35
34
  module.exports = __toCommonJS(src_exports);
36
35
 
37
36
  // src/BoundWitness/BoundWitnessJsonSchema.ts
38
- var BoundWitnessJsonSchema = /* @__PURE__ */ __name(() => {
37
+ var BoundWitnessJsonSchema = () => {
39
38
  return {
40
39
  $id: "https://schemas.xyo.network/2.0/boundwitness",
41
40
  additionalProperties: false,
42
41
  properties: {
43
- addresses: {
44
- items: {
45
- type: "string"
46
- },
47
- type: "array"
48
- },
49
- payload_hashes: {
50
- items: {
51
- type: "string"
52
- },
53
- type: "array"
54
- },
55
- payload_schemas: {
56
- items: {
57
- type: "string"
58
- },
59
- type: "array"
60
- },
61
- previous_hashes: {
62
- items: {
63
- nullable: true,
64
- type: "string"
65
- },
66
- type: "array"
67
- },
68
- schema: {
69
- type: "string"
70
- }
42
+ addresses: { items: { type: "string" }, type: "array" },
43
+ payload_hashes: { items: { type: "string" }, type: "array" },
44
+ payload_schemas: { items: { type: "string" }, type: "array" },
45
+ previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
46
+ schema: { type: "string" }
71
47
  },
72
- required: [
73
- "addresses",
74
- "payload_hashes",
75
- "payload_schemas",
76
- "previous_hashes",
77
- "schema"
78
- ],
48
+ required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
79
49
  type: "object"
80
50
  };
81
- }, "BoundWitnessJsonSchema");
51
+ };
82
52
 
83
53
  // src/BoundWitness/BoundWitnessSchema.ts
84
54
  var BoundWitnessSchema = "network.xyo.boundwitness";
85
55
 
86
56
  // src/isBoundWitness.ts
87
57
  var import_payload_model = require("@xyo-network/payload-model");
88
- var isBoundWitness = /* @__PURE__ */ __name((value) => (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema)(value), "isBoundWitness");
89
- var isBoundWitnessWithMeta = /* @__PURE__ */ __name((value) => (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(BoundWitnessSchema)(value), "isBoundWitnessWithMeta");
58
+ var isBoundWitness = (value) => (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema)(value);
59
+ var isBoundWitnessWithMeta = (value) => (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(BoundWitnessSchema)(value);
90
60
  var notBoundWitness = (0, import_payload_model.notPayloadOfSchemaType)(BoundWitnessSchema);
91
- var asBoundWitness = /* @__PURE__ */ __name((payload) => isBoundWitness(payload) ? payload : void 0, "asBoundWitness");
61
+ var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0;
92
62
  var isBoundWitnessPayload = isBoundWitness;
93
63
 
94
64
  // src/QueryBoundWitness.ts
95
65
  var QueryBoundWitnessSchema = BoundWitnessSchema;
96
- var isQueryBoundWitness = /* @__PURE__ */ __name((x) => isBoundWitness(x) && x?.query !== void 0, "isQueryBoundWitness");
97
- var isQueryBoundWitnessWithMeta = /* @__PURE__ */ __name((x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0, "isQueryBoundWitnessWithMeta");
66
+ var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0;
67
+ var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0;
98
68
  //# sourceMappingURL=index.cjs.map
@@ -1 +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/index.js'\nexport * from './isBoundWitness.js'\nexport * from './QueryBoundWitness.js'\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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;ACGO,IAAMA,yBAAyB,6BAAA;AACpC,SAAO;IACLC,KAAK;IACLC,sBAAsB;IACtBC,YAAY;MACVC,WAAW;QAAEC,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MACtDC,gBAAgB;QAAEF,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC3DE,iBAAiB;QAAEH,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5DG,iBAAiB;QAAEJ,OAAO;UAAEK,UAAU;UAAMJ,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5EK,QAAQ;QAAEL,MAAM;MAAS;IAC3B;IACAM,UAAU;MAAC;MAAa;MAAkB;MAAmB;MAAmB;;IAChFN,MAAM;EACR;AACF,GAdsC;;;ACF/B,IAAMO,qBAAyC;;;ACDtD,2BAAuG;AAIhG,IAAMC,iBAAiB,wBAACC,cAA0CC,4CAAoCC,kBAAAA,EAAoBF,KAAAA,GAAnG;AACvB,IAAMG,yBAAyB,wBAACH,cACrCI,oDAA4CF,kBAAAA,EAAoBF,KAAAA,GAD5B;AAE/B,IAAMK,sBAAkBC,6CAAqCJ,kBAAAA;AAE7D,IAAMK,iBAAiB,wBAA4DC,YACxFT,eAAeS,OAAAA,IAAYA,UAAgBC,QADf;AAIvB,IAAMC,wBAAwBX;;;ACN9B,IAAMY,0BAAmDC;AASzD,IAAMC,sBAAsB,wBAACC,MAAwCC,eAAeD,CAAAA,KAAOA,GAAyBE,UAAUC,QAAlG;AAC5B,IAAMC,8BAA8B,wBAACJ,MAC1CC,eAAeD,CAAAA,KAAMK,uBAAuBL,CAAAA,KAAOA,GAAmCE,UAAUC,QADvD;","names":["BoundWitnessJsonSchema","$id","additionalProperties","properties","addresses","items","type","payload_hashes","payload_schemas","previous_hashes","nullable","schema","required","BoundWitnessSchema","isBoundWitness","value","isPayloadOfSchemaType","BoundWitnessSchema","isBoundWitnessWithMeta","isPayloadOfSchemaTypeWithMeta","notBoundWitness","notPayloadOfSchemaType","asBoundWitness","payload","undefined","isBoundWitnessPayload","QueryBoundWitnessSchema","BoundWitnessSchema","isQueryBoundWitness","x","isBoundWitness","query","undefined","isQueryBoundWitnessWithMeta","isBoundWitnessWithMeta"]}
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/index.js'\nexport * from './isBoundWitness.js'\nexport * from './QueryBoundWitness.js'\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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;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,2BAAuG;AAIhG,IAAM,iBAAiB,CAAC,cAA0C,4CAAoC,kBAAkB,EAAE,KAAK;AAC/H,IAAM,yBAAyB,CAAC,cACrC,oDAA4C,kBAAkB,EAAE,KAAK;AAChE,IAAM,sBAAkB,6CAAqC,kBAAkB;AAE/E,IAAM,iBAAiB,CAA4D,YACxF,eAAe,OAAO,IAAK,UAAgB;AAGtC,IAAM,wBAAwB;;;ACN9B,IAAM,0BAAmD;AASzD,IAAM,sBAAsB,CAAC,MAAwC,eAAe,CAAC,KAAM,GAAyB,UAAU;AAC9H,IAAM,8BAA8B,CAAC,MAC1C,eAAe,CAAC,KAAK,uBAAuB,CAAC,KAAM,GAAmC,UAAU;","names":[]}
@@ -1,67 +1,35 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/BoundWitness/BoundWitnessJsonSchema.ts
5
- var BoundWitnessJsonSchema = /* @__PURE__ */ __name(() => {
2
+ var BoundWitnessJsonSchema = () => {
6
3
  return {
7
4
  $id: "https://schemas.xyo.network/2.0/boundwitness",
8
5
  additionalProperties: false,
9
6
  properties: {
10
- addresses: {
11
- items: {
12
- type: "string"
13
- },
14
- type: "array"
15
- },
16
- payload_hashes: {
17
- items: {
18
- type: "string"
19
- },
20
- type: "array"
21
- },
22
- payload_schemas: {
23
- items: {
24
- type: "string"
25
- },
26
- type: "array"
27
- },
28
- previous_hashes: {
29
- items: {
30
- nullable: true,
31
- type: "string"
32
- },
33
- type: "array"
34
- },
35
- schema: {
36
- type: "string"
37
- }
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" }
38
12
  },
39
- required: [
40
- "addresses",
41
- "payload_hashes",
42
- "payload_schemas",
43
- "previous_hashes",
44
- "schema"
45
- ],
13
+ required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
46
14
  type: "object"
47
15
  };
48
- }, "BoundWitnessJsonSchema");
16
+ };
49
17
 
50
18
  // src/BoundWitness/BoundWitnessSchema.ts
51
19
  var BoundWitnessSchema = "network.xyo.boundwitness";
52
20
 
53
21
  // src/isBoundWitness.ts
54
22
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType } from "@xyo-network/payload-model";
55
- var isBoundWitness = /* @__PURE__ */ __name((value) => isPayloadOfSchemaType(BoundWitnessSchema)(value), "isBoundWitness");
56
- var isBoundWitnessWithMeta = /* @__PURE__ */ __name((value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value), "isBoundWitnessWithMeta");
23
+ var isBoundWitness = (value) => isPayloadOfSchemaType(BoundWitnessSchema)(value);
24
+ var isBoundWitnessWithMeta = (value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value);
57
25
  var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema);
58
- var asBoundWitness = /* @__PURE__ */ __name((payload) => isBoundWitness(payload) ? payload : void 0, "asBoundWitness");
26
+ var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0;
59
27
  var isBoundWitnessPayload = isBoundWitness;
60
28
 
61
29
  // src/QueryBoundWitness.ts
62
30
  var QueryBoundWitnessSchema = BoundWitnessSchema;
63
- var isQueryBoundWitness = /* @__PURE__ */ __name((x) => isBoundWitness(x) && x?.query !== void 0, "isQueryBoundWitness");
64
- var isQueryBoundWitnessWithMeta = /* @__PURE__ */ __name((x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0, "isQueryBoundWitnessWithMeta");
31
+ var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0;
32
+ var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0;
65
33
  export {
66
34
  BoundWitnessJsonSchema,
67
35
  BoundWitnessSchema,
@@ -1 +1 @@
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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;AAGO,IAAMA,yBAAyB,6BAAA;AACpC,SAAO;IACLC,KAAK;IACLC,sBAAsB;IACtBC,YAAY;MACVC,WAAW;QAAEC,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MACtDC,gBAAgB;QAAEF,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC3DE,iBAAiB;QAAEH,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5DG,iBAAiB;QAAEJ,OAAO;UAAEK,UAAU;UAAMJ,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5EK,QAAQ;QAAEL,MAAM;MAAS;IAC3B;IACAM,UAAU;MAAC;MAAa;MAAkB;MAAmB;MAAmB;;IAChFN,MAAM;EACR;AACF,GAdsC;;;ACF/B,IAAMO,qBAAyC;;;ACDtD,SAASC,uBAAuBC,+BAA+BC,8BAAwC;AAIhG,IAAMC,iBAAiB,wBAACC,UAA0CC,sBAAoCC,kBAAAA,EAAoBF,KAAAA,GAAnG;AACvB,IAAMG,yBAAyB,wBAACH,UACrCI,8BAA4CF,kBAAAA,EAAoBF,KAAAA,GAD5B;AAE/B,IAAMK,kBAAkBC,uBAAqCJ,kBAAAA;AAE7D,IAAMK,iBAAiB,wBAA4DC,YACxFT,eAAeS,OAAAA,IAAYA,UAAgBC,QADf;AAIvB,IAAMC,wBAAwBX;;;ACN9B,IAAMY,0BAAmDC;AASzD,IAAMC,sBAAsB,wBAACC,MAAwCC,eAAeD,CAAAA,KAAOA,GAAyBE,UAAUC,QAAlG;AAC5B,IAAMC,8BAA8B,wBAACJ,MAC1CC,eAAeD,CAAAA,KAAMK,uBAAuBL,CAAAA,KAAOA,GAAmCE,UAAUC,QADvD;","names":["BoundWitnessJsonSchema","$id","additionalProperties","properties","addresses","items","type","payload_hashes","payload_schemas","previous_hashes","nullable","schema","required","BoundWitnessSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","notPayloadOfSchemaType","isBoundWitness","value","isPayloadOfSchemaType","BoundWitnessSchema","isBoundWitnessWithMeta","isPayloadOfSchemaTypeWithMeta","notBoundWitness","notPayloadOfSchemaType","asBoundWitness","payload","undefined","isBoundWitnessPayload","QueryBoundWitnessSchema","BoundWitnessSchema","isQueryBoundWitness","x","isBoundWitness","query","undefined","isQueryBoundWitnessWithMeta","isBoundWitnessWithMeta"]}
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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<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,+BAA+B,8BAAwC;AAIhG,IAAM,iBAAiB,CAAC,UAA0C,sBAAoC,kBAAkB,EAAE,KAAK;AAC/H,IAAM,yBAAyB,CAAC,UACrC,8BAA4C,kBAAkB,EAAE,KAAK;AAChE,IAAM,kBAAkB,uBAAqC,kBAAkB;AAE/E,IAAM,iBAAiB,CAA4D,YACxF,eAAe,OAAO,IAAK,UAAgB;AAGtC,IAAM,wBAAwB;;;ACN9B,IAAM,0BAAmD;AASzD,IAAM,sBAAsB,CAAC,MAAwC,eAAe,CAAC,KAAM,GAAyB,UAAU;AAC9H,IAAM,8BAA8B,CAAC,MAC1C,eAAe,CAAC,KAAK,uBAAuB,CAAC,KAAM,GAAmC,UAAU;","names":[]}
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -35,66 +34,37 @@ __export(src_exports, {
35
34
  module.exports = __toCommonJS(src_exports);
36
35
 
37
36
  // src/BoundWitness/BoundWitnessJsonSchema.ts
38
- var BoundWitnessJsonSchema = /* @__PURE__ */ __name(() => {
37
+ var BoundWitnessJsonSchema = () => {
39
38
  return {
40
39
  $id: "https://schemas.xyo.network/2.0/boundwitness",
41
40
  additionalProperties: false,
42
41
  properties: {
43
- addresses: {
44
- items: {
45
- type: "string"
46
- },
47
- type: "array"
48
- },
49
- payload_hashes: {
50
- items: {
51
- type: "string"
52
- },
53
- type: "array"
54
- },
55
- payload_schemas: {
56
- items: {
57
- type: "string"
58
- },
59
- type: "array"
60
- },
61
- previous_hashes: {
62
- items: {
63
- nullable: true,
64
- type: "string"
65
- },
66
- type: "array"
67
- },
68
- schema: {
69
- type: "string"
70
- }
42
+ addresses: { items: { type: "string" }, type: "array" },
43
+ payload_hashes: { items: { type: "string" }, type: "array" },
44
+ payload_schemas: { items: { type: "string" }, type: "array" },
45
+ previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
46
+ schema: { type: "string" }
71
47
  },
72
- required: [
73
- "addresses",
74
- "payload_hashes",
75
- "payload_schemas",
76
- "previous_hashes",
77
- "schema"
78
- ],
48
+ required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
79
49
  type: "object"
80
50
  };
81
- }, "BoundWitnessJsonSchema");
51
+ };
82
52
 
83
53
  // src/BoundWitness/BoundWitnessSchema.ts
84
54
  var BoundWitnessSchema = "network.xyo.boundwitness";
85
55
 
86
56
  // src/isBoundWitness.ts
87
57
  var import_payload_model = require("@xyo-network/payload-model");
88
- var isBoundWitness = /* @__PURE__ */ __name((value) => (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema)(value), "isBoundWitness");
89
- var isBoundWitnessWithMeta = /* @__PURE__ */ __name((value) => (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(BoundWitnessSchema)(value), "isBoundWitnessWithMeta");
58
+ var isBoundWitness = (value) => (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema)(value);
59
+ var isBoundWitnessWithMeta = (value) => (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(BoundWitnessSchema)(value);
90
60
  var notBoundWitness = (0, import_payload_model.notPayloadOfSchemaType)(BoundWitnessSchema);
91
- var asBoundWitness = /* @__PURE__ */ __name((payload) => isBoundWitness(payload) ? payload : void 0, "asBoundWitness");
61
+ var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0;
92
62
  var isBoundWitnessPayload = isBoundWitness;
93
63
 
94
64
  // src/QueryBoundWitness.ts
95
65
  var QueryBoundWitnessSchema = BoundWitnessSchema;
96
- var isQueryBoundWitness = /* @__PURE__ */ __name((x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0, "isQueryBoundWitness");
97
- var isQueryBoundWitnessWithMeta = /* @__PURE__ */ __name((x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x == null ? void 0 : x.query) !== void 0, "isQueryBoundWitnessWithMeta");
66
+ var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0;
67
+ var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x == null ? void 0 : x.query) !== void 0;
98
68
  // Annotate the CommonJS export names for ESM import in node:
99
69
  0 && (module.exports = {
100
70
  BoundWitnessJsonSchema,
@@ -1 +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/index.js'\nexport * from './isBoundWitness.js'\nexport * from './QueryBoundWitness.js'\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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;ACGO,IAAMA,yBAAyB,6BAAA;AACpC,SAAO;IACLC,KAAK;IACLC,sBAAsB;IACtBC,YAAY;MACVC,WAAW;QAAEC,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MACtDC,gBAAgB;QAAEF,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC3DE,iBAAiB;QAAEH,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5DG,iBAAiB;QAAEJ,OAAO;UAAEK,UAAU;UAAMJ,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5EK,QAAQ;QAAEL,MAAM;MAAS;IAC3B;IACAM,UAAU;MAAC;MAAa;MAAkB;MAAmB;MAAmB;;IAChFN,MAAM;EACR;AACF,GAdsC;;;ACF/B,IAAMO,qBAAyC;;;ACDtD,2BAAuG;AAIhG,IAAMC,iBAAiB,wBAACC,cAA0CC,4CAAoCC,kBAAAA,EAAoBF,KAAAA,GAAnG;AACvB,IAAMG,yBAAyB,wBAACH,cACrCI,oDAA4CF,kBAAAA,EAAoBF,KAAAA,GAD5B;AAE/B,IAAMK,sBAAkBC,6CAAqCJ,kBAAAA;AAE7D,IAAMK,iBAAiB,wBAA4DC,YACxFT,eAAeS,OAAAA,IAAYA,UAAgBC,QADf;AAIvB,IAAMC,wBAAwBX;;;ACN9B,IAAMY,0BAAmDC;AASzD,IAAMC,sBAAsB,wBAACC,MAAwCC,eAAeD,CAAAA,MAAOA,uBAAyBE,WAAUC,QAAlG;AAC5B,IAAMC,8BAA8B,wBAACJ,MAC1CC,eAAeD,CAAAA,KAAMK,uBAAuBL,CAAAA,MAAOA,uBAAmCE,WAAUC,QADvD;","names":["BoundWitnessJsonSchema","$id","additionalProperties","properties","addresses","items","type","payload_hashes","payload_schemas","previous_hashes","nullable","schema","required","BoundWitnessSchema","isBoundWitness","value","isPayloadOfSchemaType","BoundWitnessSchema","isBoundWitnessWithMeta","isPayloadOfSchemaTypeWithMeta","notBoundWitness","notPayloadOfSchemaType","asBoundWitness","payload","undefined","isBoundWitnessPayload","QueryBoundWitnessSchema","BoundWitnessSchema","isQueryBoundWitness","x","isBoundWitness","query","undefined","isQueryBoundWitnessWithMeta","isBoundWitnessWithMeta"]}
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/index.js'\nexport * from './isBoundWitness.js'\nexport * from './QueryBoundWitness.js'\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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;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,2BAAuG;AAIhG,IAAM,iBAAiB,CAAC,cAA0C,4CAAoC,kBAAkB,EAAE,KAAK;AAC/H,IAAM,yBAAyB,CAAC,cACrC,oDAA4C,kBAAkB,EAAE,KAAK;AAChE,IAAM,sBAAkB,6CAAqC,kBAAkB;AAE/E,IAAM,iBAAiB,CAA4D,YACxF,eAAe,OAAO,IAAK,UAAgB;AAGtC,IAAM,wBAAwB;;;ACN9B,IAAM,0BAAmD;AASzD,IAAM,sBAAsB,CAAC,MAAwC,eAAe,CAAC,MAAM,uBAAyB,WAAU;AAC9H,IAAM,8BAA8B,CAAC,MAC1C,eAAe,CAAC,KAAK,uBAAuB,CAAC,MAAM,uBAAmC,WAAU;","names":[]}
@@ -1,67 +1,35 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/BoundWitness/BoundWitnessJsonSchema.ts
5
- var BoundWitnessJsonSchema = /* @__PURE__ */ __name(() => {
2
+ var BoundWitnessJsonSchema = () => {
6
3
  return {
7
4
  $id: "https://schemas.xyo.network/2.0/boundwitness",
8
5
  additionalProperties: false,
9
6
  properties: {
10
- addresses: {
11
- items: {
12
- type: "string"
13
- },
14
- type: "array"
15
- },
16
- payload_hashes: {
17
- items: {
18
- type: "string"
19
- },
20
- type: "array"
21
- },
22
- payload_schemas: {
23
- items: {
24
- type: "string"
25
- },
26
- type: "array"
27
- },
28
- previous_hashes: {
29
- items: {
30
- nullable: true,
31
- type: "string"
32
- },
33
- type: "array"
34
- },
35
- schema: {
36
- type: "string"
37
- }
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" }
38
12
  },
39
- required: [
40
- "addresses",
41
- "payload_hashes",
42
- "payload_schemas",
43
- "previous_hashes",
44
- "schema"
45
- ],
13
+ required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
46
14
  type: "object"
47
15
  };
48
- }, "BoundWitnessJsonSchema");
16
+ };
49
17
 
50
18
  // src/BoundWitness/BoundWitnessSchema.ts
51
19
  var BoundWitnessSchema = "network.xyo.boundwitness";
52
20
 
53
21
  // src/isBoundWitness.ts
54
22
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType } from "@xyo-network/payload-model";
55
- var isBoundWitness = /* @__PURE__ */ __name((value) => isPayloadOfSchemaType(BoundWitnessSchema)(value), "isBoundWitness");
56
- var isBoundWitnessWithMeta = /* @__PURE__ */ __name((value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value), "isBoundWitnessWithMeta");
23
+ var isBoundWitness = (value) => isPayloadOfSchemaType(BoundWitnessSchema)(value);
24
+ var isBoundWitnessWithMeta = (value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value);
57
25
  var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema);
58
- var asBoundWitness = /* @__PURE__ */ __name((payload) => isBoundWitness(payload) ? payload : void 0, "asBoundWitness");
26
+ var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0;
59
27
  var isBoundWitnessPayload = isBoundWitness;
60
28
 
61
29
  // src/QueryBoundWitness.ts
62
30
  var QueryBoundWitnessSchema = BoundWitnessSchema;
63
- var isQueryBoundWitness = /* @__PURE__ */ __name((x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0, "isQueryBoundWitness");
64
- var isQueryBoundWitnessWithMeta = /* @__PURE__ */ __name((x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x == null ? void 0 : x.query) !== void 0, "isQueryBoundWitnessWithMeta");
31
+ var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0;
32
+ var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x == null ? void 0 : x.query) !== void 0;
65
33
  export {
66
34
  BoundWitnessJsonSchema,
67
35
  BoundWitnessSchema,
@@ -1 +1 @@
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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<QueryBoundWitness>)?.query !== undefined\n"],"mappings":";;;;AAGO,IAAMA,yBAAyB,6BAAA;AACpC,SAAO;IACLC,KAAK;IACLC,sBAAsB;IACtBC,YAAY;MACVC,WAAW;QAAEC,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MACtDC,gBAAgB;QAAEF,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC3DE,iBAAiB;QAAEH,OAAO;UAAEC,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5DG,iBAAiB;QAAEJ,OAAO;UAAEK,UAAU;UAAMJ,MAAM;QAAS;QAAGA,MAAM;MAAQ;MAC5EK,QAAQ;QAAEL,MAAM;MAAS;IAC3B;IACAM,UAAU;MAAC;MAAa;MAAkB;MAAmB;MAAmB;;IAChFN,MAAM;EACR;AACF,GAdsC;;;ACF/B,IAAMO,qBAAyC;;;ACDtD,SAASC,uBAAuBC,+BAA+BC,8BAAwC;AAIhG,IAAMC,iBAAiB,wBAACC,UAA0CC,sBAAoCC,kBAAAA,EAAoBF,KAAAA,GAAnG;AACvB,IAAMG,yBAAyB,wBAACH,UACrCI,8BAA4CF,kBAAAA,EAAoBF,KAAAA,GAD5B;AAE/B,IAAMK,kBAAkBC,uBAAqCJ,kBAAAA;AAE7D,IAAMK,iBAAiB,wBAA4DC,YACxFT,eAAeS,OAAAA,IAAYA,UAAgBC,QADf;AAIvB,IAAMC,wBAAwBX;;;ACN9B,IAAMY,0BAAmDC;AASzD,IAAMC,sBAAsB,wBAACC,MAAwCC,eAAeD,CAAAA,MAAOA,uBAAyBE,WAAUC,QAAlG;AAC5B,IAAMC,8BAA8B,wBAACJ,MAC1CC,eAAeD,CAAAA,KAAMK,uBAAuBL,CAAAA,MAAOA,uBAAmCE,WAAUC,QADvD;","names":["BoundWitnessJsonSchema","$id","additionalProperties","properties","addresses","items","type","payload_hashes","payload_schemas","previous_hashes","nullable","schema","required","BoundWitnessSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","notPayloadOfSchemaType","isBoundWitness","value","isPayloadOfSchemaType","BoundWitnessSchema","isBoundWitnessWithMeta","isPayloadOfSchemaTypeWithMeta","notBoundWitness","notPayloadOfSchemaType","asBoundWitness","payload","undefined","isBoundWitnessPayload","QueryBoundWitnessSchema","BoundWitnessSchema","isQueryBoundWitness","x","isBoundWitness","query","undefined","isQueryBoundWitnessWithMeta","isBoundWitnessWithMeta"]}
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, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\n\nexport const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)\nexport const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>\n isPayloadOfSchemaTypeWithMeta<BoundWitness>(BoundWitnessSchema)(value)\nexport const notBoundWitness = notPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n\nexport const asBoundWitness = <T extends BoundWitness<{ schema: string }> = BoundWitness>(payload?: unknown) =>\n isBoundWitness(payload) ? (payload as T) : undefined\n\n/** @deprecated use isBoundWitness instead*/\nexport const isBoundWitnessPayload = isBoundWitness\n","import { Hash } from '@xylabs/hex'\nimport { WithMeta } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'\n\nexport type QueryBoundWitnessSchema = BoundWitnessSchema\nexport const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema\n\nexport type QueryBoundWitness = BoundWitness<{\n additional?: Hash[]\n query: Hash\n resultSet?: string\n schema: QueryBoundWitnessSchema\n}>\n\nexport const isQueryBoundWitness = (x?: unknown): x is QueryBoundWitness => isBoundWitness(x) && (x as QueryBoundWitness)?.query !== undefined\nexport const isQueryBoundWitnessWithMeta = (x?: unknown): x is WithMeta<QueryBoundWitness> =>\n isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x as WithMeta<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,+BAA+B,8BAAwC;AAIhG,IAAM,iBAAiB,CAAC,UAA0C,sBAAoC,kBAAkB,EAAE,KAAK;AAC/H,IAAM,yBAAyB,CAAC,UACrC,8BAA4C,kBAAkB,EAAE,KAAK;AAChE,IAAM,kBAAkB,uBAAqC,kBAAkB;AAE/E,IAAM,iBAAiB,CAA4D,YACxF,eAAe,OAAO,IAAK,UAAgB;AAGtC,IAAM,wBAAwB;;;ACN9B,IAAM,0BAAmD;AASzD,IAAM,sBAAsB,CAAC,MAAwC,eAAe,CAAC,MAAM,uBAAyB,WAAU;AAC9H,IAAM,8BAA8B,CAAC,MAC1C,eAAe,CAAC,KAAK,uBAAuB,CAAC,MAAM,uBAAmC,WAAU;","names":[]}
package/package.json CHANGED
@@ -10,16 +10,17 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "description": "Primary SDK for using XYO Protocol 2.0",
13
+ "dependencies": {
14
+ "@xylabs/hex": "^3.6.5",
15
+ "@xylabs/object": "^3.6.5",
16
+ "@xyo-network/payload-model": "^2.110.12"
17
+ },
13
18
  "devDependencies": {
14
- "@xylabs/ts-scripts-yarn3": "^3.12.4",
15
- "@xylabs/tsconfig": "^3.12.4",
19
+ "@types/node": "^22.0.0",
20
+ "@xylabs/ts-scripts-yarn3": "^3.13.9",
21
+ "@xylabs/tsconfig": "^3.13.9",
16
22
  "typescript": "^5.5.4"
17
23
  },
18
- "dependencies": {
19
- "@xylabs/hex": "^3.6.4",
20
- "@xylabs/object": "^3.6.4",
21
- "@xyo-network/payload-model": "^2.110.10"
22
- },
23
24
  "exports": {
24
25
  ".": {
25
26
  "browser": {
@@ -58,6 +59,6 @@
58
59
  },
59
60
  "sideEffects": false,
60
61
  "types": "dist/node/index.d.ts",
61
- "version": "2.110.10",
62
+ "version": "2.110.12",
62
63
  "type": "module"
63
64
  }