Socket
Socket
Sign inDemoInstall

@xyo-network/boundwitness-model

Package Overview
Dependencies
Maintainers
5
Versions
701
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/boundwitness-model - npm Package Compare versions

Comparing version 2.111.3 to 3.0.0

88

dist/browser/index.d.ts

@@ -1,4 +0,84 @@

export * from './BoundWitness/index.ts';
export * from './isBoundWitness.ts';
export * from './QueryBoundWitness.ts';
//# sourceMappingURL=index.d.ts.map
import { Hex, Address, Hash } from '@xylabs/hex';
import { EmptyObject } from '@xylabs/object';
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
import { Schema, Payload, WithMeta } from '@xyo-network/payload-model';
type BoundWitnessSchema = 'network.xyo.boundwitness';
declare const BoundWitnessSchema: BoundWitnessSchema;
type BoundWitnessFields = {
$meta: {
signatures: Hex[];
};
addresses: Address[];
blockNumber?: number;
error_hashes?: Hash[];
payload_hashes: Hash[];
payload_schemas: Schema[];
previous_hashes: (Hash | null)[];
sourceQuery?: Hash;
timestamp: number;
};
type BoundWitness<T extends Payload | EmptyObject | void = void> = Payload<T extends void ? BoundWitnessFields : BoundWitnessFields & T, T extends void ? BoundWitnessSchema : T extends Payload ? T['schema'] : BoundWitnessSchema>;
declare const BoundWitnessJsonSchema: () => {
$id: string;
additionalProperties: boolean;
properties: {
addresses: {
items: {
type: string;
};
type: string;
};
payload_hashes: {
items: {
type: string;
};
type: string;
};
payload_schemas: {
items: {
type: string;
};
type: string;
};
previous_hashes: {
items: {
nullable: boolean;
type: string;
};
type: string;
};
schema: {
type: string;
};
};
required: string[];
type: string;
};
declare const isBoundWitness: (value: unknown) => value is BoundWitness;
declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
declare const notBoundWitness: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & BoundWitnessFields & {
schema: "network.xyo.boundwitness";
};
declare const asBoundWitness: <T extends BoundWitness<{
schema: string;
}> = _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & BoundWitnessFields & {
schema: "network.xyo.boundwitness";
}>(payload?: unknown) => T | undefined;
declare const isBoundWitnessPayload: (value: unknown) => value is BoundWitness;
type QueryBoundWitnessSchema = BoundWitnessSchema;
declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
type QueryBoundWitness = BoundWitness<{
additional?: Hash[];
query: Hash;
resultSet?: string;
schema: QueryBoundWitnessSchema;
}>;
declare const isQueryBoundWitness: (x?: unknown) => x is QueryBoundWitness;
declare const isQueryBoundWitnessWithMeta: (x?: unknown) => x is WithMeta<QueryBoundWitness>;
export { type BoundWitness, type BoundWitnessFields, BoundWitnessJsonSchema, BoundWitnessSchema, type QueryBoundWitness, QueryBoundWitnessSchema, asBoundWitness, isBoundWitness, isBoundWitnessPayload, isBoundWitnessWithMeta, isQueryBoundWitness, isQueryBoundWitnessWithMeta, notBoundWitness };

@@ -1,4 +0,84 @@

export * from './BoundWitness/index.ts';
export * from './isBoundWitness.ts';
export * from './QueryBoundWitness.ts';
//# sourceMappingURL=index.d.ts.map
import { Hex, Address, Hash } from '@xylabs/hex';
import { EmptyObject } from '@xylabs/object';
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
import { Schema, Payload, WithMeta } from '@xyo-network/payload-model';
type BoundWitnessSchema = 'network.xyo.boundwitness';
declare const BoundWitnessSchema: BoundWitnessSchema;
type BoundWitnessFields = {
$meta: {
signatures: Hex[];
};
addresses: Address[];
blockNumber?: number;
error_hashes?: Hash[];
payload_hashes: Hash[];
payload_schemas: Schema[];
previous_hashes: (Hash | null)[];
sourceQuery?: Hash;
timestamp: number;
};
type BoundWitness<T extends Payload | EmptyObject | void = void> = Payload<T extends void ? BoundWitnessFields : BoundWitnessFields & T, T extends void ? BoundWitnessSchema : T extends Payload ? T['schema'] : BoundWitnessSchema>;
declare const BoundWitnessJsonSchema: () => {
$id: string;
additionalProperties: boolean;
properties: {
addresses: {
items: {
type: string;
};
type: string;
};
payload_hashes: {
items: {
type: string;
};
type: string;
};
payload_schemas: {
items: {
type: string;
};
type: string;
};
previous_hashes: {
items: {
nullable: boolean;
type: string;
};
type: string;
};
schema: {
type: string;
};
};
required: string[];
type: string;
};
declare const isBoundWitness: (value: unknown) => value is BoundWitness;
declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
declare const notBoundWitness: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & BoundWitnessFields & {
schema: "network.xyo.boundwitness";
};
declare const asBoundWitness: <T extends BoundWitness<{
schema: string;
}> = _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & BoundWitnessFields & {
schema: "network.xyo.boundwitness";
}>(payload?: unknown) => T | undefined;
declare const isBoundWitnessPayload: (value: unknown) => value is BoundWitness;
type QueryBoundWitnessSchema = BoundWitnessSchema;
declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
type QueryBoundWitness = BoundWitness<{
additional?: Hash[];
query: Hash;
resultSet?: string;
schema: QueryBoundWitnessSchema;
}>;
declare const isQueryBoundWitness: (x?: unknown) => x is QueryBoundWitness;
declare const isQueryBoundWitnessWithMeta: (x?: unknown) => x is WithMeta<QueryBoundWitness>;
export { type BoundWitness, type BoundWitnessFields, BoundWitnessJsonSchema, BoundWitnessSchema, type QueryBoundWitness, QueryBoundWitnessSchema, asBoundWitness, isBoundWitness, isBoundWitnessPayload, isBoundWitnessWithMeta, isQueryBoundWitness, isQueryBoundWitnessWithMeta, notBoundWitness };

