@unified-api/typescript-sdk 2.4.1 → 2.5.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/README.md +41 -3
- package/funcs/apicallListUnifiedApicalls.js +1 -1
- package/funcs/apicallListUnifiedApicalls.js.map +1 -1
- package/funcs/connectionListUnifiedConnections.js +1 -1
- package/funcs/connectionListUnifiedConnections.js.map +1 -1
- package/funcs/integrationListUnifiedIntegrations.js +1 -1
- package/funcs/integrationListUnifiedIntegrations.js.map +1 -1
- package/funcs/issueListUnifiedIssues.js +1 -1
- package/funcs/issueListUnifiedIssues.js.map +1 -1
- package/funcs/passthroughCreatePassthroughJson.d.ts +19 -0
- package/funcs/passthroughCreatePassthroughJson.d.ts.map +1 -0
- package/funcs/{passthroughCreatePassthrough.js → passthroughCreatePassthroughJson.js} +18 -8
- package/funcs/passthroughCreatePassthroughJson.js.map +1 -0
- package/funcs/passthroughCreatePassthroughRaw.d.ts +19 -0
- package/funcs/passthroughCreatePassthroughRaw.d.ts.map +1 -0
- package/funcs/passthroughCreatePassthroughRaw.js +109 -0
- package/funcs/passthroughCreatePassthroughRaw.js.map +1 -0
- package/funcs/passthroughListPassthroughs.d.ts +8 -3
- package/funcs/passthroughListPassthroughs.d.ts.map +1 -1
- package/funcs/passthroughListPassthroughs.js +13 -3
- package/funcs/passthroughListPassthroughs.js.map +1 -1
- package/funcs/passthroughPatchPassthroughJson.d.ts +19 -0
- package/funcs/passthroughPatchPassthroughJson.d.ts.map +1 -0
- package/funcs/{passthroughPatchPassthrough.js → passthroughPatchPassthroughJson.js} +18 -8
- package/funcs/passthroughPatchPassthroughJson.js.map +1 -0
- package/funcs/passthroughPatchPassthroughRaw.d.ts +19 -0
- package/funcs/passthroughPatchPassthroughRaw.d.ts.map +1 -0
- package/funcs/passthroughPatchPassthroughRaw.js +109 -0
- package/funcs/passthroughPatchPassthroughRaw.js.map +1 -0
- package/funcs/passthroughRemovePassthrough.d.ts +8 -3
- package/funcs/passthroughRemovePassthrough.d.ts.map +1 -1
- package/funcs/passthroughRemovePassthrough.js +13 -3
- package/funcs/passthroughRemovePassthrough.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughJson.d.ts +19 -0
- package/funcs/passthroughUpdatePassthroughJson.d.ts.map +1 -0
- package/funcs/{passthroughUpdatePassthrough.js → passthroughUpdatePassthroughJson.js} +18 -8
- package/funcs/passthroughUpdatePassthroughJson.js.map +1 -0
- package/funcs/passthroughUpdatePassthroughRaw.d.ts +19 -0
- package/funcs/passthroughUpdatePassthroughRaw.d.ts.map +1 -0
- package/funcs/passthroughUpdatePassthroughRaw.js +109 -0
- package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -0
- package/funcs/unifiedCreateUnifiedWebhook.js +1 -1
- package/funcs/unifiedCreateUnifiedWebhook.js.map +1 -1
- package/funcs/unifiedListUnifiedApicalls.js +1 -1
- package/funcs/unifiedListUnifiedApicalls.js.map +1 -1
- package/funcs/unifiedListUnifiedConnections.js +1 -1
- package/funcs/unifiedListUnifiedConnections.js.map +1 -1
- package/funcs/unifiedListUnifiedIntegrations.js +1 -1
- package/funcs/unifiedListUnifiedIntegrations.js.map +1 -1
- package/funcs/unifiedListUnifiedIssues.js +1 -1
- package/funcs/unifiedListUnifiedIssues.js.map +1 -1
- package/funcs/unifiedListUnifiedWebhooks.js +1 -1
- package/funcs/unifiedListUnifiedWebhooks.js.map +1 -1
- package/funcs/webhookCreateUnifiedWebhook.js +1 -1
- package/funcs/webhookCreateUnifiedWebhook.js.map +1 -1
- package/funcs/webhookListUnifiedWebhooks.js +1 -1
- package/funcs/webhookListUnifiedWebhooks.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +2 -2
- package/sdk/models/operations/createpassthroughjson.d.ts +83 -0
- package/sdk/models/operations/createpassthroughjson.d.ts.map +1 -0
- package/sdk/models/operations/createpassthroughjson.js +112 -0
- package/sdk/models/operations/createpassthroughjson.js.map +1 -0
- package/sdk/models/operations/createpassthroughraw.d.ts +83 -0
- package/sdk/models/operations/createpassthroughraw.d.ts.map +1 -0
- package/sdk/models/operations/createpassthroughraw.js +122 -0
- package/sdk/models/operations/createpassthroughraw.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -3
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -3
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listpassthroughs.d.ts +48 -0
- package/sdk/models/operations/listpassthroughs.d.ts.map +1 -1
- package/sdk/models/operations/listpassthroughs.js +48 -1
- package/sdk/models/operations/listpassthroughs.js.map +1 -1
- package/sdk/models/operations/patchpassthroughjson.d.ts +83 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts.map +1 -0
- package/sdk/models/operations/patchpassthroughjson.js +112 -0
- package/sdk/models/operations/patchpassthroughjson.js.map +1 -0
- package/sdk/models/operations/patchpassthroughraw.d.ts +83 -0
- package/sdk/models/operations/patchpassthroughraw.d.ts.map +1 -0
- package/sdk/models/operations/patchpassthroughraw.js +122 -0
- package/sdk/models/operations/patchpassthroughraw.js.map +1 -0
- package/sdk/models/operations/removepassthrough.d.ts +48 -0
- package/sdk/models/operations/removepassthrough.d.ts.map +1 -1
- package/sdk/models/operations/removepassthrough.js +48 -1
- package/sdk/models/operations/removepassthrough.js.map +1 -1
- package/sdk/models/operations/updatepassthroughjson.d.ts +83 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts.map +1 -0
- package/sdk/models/operations/updatepassthroughjson.js +112 -0
- package/sdk/models/operations/updatepassthroughjson.js.map +1 -0
- package/sdk/models/operations/updatepassthroughraw.d.ts +83 -0
- package/sdk/models/operations/updatepassthroughraw.d.ts.map +1 -0
- package/sdk/models/operations/updatepassthroughraw.js +122 -0
- package/sdk/models/operations/updatepassthroughraw.js.map +1 -0
- package/sdk/passthrough.d.ts +49 -15
- package/sdk/passthrough.d.ts.map +1 -1
- package/sdk/passthrough.js +47 -10
- package/sdk/passthrough.js.map +1 -1
- package/src/funcs/apicallListUnifiedApicalls.ts +1 -1
- package/src/funcs/connectionListUnifiedConnections.ts +1 -1
- package/src/funcs/integrationListUnifiedIntegrations.ts +1 -1
- package/src/funcs/issueListUnifiedIssues.ts +1 -1
- package/src/funcs/{passthroughCreatePassthrough.ts → passthroughCreatePassthroughJson.ts} +42 -11
- package/src/funcs/passthroughCreatePassthroughRaw.ts +158 -0
- package/src/funcs/passthroughListPassthroughs.ts +38 -7
- package/src/funcs/{passthroughPatchPassthrough.ts → passthroughPatchPassthroughJson.ts} +43 -11
- package/src/funcs/passthroughPatchPassthroughRaw.ts +158 -0
- package/src/funcs/passthroughRemovePassthrough.ts +38 -7
- package/src/funcs/{passthroughUpdatePassthrough.ts → passthroughUpdatePassthroughJson.ts} +42 -11
- package/src/funcs/passthroughUpdatePassthroughRaw.ts +158 -0
- package/src/funcs/unifiedCreateUnifiedWebhook.ts +1 -1
- package/src/funcs/unifiedListUnifiedApicalls.ts +1 -1
- package/src/funcs/unifiedListUnifiedConnections.ts +1 -1
- package/src/funcs/unifiedListUnifiedIntegrations.ts +1 -1
- package/src/funcs/unifiedListUnifiedIssues.ts +1 -1
- package/src/funcs/unifiedListUnifiedWebhooks.ts +1 -1
- package/src/funcs/webhookCreateUnifiedWebhook.ts +1 -1
- package/src/funcs/webhookListUnifiedWebhooks.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/operations/createpassthroughjson.ts +166 -0
- package/src/sdk/models/operations/createpassthroughraw.ts +185 -0
- package/src/sdk/models/operations/index.ts +6 -3
- package/src/sdk/models/operations/listpassthroughs.ts +87 -0
- package/src/sdk/models/operations/patchpassthroughjson.ts +165 -0
- package/src/sdk/models/operations/patchpassthroughraw.ts +185 -0
- package/src/sdk/models/operations/removepassthrough.ts +94 -0
- package/src/sdk/models/operations/updatepassthroughjson.ts +166 -0
- package/src/sdk/models/operations/updatepassthroughraw.ts +185 -0
- package/src/sdk/passthrough.ts +125 -24
- package/funcs/passthroughCreatePassthrough.d.ts +0 -14
- package/funcs/passthroughCreatePassthrough.d.ts.map +0 -1
- package/funcs/passthroughCreatePassthrough.js.map +0 -1
- package/funcs/passthroughPatchPassthrough.d.ts +0 -14
- package/funcs/passthroughPatchPassthrough.d.ts.map +0 -1
- package/funcs/passthroughPatchPassthrough.js.map +0 -1
- package/funcs/passthroughUpdatePassthrough.d.ts +0 -14
- package/funcs/passthroughUpdatePassthrough.d.ts.map +0 -1
- package/funcs/passthroughUpdatePassthrough.js.map +0 -1
- package/sdk/models/operations/createpassthrough.d.ts +0 -39
- package/sdk/models/operations/createpassthrough.d.ts.map +0 -1
- package/sdk/models/operations/createpassthrough.js +0 -65
- package/sdk/models/operations/createpassthrough.js.map +0 -1
- package/sdk/models/operations/patchpassthrough.d.ts +0 -39
- package/sdk/models/operations/patchpassthrough.d.ts.map +0 -1
- package/sdk/models/operations/patchpassthrough.js +0 -65
- package/sdk/models/operations/patchpassthrough.js.map +0 -1
- package/sdk/models/operations/updatepassthrough.d.ts +0 -39
- package/sdk/models/operations/updatepassthrough.d.ts.map +0 -1
- package/sdk/models/operations/updatepassthrough.js +0 -65
- package/sdk/models/operations/updatepassthrough.js.map +0 -1
- package/src/sdk/models/operations/createpassthrough.ts +0 -70
- package/src/sdk/models/operations/patchpassthrough.ts +0 -70
- package/src/sdk/models/operations/updatepassthrough.ts +0 -70
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import * as b64$ from "../../../lib/base64.js";
|
|
7
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
8
|
+
|
|
9
|
+
export type PatchPassthroughRawRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* integration-specific payload
|
|
12
|
+
*/
|
|
13
|
+
requestBody?:
|
|
14
|
+
| ReadableStream<Uint8Array>
|
|
15
|
+
| Blob
|
|
16
|
+
| ArrayBuffer
|
|
17
|
+
| Buffer
|
|
18
|
+
| undefined;
|
|
19
|
+
/**
|
|
20
|
+
* ID of the connection
|
|
21
|
+
*/
|
|
22
|
+
connectionId: string;
|
|
23
|
+
path: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type PatchPassthroughRawResponseResult =
|
|
27
|
+
| any
|
|
28
|
+
| string
|
|
29
|
+
| Uint8Array
|
|
30
|
+
| string;
|
|
31
|
+
|
|
32
|
+
export type PatchPassthroughRawResponse = {
|
|
33
|
+
headers: { [k: string]: Array<string> };
|
|
34
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const PatchPassthroughRawRequest$inboundSchema: z.ZodType<
|
|
39
|
+
PatchPassthroughRawRequest,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
RequestBody: z.union([
|
|
44
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
45
|
+
z.instanceof(Blob),
|
|
46
|
+
z.instanceof(ArrayBuffer),
|
|
47
|
+
z.instanceof(Buffer),
|
|
48
|
+
]).optional(),
|
|
49
|
+
connection_id: z.string(),
|
|
50
|
+
path: z.string(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"RequestBody": "requestBody",
|
|
54
|
+
"connection_id": "connectionId",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type PatchPassthroughRawRequest$Outbound = {
|
|
60
|
+
RequestBody?:
|
|
61
|
+
| ReadableStream<Uint8Array>
|
|
62
|
+
| Blob
|
|
63
|
+
| ArrayBuffer
|
|
64
|
+
| Buffer
|
|
65
|
+
| undefined;
|
|
66
|
+
connection_id: string;
|
|
67
|
+
path: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const PatchPassthroughRawRequest$outboundSchema: z.ZodType<
|
|
72
|
+
PatchPassthroughRawRequest$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
PatchPassthroughRawRequest
|
|
75
|
+
> = z.object({
|
|
76
|
+
requestBody: z.union([
|
|
77
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
78
|
+
z.instanceof(Blob),
|
|
79
|
+
z.instanceof(ArrayBuffer),
|
|
80
|
+
z.instanceof(Buffer),
|
|
81
|
+
]).optional(),
|
|
82
|
+
connectionId: z.string(),
|
|
83
|
+
path: z.string(),
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return remap$(v, {
|
|
86
|
+
requestBody: "RequestBody",
|
|
87
|
+
connectionId: "connection_id",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
+
*/
|
|
95
|
+
export namespace PatchPassthroughRawRequest$ {
|
|
96
|
+
/** @deprecated use `PatchPassthroughRawRequest$inboundSchema` instead. */
|
|
97
|
+
export const inboundSchema = PatchPassthroughRawRequest$inboundSchema;
|
|
98
|
+
/** @deprecated use `PatchPassthroughRawRequest$outboundSchema` instead. */
|
|
99
|
+
export const outboundSchema = PatchPassthroughRawRequest$outboundSchema;
|
|
100
|
+
/** @deprecated use `PatchPassthroughRawRequest$Outbound` instead. */
|
|
101
|
+
export type Outbound = PatchPassthroughRawRequest$Outbound;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const PatchPassthroughRawResponseResult$inboundSchema: z.ZodType<
|
|
106
|
+
PatchPassthroughRawResponseResult,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type PatchPassthroughRawResponseResult$Outbound =
|
|
113
|
+
| any
|
|
114
|
+
| string
|
|
115
|
+
| Uint8Array;
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const PatchPassthroughRawResponseResult$outboundSchema: z.ZodType<
|
|
119
|
+
PatchPassthroughRawResponseResult$Outbound,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
PatchPassthroughRawResponseResult
|
|
122
|
+
> = z.union([z.any(), z.string(), b64$.zodOutbound]);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
+
*/
|
|
128
|
+
export namespace PatchPassthroughRawResponseResult$ {
|
|
129
|
+
/** @deprecated use `PatchPassthroughRawResponseResult$inboundSchema` instead. */
|
|
130
|
+
export const inboundSchema = PatchPassthroughRawResponseResult$inboundSchema;
|
|
131
|
+
/** @deprecated use `PatchPassthroughRawResponseResult$outboundSchema` instead. */
|
|
132
|
+
export const outboundSchema =
|
|
133
|
+
PatchPassthroughRawResponseResult$outboundSchema;
|
|
134
|
+
/** @deprecated use `PatchPassthroughRawResponseResult$Outbound` instead. */
|
|
135
|
+
export type Outbound = PatchPassthroughRawResponseResult$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const PatchPassthroughRawResponse$inboundSchema: z.ZodType<
|
|
140
|
+
PatchPassthroughRawResponse,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
unknown
|
|
143
|
+
> = z.object({
|
|
144
|
+
Headers: z.record(z.array(z.string())),
|
|
145
|
+
Result: z.union([z.any(), z.string(), b64$.zodInbound]).optional(),
|
|
146
|
+
}).transform((v) => {
|
|
147
|
+
return remap$(v, {
|
|
148
|
+
"Headers": "headers",
|
|
149
|
+
"Result": "result",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export type PatchPassthroughRawResponse$Outbound = {
|
|
155
|
+
Headers: { [k: string]: Array<string> };
|
|
156
|
+
Result?: any | string | Uint8Array | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const PatchPassthroughRawResponse$outboundSchema: z.ZodType<
|
|
161
|
+
PatchPassthroughRawResponse$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
PatchPassthroughRawResponse
|
|
164
|
+
> = z.object({
|
|
165
|
+
headers: z.record(z.array(z.string())),
|
|
166
|
+
result: z.union([z.any(), z.string(), b64$.zodOutbound]).optional(),
|
|
167
|
+
}).transform((v) => {
|
|
168
|
+
return remap$(v, {
|
|
169
|
+
headers: "Headers",
|
|
170
|
+
result: "Result",
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace PatchPassthroughRawResponse$ {
|
|
179
|
+
/** @deprecated use `PatchPassthroughRawResponse$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = PatchPassthroughRawResponse$inboundSchema;
|
|
181
|
+
/** @deprecated use `PatchPassthroughRawResponse$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = PatchPassthroughRawResponse$outboundSchema;
|
|
183
|
+
/** @deprecated use `PatchPassthroughRawResponse$Outbound` instead. */
|
|
184
|
+
export type Outbound = PatchPassthroughRawResponse$Outbound;
|
|
185
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import * as b64$ from "../../../lib/base64.js";
|
|
6
7
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
8
|
|
|
8
9
|
export type RemovePassthroughRequest = {
|
|
@@ -13,6 +14,17 @@ export type RemovePassthroughRequest = {
|
|
|
13
14
|
path: string;
|
|
14
15
|
};
|
|
15
16
|
|
|
17
|
+
export type RemovePassthroughResponseResult =
|
|
18
|
+
| any
|
|
19
|
+
| string
|
|
20
|
+
| Uint8Array
|
|
21
|
+
| string;
|
|
22
|
+
|
|
23
|
+
export type RemovePassthroughResponse = {
|
|
24
|
+
headers: { [k: string]: Array<string> };
|
|
25
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
16
28
|
/** @internal */
|
|
17
29
|
export const RemovePassthroughRequest$inboundSchema: z.ZodType<
|
|
18
30
|
RemovePassthroughRequest,
|
|
@@ -59,3 +71,85 @@ export namespace RemovePassthroughRequest$ {
|
|
|
59
71
|
/** @deprecated use `RemovePassthroughRequest$Outbound` instead. */
|
|
60
72
|
export type Outbound = RemovePassthroughRequest$Outbound;
|
|
61
73
|
}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const RemovePassthroughResponseResult$inboundSchema: z.ZodType<
|
|
77
|
+
RemovePassthroughResponseResult,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
unknown
|
|
80
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export type RemovePassthroughResponseResult$Outbound =
|
|
84
|
+
| any
|
|
85
|
+
| string
|
|
86
|
+
| Uint8Array;
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const RemovePassthroughResponseResult$outboundSchema: z.ZodType<
|
|
90
|
+
RemovePassthroughResponseResult$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
RemovePassthroughResponseResult
|
|
93
|
+
> = z.union([z.any(), z.string(), b64$.zodOutbound]);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace RemovePassthroughResponseResult$ {
|
|
100
|
+
/** @deprecated use `RemovePassthroughResponseResult$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = RemovePassthroughResponseResult$inboundSchema;
|
|
102
|
+
/** @deprecated use `RemovePassthroughResponseResult$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = RemovePassthroughResponseResult$outboundSchema;
|
|
104
|
+
/** @deprecated use `RemovePassthroughResponseResult$Outbound` instead. */
|
|
105
|
+
export type Outbound = RemovePassthroughResponseResult$Outbound;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const RemovePassthroughResponse$inboundSchema: z.ZodType<
|
|
110
|
+
RemovePassthroughResponse,
|
|
111
|
+
z.ZodTypeDef,
|
|
112
|
+
unknown
|
|
113
|
+
> = z.object({
|
|
114
|
+
Headers: z.record(z.array(z.string())),
|
|
115
|
+
Result: z.union([z.any(), z.string(), b64$.zodInbound]).optional(),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
"Headers": "headers",
|
|
119
|
+
"Result": "result",
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type RemovePassthroughResponse$Outbound = {
|
|
125
|
+
Headers: { [k: string]: Array<string> };
|
|
126
|
+
Result?: any | string | Uint8Array | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const RemovePassthroughResponse$outboundSchema: z.ZodType<
|
|
131
|
+
RemovePassthroughResponse$Outbound,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
RemovePassthroughResponse
|
|
134
|
+
> = z.object({
|
|
135
|
+
headers: z.record(z.array(z.string())),
|
|
136
|
+
result: z.union([z.any(), z.string(), b64$.zodOutbound]).optional(),
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return remap$(v, {
|
|
139
|
+
headers: "Headers",
|
|
140
|
+
result: "Result",
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @internal
|
|
146
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
+
*/
|
|
148
|
+
export namespace RemovePassthroughResponse$ {
|
|
149
|
+
/** @deprecated use `RemovePassthroughResponse$inboundSchema` instead. */
|
|
150
|
+
export const inboundSchema = RemovePassthroughResponse$inboundSchema;
|
|
151
|
+
/** @deprecated use `RemovePassthroughResponse$outboundSchema` instead. */
|
|
152
|
+
export const outboundSchema = RemovePassthroughResponse$outboundSchema;
|
|
153
|
+
/** @deprecated use `RemovePassthroughResponse$Outbound` instead. */
|
|
154
|
+
export type Outbound = RemovePassthroughResponse$Outbound;
|
|
155
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import * as b64$ from "../../../lib/base64.js";
|
|
7
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
8
|
+
|
|
9
|
+
export type UpdatePassthroughJsonRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* integration-specific payload
|
|
12
|
+
*/
|
|
13
|
+
requestBody?: any | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type UpdatePassthroughJsonResponseResult =
|
|
22
|
+
| any
|
|
23
|
+
| string
|
|
24
|
+
| Uint8Array
|
|
25
|
+
| string;
|
|
26
|
+
|
|
27
|
+
export type UpdatePassthroughJsonResponse = {
|
|
28
|
+
headers: { [k: string]: Array<string> };
|
|
29
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const UpdatePassthroughJsonRequest$inboundSchema: z.ZodType<
|
|
34
|
+
UpdatePassthroughJsonRequest,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
RequestBody: z.any().optional(),
|
|
39
|
+
connection_id: z.string(),
|
|
40
|
+
path: z.string(),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"RequestBody": "requestBody",
|
|
44
|
+
"connection_id": "connectionId",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type UpdatePassthroughJsonRequest$Outbound = {
|
|
50
|
+
RequestBody?: any | undefined;
|
|
51
|
+
connection_id: string;
|
|
52
|
+
path: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const UpdatePassthroughJsonRequest$outboundSchema: z.ZodType<
|
|
57
|
+
UpdatePassthroughJsonRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
UpdatePassthroughJsonRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
requestBody: z.any().optional(),
|
|
62
|
+
connectionId: z.string(),
|
|
63
|
+
path: z.string(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
requestBody: "RequestBody",
|
|
67
|
+
connectionId: "connection_id",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
export namespace UpdatePassthroughJsonRequest$ {
|
|
76
|
+
/** @deprecated use `UpdatePassthroughJsonRequest$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = UpdatePassthroughJsonRequest$inboundSchema;
|
|
78
|
+
/** @deprecated use `UpdatePassthroughJsonRequest$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = UpdatePassthroughJsonRequest$outboundSchema;
|
|
80
|
+
/** @deprecated use `UpdatePassthroughJsonRequest$Outbound` instead. */
|
|
81
|
+
export type Outbound = UpdatePassthroughJsonRequest$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const UpdatePassthroughJsonResponseResult$inboundSchema: z.ZodType<
|
|
86
|
+
UpdatePassthroughJsonResponseResult,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type UpdatePassthroughJsonResponseResult$Outbound =
|
|
93
|
+
| any
|
|
94
|
+
| string
|
|
95
|
+
| Uint8Array;
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const UpdatePassthroughJsonResponseResult$outboundSchema: z.ZodType<
|
|
99
|
+
UpdatePassthroughJsonResponseResult$Outbound,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
UpdatePassthroughJsonResponseResult
|
|
102
|
+
> = z.union([z.any(), z.string(), b64$.zodOutbound]);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
+
*/
|
|
108
|
+
export namespace UpdatePassthroughJsonResponseResult$ {
|
|
109
|
+
/** @deprecated use `UpdatePassthroughJsonResponseResult$inboundSchema` instead. */
|
|
110
|
+
export const inboundSchema =
|
|
111
|
+
UpdatePassthroughJsonResponseResult$inboundSchema;
|
|
112
|
+
/** @deprecated use `UpdatePassthroughJsonResponseResult$outboundSchema` instead. */
|
|
113
|
+
export const outboundSchema =
|
|
114
|
+
UpdatePassthroughJsonResponseResult$outboundSchema;
|
|
115
|
+
/** @deprecated use `UpdatePassthroughJsonResponseResult$Outbound` instead. */
|
|
116
|
+
export type Outbound = UpdatePassthroughJsonResponseResult$Outbound;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const UpdatePassthroughJsonResponse$inboundSchema: z.ZodType<
|
|
121
|
+
UpdatePassthroughJsonResponse,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
unknown
|
|
124
|
+
> = z.object({
|
|
125
|
+
Headers: z.record(z.array(z.string())),
|
|
126
|
+
Result: z.union([z.any(), z.string(), b64$.zodInbound]).optional(),
|
|
127
|
+
}).transform((v) => {
|
|
128
|
+
return remap$(v, {
|
|
129
|
+
"Headers": "headers",
|
|
130
|
+
"Result": "result",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type UpdatePassthroughJsonResponse$Outbound = {
|
|
136
|
+
Headers: { [k: string]: Array<string> };
|
|
137
|
+
Result?: any | string | Uint8Array | undefined;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const UpdatePassthroughJsonResponse$outboundSchema: z.ZodType<
|
|
142
|
+
UpdatePassthroughJsonResponse$Outbound,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
UpdatePassthroughJsonResponse
|
|
145
|
+
> = z.object({
|
|
146
|
+
headers: z.record(z.array(z.string())),
|
|
147
|
+
result: z.union([z.any(), z.string(), b64$.zodOutbound]).optional(),
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return remap$(v, {
|
|
150
|
+
headers: "Headers",
|
|
151
|
+
result: "Result",
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
158
|
+
*/
|
|
159
|
+
export namespace UpdatePassthroughJsonResponse$ {
|
|
160
|
+
/** @deprecated use `UpdatePassthroughJsonResponse$inboundSchema` instead. */
|
|
161
|
+
export const inboundSchema = UpdatePassthroughJsonResponse$inboundSchema;
|
|
162
|
+
/** @deprecated use `UpdatePassthroughJsonResponse$outboundSchema` instead. */
|
|
163
|
+
export const outboundSchema = UpdatePassthroughJsonResponse$outboundSchema;
|
|
164
|
+
/** @deprecated use `UpdatePassthroughJsonResponse$Outbound` instead. */
|
|
165
|
+
export type Outbound = UpdatePassthroughJsonResponse$Outbound;
|
|
166
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import * as b64$ from "../../../lib/base64.js";
|
|
7
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
8
|
+
|
|
9
|
+
export type UpdatePassthroughRawRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* integration-specific payload
|
|
12
|
+
*/
|
|
13
|
+
requestBody?:
|
|
14
|
+
| ReadableStream<Uint8Array>
|
|
15
|
+
| Blob
|
|
16
|
+
| ArrayBuffer
|
|
17
|
+
| Buffer
|
|
18
|
+
| undefined;
|
|
19
|
+
/**
|
|
20
|
+
* ID of the connection
|
|
21
|
+
*/
|
|
22
|
+
connectionId: string;
|
|
23
|
+
path: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type UpdatePassthroughRawResponseResult =
|
|
27
|
+
| any
|
|
28
|
+
| string
|
|
29
|
+
| Uint8Array
|
|
30
|
+
| string;
|
|
31
|
+
|
|
32
|
+
export type UpdatePassthroughRawResponse = {
|
|
33
|
+
headers: { [k: string]: Array<string> };
|
|
34
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const UpdatePassthroughRawRequest$inboundSchema: z.ZodType<
|
|
39
|
+
UpdatePassthroughRawRequest,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
RequestBody: z.union([
|
|
44
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
45
|
+
z.instanceof(Blob),
|
|
46
|
+
z.instanceof(ArrayBuffer),
|
|
47
|
+
z.instanceof(Buffer),
|
|
48
|
+
]).optional(),
|
|
49
|
+
connection_id: z.string(),
|
|
50
|
+
path: z.string(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"RequestBody": "requestBody",
|
|
54
|
+
"connection_id": "connectionId",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type UpdatePassthroughRawRequest$Outbound = {
|
|
60
|
+
RequestBody?:
|
|
61
|
+
| ReadableStream<Uint8Array>
|
|
62
|
+
| Blob
|
|
63
|
+
| ArrayBuffer
|
|
64
|
+
| Buffer
|
|
65
|
+
| undefined;
|
|
66
|
+
connection_id: string;
|
|
67
|
+
path: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const UpdatePassthroughRawRequest$outboundSchema: z.ZodType<
|
|
72
|
+
UpdatePassthroughRawRequest$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
UpdatePassthroughRawRequest
|
|
75
|
+
> = z.object({
|
|
76
|
+
requestBody: z.union([
|
|
77
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
78
|
+
z.instanceof(Blob),
|
|
79
|
+
z.instanceof(ArrayBuffer),
|
|
80
|
+
z.instanceof(Buffer),
|
|
81
|
+
]).optional(),
|
|
82
|
+
connectionId: z.string(),
|
|
83
|
+
path: z.string(),
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return remap$(v, {
|
|
86
|
+
requestBody: "RequestBody",
|
|
87
|
+
connectionId: "connection_id",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
+
*/
|
|
95
|
+
export namespace UpdatePassthroughRawRequest$ {
|
|
96
|
+
/** @deprecated use `UpdatePassthroughRawRequest$inboundSchema` instead. */
|
|
97
|
+
export const inboundSchema = UpdatePassthroughRawRequest$inboundSchema;
|
|
98
|
+
/** @deprecated use `UpdatePassthroughRawRequest$outboundSchema` instead. */
|
|
99
|
+
export const outboundSchema = UpdatePassthroughRawRequest$outboundSchema;
|
|
100
|
+
/** @deprecated use `UpdatePassthroughRawRequest$Outbound` instead. */
|
|
101
|
+
export type Outbound = UpdatePassthroughRawRequest$Outbound;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const UpdatePassthroughRawResponseResult$inboundSchema: z.ZodType<
|
|
106
|
+
UpdatePassthroughRawResponseResult,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type UpdatePassthroughRawResponseResult$Outbound =
|
|
113
|
+
| any
|
|
114
|
+
| string
|
|
115
|
+
| Uint8Array;
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const UpdatePassthroughRawResponseResult$outboundSchema: z.ZodType<
|
|
119
|
+
UpdatePassthroughRawResponseResult$Outbound,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
UpdatePassthroughRawResponseResult
|
|
122
|
+
> = z.union([z.any(), z.string(), b64$.zodOutbound]);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
+
*/
|
|
128
|
+
export namespace UpdatePassthroughRawResponseResult$ {
|
|
129
|
+
/** @deprecated use `UpdatePassthroughRawResponseResult$inboundSchema` instead. */
|
|
130
|
+
export const inboundSchema = UpdatePassthroughRawResponseResult$inboundSchema;
|
|
131
|
+
/** @deprecated use `UpdatePassthroughRawResponseResult$outboundSchema` instead. */
|
|
132
|
+
export const outboundSchema =
|
|
133
|
+
UpdatePassthroughRawResponseResult$outboundSchema;
|
|
134
|
+
/** @deprecated use `UpdatePassthroughRawResponseResult$Outbound` instead. */
|
|
135
|
+
export type Outbound = UpdatePassthroughRawResponseResult$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const UpdatePassthroughRawResponse$inboundSchema: z.ZodType<
|
|
140
|
+
UpdatePassthroughRawResponse,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
unknown
|
|
143
|
+
> = z.object({
|
|
144
|
+
Headers: z.record(z.array(z.string())),
|
|
145
|
+
Result: z.union([z.any(), z.string(), b64$.zodInbound]).optional(),
|
|
146
|
+
}).transform((v) => {
|
|
147
|
+
return remap$(v, {
|
|
148
|
+
"Headers": "headers",
|
|
149
|
+
"Result": "result",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export type UpdatePassthroughRawResponse$Outbound = {
|
|
155
|
+
Headers: { [k: string]: Array<string> };
|
|
156
|
+
Result?: any | string | Uint8Array | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const UpdatePassthroughRawResponse$outboundSchema: z.ZodType<
|
|
161
|
+
UpdatePassthroughRawResponse$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
UpdatePassthroughRawResponse
|
|
164
|
+
> = z.object({
|
|
165
|
+
headers: z.record(z.array(z.string())),
|
|
166
|
+
result: z.union([z.any(), z.string(), b64$.zodOutbound]).optional(),
|
|
167
|
+
}).transform((v) => {
|
|
168
|
+
return remap$(v, {
|
|
169
|
+
headers: "Headers",
|
|
170
|
+
result: "Result",
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace UpdatePassthroughRawResponse$ {
|
|
179
|
+
/** @deprecated use `UpdatePassthroughRawResponse$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = UpdatePassthroughRawResponse$inboundSchema;
|
|
181
|
+
/** @deprecated use `UpdatePassthroughRawResponse$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = UpdatePassthroughRawResponse$outboundSchema;
|
|
183
|
+
/** @deprecated use `UpdatePassthroughRawResponse$Outbound` instead. */
|
|
184
|
+
export type Outbound = UpdatePassthroughRawResponse$Outbound;
|
|
185
|
+
}
|