@xyo-network/api 2.22.19 → 2.22.20

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.
@@ -20,7 +20,17 @@ export declare class XyoArchivistApi extends XyoApiBase {
20
20
  /** @deprecated use account instead */
21
21
  wallet(address: XyoDataLike): XyoAccountApi;
22
22
  account(address: XyoDataLike): XyoAccountApi;
23
- huri(huri: Huri | string): XyoApiSimple<import("@xyo-network/payload").XyoPayloadBase, import("@xyo-network/payload").XyoPayloadBase, import("@xyo-network/archivist").XyoPayloadFindFilter, import("../models/Api/Config").XyoApiConfig>;
23
+ huri(huri: Huri | string): XyoApiSimple<{
24
+ schema: string;
25
+ previousHash?: string | undefined;
26
+ sources?: string[] | undefined;
27
+ timestamp?: number | undefined;
28
+ }, {
29
+ schema: string;
30
+ previousHash?: string | undefined;
31
+ sources?: string[] | undefined;
32
+ timestamp?: number | undefined;
33
+ }, import("@xyo-network/archivist").XyoPayloadFindFilter, import("../models/Api/Config").XyoApiConfig>;
24
34
  /**
25
35
  * Issues commands/queries as XyoBoundWitness wrapped XyoPayloads against a Node in the network
26
36
  * @param archive Optional, the archive to issue the requests against
@@ -17,7 +17,12 @@ export declare class XyoArchivistNodeApi<D extends XyoBoundWitnessWithMeta | Xyo
17
17
  * @param retryInterval The interval to poll for query results
18
18
  * @returns The results for the issued queries
19
19
  */
20
- performTransaction(data: D, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/payload").XyoPayloadBase | undefined>[][]>;
20
+ performTransaction(data: D, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<{
21
+ schema: string;
22
+ previousHash?: string | undefined;
23
+ sources?: string[] | undefined;
24
+ timestamp?: number | undefined;
25
+ } | undefined>[][]>;
21
26
  /**
22
27
  * Issue the supplied query and wait (non-blocking) for the result
23
28
  * @param data The query to issue
@@ -25,5 +30,10 @@ export declare class XyoArchivistNodeApi<D extends XyoBoundWitnessWithMeta | Xyo
25
30
  * @param retryInterval The interval to poll for query results
26
31
  * @returns The result for the issued query
27
32
  */
28
- perform<T>(data: T, schema: string, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<import("@xyo-network/payload").XyoPayloadBase | undefined>>;
33
+ perform<T>(data: T, schema: string, timeout?: number, retryInterval?: number): Promise<import("../../models").XyoApiEnvelope<{
34
+ schema: string;
35
+ previousHash?: string | undefined;
36
+ sources?: string[] | undefined;
37
+ timestamp?: number | undefined;
38
+ } | undefined>>;
29
39
  }
@@ -6,7 +6,17 @@ export declare class XyoRemoteArchivist extends XyoRemoteArchivistConfigWrapper
6
6
  get api(): import("./Api").XyoArchivistApi;
7
7
  get archive(): string | undefined;
8
8
  constructor(config?: XyoRemoteArchivistConfig);
9
- get(hashes: string[]): Promise<(import("@xyo-network/payload").XyoPayloadBase | null)[]>;
10
- insert(payloads: XyoPayload[]): Promise<import("@xyo-network/payload").XyoPayloadBase[]>;
9
+ get(hashes: string[]): Promise<({
10
+ schema: string;
11
+ previousHash?: string | undefined;
12
+ sources?: string[] | undefined;
13
+ timestamp?: number | undefined;
14
+ } | null)[]>;
15
+ insert(payloads: XyoPayload[]): Promise<{
16
+ schema: string;
17
+ previousHash?: string | undefined;
18
+ sources?: string[] | undefined;
19
+ timestamp?: number | undefined;
20
+ }[]>;
11
21
  find<R extends XyoPayload = XyoPayload>(query: XyoPayloadFindQuery): Promise<R[]>;
12
22
  }
@@ -12,7 +12,17 @@ export declare class XyoUserApi extends XyoApiBase {
12
12
  get authenticated(): boolean;
13
13
  get headers(): Record<string, string>;
14
14
  get login(): XyoApiSimple<XyoUserLogin, XyoUserLogin, import("@xyo-network/archivist").XyoPayloadFindFilter, import("../models/Api/Config").XyoApiConfig>;
15
- get profile(): XyoApiSimple<import("@xyo-network/payload").XyoPayloadBase, import("@xyo-network/payload").XyoPayloadBase, import("@xyo-network/archivist").XyoPayloadFindFilter, {
15
+ get profile(): XyoApiSimple<{
16
+ schema: string;
17
+ previousHash?: string | undefined; /** @field Token to access the API as that user [out] */
18
+ sources?: string[] | undefined;
19
+ timestamp?: number | undefined;
20
+ }, {
21
+ schema: string;
22
+ previousHash?: string | undefined; /** @field Token to access the API as that user [out] */
23
+ sources?: string[] | undefined;
24
+ timestamp?: number | undefined;
25
+ }, import("@xyo-network/archivist").XyoPayloadFindFilter, {
16
26
  root: string;
17
27
  apiDomain: string; /** @field Password of the user [in] */
18
28
  userid?: string | undefined;
package/package.json CHANGED
@@ -10,12 +10,12 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@xylabs/sdk-js": "^2.6.2",
13
- "@xyo-network/account": "^2.22.19",
14
- "@xyo-network/archivist": "^2.22.19",
15
- "@xyo-network/boundwitness": "^2.22.19",
16
- "@xyo-network/core": "^2.22.19",
17
- "@xyo-network/payload": "^2.22.19",
18
- "@xyo-network/typeof": "^2.22.19",
13
+ "@xyo-network/account": "^2.22.20",
14
+ "@xyo-network/archivist": "^2.22.20",
15
+ "@xyo-network/boundwitness": "^2.22.20",
16
+ "@xyo-network/core": "^2.22.20",
17
+ "@xyo-network/payload": "^2.22.20",
18
+ "@xyo-network/typeof": "^2.22.20",
19
19
  "axios": "^0.27.2",
20
20
  "pako": "^2.0.4",
21
21
  "uuid": "^8.3.2"
@@ -25,7 +25,7 @@
25
25
  "@ethersproject/wallet": "^5.6.2",
26
26
  "@types/pako": "^2.0.0",
27
27
  "@types/uuid": "^8.3.4",
28
- "@xylabs/tsconfig": "^2.5.4",
28
+ "@xylabs/tsconfig": "^2.5.6",
29
29
  "tslib": "^2.4.0"
30
30
  },
31
31
  "browser": "dist/esm/index.js",
@@ -61,6 +61,6 @@
61
61
  },
62
62
  "sideEffects": false,
63
63
  "types": "dist/esm/index.d.ts",
64
- "version": "2.22.19",
64
+ "version": "2.22.20",
65
65
  "packageManager": "yarn@3.1.1"
66
66
  }
@@ -4,7 +4,10 @@ import { LocationQuadkeyHeatmapQuery, LocationQuadkeyHeatmapQuerySchema } from '
4
4
  import { LocationQuerySchema } from './LocationQuerySchema'
5
5
  import { LocationTimeRangeQuery, LocationTimeRangeQuerySchema } from './LocationTimeRangeQuery'
6
6
 
7
- export interface LocationQueryCreationRequest<TSchema extends LocationQuerySchema = LocationQuerySchema, TQuery extends Record<string, unknown> = Record<string, unknown>> {
7
+ export interface LocationQueryCreationRequest<
8
+ TSchema extends LocationQuerySchema = LocationQuerySchema,
9
+ TQuery extends Record<string, unknown> = Record<string, unknown>
10
+ > {
8
11
  sourceArchivist: XyoApiConfig
9
12
  sourceArchive: string
10
13
  resultArchivist: XyoApiConfig
@@ -18,4 +21,7 @@ export type LocationHeatmapQueryCreationRequest = LocationQueryCreationRequest<L
18
21
 
19
22
  export type LocationQuadkeyHeatmapQueryCreationRequest = LocationQueryCreationRequest<LocationQuadkeyHeatmapQuerySchema, LocationQuadkeyHeatmapQuery>
20
23
 
21
- export type SupportedLocationQueryCreationRequest = LocationTimeRangeQueryCreationRequest | LocationHeatmapQueryCreationRequest | LocationQuadkeyHeatmapQueryCreationRequest
24
+ export type SupportedLocationQueryCreationRequest =
25
+ | LocationTimeRangeQueryCreationRequest
26
+ | LocationHeatmapQueryCreationRequest
27
+ | LocationQuadkeyHeatmapQueryCreationRequest