@xyo-network/core 2.21.0 → 2.21.3

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.
@@ -1,6 +1,6 @@
1
1
  import { XyoPayloadWithPartialMeta } from '../../models';
2
2
  import { XyoAccount } from '../../Wallet';
3
- import { XyoBoundWitness, XyoBoundWitnessWithPartialMeta } from '../models';
3
+ import { XyoBoundWitness, XyoBoundWitnessWithMeta } from '../models';
4
4
  export interface XyoBoundWitnessBuilderConfig {
5
5
  /** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
6
6
  readonly inlinePayloads?: boolean;
@@ -18,5 +18,5 @@ export declare class XyoBoundWitnessBuilder {
18
18
  hashableFields(): XyoBoundWitness;
19
19
  private signatures;
20
20
  private inlinePayloads;
21
- build(): XyoBoundWitnessWithPartialMeta;
21
+ build(): XyoBoundWitnessWithMeta;
22
22
  }
@@ -1,4 +1,4 @@
1
- import { XyoPayload } from '../Payload';
1
+ import { XyoPayload } from '../models';
2
2
  export declare abstract class XyoWitness<T extends XyoPayload = XyoPayload> {
3
3
  abstract observe(fields?: Partial<T>): Promise<T>;
4
4
  abstract get targetSchema(): string;
@@ -1,6 +1,6 @@
1
1
  import { XyoPayloadWithPartialMeta } from '../../models';
2
2
  import { XyoAccount } from '../../Wallet';
3
- import { XyoBoundWitness, XyoBoundWitnessWithPartialMeta } from '../models';
3
+ import { XyoBoundWitness, XyoBoundWitnessWithMeta } from '../models';
4
4
  export interface XyoBoundWitnessBuilderConfig {
5
5
  /** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
6
6
  readonly inlinePayloads?: boolean;
@@ -18,5 +18,5 @@ export declare class XyoBoundWitnessBuilder {
18
18
  hashableFields(): XyoBoundWitness;
19
19
  private signatures;
20
20
  private inlinePayloads;
21
- build(): XyoBoundWitnessWithPartialMeta;
21
+ build(): XyoBoundWitnessWithMeta;
22
22
  }
@@ -1,2 +1,2 @@
1
1
  import { XyoBoundWitnessBase } from './Base';
2
- export declare type XyoBoundWitness<T extends object = XyoBoundWitnessBase> = T & XyoBoundWitnessBase;
2
+ export declare type XyoBoundWitness<T extends object = object> = T & XyoBoundWitnessBase;
@@ -3,4 +3,4 @@ import { XyoPayload } from '../models';
3
3
  import { XyoSchemaPayload } from '../Schema';
4
4
  export declare const isXyoPayloadOfSchemaType: <T extends XyoPayload<object>>(schema: string) => (x: XyoPayload) => x is T;
5
5
  export declare const isXyoSchemaPayload: (x: XyoPayload) => x is XyoSchemaPayload;
6
- export declare const isXyoBoundWitnessPayload: (x: XyoPayload) => x is XyoBoundWitness<import("../BoundWitness").XyoBoundWitnessBase>;
6
+ export declare const isXyoBoundWitnessPayload: (x: XyoPayload) => x is XyoBoundWitness<object>;
package/package.json CHANGED
@@ -59,6 +59,6 @@
59
59
  },
60
60
  "sideEffects": true,
61
61
  "types": "dist/esm/index.d.ts",
62
- "version": "2.21.0",
62
+ "version": "2.21.3",
63
63
  "packageManager": "yarn@3.1.1"
64
64
  }
@@ -3,7 +3,7 @@ import { assertEx, Buffer } from '@xylabs/sdk-js'
3
3
  import { sortFields, XyoHasher } from '../../Hasher'
4
4
  import { XyoPayload, XyoPayloadWithPartialMeta } from '../../models'
5
5
  import { XyoAccount } from '../../Wallet'
6
- import { WithXyoBoundWitnessMeta, XyoBoundWitness, XyoBoundWitnessWithPartialMeta } from '../models'
6
+ import { WithXyoBoundWitnessMeta, XyoBoundWitness, XyoBoundWitnessWithMeta } from '../models'
7
7
 
8
8
  export interface XyoBoundWitnessBuilderConfig {
9
9
  /** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
@@ -70,7 +70,7 @@ export class XyoBoundWitnessBuilder {
70
70
  })
71
71
  }
72
72
 
73
- public build(): XyoBoundWitnessWithPartialMeta {
73
+ public build(): XyoBoundWitnessWithMeta {
74
74
  const hashableFields = this.hashableFields() as unknown as Record<string, unknown>
75
75
  const _hash = new XyoHasher(hashableFields).hash
76
76
 
@@ -1,3 +1,3 @@
1
1
  import { XyoBoundWitnessBase } from './Base'
2
2
 
3
- export type XyoBoundWitness<T extends object = XyoBoundWitnessBase> = T & XyoBoundWitnessBase
3
+ export type XyoBoundWitness<T extends object = object> = T & XyoBoundWitnessBase