@xyo-network/boundwitness-model 2.74.5 → 2.75.1
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/index.cjs +60 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts +3 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +3 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isBoundWitnessPayload.cjs +33 -0
- package/dist/browser/isBoundWitnessPayload.cjs.map +1 -0
- package/dist/browser/isBoundWitnessPayload.d.cts.map +1 -0
- package/dist/browser/isBoundWitnessPayload.d.mts.map +1 -0
- package/dist/browser/isBoundWitnessPayload.d.ts +6 -0
- package/dist/browser/isBoundWitnessPayload.d.ts.map +1 -0
- package/dist/browser/isBoundWitnessPayload.js +7 -0
- package/dist/browser/isBoundWitnessPayload.js.map +1 -0
- package/dist/browser/models/BoundWitness.cjs +34 -0
- package/dist/browser/models/BoundWitness.cjs.map +1 -0
- package/dist/browser/models/BoundWitness.d.cts.map +1 -0
- package/dist/browser/models/BoundWitness.d.mts.map +1 -0
- package/dist/browser/models/BoundWitness.d.ts +20 -0
- package/dist/browser/models/BoundWitness.d.ts.map +1 -0
- package/dist/browser/models/BoundWitness.js +8 -0
- package/dist/browser/models/BoundWitness.js.map +1 -0
- package/dist/browser/models/BoundWitnessJsonSchema.cjs +41 -0
- package/dist/browser/models/BoundWitnessJsonSchema.cjs.map +1 -0
- package/dist/browser/models/BoundWitnessJsonSchema.d.cts.map +1 -0
- package/dist/browser/models/BoundWitnessJsonSchema.d.mts.map +1 -0
- package/dist/browser/models/BoundWitnessJsonSchema.d.ts +37 -0
- package/dist/browser/models/BoundWitnessJsonSchema.d.ts.map +1 -0
- package/dist/browser/models/BoundWitnessJsonSchema.js +19 -0
- package/dist/browser/models/BoundWitnessJsonSchema.js.map +1 -0
- package/dist/browser/models/BoundWitnessSchema.cjs +27 -0
- package/dist/browser/models/BoundWitnessSchema.cjs.map +1 -0
- package/dist/browser/models/BoundWitnessSchema.d.cts.map +1 -0
- package/dist/browser/models/BoundWitnessSchema.d.mts.map +1 -0
- package/dist/browser/models/BoundWitnessSchema.d.ts +3 -0
- package/dist/browser/models/BoundWitnessSchema.d.ts.map +1 -0
- package/dist/browser/models/BoundWitnessSchema.js +5 -0
- package/dist/browser/models/BoundWitnessSchema.js.map +1 -0
- package/dist/browser/models/index.cjs +53 -0
- package/dist/browser/models/index.cjs.map +1 -0
- package/dist/browser/models/index.d.cts.map +1 -0
- package/dist/browser/models/index.d.mts.map +1 -0
- package/dist/browser/models/index.d.ts +4 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/docs.json +70 -70
- package/dist/node/index.d.cts +3 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.mts +3 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/{index.js → node/index.js} +2 -2
- package/dist/node/index.js.map +1 -0
- package/dist/{index.mjs → node/index.mjs} +2 -2
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/isBoundWitnessPayload.d.cts +6 -0
- package/dist/node/isBoundWitnessPayload.d.cts.map +1 -0
- package/dist/node/isBoundWitnessPayload.d.mts +6 -0
- package/dist/node/isBoundWitnessPayload.d.mts.map +1 -0
- package/dist/node/isBoundWitnessPayload.d.ts +6 -0
- package/dist/node/isBoundWitnessPayload.d.ts.map +1 -0
- package/dist/node/isBoundWitnessPayload.js +37 -0
- package/dist/node/isBoundWitnessPayload.js.map +1 -0
- package/dist/node/isBoundWitnessPayload.mjs +12 -0
- package/dist/node/isBoundWitnessPayload.mjs.map +1 -0
- package/dist/node/models/BoundWitness.d.cts +20 -0
- package/dist/node/models/BoundWitness.d.cts.map +1 -0
- package/dist/node/models/BoundWitness.d.mts +20 -0
- package/dist/node/models/BoundWitness.d.mts.map +1 -0
- package/dist/node/models/BoundWitness.d.ts +20 -0
- package/dist/node/models/BoundWitness.d.ts.map +1 -0
- package/dist/node/models/BoundWitness.js +39 -0
- package/dist/node/models/BoundWitness.js.map +1 -0
- package/dist/node/models/BoundWitness.mjs +11 -0
- package/dist/node/models/BoundWitness.mjs.map +1 -0
- package/dist/node/models/BoundWitnessJsonSchema.d.cts +37 -0
- package/dist/node/models/BoundWitnessJsonSchema.d.cts.map +1 -0
- package/dist/node/models/BoundWitnessJsonSchema.d.mts +37 -0
- package/dist/node/models/BoundWitnessJsonSchema.d.mts.map +1 -0
- package/dist/node/models/BoundWitnessJsonSchema.d.ts +37 -0
- package/dist/node/models/BoundWitnessJsonSchema.d.ts.map +1 -0
- package/dist/node/models/BoundWitnessJsonSchema.js +45 -0
- package/dist/node/models/BoundWitnessJsonSchema.js.map +1 -0
- package/dist/node/models/BoundWitnessJsonSchema.mjs +20 -0
- package/dist/node/models/BoundWitnessJsonSchema.mjs.map +1 -0
- package/dist/node/models/BoundWitnessSchema.d.cts +3 -0
- package/dist/node/models/BoundWitnessSchema.d.cts.map +1 -0
- package/dist/node/models/BoundWitnessSchema.d.mts +3 -0
- package/dist/node/models/BoundWitnessSchema.d.mts.map +1 -0
- package/dist/node/models/BoundWitnessSchema.d.ts +3 -0
- package/dist/node/models/BoundWitnessSchema.d.ts.map +1 -0
- package/dist/node/models/BoundWitnessSchema.js +31 -0
- package/dist/node/models/BoundWitnessSchema.js.map +1 -0
- package/dist/node/models/BoundWitnessSchema.mjs +6 -0
- package/dist/node/models/BoundWitnessSchema.mjs.map +1 -0
- package/dist/node/models/index.d.cts +4 -0
- package/dist/node/models/index.d.cts.map +1 -0
- package/dist/node/models/index.d.mts +4 -0
- package/dist/node/models/index.d.mts.map +1 -0
- package/dist/node/models/index.d.ts +4 -0
- package/dist/node/models/index.d.ts.map +1 -0
- package/dist/node/models/index.js +60 -0
- package/dist/node/models/index.js.map +1 -0
- package/dist/node/models/index.mjs +30 -0
- package/dist/node/models/index.mjs.map +1 -0
- package/package.json +25 -13
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/isBoundWitnessPayload.d.mts.map +0 -1
- package/dist/isBoundWitnessPayload.d.ts.map +0 -1
- package/dist/models/BoundWitness.d.mts.map +0 -1
- package/dist/models/BoundWitness.d.ts.map +0 -1
- package/dist/models/BoundWitnessJsonSchema.d.mts.map +0 -1
- package/dist/models/BoundWitnessJsonSchema.d.ts.map +0 -1
- package/dist/models/BoundWitnessSchema.d.mts.map +0 -1
- package/dist/models/BoundWitnessSchema.d.ts.map +0 -1
- package/dist/models/index.d.mts.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- /package/dist/{index.d.mts → browser/index.d.cts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.mts} +0 -0
- /package/dist/{isBoundWitnessPayload.d.mts → browser/isBoundWitnessPayload.d.cts} +0 -0
- /package/dist/{isBoundWitnessPayload.d.ts → browser/isBoundWitnessPayload.d.mts} +0 -0
- /package/dist/{models/BoundWitness.d.mts → browser/models/BoundWitness.d.cts} +0 -0
- /package/dist/{models/BoundWitness.d.ts → browser/models/BoundWitness.d.mts} +0 -0
- /package/dist/{models/BoundWitnessJsonSchema.d.mts → browser/models/BoundWitnessJsonSchema.d.cts} +0 -0
- /package/dist/{models/BoundWitnessJsonSchema.d.ts → browser/models/BoundWitnessJsonSchema.d.mts} +0 -0
- /package/dist/{models/BoundWitnessSchema.d.mts → browser/models/BoundWitnessSchema.d.cts} +0 -0
- /package/dist/{models/BoundWitnessSchema.d.ts → browser/models/BoundWitnessSchema.d.mts} +0 -0
- /package/dist/{models/index.d.mts → browser/models/index.d.cts} +0 -0
- /package/dist/{models/index.d.ts → browser/models/index.d.mts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,UAAU,CAAA"}
|
|
@@ -35,8 +35,8 @@ var import_payload_model = require("@xyo-network/payload-model");
|
|
|
35
35
|
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
36
36
|
|
|
37
37
|
// src/models/BoundWitness.ts
|
|
38
|
-
var isBoundWitness = (x) => x
|
|
39
|
-
var notBoundWitness = (x) => x
|
|
38
|
+
var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
|
|
39
|
+
var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
|
|
40
40
|
|
|
41
41
|
// src/models/BoundWitnessJsonSchema.ts
|
|
42
42
|
var BoundWitnessJsonSchema = () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/isBoundWitnessPayload.ts","../../src/models/BoundWitnessSchema.ts","../../src/models/BoundWitness.ts","../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["export * from './isBoundWitnessPayload'\nexport * from './models'\n","import { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './models'\n\nexport const isBoundWitnessPayload = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n","//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAAsC;;;ACC/B,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;;;AClB5E,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;;;AHbO,IAAM,4BAAwB,4CAAoC,kBAAkB;","names":[]}
|
|
@@ -5,8 +5,8 @@ import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
|
5
5
|
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
6
6
|
|
|
7
7
|
// src/models/BoundWitness.ts
|
|
8
|
-
var isBoundWitness = (x) => x
|
|
9
|
-
var notBoundWitness = (x) => x
|
|
8
|
+
var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
|
|
9
|
+
var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
|
|
10
10
|
|
|
11
11
|
// src/models/BoundWitnessJsonSchema.ts
|
|
12
12
|
var BoundWitnessJsonSchema = () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/isBoundWitnessPayload.ts","../../src/models/BoundWitnessSchema.ts","../../src/models/BoundWitness.ts","../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["import { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './models'\n\nexport const isBoundWitnessPayload = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n","//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n"],"mappings":";AAAA,SAAS,6BAA6B;;;ACC/B,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;;;AClB5E,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;;;AHbO,IAAM,wBAAwB,sBAAoC,kBAAkB;","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const isBoundWitnessPayload: (x: {
|
|
2
|
+
schema: string;
|
|
3
|
+
} & import("@xyo-network/payload-model").PayloadFields) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./models").BoundWitnessFields & {
|
|
4
|
+
schema: "network.xyo.boundwitness";
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=isBoundWitnessPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBoundWitnessPayload.d.ts","sourceRoot":"","sources":["../../src/isBoundWitnessPayload.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;CAA0D,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const isBoundWitnessPayload: (x: {
|
|
2
|
+
schema: string;
|
|
3
|
+
} & import("@xyo-network/payload-model").PayloadFields) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./models").BoundWitnessFields & {
|
|
4
|
+
schema: "network.xyo.boundwitness";
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=isBoundWitnessPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBoundWitnessPayload.d.ts","sourceRoot":"","sources":["../../src/isBoundWitnessPayload.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;CAA0D,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const isBoundWitnessPayload: (x: {
|
|
2
|
+
schema: string;
|
|
3
|
+
} & import("@xyo-network/payload-model").PayloadFields) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("./models").BoundWitnessFields & {
|
|
4
|
+
schema: "network.xyo.boundwitness";
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=isBoundWitnessPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBoundWitnessPayload.d.ts","sourceRoot":"","sources":["../../src/isBoundWitnessPayload.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;CAA0D,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/isBoundWitnessPayload.ts
|
|
21
|
+
var isBoundWitnessPayload_exports = {};
|
|
22
|
+
__export(isBoundWitnessPayload_exports, {
|
|
23
|
+
isBoundWitnessPayload: () => isBoundWitnessPayload
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(isBoundWitnessPayload_exports);
|
|
26
|
+
var import_payload_model = require("@xyo-network/payload-model");
|
|
27
|
+
|
|
28
|
+
// src/models/BoundWitnessSchema.ts
|
|
29
|
+
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
30
|
+
|
|
31
|
+
// src/isBoundWitnessPayload.ts
|
|
32
|
+
var isBoundWitnessPayload = (0, import_payload_model.isPayloadOfSchemaType)(BoundWitnessSchema);
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
isBoundWitnessPayload
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=isBoundWitnessPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/isBoundWitnessPayload.ts","../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './models'\n\nexport const isBoundWitnessPayload = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAsC;;;ACC/B,IAAM,qBAAyC;;;ADG/C,IAAM,4BAAwB,4CAAoC,kBAAkB;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/isBoundWitnessPayload.ts
|
|
2
|
+
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
3
|
+
|
|
4
|
+
// src/models/BoundWitnessSchema.ts
|
|
5
|
+
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
6
|
+
|
|
7
|
+
// src/isBoundWitnessPayload.ts
|
|
8
|
+
var isBoundWitnessPayload = isPayloadOfSchemaType(BoundWitnessSchema);
|
|
9
|
+
export {
|
|
10
|
+
isBoundWitnessPayload
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=isBoundWitnessPayload.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/isBoundWitnessPayload.ts","../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { BoundWitness, BoundWitnessSchema } from './models'\n\nexport const isBoundWitnessPayload = isPayloadOfSchemaType<BoundWitness>(BoundWitnessSchema)\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";AAAA,SAAS,6BAA6B;;;ACC/B,IAAM,qBAAyC;;;ADG/C,IAAM,wBAAwB,sBAAoC,kBAAkB;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { BoundWitnessSchema } from './BoundWitnessSchema';
|
|
3
|
+
export type BoundWitnessFields = {
|
|
4
|
+
_signatures: string[];
|
|
5
|
+
addresses: string[];
|
|
6
|
+
blockNumber?: number;
|
|
7
|
+
error_hashes?: string[];
|
|
8
|
+
payload_hashes: string[];
|
|
9
|
+
payload_schemas: string[];
|
|
10
|
+
previous_hashes: (string | null)[];
|
|
11
|
+
timestamp?: number;
|
|
12
|
+
};
|
|
13
|
+
export type BoundWitness<T extends Payload | void = void> = Payload<T extends Payload ? BoundWitnessFields & T : BoundWitnessFields, T extends Payload ? T['schema'] : BoundWitnessSchema>;
|
|
14
|
+
export declare const isBoundWitness: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BoundWitnessFields & {
|
|
15
|
+
schema: "network.xyo.boundwitness";
|
|
16
|
+
};
|
|
17
|
+
export declare const notBoundWitness: (x?: Payload | null) => x is {
|
|
18
|
+
schema: string;
|
|
19
|
+
} & import("@xyo-network/payload-model").PayloadFields;
|
|
20
|
+
//# sourceMappingURL=BoundWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitness.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,eAAe,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,IAAI,GAAG,IAAI,IAAI,OAAO,CACjE,CAAC,SAAS,OAAO,GAAG,kBAAkB,GAAG,CAAC,GAAG,kBAAkB,EAC/D,CAAC,SAAS,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CACrD,CAAA;AAED,eAAO,MAAM,cAAc,OAAQ,OAAO,GAAG,IAAI;;CAAwD,CAAA;AACzG,eAAO,MAAM,eAAe,OAAQ,OAAO,GAAG,IAAI;;sDAAmD,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { BoundWitnessSchema } from './BoundWitnessSchema';
|
|
3
|
+
export type BoundWitnessFields = {
|
|
4
|
+
_signatures: string[];
|
|
5
|
+
addresses: string[];
|
|
6
|
+
blockNumber?: number;
|
|
7
|
+
error_hashes?: string[];
|
|
8
|
+
payload_hashes: string[];
|
|
9
|
+
payload_schemas: string[];
|
|
10
|
+
previous_hashes: (string | null)[];
|
|
11
|
+
timestamp?: number;
|
|
12
|
+
};
|
|
13
|
+
export type BoundWitness<T extends Payload | void = void> = Payload<T extends Payload ? BoundWitnessFields & T : BoundWitnessFields, T extends Payload ? T['schema'] : BoundWitnessSchema>;
|
|
14
|
+
export declare const isBoundWitness: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BoundWitnessFields & {
|
|
15
|
+
schema: "network.xyo.boundwitness";
|
|
16
|
+
};
|
|
17
|
+
export declare const notBoundWitness: (x?: Payload | null) => x is {
|
|
18
|
+
schema: string;
|
|
19
|
+
} & import("@xyo-network/payload-model").PayloadFields;
|
|
20
|
+
//# sourceMappingURL=BoundWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitness.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,eAAe,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,IAAI,GAAG,IAAI,IAAI,OAAO,CACjE,CAAC,SAAS,OAAO,GAAG,kBAAkB,GAAG,CAAC,GAAG,kBAAkB,EAC/D,CAAC,SAAS,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CACrD,CAAA;AAED,eAAO,MAAM,cAAc,OAAQ,OAAO,GAAG,IAAI;;CAAwD,CAAA;AACzG,eAAO,MAAM,eAAe,OAAQ,OAAO,GAAG,IAAI;;sDAAmD,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { BoundWitnessSchema } from './BoundWitnessSchema';
|
|
3
|
+
export type BoundWitnessFields = {
|
|
4
|
+
_signatures: string[];
|
|
5
|
+
addresses: string[];
|
|
6
|
+
blockNumber?: number;
|
|
7
|
+
error_hashes?: string[];
|
|
8
|
+
payload_hashes: string[];
|
|
9
|
+
payload_schemas: string[];
|
|
10
|
+
previous_hashes: (string | null)[];
|
|
11
|
+
timestamp?: number;
|
|
12
|
+
};
|
|
13
|
+
export type BoundWitness<T extends Payload | void = void> = Payload<T extends Payload ? BoundWitnessFields & T : BoundWitnessFields, T extends Payload ? T['schema'] : BoundWitnessSchema>;
|
|
14
|
+
export declare const isBoundWitness: (x?: Payload | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & BoundWitnessFields & {
|
|
15
|
+
schema: "network.xyo.boundwitness";
|
|
16
|
+
};
|
|
17
|
+
export declare const notBoundWitness: (x?: Payload | null) => x is {
|
|
18
|
+
schema: string;
|
|
19
|
+
} & import("@xyo-network/payload-model").PayloadFields;
|
|
20
|
+
//# sourceMappingURL=BoundWitness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitness.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,eAAe,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,IAAI,GAAG,IAAI,IAAI,OAAO,CACjE,CAAC,SAAS,OAAO,GAAG,kBAAkB,GAAG,CAAC,GAAG,kBAAkB,EAC/D,CAAC,SAAS,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CACrD,CAAA;AAED,eAAO,MAAM,cAAc,OAAQ,OAAO,GAAG,IAAI;;CAAwD,CAAA;AACzG,eAAO,MAAM,eAAe,OAAQ,OAAO,GAAG,IAAI;;sDAAmD,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/models/BoundWitness.ts
|
|
21
|
+
var BoundWitness_exports = {};
|
|
22
|
+
__export(BoundWitness_exports, {
|
|
23
|
+
isBoundWitness: () => isBoundWitness,
|
|
24
|
+
notBoundWitness: () => notBoundWitness
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(BoundWitness_exports);
|
|
27
|
+
|
|
28
|
+
// src/models/BoundWitnessSchema.ts
|
|
29
|
+
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
30
|
+
|
|
31
|
+
// src/models/BoundWitness.ts
|
|
32
|
+
var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
|
|
33
|
+
var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
isBoundWitness,
|
|
37
|
+
notBoundWitness
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=BoundWitness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/models/BoundWitness.ts","../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n","export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,qBAAyC;;;ADmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/models/BoundWitnessSchema.ts
|
|
2
|
+
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
3
|
+
|
|
4
|
+
// src/models/BoundWitness.ts
|
|
5
|
+
var isBoundWitness = (x) => (x == null ? void 0 : x.schema) === BoundWitnessSchema;
|
|
6
|
+
var notBoundWitness = (x) => (x == null ? void 0 : x.schema) !== BoundWitnessSchema;
|
|
7
|
+
export {
|
|
8
|
+
isBoundWitness,
|
|
9
|
+
notBoundWitness
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=BoundWitness.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts","../../../src/models/BoundWitness.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n","import { Payload } from '@xyo-network/payload-model'\n\nimport { BoundWitnessSchema } from './BoundWitnessSchema'\n\nexport type BoundWitnessFields = {\n _signatures: string[]\n addresses: string[]\n blockNumber?: number\n error_hashes?: string[]\n payload_hashes: string[]\n payload_schemas: string[]\n previous_hashes: (string | null)[]\n timestamp?: number\n}\n\nexport type BoundWitness<T extends Payload | void = void> = Payload<\n T extends Payload ? BoundWitnessFields & T : BoundWitnessFields,\n T extends Payload ? T['schema'] : BoundWitnessSchema\n>\n\nexport const isBoundWitness = (x?: Payload | null): x is BoundWitness => x?.schema === BoundWitnessSchema\nexport const notBoundWitness = (x?: Payload | null): x is Payload => x?.schema !== BoundWitnessSchema\n"],"mappings":";AACO,IAAM,qBAAyC;;;ACmB/C,IAAM,iBAAiB,CAAC,OAA0C,uBAAG,YAAW;AAChF,IAAM,kBAAkB,CAAC,OAAqC,uBAAG,YAAW;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const BoundWitnessJsonSchema: () => {
|
|
2
|
+
$id: string;
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
properties: {
|
|
5
|
+
addresses: {
|
|
6
|
+
items: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
payload_hashes: {
|
|
12
|
+
items: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
payload_schemas: {
|
|
18
|
+
items: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
previous_hashes: {
|
|
24
|
+
items: {
|
|
25
|
+
nullable: boolean;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
schema: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
required: string[];
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=BoundWitnessJsonSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitnessJsonSchema.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitnessJsonSchema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclC,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const BoundWitnessJsonSchema: () => {
|
|
2
|
+
$id: string;
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
properties: {
|
|
5
|
+
addresses: {
|
|
6
|
+
items: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
payload_hashes: {
|
|
12
|
+
items: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
payload_schemas: {
|
|
18
|
+
items: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
previous_hashes: {
|
|
24
|
+
items: {
|
|
25
|
+
nullable: boolean;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
schema: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
required: string[];
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=BoundWitnessJsonSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitnessJsonSchema.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitnessJsonSchema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclC,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const BoundWitnessJsonSchema: () => {
|
|
2
|
+
$id: string;
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
properties: {
|
|
5
|
+
addresses: {
|
|
6
|
+
items: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
payload_hashes: {
|
|
12
|
+
items: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
payload_schemas: {
|
|
18
|
+
items: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
previous_hashes: {
|
|
24
|
+
items: {
|
|
25
|
+
nullable: boolean;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
schema: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
required: string[];
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=BoundWitnessJsonSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitnessJsonSchema.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitnessJsonSchema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclC,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/models/BoundWitnessJsonSchema.ts
|
|
21
|
+
var BoundWitnessJsonSchema_exports = {};
|
|
22
|
+
__export(BoundWitnessJsonSchema_exports, {
|
|
23
|
+
BoundWitnessJsonSchema: () => BoundWitnessJsonSchema
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(BoundWitnessJsonSchema_exports);
|
|
26
|
+
var BoundWitnessJsonSchema = () => {
|
|
27
|
+
return {
|
|
28
|
+
$id: "https://schemas.xyo.network/2.0/boundwitness",
|
|
29
|
+
additionalProperties: false,
|
|
30
|
+
properties: {
|
|
31
|
+
addresses: { items: { type: "string" }, type: "array" },
|
|
32
|
+
payload_hashes: { items: { type: "string" }, type: "array" },
|
|
33
|
+
payload_schemas: { items: { type: "string" }, type: "array" },
|
|
34
|
+
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
|
|
35
|
+
schema: { type: "string" }
|
|
36
|
+
},
|
|
37
|
+
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
|
|
38
|
+
type: "object"
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
BoundWitnessJsonSchema
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=BoundWitnessJsonSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/models/BoundWitnessJsonSchema.ts
|
|
2
|
+
var BoundWitnessJsonSchema = () => {
|
|
3
|
+
return {
|
|
4
|
+
$id: "https://schemas.xyo.network/2.0/boundwitness",
|
|
5
|
+
additionalProperties: false,
|
|
6
|
+
properties: {
|
|
7
|
+
addresses: { items: { type: "string" }, type: "array" },
|
|
8
|
+
payload_hashes: { items: { type: "string" }, type: "array" },
|
|
9
|
+
payload_schemas: { items: { type: "string" }, type: "array" },
|
|
10
|
+
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" },
|
|
11
|
+
schema: { type: "string" }
|
|
12
|
+
},
|
|
13
|
+
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"],
|
|
14
|
+
type: "object"
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
BoundWitnessJsonSchema
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=BoundWitnessJsonSchema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/models/BoundWitnessJsonSchema.ts"],"sourcesContent":["//Should type as JSONSchemaType<BoundWitness> once ajv/eslint issue is fixed\n//https://github.com/microsoft/TypeScript/issues/44851\n\nexport const BoundWitnessJsonSchema = () => {\n return {\n $id: 'https://schemas.xyo.network/2.0/boundwitness',\n additionalProperties: false,\n properties: {\n addresses: { items: { type: 'string' }, type: 'array' },\n payload_hashes: { items: { type: 'string' }, type: 'array' },\n payload_schemas: { items: { type: 'string' }, type: 'array' },\n previous_hashes: { items: { nullable: true, type: 'string' }, type: 'array' },\n schema: { type: 'string' },\n },\n required: ['addresses', 'payload_hashes', 'payload_schemas', 'previous_hashes', 'schema'],\n type: 'object',\n }\n}\n"],"mappings":";AAGO,IAAM,yBAAyB,MAAM;AAC1C,SAAO;AAAA,IACL,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MACtD,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC3D,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5D,iBAAiB,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ;AAAA,MAC5E,QAAQ,EAAE,MAAM,SAAS;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,aAAa,kBAAkB,mBAAmB,mBAAmB,QAAQ;AAAA,IACxF,MAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitnessSchema.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitnessSchema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAA;AAC3D,eAAO,MAAM,kBAAkB,EAAE,kBAA+C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitnessSchema.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitnessSchema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAA;AAC3D,eAAO,MAAM,kBAAkB,EAAE,kBAA+C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoundWitnessSchema.d.ts","sourceRoot":"","sources":["../../../src/models/BoundWitnessSchema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAA;AAC3D,eAAO,MAAM,kBAAkB,EAAE,kBAA+C,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/models/BoundWitnessSchema.ts
|
|
21
|
+
var BoundWitnessSchema_exports = {};
|
|
22
|
+
__export(BoundWitnessSchema_exports, {
|
|
23
|
+
BoundWitnessSchema: () => BoundWitnessSchema
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(BoundWitnessSchema_exports);
|
|
26
|
+
var BoundWitnessSchema = "network.xyo.boundwitness";
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
BoundWitnessSchema
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=BoundWitnessSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,qBAAyC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/models/BoundWitnessSchema.ts"],"sourcesContent":["export type BoundWitnessSchema = 'network.xyo.boundwitness'\nexport const BoundWitnessSchema: BoundWitnessSchema = 'network.xyo.boundwitness'\n"],"mappings":";AACO,IAAM,qBAAyC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA"}
|