From bc9e36ec17be8df65bc4bd43bad6ad6617e4973c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:02:39 +0000 Subject: [PATCH 01/16] chore: go live (#1) --- .github/workflows/publish-npm.yml | 32 +++++++++++++ .github/workflows/release-doctor.yml | 22 +++++++++ .release-please-manifest.json | 3 ++ CONTRIBUTING.md | 8 ++-- README.md | 6 +-- bin/check-release-environment | 22 +++++++++ package.json | 2 +- release-please-config.json | 67 ++++++++++++++++++++++++++++ src/_shims/index-deno.ts | 2 +- src/_shims/web-runtime.ts | 2 +- src/version.ts | 2 +- 11 files changed, 157 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/publish-npm.yml create mode 100644 .github/workflows/release-doctor.yml create mode 100644 .release-please-manifest.json create mode 100644 bin/check-release-environment create mode 100644 release-please-config.json diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 0000000..d8e2386 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,32 @@ +# This workflow is triggered when a GitHub release is created. +# It can also be run manually to re-publish to NPM in case it failed for some reason. +# You can run this workflow by navigating to https://www.github.com/browserbase/sdk-node/actions/workflows/publish-npm.yml +name: Publish NPM +on: + workflow_dispatch: + + release: + types: [published] + +jobs: + publish: + name: publish + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Install dependencies + run: | + yarn install + + - name: Publish to NPM + run: | + bash ./bin/publish-npm + env: + NPM_TOKEN: ${{ secrets.BROWSERBASE_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml new file mode 100644 index 0000000..ee48392 --- /dev/null +++ b/.github/workflows/release-doctor.yml @@ -0,0 +1,22 @@ +name: Release Doctor +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + release_doctor: + name: release doctor + runs-on: ubuntu-latest + if: github.repository == 'browserbase/sdk-node' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + + steps: + - uses: actions/checkout@v4 + + - name: Check release environment + run: | + bash ./bin/check-release-environment + env: + NPM_TOKEN: ${{ secrets.BROWSERBASE_NPM_TOKEN || secrets.NPM_TOKEN }} + diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..67dcd73 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1-alpha.0" +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9ab3ba6..0536551 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -42,15 +42,15 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```sh -$ npm install git+ssh://git@github.com:stainless-sdks/browserbase-node.git +$ npm install git+ssh://git@github.com:browserbase/sdk-node.git ``` Alternatively, to link a local copy of the repo: ```sh # Clone -$ git clone https://www.github.com/stainless-sdks/browserbase-node -$ cd browserbase-node +$ git clone https://www.github.com/browserbase/sdk-node +$ cd sdk-node # With yarn $ yarn link @@ -99,7 +99,7 @@ the changes aren't made through the automated pipeline, you may want to make rel ### Publish with a GitHub workflow -You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/stainless-sdks/browserbase-node/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up. +You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/browserbase/sdk-node/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/README.md b/README.md index 599e1ae..0380e8f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainlessapi.com/). ## Installation ```sh -npm install git+ssh://git@github.com:stainless-sdks/browserbase-node.git +npm install git+ssh://git@github.com:browserbase/sdk-node.git ``` > [!NOTE] @@ -221,7 +221,7 @@ import Browserbase from 'browserbase'; ``` To do the inverse, add `import "browserbase/shims/node"` (which does import polyfills). -This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/stainless-sdks/browserbase-node/tree/main/src/_shims#readme)). +This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/browserbase/sdk-node/tree/main/src/_shims#readme)). ### Logging and middleware @@ -280,7 +280,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/browserbase-node/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/browserbase/sdk-node/issues) with questions, bugs, or suggestions. ## Requirements diff --git a/bin/check-release-environment b/bin/check-release-environment new file mode 100644 index 0000000..3098216 --- /dev/null +++ b/bin/check-release-environment @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +errors=() + +if [ -z "${NPM_TOKEN}" ]; then + errors+=("The BROWSERBASE_NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets") +fi + +lenErrors=${#errors[@]} + +if [[ lenErrors -gt 0 ]]; then + echo -e "Found the following errors in the release environment:\n" + + for error in "${errors[@]}"; do + echo -e "- $error\n" + done + + exit 1 +fi + +echo "The environment is ready to push releases!" + diff --git a/package.json b/package.json index 959dd65..b4fc8fb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "dist/index.d.ts", "main": "dist/index.js", "type": "commonjs", - "repository": "github:stainless-sdks/browserbase-node", + "repository": "github:browserbase/sdk-node", "license": "Apache-2.0", "packageManager": "yarn@1.22.22", "files": [ diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..624ed99 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,67 @@ +{ + "packages": { + ".": {} + }, + "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json", + "include-v-in-tag": true, + "include-component-in-tag": false, + "versioning": "prerelease", + "prerelease": true, + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "pull-request-header": "Automated Release PR", + "pull-request-title-pattern": "release: ${version}", + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "chore", + "section": "Chores" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "style", + "section": "Styles" + }, + { + "type": "refactor", + "section": "Refactors" + }, + { + "type": "test", + "section": "Tests", + "hidden": true + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ], + "release-type": "node", + "extra-files": [ + "src/version.ts", + "README.md" + ] +} diff --git a/src/_shims/index-deno.ts b/src/_shims/index-deno.ts index b76c7b7..a13f39e 100644 --- a/src/_shims/index-deno.ts +++ b/src/_shims/index-deno.ts @@ -79,7 +79,7 @@ export function getDefaultAgent(url: string) { } export function fileFromPath() { throw new Error( - 'The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/stainless-sdks/browserbase-node#file-uploads', + 'The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/browserbase/sdk-node#file-uploads', ); } diff --git a/src/_shims/web-runtime.ts b/src/_shims/web-runtime.ts index 93c32d4..ced67c2 100644 --- a/src/_shims/web-runtime.ts +++ b/src/_shims/web-runtime.ts @@ -95,7 +95,7 @@ export function getRuntime({ manuallyImported }: { manuallyImported?: boolean } getDefaultAgent: (url: string) => undefined, fileFromPath: () => { throw new Error( - 'The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/stainless-sdks/browserbase-node#file-uploads', + 'The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/browserbase/sdk-node#file-uploads', ); }, isFsReadStream: (value: any) => false, diff --git a/src/version.ts b/src/version.ts index 55a1a52..db692bc 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.0.1-alpha.0'; +export const VERSION = '0.0.1-alpha.0'; // x-release-please-version From 122db21feb2ef39591d20cf4f7b1c213a05e03be Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Fri, 25 Oct 2024 23:08:01 +0000 Subject: [PATCH 02/16] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e74d0ee..5c7b4fc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-099e8b99a50c73a107fe278d9d286dca1cc4b26769aa223ea1bcf9924ba38467.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0069ed71133ac7b0add07abd8562396c4b8e3c9a212e14a7586782eeed2ff373.yml From 8a06f81c1cd5dc8a64b9fd10ed26f8547469fdeb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 23:47:14 +0000 Subject: [PATCH 03/16] feat(api): update via SDK Studio (#3) --- .stats.yml | 2 +- src/resources/sessions/sessions.ts | 38 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 5c7b4fc..e2d6b39 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0069ed71133ac7b0add07abd8562396c4b8e3c9a212e14a7586782eeed2ff373.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-825ce446567db7e2dcda332131368fcaf1986bae2eff640205b4e1f7b582aaa4.yml diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 7665f34..a346062 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -64,7 +64,45 @@ export interface Session { createdAt: string; + expiresAt: string; + + /** + * Indicates if the Session was created to be kept alive upon disconnections + */ + keepAlive: boolean; + + /** + * The Project ID linked to the Session. + */ + projectId: string; + + /** + * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) + */ + proxyBytes: number; + + startedAt: string; + + status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED'; + updatedAt: string; + + /** + * CPU used by the Session + */ + avgCpuUsage?: number; + + /** + * Optional. The Context linked to the Session. + */ + contextId?: string; + + endedAt?: string; + + /** + * Memory used by the Session + */ + memoryUsage?: number; } export interface SessionLiveURLs { From cf6309bb5de1376139fb0ba6b8e45b5d0801bee5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 26 Oct 2024 02:01:11 +0000 Subject: [PATCH 04/16] feat(api): update via SDK Studio (#4) --- .stats.yml | 2 +- src/resources/sessions/sessions.ts | 42 ++++++++++++++++++++---------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.stats.yml b/.stats.yml index e2d6b39..bb76cf5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-825ce446567db7e2dcda332131368fcaf1986bae2eff640205b4e1f7b582aaa4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-208ded3468d1fbad85834462bced46e59d6cff963b347f9ba69c0b4fabe483c0.yml diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index a346062..f469b64 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -62,47 +62,61 @@ export class Sessions extends APIResource { export interface Session { id: string; - createdAt: string; + created_at: string; - expiresAt: string; + expires_at: string; /** * Indicates if the Session was created to be kept alive upon disconnections */ - keepAlive: boolean; + keep_alive: boolean; /** * The Project ID linked to the Session. */ - projectId: string; + project_id: string; - /** - * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) - */ - proxyBytes: number; + region: string; - startedAt: string; + started_at: string; status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED'; - updatedAt: string; + updated_at: string; /** * CPU used by the Session */ - avgCpuUsage?: number; + avg_cpu_usage?: number; + + connectUrl?: string; /** * Optional. The Context linked to the Session. */ - contextId?: string; + context_id?: string; + + ended_at?: string; - endedAt?: string; + is_idle?: boolean; /** * Memory used by the Session */ - memoryUsage?: number; + memory_usage?: number; + + /** + * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) + */ + proxy_bytes?: number; + + seleniumRemoteUrl?: string; + + signingKey?: string; + + viewport_height?: number; + + viewport_width?: number; } export interface SessionLiveURLs { From 427581035437844d44333c0e3471db675dff89c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 26 Oct 2024 02:44:17 +0000 Subject: [PATCH 05/16] feat(api): update via SDK Studio (#5) --- .stats.yml | 2 +- src/resources/extensions.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index bb76cf5..b492b7b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-208ded3468d1fbad85834462bced46e59d6cff963b347f9ba69c0b4fabe483c0.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-9af27d5ca04efd55b732756ee4c81b76331e5ee8ab8c74576a3eaf16faac44f1.yml diff --git a/src/resources/extensions.ts b/src/resources/extensions.ts index 19230ff..2ea89cc 100644 --- a/src/resources/extensions.ts +++ b/src/resources/extensions.ts @@ -33,9 +33,16 @@ export class Extensions extends APIResource { export interface Extension { id: string; - createdAt: string; + created_at: string; - updatedAt: string; + fileName: string; + + /** + * The Project ID linked to the uploaded Extension. + */ + projectId: string; + + updated_at: string; } export interface ExtensionCreateParams { From 299d77ebc0994b0ab39a9c908157d42d605e9765 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2024 01:03:37 +0000 Subject: [PATCH 06/16] feat(api): update via SDK Studio (#6) --- .stats.yml | 2 +- src/resources/sessions/sessions.ts | 73 +------------------ tests/api-resources/sessions/sessions.test.ts | 2 +- 3 files changed, 3 insertions(+), 74 deletions(-) diff --git a/.stats.yml b/.stats.yml index b492b7b..0e9ae69 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-9af27d5ca04efd55b732756ee4c81b76331e5ee8ab8c74576a3eaf16faac44f1.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-70bae250a6bae7dc6efc73ce837b3244eab63318b2d4de9a77ac8733e104df5b.yml diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index f469b64..2f8082a 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -172,9 +172,7 @@ export interface SessionCreateParams { * Proxy configuration. Can be true for default proxy, or an array of proxy * configurations. */ - proxies?: - | boolean - | Array; + proxies?: unknown | boolean; /** * Duration in seconds after which the session will automatically end. Defaults to @@ -279,75 +277,6 @@ export namespace SessionCreateParams { width?: number; } } - - export interface BrowserbaseProxyConfig { - /** - * Type of proxy. Always use 'browserbase' for the Browserbase managed proxy - * network. - */ - type: 'browserbase'; - - /** - * Domain pattern for which this proxy should be used. If omitted, defaults to all - * domains. Optional. - */ - domainPattern?: string; - - /** - * Configuration for geolocation - */ - geolocation?: BrowserbaseProxyConfig.Geolocation; - } - - export namespace BrowserbaseProxyConfig { - /** - * Configuration for geolocation - */ - export interface Geolocation { - /** - * Country code in ISO 3166-1 alpha-2 format - */ - country: string; - - /** - * Name of the city. Use spaces for multi-word city names. Optional. - */ - city?: string; - - /** - * US state code (2 characters). Must also specify US as the country. Optional. - */ - state?: string; - } - } - - export interface ExternalProxyConfig { - /** - * Server URL for external proxy. Required. - */ - server: string; - - /** - * Type of proxy. Always 'external' for this config. - */ - type: 'external'; - - /** - * Domain pattern for which this proxy should be used. If omitted, defaults to all - * domains. Optional. - */ - domainPattern?: string; - - /** - * Password for external proxy authentication. Optional. - */ - password?: string; - - /** - * Username for external proxy authentication. Optional. - */ - username?: string; - } } export interface SessionUpdateParams { diff --git a/tests/api-resources/sessions/sessions.test.ts b/tests/api-resources/sessions/sessions.test.ts index 1dea419..31076cd 100644 --- a/tests/api-resources/sessions/sessions.test.ts +++ b/tests/api-resources/sessions/sessions.test.ts @@ -42,7 +42,7 @@ describe('resource sessions', () => { }, extensionId: 'extensionId', keepAlive: true, - proxies: true, + proxies: {}, timeout: 60, }); }); From e1e47381dc142f94bd61e7f5819eafbf5b4797a7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2024 03:06:28 +0000 Subject: [PATCH 07/16] feat(api): update via SDK Studio (#7) --- .stats.yml | 2 +- src/resources/sessions/sessions.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0e9ae69..770eba6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-70bae250a6bae7dc6efc73ce837b3244eab63318b2d4de9a77ac8733e104df5b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-69e3c041b63edae61bddbb624edc185621be0ad4b1355395616ce08bc8d74ef9.yml diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 2f8082a..360b11e 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -76,6 +76,11 @@ export interface Session { */ project_id: string; + /** + * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) + */ + proxyBytes: number; + region: string; started_at: string; @@ -105,11 +110,6 @@ export interface Session { */ memory_usage?: number; - /** - * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) - */ - proxy_bytes?: number; - seleniumRemoteUrl?: string; signingKey?: string; From 2d845ffc683ea988980e42ea2c03699034af6980 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2024 03:09:05 +0000 Subject: [PATCH 08/16] feat(api): update via SDK Studio (#8) --- .stats.yml | 2 +- src/resources/extensions.ts | 11 +- src/resources/sessions/sessions.ts | 129 ++++++++++-------- tests/api-resources/sessions/sessions.test.ts | 2 +- 4 files changed, 78 insertions(+), 66 deletions(-) diff --git a/.stats.yml b/.stats.yml index 770eba6..5c7b4fc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-69e3c041b63edae61bddbb624edc185621be0ad4b1355395616ce08bc8d74ef9.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0069ed71133ac7b0add07abd8562396c4b8e3c9a212e14a7586782eeed2ff373.yml diff --git a/src/resources/extensions.ts b/src/resources/extensions.ts index 2ea89cc..19230ff 100644 --- a/src/resources/extensions.ts +++ b/src/resources/extensions.ts @@ -33,16 +33,9 @@ export class Extensions extends APIResource { export interface Extension { id: string; - created_at: string; + createdAt: string; - fileName: string; - - /** - * The Project ID linked to the uploaded Extension. - */ - projectId: string; - - updated_at: string; + updatedAt: string; } export interface ExtensionCreateParams { diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 360b11e..7665f34 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -62,61 +62,9 @@ export class Sessions extends APIResource { export interface Session { id: string; - created_at: string; + createdAt: string; - expires_at: string; - - /** - * Indicates if the Session was created to be kept alive upon disconnections - */ - keep_alive: boolean; - - /** - * The Project ID linked to the Session. - */ - project_id: string; - - /** - * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) - */ - proxyBytes: number; - - region: string; - - started_at: string; - - status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED'; - - updated_at: string; - - /** - * CPU used by the Session - */ - avg_cpu_usage?: number; - - connectUrl?: string; - - /** - * Optional. The Context linked to the Session. - */ - context_id?: string; - - ended_at?: string; - - is_idle?: boolean; - - /** - * Memory used by the Session - */ - memory_usage?: number; - - seleniumRemoteUrl?: string; - - signingKey?: string; - - viewport_height?: number; - - viewport_width?: number; + updatedAt: string; } export interface SessionLiveURLs { @@ -172,7 +120,9 @@ export interface SessionCreateParams { * Proxy configuration. Can be true for default proxy, or an array of proxy * configurations. */ - proxies?: unknown | boolean; + proxies?: + | boolean + | Array; /** * Duration in seconds after which the session will automatically end. Defaults to @@ -277,6 +227,75 @@ export namespace SessionCreateParams { width?: number; } } + + export interface BrowserbaseProxyConfig { + /** + * Type of proxy. Always use 'browserbase' for the Browserbase managed proxy + * network. + */ + type: 'browserbase'; + + /** + * Domain pattern for which this proxy should be used. If omitted, defaults to all + * domains. Optional. + */ + domainPattern?: string; + + /** + * Configuration for geolocation + */ + geolocation?: BrowserbaseProxyConfig.Geolocation; + } + + export namespace BrowserbaseProxyConfig { + /** + * Configuration for geolocation + */ + export interface Geolocation { + /** + * Country code in ISO 3166-1 alpha-2 format + */ + country: string; + + /** + * Name of the city. Use spaces for multi-word city names. Optional. + */ + city?: string; + + /** + * US state code (2 characters). Must also specify US as the country. Optional. + */ + state?: string; + } + } + + export interface ExternalProxyConfig { + /** + * Server URL for external proxy. Required. + */ + server: string; + + /** + * Type of proxy. Always 'external' for this config. + */ + type: 'external'; + + /** + * Domain pattern for which this proxy should be used. If omitted, defaults to all + * domains. Optional. + */ + domainPattern?: string; + + /** + * Password for external proxy authentication. Optional. + */ + password?: string; + + /** + * Username for external proxy authentication. Optional. + */ + username?: string; + } } export interface SessionUpdateParams { diff --git a/tests/api-resources/sessions/sessions.test.ts b/tests/api-resources/sessions/sessions.test.ts index 31076cd..1dea419 100644 --- a/tests/api-resources/sessions/sessions.test.ts +++ b/tests/api-resources/sessions/sessions.test.ts @@ -42,7 +42,7 @@ describe('resource sessions', () => { }, extensionId: 'extensionId', keepAlive: true, - proxies: {}, + proxies: true, timeout: 60, }); }); From a17fadcac323079f3e36e0c965f6d6c1be26f1d8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2024 03:27:35 +0000 Subject: [PATCH 09/16] feat(api): update via SDK Studio (#9) --- .stats.yml | 2 +- api.md | 3 +- src/index.ts | 1 + src/resources/index.ts | 1 + src/resources/sessions/index.ts | 1 + src/resources/sessions/sessions.ts | 149 +++++++++--------- tests/api-resources/sessions/sessions.test.ts | 3 +- 7 files changed, 83 insertions(+), 77 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5c7b4fc..b9a6af2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0069ed71133ac7b0add07abd8562396c4b8e3c9a212e14a7586782eeed2ff373.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0d0ad7d4de2fa0b930b8d72fe6539ab248c7ed684b2e12b327b3bc0a466f9cde.yml diff --git a/api.md b/api.md index 3c44ad6..efcf2db 100644 --- a/api.md +++ b/api.md @@ -44,11 +44,12 @@ Types: - Session - SessionLiveURLs +- SessionCreateResponse - SessionListResponse Methods: -- client.sessions.create({ ...params }) -> Session +- client.sessions.create({ ...params }) -> SessionCreateResponse - client.sessions.retrieve(id) -> Session - client.sessions.update(id, { ...params }) -> Session - client.sessions.list({ ...params }) -> SessionListResponse diff --git a/src/index.ts b/src/index.ts index 12640c8..9e857dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -200,6 +200,7 @@ export namespace Browserbase { export import Sessions = API.Sessions; export import Session = API.Session; export import SessionLiveURLs = API.SessionLiveURLs; + export import SessionCreateResponse = API.SessionCreateResponse; export import SessionListResponse = API.SessionListResponse; export import SessionCreateParams = API.SessionCreateParams; export import SessionUpdateParams = API.SessionUpdateParams; diff --git a/src/resources/index.ts b/src/resources/index.ts index 7354ce4..538ff2e 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -12,6 +12,7 @@ export { Project, ProjectUsage, ProjectListResponse, Projects } from './projects export { Session, SessionLiveURLs, + SessionCreateResponse, SessionListResponse, SessionCreateParams, SessionUpdateParams, diff --git a/src/resources/sessions/index.ts b/src/resources/sessions/index.ts index 8b57297..bca6cc8 100644 --- a/src/resources/sessions/index.ts +++ b/src/resources/sessions/index.ts @@ -4,6 +4,7 @@ export { Downloads } from './downloads'; export { Session, SessionLiveURLs, + SessionCreateResponse, SessionListResponse, SessionCreateParams, SessionUpdateParams, diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 7665f34..8ca7e14 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -18,7 +18,7 @@ export class Sessions extends APIResource { /** * Create a Session */ - create(body: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise { + create(body: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise { return this._client.post('/v1/sessions', { body, ...options }); } @@ -93,6 +93,72 @@ export namespace SessionLiveURLs { } } +export interface SessionCreateResponse { + id: string; + + /** + * WebSocket URL to connect to the Session. + */ + connectUrl: string; + + createdAt: string; + + expiresAt: string; + + /** + * Indicates if the Session was created to be kept alive upon disconnections + */ + keepAlive: boolean; + + /** + * The Project ID linked to the Session. + */ + projectId: string; + + /** + * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) + */ + proxyBytes: number; + + /** + * The region where the Session is running. + */ + region: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1'; + + /** + * HTTP URL to connect to the Session. + */ + seleniumRemoteUrl: string; + + /** + * Signing key to use when connecting to the Session via HTTP. + */ + signingKey: string; + + startedAt: string; + + status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED'; + + updatedAt: string; + + /** + * CPU used by the Session + */ + avgCpuUsage?: number; + + /** + * Optional. The Context linked to the Session. + */ + contextId?: string; + + endedAt?: string; + + /** + * Memory used by the Session + */ + memoryUsage?: number; +} + export type SessionListResponse = Array; export interface SessionCreateParams { @@ -120,9 +186,12 @@ export interface SessionCreateParams { * Proxy configuration. Can be true for default proxy, or an array of proxy * configurations. */ - proxies?: - | boolean - | Array; + proxies?: unknown; + + /** + * The region where the Session should run. + */ + region?: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1'; /** * Duration in seconds after which the session will automatically end. Defaults to @@ -180,7 +249,7 @@ export namespace SessionCreateParams { /** * Whether or not to persist the context after browsing. Defaults to `false`. */ - persist: boolean; + persist?: boolean; } /** @@ -227,75 +296,6 @@ export namespace SessionCreateParams { width?: number; } } - - export interface BrowserbaseProxyConfig { - /** - * Type of proxy. Always use 'browserbase' for the Browserbase managed proxy - * network. - */ - type: 'browserbase'; - - /** - * Domain pattern for which this proxy should be used. If omitted, defaults to all - * domains. Optional. - */ - domainPattern?: string; - - /** - * Configuration for geolocation - */ - geolocation?: BrowserbaseProxyConfig.Geolocation; - } - - export namespace BrowserbaseProxyConfig { - /** - * Configuration for geolocation - */ - export interface Geolocation { - /** - * Country code in ISO 3166-1 alpha-2 format - */ - country: string; - - /** - * Name of the city. Use spaces for multi-word city names. Optional. - */ - city?: string; - - /** - * US state code (2 characters). Must also specify US as the country. Optional. - */ - state?: string; - } - } - - export interface ExternalProxyConfig { - /** - * Server URL for external proxy. Required. - */ - server: string; - - /** - * Type of proxy. Always 'external' for this config. - */ - type: 'external'; - - /** - * Domain pattern for which this proxy should be used. If omitted, defaults to all - * domains. Optional. - */ - domainPattern?: string; - - /** - * Password for external proxy authentication. Optional. - */ - password?: string; - - /** - * Username for external proxy authentication. Optional. - */ - username?: string; - } } export interface SessionUpdateParams { @@ -319,6 +319,7 @@ export interface SessionListParams { export namespace Sessions { export import Session = SessionsAPI.Session; export import SessionLiveURLs = SessionsAPI.SessionLiveURLs; + export import SessionCreateResponse = SessionsAPI.SessionCreateResponse; export import SessionListResponse = SessionsAPI.SessionListResponse; export import SessionCreateParams = SessionsAPI.SessionCreateParams; export import SessionUpdateParams = SessionsAPI.SessionUpdateParams; diff --git a/tests/api-resources/sessions/sessions.test.ts b/tests/api-resources/sessions/sessions.test.ts index 1dea419..ca73798 100644 --- a/tests/api-resources/sessions/sessions.test.ts +++ b/tests/api-resources/sessions/sessions.test.ts @@ -42,7 +42,8 @@ describe('resource sessions', () => { }, extensionId: 'extensionId', keepAlive: true, - proxies: true, + proxies: {}, + region: 'us-west-2', timeout: 60, }); }); From 2c6c15d148d1a5e74a48f92087580d8c590288af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2024 03:30:26 +0000 Subject: [PATCH 10/16] feat(api): update via SDK Studio (#10) --- .stats.yml | 2 +- src/resources/contexts.ts | 5 ++++ src/resources/extensions.ts | 7 +++++ src/resources/projects.ts | 6 +++++ src/resources/sessions/sessions.ts | 43 ++++++++++++++++++++++++++++++ 5 files changed, 62 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b9a6af2..3d4a375 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0d0ad7d4de2fa0b930b8d72fe6539ab248c7ed684b2e12b327b3bc0a466f9cde.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-b37d85811d1ccbd73a7884f22792503aa7e3103d378c97c84028b8b3b79acddc.yml diff --git a/src/resources/contexts.ts b/src/resources/contexts.ts index cf56a99..b747d8d 100644 --- a/src/resources/contexts.ts +++ b/src/resources/contexts.ts @@ -32,6 +32,11 @@ export interface Context { createdAt: string; + /** + * The Project ID linked to the uploaded Context. + */ + projectId: string; + updatedAt: string; } diff --git a/src/resources/extensions.ts b/src/resources/extensions.ts index 19230ff..ec30bbf 100644 --- a/src/resources/extensions.ts +++ b/src/resources/extensions.ts @@ -35,6 +35,13 @@ export interface Extension { createdAt: string; + fileName: string; + + /** + * The Project ID linked to the uploaded Extension. + */ + projectId: string; + updatedAt: string; } diff --git a/src/resources/projects.ts b/src/resources/projects.ts index c699879..08eac8b 100644 --- a/src/resources/projects.ts +++ b/src/resources/projects.ts @@ -32,6 +32,12 @@ export interface Project { createdAt: string; + defaultTimeout: number; + + name: string; + + ownerId: string; + updatedAt: string; } diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 8ca7e14..517092b 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -64,7 +64,50 @@ export interface Session { createdAt: string; + expiresAt: string; + + /** + * Indicates if the Session was created to be kept alive upon disconnections + */ + keepAlive: boolean; + + /** + * The Project ID linked to the Session. + */ + projectId: string; + + /** + * Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips) + */ + proxyBytes: number; + + /** + * The region where the Session is running. + */ + region: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1'; + + startedAt: string; + + status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED'; + updatedAt: string; + + /** + * CPU used by the Session + */ + avgCpuUsage?: number; + + /** + * Optional. The Context linked to the Session. + */ + contextId?: string; + + endedAt?: string; + + /** + * Memory used by the Session + */ + memoryUsage?: number; } export interface SessionLiveURLs { From 16bac26ea28598b7a9434542c2bb40af1d59495b Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 28 Oct 2024 01:14:31 +0000 Subject: [PATCH 11/16] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 3d4a375..743dc51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-b37d85811d1ccbd73a7884f22792503aa7e3103d378c97c84028b8b3b79acddc.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml From 9191ed631256b52a39de1aafcf1d7deb2788efdb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 01:18:34 +0000 Subject: [PATCH 12/16] feat(api): update via SDK Studio (#11) --- .stats.yml | 2 +- src/resources/sessions/sessions.ts | 6 ------ tests/api-resources/sessions/sessions.test.ts | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 743dc51..b004f1b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-1ccf843d2efab92c6fa01ffb11a0b5e6787218d750597687de526ac9f22f6b81.yml diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 517092b..700da1c 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -235,12 +235,6 @@ export interface SessionCreateParams { * The region where the Session should run. */ region?: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1'; - - /** - * Duration in seconds after which the session will automatically end. Defaults to - * the Project's `defaultTimeout`. - */ - timeout?: number; } export namespace SessionCreateParams { diff --git a/tests/api-resources/sessions/sessions.test.ts b/tests/api-resources/sessions/sessions.test.ts index ca73798..5cfe98e 100644 --- a/tests/api-resources/sessions/sessions.test.ts +++ b/tests/api-resources/sessions/sessions.test.ts @@ -44,7 +44,6 @@ describe('resource sessions', () => { keepAlive: true, proxies: {}, region: 'us-west-2', - timeout: 60, }); }); From ebeaf82736747398450d739e27d6874603c4f942 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 01:19:25 +0000 Subject: [PATCH 13/16] feat(api): update via SDK Studio (#12) --- .stats.yml | 2 +- src/resources/sessions/sessions.ts | 6 ++++++ tests/api-resources/sessions/sessions.test.ts | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b004f1b..743dc51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-1ccf843d2efab92c6fa01ffb11a0b5e6787218d750597687de526ac9f22f6b81.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml diff --git a/src/resources/sessions/sessions.ts b/src/resources/sessions/sessions.ts index 700da1c..517092b 100644 --- a/src/resources/sessions/sessions.ts +++ b/src/resources/sessions/sessions.ts @@ -235,6 +235,12 @@ export interface SessionCreateParams { * The region where the Session should run. */ region?: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1'; + + /** + * Duration in seconds after which the session will automatically end. Defaults to + * the Project's `defaultTimeout`. + */ + timeout?: number; } export namespace SessionCreateParams { diff --git a/tests/api-resources/sessions/sessions.test.ts b/tests/api-resources/sessions/sessions.test.ts index 5cfe98e..ca73798 100644 --- a/tests/api-resources/sessions/sessions.test.ts +++ b/tests/api-resources/sessions/sessions.test.ts @@ -44,6 +44,7 @@ describe('resource sessions', () => { keepAlive: true, proxies: {}, region: 'us-west-2', + timeout: 60, }); }); From daf4b2849eb49f7061fa16d4f360c8e76126256e Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 28 Oct 2024 01:28:57 +0000 Subject: [PATCH 14/16] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 743dc51..70bddde 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-60444f8b1aa1aa8dbec1e9f11e929c2b7ac27470764ef5f1796134fc27f3381c.yml From c0ffdce615059b9523817d22ef18e01e778f3454 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 01:33:49 +0000 Subject: [PATCH 15/16] feat(api): update via SDK Studio (#13) --- src/index.ts | 4 ++-- tests/index.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9e857dd..03c44c2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,7 +81,7 @@ export class Browserbase extends Core.APIClient { * API Client for interfacing with the Browserbase API. * * @param {string | undefined} [opts.apiKey=process.env['BROWSERBASE_API_KEY'] ?? undefined] - * @param {string} [opts.baseURL=process.env['BROWSERBASE_BASE_URL'] ?? https://www.browserbase.com] - Override the default base URL for the API. + * @param {string} [opts.baseURL=process.env['BROWSERBASE_BASE_URL'] ?? https://api.dev.browserbase.com] - Override the default base URL for the API. * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections. * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. @@ -103,7 +103,7 @@ export class Browserbase extends Core.APIClient { const options: ClientOptions = { apiKey, ...opts, - baseURL: baseURL || `https://www.browserbase.com`, + baseURL: baseURL || `https://api.dev.browserbase.com`, }; super({ diff --git a/tests/index.test.ts b/tests/index.test.ts index 5c0cfb8..5507454 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -151,13 +151,13 @@ describe('instantiate client', () => { test('empty env variable', () => { process.env['BROWSERBASE_BASE_URL'] = ''; // empty const client = new Browserbase({ apiKey: 'My API Key' }); - expect(client.baseURL).toEqual('https://www.browserbase.com'); + expect(client.baseURL).toEqual('https://api.dev.browserbase.com'); }); test('blank env variable', () => { process.env['BROWSERBASE_BASE_URL'] = ' '; // blank const client = new Browserbase({ apiKey: 'My API Key' }); - expect(client.baseURL).toEqual('https://www.browserbase.com'); + expect(client.baseURL).toEqual('https://api.dev.browserbase.com'); }); }); From 17461a365bda5e9d94820047ea4d90e7637cce06 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 01:34:02 +0000 Subject: [PATCH 16/16] release: 0.1.0-alpha.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 24 ++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 67dcd73..d7a8735 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1-alpha.0" + ".": "0.1.0-alpha.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..eb71cba --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# Changelog + +## 0.1.0-alpha.1 (2024-10-28) + +Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/browserbase/sdk-node/compare/v0.0.1-alpha.0...v0.1.0-alpha.1) + +### Features + +* **api:** update via SDK Studio ([#10](https://github.com/browserbase/sdk-node/issues/10)) ([2c6c15d](https://github.com/browserbase/sdk-node/commit/2c6c15d148d1a5e74a48f92087580d8c590288af)) +* **api:** update via SDK Studio ([#11](https://github.com/browserbase/sdk-node/issues/11)) ([9191ed6](https://github.com/browserbase/sdk-node/commit/9191ed631256b52a39de1aafcf1d7deb2788efdb)) +* **api:** update via SDK Studio ([#12](https://github.com/browserbase/sdk-node/issues/12)) ([ebeaf82](https://github.com/browserbase/sdk-node/commit/ebeaf82736747398450d739e27d6874603c4f942)) +* **api:** update via SDK Studio ([#13](https://github.com/browserbase/sdk-node/issues/13)) ([c0ffdce](https://github.com/browserbase/sdk-node/commit/c0ffdce615059b9523817d22ef18e01e778f3454)) +* **api:** update via SDK Studio ([#3](https://github.com/browserbase/sdk-node/issues/3)) ([8a06f81](https://github.com/browserbase/sdk-node/commit/8a06f81c1cd5dc8a64b9fd10ed26f8547469fdeb)) +* **api:** update via SDK Studio ([#4](https://github.com/browserbase/sdk-node/issues/4)) ([cf6309b](https://github.com/browserbase/sdk-node/commit/cf6309bb5de1376139fb0ba6b8e45b5d0801bee5)) +* **api:** update via SDK Studio ([#5](https://github.com/browserbase/sdk-node/issues/5)) ([4275810](https://github.com/browserbase/sdk-node/commit/427581035437844d44333c0e3471db675dff89c7)) +* **api:** update via SDK Studio ([#6](https://github.com/browserbase/sdk-node/issues/6)) ([299d77e](https://github.com/browserbase/sdk-node/commit/299d77ebc0994b0ab39a9c908157d42d605e9765)) +* **api:** update via SDK Studio ([#7](https://github.com/browserbase/sdk-node/issues/7)) ([e1e4738](https://github.com/browserbase/sdk-node/commit/e1e47381dc142f94bd61e7f5819eafbf5b4797a7)) +* **api:** update via SDK Studio ([#8](https://github.com/browserbase/sdk-node/issues/8)) ([2d845ff](https://github.com/browserbase/sdk-node/commit/2d845ffc683ea988980e42ea2c03699034af6980)) +* **api:** update via SDK Studio ([#9](https://github.com/browserbase/sdk-node/issues/9)) ([a17fadc](https://github.com/browserbase/sdk-node/commit/a17fadcac323079f3e36e0c965f6d6c1be26f1d8)) + + +### Chores + +* go live ([#1](https://github.com/browserbase/sdk-node/issues/1)) ([bc9e36e](https://github.com/browserbase/sdk-node/commit/bc9e36ec17be8df65bc4bd43bad6ad6617e4973c)) diff --git a/package.json b/package.json index b4fc8fb..8f223e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "browserbase", - "version": "0.0.1-alpha.0", + "version": "0.1.0-alpha.1", "description": "The official TypeScript library for the Browserbase API", "author": "Browserbase ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index db692bc..b0bfd9e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.0.1-alpha.0'; // x-release-please-version +export const VERSION = '0.1.0-alpha.1'; // x-release-please-version