@xyo-network/boundwitness-model 2.110.15 → 2.110.17

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 (57) hide show
  1. package/dist/browser/BoundWitness/BoundWitness.d.cts +1 -1
  2. package/dist/browser/BoundWitness/BoundWitness.d.mts +1 -1
  3. package/dist/browser/BoundWitness/BoundWitness.d.ts +1 -1
  4. package/dist/browser/BoundWitness/index.d.cts +3 -3
  5. package/dist/browser/BoundWitness/index.d.mts +3 -3
  6. package/dist/browser/BoundWitness/index.d.ts +3 -3
  7. package/dist/browser/QueryBoundWitness.d.cts +1 -1
  8. package/dist/browser/QueryBoundWitness.d.mts +1 -1
  9. package/dist/browser/QueryBoundWitness.d.ts +1 -1
  10. package/dist/browser/index.cjs.map +1 -1
  11. package/dist/browser/index.d.cts +3 -3
  12. package/dist/browser/index.d.mts +3 -3
  13. package/dist/browser/index.d.ts +3 -3
  14. package/dist/browser/index.js.map +1 -1
  15. package/dist/browser/isBoundWitness.d.cts +1 -1
  16. package/dist/browser/isBoundWitness.d.mts +1 -1
  17. package/dist/browser/isBoundWitness.d.ts +1 -1
  18. package/dist/neutral/BoundWitness/BoundWitness.d.cts +1 -1
  19. package/dist/neutral/BoundWitness/BoundWitness.d.mts +1 -1
  20. package/dist/neutral/BoundWitness/BoundWitness.d.ts +1 -1
  21. package/dist/neutral/BoundWitness/index.d.cts +3 -3
  22. package/dist/neutral/BoundWitness/index.d.mts +3 -3
  23. package/dist/neutral/BoundWitness/index.d.ts +3 -3
  24. package/dist/neutral/QueryBoundWitness.d.cts +1 -1
  25. package/dist/neutral/QueryBoundWitness.d.mts +1 -1
  26. package/dist/neutral/QueryBoundWitness.d.ts +1 -1
  27. package/dist/neutral/index.cjs.map +1 -1
  28. package/dist/neutral/index.d.cts +3 -3
  29. package/dist/neutral/index.d.mts +3 -3
  30. package/dist/neutral/index.d.ts +3 -3
  31. package/dist/neutral/index.js.map +1 -1
  32. package/dist/neutral/isBoundWitness.d.cts +1 -1
  33. package/dist/neutral/isBoundWitness.d.mts +1 -1
  34. package/dist/neutral/isBoundWitness.d.ts +1 -1
  35. package/dist/node/BoundWitness/BoundWitness.d.cts +1 -1
  36. package/dist/node/BoundWitness/BoundWitness.d.mts +1 -1
  37. package/dist/node/BoundWitness/BoundWitness.d.ts +1 -1
  38. package/dist/node/BoundWitness/index.d.cts +3 -3
  39. package/dist/node/BoundWitness/index.d.mts +3 -3
  40. package/dist/node/BoundWitness/index.d.ts +3 -3
  41. package/dist/node/QueryBoundWitness.d.cts +1 -1
  42. package/dist/node/QueryBoundWitness.d.mts +1 -1
  43. package/dist/node/QueryBoundWitness.d.ts +1 -1
  44. package/dist/node/index.cjs.map +1 -1
  45. package/dist/node/index.d.cts +3 -3
  46. package/dist/node/index.d.mts +3 -3
  47. package/dist/node/index.d.ts +3 -3
  48. package/dist/node/index.js.map +1 -1
  49. package/dist/node/isBoundWitness.d.cts +1 -1
  50. package/dist/node/isBoundWitness.d.mts +1 -1
  51. package/dist/node/isBoundWitness.d.ts +1 -1
  52. package/package.json +2 -2
  53. package/src/BoundWitness/BoundWitness.ts +1 -1
  54. package/src/BoundWitness/index.ts +3 -3
  55. package/src/QueryBoundWitness.ts +2 -2
  56. package/src/index.ts +3 -3
  57. package/src/isBoundWitness.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -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;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
+ {"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.ts'\nexport * from './isBoundWitness.ts'\nexport * from './QueryBoundWitness.ts'\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.ts'\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.ts'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'\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,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,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":[]}
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.ts'\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.ts'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'\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":[]}
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -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;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
+ {"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.ts'\nexport * from './isBoundWitness.ts'\nexport * from './QueryBoundWitness.ts'\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.ts'\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.ts'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'\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,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,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":[]}
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.ts'\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.ts'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'\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":[]}
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash, Hex } from '@xylabs/hex';
2
2
  import { EmptyObject } from '@xylabs/object';
