@xyo-network/http-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.
Files changed (2) hide show
  1. package/dist/neutral/index.d.ts +14 -482
  2. package/package.json +14 -14
@@ -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 asApiCall: {
15
12
  };
16
13
 
17
14
  declare const asHttpCallBase64Result: {
18
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
19
- schema: "network.xyo.http.call.result";
20
- call: _xylabs_hex.Hash;
21
- contentType: Exclude<Exclude<string, "application/json">, HttpCallXmlResult["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.http.call.result";
26
- call: _xylabs_hex.Hash;
27
- contentType: Exclude<Exclude<string, "application/json">, HttpCallXmlResult["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.http.call.result";
31
- call: _xylabs_hex.Hash;
32
- contentType: Exclude<Exclude<string, "application/json">, HttpCallXmlResult["contentType"]>;
33
- data: string;
34
- }>>, config?: _xylabs_object.TypeCheckConfig): TType;
15
+ <TType extends HttpCallBase64Result>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
16
+ <TType extends HttpCallBase64Result>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpCallBase64Result>, config?: _xylabs_object.TypeCheckConfig): TType;
35
17
  };
36
18
 
37
19
  declare const asHttpCallResult: {
@@ -40,102 +22,18 @@ declare const asHttpCallResult: {
40
22
  };
41
23
 
42
24
  declare const asHttpCallXmlResult: {
43
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
44
- schema: "network.xyo.http.call.result";
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.http.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.http.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 HttpCallXmlResult>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
26
+ <TType extends HttpCallXmlResult>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpCallXmlResult>, config?: _xylabs_object.TypeCheckConfig): TType;
60
27
  };
61
28
 
62
29
  declare const asHttpUriCall: {
63
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
64
- schema: "network.xyo.http.call";
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.http.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.http.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 HttpUriCall>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
31
+ <TType extends HttpUriCall>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpUriCall>, config?: _xylabs_object.TypeCheckConfig): TType;
95
32
  };
96
33
 
97
34
  declare const asHttpUriTemplateCall: {
98
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
99
- schema: "network.xyo.http.call";
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.http.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.http.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 HttpUriTemplateCall>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
36
+ <TType extends HttpUriTemplateCall>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpUriTemplateCall>, config?: _xylabs_object.TypeCheckConfig): TType;
139
37
  };
140
38
 
141
39
  declare const HttpCallSchema = "network.xyo.http.call";
@@ -172,95 +70,8 @@ type HttpCallJsonResult<T extends HttpCallJsonResultType = HttpCallJsonResultTyp
172
70
  }, HttpCallResultSchema>;
173
71
  declare const isHttpCallJsonResult: <T extends HttpCallJsonResultType = HttpCallJsonResultType>(x?: unknown | null) => x is HttpCallJsonResult<T>;
174
72
  declare const asHttpCallJsonResult: {
175
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
176
- schema: "network.xyo.http.call.result";
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.http.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.http.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 HttpCallJsonResult<HttpCallJsonResultType>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
74
+ <TType extends HttpCallJsonResult<HttpCallJsonResultType>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpCallJsonResult<HttpCallJsonResultType>>, config?: _xylabs_object.TypeCheckConfig): TType;
264
75
  };
265
76
 