@@ -1,4 +0,84 @@

export * from './BoundWitness/index.ts';
export * from './isBoundWitness.ts';
export * from './QueryBoundWitness.ts';
//# sourceMappingURL=index.d.ts.map
import { Hex, Address, Hash } from '@xylabs/hex';
import { EmptyObject } from '@xylabs/object';
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
import { Schema, Payload, WithMeta } from '@xyo-network/payload-model';
type BoundWitnessSchema = 'network.xyo.boundwitness';
declare const BoundWitnessSchema: BoundWitnessSchema;
type BoundWitnessFields = {
$meta: {
signatures: Hex[];
};
addresses: Address[];
blockNumber?: number;
error_hashes?: Hash[];
payload_hashes: Hash[];
payload_schemas: Schema[];
previous_hashes: (Hash | null)[];
sourceQuery?: Hash;
timestamp: number;
};
type BoundWitness<T extends Payload | EmptyObject | void = void> = Payload<T extends void ? BoundWitnessFields : BoundWitnessFields & T, T extends void ? BoundWitnessSchema : T extends Payload ? T['schema'] : BoundWitnessSchema>;
declare const BoundWitnessJsonSchema: () => {
$id: string;
additionalProperties: boolean;
properties: {
addresses: {
items: {
type: string;
};
type: string;
};
payload_hashes: {
items: {
type: string;
};
type: string;
};
payload_schemas: {
items: {
type: string;
};
type: string;
};
previous_hashes: {
items: {
nullable: boolean;
type: string;
};
type: string;
};
schema: {
type: string;
};
};
required: string[];
type: string;
};
declare const isBoundWitness: (value: unknown) => value is BoundWitness;
declare const isBoundWitnessWithMeta: (value: unknown) => value is WithMeta<BoundWitness>;
declare const notBoundWitness: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & BoundWitnessFields & {
schema: "network.xyo.boundwitness";
};
declare const asBoundWitness: <T extends BoundWitness<{
schema: string;
}> = _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & BoundWitnessFields & {
schema: "network.xyo.boundwitness";
}>(payload?: unknown) => T | undefined;
declare const isBoundWitnessPayload: (value: unknown) => value is BoundWitness;
type QueryBoundWitnessSchema = BoundWitnessSchema;
declare const QueryBoundWitnessSchema: QueryBoundWitnessSchema;
type QueryBoundWitness = BoundWitness<{
additional?: Hash[];
query: Hash;
resultSet?: string;
schema: QueryBoundWitnessSchema;
}>;
declare const isQueryBoundWitness: (x?: unknown) => x is QueryBoundWitness;
declare const isQueryBoundWitnessWithMeta: (x?: unknown) => x is WithMeta<QueryBoundWitness>;
export { type BoundWitness, type BoundWitnessFields, BoundWitnessJsonSchema, BoundWitnessSchema, type QueryBoundWitness, QueryBoundWitnessSchema, asBoundWitness, isBoundWitness, isBoundWitnessPayload, isBoundWitnessWithMeta, isQueryBoundWitness, isQueryBoundWitnessWithMeta, notBoundWitness };

35

package.json

@@ -16,8 +16,8 @@ {

"@xylabs/object": "^3.6.12",
"@xyo-network/payload-model": "^2.111.3"
"@xyo-network/payload-model": "^3.0.0"
},
"devDependencies": {
"@types/node": "^22.1.0",
"@xylabs/ts-scripts-yarn3": "^3.15.14",
"@xylabs/tsconfig": "^3.15.14",
"@xylabs/ts-scripts-yarn3": "next",
"@xylabs/tsconfig": "next",
"typescript": "^5.5.4"

@@ -27,27 +27,8 @@ },

".": {
"browser": {
"require": {
"types": "./dist/browser/index.d.cts",
"default": "./dist/browser/index.cjs"
},
"import": {
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/index.mjs"
}
},
"node": {
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.mjs"
}
}
"types": "./dist/neutral/index.d.ts",
"default": "./dist/neutral/index.mjs"
},
"./package.json": "./package.json"
},
"main": "dist/node/index.cjs",
"module": "dist/node/index.mjs",
"module": "dist/neutral/index.mjs",
"homepage": "https://xyo.network",

@@ -63,5 +44,5 @@ "license": "LGPL-3.0-only",

"sideEffects": false,
"types": "dist/node/index.d.ts",
"version": "2.111.3",
"types": "dist/neutral/index.d.ts",
"version": "3.0.0",
"type": "module"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc