@xyo-network/http-call-witness 6.1.0 → 7.0.0
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/Payload/identity/asHttpCall.d.ts +38 -1
- package/dist/neutral/Payload/identity/asHttpCall.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/asHttpCallBase64Result.d.ts +18 -1
- package/dist/neutral/Payload/identity/asHttpCallBase64Result.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/asHttpCallResult.d.ts +50 -1
- package/dist/neutral/Payload/identity/asHttpCallResult.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/asHttpCallXmlResult.d.ts +18 -1
- package/dist/neutral/Payload/identity/asHttpCallXmlResult.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/asHttpUriCall.d.ts +20 -1
- package/dist/neutral/Payload/identity/asHttpUriCall.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/asHttpUriTemplateCall.d.ts +22 -1
- package/dist/neutral/Payload/identity/asHttpUriTemplateCall.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpCall.d.ts +18 -2
- package/dist/neutral/Payload/identity/isHttpCall.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpCallBase64Result.d.ts +8 -2
- package/dist/neutral/Payload/identity/isHttpCallBase64Result.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpCallErrorResult.d.ts +10 -2
- package/dist/neutral/Payload/identity/isHttpCallErrorResult.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpCallResult.d.ts +24 -2
- package/dist/neutral/Payload/identity/isHttpCallResult.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpCallXmlResult.d.ts +8 -2
- package/dist/neutral/Payload/identity/isHttpCallXmlResult.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpUriCall.d.ts +9 -2
- package/dist/neutral/Payload/identity/isHttpUriCall.d.ts.map +1 -1
- package/dist/neutral/Payload/identity/isHttpUriTemplateCall.d.ts +10 -2
- package/dist/neutral/Payload/identity/isHttpUriTemplateCall.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCall.d.ts +26 -3
- package/dist/neutral/Payload/types/HttpCall.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallBase64Result.d.ts +10 -10
- package/dist/neutral/Payload/types/HttpCallBase64Result.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallErrorResult.d.ts +12 -8
- package/dist/neutral/Payload/types/HttpCallErrorResult.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallFields.d.ts +10 -7
- package/dist/neutral/Payload/types/HttpCallFields.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallHtmlResult.d.ts +10 -8
- package/dist/neutral/Payload/types/HttpCallHtmlResult.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallJsonResult.d.ts +30 -8
- package/dist/neutral/Payload/types/HttpCallJsonResult.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallResult.d.ts +27 -5
- package/dist/neutral/Payload/types/HttpCallResult.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpCallXmlResult.d.ts +10 -8
- package/dist/neutral/Payload/types/HttpCallXmlResult.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpMeta.d.ts +6 -4
- package/dist/neutral/Payload/types/HttpMeta.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpUriCall.d.ts +14 -6
- package/dist/neutral/Payload/types/HttpUriCall.d.ts.map +1 -1
- package/dist/neutral/Payload/types/HttpUriTemplateCall.d.ts +15 -7
- package/dist/neutral/Payload/types/HttpUriTemplateCall.d.ts.map +1 -1
- package/dist/neutral/Payload/types/MimeTypes.d.ts +15 -1
- package/dist/neutral/Payload/types/MimeTypes.d.ts.map +1 -1
- package/dist/neutral/Payload/types/Queries.d.ts +3 -1
- package/dist/neutral/Payload/types/Queries.d.ts.map +1 -1
- package/dist/neutral/Payload/types/Verb.d.ts +6 -1
- package/dist/neutral/Payload/types/Verb.d.ts.map +1 -1
- package/dist/neutral/Witness/Config.d.ts.map +1 -1
- package/dist/neutral/Witness/Witness.d.ts.map +1 -1
- package/dist/neutral/index.mjs +206 -64
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +14 -18
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const asHttpCall: {
|
|
2
|
+
<T>(value: T): (T & ({
|
|
3
|
+
schema: "network.xyo.http.call" & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
uri: string;
|
|
7
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
8
|
+
queries?: Record<string, string> | undefined;
|
|
9
|
+
verb?: "get" | "post" | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
schema: "network.xyo.http.call" & {
|
|
12
|
+
readonly __schema: true;
|
|
13
|
+
};
|
|
14
|
+
params?: Record<string, string> | undefined;
|
|
15
|
+
uriTemplate?: string | undefined;
|
|
16
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
17
|
+
queries?: Record<string, string> | undefined;
|
|
18
|
+
verb?: "get" | "post" | undefined;
|
|
19
|
+
})) | undefined;
|
|
20
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & ({
|
|
21
|
+
schema: "network.xyo.http.call" & {
|
|
22
|
+
readonly __schema: true;
|
|
23
|
+
};
|
|
24
|
+
uri: string;
|
|
25
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
26
|
+
queries?: Record<string, string> | undefined;
|
|
27
|
+
verb?: "get" | "post" | undefined;
|
|
28
|
+
} | {
|
|
29
|
+
schema: "network.xyo.http.call" & {
|
|
30
|
+
readonly __schema: true;
|
|
31
|
+
};
|
|
32
|
+
params?: Record<string, string> | undefined;
|
|
33
|
+
uriTemplate?: string | undefined;
|
|
34
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
35
|
+
queries?: Record<string, string> | undefined;
|
|
36
|
+
verb?: "get" | "post" | undefined;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
2
39
|
//# sourceMappingURL=asHttpCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asHttpCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"asHttpCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAA"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
export declare const asHttpCallBase64Result:
|
|
1
|
+
export declare const asHttpCallBase64Result: {
|
|
2
|
+
<T>(value: T): (T & {
|
|
3
|
+
schema: string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
7
|
+
contentType: string;
|
|
8
|
+
data: string;
|
|
9
|
+
}) | undefined;
|
|
10
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
11
|
+
schema: string & {
|
|
12
|
+
readonly __schema: true;
|
|
13
|
+
};
|
|
14
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
15
|
+
contentType: string;
|
|
16
|
+
data: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
2
19
|
//# sourceMappingURL=asHttpCallBase64Result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asHttpCallBase64Result.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCallBase64Result.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"asHttpCallBase64Result.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCallBase64Result.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;CAAkE,CAAA"}
|
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
export declare const asHttpCallResult:
|
|
1
|
+
export declare const asHttpCallResult: {
|
|
2
|
+
<T>(value: T): (T & ({
|
|
3
|
+
schema: string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
7
|
+
contentType: string;
|
|
8
|
+
data: string;
|
|
9
|
+
} | {
|
|
10
|
+
schema: string & {
|
|
11
|
+
readonly __schema: true;
|
|
12
|
+
};
|
|
13
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
14
|
+
http?: {
|
|
15
|
+
code?: string | undefined;
|
|
16
|
+
status?: number | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
schema: string & {
|
|
20
|
+
readonly __schema: true;
|
|
21
|
+
};
|
|
22
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
23
|
+
contentType: "application/json";
|
|
24
|
+
data: import("../index.ts").HttpCallJsonResultType;
|
|
25
|
+
})) | undefined;
|
|
26
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & ({
|
|
27
|
+
schema: string & {
|
|
28
|
+
readonly __schema: true;
|
|
29
|
+
};
|
|
30
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
31
|
+
contentType: string;
|
|
32
|
+
data: string;
|
|
33
|
+
} | {
|
|
34
|
+
schema: string & {
|
|
35
|
+
readonly __schema: true;
|
|
36
|
+
};
|
|
37
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
38
|
+
http?: {
|
|
39
|
+
code?: string | undefined;
|
|
40
|
+
status?: number | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
schema: string & {
|
|
44
|
+
readonly __schema: true;
|
|
45
|
+
};
|
|
46
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
47
|
+
contentType: "application/json";
|
|
48
|
+
data: import("../index.ts").HttpCallJsonResultType;
|
|
49
|
+
});
|
|
50
|
+
};
|
|
2
51
|
//# sourceMappingURL=asHttpCallResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asHttpCallResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCallResult.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"asHttpCallResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCallResult.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsD,CAAA"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
export declare const asHttpCallXmlResult:
|
|
1
|
+
export declare const asHttpCallXmlResult: {
|
|
2
|
+
<T>(value: T): (T & {
|
|
3
|
+
schema: string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
7
|
+
contentType: "application/xml" | "text/xml";
|
|
8
|
+
data: string;
|
|
9
|
+
}) | undefined;
|
|
10
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
11
|
+
schema: string & {
|
|
12
|
+
readonly __schema: true;
|
|
13
|
+
};
|
|
14
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
15
|
+
contentType: "application/xml" | "text/xml";
|
|
16
|
+
data: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
2
19
|
//# sourceMappingURL=asHttpCallXmlResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asHttpCallXmlResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCallXmlResult.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"asHttpCallXmlResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpCallXmlResult.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAA4D,CAAA"}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
export declare const asHttpUriCall:
|
|
1
|
+
export declare const asHttpUriCall: {
|
|
2
|
+
<T>(value: T): (T & {
|
|
3
|
+
schema: "network.xyo.http.call" & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
uri: string;
|
|
7
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
8
|
+
queries?: Record<string, string> | undefined;
|
|
9
|
+
verb?: "get" | "post" | undefined;
|
|
10
|
+
}) | undefined;
|
|
11
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
12
|
+
schema: "network.xyo.http.call" & {
|
|
13
|
+
readonly __schema: true;
|
|
14
|
+
};
|
|
15
|
+
uri: string;
|
|
16
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
17
|
+
queries?: Record<string, string> | undefined;
|
|
18
|
+
verb?: "get" | "post" | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
2
21
|
//# sourceMappingURL=asHttpUriCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asHttpUriCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpUriCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"asHttpUriCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpUriCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
export declare const asHttpUriTemplateCall:
|
|
1
|
+
export declare const asHttpUriTemplateCall: {
|
|
2
|
+
<T>(value: T): (T & {
|
|
3
|
+
schema: "network.xyo.http.call" & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
};
|
|
6
|
+
params?: Record<string, string> | undefined;
|
|
7
|
+
uriTemplate?: string | undefined;
|
|
8
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
9
|
+
queries?: Record<string, string> | undefined;
|
|
10
|
+
verb?: "get" | "post" | undefined;
|
|
11
|
+
}) | undefined;
|
|
12
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
13
|
+
schema: "network.xyo.http.call" & {
|
|
14
|
+
readonly __schema: true;
|
|
15
|
+
};
|
|
16
|
+
params?: Record<string, string> | undefined;
|
|
17
|
+
uriTemplate?: string | undefined;
|
|
18
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
19
|
+
queries?: Record<string, string> | undefined;
|
|
20
|
+
verb?: "get" | "post" | undefined;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
2
23
|
//# sourceMappingURL=asHttpUriTemplateCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asHttpUriTemplateCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpUriTemplateCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"asHttpUriTemplateCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/asHttpUriTemplateCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;CAAgE,CAAA"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpCall: <T>(value: T) => value is T & ({
|
|
2
|
+
schema: "network.xyo.http.call" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
uri: string;
|
|
6
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
7
|
+
queries?: Record<string, string> | undefined;
|
|
8
|
+
verb?: "get" | "post" | undefined;
|
|
9
|
+
} | {
|
|
10
|
+
schema: "network.xyo.http.call" & {
|
|
11
|
+
readonly __schema: true;
|
|
12
|
+
};
|
|
13
|
+
params?: Record<string, string> | undefined;
|
|
14
|
+
uriTemplate?: string | undefined;
|
|
15
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
16
|
+
queries?: Record<string, string> | undefined;
|
|
17
|
+
verb?: "get" | "post" | undefined;
|
|
18
|
+
});
|
|
3
19
|
//# sourceMappingURL=isHttpCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCall.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;EAA4B,CAAA"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpCallBase64Result: <T>(value: T) => value is T & {
|
|
2
|
+
schema: string & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
6
|
+
contentType: string;
|
|
7
|
+
data: string;
|
|
8
|
+
};
|
|
3
9
|
//# sourceMappingURL=isHttpCallBase64Result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpCallBase64Result.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallBase64Result.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpCallBase64Result.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallBase64Result.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;;;;;CAAwC,CAAA"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpCallErrorResult: <T>(value: T) => value is T & {
|
|
2
|
+
schema: string & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
6
|
+
http?: {
|
|
7
|
+
code?: string | undefined;
|
|
8
|
+
status?: number | undefined;
|
|
9
|
+
} | undefined;
|
|
10
|
+
};
|
|
3
11
|
//# sourceMappingURL=isHttpCallErrorResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpCallErrorResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallErrorResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpCallErrorResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallErrorResult.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;CAA4F,CAAA"}
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpCallResult: <T>(value: T) => value is T & ({
|
|
2
|
+
schema: string & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
6
|
+
contentType: string;
|
|
7
|
+
data: string;
|
|
8
|
+
} | {
|
|
9
|
+
schema: string & {
|
|
10
|
+
readonly __schema: true;
|
|
11
|
+
};
|
|
12
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
13
|
+
http?: {
|
|
14
|
+
code?: string | undefined;
|
|
15
|
+
status?: number | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
schema: string & {
|
|
19
|
+
readonly __schema: true;
|
|
20
|
+
};
|
|
21
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
22
|
+
contentType: "application/json";
|
|
23
|
+
data: import("../index.ts").HttpCallJsonResultType;
|
|
24
|
+
});
|
|
3
25
|
//# sourceMappingURL=isHttpCallResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpCallResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpCallResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallResult.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;EAAkC,CAAA"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpCallXmlResult: <T>(value: T) => value is T & {
|
|
2
|
+
schema: string & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
6
|
+
contentType: "application/xml" | "text/xml";
|
|
7
|
+
data: string;
|
|
8
|
+
};
|
|
3
9
|
//# sourceMappingURL=isHttpCallXmlResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpCallXmlResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallXmlResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpCallXmlResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpCallXmlResult.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;CAAqC,CAAA"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpUriCall: <T>(value: T) => value is T & {
|
|
2
|
+
schema: "network.xyo.http.call" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
uri: string;
|
|
6
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
7
|
+
queries?: Record<string, string> | undefined;
|
|
8
|
+
verb?: "get" | "post" | undefined;
|
|
9
|
+
};
|
|
3
10
|
//# sourceMappingURL=isHttpUriCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpUriCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpUriCall.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpUriCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpUriCall.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;CAA+B,CAAA"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const isHttpUriTemplateCall: <T>(value: T) => value is T & {
|
|
2
|
+
schema: "network.xyo.http.call" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
params?: Record<string, string> | undefined;
|
|
6
|
+
uriTemplate?: string | undefined;
|
|
7
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
8
|
+
queries?: Record<string, string> | undefined;
|
|
9
|
+
verb?: "get" | "post" | undefined;
|
|
10
|
+
};
|
|
3
11
|
//# sourceMappingURL=isHttpUriTemplateCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isHttpUriTemplateCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpUriTemplateCall.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isHttpUriTemplateCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/identity/isHttpUriTemplateCall.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;CAAkH,CAAA"}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const HttpCallZod: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
3
|
+
schema: z.ZodMiniLiteral<"network.xyo.http.call" & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
}>;
|
|
6
|
+
uri: z.ZodMiniString<string>;
|
|
7
|
+
headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
8
|
+
queries: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
9
|
+
verb: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
10
|
+
get: "get";
|
|
11
|
+
post: "post";
|
|
12
|
+
}>>;
|
|
13
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
14
|
+
schema: z.ZodMiniLiteral<"network.xyo.http.call" & {
|
|
15
|
+
readonly __schema: true;
|
|
16
|
+
}>;
|
|
17
|
+
params: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
18
|
+
uriTemplate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
|
+
headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
20
|
+
queries: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
21
|
+
verb: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
22
|
+
get: "get";
|
|
23
|
+
post: "post";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strip>]>;
|
|
26
|
+
export type HttpCall = z.infer<typeof HttpCallZod>;
|
|
4
27
|
//# sourceMappingURL=HttpCall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"HttpCall.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;mBAAoD,CAAA;AAE5E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const HttpCallBase64ResultZod: z.ZodMiniObject<{
|
|
3
|
+
schema: z.ZodMiniLiteral<string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
}>;
|
|
6
|
+
call: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
7
|
+
contentType: z.ZodMiniString<string>;
|
|
8
|
+
data: z.ZodMiniString<string>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type HttpCallBase64Result = z.infer<typeof HttpCallBase64ResultZod>;
|
|
11
11
|
//# sourceMappingURL=HttpCallBase64Result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCallBase64Result.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallBase64Result.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpCallBase64Result.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallBase64Result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,uBAAuB;;;;;;;iBAIlC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
call:
|
|
7
|
-
http
|
|
8
|
-
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const HttpCallErrorResultZod: z.ZodMiniObject<{
|
|
3
|
+
schema: z.ZodMiniLiteral<string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
}>;
|
|
6
|
+
call: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
7
|
+
http: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
8
|
+
code: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
9
|
+
status: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type HttpCallErrorResult = z.infer<typeof HttpCallErrorResultZod>;
|
|
9
13
|
//# sourceMappingURL=HttpCallErrorResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCallErrorResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallErrorResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpCallErrorResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallErrorResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,sBAAsB;;;;;;;;;iBAGjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const HttpCallFieldsZod: z.ZodMiniObject<{
|
|
3
|
+
headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
4
|
+
queries: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
5
|
+
verb: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
6
|
+
get: "get";
|
|
7
|
+
post: "post";
|
|
8
|
+
}>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type HttpCallFields = z.infer<typeof HttpCallFieldsZod>;
|
|
8
11
|
//# sourceMappingURL=HttpCallFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCallFields.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"HttpCallFields.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAK7B,eAAO,MAAM,iBAAiB;;;;;;;iBAI5B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const HttpCallHtmlResultZod: z.ZodMiniObject<{
|
|
3
|
+
schema: z.ZodMiniLiteral<string & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
}>;
|
|
6
|
+
call: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
7
|
+
contentType: z.ZodMiniLiteral<"text/html">;
|
|
8
|
+
data: z.ZodMiniString<string>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type HttpCallHtmlResult = z.infer<typeof HttpCallHtmlResultZod>;
|
|
9
11
|
//# sourceMappingURL=HttpCallHtmlResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCallHtmlResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallHtmlResult.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpCallHtmlResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallHtmlResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,qBAAqB;;;;;;;iBAIhC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
import { HttpCallResultSchema } from '../Schema.ts';
|
|
1
|
+
import type { JsonArray, JsonObject } from '@xylabs/sdk-js';
|
|
2
|
+
import * as z from 'zod/mini';
|
|
4
3
|
export type HttpCallJsonResultType = JsonArray | JsonObject;
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export declare const HttpCallJsonResultZod: z.ZodMiniObject<{
|
|
5
|
+
schema: z.ZodMiniLiteral<string & {
|
|
6
|
+
readonly __schema: true;
|
|
7
|
+
}>;
|
|
8
|
+
call: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>;
|
|
9
|
+
contentType: z.ZodMiniLiteral<"application/json">;
|
|
10
|
+
data: z.ZodMiniCustom<HttpCallJsonResultType, HttpCallJsonResultType>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type HttpCallJsonResult<T extends HttpCallJsonResultType = HttpCallJsonResultType> = Omit<z.infer<typeof HttpCallJsonResultZod>, 'data'> & {
|
|
8
13
|
data: T;
|
|
9
|
-
}
|
|
14
|
+
};
|
|
10
15
|
export declare const isHttpCallJsonResult: <T extends HttpCallJsonResultType = HttpCallJsonResultType>(x?: unknown) => x is HttpCallJsonResult<T>;
|
|
11
|
-
export declare const asHttpCallJsonResult:
|
|
16
|
+
export declare const asHttpCallJsonResult: {
|
|
17
|
+
<T>(value: T): (T & {
|
|
18
|
+
schema: string & {
|
|
19
|
+
readonly __schema: true;
|
|
20
|
+
};
|
|
21
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
22
|
+
contentType: "application/json";
|
|
23
|
+
data: HttpCallJsonResultType;
|
|
24
|
+
}) | undefined;
|
|
25
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
26
|
+
schema: string & {
|
|
27
|
+
readonly __schema: true;
|
|
28
|
+
};
|
|
29
|
+
call: import("@xylabs/sdk-js").BrandedHash;
|
|
30
|
+
contentType: "application/json";
|
|
31
|
+
data: HttpCallJsonResultType;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
12
34
|
//# sourceMappingURL=HttpCallJsonResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCallJsonResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallJsonResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"HttpCallJsonResult.d.ts","sourceRoot":"","sources":["../../../../src/Payload/types/HttpCallJsonResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAK3D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,CAAA;AAE3D,eAAO,MAAM,qBAAqB;;;;;;;iBAIhC,CAAA;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAAE,MAAM,CAAC,GAAG;IAChJ,IAAI,EAAE,CAAC,CAAA;CACR,CAAA;AAID,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EAAE,IAAI,OAAO,KAAG,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAC5H,CAAA;AACX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;CAA8D,CAAA"}
|