@xyo-network/http-call-witness 3.4.0 → 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 +176 -3
- package/dist/neutral/index.mjs +3 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/Witness/Witness.ts +3 -1
- package/dist/neutral/Payload/Schema.d.ts +0 -5
- package/dist/neutral/Payload/Schema.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/asHttpCall.d.ts +0 -5
- package/dist/neutral/Payload/identity/asHttpCall.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/asHttpCallBase64Result.d.ts +0 -20
- package/dist/neutral/Payload/identity/asHttpCallBase64Result.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/asHttpCallResult.d.ts +0 -5
- package/dist/neutral/Payload/identity/asHttpCallResult.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/asHttpCallXmlResult.d.ts +0 -20
- package/dist/neutral/Payload/identity/asHttpCallXmlResult.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/asHttpUriCall.d.ts +0 -35
- package/dist/neutral/Payload/identity/asHttpUriCall.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/asHttpUriTemplateCall.d.ts +0 -44
- package/dist/neutral/Payload/identity/asHttpUriTemplateCall.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/index.d.ts +0 -14
- package/dist/neutral/Payload/identity/index.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpCall.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpCall.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpCallBase64Result.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpCallBase64Result.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpCallErrorResult.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpCallErrorResult.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpCallResult.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpCallResult.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpCallXmlResult.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpCallXmlResult.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpUriCall.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpUriCall.d.ts.map +0 -1
- package/dist/neutral/Payload/identity/isHttpUriTemplateCall.d.ts +0 -3
- package/dist/neutral/Payload/identity/isHttpUriTemplateCall.d.ts.map +0 -1
- package/dist/neutral/Payload/index.d.ts +0 -4
- package/dist/neutral/Payload/index.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCall.d.ts +0 -4
- package/dist/neutral/Payload/types/HttpCall.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallBase64Result.d.ts +0 -11
- package/dist/neutral/Payload/types/HttpCallBase64Result.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallErrorResult.d.ts +0 -9
- package/dist/neutral/Payload/types/HttpCallErrorResult.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallFields.d.ts +0 -8
- package/dist/neutral/Payload/types/HttpCallFields.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallHtmlResult.d.ts +0 -9
- package/dist/neutral/Payload/types/HttpCallHtmlResult.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallJsonResult.d.ts +0 -103
- package/dist/neutral/Payload/types/HttpCallJsonResult.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallResult.d.ts +0 -8
- package/dist/neutral/Payload/types/HttpCallResult.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpCallXmlResult.d.ts +0 -9
- package/dist/neutral/Payload/types/HttpCallXmlResult.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpMeta.d.ts +0 -5
- package/dist/neutral/Payload/types/HttpMeta.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpUriCall.d.ts +0 -7
- package/dist/neutral/Payload/types/HttpUriCall.d.ts.map +0 -1
- package/dist/neutral/Payload/types/HttpUriTemplateCall.d.ts +0 -8
- package/dist/neutral/Payload/types/HttpUriTemplateCall.d.ts.map +0 -1
- package/dist/neutral/Payload/types/MimeTypes.d.ts +0 -2
- package/dist/neutral/Payload/types/MimeTypes.d.ts.map +0 -1
- package/dist/neutral/Payload/types/Queries.d.ts +0 -2
- package/dist/neutral/Payload/types/Queries.d.ts.map +0 -1
- package/dist/neutral/Payload/types/Verb.d.ts +0 -2
- package/dist/neutral/Payload/types/Verb.d.ts.map +0 -1
- package/dist/neutral/Payload/types/index.d.ts +0 -15
- package/dist/neutral/Payload/types/index.d.ts.map +0 -1
- package/dist/neutral/Witness/Config.d.ts +0 -314
- package/dist/neutral/Witness/Config.d.ts.map +0 -1
- package/dist/neutral/Witness/Params.d.ts +0 -7
- package/dist/neutral/Witness/Params.d.ts.map +0 -1
- package/dist/neutral/Witness/Schema.d.ts +0 -3
- package/dist/neutral/Witness/Schema.d.ts.map +0 -1
- package/dist/neutral/Witness/Witness.d.ts +0 -16
- package/dist/neutral/Witness/Witness.d.ts.map +0 -1
- package/dist/neutral/Witness/index.d.ts +0 -5
- package/dist/neutral/Witness/index.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/lib/checkIpfsUrl.d.ts +0 -8
- package/dist/neutral/lib/checkIpfsUrl.d.ts.map +0 -1
- package/dist/neutral/lib/index.d.ts +0 -2
- package/dist/neutral/lib/index.d.ts.map +0 -1
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import type { WitnessConfig } from '@xyo-network/witness-model';
|
|
2
|
-
import type { HttpCall, HttpUriCall, HttpUriTemplateCall, MimeTypes } from '../Payload/index.ts';
|
|
3
|
-
import { HttpCallWitnessConfigSchema } from './Schema.ts';
|
|
4
|
-
export type HttpCallWitnessConfigBase = WitnessConfig<{
|
|
5
|
-
accept?: MimeTypes;
|
|
6
|
-
headers?: Record<string, string | undefined>;
|
|
7
|
-
queries?: HttpCall['queries'];
|
|
8
|
-
schema: HttpCallWitnessConfigSchema;
|
|
9
|
-
timeout?: number;
|
|
10
|
-
verb?: HttpCall['verb'];
|
|
11
|
-
}>;
|
|
12
|
-
export type HttpUriCallWitnessConfig = WitnessConfig<HttpCallWitnessConfigBase & {
|
|
13
|
-
uri: HttpUriCall['uri'];
|
|
14
|
-
}>;
|
|
15
|
-
export type HttpUriTemplateCallWitnessConfig = WitnessConfig<HttpCallWitnessConfigBase & {
|
|
16
|
-
params?: Record<string, string>;
|
|
17
|
-
uriTemplate: HttpUriTemplateCall['uriTemplate'];
|
|
18
|
-
}>;
|
|
19
|
-
export type HttpCallWitnessConfig = HttpUriCallWitnessConfig | HttpUriTemplateCallWitnessConfig | HttpCallWitnessConfigBase;
|
|
20
|
-
export declare const isHttpCallWitnessConfig: (x?: unknown | null) => x is HttpCallWitnessConfig;
|
|
21
|
-
export declare const asHttpCallWitnessConfig: {
|
|
22
|
-
<TType extends HttpCallWitnessConfig>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
-
<TType extends HttpCallWitnessConfig>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<HttpCallWitnessConfig>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
24
|
-
};
|
|
25
|
-
export declare const isHttpUriCallWitnessConfig: (value?: unknown) => value is HttpUriCallWitnessConfig;
|
|
26
|
-
export declare const asHttpUriCallWitnessConfig: {
|
|
27
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
28
|
-
schema: "network.xyo.http.call.witness.config";
|
|
29
|
-
headers?: {
|
|
30
|
-
[x: string]: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
queries?: {
|
|
33
|
-
[x: string]: string;
|
|
34
|
-
} | undefined;
|
|
35
|
-
verb?: import("../Payload/index.ts").Verb | undefined;
|
|
36
|
-
uri: HttpUriCall["uri"];
|
|
37
|
-
readonly archiving?: {
|
|
38
|
-
readonly archivists?: string[] | undefined;
|
|
39
|
-
readonly queries?: string[] | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
readonly allowedQueries?: string[] | undefined;
|
|
42
|
-
readonly archivist?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleIdentifier | undefined;
|
|
43
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
44
|
-
readonly labels?: {
|
|
45
|
-
[x: string]: string | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
readonly name?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleName | undefined;
|
|
48
|
-
readonly paging?: {
|
|
49
|
-
[x: string]: {
|
|
50
|
-
size?: number | undefined;
|
|
51
|
-
};
|
|
52
|
-
} | undefined;
|
|
53
|
-
readonly retry?: {
|
|
54
|
-
backoff?: number | undefined;
|
|
55
|
-
interval?: number | undefined;
|
|
56
|
-
retries?: number | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
readonly security?: {
|
|
59
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
60
|
-
readonly allowed?: {
|
|
61
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
62
|
-
} | undefined;
|
|
63
|
-
readonly disallowed?: {
|
|
64
|
-
[x: string]: Lowercase<string>[];
|
|
65
|
-
} | undefined;
|
|
66
|
-
} | undefined;
|
|
67
|
-
readonly sign?: boolean | undefined;
|
|
68
|
-
readonly storeQueries?: boolean | undefined;
|
|
69
|
-
readonly timestamp?: boolean | undefined;
|
|
70
|
-
accept?: MimeTypes | undefined;
|
|
71
|
-
timeout?: number | undefined;
|
|
72
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
73
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
74
|
-
schema: "network.xyo.http.call.witness.config";
|
|
75
|
-
headers?: {
|
|
76
|
-
[x: string]: string | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
queries?: {
|
|
79
|
-
[x: string]: string;
|
|
80
|
-
} | undefined;
|
|
81
|
-
verb?: import("../Payload/index.ts").Verb | undefined;
|
|
82
|
-
uri: HttpUriCall["uri"];
|
|
83
|
-
readonly archiving?: {
|
|
84
|
-
readonly archivists?: string[] | undefined;
|
|
85
|
-
readonly queries?: string[] | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
readonly allowedQueries?: string[] | undefined;
|
|
88
|
-
readonly archivist?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleIdentifier | undefined;
|
|
89
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
90
|
-
readonly labels?: {
|
|
91
|
-
[x: string]: string | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
readonly name?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleName | undefined;
|
|
94
|
-
readonly paging?: {
|
|
95
|
-
[x: string]: {
|
|
96
|
-
size?: number | undefined;
|
|
97
|
-
};
|
|
98
|
-
} | undefined;
|
|
99
|
-
readonly retry?: {
|
|
100
|
-
backoff?: number | undefined;
|
|
101
|
-
interval?: number | undefined;
|
|
102
|
-
retries?: number | undefined;
|
|
103
|
-
} | undefined;
|
|
104
|
-
readonly security?: {
|
|
105
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
106
|
-
readonly allowed?: {
|
|
107
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
108
|
-
} | undefined;
|
|
109
|
-
readonly disallowed?: {
|
|
110
|
-
[x: string]: Lowercase<string>[];
|
|
111
|
-
} | undefined;
|
|
112
|
-
} | undefined;
|
|
113
|
-
readonly sign?: boolean | undefined;
|
|
114
|
-
readonly storeQueries?: boolean | undefined;
|
|
115
|
-
readonly timestamp?: boolean | undefined;
|
|
116
|
-
accept?: MimeTypes | undefined;
|
|
117
|
-
timeout?: number | undefined;
|
|
118
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
119
|
-
schema: "network.xyo.http.call.witness.config";
|
|
120
|
-
headers?: {
|
|
121
|
-
[x: string]: string | undefined;
|
|
122
|
-
} | undefined;
|
|
123
|
-
queries?: {
|
|
124
|
-
[x: string]: string;
|
|
125
|
-
} | undefined;
|
|
126
|
-
verb?: import("../Payload/index.ts").Verb | undefined;
|
|
127
|
-
uri: HttpUriCall["uri"];
|
|
128
|
-
readonly archiving?: {
|
|
129
|
-
readonly archivists?: string[] | undefined;
|
|
130
|
-
readonly queries?: string[] | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
readonly allowedQueries?: string[] | undefined;
|
|
133
|
-
readonly archivist?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleIdentifier | undefined;
|
|
134
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
135
|
-
readonly labels?: {
|
|
136
|
-
[x: string]: string | undefined;
|
|
137
|
-
} | undefined;
|
|
138
|
-
readonly name?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleName | undefined;
|
|
139
|
-
readonly paging?: {
|
|
140
|
-
[x: string]: {
|
|
141
|
-
size?: number | undefined;
|
|
142
|
-
};
|
|
143
|
-
} | undefined;
|
|
144
|
-
readonly retry?: {
|
|
145
|
-
backoff?: number | undefined;
|
|
146
|
-
interval?: number | undefined;
|
|
147
|
-
retries?: number | undefined;
|
|
148
|
-
} | undefined;
|
|
149
|
-
readonly security?: {
|
|
150
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
151
|
-
readonly allowed?: {
|
|
152
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
153
|
-
} | undefined;
|
|
154
|
-
readonly disallowed?: {
|
|
155
|
-
[x: string]: Lowercase<string>[];
|
|
156
|
-
} | undefined;
|
|
157
|
-
} | undefined;
|
|
158
|
-
readonly sign?: boolean | undefined;
|
|
159
|
-
readonly storeQueries?: boolean | undefined;
|
|
160
|
-
readonly timestamp?: boolean | undefined;
|
|
161
|
-
accept?: MimeTypes | undefined;
|
|
162
|
-
timeout?: number | undefined;
|
|
163
|
-
}>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
164
|
-
};
|
|
165
|
-
export declare const isHttpUriTemplateCallWitnessConfig: (value?: unknown) => value is HttpUriTemplateCallWitnessConfig;
|
|
166
|
-
export declare const asHttpUriTemplateCallWitnessConfig: {
|
|
167
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
168
|
-
schema: "network.xyo.http.call.witness.config";
|
|
169
|
-
headers?: {
|
|
170
|
-
[x: string]: string | undefined;
|
|
171
|
-
} | undefined;
|
|
172
|
-
queries?: {
|
|
173
|
-
[x: string]: string;
|
|
174
|
-
} | undefined;
|
|
175
|
-
verb?: import("../Payload/index.ts").Verb | undefined;
|
|
176
|
-
params?: {
|
|
177
|
-
[x: string]: string;
|
|
178
|
-
} | undefined;
|
|
179
|
-
uriTemplate: HttpUriTemplateCall["uriTemplate"];
|
|
180
|
-
readonly archiving?: {
|
|
181
|
-
readonly archivists?: string[] | undefined;
|
|
182
|
-
readonly queries?: string[] | undefined;
|
|
183
|
-
} | undefined;
|
|
184
|
-
readonly allowedQueries?: string[] | undefined;
|
|
185
|
-
readonly archivist?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleIdentifier | undefined;
|
|
186
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
187
|
-
readonly labels?: {
|
|
188
|
-
[x: string]: string | undefined;
|
|
189
|
-
} | undefined;
|
|
190
|
-
readonly name?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleName | undefined;
|
|
191
|
-
readonly paging?: {
|
|
192
|
-
[x: string]: {
|
|
193
|
-
size?: number | undefined;
|
|
194
|
-
};
|
|
195
|
-
} | undefined;
|
|
196
|
-
readonly retry?: {
|
|
197
|
-
backoff?: number | undefined;
|
|
198
|
-
interval?: number | undefined;
|
|
199
|
-
retries?: number | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
readonly security?: {
|
|
202
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
203
|
-
readonly allowed?: {
|
|
204
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
205
|
-
} | undefined;
|
|
206
|
-
readonly disallowed?: {
|
|
207
|
-
[x: string]: Lowercase<string>[];
|
|
208
|
-
} | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
readonly sign?: boolean | undefined;
|
|
211
|
-
readonly storeQueries?: boolean | undefined;
|
|
212
|
-
readonly timestamp?: boolean | undefined;
|
|
213
|
-
accept?: MimeTypes | undefined;
|
|
214
|
-
timeout?: number | undefined;
|
|
215
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
216
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
217
|
-
schema: "network.xyo.http.call.witness.config";
|
|
218
|
-
headers?: {
|
|
219
|
-
[x: string]: string | undefined;
|
|
220
|
-
} | undefined;
|
|
221
|
-
queries?: {
|
|
222
|
-
[x: string]: string;
|
|
223
|
-
} | undefined;
|
|
224
|
-
verb?: import("../Payload/index.ts").Verb | undefined;
|
|
225
|
-
params?: {
|
|
226
|
-
[x: string]: string;
|
|
227
|
-
} | undefined;
|
|
228
|
-
uriTemplate: HttpUriTemplateCall["uriTemplate"];
|
|
229
|
-
readonly archiving?: {
|
|
230
|
-
readonly archivists?: string[] | undefined;
|
|
231
|
-
readonly queries?: string[] | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
readonly allowedQueries?: string[] | undefined;
|
|
234
|
-
readonly archivist?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleIdentifier | undefined;
|
|
235
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
236
|
-
readonly labels?: {
|
|
237
|
-
[x: string]: string | undefined;
|
|
238
|
-
} | undefined;
|
|
239
|
-
readonly name?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleName | undefined;
|
|
240
|
-
readonly paging?: {
|
|
241
|
-
[x: string]: {
|
|
242
|
-
size?: number | undefined;
|
|
243
|
-
};
|
|
244
|
-
} | undefined;
|
|
245
|
-
readonly retry?: {
|
|
246
|
-
backoff?: number | undefined;
|
|
247
|
-
interval?: number | undefined;
|
|
248
|
-
retries?: number | undefined;
|
|
249
|
-
} | undefined;
|
|
250
|
-
readonly security?: {
|
|
251
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
252
|
-
readonly allowed?: {
|
|
253
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
254
|
-
} | undefined;
|
|
255
|
-
readonly disallowed?: {
|
|
256
|
-
[x: string]: Lowercase<string>[];
|
|
257
|
-
} | undefined;
|
|
258
|
-
} | undefined;
|
|
259
|
-
readonly sign?: boolean | undefined;
|
|
260
|
-
readonly storeQueries?: boolean | undefined;
|
|
261
|
-
readonly timestamp?: boolean | undefined;
|
|
262
|
-
accept?: MimeTypes | undefined;
|
|
263
|
-
timeout?: number | undefined;
|
|
264
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.5.1-97d36b712b/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
265
|
-
schema: "network.xyo.http.call.witness.config";
|
|
266
|
-
headers?: {
|
|
267
|
-
[x: string]: string | undefined;
|
|
268
|
-
} | undefined;
|
|
269
|
-
queries?: {
|
|
270
|
-
[x: string]: string;
|
|
271
|
-
} | undefined;
|
|
272
|
-
verb?: import("../Payload/index.ts").Verb | undefined;
|
|
273
|
-
params?: {
|
|
274
|
-
[x: string]: string;
|
|
275
|
-
} | undefined;
|
|
276
|
-
uriTemplate: HttpUriTemplateCall["uriTemplate"];
|
|
277
|
-
readonly archiving?: {
|
|
278
|
-
readonly archivists?: string[] | undefined;
|
|
279
|
-
readonly queries?: string[] | undefined;
|
|
280
|
-
} | undefined;
|
|
281
|
-
readonly allowedQueries?: string[] | undefined;
|
|
282
|
-
readonly archivist?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleIdentifier | undefined;
|
|
283
|
-
readonly consoleLogger?: import(".store/@xylabs-logger-npm-4.5.1-a411051254/package").LogLevel | undefined;
|
|
284
|
-
readonly labels?: {
|
|
285
|
-
[x: string]: string | undefined;
|
|
286
|
-
} | undefined;
|
|
287
|
-
readonly name?: import(".store/@xyo-network-module-model-npm-3.8.0-0abf9408c3/package").ModuleName | undefined;
|
|
288
|
-
readonly paging?: {
|
|
289
|
-
[x: string]: {
|
|
290
|
-
size?: number | undefined;
|
|
291
|
-
};
|
|
292
|
-
} | undefined;
|
|
293
|
-
readonly retry?: {
|
|
294
|
-
backoff?: number | undefined;
|
|
295
|
-
interval?: number | undefined;
|
|
296
|
-
retries?: number | undefined;
|
|
297
|
-
} | undefined;
|
|
298
|
-
readonly security?: {
|
|
299
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
300
|
-
readonly allowed?: {
|
|
301
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
302
|
-
} | undefined;
|
|
303
|
-
readonly disallowed?: {
|
|
304
|
-
[x: string]: Lowercase<string>[];
|
|
305
|
-
} | undefined;
|
|
306
|
-
} | undefined;
|
|
307
|
-
readonly sign?: boolean | undefined;
|
|
308
|
-
readonly storeQueries?: boolean | undefined;
|
|
309
|
-
readonly timestamp?: boolean | undefined;
|
|
310
|
-
accept?: MimeTypes | undefined;
|
|
311
|
-
timeout?: number | undefined;
|
|
312
|
-
}>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
313
|
-
};
|
|
314
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Witness/Config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EACV,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,SAAS,EACtD,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC;IACpD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B,MAAM,EAAE,2BAA2B,CAAA;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CACxB,CAAC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAClD,yBAAyB,GAAG;IAC1B,GAAG,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;CACxB,CACF,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,aAAa,CAC1D,yBAAyB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAA;CAChD,CACF,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,GAAG,gCAAgC,GAAG,yBAAyB,CAAA;AAE3H,eAAO,MAAM,uBAAuB,oDAA4E,CAAA;AAChH,eAAO,MAAM,uBAAuB;wDA7BmB,qDACxC,iCACI,gBAAoB;wDAGpC,qDAAiB,gHAGJ,gBAAoB;CAqBkD,CAAA;AAEtF,eAAO,MAAM,0BAA0B,WAAY,OAAO,KAAG,KAAK,IAAI,wBACO,CAAA;AAC7E,eAAO,MAAM,0BAA0B;;;;;;;;;;aAlB9B,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAVhB,SAAS;kBAIR,MAAM;sBATqC,qDACxC,iCACI,gBAAoB;;;;;;;;;;aAa9B,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAVhB,SAAS;kBAIR,MAAM;sBAJf,qDAAiB;;;;;;;;;aAUX,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAVhB,SAAS;kBAIR,MAAM;yBADF,gBAAoB;CAyBwD,CAAA;AAE5F,eAAO,MAAM,kCAAkC,WAAY,OAAO,KAAG,KAAK,IAAI,gCACe,CAAA;AAC7F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;qBAf9B,mBAAmB,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAjBxC,SAAS;kBAIR,MAAM;sBATqC,qDACxC,iCACI,gBAAoB;;;;;;;;;;;;;qBAoBtB,mBAAmB,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAjBxC,SAAS;kBAIR,MAAM;sBAJf,qDAAiB;;;;;;;;;;;;qBAiBH,mBAAmB,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAjBxC,SAAS;kBAIR,MAAM;yBADF,gBAAoB;CA6BwE,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { WitnessParams } from '@xyo-network/witness-model';
|
|
2
|
-
import type { HttpCallWitnessConfig } from './Config.ts';
|
|
3
|
-
export type HttpCallWitnessParams = WitnessParams<HttpCallWitnessConfig, {
|
|
4
|
-
headers?: Record<string, string | undefined>;
|
|
5
|
-
ipfsGateway?: string;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/Witness/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAC/C,qBAAqB,EACrB;IACE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Witness/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,yCAAyC,CAAA;AACjF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
2
|
-
import type { Schema } from '@xyo-network/payload-model';
|
|
3
|
-
import type { HttpCall, HttpCallResult, MimeTypes } from '../Payload/index.ts';
|
|
4
|
-
import type { HttpCallWitnessParams } from './Params.ts';
|
|
5
|
-
export declare class HttpCallWitness<TParams extends HttpCallWitnessParams = HttpCallWitnessParams> extends AbstractWitness<TParams, HttpCall, HttpCallResult> {
|
|
6
|
-
static readonly configSchemas: Schema[];
|
|
7
|
-
static readonly defaultConfigSchema: Schema;
|
|
8
|
-
get accept(): MimeTypes;
|
|
9
|
-
get ipfsGateway(): string | undefined;
|
|
10
|
-
get timeout(): number | undefined;
|
|
11
|
-
getFullUri(call?: HttpCall): string;
|
|
12
|
-
getHeaders(headers?: Record<string, string | undefined>): Record<string, string | undefined>;
|
|
13
|
-
protected observeHandler(inPayloads?: HttpCall[]): Promise<HttpCallResult[]>;
|
|
14
|
-
private httpGet;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../../src/Witness/Witness.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAQxD,OAAO,KAAK,EACV,QAAQ,EAKR,cAAc,EAEd,SAAS,EACV,MAAM,qBAAqB,CAAA;AAS5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGxD,qBAAa,eAAe,CAAC,OAAO,SAAS,qBAAqB,GAAG,qBAAqB,CAAE,SAAQ,eAAe,CAAC,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC;IACpJ,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAwD;IACxG,gBAAyB,mBAAmB,EAAE,MAAM,CAA8B;IAElF,IAAI,MAAM,IAAI,SAAS,CAEtB;IAED,IAAI,WAAW,uBAEd;IAED,IAAI,OAAO,uBAEV;IAED,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM;IAiCnC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;cAMnE,cAAc,CAAC,UAAU,GAAE,QAAQ,EAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;YAiCjF,OAAO;CA6FtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Witness/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the equivalent IPFS gateway URL for the supplied URL.
|
|
3
|
-
* @param urlToCheck The URL to check
|
|
4
|
-
* @returns If the supplied URL is an IPFS URL, it converts the URL to the
|
|
5
|
-
* equivalent IPFS gateway URL. Otherwise, returns the original URL.
|
|
6
|
-
*/
|
|
7
|
-
export declare const checkIpfsUrl: (urlToCheck: string, ipfsGateway?: string) => string;
|
|
8
|
-
//# sourceMappingURL=checkIpfsUrl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkIpfsUrl.d.ts","sourceRoot":"","sources":["../../../src/lib/checkIpfsUrl.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,eAAgB,MAAM,gBAAgB,MAAM,KAAG,MAgCvE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|