266
77
  type HttpCallXmlResult = Payload<{
@@ -336,292 +147,13 @@ declare const asHttpCallWitnessConfig: {
336
147
  };
337
148
  declare const isHttpUriCallWitnessConfig: (value?: unknown) => value is HttpUriCallWitnessConfig;
338
149
  declare const asHttpUriCallWitnessConfig: {
339
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
340
- schema: "network.xyo.http.call.witness.config";
341
- headers?: {
342
- [x: string]: string | undefined;
343
- } | undefined;
344
- queries?: {
345
- [x: string]: string;
346
- } | undefined;
347
- verb?: Verb | undefined;
348
- uri: HttpUriCall["uri"];
349
- readonly archiving?: {
350
- readonly archivists?: string[] | undefined;
351
- readonly queries?: string[] | undefined;
352
- } | undefined;
353
- readonly allowedQueries?: string[] | undefined;
354
- readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
355
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
356
- readonly labels?: {
357
- [x: string]: string | undefined;
358
- } | undefined;
359
- readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
360
- readonly paging?: {
361
- [x: string]: {
362
- size?: number | undefined;
363
- };
364
- } | undefined;
365
- readonly retry?: {
366
- backoff?: number | undefined;
367
- interval?: number | undefined;
368
- retries?: number | undefined;
369
- } | undefined;
370
- readonly security?: {
371
- readonly allowAnonymous?: boolean | undefined;
372
- readonly allowed?: {
373
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
374
- } | undefined;
375
- readonly disallowed?: {
376
- [x: string]: Lowercase<string>[];
377
- } | undefined;
378
- } | undefined;
379
- readonly sign?: boolean | undefined;
380
- readonly storeQueries?: boolean | undefined;
381
- readonly timestamp?: boolean | undefined;
382
- accept?: MimeTypes | undefined;
383
- timeout?: number | undefined;
384
- }>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
385
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
386
- schema: "network.xyo.http.call.witness.config";
387
- headers?: {
388
- [x: string]: string | undefined;
389
- } | undefined;
390
- queries?: {
391
- [x: string]: string;
392
- } | undefined;
393
- verb?: Verb | undefined;
394
- uri: HttpUriCall["uri"];
395
- readonly archiving?: {
396
- readonly archivists?: string[] | undefined;
397
- readonly queries?: string[] | undefined;
398
- } | undefined;
399
- readonly allowedQueries?: string[] | undefined;
400
- readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
401
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
402
- readonly labels?: {
403
- [x: string]: string | undefined;
404
- } | undefined;
405
- readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
406
- readonly paging?: {
407
- [x: string]: {
408
- size?: number | undefined;
409
- };
410
- } | undefined;
411
- readonly retry?: {
412
- backoff?: number | undefined;
413
- interval?: number | undefined;
414
- retries?: number | undefined;
415
- } | undefined;
416
- readonly security?: {
417
- readonly allowAnonymous?: boolean | undefined;
418
- readonly allowed?: {
419
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
420
- } | undefined;
421
- readonly disallowed?: {
422
- [x: string]: Lowercase<string>[];
423
- } | undefined;
424
- } | undefined;
425
- readonly sign?: boolean | undefined;
426
- readonly storeQueries?: boolean | undefined;
427
- readonly timestamp?: boolean | undefined;
428
- accept?: MimeTypes | undefined;
429
- timeout?: number | undefined;
430
- }>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
431
- schema: "network.xyo.http.call.witness.config";
432
- headers?: {
433
- [x: string]: string | undefined;
434
- } | undefined;
435
- queries?: {
436
- [x: string]: string;
437
- } | undefined;
438
- verb?: Verb | undefined;
439
- uri: HttpUriCall["uri"];
440
- readonly archiving?: {
441
- readonly archivists?: string[] | undefined;
442
- readonly queries?: string[] | undefined;
443
- } | undefined;
444
- readonly allowedQueries?: string[] | undefined;
445
- readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
446
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
447
- readonly labels?: {
448
- [x: string]: string | undefined;
449
- } | undefined;
450
- readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
451
- readonly paging?: {
452
- [x: string]: {
453
- size?: number | undefined;
454
- };
455
- } | undefined;
456
- readonly retry?: {
457
- backoff?: number | undefined;
458
- interval?: number | undefined;
459
- retries?: number | undefined;
460
- } | undefined;
461
- readonly security?: {
462
- readonly allowAnonymous?: boolean | undefined;
463
- readonly allowed?: {
464
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
465
- } | undefined;
466
- readonly disallowed?: {
467
- [x: string]: Lowercase<string>[];
468
- } | undefined;
469
- } | undefined;
470
- readonly sign?: boolean | undefined;
471
- readonly storeQueries?: boolean | undefined;
472
- readonly timestamp?: boolean | undefined;
473
- accept?: MimeTypes | undefined;
474
- timeout?: number | undefined;
475
- }>>, config?: _xylabs_object.TypeCheckConfig): TType;
150
+ <TType extends HttpUriCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
151
+ <TType extends HttpUriCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpUriCallWitnessConfig>, config?: _xylabs_object.TypeCheckConfig): TType;
476
152
  };