3
3
  import { Payload, Schema } from '@xyo-network/payload-model';
4
- import { BoundWitnessSchema } from './BoundWitnessSchema.js';
4
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts';
5
5
  export type BoundWitnessFields = {
6
6
  $meta: {
7
7
  signatures: Hex[];
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness.js';
2
- export * from './BoundWitnessJsonSchema.js';
3
- export * from './BoundWitnessSchema.js';
1
+ export * from './BoundWitness.ts';
2
+ export * from './BoundWitnessJsonSchema.ts';
3
+ export * from './BoundWitnessSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -1,6 +1,6 @@
1
1
  import { Hash } from '@xylabs/hex';
2
2
  import { WithMeta } from '@xyo-network/payload-model';
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js';
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts';
4
4
  export type QueryBoundWitnessSchema = BoundWitnessSchema;
5
5
  export declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
6
6
  export type QueryBoundWitness = BoundWitness<{
@@ -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;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
+ {"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.ts'\nexport * from './isBoundWitness.ts'\nexport * from './QueryBoundWitness.ts'\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.ts'\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.ts'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'\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,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './BoundWitness/index.js';
2
- export * from './isBoundWitness.js';
3
- export * from './QueryBoundWitness.js';
1
+ export * from './BoundWitness/index.ts';
2
+ export * from './isBoundWitness.ts';
3
+ export * from './QueryBoundWitness.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,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":[]}
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.ts'\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.ts'\nimport { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'\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":[]}
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
@@ -1,5 +1,5 @@
1
1
  import { WithMeta } from '@xyo-network/payload-model';
2
- import { BoundWitness } from './BoundWitness/index.js';
2
+ import { BoundWitness } from './BoundWitness/index.ts';
3
3
  export declare const isBoundWitness: (value: unknown) => value is BoundWitness;
4
4
  export declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
5
5
  export declare const notBoundWitness: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./BoundWitness/BoundWitness.ts").BoundWitnessFields & {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@xylabs/hex": "^3.6.6",
15
15
  "@xylabs/object": "^3.6.6",
16
- "@xyo-network/payload-model": "^2.110.15"
16
+ "@xyo-network/payload-model": "^2.110.17"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^22.0.2",
@@ -59,6 +59,6 @@
59
59
  },
60
60
  "sideEffects": false,
61
61
  "types": "dist/node/index.d.ts",
62
- "version": "2.110.15",
62
+ "version": "2.110.17",
63
63
  "type": "module"
64
64
  }
@@ -2,7 +2,7 @@ import { Address, Hash, Hex } from '@xylabs/hex'
2
2
  import { EmptyObject } from '@xylabs/object'
3
3
  import { Payload, Schema } from '@xyo-network/payload-model'
4
4
 
5
- import { BoundWitnessSchema } from './BoundWitnessSchema.js'
5
+ import { BoundWitnessSchema } from './BoundWitnessSchema.ts'
6
6
 
7
7
  export type BoundWitnessFields = {
8
8
  $meta: {
@@ -1,3 +1,3 @@
1
- export * from './BoundWitness.js'
2
- export * from './BoundWitnessJsonSchema.js'
3
- export * from './BoundWitnessSchema.js'
1
+ export * from './BoundWitness.ts'
2
+ export * from './BoundWitnessJsonSchema.ts'
3
+ export * from './BoundWitnessSchema.ts'
@@ -1,8 +1,8 @@
1
1
  import { Hash } from '@xylabs/hex'
2
2
  import { WithMeta } from '@xyo-network/payload-model'
3
3
 
4
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'
5
- import { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.js'
4
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts'
5
+ import { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.ts'
6
6
 
7
7
  export type QueryBoundWitnessSchema = BoundWitnessSchema
8
8
  export const QueryBoundWitnessSchema: QueryBoundWitnessSchema = BoundWitnessSchema
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './BoundWitness/index.js'
2
- export * from './isBoundWitness.js'
3
- export * from './QueryBoundWitness.js'
1
+ export * from './BoundWitness/index.ts'
2
+ export * from './isBoundWitness.ts'
3
+ export * from './QueryBoundWitness.ts'
@@ -1,6 +1,6 @@
1
1
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType, WithMeta } from '@xyo-network/payload-model'
2
2
 
3
- import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.js'
3
+ import { BoundWitness, BoundWitnessSchema } from './BoundWitness/index.ts'
4
4
 
5
5
  export const isBoundWitness = (value: unknown): value is BoundWitness => isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)(value)
6
6
  export const isBoundWitnessWithMeta = (value: unknown): value is WithMeta<BoundWitness> =>