@xyo-network/api-call-witness 3.4.1 → 3.4.2
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/neutral/index.d.ts +14 -482
- package/package.json +13 -13
package/dist/neutral/index.d.ts
CHANGED
|
@@ -2,10 +2,7 @@ import * as _xylabs_object from '@xylabs/object';
|
|
|
2
2
|
import { JsonArray, JsonObject } from '@xylabs/object';
|
|
3
3
|
import * as _store__xylabs_promise_npm_4_5_1_97d36b712b_package from '.store/@xylabs-promise-npm-4.5.1-97d36b712b/package';
|
|
4
4
|
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
5
|
-
import * as _xylabs_hex from '@xylabs/hex';
|
|
6
5
|
import { Hash } from '@xylabs/hex';
|
|
7
|
-
import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
|
|
8
|
-
import * as _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package from '.store/@xyo-network-module-model-npm-3.8.5-6e76fd3a27/package';
|
|
9
6
|
import { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
|
|
10
7
|
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
11
8
|
|
|
@@ -15,23 +12,8 @@ declare const asApiCallPayload: {
|
|
|
15
12
|
};
|
|
16
13
|
|
|
17
14
|
declare const asApiCallBase64Result: {
|
|
18
|
-
<TType extends _xylabs_object.
|
|
19
|
-
|
|
20
|
-
call: _xylabs_hex.Hash;
|
|
21
|
-
contentType: Exclude<Exclude<string, "application/json">, ApiCallXmlResult["contentType"]>;
|
|
22
|
-
data: string;
|
|
23
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
24
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
25
|
-
schema: "network.xyo.api.call.result";
|
|
26
|
-
call: _xylabs_hex.Hash;
|
|
27
|
-
contentType: Exclude<Exclude<string, "application/json">, ApiCallXmlResult["contentType"]>;
|
|
28
|
-
data: string;
|
|
29
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
30
|
-
schema: "network.xyo.api.call.result";
|
|
31
|
-
call: _xylabs_hex.Hash;
|
|
32
|
-
contentType: Exclude<Exclude<string, "application/json">, ApiCallXmlResult["contentType"]>;
|
|
33
|
-
data: string;
|
|
34
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
15
|
+
<TType extends ApiCallBase64Result>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
16
|
+
<TType extends ApiCallBase64Result>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiCallBase64Result>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
35
17
|
};
|
|
36
18
|
|
|
37
19
|
declare const asApiCallResult: {
|
|
@@ -40,102 +22,18 @@ declare const asApiCallResult: {
|
|
|
40
22
|
};
|
|
41
23
|
|
|
42
24
|
declare const asApiCallXmlResult: {
|
|
43
|
-
<TType extends _xylabs_object.
|
|
44
|
-
|
|
45
|
-
call: _xylabs_hex.Hash;
|
|
46
|
-
contentType: "application/xml" | "text/xml";
|
|
47
|
-
data: string;
|
|
48
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
49
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
50
|
-
schema: "network.xyo.api.call.result";
|
|
51
|
-
call: _xylabs_hex.Hash;
|
|
52
|
-
contentType: "application/xml" | "text/xml";
|
|
53
|
-
data: string;
|
|
54
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
55
|
-
schema: "network.xyo.api.call.result";
|
|
56
|
-
call: _xylabs_hex.Hash;
|
|
57
|
-
contentType: "application/xml" | "text/xml";
|
|
58
|
-
data: string;
|
|
59
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
25
|
+
<TType extends ApiCallXmlResult>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
26
|
+
<TType extends ApiCallXmlResult>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiCallXmlResult>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
60
27
|
};
|
|
61
28
|
|
|
62
29
|
declare const asApiUriCallPayload: {
|
|
63
|
-
<TType extends _xylabs_object.
|
|
64
|
-
|
|
65
|
-
headers?: {
|
|
66
|
-
[x: string]: string | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
queries?: {
|
|
69
|
-
[x: string]: string;
|
|
70
|
-
} | undefined;
|
|
71
|
-
verb?: Verb | undefined;
|
|
72
|
-
uri: string;
|
|
73
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
74
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
75
|
-
schema: "network.xyo.api.call";
|
|
76
|
-
headers?: {
|
|
77
|
-
[x: string]: string | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
queries?: {
|
|
80
|
-
[x: string]: string;
|
|
81
|
-
} | undefined;
|
|
82
|
-
verb?: Verb | undefined;
|
|
83
|
-
uri: string;
|
|
84
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
85
|
-
schema: "network.xyo.api.call";
|
|
86
|
-
headers?: {
|
|
87
|
-
[x: string]: string | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
queries?: {
|
|
90
|
-
[x: string]: string;
|
|
91
|
-
} | undefined;
|
|
92
|
-
verb?: Verb | undefined;
|
|
93
|
-
uri: string;
|
|
94
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
30
|
+
<TType extends ApiUriCallPayload>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
31
|
+
<TType extends ApiUriCallPayload>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiUriCallPayload>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
95
32
|
};
|
|
96
33
|
|
|
97
34
|
declare const asApiUriTemplateCall: {
|
|
98
|
-
<TType extends _xylabs_object.
|
|
99
|
-
|
|
100
|
-
headers?: {
|
|
101
|
-
[x: string]: string | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
queries?: {
|
|
104
|
-
[x: string]: string;
|
|
105
|
-
} | undefined;
|
|
106
|
-
verb?: Verb | undefined;
|
|
107
|
-
params?: {
|
|
108
|
-
[x: string]: string;
|
|
109
|
-
} | undefined;
|
|
110
|
-
uriTemplate?: string | undefined;
|
|
111
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
112
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
113
|
-
schema: "network.xyo.api.call";
|
|
114
|
-
headers?: {
|
|
115
|
-
[x: string]: string | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
queries?: {
|
|
118
|
-
[x: string]: string;
|
|
119
|
-
} | undefined;
|
|
120
|
-
verb?: Verb | undefined;
|
|
121
|
-
params?: {
|
|
122
|
-
[x: string]: string;
|
|
123
|
-
} | undefined;
|
|
124
|
-
uriTemplate?: string | undefined;
|
|
125
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
126
|
-
schema: "network.xyo.api.call";
|
|
127
|
-
headers?: {
|
|
128
|
-
[x: string]: string | undefined;
|
|
129
|
-
} | undefined;
|
|
130
|
-
queries?: {
|
|
131
|
-
[x: string]: string;
|
|
132
|
-
} | undefined;
|
|
133
|
-
verb?: Verb | undefined;
|
|
134
|
-
params?: {
|
|
135
|
-
[x: string]: string;
|
|
136
|
-
} | undefined;
|
|
137
|
-
uriTemplate?: string | undefined;
|
|
138
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
35
|
+
<TType extends ApiUriTemplateCallPayload>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
36
|
+
<TType extends ApiUriTemplateCallPayload>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiUriTemplateCallPayload>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
139
37
|
};
|
|
140
38
|
|
|
141
39
|
declare const ApiCallSchema = "network.xyo.api.call";
|
|
@@ -172,95 +70,8 @@ type ApiCallJsonResult<T extends ApiCallJsonResultType = ApiCallJsonResultType>
|
|
|
172
70
|
}, ApiCallResultSchema>;
|
|
173
71
|
declare const isApiCallJsonResult: <T extends ApiCallJsonResultType = ApiCallJsonResultType>(x?: unknown | null) => x is ApiCallJsonResult<T>;
|
|
174
72
|
declare const asApiCallJsonResult: {
|
|
175
|
-
<TType extends _xylabs_object.
|
|
176
|
-
|
|
177
|
-
call: Hash;
|
|
178
|
-
contentType: "application/json";
|
|
179
|
-
data: {
|
|
180
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
181
|
-
} | (string | number | boolean | {
|
|
182
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
183
|
-
} | (string | number | boolean | {
|
|
184
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
185
|
-
} | (string | number | boolean | {
|
|
186
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
187
|
-
} | (string | number | boolean | {
|
|
188
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
189
|
-
} | (string | number | boolean | {
|
|
190
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
191
|
-
} | (string | number | boolean | {
|
|
192
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
193
|
-
} | (string | number | boolean | {
|
|
194
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
195
|
-
} | (string | number | boolean | {
|
|
196
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
197
|
-
} | (string | number | boolean | {
|
|
198
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
199
|
-
} | (string | number | boolean | {
|
|
200
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
201
|
-
} | (string | number | boolean | {
|
|
202
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
203
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
204
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
205
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
206
|
-
schema: "network.xyo.api.call.result";
|
|
207
|
-
call: Hash;
|
|
208
|
-
contentType: "application/json";
|
|
209
|
-
data: {
|
|
210
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
211
|
-
} | (string | number | boolean | {
|
|
212
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
213
|
-
} | (string | number | boolean | {
|
|
214
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
215
|
-
} | (string | number | boolean | {
|
|
216
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
217
|
-
} | (string | number | boolean | {
|
|
218
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
219
|
-
} | (string | number | boolean | {
|
|
220
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
221
|
-
} | (string | number | boolean | {
|
|
222
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
223
|
-
} | (string | number | boolean | {
|
|
224
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
225
|
-
} | (string | number | boolean | {
|
|
226
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
227
|
-
} | (string | number | boolean | {
|
|
228
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
229
|
-
} | (string | number | boolean | {
|
|
230
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
231
|
-
} | (string | number | boolean | {
|
|
232
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
233
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
234
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
235
|
-
schema: "network.xyo.api.call.result";
|
|
236
|
-
call: Hash;
|
|
237
|
-
contentType: "application/json";
|
|
238
|
-
data: {
|
|
239
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
240
|
-
} | (string | number | boolean | {
|
|
241
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
242
|
-
} | (string | number | boolean | {
|
|
243
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
244
|
-
} | (string | number | boolean | {
|
|
245
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
246
|
-
} | (string | number | boolean | {
|
|
247
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
248
|
-
} | (string | number | boolean | {
|
|
249
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
250
|
-
} | (string | number | boolean | {
|
|
251
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
252
|
-
} | (string | number | boolean | {
|
|
253
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
|
|
254
|
-
} | (string | number | boolean | {
|
|
255
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
|
|
256
|
-
} | (string | number | boolean | {
|
|
257
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
|
|
258
|
-
} | (string | number | boolean | {
|
|
259
|
-
[x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
|
|
260
|
-
} | (string | number | boolean | {
|
|
261
|
-
[x: string]: string | number | boolean | any | any | null;
|
|
262
|
-
} | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[];
|
|
263
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
73
|
+
<TType extends ApiCallJsonResult<ApiCallJsonResultType>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
74
|
+
<TType extends ApiCallJsonResult<ApiCallJsonResultType>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiCallJsonResult<ApiCallJsonResultType>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
264
75
|
};
|
|
265
76
|
|
|
266
77
|
type ApiCallXmlResult = Payload<{
|
|
@@ -330,292 +141,13 @@ declare const asApiCallWitnessConfig: {
|
|
|
330
141
|
};
|
|
331
142
|
declare const isApiUriCallWitnessConfig: (value?: unknown) => value is ApiUriCallWitnessConfig;
|
|
332
143
|
declare const asApiUriCallWitnessConfig: {
|
|
333
|
-
<TType extends _xylabs_object.
|
|
334
|
-
|
|
335
|
-
headers?: {
|
|
336
|
-
[x: string]: string | undefined;
|
|
337
|
-
} | undefined;
|
|
338
|
-
queries?: {
|
|
339
|
-
[x: string]: string;
|
|
340
|
-
} | undefined;
|
|
341
|
-
verb?: Verb | undefined;
|
|
342
|
-
uri: ApiUriCallPayload["uri"];
|
|
343
|
-
readonly archiving?: {
|
|
344
|
-
readonly archivists?: string[] | undefined;
|
|
345
|
-
readonly queries?: string[] | undefined;
|
|
346
|
-
} | undefined;
|
|
347
|
-
readonly allowedQueries?: string[] | undefined;
|
|
348
|
-
readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
|
|
349
|
-
readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
|
|
350
|
-
readonly labels?: {
|
|
351
|
-
[x: string]: string | undefined;
|
|
352
|
-
} | undefined;
|
|
353
|
-
readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
|
|
354
|
-
readonly paging?: {
|
|
355
|
-
[x: string]: {
|
|
356
|
-
size?: number | undefined;
|
|
357
|
-
};
|
|
358
|
-
} | undefined;
|
|
359
|
-
readonly retry?: {
|
|
360
|
-
backoff?: number | undefined;
|
|
361
|
-
interval?: number | undefined;
|
|
362
|
-
retries?: number | undefined;
|
|
363
|
-
} | undefined;
|
|
364
|
-
readonly security?: {
|
|
365
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
366
|
-
readonly allowed?: {
|
|
367
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
368
|
-
} | undefined;
|
|
369
|
-
readonly disallowed?: {
|
|
370
|
-
[x: string]: Lowercase<string>[];
|
|
371
|
-
} | undefined;
|
|
372
|
-
} | undefined;
|
|
373
|
-
readonly sign?: boolean | undefined;
|
|
374
|
-
readonly storeQueries?: boolean | undefined;
|
|
375
|
-
readonly timestamp?: boolean | undefined;
|
|
376
|
-
accept?: MimeTypes | undefined;
|
|
377
|
-
timeout?: number | undefined;
|
|
378
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
379
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
380
|
-
schema: "network.xyo.api.call.witness.config";
|
|
381
|
-
headers?: {
|
|
382
|
-
[x: string]: string | undefined;
|
|
383
|
-
} | undefined;
|
|
384
|
-
queries?: {
|
|
385
|
-
[x: string]: string;
|
|
386
|
-
} | undefined;
|
|
387
|
-
verb?: Verb | undefined;
|
|
388
|
-
uri: ApiUriCallPayload["uri"];
|
|
389
|
-
readonly archiving?: {
|
|
390
|
-
readonly archivists?: string[] | undefined;
|
|
391
|
-
readonly queries?: string[] | undefined;
|
|
392
|
-
} | undefined;
|
|
393
|
-
readonly allowedQueries?: string[] | undefined;
|
|
394
|
-
readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
|
|
395
|
-
readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
|
|
396
|
-
readonly labels?: {
|
|
397
|
-
[x: string]: string | undefined;
|
|
398
|
-
} | undefined;
|
|
399
|
-
readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
|
|
400
|
-
readonly paging?: {
|
|
401
|
-
[x: string]: {
|
|
402
|
-
size?: number | undefined;
|
|
403
|
-
};
|
|
404
|
-
} | undefined;
|
|
405
|
-
readonly retry?: {
|
|
406
|
-
backoff?: number | undefined;
|
|
407
|
-
interval?: number | undefined;
|
|
408
|
-
retries?: number | undefined;
|
|
409
|
-
} | undefined;
|
|
410
|
-
readonly security?: {
|
|
411
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
412
|
-
readonly allowed?: {
|
|
413
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
414
|
-
} | undefined;
|
|
415
|
-
readonly disallowed?: {
|
|
416
|
-
[x: string]: Lowercase<string>[];
|
|
417
|
-
} | undefined;
|
|
418
|
-
} | undefined;
|
|
419
|
-
readonly sign?: boolean | undefined;
|
|
420
|
-
readonly storeQueries?: boolean | undefined;
|
|
421
|
-
readonly timestamp?: boolean | undefined;
|
|
422
|
-
accept?: MimeTypes | undefined;
|
|
423
|
-
timeout?: number | undefined;
|
|
424
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
425
|
-
schema: "network.xyo.api.call.witness.config";
|
|
426
|
-
headers?: {
|
|
427
|
-
[x: string]: string | undefined;
|
|
428
|
-
} | undefined;
|
|
429
|
-
queries?: {
|
|
430
|
-
[x: string]: string;
|
|
431
|
-
} | undefined;
|
|
432
|
-
verb?: Verb | undefined;
|
|
433
|
-
uri: ApiUriCallPayload["uri"];
|
|
434
|
-
readonly archiving?: {
|
|
435
|
-
readonly archivists?: string[] | undefined;
|
|
436
|
-
readonly queries?: string[] | undefined;
|
|
437
|
-
} | undefined;
|
|
438
|
-
readonly allowedQueries?: string[] | undefined;
|
|
439
|
-
readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
|
|
440
|
-
readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
|
|
441
|
-
readonly labels?: {
|
|
442
|
-
[x: string]: string | undefined;
|
|
443
|
-
} | undefined;
|
|
444
|
-
readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
|
|
445
|
-
readonly paging?: {
|
|
446
|
-
[x: string]: {
|
|
447
|
-
size?: number | undefined;
|
|
448
|
-
};
|
|
449
|
-
} | undefined;
|
|
450
|
-
readonly retry?: {
|
|
451
|
-
backoff?: number | undefined;
|
|
452
|
-
interval?: number | undefined;
|
|
453
|
-
retries?: number | undefined;
|
|
454
|
-
} | undefined;
|
|
455
|
-
readonly security?: {
|
|
456
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
457
|
-
readonly allowed?: {
|
|
458
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
459
|
-
} | undefined;
|
|
460
|
-
readonly disallowed?: {
|
|
461
|
-
[x: string]: Lowercase<string>[];
|
|
462
|
-
} | undefined;
|
|
463
|
-
} | undefined;
|
|
464
|
-
readonly sign?: boolean | undefined;
|
|
465
|
-
readonly storeQueries?: boolean | undefined;
|
|
466
|
-
readonly timestamp?: boolean | undefined;
|
|
467
|
-
accept?: MimeTypes | undefined;
|
|
468
|
-
timeout?: number | undefined;
|
|
469
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
144
|
+
<TType extends ApiUriCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
145
|
+
<TType extends ApiUriCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiUriCallWitnessConfig>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
470
146
|
};
|
|
471
147
|
declare const isApiUriTemplateCallWitnessConfig: (value?: unknown) => value is ApiUriTemplateCallWitnessConfig;
|
|
472
148
|
declare const asApiUriTemplateCallWitnessConfig: {
|
|
473
|
-
<TType extends _xylabs_object.
|
|
474
|
-
|
|
475
|
-
headers?: {
|
|
476
|
-
[x: string]: string | undefined;
|
|
477
|
-
} | undefined;
|
|
478
|
-
queries?: {
|
|
479
|
-
[x: string]: string;
|
|
480
|
-
} | undefined;
|
|
481
|
-
verb?: Verb | undefined;
|
|
482
|
-
params?: {
|
|
483
|
-
[x: string]: string;
|
|
484
|
-
} | undefined;
|
|
485
|
-
uriTemplate: ApiUriTemplateCallPayload["uriTemplate"];
|
|
486
|
-
readonly archiving?: {
|
|
487
|
-
readonly archivists?: string[] | undefined;
|
|
488
|
-
readonly queries?: string[] | undefined;
|
|
489
|
-
} | undefined;
|
|
490
|
-
readonly allowedQueries?: string[] | undefined;
|
|
491
|
-
readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
|
|
492
|
-
readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
|
|
493
|
-
readonly labels?: {
|
|
494
|
-
[x: string]: string | undefined;
|
|
495
|
-
} | undefined;
|
|
496
|
-
readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
|
|
497
|
-
readonly paging?: {
|
|
498
|
-
[x: string]: {
|
|
499
|
-
size?: number | undefined;
|
|
500
|
-
};
|
|
501
|
-
} | undefined;
|
|
502
|
-
readonly retry?: {
|
|
503
|
-
backoff?: number | undefined;
|
|
504
|
-
interval?: number | undefined;
|
|
505
|
-
retries?: number | undefined;
|
|
506
|
-
} | undefined;
|
|
507
|
-
readonly security?: {
|
|
508
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
509
|
-
readonly allowed?: {
|
|
510
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
511
|
-
} | undefined;
|
|
512
|
-
readonly disallowed?: {
|
|
513
|
-
[x: string]: Lowercase<string>[];
|
|
514
|
-
} | undefined;
|
|
515
|
-
} | undefined;
|
|
516
|
-
readonly sign?: boolean | undefined;
|
|
517
|
-
readonly storeQueries?: boolean | undefined;
|
|
518
|
-
readonly timestamp?: boolean | undefined;
|
|
519
|
-
accept?: MimeTypes | undefined;
|
|
520
|
-
timeout?: number | undefined;
|
|
521
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
522
|
-
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
523
|
-
schema: "network.xyo.api.call.witness.config";
|
|
524
|
-
headers?: {
|
|
525
|
-
[x: string]: string | undefined;
|
|
526
|
-
} | undefined;
|
|
527
|
-
queries?: {
|
|
528
|
-
[x: string]: string;
|
|
529
|
-
} | undefined;
|
|
530
|
-
verb?: Verb | undefined;
|
|
531
|
-
params?: {
|
|
532
|
-
[x: string]: string;
|
|
533
|
-
} | undefined;
|
|
534
|
-
uriTemplate: ApiUriTemplateCallPayload["uriTemplate"];
|
|
535
|
-
readonly archiving?: {
|
|
536
|
-
readonly archivists?: string[] | undefined;
|
|
537
|
-
readonly queries?: string[] | undefined;
|
|
538
|
-
} | undefined;
|
|
539
|
-
readonly allowedQueries?: string[] | undefined;
|
|
540
|
-
readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
|
|
541
|
-
readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
|
|
542
|
-
readonly labels?: {
|
|
543
|
-
[x: string]: string | undefined;
|
|
544
|
-
} | undefined;
|
|
545
|
-
readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
|
|
546
|
-
readonly paging?: {
|
|
547
|
-
[x: string]: {
|
|
548
|
-
size?: number | undefined;
|
|
549
|
-
};
|
|
550
|
-
} | undefined;
|
|
551
|
-
readonly retry?: {
|
|
552
|
-
backoff?: number | undefined;
|
|
553
|
-
interval?: number | undefined;
|
|
554
|
-
retries?: number | undefined;
|
|
555
|
-
} | undefined;
|
|
556
|
-
readonly security?: {
|
|
557
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
558
|
-
readonly allowed?: {
|
|
559
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
560
|
-
} | undefined;
|
|
561
|
-
readonly disallowed?: {
|
|
562
|
-
[x: string]: Lowercase<string>[];
|
|
563
|
-
} | undefined;
|
|
564
|
-
} | undefined;
|
|
565
|
-
readonly sign?: boolean | undefined;
|
|
566
|
-
readonly storeQueries?: boolean | undefined;
|
|
567
|
-
readonly timestamp?: boolean | undefined;
|
|
568
|
-
accept?: MimeTypes | undefined;
|
|
569
|
-
timeout?: number | undefined;
|
|
570
|
-
}>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
571
|
-
schema: "network.xyo.api.call.witness.config";
|
|
572
|
-
headers?: {
|
|
573
|
-
[x: string]: string | undefined;
|
|
574
|
-
} | undefined;
|
|
575
|
-
queries?: {
|
|
576
|
-
[x: string]: string;
|
|
577
|
-
} | undefined;
|
|
578
|
-
verb?: Verb | undefined;
|
|
579
|
-
params?: {
|
|
580
|
-
[x: string]: string;
|
|
581
|
-
} | undefined;
|
|
582
|
-
uriTemplate: ApiUriTemplateCallPayload["uriTemplate"];
|
|
583
|
-
readonly archiving?: {
|
|
584
|
-
readonly archivists?: string[] | undefined;
|
|
585
|
-
readonly queries?: string[] | undefined;
|
|
586
|
-
} | undefined;
|
|
587
|
-
readonly allowedQueries?: string[] | undefined;
|
|
588
|
-
readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
|
|
589
|
-
readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
|
|
590
|
-
readonly labels?: {
|
|
591
|
-
[x: string]: string | undefined;
|
|
592
|
-
} | undefined;
|
|
593
|
-
readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
|
|
594
|
-
readonly paging?: {
|
|
595
|
-
[x: string]: {
|
|
596
|
-
size?: number | undefined;
|
|
597
|
-
};
|
|
598
|
-
} | undefined;
|
|
599
|
-
readonly retry?: {
|
|
600
|
-
backoff?: number | undefined;
|
|
601
|
-
interval?: number | undefined;
|
|
602
|
-
retries?: number | undefined;
|
|
603
|
-
} | undefined;
|
|
604
|
-
readonly security?: {
|
|
605
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
606
|
-
readonly allowed?: {
|
|
607
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
608
|
-
} | undefined;
|
|
609
|
-
readonly disallowed?: {
|
|
610
|
-
[x: string]: Lowercase<string>[];
|
|
611
|
-
} | undefined;
|
|
612
|
-
} | undefined;
|
|
613
|
-
readonly sign?: boolean | undefined;
|
|
614
|
-
readonly storeQueries?: boolean | undefined;
|
|
615
|
-
readonly timestamp?: boolean | undefined;
|
|
616
|
-
accept?: MimeTypes | undefined;
|
|
617
|
-
timeout?: number | undefined;
|
|
618
|
-
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
149
|
+
<TType extends ApiUriTemplateCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
150
|
+
<TType extends ApiUriTemplateCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ApiUriTemplateCallWitnessConfig>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
619
151
|
};
|
|
620
152
|
|
|
621
153
|
type ApiCallWitnessParams = WitnessParams<ApiCallWitnessConfig, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/api-call-witness",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"@xylabs/hex": "^4.5.1",
|
|
35
35
|
"@xylabs/object": "^4.5.1",
|
|
36
36
|
"@xylabs/url": "^4.5.1",
|
|
37
|
-
"@xyo-network/abstract-witness": "^3.
|
|
38
|
-
"@xyo-network/payload-builder": "^3.
|
|
39
|
-
"@xyo-network/payload-model": "^3.
|
|
40
|
-
"@xyo-network/witness-model": "^3.
|
|
37
|
+
"@xyo-network/abstract-witness": "^3.9.16",
|
|
38
|
+
"@xyo-network/payload-builder": "^3.9.16",
|
|
39
|
+
"@xyo-network/payload-model": "^3.9.16",
|
|
40
|
+
"@xyo-network/witness-model": "^3.9.16",
|
|
41
41
|
"axios": "^1.7.9",
|
|
42
42
|
"base64-js": "^1.5.1",
|
|
43
43
|
"es6-dynamic-template": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
47
|
-
"@xylabs/tsconfig": "^5.0.
|
|
46
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|
|
47
|
+
"@xylabs/tsconfig": "^5.0.24",
|
|
48
48
|
"@xylabs/vitest-extended": "^4.5.1",
|
|
49
|
-
"@xyo-network/account": "^3.
|
|
50
|
-
"@xyo-network/manifest": "^3.
|
|
51
|
-
"@xyo-network/module-factory-locator": "^3.
|
|
52
|
-
"@xyo-network/module-model": "^3.
|
|
53
|
-
"@xyo-network/sentinel-model": "^3.
|
|
49
|
+
"@xyo-network/account": "^3.9.16",
|
|
50
|
+
"@xyo-network/manifest": "^3.9.16",
|
|
51
|
+
"@xyo-network/module-factory-locator": "^3.9.16",
|
|
52
|
+
"@xyo-network/module-model": "^3.9.16",
|
|
53
|
+
"@xyo-network/sentinel-model": "^3.9.16",
|
|
54
54
|
"ethers": "^6.13.5",
|
|
55
55
|
"typescript": "^5.7.3",
|
|
56
|
-
"vitest": "^3.0.
|
|
56
|
+
"vitest": "^3.0.6"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|