477
153
  declare const isHttpUriTemplateCallWitnessConfig: (value?: unknown) => value is HttpUriTemplateCallWitnessConfig;
478
154
  declare const asHttpUriTemplateCallWitnessConfig: {
479
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
480
- schema: "network.xyo.http.call.witness.config";
481
- headers?: {
482
- [x: string]: string | undefined;
483
- } | undefined;
484
- queries?: {
485
- [x: string]: string;
486
- } | undefined;
487
- verb?: Verb | undefined;
488
- params?: {
489
- [x: string]: string;
490
- } | undefined;
491
- uriTemplate: HttpUriTemplateCall["uriTemplate"];
492
- readonly archiving?: {
493
- readonly archivists?: string[] | undefined;
494
- readonly queries?: string[] | undefined;
495
- } | undefined;
496
- readonly allowedQueries?: string[] | undefined;
497
- readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
498
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
499
- readonly labels?: {
500
- [x: string]: string | undefined;
501
- } | undefined;
502
- readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
503
- readonly paging?: {
504
- [x: string]: {
505
- size?: number | undefined;
506
- };
507
- } | undefined;
508
- readonly retry?: {
509
- backoff?: number | undefined;
510
- interval?: number | undefined;
511
- retries?: number | undefined;
512
- } | undefined;
513
- readonly security?: {
514
- readonly allowAnonymous?: boolean | undefined;
515
- readonly allowed?: {
516
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
517
- } | undefined;
518
- readonly disallowed?: {
519
- [x: string]: Lowercase<string>[];
520
- } | undefined;
521
- } | undefined;
522
- readonly sign?: boolean | undefined;
523
- readonly storeQueries?: boolean | undefined;
524
- readonly timestamp?: boolean | undefined;
525
- accept?: MimeTypes | undefined;
526
- timeout?: number | undefined;
527
- }>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
528
- <TType extends _xylabs_object.DeepRestrictToStringKeys<{
529
- schema: "network.xyo.http.call.witness.config";
530
- headers?: {
531
- [x: string]: string | undefined;
532
- } | undefined;
533
- queries?: {
534
- [x: string]: string;
535
- } | undefined;
536
- verb?: Verb | undefined;
537
- params?: {
538
- [x: string]: string;
539
- } | undefined;
540
- uriTemplate: HttpUriTemplateCall["uriTemplate"];
541
- readonly archiving?: {
542
- readonly archivists?: string[] | undefined;
543
- readonly queries?: string[] | undefined;
544
- } | undefined;
545
- readonly allowedQueries?: string[] | undefined;
546
- readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
547
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
548
- readonly labels?: {
549
- [x: string]: string | undefined;
550
- } | undefined;
551
- readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
552
- readonly paging?: {
553
- [x: string]: {
554
- size?: number | undefined;
555
- };
556
- } | undefined;
557
- readonly retry?: {
558
- backoff?: number | undefined;
559
- interval?: number | undefined;
560
- retries?: number | undefined;
561
- } | undefined;
562
- readonly security?: {
563
- readonly allowAnonymous?: boolean | undefined;
564
- readonly allowed?: {
565
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
566
- } | undefined;
567
- readonly disallowed?: {
568
- [x: string]: Lowercase<string>[];
569
- } | undefined;
570
- } | undefined;
571
- readonly sign?: boolean | undefined;
572
- readonly storeQueries?: boolean | undefined;
573
- readonly timestamp?: boolean | undefined;
574
- accept?: MimeTypes | undefined;
575
- timeout?: number | undefined;
576
- }>>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
577
- schema: "network.xyo.http.call.witness.config";
578
- headers?: {
579
- [x: string]: string | undefined;
580
- } | undefined;
581
- queries?: {
582
- [x: string]: string;
583
- } | undefined;
584
- verb?: Verb | undefined;
585
- params?: {
586
- [x: string]: string;
587
- } | undefined;
588
- uriTemplate: HttpUriTemplateCall["uriTemplate"];
589
- readonly archiving?: {
590
- readonly archivists?: string[] | undefined;
591
- readonly queries?: string[] | undefined;
592
- } | undefined;
593
- readonly allowedQueries?: string[] | undefined;
594
- readonly archivist?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleIdentifier | undefined;
595
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
596
- readonly labels?: {
597
- [x: string]: string | undefined;
598
- } | undefined;
599
- readonly name?: _store__xyo_network_module_model_npm_3_8_5_6e76fd3a27_package.ModuleName | undefined;
600
- readonly paging?: {
601
- [x: string]: {
602
- size?: number | undefined;
603
- };
604
- } | undefined;
605
- readonly retry?: {
606
- backoff?: number | undefined;
607
- interval?: number | undefined;
608
- retries?: number | undefined;
609
- } | undefined;
610
- readonly security?: {
611
- readonly allowAnonymous?: boolean | undefined;
612
- readonly allowed?: {
613
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
614
- } | undefined;
615
- readonly disallowed?: {
616
- [x: string]: Lowercase<string>[];
617
- } | undefined;
618
- } | undefined;
619
- readonly sign?: boolean | undefined;
620
- readonly storeQueries?: boolean | undefined;
621
- readonly timestamp?: boolean | undefined;
622
- accept?: MimeTypes | undefined;
623
- timeout?: number | undefined;
624
- }>>, config?: _xylabs_object.TypeCheckConfig): TType;
155
+ <TType extends HttpUriTemplateCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
156
+ <TType extends HttpUriTemplateCallWitnessConfig>(value: _store__xylabs_promise_npm_4_5_1_97d36b712b_package.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HttpUriTemplateCallWitnessConfig>, config?: _xylabs_object.TypeCheckConfig): TType;
625
157
  };
