From 2b9d4e3896fcea50ab99ba93b6c1900caf56d7c2 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 24 Oct 2025 15:54:03 +0000 Subject: [PATCH 1/4] SDK regeneration --- .npmignore | 1 + package.json | 40 +-- pnpm-lock.yaml | 261 +++++++++--------- src/api/resources/accounts/client/Client.ts | 10 +- src/api/resources/actions/client/Client.ts | 27 +- .../client/requests/ActionsRetrieveRequest.ts | 12 + .../actions/client/requests/RunActionOpts.ts | 2 + .../actions/client/requests/index.ts | 1 + .../resources/appCategories/client/Client.ts | 2 +- src/api/resources/apps/client/Client.ts | 2 +- src/api/resources/components/client/Client.ts | 25 +- .../requests/ComponentsRetrieveRequest.ts | 12 + .../components/client/requests/index.ts | 1 + .../deployedTriggers/client/Client.ts | 33 ++- .../requests/DeployedTriggersListRequest.ts | 7 +- src/api/resources/fileStash/client/Client.ts | 2 +- .../client/requests/CreateOAuthTokenOpts.ts | 2 + src/api/resources/projects/client/Client.ts | 2 +- src/api/resources/tokens/client/Client.ts | 4 +- src/api/resources/triggers/client/Client.ts | 27 +- .../client/requests/DeployTriggerOpts.ts | 4 + .../requests/TriggersRetrieveRequest.ts | 12 + .../triggers/client/requests/index.ts | 1 + src/api/resources/users/client/Client.ts | 2 +- src/api/types/BackendClientOpts.ts | 2 + src/api/types/ConfigurePropOpts.ts | 2 + src/api/types/DeployTriggerResponse.ts | 2 +- src/api/types/DeployTriggerResponseData.ts | 8 - src/api/types/DeployedComponent.ts | 2 + src/api/types/Emitter.ts | 25 ++ src/api/types/EmitterType.ts | 10 + src/api/types/GetTriggerResponse.ts | 2 +- src/api/types/GetTriggerResponseData.ts | 5 - src/api/types/GetTriggersResponse.ts | 2 +- src/api/types/HttpInterface.ts | 2 +- src/api/types/ReloadPropsOpts.ts | 2 + src/api/types/TimerInterface.ts | 2 +- src/core/url/encodePathParam.ts | 18 ++ src/core/url/index.ts | 1 + .../actions/client/requests/RunActionOpts.ts | 2 + .../client/requests/CreateOAuthTokenOpts.ts | 2 + .../client/requests/DeployTriggerOpts.ts | 4 + src/serialization/types/BackendClientOpts.ts | 2 + src/serialization/types/ConfigurePropOpts.ts | 2 + .../types/DeployTriggerResponse.ts | 6 +- .../types/DeployTriggerResponseData.ts | 17 -- src/serialization/types/DeployedComponent.ts | 2 + src/serialization/types/Emitter.ts | 35 +++ src/serialization/types/EmitterType.ts | 12 + src/serialization/types/GetTriggerResponse.ts | 6 +- .../types/GetTriggerResponseData.ts | 17 -- .../types/GetTriggersResponse.ts | 6 +- src/serialization/types/HttpInterface.ts | 4 +- src/serialization/types/ReloadPropsOpts.ts | 2 + src/serialization/types/TimerInterface.ts | 4 +- src/serialization/types/index.ts | 4 +- src/version.ts | 2 +- 57 files changed, 425 insertions(+), 281 deletions(-) create mode 100644 src/api/resources/actions/client/requests/ActionsRetrieveRequest.ts create mode 100644 src/api/resources/components/client/requests/ComponentsRetrieveRequest.ts create mode 100644 src/api/resources/triggers/client/requests/TriggersRetrieveRequest.ts delete mode 100644 src/api/types/DeployTriggerResponseData.ts create mode 100644 src/api/types/Emitter.ts create mode 100644 src/api/types/EmitterType.ts delete mode 100644 src/api/types/GetTriggerResponseData.ts create mode 100644 src/core/url/encodePathParam.ts delete mode 100644 src/serialization/types/DeployTriggerResponseData.ts create mode 100644 src/serialization/types/Emitter.ts create mode 100644 src/serialization/types/EmitterType.ts delete mode 100644 src/serialization/types/GetTriggerResponseData.ts diff --git a/.npmignore b/.npmignore index b7e5ad3..c0c40ac 100644 --- a/.npmignore +++ b/.npmignore @@ -4,6 +4,7 @@ tests .gitignore .github .fernignore +.prettierrc.yml biome.json tsconfig.json yarn.lock diff --git a/package.json b/package.json index 0a5bd09..30a4111 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sdk", - "version": "2.1.0", + "version": "2.1.1", "private": false, "repository": "github:PipedreamHQ/pipedream-sdk-typescript", "type": "commonjs", @@ -10,11 +10,6 @@ "exports": { ".": { "types": "./dist/cjs/index.d.ts", - "browser": { - "types": "./dist/esm/browser/index.d.mts", - "import": "./dist/esm/browser/index.mjs", - "default": "./dist/esm/browser/index.mjs" - }, "import": { "types": "./dist/esm/index.d.mts", "default": "./dist/esm/index.mjs" @@ -25,18 +20,6 @@ }, "default": "./dist/cjs/index.js" }, - "./browser": { - "types": "./dist/esm/browser/index.d.mts", - "import": { - "types": "./dist/esm/browser/index.d.mts", - "default": "./dist/esm/browser/index.mjs" - }, - "require": { - "types": "./dist/cjs/browser/index.d.ts", - "default": "./dist/cjs/browser/index.js" - }, - "default": "./dist/esm/browser/index.mjs" - }, "./serialization": { "types": "./dist/cjs/serialization/index.d.ts", "import": { @@ -49,18 +32,6 @@ }, "default": "./dist/cjs/serialization/index.js" }, - "./server": { - "types": "./dist/cjs/index.d.ts", - "import": { - "types": "./dist/esm/index.d.mts", - "default": "./dist/esm/index.mjs" - }, - "require": { - "types": "./dist/cjs/index.d.ts", - "default": "./dist/cjs/index.js" - }, - "default": "./dist/cjs/index.js" - }, "./package.json": "./package.json" }, "files": [ @@ -71,6 +42,9 @@ ], "scripts": { "format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", + "format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", + "lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", + "lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none", "build": "pnpm build:cjs && pnpm build:esm", @@ -86,12 +60,10 @@ "vitest": "^3.2.4", "msw": "2.11.2", "@types/node": "^18.19.70", - "@biomejs/biome": "2.2.5", - "typescript": "~5.7.2" + "typescript": "~5.7.2", + "@biomejs/biome": "2.2.5" }, "browser": { - "./dist/cjs/wrapper/utils/getBaseUrl.js": "./dist/cjs/wrapper/utils/getBaseUrl.browser.js", - "./dist/esm/wrapper/utils/getBaseUrl.mjs": "./dist/esm/wrapper/utils/getBaseUrl.browser.mjs", "fs": false, "os": false, "path": false, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7318843..b6cd1ea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -311,118 +311,118 @@ packages: '@open-draft/until@2.1.0': resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} - '@rollup/rollup-android-arm-eabi@4.52.4': - resolution: {integrity: sha512-BTm2qKNnWIQ5auf4deoetINJm2JzvihvGb9R6K/ETwKLql/Bb3Eg2H1FBp1gUb4YGbydMA3jcmQTR73q7J+GAA==} + '@rollup/rollup-android-arm-eabi@4.52.5': + resolution: {integrity: sha512-8c1vW4ocv3UOMp9K+gToY5zL2XiiVw3k7f1ksf4yO1FlDFQ1C2u72iACFnSOceJFsWskc2WZNqeRhFRPzv+wtQ==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.52.4': - resolution: {integrity: sha512-P9LDQiC5vpgGFgz7GSM6dKPCiqR3XYN1WwJKA4/BUVDjHpYsf3iBEmVz62uyq20NGYbiGPR5cNHI7T1HqxNs2w==} + '@rollup/rollup-android-arm64@4.52.5': + resolution: {integrity: sha512-mQGfsIEFcu21mvqkEKKu2dYmtuSZOBMmAl5CFlPGLY94Vlcm+zWApK7F/eocsNzp8tKmbeBP8yXyAbx0XHsFNA==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.52.4': - resolution: {integrity: sha512-QRWSW+bVccAvZF6cbNZBJwAehmvG9NwfWHwMy4GbWi/BQIA/laTIktebT2ipVjNncqE6GLPxOok5hsECgAxGZg==} + '@rollup/rollup-darwin-arm64@4.52.5': + resolution: {integrity: sha512-takF3CR71mCAGA+v794QUZ0b6ZSrgJkArC+gUiG6LB6TQty9T0Mqh3m2ImRBOxS2IeYBo4lKWIieSvnEk2OQWA==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.52.4': - resolution: {integrity: sha512-hZgP05pResAkRJxL1b+7yxCnXPGsXU0fG9Yfd6dUaoGk+FhdPKCJ5L1Sumyxn8kvw8Qi5PvQ8ulenUbRjzeCTw==} + '@rollup/rollup-darwin-x64@4.52.5': + resolution: {integrity: sha512-W901Pla8Ya95WpxDn//VF9K9u2JbocwV/v75TE0YIHNTbhqUTv9w4VuQ9MaWlNOkkEfFwkdNhXgcLqPSmHy0fA==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.52.4': - resolution: {integrity: sha512-xmc30VshuBNUd58Xk4TKAEcRZHaXlV+tCxIXELiE9sQuK3kG8ZFgSPi57UBJt8/ogfhAF5Oz4ZSUBN77weM+mQ==} + '@rollup/rollup-freebsd-arm64@4.52.5': + resolution: {integrity: sha512-QofO7i7JycsYOWxe0GFqhLmF6l1TqBswJMvICnRUjqCx8b47MTo46W8AoeQwiokAx3zVryVnxtBMcGcnX12LvA==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.52.4': - resolution: {integrity: sha512-WdSLpZFjOEqNZGmHflxyifolwAiZmDQzuOzIq9L27ButpCVpD7KzTRtEG1I0wMPFyiyUdOO+4t8GvrnBLQSwpw==} + '@rollup/rollup-freebsd-x64@4.52.5': + resolution: {integrity: sha512-jr21b/99ew8ujZubPo9skbrItHEIE50WdV86cdSoRkKtmWa+DDr6fu2c/xyRT0F/WazZpam6kk7IHBerSL7LDQ==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.52.4': - resolution: {integrity: sha512-xRiOu9Of1FZ4SxVbB0iEDXc4ddIcjCv2aj03dmW8UrZIW7aIQ9jVJdLBIhxBI+MaTnGAKyvMwPwQnoOEvP7FgQ==} + '@rollup/rollup-linux-arm-gnueabihf@4.52.5': + resolution: {integrity: sha512-PsNAbcyv9CcecAUagQefwX8fQn9LQ4nZkpDboBOttmyffnInRy8R8dSg6hxxl2Re5QhHBf6FYIDhIj5v982ATQ==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.52.4': - resolution: {integrity: sha512-FbhM2p9TJAmEIEhIgzR4soUcsW49e9veAQCziwbR+XWB2zqJ12b4i/+hel9yLiD8pLncDH4fKIPIbt5238341Q==} + '@rollup/rollup-linux-arm-musleabihf@4.52.5': + resolution: {integrity: sha512-Fw4tysRutyQc/wwkmcyoqFtJhh0u31K+Q6jYjeicsGJJ7bbEq8LwPWV/w0cnzOqR2m694/Af6hpFayLJZkG2VQ==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.52.4': - resolution: {integrity: sha512-4n4gVwhPHR9q/g8lKCyz0yuaD0MvDf7dV4f9tHt0C73Mp8h38UCtSCSE6R9iBlTbXlmA8CjpsZoujhszefqueg==} + '@rollup/rollup-linux-arm64-gnu@4.52.5': + resolution: {integrity: sha512-a+3wVnAYdQClOTlyapKmyI6BLPAFYs0JM8HRpgYZQO02rMR09ZcV9LbQB+NL6sljzG38869YqThrRnfPMCDtZg==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.52.4': - resolution: {integrity: sha512-u0n17nGA0nvi/11gcZKsjkLj1QIpAuPFQbR48Subo7SmZJnGxDpspyw2kbpuoQnyK+9pwf3pAoEXerJs/8Mi9g==} + '@rollup/rollup-linux-arm64-musl@4.52.5': + resolution: {integrity: sha512-AvttBOMwO9Pcuuf7m9PkC1PUIKsfaAJ4AYhy944qeTJgQOqJYJ9oVl2nYgY7Rk0mkbsuOpCAYSs6wLYB2Xiw0Q==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-loong64-gnu@4.52.4': - resolution: {integrity: sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==} + '@rollup/rollup-linux-loong64-gnu@4.52.5': + resolution: {integrity: sha512-DkDk8pmXQV2wVrF6oq5tONK6UHLz/XcEVow4JTTerdeV1uqPeHxwcg7aFsfnSm9L+OO8WJsWotKM2JJPMWrQtA==} cpu: [loong64] os: [linux] - '@rollup/rollup-linux-ppc64-gnu@4.52.4': - resolution: {integrity: sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==} + '@rollup/rollup-linux-ppc64-gnu@4.52.5': + resolution: {integrity: sha512-W/b9ZN/U9+hPQVvlGwjzi+Wy4xdoH2I8EjaCkMvzpI7wJUs8sWJ03Rq96jRnHkSrcHTpQe8h5Tg3ZzUPGauvAw==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.52.4': - resolution: {integrity: sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==} + '@rollup/rollup-linux-riscv64-gnu@4.52.5': + resolution: {integrity: sha512-sjQLr9BW7R/ZiXnQiWPkErNfLMkkWIoCz7YMn27HldKsADEKa5WYdobaa1hmN6slu9oWQbB6/jFpJ+P2IkVrmw==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-musl@4.52.4': - resolution: {integrity: sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==} + '@rollup/rollup-linux-riscv64-musl@4.52.5': + resolution: {integrity: sha512-hq3jU/kGyjXWTvAh2awn8oHroCbrPm8JqM7RUpKjalIRWWXE01CQOf/tUNWNHjmbMHg/hmNCwc/Pz3k1T/j/Lg==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.52.4': - resolution: {integrity: sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==} + '@rollup/rollup-linux-s390x-gnu@4.52.5': + resolution: {integrity: sha512-gn8kHOrku8D4NGHMK1Y7NA7INQTRdVOntt1OCYypZPRt6skGbddska44K8iocdpxHTMMNui5oH4elPH4QOLrFQ==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.52.4': - resolution: {integrity: sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==} + '@rollup/rollup-linux-x64-gnu@4.52.5': + resolution: {integrity: sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.52.4': - resolution: {integrity: sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==} + '@rollup/rollup-linux-x64-musl@4.52.5': + resolution: {integrity: sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==} cpu: [x64] os: [linux] - '@rollup/rollup-openharmony-arm64@4.52.4': - resolution: {integrity: sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==} + '@rollup/rollup-openharmony-arm64@4.52.5': + resolution: {integrity: sha512-QoFqB6+/9Rly/RiPjaomPLmR/13cgkIGfA40LHly9zcH1S0bN2HVFYk3a1eAyHQyjs3ZJYlXvIGtcCs5tko9Cw==} cpu: [arm64] os: [openharmony] - '@rollup/rollup-win32-arm64-msvc@4.52.4': - resolution: {integrity: sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==} + '@rollup/rollup-win32-arm64-msvc@4.52.5': + resolution: {integrity: sha512-w0cDWVR6MlTstla1cIfOGyl8+qb93FlAVutcor14Gf5Md5ap5ySfQ7R9S/NjNaMLSFdUnKGEasmVnu3lCMqB7w==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.52.4': - resolution: {integrity: sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==} + '@rollup/rollup-win32-ia32-msvc@4.52.5': + resolution: {integrity: sha512-Aufdpzp7DpOTULJCuvzqcItSGDH73pF3ko/f+ckJhxQyHtp67rHw3HMNxoIdDMUITJESNE6a8uh4Lo4SLouOUg==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-gnu@4.52.4': - resolution: {integrity: sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==} + '@rollup/rollup-win32-x64-gnu@4.52.5': + resolution: {integrity: sha512-UGBUGPFp1vkj6p8wCRraqNhqwX/4kNQPS57BCFc8wYh0g94iVIW33wJtQAx3G7vrjjNtRaxiMUylM0ktp/TRSQ==} cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.52.4': - resolution: {integrity: sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==} + '@rollup/rollup-win32-x64-msvc@4.52.5': + resolution: {integrity: sha512-TAcgQh2sSkykPRWLrdyy2AiceMckNf5loITqXxFI5VuQjS5tSuw3WlwdN8qv8vzjLAUTvYaH/mVjSFpbkFbpTg==} cpu: [x64] os: [win32] - '@types/chai@5.2.2': - resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} '@types/cookie@0.6.0': resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} @@ -567,16 +567,16 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - baseline-browser-mapping@2.8.16: - resolution: {integrity: sha512-OMu3BGQ4E7P1ErFsIPpbJh0qvDudM/UuJeHgkAvfWe+0HFJCXh+t/l8L6fVLR55RI/UbKrVLnAXZSVwd9ysWYw==} + baseline-browser-mapping@2.8.19: + resolution: {integrity: sha512-zoKGUdu6vb2jd3YOq0nnhEDQVbPcHhco3UImJrv5dSkvxTc2pl2WjOPsjZXDwPDSl5eghIMuY3R6J9NDKF3KcQ==} hasBin: true braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - browserslist@4.26.3: - resolution: {integrity: sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==} + browserslist@4.27.0: + resolution: {integrity: sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true @@ -587,8 +587,8 @@ packages: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} - caniuse-lite@1.0.30001750: - resolution: {integrity: sha512-cuom0g5sdX6rw00qOoLNSFCJ9/mYIsuSOA+yzpDw8eopiFqcVwQvZHqov0vmEighRxX++cfC0Vg1G+1Iy/mSpQ==} + caniuse-lite@1.0.30001751: + resolution: {integrity: sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw==} chai@5.3.3: resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==} @@ -641,8 +641,8 @@ packages: resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} engines: {node: '>=6'} - electron-to-chromium@1.5.237: - resolution: {integrity: sha512-icUt1NvfhGLar5lSWH3tHNzablaA5js3HVHacQimfP8ViEBOQv+L7DKEuHdbTZ0SKCO1ogTJTIL1Gwk9S6Qvcg==} + electron-to-chromium@1.5.238: + resolution: {integrity: sha512-khBdc+w/Gv+cS8e/Pbnaw/FXcBUeKrRVik9IxfXtgREOWyJhR4tj43n3amkVogJ/yeQUqzkrZcFhtIxIdqmmcQ==} emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -809,8 +809,8 @@ packages: neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - node-releases@2.0.23: - resolution: {integrity: sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==} + node-releases@2.0.26: + resolution: {integrity: sha512-S2M9YimhSjBSvYnlr5/+umAnPHE++ODwt5e2Ij6FoX45HA/s4vHdkDx1eax2pAPeAOqu4s9b7ppahsyEFdVqQA==} outvariant@1.4.3: resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==} @@ -854,8 +854,8 @@ packages: rettime@0.7.0: resolution: {integrity: sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw==} - rollup@4.52.4: - resolution: {integrity: sha512-CLEVl+MnPAiKh5pl4dEWSyMTpuflgNQiLGhMv8ezD5W/qP8AKvmYpCOKRRNOh7oRKnauBZ4SyeYkMS+1VSyKwQ==} + rollup@4.52.5: + resolution: {integrity: sha512-3GuObel8h7Kqdjt0gxkEzaifHTqLVW56Y/bjN7PSQtkKr0w3V/QYSdt6QWYtd7A1xUtYQigtdUfgj1RvWVtorw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -1009,8 +1009,8 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - update-browserslist-db@1.1.3: - resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==} + update-browserslist-db@1.1.4: + resolution: {integrity: sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -1020,8 +1020,8 @@ packages: engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true - vite@7.1.10: - resolution: {integrity: sha512-CmuvUBzVJ/e3HGxhg6cYk88NGgTnBoOo7ogtfJJ0fefUWAxN/WDSUa50o+oVBxuIhO8FoEZW0j2eW7sfjs5EtA==} + vite@7.1.11: + resolution: {integrity: sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -1323,75 +1323,76 @@ snapshots: '@open-draft/until@2.1.0': {} - '@rollup/rollup-android-arm-eabi@4.52.4': + '@rollup/rollup-android-arm-eabi@4.52.5': optional: true - '@rollup/rollup-android-arm64@4.52.4': + '@rollup/rollup-android-arm64@4.52.5': optional: true - '@rollup/rollup-darwin-arm64@4.52.4': + '@rollup/rollup-darwin-arm64@4.52.5': optional: true - '@rollup/rollup-darwin-x64@4.52.4': + '@rollup/rollup-darwin-x64@4.52.5': optional: true - '@rollup/rollup-freebsd-arm64@4.52.4': + '@rollup/rollup-freebsd-arm64@4.52.5': optional: true - '@rollup/rollup-freebsd-x64@4.52.4': + '@rollup/rollup-freebsd-x64@4.52.5': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.52.4': + '@rollup/rollup-linux-arm-gnueabihf@4.52.5': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.52.4': + '@rollup/rollup-linux-arm-musleabihf@4.52.5': optional: true - '@rollup/rollup-linux-arm64-gnu@4.52.4': + '@rollup/rollup-linux-arm64-gnu@4.52.5': optional: true - '@rollup/rollup-linux-arm64-musl@4.52.4': + '@rollup/rollup-linux-arm64-musl@4.52.5': optional: true - '@rollup/rollup-linux-loong64-gnu@4.52.4': + '@rollup/rollup-linux-loong64-gnu@4.52.5': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.52.4': + '@rollup/rollup-linux-ppc64-gnu@4.52.5': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.52.4': + '@rollup/rollup-linux-riscv64-gnu@4.52.5': optional: true - '@rollup/rollup-linux-riscv64-musl@4.52.4': + '@rollup/rollup-linux-riscv64-musl@4.52.5': optional: true - '@rollup/rollup-linux-s390x-gnu@4.52.4': + '@rollup/rollup-linux-s390x-gnu@4.52.5': optional: true - '@rollup/rollup-linux-x64-gnu@4.52.4': + '@rollup/rollup-linux-x64-gnu@4.52.5': optional: true - '@rollup/rollup-linux-x64-musl@4.52.4': + '@rollup/rollup-linux-x64-musl@4.52.5': optional: true - '@rollup/rollup-openharmony-arm64@4.52.4': + '@rollup/rollup-openharmony-arm64@4.52.5': optional: true - '@rollup/rollup-win32-arm64-msvc@4.52.4': + '@rollup/rollup-win32-arm64-msvc@4.52.5': optional: true - '@rollup/rollup-win32-ia32-msvc@4.52.4': + '@rollup/rollup-win32-ia32-msvc@4.52.5': optional: true - '@rollup/rollup-win32-x64-gnu@4.52.4': + '@rollup/rollup-win32-x64-gnu@4.52.5': optional: true - '@rollup/rollup-win32-x64-msvc@4.52.4': + '@rollup/rollup-win32-x64-msvc@4.52.5': optional: true - '@types/chai@5.2.2': + '@types/chai@5.2.3': dependencies: '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 '@types/cookie@0.6.0': {} @@ -1419,20 +1420,20 @@ snapshots: '@vitest/expect@3.2.4': dependencies: - '@types/chai': 5.2.2 + '@types/chai': 5.2.3 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.3.3 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(msw@2.11.2(@types/node@18.19.130)(typescript@5.7.3))(vite@7.1.10(@types/node@18.19.130)(terser@5.44.0))': + '@vitest/mocker@3.2.4(msw@2.11.2(@types/node@18.19.130)(typescript@5.7.3))(vite@7.1.11(@types/node@18.19.130)(terser@5.44.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.19 optionalDependencies: msw: 2.11.2(@types/node@18.19.130)(typescript@5.7.3) - vite: 7.1.10(@types/node@18.19.130)(terser@5.44.0) + vite: 7.1.11(@types/node@18.19.130)(terser@5.44.0) '@vitest/pretty-format@3.2.4': dependencies: @@ -1570,25 +1571,25 @@ snapshots: assertion-error@2.0.1: {} - baseline-browser-mapping@2.8.16: {} + baseline-browser-mapping@2.8.19: {} braces@3.0.3: dependencies: fill-range: 7.1.1 - browserslist@4.26.3: + browserslist@4.27.0: dependencies: - baseline-browser-mapping: 2.8.16 - caniuse-lite: 1.0.30001750 - electron-to-chromium: 1.5.237 - node-releases: 2.0.23 - update-browserslist-db: 1.1.3(browserslist@4.26.3) + baseline-browser-mapping: 2.8.19 + caniuse-lite: 1.0.30001751 + electron-to-chromium: 1.5.238 + node-releases: 2.0.26 + update-browserslist-db: 1.1.4(browserslist@4.27.0) buffer-from@1.1.2: {} cac@6.7.14: {} - caniuse-lite@1.0.30001750: {} + caniuse-lite@1.0.30001751: {} chai@5.3.3: dependencies: @@ -1631,7 +1632,7 @@ snapshots: deep-eql@5.0.2: {} - electron-to-chromium@1.5.237: {} + electron-to-chromium@1.5.238: {} emoji-regex@8.0.0: {} @@ -1794,7 +1795,7 @@ snapshots: neo-async@2.6.2: {} - node-releases@2.0.23: {} + node-releases@2.0.26: {} outvariant@1.4.3: {} @@ -1826,32 +1827,32 @@ snapshots: rettime@0.7.0: {} - rollup@4.52.4: + rollup@4.52.5: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.52.4 - '@rollup/rollup-android-arm64': 4.52.4 - '@rollup/rollup-darwin-arm64': 4.52.4 - '@rollup/rollup-darwin-x64': 4.52.4 - '@rollup/rollup-freebsd-arm64': 4.52.4 - '@rollup/rollup-freebsd-x64': 4.52.4 - '@rollup/rollup-linux-arm-gnueabihf': 4.52.4 - '@rollup/rollup-linux-arm-musleabihf': 4.52.4 - '@rollup/rollup-linux-arm64-gnu': 4.52.4 - '@rollup/rollup-linux-arm64-musl': 4.52.4 - '@rollup/rollup-linux-loong64-gnu': 4.52.4 - '@rollup/rollup-linux-ppc64-gnu': 4.52.4 - '@rollup/rollup-linux-riscv64-gnu': 4.52.4 - '@rollup/rollup-linux-riscv64-musl': 4.52.4 - '@rollup/rollup-linux-s390x-gnu': 4.52.4 - '@rollup/rollup-linux-x64-gnu': 4.52.4 - '@rollup/rollup-linux-x64-musl': 4.52.4 - '@rollup/rollup-openharmony-arm64': 4.52.4 - '@rollup/rollup-win32-arm64-msvc': 4.52.4 - '@rollup/rollup-win32-ia32-msvc': 4.52.4 - '@rollup/rollup-win32-x64-gnu': 4.52.4 - '@rollup/rollup-win32-x64-msvc': 4.52.4 + '@rollup/rollup-android-arm-eabi': 4.52.5 + '@rollup/rollup-android-arm64': 4.52.5 + '@rollup/rollup-darwin-arm64': 4.52.5 + '@rollup/rollup-darwin-x64': 4.52.5 + '@rollup/rollup-freebsd-arm64': 4.52.5 + '@rollup/rollup-freebsd-x64': 4.52.5 + '@rollup/rollup-linux-arm-gnueabihf': 4.52.5 + '@rollup/rollup-linux-arm-musleabihf': 4.52.5 + '@rollup/rollup-linux-arm64-gnu': 4.52.5 + '@rollup/rollup-linux-arm64-musl': 4.52.5 + '@rollup/rollup-linux-loong64-gnu': 4.52.5 + '@rollup/rollup-linux-ppc64-gnu': 4.52.5 + '@rollup/rollup-linux-riscv64-gnu': 4.52.5 + '@rollup/rollup-linux-riscv64-musl': 4.52.5 + '@rollup/rollup-linux-s390x-gnu': 4.52.5 + '@rollup/rollup-linux-x64-gnu': 4.52.5 + '@rollup/rollup-linux-x64-musl': 4.52.5 + '@rollup/rollup-openharmony-arm64': 4.52.5 + '@rollup/rollup-win32-arm64-msvc': 4.52.5 + '@rollup/rollup-win32-ia32-msvc': 4.52.5 + '@rollup/rollup-win32-x64-gnu': 4.52.5 + '@rollup/rollup-win32-x64-msvc': 4.52.5 fsevents: 2.3.3 safe-buffer@5.2.1: {} @@ -1977,9 +1978,9 @@ snapshots: undici-types@5.26.5: {} - update-browserslist-db@1.1.3(browserslist@4.26.3): + update-browserslist-db@1.1.4(browserslist@4.27.0): dependencies: - browserslist: 4.26.3 + browserslist: 4.27.0 escalade: 3.2.0 picocolors: 1.1.1 @@ -1989,7 +1990,7 @@ snapshots: debug: 4.4.3 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.1.10(@types/node@18.19.130)(terser@5.44.0) + vite: 7.1.11(@types/node@18.19.130)(terser@5.44.0) transitivePeerDependencies: - '@types/node' - jiti @@ -2004,13 +2005,13 @@ snapshots: - tsx - yaml - vite@7.1.10(@types/node@18.19.130)(terser@5.44.0): + vite@7.1.11(@types/node@18.19.130)(terser@5.44.0): dependencies: esbuild: 0.25.11 fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.52.4 + rollup: 4.52.5 tinyglobby: 0.2.15 optionalDependencies: '@types/node': 18.19.130 @@ -2019,9 +2020,9 @@ snapshots: vitest@3.2.4(@types/node@18.19.130)(msw@2.11.2(@types/node@18.19.130)(typescript@5.7.3))(terser@5.44.0): dependencies: - '@types/chai': 5.2.2 + '@types/chai': 5.2.3 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.11.2(@types/node@18.19.130)(typescript@5.7.3))(vite@7.1.10(@types/node@18.19.130)(terser@5.44.0)) + '@vitest/mocker': 3.2.4(msw@2.11.2(@types/node@18.19.130)(typescript@5.7.3))(vite@7.1.11(@types/node@18.19.130)(terser@5.44.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -2039,7 +2040,7 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.10(@types/node@18.19.130)(terser@5.44.0) + vite: 7.1.11(@types/node@18.19.130)(terser@5.44.0) vite-node: 3.2.4(@types/node@18.19.130)(terser@5.44.0) why-is-node-running: 2.3.0 optionalDependencies: @@ -2075,7 +2076,7 @@ snapshots: '@webassemblyjs/wasm-parser': 1.14.1 acorn: 8.15.0 acorn-import-phases: 1.0.4(acorn@8.15.0) - browserslist: 4.26.3 + browserslist: 4.27.0 chrome-trace-event: 1.0.4 enhanced-resolve: 5.18.3 es-module-lexer: 1.7.0 diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts index 8f1b967..5020985 100644 --- a/src/api/resources/accounts/client/Client.ts +++ b/src/api/resources/accounts/client/Client.ts @@ -86,7 +86,7 @@ export class Accounts { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/accounts`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/accounts`, ), method: "GET", headers: _headers, @@ -203,7 +203,7 @@ export class Accounts { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/accounts`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/accounts`, ), method: "POST", headers: _headers, @@ -309,7 +309,7 @@ export class Accounts { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/accounts/${encodeURIComponent(accountId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/accounts/${core.url.encodePathParam(accountId)}`, ), method: "GET", headers: _headers, @@ -395,7 +395,7 @@ export class Accounts { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/accounts/${encodeURIComponent(accountId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/accounts/${core.url.encodePathParam(accountId)}`, ), method: "DELETE", headers: _headers, @@ -472,7 +472,7 @@ export class Accounts { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/apps/${encodeURIComponent(appId)}/accounts`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/apps/${core.url.encodePathParam(appId)}/accounts`, ), method: "DELETE", headers: _headers, diff --git a/src/api/resources/actions/client/Client.ts b/src/api/resources/actions/client/Client.ts index b0bebf0..7eda762 100644 --- a/src/api/resources/actions/client/Client.ts +++ b/src/api/resources/actions/client/Client.ts @@ -78,7 +78,7 @@ export class Actions { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/actions`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/actions`, ), method: "GET", headers: _headers, @@ -148,24 +148,35 @@ export class Actions { * Get detailed configuration for a specific action by its key * * @param {string} componentId - The key that uniquely identifies the component (e.g., 'slack-send-message') + * @param {Pipedream.ActionsRetrieveRequest} request * @param {Actions.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Pipedream.TooManyRequestsError} * * @example - * await client.actions.retrieve("component_id") + * await client.actions.retrieve("component_id", { + * version: "1.2.3" + * }) */ public retrieve( componentId: string, + request: Pipedream.ActionsRetrieveRequest = {}, requestOptions?: Actions.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(componentId, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__retrieve(componentId, request, requestOptions)); } private async __retrieve( componentId: string, + request: Pipedream.ActionsRetrieveRequest = {}, requestOptions?: Actions.RequestOptions, ): Promise> { + const { version } = request; + const _queryParams: Record = {}; + if (version != null) { + _queryParams.version = version; + } + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, mergeOnlyDefinedHeaders({ @@ -179,11 +190,11 @@ export class Actions { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/actions/${encodeURIComponent(componentId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/actions/${core.url.encodePathParam(componentId)}`, ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -272,7 +283,7 @@ export class Actions { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/actions/configure`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/actions/configure`, ), method: "POST", headers: _headers, @@ -370,7 +381,7 @@ export class Actions { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/actions/props`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/actions/props`, ), method: "POST", headers: _headers, @@ -468,7 +479,7 @@ export class Actions { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/actions/run`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/actions/run`, ), method: "POST", headers: _headers, diff --git a/src/api/resources/actions/client/requests/ActionsRetrieveRequest.ts b/src/api/resources/actions/client/requests/ActionsRetrieveRequest.ts new file mode 100644 index 0000000..092050d --- /dev/null +++ b/src/api/resources/actions/client/requests/ActionsRetrieveRequest.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * version: "1.2.3" + * } + */ +export interface ActionsRetrieveRequest { + /** Optional semantic version of the component to retrieve (for example '1.0.0') */ + version?: string; +} diff --git a/src/api/resources/actions/client/requests/RunActionOpts.ts b/src/api/resources/actions/client/requests/RunActionOpts.ts index 62d8c71..e72bd7b 100644 --- a/src/api/resources/actions/client/requests/RunActionOpts.ts +++ b/src/api/resources/actions/client/requests/RunActionOpts.ts @@ -12,6 +12,8 @@ import type * as Pipedream from "../../../../index.js"; export interface RunActionOpts { /** The action component ID */ id: string; + /** Optional action component version (in SemVer format, for example '1.0.0'), defaults to latest */ + version?: string; /** The external user ID */ externalUserId: string; configuredProps?: Pipedream.ConfiguredProps; diff --git a/src/api/resources/actions/client/requests/index.ts b/src/api/resources/actions/client/requests/index.ts index c5be19b..89e2dfe 100644 --- a/src/api/resources/actions/client/requests/index.ts +++ b/src/api/resources/actions/client/requests/index.ts @@ -1,2 +1,3 @@ export type { ActionsListRequest } from "./ActionsListRequest.js"; +export type { ActionsRetrieveRequest } from "./ActionsRetrieveRequest.js"; export type { RunActionOpts } from "./RunActionOpts.js"; diff --git a/src/api/resources/appCategories/client/Client.ts b/src/api/resources/appCategories/client/Client.ts index c53c0ef..c7db14c 100644 --- a/src/api/resources/appCategories/client/Client.ts +++ b/src/api/resources/appCategories/client/Client.ts @@ -133,7 +133,7 @@ export class AppCategories { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/app_categories/${encodeURIComponent(id)}`, + `v1/connect/app_categories/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts index 1cf5069..2598a5f 100644 --- a/src/api/resources/apps/client/Client.ts +++ b/src/api/resources/apps/client/Client.ts @@ -183,7 +183,7 @@ export class Apps { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/apps/${encodeURIComponent(appId)}`, + `v1/connect/apps/${core.url.encodePathParam(appId)}`, ), method: "GET", headers: _headers, diff --git a/src/api/resources/components/client/Client.ts b/src/api/resources/components/client/Client.ts index 5f6a556..baf723e 100644 --- a/src/api/resources/components/client/Client.ts +++ b/src/api/resources/components/client/Client.ts @@ -85,7 +85,7 @@ export class Components { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/components`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/components`, ), method: "GET", headers: _headers, @@ -155,24 +155,35 @@ export class Components { * Get detailed configuration for a specific component by its key * * @param {string} componentId - The key that uniquely identifies the component (e.g., 'slack-send-message') + * @param {Pipedream.ComponentsRetrieveRequest} request * @param {Components.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Pipedream.TooManyRequestsError} * * @example - * await client.components.retrieve("component_id") + * await client.components.retrieve("component_id", { + * version: "1.2.3" + * }) */ public retrieve( componentId: string, + request: Pipedream.ComponentsRetrieveRequest = {}, requestOptions?: Components.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(componentId, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__retrieve(componentId, request, requestOptions)); } private async __retrieve( componentId: string, + request: Pipedream.ComponentsRetrieveRequest = {}, requestOptions?: Components.RequestOptions, ): Promise> { + const { version } = request; + const _queryParams: Record = {}; + if (version != null) { + _queryParams.version = version; + } + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, mergeOnlyDefinedHeaders({ @@ -186,11 +197,11 @@ export class Components { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/components/${encodeURIComponent(componentId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/components/${core.url.encodePathParam(componentId)}`, ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -279,7 +290,7 @@ export class Components { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/components/configure`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/components/configure`, ), method: "POST", headers: _headers, @@ -377,7 +388,7 @@ export class Components { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/components/props`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/components/props`, ), method: "POST", headers: _headers, diff --git a/src/api/resources/components/client/requests/ComponentsRetrieveRequest.ts b/src/api/resources/components/client/requests/ComponentsRetrieveRequest.ts new file mode 100644 index 0000000..8fdd3d7 --- /dev/null +++ b/src/api/resources/components/client/requests/ComponentsRetrieveRequest.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * version: "1.2.3" + * } + */ +export interface ComponentsRetrieveRequest { + /** Optional semantic version of the component to retrieve (for example '1.0.0') */ + version?: string; +} diff --git a/src/api/resources/components/client/requests/index.ts b/src/api/resources/components/client/requests/index.ts index cf872c4..ce00c15 100644 --- a/src/api/resources/components/client/requests/index.ts +++ b/src/api/resources/components/client/requests/index.ts @@ -1 +1,2 @@ export type { ComponentsListRequest } from "./ComponentsListRequest.js"; +export type { ComponentsRetrieveRequest } from "./ComponentsRetrieveRequest.js"; diff --git a/src/api/resources/deployedTriggers/client/Client.ts b/src/api/resources/deployedTriggers/client/Client.ts index 8214c4d..dd2e0be 100644 --- a/src/api/resources/deployedTriggers/client/Client.ts +++ b/src/api/resources/deployedTriggers/client/Client.ts @@ -36,18 +36,19 @@ export class DeployedTriggers { * after: "after", * before: "before", * limit: 1, - * externalUserId: "external_user_id" + * externalUserId: "external_user_id", + * emitterType: "email" * }) */ public async list( request: Pipedream.DeployedTriggersListRequest, requestOptions?: DeployedTriggers.RequestOptions, - ): Promise> { + ): Promise> { const list = core.HttpResponsePromise.interceptFunction( async ( request: Pipedream.DeployedTriggersListRequest, ): Promise> => { - const { after, before, limit, externalUserId } = request; + const { after, before, limit, externalUserId, emitterType } = request; const _queryParams: Record = {}; if (after != null) { _queryParams.after = after; @@ -59,6 +60,12 @@ export class DeployedTriggers { _queryParams.limit = limit.toString(); } _queryParams.external_user_id = externalUserId; + if (emitterType != null) { + _queryParams.emitter_type = serializers.EmitterType.jsonOrThrow(emitterType, { + unrecognizedObjectKeys: "strip", + omitUndefined: true, + }); + } const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, mergeOnlyDefinedHeaders({ @@ -72,7 +79,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers`, ), method: "GET", headers: _headers, @@ -125,7 +132,7 @@ export class DeployedTriggers { }, ); const dataWithRawResponse = await list(request).withRawResponse(); - return new core.Pageable({ + return new core.Pageable({ response: dataWithRawResponse.data, rawResponse: dataWithRawResponse.rawResponse, hasNextPage: (response) => @@ -181,7 +188,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}`, ), method: "GET", headers: _headers, @@ -278,7 +285,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}`, ), method: "PUT", headers: _headers, @@ -386,7 +393,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}`, ), method: "DELETE", headers: _headers, @@ -479,7 +486,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}/events`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}/events`, ), method: "GET", headers: _headers, @@ -576,7 +583,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}/pipelines`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}/pipelines`, ), method: "GET", headers: _headers, @@ -674,7 +681,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}/pipelines`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}/pipelines`, ), method: "PUT", headers: _headers, @@ -777,7 +784,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}/webhooks`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}/webhooks`, ), method: "GET", headers: _headers, @@ -875,7 +882,7 @@ export class DeployedTriggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/deployed-triggers/${encodeURIComponent(triggerId)}/webhooks`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/deployed-triggers/${core.url.encodePathParam(triggerId)}/webhooks`, ), method: "PUT", headers: _headers, diff --git a/src/api/resources/deployedTriggers/client/requests/DeployedTriggersListRequest.ts b/src/api/resources/deployedTriggers/client/requests/DeployedTriggersListRequest.ts index 2102867..bb190f8 100644 --- a/src/api/resources/deployedTriggers/client/requests/DeployedTriggersListRequest.ts +++ b/src/api/resources/deployedTriggers/client/requests/DeployedTriggersListRequest.ts @@ -1,12 +1,15 @@ // This file was auto-generated by Fern from our API Definition. +import type * as Pipedream from "../../../../index.js"; + /** * @example * { * after: "after", * before: "before", * limit: 1, - * externalUserId: "external_user_id" + * externalUserId: "external_user_id", + * emitterType: "email" * } */ export interface DeployedTriggersListRequest { @@ -18,4 +21,6 @@ export interface DeployedTriggersListRequest { limit?: number; /** Your end user ID, for whom you deployed the trigger */ externalUserId: string; + /** Filter deployed triggers by emitter type (defaults to 'source' if not provided) */ + emitterType?: Pipedream.EmitterType; } diff --git a/src/api/resources/fileStash/client/Client.ts b/src/api/resources/fileStash/client/Client.ts index ac8825c..6031153 100644 --- a/src/api/resources/fileStash/client/Client.ts +++ b/src/api/resources/fileStash/client/Client.ts @@ -53,7 +53,7 @@ export class FileStash { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/file_stash/download`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/file_stash/download`, ), method: "GET", headers: _headers, diff --git a/src/api/resources/oauthTokens/client/requests/CreateOAuthTokenOpts.ts b/src/api/resources/oauthTokens/client/requests/CreateOAuthTokenOpts.ts index 6544889..ba809f1 100644 --- a/src/api/resources/oauthTokens/client/requests/CreateOAuthTokenOpts.ts +++ b/src/api/resources/oauthTokens/client/requests/CreateOAuthTokenOpts.ts @@ -10,4 +10,6 @@ export interface CreateOAuthTokenOpts { clientId: string; clientSecret: string; + /** Optional space-separated scopes for the access token. Defaults to '*'. */ + scope?: string; } diff --git a/src/api/resources/projects/client/Client.ts b/src/api/resources/projects/client/Client.ts index dfe49d1..0e68abc 100644 --- a/src/api/resources/projects/client/Client.ts +++ b/src/api/resources/projects/client/Client.ts @@ -55,7 +55,7 @@ export class Projects { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/projects/info`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/projects/info`, ), method: "GET", headers: _headers, diff --git a/src/api/resources/tokens/client/Client.ts b/src/api/resources/tokens/client/Client.ts index b36b2b1..1515718 100644 --- a/src/api/resources/tokens/client/Client.ts +++ b/src/api/resources/tokens/client/Client.ts @@ -60,7 +60,7 @@ export class Tokens { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/tokens`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/tokens`, ), method: "POST", headers: _headers, @@ -168,7 +168,7 @@ export class Tokens { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/tokens/${encodeURIComponent(serializers.ConnectToken.jsonOrThrow(ctok, { omitUndefined: true }))}/validate`, + `v1/connect/tokens/${core.url.encodePathParam(serializers.ConnectToken.jsonOrThrow(ctok, { omitUndefined: true }))}/validate`, ), method: "GET", headers: _headers, diff --git a/src/api/resources/triggers/client/Client.ts b/src/api/resources/triggers/client/Client.ts index af6cfc4..18ea753 100644 --- a/src/api/resources/triggers/client/Client.ts +++ b/src/api/resources/triggers/client/Client.ts @@ -78,7 +78,7 @@ export class Triggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/triggers`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/triggers`, ), method: "GET", headers: _headers, @@ -148,24 +148,35 @@ export class Triggers { * Get detailed configuration for a specific trigger by its key * * @param {string} componentId - The key that uniquely identifies the component (e.g., 'slack-send-message') + * @param {Pipedream.TriggersRetrieveRequest} request * @param {Triggers.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Pipedream.TooManyRequestsError} * * @example - * await client.triggers.retrieve("component_id") + * await client.triggers.retrieve("component_id", { + * version: "1.2.3" + * }) */ public retrieve( componentId: string, + request: Pipedream.TriggersRetrieveRequest = {}, requestOptions?: Triggers.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(componentId, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__retrieve(componentId, request, requestOptions)); } private async __retrieve( componentId: string, + request: Pipedream.TriggersRetrieveRequest = {}, requestOptions?: Triggers.RequestOptions, ): Promise> { + const { version } = request; + const _queryParams: Record = {}; + if (version != null) { + _queryParams.version = version; + } + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( this._options?.headers, mergeOnlyDefinedHeaders({ @@ -179,11 +190,11 @@ export class Triggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/triggers/${encodeURIComponent(componentId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/triggers/${core.url.encodePathParam(componentId)}`, ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -272,7 +283,7 @@ export class Triggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/triggers/configure`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/triggers/configure`, ), method: "POST", headers: _headers, @@ -370,7 +381,7 @@ export class Triggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/triggers/props`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/triggers/props`, ), method: "POST", headers: _headers, @@ -468,7 +479,7 @@ export class Triggers { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/triggers/deploy`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/triggers/deploy`, ), method: "POST", headers: _headers, diff --git a/src/api/resources/triggers/client/requests/DeployTriggerOpts.ts b/src/api/resources/triggers/client/requests/DeployTriggerOpts.ts index 71fbc39..6f864a9 100644 --- a/src/api/resources/triggers/client/requests/DeployTriggerOpts.ts +++ b/src/api/resources/triggers/client/requests/DeployTriggerOpts.ts @@ -12,11 +12,15 @@ import type * as Pipedream from "../../../../index.js"; export interface DeployTriggerOpts { /** The trigger component ID */ id: string; + /** Optional trigger component version (in SemVer format, for example '1.0.0'), defaults to latest */ + version?: string; /** The external user ID */ externalUserId: string; configuredProps?: Pipedream.ConfiguredProps; /** The ID for dynamic props */ dynamicPropsId?: string; + /** Optional ID of a workflow to receive trigger events */ + workflowId?: string; /** Optional webhook URL to receive trigger events */ webhookUrl?: string; } diff --git a/src/api/resources/triggers/client/requests/TriggersRetrieveRequest.ts b/src/api/resources/triggers/client/requests/TriggersRetrieveRequest.ts new file mode 100644 index 0000000..0cd0f3e --- /dev/null +++ b/src/api/resources/triggers/client/requests/TriggersRetrieveRequest.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * version: "1.2.3" + * } + */ +export interface TriggersRetrieveRequest { + /** Optional semantic version of the component to retrieve (for example '1.0.0') */ + version?: string; +} diff --git a/src/api/resources/triggers/client/requests/index.ts b/src/api/resources/triggers/client/requests/index.ts index 66cfb49..8ebeb47 100644 --- a/src/api/resources/triggers/client/requests/index.ts +++ b/src/api/resources/triggers/client/requests/index.ts @@ -1,2 +1,3 @@ export type { DeployTriggerOpts } from "./DeployTriggerOpts.js"; export type { TriggersListRequest } from "./TriggersListRequest.js"; +export type { TriggersRetrieveRequest } from "./TriggersRetrieveRequest.js"; diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 43844f3..c4a16e0 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -57,7 +57,7 @@ export class Users { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.PipedreamEnvironment.Prod, - `v1/connect/${encodeURIComponent(this._options.projectId)}/users/${encodeURIComponent(externalUserId)}`, + `v1/connect/${core.url.encodePathParam(this._options.projectId)}/users/${core.url.encodePathParam(externalUserId)}`, ), method: "DELETE", headers: _headers, diff --git a/src/api/types/BackendClientOpts.ts b/src/api/types/BackendClientOpts.ts index 7b1920a..e7fe4cf 100644 --- a/src/api/types/BackendClientOpts.ts +++ b/src/api/types/BackendClientOpts.ts @@ -10,4 +10,6 @@ export interface BackendClientOpts { clientSecret?: string; /** The API URL to use */ apiUrl?: string; + /** Optional space-separated scopes for the access token. Defaults to '*'. */ + scope?: string; } diff --git a/src/api/types/ConfigurePropOpts.ts b/src/api/types/ConfigurePropOpts.ts index d8041eb..aa88f9f 100644 --- a/src/api/types/ConfigurePropOpts.ts +++ b/src/api/types/ConfigurePropOpts.ts @@ -8,6 +8,8 @@ import type * as Pipedream from "../index.js"; export interface ConfigurePropOpts { /** The component ID */ id: string; + /** Optional component version (in SemVer format, for example '1.0.0'), defaults to latest */ + version?: string; /** The external user ID */ externalUserId: string; /** The name of the prop to configure */ diff --git a/src/api/types/DeployTriggerResponse.ts b/src/api/types/DeployTriggerResponse.ts index 66a2ea8..511b11e 100644 --- a/src/api/types/DeployTriggerResponse.ts +++ b/src/api/types/DeployTriggerResponse.ts @@ -6,5 +6,5 @@ import type * as Pipedream from "../index.js"; * Response received after deploying a trigger */ export interface DeployTriggerResponse { - data: Pipedream.DeployTriggerResponseData; + data: Pipedream.Emitter; } diff --git a/src/api/types/DeployTriggerResponseData.ts b/src/api/types/DeployTriggerResponseData.ts deleted file mode 100644 index d736aa1..0000000 --- a/src/api/types/DeployTriggerResponseData.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Pipedream from "../index.js"; - -export type DeployTriggerResponseData = - | Pipedream.DeployedComponent - | Pipedream.HttpInterface - | Pipedream.TimerInterface; diff --git a/src/api/types/DeployedComponent.ts b/src/api/types/DeployedComponent.ts index e1e6e98..c257a87 100644 --- a/src/api/types/DeployedComponent.ts +++ b/src/api/types/DeployedComponent.ts @@ -12,6 +12,8 @@ export interface DeployedComponent { ownerId: string; /** The ID of the component that was deployed */ componentId: string; + /** The component key (name) that was deployed */ + componentKey?: string; /** The configurable properties of the component */ configurableProps: Pipedream.ConfigurableProp[]; configuredProps: Pipedream.ConfiguredProps; diff --git a/src/api/types/Emitter.ts b/src/api/types/Emitter.ts new file mode 100644 index 0000000..6307cb7 --- /dev/null +++ b/src/api/types/Emitter.ts @@ -0,0 +1,25 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Pipedream from "../index.js"; + +/** + * A component/interface that emits events + */ +export type Emitter = + | Pipedream.Emitter.DeployedComponent + | Pipedream.Emitter.HttpInterface + | Pipedream.Emitter.TimerInterface; + +export namespace Emitter { + export interface DeployedComponent extends Pipedream.DeployedComponent { + type: "DeployedComponent"; + } + + export interface HttpInterface extends Pipedream.HttpInterface { + type: "HttpInterface"; + } + + export interface TimerInterface extends Pipedream.TimerInterface { + type: "TimerInterface"; + } +} diff --git a/src/api/types/EmitterType.ts b/src/api/types/EmitterType.ts new file mode 100644 index 0000000..d7bc316 --- /dev/null +++ b/src/api/types/EmitterType.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +/** The type of the event emitting interface */ +export const EmitterType = { + Email: "email", + Http: "http", + Source: "source", + Timer: "timer", +} as const; +export type EmitterType = (typeof EmitterType)[keyof typeof EmitterType]; diff --git a/src/api/types/GetTriggerResponse.ts b/src/api/types/GetTriggerResponse.ts index 24894eb..f724e5b 100644 --- a/src/api/types/GetTriggerResponse.ts +++ b/src/api/types/GetTriggerResponse.ts @@ -6,5 +6,5 @@ import type * as Pipedream from "../index.js"; * Response received when retrieving a deployed trigger */ export interface GetTriggerResponse { - data: Pipedream.GetTriggerResponseData; + data: Pipedream.Emitter; } diff --git a/src/api/types/GetTriggerResponseData.ts b/src/api/types/GetTriggerResponseData.ts deleted file mode 100644 index 9e94fe9..0000000 --- a/src/api/types/GetTriggerResponseData.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Pipedream from "../index.js"; - -export type GetTriggerResponseData = Pipedream.DeployedComponent | Pipedream.HttpInterface | Pipedream.TimerInterface; diff --git a/src/api/types/GetTriggersResponse.ts b/src/api/types/GetTriggersResponse.ts index b07b1cf..98a8446 100644 --- a/src/api/types/GetTriggersResponse.ts +++ b/src/api/types/GetTriggersResponse.ts @@ -6,6 +6,6 @@ import type * as Pipedream from "../index.js"; * Response received when listing deployed triggers */ export interface GetTriggersResponse { - data: Pipedream.DeployedComponent[]; + data: Pipedream.Emitter[]; pageInfo: Pipedream.PageInfo; } diff --git a/src/api/types/HttpInterface.ts b/src/api/types/HttpInterface.ts index 7d70b0c..e797022 100644 --- a/src/api/types/HttpInterface.ts +++ b/src/api/types/HttpInterface.ts @@ -12,5 +12,5 @@ export interface HttpInterface { /** The timestamp when the HTTP interface was created (epoch milliseconds) */ createdAt: number; /** The timestamp when the HTTP interface was last updated (epoch milliseconds) */ - updatedAt?: number; + updatedAt: number; } diff --git a/src/api/types/ReloadPropsOpts.ts b/src/api/types/ReloadPropsOpts.ts index d81534d..cf3cb42 100644 --- a/src/api/types/ReloadPropsOpts.ts +++ b/src/api/types/ReloadPropsOpts.ts @@ -8,6 +8,8 @@ import type * as Pipedream from "../index.js"; export interface ReloadPropsOpts { /** The component ID */ id: string; + /** Optional component version (in SemVer format, for example '1.0.0'), defaults to latest */ + version?: string; /** The external user ID */ externalUserId: string; /** Whether this operation should block until completion */ diff --git a/src/api/types/TimerInterface.ts b/src/api/types/TimerInterface.ts index 832d2c1..ef1c84f 100644 --- a/src/api/types/TimerInterface.ts +++ b/src/api/types/TimerInterface.ts @@ -13,5 +13,5 @@ export interface TimerInterface { /** The timestamp when the timer interface was created (epoch milliseconds) */ createdAt: number; /** The timestamp when the timer interface was last updated (epoch milliseconds) */ - updatedAt?: number; + updatedAt: number; } diff --git a/src/core/url/encodePathParam.ts b/src/core/url/encodePathParam.ts new file mode 100644 index 0000000..19b9012 --- /dev/null +++ b/src/core/url/encodePathParam.ts @@ -0,0 +1,18 @@ +export function encodePathParam(param: unknown): string { + if (param === null) { + return "null"; + } + const typeofParam = typeof param; + switch (typeofParam) { + case "undefined": + return "undefined"; + case "string": + case "number": + case "boolean": + break; + default: + param = String(param); + break; + } + return encodeURIComponent(param as string | number | boolean); +} diff --git a/src/core/url/index.ts b/src/core/url/index.ts index ed5aa0f..f2e0fa2 100644 --- a/src/core/url/index.ts +++ b/src/core/url/index.ts @@ -1,2 +1,3 @@ +export { encodePathParam } from "./encodePathParam.js"; export { join } from "./join.js"; export { toQueryString } from "./qs.js"; diff --git a/src/serialization/resources/actions/client/requests/RunActionOpts.ts b/src/serialization/resources/actions/client/requests/RunActionOpts.ts index 25ec811..7c18bfa 100644 --- a/src/serialization/resources/actions/client/requests/RunActionOpts.ts +++ b/src/serialization/resources/actions/client/requests/RunActionOpts.ts @@ -9,6 +9,7 @@ import { RunActionOptsStashId } from "../../../../types/RunActionOptsStashId.js" export const RunActionOpts: core.serialization.Schema = core.serialization.object({ id: core.serialization.string(), + version: core.serialization.string().optional(), externalUserId: core.serialization.property("external_user_id", core.serialization.string()), configuredProps: core.serialization.property("configured_props", ConfiguredProps.optional()), dynamicPropsId: core.serialization.property("dynamic_props_id", core.serialization.string().optional()), @@ -18,6 +19,7 @@ export const RunActionOpts: core.serialization.Schema = core.serialization.object({ clientId: core.serialization.property("client_id", core.serialization.string()), clientSecret: core.serialization.property("client_secret", core.serialization.string()), + scope: core.serialization.string().optional(), }); export declare namespace CreateOAuthTokenOpts { export interface Raw { client_id: string; client_secret: string; + scope?: string | null; } } diff --git a/src/serialization/resources/triggers/client/requests/DeployTriggerOpts.ts b/src/serialization/resources/triggers/client/requests/DeployTriggerOpts.ts index d7ccf3b..a97c6dd 100644 --- a/src/serialization/resources/triggers/client/requests/DeployTriggerOpts.ts +++ b/src/serialization/resources/triggers/client/requests/DeployTriggerOpts.ts @@ -10,18 +10,22 @@ export const DeployTriggerOpts: core.serialization.Schema< Pipedream.DeployTriggerOpts > = core.serialization.object({ id: core.serialization.string(), + version: core.serialization.string().optional(), externalUserId: core.serialization.property("external_user_id", core.serialization.string()), configuredProps: core.serialization.property("configured_props", ConfiguredProps.optional()), dynamicPropsId: core.serialization.property("dynamic_props_id", core.serialization.string().optional()), + workflowId: core.serialization.property("workflow_id", core.serialization.string().optional()), webhookUrl: core.serialization.property("webhook_url", core.serialization.string().optional()), }); export declare namespace DeployTriggerOpts { export interface Raw { id: string; + version?: string | null; external_user_id: string; configured_props?: ConfiguredProps.Raw | null; dynamic_props_id?: string | null; + workflow_id?: string | null; webhook_url?: string | null; } } diff --git a/src/serialization/types/BackendClientOpts.ts b/src/serialization/types/BackendClientOpts.ts index 254aaa8..6383a3c 100644 --- a/src/serialization/types/BackendClientOpts.ts +++ b/src/serialization/types/BackendClientOpts.ts @@ -11,6 +11,7 @@ export const BackendClientOpts: core.serialization.ObjectSchema< clientId: core.serialization.property("client_id", core.serialization.string().optional()), clientSecret: core.serialization.property("client_secret", core.serialization.string().optional()), apiUrl: core.serialization.property("api_url", core.serialization.string().optional()), + scope: core.serialization.string().optional(), }); export declare namespace BackendClientOpts { @@ -18,5 +19,6 @@ export declare namespace BackendClientOpts { client_id?: string | null; client_secret?: string | null; api_url?: string | null; + scope?: string | null; } } diff --git a/src/serialization/types/ConfigurePropOpts.ts b/src/serialization/types/ConfigurePropOpts.ts index 2f45221..911d02d 100644 --- a/src/serialization/types/ConfigurePropOpts.ts +++ b/src/serialization/types/ConfigurePropOpts.ts @@ -10,6 +10,7 @@ export const ConfigurePropOpts: core.serialization.ObjectSchema< Pipedream.ConfigurePropOpts > = core.serialization.object({ id: core.serialization.string(), + version: core.serialization.string().optional(), externalUserId: core.serialization.property("external_user_id", core.serialization.string()), propName: core.serialization.property("prop_name", core.serialization.string()), blocking: core.serialization.boolean().optional(), @@ -26,6 +27,7 @@ export const ConfigurePropOpts: core.serialization.ObjectSchema< export declare namespace ConfigurePropOpts { export interface Raw { id: string; + version?: string | null; external_user_id: string; prop_name: string; blocking?: boolean | null; diff --git a/src/serialization/types/DeployTriggerResponse.ts b/src/serialization/types/DeployTriggerResponse.ts index 2986d62..469aff2 100644 --- a/src/serialization/types/DeployTriggerResponse.ts +++ b/src/serialization/types/DeployTriggerResponse.ts @@ -3,17 +3,17 @@ import type * as Pipedream from "../../api/index.js"; import * as core from "../../core/index.js"; import type * as serializers from "../index.js"; -import { DeployTriggerResponseData } from "./DeployTriggerResponseData.js"; +import { Emitter } from "./Emitter.js"; export const DeployTriggerResponse: core.serialization.ObjectSchema< serializers.DeployTriggerResponse.Raw, Pipedream.DeployTriggerResponse > = core.serialization.object({ - data: DeployTriggerResponseData, + data: Emitter, }); export declare namespace DeployTriggerResponse { export interface Raw { - data: DeployTriggerResponseData.Raw; + data: Emitter.Raw; } } diff --git a/src/serialization/types/DeployTriggerResponseData.ts b/src/serialization/types/DeployTriggerResponseData.ts deleted file mode 100644 index 9fe062d..0000000 --- a/src/serialization/types/DeployTriggerResponseData.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Pipedream from "../../api/index.js"; -import * as core from "../../core/index.js"; -import type * as serializers from "../index.js"; -import { DeployedComponent } from "./DeployedComponent.js"; -import { HttpInterface } from "./HttpInterface.js"; -import { TimerInterface } from "./TimerInterface.js"; - -export const DeployTriggerResponseData: core.serialization.Schema< - serializers.DeployTriggerResponseData.Raw, - Pipedream.DeployTriggerResponseData -> = core.serialization.undiscriminatedUnion([DeployedComponent, HttpInterface, TimerInterface]); - -export declare namespace DeployTriggerResponseData { - export type Raw = DeployedComponent.Raw | HttpInterface.Raw | TimerInterface.Raw; -} diff --git a/src/serialization/types/DeployedComponent.ts b/src/serialization/types/DeployedComponent.ts index 11d489a..b15e59a 100644 --- a/src/serialization/types/DeployedComponent.ts +++ b/src/serialization/types/DeployedComponent.ts @@ -13,6 +13,7 @@ export const DeployedComponent: core.serialization.ObjectSchema< id: core.serialization.string(), ownerId: core.serialization.property("owner_id", core.serialization.string()), componentId: core.serialization.property("component_id", core.serialization.string()), + componentKey: core.serialization.property("component_key", core.serialization.string().optional()), configurableProps: core.serialization.property("configurable_props", core.serialization.list(ConfigurableProp)), configuredProps: core.serialization.property("configured_props", ConfiguredProps), active: core.serialization.boolean(), @@ -28,6 +29,7 @@ export declare namespace DeployedComponent { id: string; owner_id: string; component_id: string; + component_key?: string | null; configurable_props: ConfigurableProp.Raw[]; configured_props: ConfiguredProps.Raw; active: boolean; diff --git a/src/serialization/types/Emitter.ts b/src/serialization/types/Emitter.ts new file mode 100644 index 0000000..b70ff19 --- /dev/null +++ b/src/serialization/types/Emitter.ts @@ -0,0 +1,35 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; +import { DeployedComponent } from "./DeployedComponent.js"; +import { HttpInterface } from "./HttpInterface.js"; +import { TimerInterface } from "./TimerInterface.js"; + +export const Emitter: core.serialization.Schema = core.serialization + .union("type", { + DeployedComponent: DeployedComponent, + HttpInterface: HttpInterface, + TimerInterface: TimerInterface, + }) + .transform({ + transform: (value) => value, + untransform: (value) => value, + }); + +export declare namespace Emitter { + export type Raw = Emitter.DeployedComponent | Emitter.HttpInterface | Emitter.TimerInterface; + + export interface DeployedComponent extends DeployedComponent.Raw { + type: "DeployedComponent"; + } + + export interface HttpInterface extends HttpInterface.Raw { + type: "HttpInterface"; + } + + export interface TimerInterface extends TimerInterface.Raw { + type: "TimerInterface"; + } +} diff --git a/src/serialization/types/EmitterType.ts b/src/serialization/types/EmitterType.ts new file mode 100644 index 0000000..ebbd176 --- /dev/null +++ b/src/serialization/types/EmitterType.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Pipedream from "../../api/index.js"; +import * as core from "../../core/index.js"; +import type * as serializers from "../index.js"; + +export const EmitterType: core.serialization.Schema = + core.serialization.enum_(["email", "http", "source", "timer"]); + +export declare namespace EmitterType { + export type Raw = "email" | "http" | "source" | "timer"; +} diff --git a/src/serialization/types/GetTriggerResponse.ts b/src/serialization/types/GetTriggerResponse.ts index 24d2ef3..0a15c2a 100644 --- a/src/serialization/types/GetTriggerResponse.ts +++ b/src/serialization/types/GetTriggerResponse.ts @@ -3,17 +3,17 @@ import type * as Pipedream from "../../api/index.js"; import * as core from "../../core/index.js"; import type * as serializers from "../index.js"; -import { GetTriggerResponseData } from "./GetTriggerResponseData.js"; +import { Emitter } from "./Emitter.js"; export const GetTriggerResponse: core.serialization.ObjectSchema< serializers.GetTriggerResponse.Raw, Pipedream.GetTriggerResponse > = core.serialization.object({ - data: GetTriggerResponseData, + data: Emitter, }); export declare namespace GetTriggerResponse { export interface Raw { - data: GetTriggerResponseData.Raw; + data: Emitter.Raw; } } diff --git a/src/serialization/types/GetTriggerResponseData.ts b/src/serialization/types/GetTriggerResponseData.ts deleted file mode 100644 index 1c89f4f..0000000 --- a/src/serialization/types/GetTriggerResponseData.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Pipedream from "../../api/index.js"; -import * as core from "../../core/index.js"; -import type * as serializers from "../index.js"; -import { DeployedComponent } from "./DeployedComponent.js"; -import { HttpInterface } from "./HttpInterface.js"; -import { TimerInterface } from "./TimerInterface.js"; - -export const GetTriggerResponseData: core.serialization.Schema< - serializers.GetTriggerResponseData.Raw, - Pipedream.GetTriggerResponseData -> = core.serialization.undiscriminatedUnion([DeployedComponent, HttpInterface, TimerInterface]); - -export declare namespace GetTriggerResponseData { - export type Raw = DeployedComponent.Raw | HttpInterface.Raw | TimerInterface.Raw; -} diff --git a/src/serialization/types/GetTriggersResponse.ts b/src/serialization/types/GetTriggersResponse.ts index ba020f0..12c9e45 100644 --- a/src/serialization/types/GetTriggersResponse.ts +++ b/src/serialization/types/GetTriggersResponse.ts @@ -3,20 +3,20 @@ import type * as Pipedream from "../../api/index.js"; import * as core from "../../core/index.js"; import type * as serializers from "../index.js"; -import { DeployedComponent } from "./DeployedComponent.js"; +import { Emitter } from "./Emitter.js"; import { PageInfo } from "./PageInfo.js"; export const GetTriggersResponse: core.serialization.ObjectSchema< serializers.GetTriggersResponse.Raw, Pipedream.GetTriggersResponse > = core.serialization.object({ - data: core.serialization.list(DeployedComponent), + data: core.serialization.list(Emitter), pageInfo: core.serialization.property("page_info", PageInfo), }); export declare namespace GetTriggersResponse { export interface Raw { - data: DeployedComponent.Raw[]; + data: Emitter.Raw[]; page_info: PageInfo.Raw; } } diff --git a/src/serialization/types/HttpInterface.ts b/src/serialization/types/HttpInterface.ts index 30dd4e5..ca0b89a 100644 --- a/src/serialization/types/HttpInterface.ts +++ b/src/serialization/types/HttpInterface.ts @@ -11,7 +11,7 @@ export const HttpInterface: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), + version: core.serialization.string().optional(), externalUserId: core.serialization.property("external_user_id", core.serialization.string()), blocking: core.serialization.boolean().optional(), configuredProps: core.serialization.property("configured_props", ConfiguredProps.optional()), @@ -19,6 +20,7 @@ export const ReloadPropsOpts: core.serialization.ObjectSchema< export declare namespace ReloadPropsOpts { export interface Raw { id: string; + version?: string | null; external_user_id: string; blocking?: boolean | null; configured_props?: ConfiguredProps.Raw | null; diff --git a/src/serialization/types/TimerInterface.ts b/src/serialization/types/TimerInterface.ts index 77c2586..17df406 100644 --- a/src/serialization/types/TimerInterface.ts +++ b/src/serialization/types/TimerInterface.ts @@ -12,7 +12,7 @@ export const TimerInterface: core.serialization.ObjectSchema Date: Fri, 24 Oct 2025 12:57:54 -0300 Subject: [PATCH 2/4] Fix missing import issues --- src/api/types/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 586b98b..f466b70 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -64,9 +64,10 @@ export * from "./CreateTokenResponse.js"; export * from "./DeleteTriggerOpts.js"; export * from "./DeployedComponent.js"; export * from "./DeployTriggerResponse.js"; -export * from "./DeployTriggerResponseData.js"; export * from "./DynamicProps.js"; export * from "./EmittedEvent.js"; +export * from "./Emitter.js"; +export * from "./EmitterType.js"; export * from "./ErrorResponse.js"; export * from "./GetAccountsResponse.js"; export * from "./GetAppCategoryResponse.js"; @@ -76,7 +77,6 @@ export * from "./GetComponentResponse.js"; export * from "./GetComponentsResponse.js"; export * from "./GetTriggerEventsResponse.js"; export * from "./GetTriggerResponse.js"; -export * from "./GetTriggerResponseData.js"; export * from "./GetTriggersResponse.js"; export * from "./GetTriggerWebhooksResponse.js"; export * from "./GetTriggerWorkflowsResponse.js"; From fdb0489146753b93b279d43903c651ed724d7824 Mon Sep 17 00:00:00 2001 From: Jay Vercellone Date: Fri, 24 Oct 2025 13:03:52 -0300 Subject: [PATCH 3/4] Restore package.json dist file mappings --- package.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/package.json b/package.json index 30a4111..dbbcea2 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,11 @@ "exports": { ".": { "types": "./dist/cjs/index.d.ts", + "browser": { + "types": "./dist/esm/browser/index.d.mts", + "import": "./dist/esm/browser/index.mjs", + "default": "./dist/esm/browser/index.mjs" + }, "import": { "types": "./dist/esm/index.d.mts", "default": "./dist/esm/index.mjs" @@ -20,6 +25,18 @@ }, "default": "./dist/cjs/index.js" }, + "./browser": { + "types": "./dist/esm/browser/index.d.mts", + "import": { + "types": "./dist/esm/browser/index.d.mts", + "default": "./dist/esm/browser/index.mjs" + }, + "require": { + "types": "./dist/cjs/browser/index.d.ts", + "default": "./dist/cjs/browser/index.js" + }, + "default": "./dist/esm/browser/index.mjs" + }, "./serialization": { "types": "./dist/cjs/serialization/index.d.ts", "import": { @@ -32,6 +49,18 @@ }, "default": "./dist/cjs/serialization/index.js" }, + "./server": { + "types": "./dist/cjs/index.d.ts", + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "default": "./dist/cjs/index.js" + }, "./package.json": "./package.json" }, "files": [ @@ -64,6 +93,8 @@ "@biomejs/biome": "2.2.5" }, "browser": { + "./dist/cjs/wrapper/utils/getBaseUrl.js": "./dist/cjs/wrapper/utils/getBaseUrl.browser.js", + "./dist/esm/wrapper/utils/getBaseUrl.mjs": "./dist/esm/wrapper/utils/getBaseUrl.browser.mjs", "fs": false, "os": false, "path": false, From a597b3b9557111edc29ce3465c5b8faf8fdc0188 Mon Sep 17 00:00:00 2001 From: Jay Vercellone Date: Fri, 24 Oct 2025 13:05:15 -0300 Subject: [PATCH 4/4] Bump minor version --- package.json | 2 +- src/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dbbcea2..de4dd44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/sdk", - "version": "2.1.1", + "version": "2.2.0", "private": false, "repository": "github:PipedreamHQ/pipedream-sdk-typescript", "type": "commonjs", diff --git a/src/version.ts b/src/version.ts index 7f96ac9..13d9985 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.1.1"; +export const SDK_VERSION = "2.2.0";