Skip to content

Commit 131ba3a

Browse files
SDK regeneration
1 parent 92294ff commit 131ba3a

File tree

7 files changed

+17
-63
lines changed

7 files changed

+17
-63
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,4 @@ jobs:
2727
uses: actions/setup-node@v3
2828

2929
- name: Compile
30-
run: yarn && yarn test
31-
32-
publish:
33-
needs:
34-
- compile
35-
- test
36-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
37-
runs-on: ubuntu-latest
38-
39-
steps:
40-
- name: Checkout repo
41-
uses: actions/checkout@v4
42-
43-
- name: Set up node
44-
uses: actions/setup-node@v3
45-
- name: Install dependencies
46-
run: yarn install --frozen-lockfile --non-interactive
47-
48-
- name: Build
49-
run: yarn build
50-
- name: Set up NPM authentication
51-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
52-
- name: Publish
53-
run: npm publish --access public --no-git-tag-version --tag latest
30+
run: yarn && yarn test

package.json

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.0.13",
3+
"version": "2.0.14",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",
@@ -10,11 +10,6 @@
1010
"exports": {
1111
".": {
1212
"types": "./dist/cjs/index.d.ts",
13-
"browser": {
14-
"types": "./dist/esm/browser/index.d.mts",
15-
"import": "./dist/esm/browser/index.mjs",
16-
"default": "./dist/esm/browser/index.mjs"
17-
},
1813
"import": {
1914
"types": "./dist/esm/index.d.mts",
2015
"default": "./dist/esm/index.mjs"
@@ -25,18 +20,6 @@
2520
},
2621
"default": "./dist/cjs/index.js"
2722
},
28-
"./browser": {
29-
"types": "./dist/esm/browser/index.d.mts",
30-
"import": {
31-
"types": "./dist/esm/browser/index.d.mts",
32-
"default": "./dist/esm/browser/index.mjs"
33-
},
34-
"require": {
35-
"types": "./dist/cjs/browser/index.d.ts",
36-
"default": "./dist/cjs/browser/index.js"
37-
},
38-
"default": "./dist/esm/browser/index.mjs"
39-
},
4023
"./serialization": {
4124
"types": "./dist/cjs/serialization/index.d.ts",
4225
"import": {
@@ -49,18 +32,6 @@
4932
},
5033
"default": "./dist/cjs/serialization/index.js"
5134
},
52-
"./server": {
53-
"types": "./dist/cjs/index.d.ts",
54-
"import": {
55-
"types": "./dist/esm/index.d.mts",
56-
"default": "./dist/esm/index.mjs"
57-
},
58-
"require": {
59-
"types": "./dist/cjs/index.d.ts",
60-
"default": "./dist/cjs/index.js"
61-
},
62-
"default": "./dist/cjs/index.js"
63-
},
6435
"./package.json": "./package.json"
6536
},
6637
"files": [
@@ -80,21 +51,19 @@
8051
"test:wire": "jest --selectProjects wire"
8152
},
8253
"devDependencies": {
54+
"webpack": "^5.97.1",
55+
"ts-loader": "^9.5.1",
56+
"jest": "^29.7.0",
8357
"@jest/globals": "^29.7.0",
8458
"@types/jest": "^29.5.14",
85-
"@types/node": "^18.19.70",
86-
"jest": "^29.7.0",
59+
"ts-jest": "^29.3.4",
8760
"jest-environment-jsdom": "^29.7.0",
8861
"msw": "^2.8.4",
62+
"@types/node": "^18.19.70",
8963
"prettier": "^3.4.2",
90-
"ts-jest": "^29.3.4",
91-
"ts-loader": "^9.5.1",
92-
"typescript": "~5.7.2",
93-
"webpack": "^5.97.1"
64+
"typescript": "~5.7.2"
9465
},
9566
"browser": {
96-
"./dist/cjs/wrapper/utils/getBaseUrl.js": "./dist/cjs/wrapper/utils/getBaseUrl.browser.js",
97-
"./dist/esm/wrapper/utils/getBaseUrl.mjs": "./dist/esm/wrapper/utils/getBaseUrl.browser.mjs",
9867
"fs": false,
9968
"os": false,
10069
"path": false,

src/api/resources/oauthTokens/client/requests/CreateOAuthTokenOpts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
export interface CreateOAuthTokenOpts {
1313
clientId: string;
1414
clientSecret: string;
15+
/** Optional space-separated scopes for the access token. Defaults to '*'. */
16+
scope?: string;
1517
}

src/api/types/BackendClientOpts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ export interface BackendClientOpts {
1212
clientSecret?: string;
1313
/** The API URL to use */
1414
apiUrl?: string;
15+
/** Optional space-separated scopes for the access token. Defaults to '*'. */
16+
scope?: string;
1517
}

src/serialization/resources/oauthTokens/client/requests/CreateOAuthTokenOpts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ export const CreateOAuthTokenOpts: core.serialization.Schema<
1212
> = core.serialization.object({
1313
clientId: core.serialization.property("client_id", core.serialization.string()),
1414
clientSecret: core.serialization.property("client_secret", core.serialization.string()),
15+
scope: core.serialization.string().optional(),
1516
});
1617

1718
export declare namespace CreateOAuthTokenOpts {
1819
export interface Raw {
1920
client_id: string;
2021
client_secret: string;
22+
scope?: string | null;
2123
}
2224
}

src/serialization/types/BackendClientOpts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ export const BackendClientOpts: core.serialization.ObjectSchema<
1313
clientId: core.serialization.property("client_id", core.serialization.string().optional()),
1414
clientSecret: core.serialization.property("client_secret", core.serialization.string().optional()),
1515
apiUrl: core.serialization.property("api_url", core.serialization.string().optional()),
16+
scope: core.serialization.string().optional(),
1617
});
1718

1819
export declare namespace BackendClientOpts {
1920
export interface Raw {
2021
client_id?: string | null;
2122
client_secret?: string | null;
2223
api_url?: string | null;
24+
scope?: string | null;
2325
}
2426
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "2.0.13";
1+
export const SDK_VERSION = "2.0.14";

0 commit comments

Comments
 (0)