626
158
 
627
159
  type HttpCallWitnessParams = WitnessParams<HttpCallWitnessConfig, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/http-call-witness",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,27 +34,27 @@
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.8.5",
38
- "@xyo-network/hash": "^3.8.5",
39
- "@xyo-network/payload-builder": "^3.8.5",
40
- "@xyo-network/payload-model": "^3.8.5",
41
- "@xyo-network/witness-model": "^3.8.5",
37
+ "@xyo-network/abstract-witness": "^3.9.16",
38
+ "@xyo-network/hash": "^3.9.16",
39
+ "@xyo-network/payload-builder": "^3.9.16",
40
+ "@xyo-network/payload-model": "^3.9.16",
41
+ "@xyo-network/witness-model": "^3.9.16",
42
42
  "axios": "^1.7.9",
43
43
  "base64-js": "^1.5.1",
44
44
  "es6-dynamic-template": "^2.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@xylabs/ts-scripts-yarn3": "^5.0.22",
48
- "@xylabs/tsconfig": "^5.0.22",
47
+ "@xylabs/ts-scripts-yarn3": "^5.0.24",
48
+ "@xylabs/tsconfig": "^5.0.24",
49
49
  "@xylabs/vitest-extended": "^4.5.1",
50
- "@xyo-network/account": "^3.8.5",
51
- "@xyo-network/manifest": "^3.8.5",
52
- "@xyo-network/module-factory-locator": "^3.8.5",
53
- "@xyo-network/module-model": "^3.8.5",
54
- "@xyo-network/sentinel-model": "^3.8.5",
50
+ "@xyo-network/account": "^3.9.16",
51
+ "@xyo-network/manifest": "^3.9.16",
52
+ "@xyo-network/module-factory-locator": "^3.9.16",
53
+ "@xyo-network/module-model": "^3.9.16",
54
+ "@xyo-network/sentinel-model": "^3.9.16",
55
55
  "ethers": "^6.13.5",
56
56
  "typescript": "^5.7.3",
57
- "vitest": "^3.0.5"
57
+ "vitest": "^3.0.6"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"