@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
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "2.
|
|
69
|
-
genVersion: "2.415.
|
|
68
|
+
sdkVersion: "2.5.0",
|
|
69
|
+
genVersion: "2.415.6",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 2.
|
|
71
|
+
"speakeasy-sdk/typescript 2.5.0 2.415.6 1.0 @unified-api/typescript-sdk",
|
|
72
72
|
} as const;
|
|
@@ -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 CreatePassthroughJsonRequest = {
|
|
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 CreatePassthroughJsonResponseResult =
|
|
22
|
+
| any
|
|
23
|
+
| string
|
|
24
|
+
| Uint8Array
|
|
25
|
+
| string;
|
|
26
|
+
|
|
27
|
+
export type CreatePassthroughJsonResponse = {
|
|
28
|
+
headers: { [k: string]: Array<string> };
|
|
29
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const CreatePassthroughJsonRequest$inboundSchema: z.ZodType<
|
|
34
|
+
CreatePassthroughJsonRequest,
|
|
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 CreatePassthroughJsonRequest$Outbound = {
|
|
50
|
+
RequestBody?: any | undefined;
|
|
51
|
+
connection_id: string;
|
|
52
|
+
path: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const CreatePassthroughJsonRequest$outboundSchema: z.ZodType<
|
|
57
|
+
CreatePassthroughJsonRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
CreatePassthroughJsonRequest
|
|
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 CreatePassthroughJsonRequest$ {
|
|
76
|
+
/** @deprecated use `CreatePassthroughJsonRequest$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = CreatePassthroughJsonRequest$inboundSchema;
|
|
78
|
+
/** @deprecated use `CreatePassthroughJsonRequest$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = CreatePassthroughJsonRequest$outboundSchema;
|
|
80
|
+
/** @deprecated use `CreatePassthroughJsonRequest$Outbound` instead. */
|
|
81
|
+
export type Outbound = CreatePassthroughJsonRequest$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const CreatePassthroughJsonResponseResult$inboundSchema: z.ZodType<
|
|
86
|
+
CreatePassthroughJsonResponseResult,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type CreatePassthroughJsonResponseResult$Outbound =
|
|
93
|
+
| any
|
|
94
|
+
| string
|
|
95
|
+
| Uint8Array;
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const CreatePassthroughJsonResponseResult$outboundSchema: z.ZodType<
|
|
99
|
+
CreatePassthroughJsonResponseResult$Outbound,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
CreatePassthroughJsonResponseResult
|
|
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 CreatePassthroughJsonResponseResult$ {
|
|
109
|
+
/** @deprecated use `CreatePassthroughJsonResponseResult$inboundSchema` instead. */
|
|
110
|
+
export const inboundSchema =
|
|
111
|
+
CreatePassthroughJsonResponseResult$inboundSchema;
|
|
112
|
+
/** @deprecated use `CreatePassthroughJsonResponseResult$outboundSchema` instead. */
|
|
113
|
+
export const outboundSchema =
|
|
114
|
+
CreatePassthroughJsonResponseResult$outboundSchema;
|
|
115
|
+
/** @deprecated use `CreatePassthroughJsonResponseResult$Outbound` instead. */
|
|
116
|
+
export type Outbound = CreatePassthroughJsonResponseResult$Outbound;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const CreatePassthroughJsonResponse$inboundSchema: z.ZodType<
|
|
121
|
+
CreatePassthroughJsonResponse,
|
|
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 CreatePassthroughJsonResponse$Outbound = {
|
|
136
|
+
Headers: { [k: string]: Array<string> };
|
|
137
|
+
Result?: any | string | Uint8Array | undefined;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const CreatePassthroughJsonResponse$outboundSchema: z.ZodType<
|
|
142
|
+
CreatePassthroughJsonResponse$Outbound,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
CreatePassthroughJsonResponse
|
|
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 CreatePassthroughJsonResponse$ {
|
|
160
|
+
/** @deprecated use `CreatePassthroughJsonResponse$inboundSchema` instead. */
|
|
161
|
+
export const inboundSchema = CreatePassthroughJsonResponse$inboundSchema;
|
|
162
|
+
/** @deprecated use `CreatePassthroughJsonResponse$outboundSchema` instead. */
|
|
163
|
+
export const outboundSchema = CreatePassthroughJsonResponse$outboundSchema;
|
|
164
|
+
/** @deprecated use `CreatePassthroughJsonResponse$Outbound` instead. */
|
|
165
|
+
export type Outbound = CreatePassthroughJsonResponse$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 CreatePassthroughRawRequest = {
|
|
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 CreatePassthroughRawResponseResult =
|
|
27
|
+
| any
|
|
28
|
+
| string
|
|
29
|
+
| Uint8Array
|
|
30
|
+
| string;
|
|
31
|
+
|
|
32
|
+
export type CreatePassthroughRawResponse = {
|
|
33
|
+
headers: { [k: string]: Array<string> };
|
|
34
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CreatePassthroughRawRequest$inboundSchema: z.ZodType<
|
|
39
|
+
CreatePassthroughRawRequest,
|
|
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 CreatePassthroughRawRequest$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 CreatePassthroughRawRequest$outboundSchema: z.ZodType<
|
|
72
|
+
CreatePassthroughRawRequest$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
CreatePassthroughRawRequest
|
|
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 CreatePassthroughRawRequest$ {
|
|
96
|
+
/** @deprecated use `CreatePassthroughRawRequest$inboundSchema` instead. */
|
|
97
|
+
export const inboundSchema = CreatePassthroughRawRequest$inboundSchema;
|
|
98
|
+
/** @deprecated use `CreatePassthroughRawRequest$outboundSchema` instead. */
|
|
99
|
+
export const outboundSchema = CreatePassthroughRawRequest$outboundSchema;
|
|
100
|
+
/** @deprecated use `CreatePassthroughRawRequest$Outbound` instead. */
|
|
101
|
+
export type Outbound = CreatePassthroughRawRequest$Outbound;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const CreatePassthroughRawResponseResult$inboundSchema: z.ZodType<
|
|
106
|
+
CreatePassthroughRawResponseResult,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type CreatePassthroughRawResponseResult$Outbound =
|
|
113
|
+
| any
|
|
114
|
+
| string
|
|
115
|
+
| Uint8Array;
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const CreatePassthroughRawResponseResult$outboundSchema: z.ZodType<
|
|
119
|
+
CreatePassthroughRawResponseResult$Outbound,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
CreatePassthroughRawResponseResult
|
|
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 CreatePassthroughRawResponseResult$ {
|
|
129
|
+
/** @deprecated use `CreatePassthroughRawResponseResult$inboundSchema` instead. */
|
|
130
|
+
export const inboundSchema = CreatePassthroughRawResponseResult$inboundSchema;
|
|
131
|
+
/** @deprecated use `CreatePassthroughRawResponseResult$outboundSchema` instead. */
|
|
132
|
+
export const outboundSchema =
|
|
133
|
+
CreatePassthroughRawResponseResult$outboundSchema;
|
|
134
|
+
/** @deprecated use `CreatePassthroughRawResponseResult$Outbound` instead. */
|
|
135
|
+
export type Outbound = CreatePassthroughRawResponseResult$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const CreatePassthroughRawResponse$inboundSchema: z.ZodType<
|
|
140
|
+
CreatePassthroughRawResponse,
|
|
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 CreatePassthroughRawResponse$Outbound = {
|
|
155
|
+
Headers: { [k: string]: Array<string> };
|
|
156
|
+
Result?: any | string | Uint8Array | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const CreatePassthroughRawResponse$outboundSchema: z.ZodType<
|
|
161
|
+
CreatePassthroughRawResponse$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
CreatePassthroughRawResponse
|
|
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 CreatePassthroughRawResponse$ {
|
|
179
|
+
/** @deprecated use `CreatePassthroughRawResponse$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = CreatePassthroughRawResponse$inboundSchema;
|
|
181
|
+
/** @deprecated use `CreatePassthroughRawResponse$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = CreatePassthroughRawResponse$outboundSchema;
|
|
183
|
+
/** @deprecated use `CreatePassthroughRawResponse$Outbound` instead. */
|
|
184
|
+
export type Outbound = CreatePassthroughRawResponse$Outbound;
|
|
185
|
+
}
|
|
@@ -35,7 +35,8 @@ export * from "./createkmsspace.js";
|
|
|
35
35
|
export * from "./createmartechlist.js";
|
|
36
36
|
export * from "./createmartechmember.js";
|
|
37
37
|
export * from "./createmessagingmessage.js";
|
|
38
|
-
export * from "./
|
|
38
|
+
export * from "./createpassthroughjson.js";
|
|
39
|
+
export * from "./createpassthroughraw.js";
|
|
39
40
|
export * from "./createpaymentlink.js";
|
|
40
41
|
export * from "./createpaymentpayment.js";
|
|
41
42
|
export * from "./createstoragefile.js";
|
|
@@ -191,7 +192,8 @@ export * from "./patchkmsspace.js";
|
|
|
191
192
|
export * from "./patchmartechlist.js";
|
|
192
193
|
export * from "./patchmartechmember.js";
|
|
193
194
|
export * from "./patchmessagingmessage.js";
|
|
194
|
-
export * from "./
|
|
195
|
+
export * from "./patchpassthroughjson.js";
|
|
196
|
+
export * from "./patchpassthroughraw.js";
|
|
195
197
|
export * from "./patchpaymentlink.js";
|
|
196
198
|
export * from "./patchpaymentpayment.js";
|
|
197
199
|
export * from "./patchstoragefile.js";
|
|
@@ -280,7 +282,8 @@ export * from "./updatekmsspace.js";
|
|
|
280
282
|
export * from "./updatemartechlist.js";
|
|
281
283
|
export * from "./updatemartechmember.js";
|
|
282
284
|
export * from "./updatemessagingmessage.js";
|
|
283
|
-
export * from "./
|
|
285
|
+
export * from "./updatepassthroughjson.js";
|
|
286
|
+
export * from "./updatepassthroughraw.js";
|
|
284
287
|
export * from "./updatepaymentlink.js";
|
|
285
288
|
export * from "./updatepaymentpayment.js";
|
|
286
289
|
export * from "./updatestoragefile.js";
|
|
@@ -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 ListPassthroughsRequest = {
|
|
@@ -13,6 +14,13 @@ export type ListPassthroughsRequest = {
|
|
|
13
14
|
path: string;
|
|
14
15
|
};
|
|
15
16
|
|
|
17
|
+
export type ListPassthroughsResponseResult = any | string | Uint8Array | string;
|
|
18
|
+
|
|
19
|
+
export type ListPassthroughsResponse = {
|
|
20
|
+
headers: { [k: string]: Array<string> };
|
|
21
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
16
24
|
/** @internal */
|
|
17
25
|
export const ListPassthroughsRequest$inboundSchema: z.ZodType<
|
|
18
26
|
ListPassthroughsRequest,
|
|
@@ -59,3 +67,82 @@ export namespace ListPassthroughsRequest$ {
|
|
|
59
67
|
/** @deprecated use `ListPassthroughsRequest$Outbound` instead. */
|
|
60
68
|
export type Outbound = ListPassthroughsRequest$Outbound;
|
|
61
69
|
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ListPassthroughsResponseResult$inboundSchema: z.ZodType<
|
|
73
|
+
ListPassthroughsResponseResult,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type ListPassthroughsResponseResult$Outbound = any | string | Uint8Array;
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const ListPassthroughsResponseResult$outboundSchema: z.ZodType<
|
|
83
|
+
ListPassthroughsResponseResult$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
ListPassthroughsResponseResult
|
|
86
|
+
> = z.union([z.any(), z.string(), b64$.zodOutbound]);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
+
*/
|
|
92
|
+
export namespace ListPassthroughsResponseResult$ {
|
|
93
|
+
/** @deprecated use `ListPassthroughsResponseResult$inboundSchema` instead. */
|
|
94
|
+
export const inboundSchema = ListPassthroughsResponseResult$inboundSchema;
|
|
95
|
+
/** @deprecated use `ListPassthroughsResponseResult$outboundSchema` instead. */
|
|
96
|
+
export const outboundSchema = ListPassthroughsResponseResult$outboundSchema;
|
|
97
|
+
/** @deprecated use `ListPassthroughsResponseResult$Outbound` instead. */
|
|
98
|
+
export type Outbound = ListPassthroughsResponseResult$Outbound;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const ListPassthroughsResponse$inboundSchema: z.ZodType<
|
|
103
|
+
ListPassthroughsResponse,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
unknown
|
|
106
|
+
> = z.object({
|
|
107
|
+
Headers: z.record(z.array(z.string())),
|
|
108
|
+
Result: z.union([z.any(), z.string(), b64$.zodInbound]).optional(),
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
"Headers": "headers",
|
|
112
|
+
"Result": "result",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type ListPassthroughsResponse$Outbound = {
|
|
118
|
+
Headers: { [k: string]: Array<string> };
|
|
119
|
+
Result?: any | string | Uint8Array | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const ListPassthroughsResponse$outboundSchema: z.ZodType<
|
|
124
|
+
ListPassthroughsResponse$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
ListPassthroughsResponse
|
|
127
|
+
> = z.object({
|
|
128
|
+
headers: z.record(z.array(z.string())),
|
|
129
|
+
result: z.union([z.any(), z.string(), b64$.zodOutbound]).optional(),
|
|
130
|
+
}).transform((v) => {
|
|
131
|
+
return remap$(v, {
|
|
132
|
+
headers: "Headers",
|
|
133
|
+
result: "Result",
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
+
*/
|
|
141
|
+
export namespace ListPassthroughsResponse$ {
|
|
142
|
+
/** @deprecated use `ListPassthroughsResponse$inboundSchema` instead. */
|
|
143
|
+
export const inboundSchema = ListPassthroughsResponse$inboundSchema;
|
|
144
|
+
/** @deprecated use `ListPassthroughsResponse$outboundSchema` instead. */
|
|
145
|
+
export const outboundSchema = ListPassthroughsResponse$outboundSchema;
|
|
146
|
+
/** @deprecated use `ListPassthroughsResponse$Outbound` instead. */
|
|
147
|
+
export type Outbound = ListPassthroughsResponse$Outbound;
|
|
148
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
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 PatchPassthroughJsonRequest = {
|
|
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 PatchPassthroughJsonResponseResult =
|
|
22
|
+
| any
|
|
23
|
+
| string
|
|
24
|
+
| Uint8Array
|
|
25
|
+
| string;
|
|
26
|
+
|
|
27
|
+
export type PatchPassthroughJsonResponse = {
|
|
28
|
+
headers: { [k: string]: Array<string> };
|
|
29
|
+
result?: any | string | Uint8Array | string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const PatchPassthroughJsonRequest$inboundSchema: z.ZodType<
|
|
34
|
+
PatchPassthroughJsonRequest,
|
|
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 PatchPassthroughJsonRequest$Outbound = {
|
|
50
|
+
RequestBody?: any | undefined;
|
|
51
|
+
connection_id: string;
|
|
52
|
+
path: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const PatchPassthroughJsonRequest$outboundSchema: z.ZodType<
|
|
57
|
+
PatchPassthroughJsonRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
PatchPassthroughJsonRequest
|
|
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 PatchPassthroughJsonRequest$ {
|
|
76
|
+
/** @deprecated use `PatchPassthroughJsonRequest$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = PatchPassthroughJsonRequest$inboundSchema;
|
|
78
|
+
/** @deprecated use `PatchPassthroughJsonRequest$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = PatchPassthroughJsonRequest$outboundSchema;
|
|
80
|
+
/** @deprecated use `PatchPassthroughJsonRequest$Outbound` instead. */
|
|
81
|
+
export type Outbound = PatchPassthroughJsonRequest$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const PatchPassthroughJsonResponseResult$inboundSchema: z.ZodType<
|
|
86
|
+
PatchPassthroughJsonResponseResult,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.union([z.any(), z.string(), b64$.zodInbound]);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type PatchPassthroughJsonResponseResult$Outbound =
|
|
93
|
+
| any
|
|
94
|
+
| string
|
|
95
|
+
| Uint8Array;
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const PatchPassthroughJsonResponseResult$outboundSchema: z.ZodType<
|
|
99
|
+
PatchPassthroughJsonResponseResult$Outbound,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
PatchPassthroughJsonResponseResult
|
|
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 PatchPassthroughJsonResponseResult$ {
|
|
109
|
+
/** @deprecated use `PatchPassthroughJsonResponseResult$inboundSchema` instead. */
|
|
110
|
+
export const inboundSchema = PatchPassthroughJsonResponseResult$inboundSchema;
|
|
111
|
+
/** @deprecated use `PatchPassthroughJsonResponseResult$outboundSchema` instead. */
|
|
112
|
+
export const outboundSchema =
|
|
113
|
+
PatchPassthroughJsonResponseResult$outboundSchema;
|
|
114
|
+
/** @deprecated use `PatchPassthroughJsonResponseResult$Outbound` instead. */
|
|
115
|
+
export type Outbound = PatchPassthroughJsonResponseResult$Outbound;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const PatchPassthroughJsonResponse$inboundSchema: z.ZodType<
|
|
120
|
+
PatchPassthroughJsonResponse,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
Headers: z.record(z.array(z.string())),
|
|
125
|
+
Result: z.union([z.any(), z.string(), b64$.zodInbound]).optional(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
"Headers": "headers",
|
|
129
|
+
"Result": "result",
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type PatchPassthroughJsonResponse$Outbound = {
|
|
135
|
+
Headers: { [k: string]: Array<string> };
|
|
136
|
+
Result?: any | string | Uint8Array | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const PatchPassthroughJsonResponse$outboundSchema: z.ZodType<
|
|
141
|
+
PatchPassthroughJsonResponse$Outbound,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
PatchPassthroughJsonResponse
|
|
144
|
+
> = z.object({
|
|
145
|
+
headers: z.record(z.array(z.string())),
|
|
146
|
+
result: z.union([z.any(), z.string(), b64$.zodOutbound]).optional(),
|
|
147
|
+
}).transform((v) => {
|
|
148
|
+
return remap$(v, {
|
|
149
|
+
headers: "Headers",
|
|
150
|
+
result: "Result",
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
157
|
+
*/
|
|
158
|
+
export namespace PatchPassthroughJsonResponse$ {
|
|
159
|
+
/** @deprecated use `PatchPassthroughJsonResponse$inboundSchema` instead. */
|
|
160
|
+
export const inboundSchema = PatchPassthroughJsonResponse$inboundSchema;
|
|
161
|
+
/** @deprecated use `PatchPassthroughJsonResponse$outboundSchema` instead. */
|
|
162
|
+
export const outboundSchema = PatchPassthroughJsonResponse$outboundSchema;
|
|
163
|
+
/** @deprecated use `PatchPassthroughJsonResponse$Outbound` instead. */
|
|
164
|
+
export type Outbound = PatchPassthroughJsonResponse$Outbound;
|
|
165
|
+
}
|