diff --git a/package.json b/package.json index 89d8150..161a9bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sdk", - "version": "2.0.0", + "version": "1.7.1", "private": false, "repository": "github:PipedreamHQ/pipedream-sdk-typescript", "type": "commonjs", diff --git a/reference.md b/reference.md index 4d468d2..33cd5ad 100644 --- a/reference.md +++ b/reference.md @@ -1827,7 +1827,7 @@ await client.projects.retrieveInfo(); ## Proxy -
client.proxy.get(url64, { ...params }) -> Pipedream.ProxyResponse | undefined +
client.proxy.get(url64, { ...params }) -> Record
@@ -1886,7 +1886,7 @@ await client.proxy.get("url_64", {
-
client.proxy.post(url64, { ...params }) -> Pipedream.ProxyResponse | undefined +
client.proxy.post(url64, { ...params }) -> Record
@@ -1948,7 +1948,7 @@ await client.proxy.post("url_64", {
-
client.proxy.put(url64, { ...params }) -> Pipedream.ProxyResponse | undefined +
client.proxy.put(url64, { ...params }) -> Record
@@ -2010,7 +2010,7 @@ await client.proxy.put("url_64", {
-
client.proxy.delete(url64, { ...params }) -> Pipedream.ProxyResponse | undefined +
client.proxy.delete(url64, { ...params }) -> Record
@@ -2069,7 +2069,7 @@ await client.proxy.delete("url_64", {
-
client.proxy.patch(url64, { ...params }) -> Pipedream.ProxyResponse | undefined +
client.proxy.patch(url64, { ...params }) -> Record
diff --git a/src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts b/src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts index 2cf5b6c..de2076c 100644 --- a/src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts +++ b/src/api/resources/proxy/client/requests/ProxyDeleteRequest.ts @@ -2,23 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as core from "../../../../../core/index.js"; - /** * @example * { - * url: "https://api.example.com/endpoint", * external_user_id: "external_user_id", - * account_id: "account_id", - * params: { page: "1", limit: "10" }, - * headers: { "X-Custom-Header": "value" } + * account_id: "account_id" * } */ export interface ProxyDeleteRequest { - /** - * Target URL to proxy request to - */ - url: string; /** * The external user ID for the proxy request */ @@ -27,12 +18,4 @@ export interface ProxyDeleteRequest { * The account ID to use for authentication */ account_id: string; - /** - * Query parameters to forward - */ - params?: Record; - /** - * Additional headers to include (will be prefixed with 'x-pd-proxy-') - */ - headers?: Record | undefined>; } diff --git a/src/api/resources/proxy/client/requests/ProxyGetRequest.ts b/src/api/resources/proxy/client/requests/ProxyGetRequest.ts index 23edd10..f07b0c2 100644 --- a/src/api/resources/proxy/client/requests/ProxyGetRequest.ts +++ b/src/api/resources/proxy/client/requests/ProxyGetRequest.ts @@ -2,23 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as core from "../../../../../core/index.js"; - /** * @example * { - * url: "https://api.example.com/endpoint", * external_user_id: "external_user_id", - * account_id: "account_id", - * params: { page: "1", limit: "10" }, - * headers: { "X-Custom-Header": "value" } + * account_id: "account_id" * } */ export interface ProxyGetRequest { - /** - * Target URL to proxy request to - */ - url: string; /** * The external user ID for the proxy request */ @@ -27,12 +18,4 @@ export interface ProxyGetRequest { * The account ID to use for authentication */ account_id: string; - /** - * Query parameters to forward - */ - params?: Record; - /** - * Additional headers to include (will be prefixed with 'x-pd-proxy-') - */ - headers?: Record | undefined>; } diff --git a/src/api/resources/proxy/client/requests/ProxyPatchRequest.ts b/src/api/resources/proxy/client/requests/ProxyPatchRequest.ts index a98fe67..a57496d 100644 --- a/src/api/resources/proxy/client/requests/ProxyPatchRequest.ts +++ b/src/api/resources/proxy/client/requests/ProxyPatchRequest.ts @@ -2,26 +2,17 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as core from "../../../../../core/index.js"; - /** * @example * { - * url: "https://api.example.com/endpoint", * external_user_id: "external_user_id", * account_id: "account_id", * body: { * "key": "value" - * }, - * params: { page: "1", limit: "10" }, - * headers: { "X-Custom-Header": "value" } + * } * } */ export interface ProxyPatchRequest { - /** - * Target URL to proxy request to - */ - url: string; /** * The external user ID for the proxy request */ @@ -34,12 +25,4 @@ export interface ProxyPatchRequest { * Request body to forward to the target API */ body: Record; - /** - * Query parameters to forward - */ - params?: Record; - /** - * Additional headers to include (will be prefixed with 'x-pd-proxy-') - */ - headers?: Record | undefined>; } diff --git a/src/api/resources/proxy/client/requests/ProxyPostRequest.ts b/src/api/resources/proxy/client/requests/ProxyPostRequest.ts index c9bb93c..5ef7f75 100644 --- a/src/api/resources/proxy/client/requests/ProxyPostRequest.ts +++ b/src/api/resources/proxy/client/requests/ProxyPostRequest.ts @@ -2,26 +2,17 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as core from "../../../../../core/index.js"; - /** * @example * { - * url: "https://api.example.com/endpoint", * external_user_id: "external_user_id", * account_id: "account_id", * body: { * "key": "value" - * }, - * params: { page: "1", limit: "10" }, - * headers: { "X-Custom-Header": "value" } + * } * } */ export interface ProxyPostRequest { - /** - * Target URL to proxy request to - */ - url: string; /** * The external user ID for the proxy request */ @@ -34,12 +25,4 @@ export interface ProxyPostRequest { * Request body to forward to the target API */ body: Record; - /** - * Query parameters to forward - */ - params?: Record; - /** - * Additional headers to include (will be prefixed with 'x-pd-proxy-') - */ - headers?: Record | undefined>; } diff --git a/src/api/resources/proxy/client/requests/ProxyPutRequest.ts b/src/api/resources/proxy/client/requests/ProxyPutRequest.ts index e512b37..d536b99 100644 --- a/src/api/resources/proxy/client/requests/ProxyPutRequest.ts +++ b/src/api/resources/proxy/client/requests/ProxyPutRequest.ts @@ -2,26 +2,17 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as core from "../../../../../core/index.js"; - /** * @example * { - * url: "https://api.example.com/endpoint", * external_user_id: "external_user_id", * account_id: "account_id", * body: { * "key": "value" - * }, - * params: { page: "1", limit: "10" }, - * headers: { "X-Custom-Header": "value" } + * } * } */ export interface ProxyPutRequest { - /** - * Target URL to proxy request to - */ - url: string; /** * The external user ID for the proxy request */ @@ -34,12 +25,4 @@ export interface ProxyPutRequest { * Request body to forward to the target API */ body: Record; - /** - * Query parameters to forward - */ - params?: Record; - /** - * Additional headers to include (will be prefixed with 'x-pd-proxy-') - */ - headers?: Record | undefined>; } diff --git a/src/api/types/ProxyResponse.ts b/src/api/types/ProxyResponse.ts index b089201..d2e4e32 100644 --- a/src/api/types/ProxyResponse.ts +++ b/src/api/types/ProxyResponse.ts @@ -2,4 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ -export type ProxyResponse = unknown; +/** + * The parsed response body from a proxied API request + */ +export interface ProxyResponse { + /** HTTP status code */ + status?: number; + /** Response headers */ + headers?: Record; + body?: unknown; +}