@xyo-network/api 2.22.17 → 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.
- package/dist/cjs/Archivist/Api.d.ts +11 -1
- package/dist/cjs/Archivist/Node/Api.d.ts +12 -2
- package/dist/cjs/Archivist/XyoRemoteArchivist.d.ts +12 -2
- package/dist/cjs/User/Api.d.ts +11 -1
- package/dist/docs.json +8817 -6260
- package/dist/esm/Archivist/Api.d.ts +11 -1
- package/dist/esm/Archivist/Node/Api.d.ts +12 -2
- package/dist/esm/Archivist/XyoRemoteArchivist.d.ts +12 -2
- package/dist/esm/User/Api.d.ts +11 -1
- package/package.json +8 -8
- package/src/Diviner/LocationDiviner/Queries/LocationQueryCreationRequest.ts +8 -2
|
@@ -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<
|
|
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<
|
|
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<
|
|
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<(
|
|
10
|
-
|
|
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
|
}
|
package/dist/cjs/User/Api.d.ts
CHANGED
|
@@ -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<
|
|
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;
|