@xyo-network/boundwitness-model
Advanced tools
Comparing version 2.111.3 to 3.0.0
@@ -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 }; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39197
20
440
1
+ Added@xylabs/assert@4.0.10(transitive)
+ Added@xylabs/error@4.0.10(transitive)
+ Added@xylabs/hex@4.0.10(transitive)
+ Added@xylabs/logger@4.0.10(transitive)
+ Added@xylabs/object@4.0.10(transitive)
+ Added@xylabs/promise@4.0.10(transitive)
+ Added@xyo-network/payload-model@3.1.11(transitive)
- Removed@xyo-network/payload-model@2.111.3(transitive)