@xyo-network/boundwitness-model 2.110.16 → 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.
- package/dist/browser/BoundWitness/BoundWitness.d.cts +1 -1
- package/dist/browser/BoundWitness/BoundWitness.d.mts +1 -1
- package/dist/browser/BoundWitness/BoundWitness.d.ts +1 -1
- package/dist/browser/BoundWitness/index.d.cts +3 -3
- package/dist/browser/BoundWitness/index.d.mts +3 -3
- package/dist/browser/BoundWitness/index.d.ts +3 -3
- package/dist/browser/QueryBoundWitness.d.cts +1 -1
- package/dist/browser/QueryBoundWitness.d.mts +1 -1
- package/dist/browser/QueryBoundWitness.d.ts +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +3 -3
- package/dist/browser/index.d.mts +3 -3
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/isBoundWitness.d.cts +1 -1
- package/dist/browser/isBoundWitness.d.mts +1 -1
- package/dist/browser/isBoundWitness.d.ts +1 -1
- package/dist/neutral/BoundWitness/BoundWitness.d.cts +1 -1
- package/dist/neutral/BoundWitness/BoundWitness.d.mts +1 -1
- package/dist/neutral/BoundWitness/BoundWitness.d.ts +1 -1
- package/dist/neutral/BoundWitness/index.d.cts +3 -3
- package/dist/neutral/BoundWitness/index.d.mts +3 -3
- package/dist/neutral/BoundWitness/index.d.ts +3 -3
- package/dist/neutral/QueryBoundWitness.d.cts +1 -1
- package/dist/neutral/QueryBoundWitness.d.mts +1 -1
- package/dist/neutral/QueryBoundWitness.d.ts +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +3 -3
- package/dist/neutral/index.d.mts +3 -3
- package/dist/neutral/index.d.ts +3 -3
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/isBoundWitness.d.cts +1 -1
- package/dist/neutral/isBoundWitness.d.mts +1 -1
- package/dist/neutral/isBoundWitness.d.ts +1 -1
- package/dist/node/BoundWitness/BoundWitness.d.cts +1 -1
- package/dist/node/BoundWitness/BoundWitness.d.mts +1 -1
- package/dist/node/BoundWitness/BoundWitness.d.ts +1 -1
- package/dist/node/BoundWitness/index.d.cts +3 -3
- package/dist/node/BoundWitness/index.d.mts +3 -3
- package/dist/node/BoundWitness/index.d.ts +3 -3
- package/dist/node/QueryBoundWitness.d.cts +1 -1
- package/dist/node/QueryBoundWitness.d.mts +1 -1
- package/dist/node/QueryBoundWitness.d.ts +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js.map +1 -1
- package/dist/node/isBoundWitness.d.cts +1 -1
- package/dist/node/isBoundWitness.d.mts +1 -1
- package/dist/node/isBoundWitness.d.ts +1 -1
- package/package.json +2 -2
- package/src/BoundWitness/BoundWitness.ts +1 -1
- package/src/BoundWitness/index.ts +3 -3
- package/src/QueryBoundWitness.ts +2 -2
- package/src/index.ts +3 -3
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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":[]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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":[]}
|
package/dist/neutral/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
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.
|
|
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.
|
|
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.
|
|
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<{
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -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.
|
|
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":[]}
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './BoundWitness/index.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts';
|
|
2
|
+
export * from './isBoundWitness.ts';
|
|
3
|
+
export * from './QueryBoundWitness.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
5
|
+
import { BoundWitnessSchema } from './BoundWitnessSchema.ts'
|
|
6
6
|
|
|
7
7
|
export type BoundWitnessFields = {
|
|
8
8
|
$meta: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './BoundWitness.
|
|
2
|
-
export * from './BoundWitnessJsonSchema.
|
|
3
|
-
export * from './BoundWitnessSchema.
|
|
1
|
+
export * from './BoundWitness.ts'
|
|
2
|
+
export * from './BoundWitnessJsonSchema.ts'
|
|
3
|
+
export * from './BoundWitnessSchema.ts'
|
package/src/QueryBoundWitness.ts
CHANGED
|
@@ -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.
|
|
5
|
-
import { isBoundWitness, isBoundWitnessWithMeta } from './isBoundWitness.
|
|
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.
|
|
2
|
-
export * from './isBoundWitness.
|
|
3
|
-
export * from './QueryBoundWitness.
|
|
1
|
+
export * from './BoundWitness/index.ts'
|
|
2
|
+
export * from './isBoundWitness.ts'
|
|
3
|
+
export * from './QueryBoundWitness.ts'
|
package/src/isBoundWitness.ts
CHANGED
|
@@ -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.
|
|
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> =>
|