From 9c091ed82c32e98b7c65d253e49a32b79d0e9cce Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:33:52 +0000 Subject: [PATCH 1/2] SDK regeneration --- .github/workflows/auto-merge-release.yml | 35 -- .github/workflows/release.yml | 34 -- ee/automation/.nvmrc | 1 - ee/automation/README.md | 11 - ee/automation/ci-workflow-server.yaml | 46 -- ee/automation/package-lock.json | 517 ------------------ ee/automation/package.json | 18 - ee/automation/src/auth.ts | 33 -- ee/automation/src/auto-merge.ts | 149 ----- ee/automation/src/create-release.ts | 52 -- ee/automation/src/upgrade-workflow-server.ts | 30 - ee/automation/src/utils.ts | 36 -- ee/automation/tsconfig.json | 34 -- package.json | 9 +- reference.md | 128 +++-- src/Client.ts | 66 +-- src/api/resources/adHoc/client/Client.ts | 12 +- .../containerImages/client/Client.ts | 24 +- .../resources/deployments/client/Client.ts | 58 +- .../documentIndexes/client/Client.ts | 68 +-- src/api/resources/documents/client/Client.ts | 30 +- .../resources/environments/client/Client.ts | 6 +- src/api/resources/events/client/Client.ts | 6 +- .../resources/folderEntities/client/Client.ts | 12 +- .../integrationAuthConfigs/client/Client.ts | 8 +- .../ListIntegrationAuthConfigsRequest.ts | 2 +- .../integrationProviders/client/Client.ts | 22 +- .../resources/integrations/client/Client.ts | 44 +- .../metricDefinitions/client/Client.ts | 22 +- src/api/resources/mlModels/client/Client.ts | 6 +- .../resources/organizations/client/Client.ts | 6 +- src/api/resources/prompts/client/Client.ts | 12 +- src/api/resources/sandboxes/client/Client.ts | 18 +- .../resources/testSuiteRuns/client/Client.ts | 20 +- .../TestSuiteRunsListExecutionsRequest.ts | 2 +- src/api/resources/testSuites/client/Client.ts | 24 +- .../workflowDeployments/client/Client.ts | 80 +-- .../workflowExecutions/client/Client.ts | 6 +- .../workflowSandboxes/client/Client.ts | 12 +- src/api/resources/workflows/client/Client.ts | 24 +- .../client/requests/WorkflowsPullRequest.ts | 4 + .../workspaceSecrets/client/Client.ts | 12 +- src/api/resources/workspaces/client/Client.ts | 6 +- src/api/types/CodeExecutionNodeJsonResult.ts | 2 +- src/api/types/ExecutionJsonVellumValue.ts | 2 +- src/api/types/ExternalInputDescriptor.ts | 2 +- src/api/types/JsonInput.ts | 2 +- src/api/types/JsonInputRequest.ts | 2 +- src/api/types/JsonVellumValue.ts | 2 +- src/api/types/JsonVellumValueRequest.ts | 2 +- ...edScenarioInputJsonVariableValueRequest.ts | 2 +- .../types/NamedTestCaseJsonVariableValue.ts | 2 +- .../NamedTestCaseJsonVariableValueRequest.ts | 2 +- src/api/types/NodeInputCompiledJsonValue.ts | 2 +- src/api/types/NodeOutputCompiledJsonValue.ts | 2 +- src/api/types/PromptRequestJsonInput.ts | 2 +- .../types/ScenarioInputJsonVariableValue.ts | 2 +- src/api/types/TemplatingNodeJsonResult.ts | 2 +- src/api/types/TerminalNodeJsonResult.ts | 2 +- src/api/types/TestCaseJsonVariableValue.ts | 2 +- .../types/TestSuiteRunExecutionJsonOutput.ts | 2 +- src/api/types/TestSuiteRunMetricJsonOutput.ts | 2 +- src/api/types/WorkflowOutputJson.ts | 2 +- .../WorkflowResultEventOutputDataJson.ts | 2 +- .../types/CodeExecutionNodeJsonResult.ts | 4 +- .../types/ExecutionJsonVellumValue.ts | 4 +- .../types/ExternalInputDescriptor.ts | 4 +- src/serialization/types/JsonInput.ts | 4 +- src/serialization/types/JsonInputRequest.ts | 4 +- src/serialization/types/JsonVellumValue.ts | 4 +- .../types/JsonVellumValueRequest.ts | 4 +- ...edScenarioInputJsonVariableValueRequest.ts | 4 +- .../types/NamedTestCaseJsonVariableValue.ts | 4 +- .../NamedTestCaseJsonVariableValueRequest.ts | 4 +- .../types/NodeInputCompiledJsonValue.ts | 4 +- .../types/NodeOutputCompiledJsonValue.ts | 4 +- .../types/PromptRequestJsonInput.ts | 4 +- .../types/ScenarioInputJsonVariableValue.ts | 4 +- .../types/TemplatingNodeJsonResult.ts | 4 +- .../types/TerminalNodeJsonResult.ts | 4 +- .../types/TestCaseJsonVariableValue.ts | 4 +- .../types/TestSuiteRunExecutionJsonOutput.ts | 4 +- .../types/TestSuiteRunMetricJsonOutput.ts | 4 +- src/serialization/types/WorkflowOutputJson.ts | 4 +- .../WorkflowResultEventOutputDataJson.ts | 4 +- src/version.ts | 2 +- yarn.lock | 30 +- 87 files changed, 482 insertions(+), 1421 deletions(-) delete mode 100644 .github/workflows/auto-merge-release.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 ee/automation/.nvmrc delete mode 100644 ee/automation/README.md delete mode 100644 ee/automation/ci-workflow-server.yaml delete mode 100644 ee/automation/package-lock.json delete mode 100644 ee/automation/package.json delete mode 100644 ee/automation/src/auth.ts delete mode 100644 ee/automation/src/auto-merge.ts delete mode 100644 ee/automation/src/create-release.ts delete mode 100644 ee/automation/src/upgrade-workflow-server.ts delete mode 100644 ee/automation/src/utils.ts delete mode 100644 ee/automation/tsconfig.json diff --git a/.github/workflows/auto-merge-release.yml b/.github/workflows/auto-merge-release.yml deleted file mode 100644 index a5ed738bc..000000000 --- a/.github/workflows/auto-merge-release.yml +++ /dev/null @@ -1,35 +0,0 @@ -# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository. -name: Auto-merge Release PRs - -on: - pull_request: - types: [labeled, synchronize] - branches: - - main - -jobs: - auto-merge: - runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'release') - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "18.18.0" - - - name: Install dependencies - run: npm install - working-directory: ee/automation - - - name: Wait for checks and auto-merge - env: - VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }} - VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }} - VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }} - PR_NUMBER: ${{ github.event.pull_request.number }} - HEAD_SHA: ${{ github.event.pull_request.head.sha }} - run: npm run auto-merge - working-directory: ee/automation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 5de4db201..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository. -name: Release - -on: - pull_request: - types: [closed] - branches: - - main - workflow_dispatch: - -jobs: - create-release: - runs-on: ubuntu-latest - if: (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')) || github.event_name == 'workflow_dispatch' - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "18.18.0" - - - name: Install dependencies - run: npm install - working-directory: ee/automation - - - name: Create release - env: - VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }} - VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }} - VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }} - run: npm run create-release - working-directory: ee/automation diff --git a/ee/automation/.nvmrc b/ee/automation/.nvmrc deleted file mode 100644 index 6aab9b43f..000000000 --- a/ee/automation/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -v18.18.0 diff --git a/ee/automation/README.md b/ee/automation/README.md deleted file mode 100644 index 87a9135d2..000000000 --- a/ee/automation/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Vellum SDK Automation - -This is a mini package hosting all of the automation scripts needed for managing Vellum SDKs from within each SDK repository. During the release process of this repository, this directory is copied into the `ee/automation` directory of each of the respective SDKs. - -## Scripts - -Here are all the scripts we support. - -### `npm run create-release` - -This script is used to create a release for a given SDK. It is triggered by a pull request in the SDK repository being merged into the `main` branch with the `release` label. The GitHub action for this trigger is defined in `release.yml` and copied into the SDK repository within the `.github/workflows` directory. diff --git a/ee/automation/ci-workflow-server.yaml b/ee/automation/ci-workflow-server.yaml deleted file mode 100644 index 9d7476afd..000000000 --- a/ee/automation/ci-workflow-server.yaml +++ /dev/null @@ -1,46 +0,0 @@ -name: ci-workflow-server - -on: - push: - branches: - - main - tags: - - "*" - -jobs: - publish: - permissions: - contents: "read" - id-token: "write" - - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "18.18.0" - - - name: Install dependencies - run: npm install - working-directory: ee/automation - - - id: auth - uses: google-github-actions/auth@v2 - with: - token_format: "access_token" - create_credentials_file: true - workload_identity_provider: "projects/585775334980/locations/global/workloadIdentityPools/github-pool/providers/github-actions-provider" - service_account: "github-gcr-service-account@vocify-prod.iam.gserviceaccount.com" - access_token_lifetime: "1200s" - - - name: Bump Workflow Server - env: - VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }} - VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }} - VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }} - run: npm run upgrade-workflow-server - working-directory: ee/automation diff --git a/ee/automation/package-lock.json b/ee/automation/package-lock.json deleted file mode 100644 index e8b96e984..000000000 --- a/ee/automation/package-lock.json +++ /dev/null @@ -1,517 +0,0 @@ -{ - "name": "vellum-automation", - "version": "0.0.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "vellum-automation", - "version": "0.0.1", - "devDependencies": { - "@octokit/auth-app": "^7.1.4", - "@octokit/rest": "^21.1.0", - "@types/node": "^22.10.7", - "dotenv": "^16.4.7", - "ts-node": "^10.9.2", - "typescript": "^5.7.3" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@octokit/auth-app": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.4.tgz", - "integrity": "sha512-5F+3l/maq9JfWQ4bV28jT2G/K8eu9OJ317yzXPTGe4Kw+lKDhFaS4dQ3Ltmb6xImKxfCQdqDqMXODhc9YLipLw==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-app": "^8.1.2", - "@octokit/auth-oauth-user": "^5.1.2", - "@octokit/request": "^9.1.4", - "@octokit/request-error": "^6.1.6", - "@octokit/types": "^13.6.2", - "toad-cache": "^3.7.0", - "universal-github-app-jwt": "^2.2.0", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-oauth-app": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.2.tgz", - "integrity": "sha512-3woNZgq5/S6RS+9ZTq+JdymxVr7E0s4EYxF20ugQvgX3pomdPUL5r/XdTY9wALoBM2eHVy4ettr5fKpatyTyHw==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-device": "^7.1.2", - "@octokit/auth-oauth-user": "^5.1.2", - "@octokit/request": "^9.1.4", - "@octokit/types": "^13.6.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-oauth-device": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.2.tgz", - "integrity": "sha512-gTOIzDeV36OhVfxCl69FmvJix7tJIiU6dlxuzLVAzle7fYfO8UDyddr9B+o4CFQVaMBLMGZ9ak2CWMYcGeZnPw==", - "dev": true, - "dependencies": { - "@octokit/oauth-methods": "^5.1.3", - "@octokit/request": "^9.1.4", - "@octokit/types": "^13.6.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-oauth-user": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.2.tgz", - "integrity": "sha512-PgVDDPJgZYb3qSEXK4moksA23tfn68zwSAsQKZ1uH6IV9IaNEYx35OXXI80STQaLYnmEE86AgU0tC1YkM4WjsA==", - "dev": true, - "dependencies": { - "@octokit/auth-oauth-device": "^7.1.2", - "@octokit/oauth-methods": "^5.1.2", - "@octokit/request": "^9.1.4", - "@octokit/types": "^13.6.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-token": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz", - "integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==", - "dev": true, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz", - "integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==", - "dev": true, - "dependencies": { - "@octokit/auth-token": "^5.0.0", - "@octokit/graphql": "^8.1.2", - "@octokit/request": "^9.1.4", - "@octokit/request-error": "^6.1.6", - "@octokit/types": "^13.6.2", - "before-after-hook": "^3.0.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/endpoint": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.2.tgz", - "integrity": "sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==", - "dev": true, - "dependencies": { - "@octokit/types": "^13.6.2", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/graphql": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz", - "integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==", - "dev": true, - "dependencies": { - "@octokit/request": "^9.1.4", - "@octokit/types": "^13.6.2", - "universal-user-agent": "^7.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/oauth-authorization-url": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.1.1.tgz", - "integrity": "sha512-ooXV8GBSabSWyhLUowlMIVd9l1s2nsOGQdlP2SQ4LnkEsGXzeCvbSbCPdZThXhEFzleGPwbapT0Sb+YhXRyjCA==", - "dev": true, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/oauth-methods": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.3.tgz", - "integrity": "sha512-M+bDBi5H8FnH0xhCTg0m9hvcnppdDnxUqbZyOkxlLblKpLAR+eT2nbDPvJDp0eLrvJWA1I8OX0KHf/sBMQARRA==", - "dev": true, - "dependencies": { - "@octokit/oauth-authorization-url": "^7.0.0", - "@octokit/request": "^9.1.4", - "@octokit/request-error": "^6.1.6", - "@octokit/types": "^13.6.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/openapi-types": { - "version": "23.0.1", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz", - "integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==", - "dev": true - }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "11.4.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.0.tgz", - "integrity": "sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==", - "dev": true, - "dependencies": { - "@octokit/types": "^13.7.0" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": ">=6" - } - }, - "node_modules/@octokit/plugin-request-log": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz", - "integrity": "sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==", - "dev": true, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": ">=6" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz", - "integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==", - "dev": true, - "dependencies": { - "@octokit/types": "^13.7.0" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "@octokit/core": ">=6" - } - }, - "node_modules/@octokit/request": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.4.tgz", - "integrity": "sha512-tMbOwGm6wDII6vygP3wUVqFTw3Aoo0FnVQyhihh8vVq12uO3P+vQZeo2CKMpWtPSogpACD0yyZAlVlQnjW71DA==", - "dev": true, - "dependencies": { - "@octokit/endpoint": "^10.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^13.6.2", - "fast-content-type-parse": "^2.0.0", - "universal-user-agent": "^7.0.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/request-error": { - "version": "6.1.6", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz", - "integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==", - "dev": true, - "dependencies": { - "@octokit/types": "^13.6.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/rest": { - "version": "21.1.0", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-21.1.0.tgz", - "integrity": "sha512-93iLxcKDJboUpmnUyeJ6cRIi7z7cqTZT1K7kRK4LobGxwTwpsa+2tQQbRQNGy7IFDEAmrtkf4F4wBj3D5rVlJQ==", - "dev": true, - "dependencies": { - "@octokit/core": "^6.1.3", - "@octokit/plugin-paginate-rest": "^11.4.0", - "@octokit/plugin-request-log": "^5.3.1", - "@octokit/plugin-rest-endpoint-methods": "^13.3.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/types": { - "version": "13.7.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz", - "integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^23.0.1" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true - }, - "node_modules/@types/node": { - "version": "22.10.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.7.tgz", - "integrity": "sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==", - "dev": true, - "dependencies": { - "undici-types": "~6.20.0" - } - }, - "node_modules/acorn": { - "version": "8.14.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", - "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", - "dev": true, - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/before-after-hook": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz", - "integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==", - "dev": true - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dotenv": { - "version": "16.4.7", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", - "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "node_modules/fast-content-type-parse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz", - "integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ] - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/toad-cache": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/toad-cache/-/toad-cache-3.7.0.tgz", - "integrity": "sha512-/m8M+2BJUpoJdgAHoG+baCwBT+tf2VraSfkBgl0Y00qIWt41DJ8R5B8nsEw0I58YwF5IZH6z24/2TobDKnqSWw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/typescript": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", - "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "node_modules/universal-github-app-jwt": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/universal-github-app-jwt/-/universal-github-app-jwt-2.2.0.tgz", - "integrity": "sha512-G5o6f95b5BggDGuUfKDApKaCgNYy2x7OdHY0zSMF081O0EJobw+1130VONhrA7ezGSV2FNOGyM+KQpQZAr9bIQ==", - "dev": true - }, - "node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", - "dev": true - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - } - } -} diff --git a/ee/automation/package.json b/ee/automation/package.json deleted file mode 100644 index ab9cce980..000000000 --- a/ee/automation/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "vellum-automation", - "version": "0.0.1", - "type": "module", - "scripts": { - "create-release": "ts-node-esm ./src/create-release.ts", - "upgrade-workflow-server": "ts-node-esm ./src/upgrade-workflow-server.ts", - "auto-merge": "ts-node-esm ./src/auto-merge.ts" - }, - "devDependencies": { - "@octokit/auth-app": "^7.1.4", - "@octokit/rest": "^21.1.0", - "@types/node": "^22.10.7", - "dotenv": "^16.4.7", - "ts-node": "^10.9.2", - "typescript": "^5.7.3" - } -} diff --git a/ee/automation/src/auth.ts b/ee/automation/src/auth.ts deleted file mode 100644 index 8b8a43c05..000000000 --- a/ee/automation/src/auth.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { createAppAuth } from "@octokit/auth-app"; - -export const getGithubToken = async () => { - const appId = process.env.VELLUM_AUTOMATION_APP_ID; - const privateKey = process.env.VELLUM_AUTOMATION_PRIVATE_KEY; - const installationId = process.env.VELLUM_AUTOMATION_INSTALLATION_ID; - - if (!appId || !privateKey || !installationId) { - throw new Error( - "VELLUM_AUTOMATION_APP_ID, VELLUM_AUTOMATION_PRIVATE_KEY, and VELLUM_AUTOMATION_INSTALLATION_ID must be set" - ); - } - - if ( - !privateKey.startsWith("-----BEGIN RSA PRIVATE KEY-----") || - !privateKey.endsWith("-----END RSA PRIVATE KEY-----") - ) { - throw new Error( - `VELLUM_AUTOMATION_PRIVATE_KEY is an invalid. Please use the valid private key from \ -1password and store in your .env file. Also be sure to \`unset\` any VELLUM_AUTOMATION_* \ -env vars from your shell before running the script again.` - ); - } - - const auth = createAppAuth({ - appId, - privateKey, - installationId, - }); - - const { token } = await auth({ type: "installation" }); - return token; -}; diff --git a/ee/automation/src/auto-merge.ts b/ee/automation/src/auto-merge.ts deleted file mode 100644 index 8ba25fa0d..000000000 --- a/ee/automation/src/auto-merge.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { Octokit } from '@octokit/rest'; -import { getGithubToken } from './auth.js'; -import * as dotenv from 'dotenv'; - -dotenv.config(); - -const SDK_REPO = "vellum-client-node"; -const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0'); -const HEAD_SHA = process.env.HEAD_SHA; - -const POLL_INTERVAL = 30000; // 30 seconds -const MAX_WAIT_TIME = 30 * 60 * 1000; // 30 minutes - -interface CheckRun { - status: string; - conclusion: string | null; - name: string; -} - -const isAutoMergeCheck = (checkName: string): boolean => { - return checkName.toLowerCase().includes('auto-merge'); -}; - -const main = async () => { - if (!SDK_REPO || !PR_NUMBER || !HEAD_SHA) { - throw new Error('Missing required environment variables: FERN_SDK_REPO, PR_NUMBER, HEAD_SHA'); - } - - console.log(`Starting auto-merge process for PR #${PR_NUMBER} in ${SDK_REPO}`); - console.log(`Head SHA: ${HEAD_SHA}`); - - const auth = await getGithubToken(); - const octokit = new Octokit({ auth }); - - const owner = "vellum-ai"; - const repo = SDK_REPO; - - const { data: pr } = await octokit.rest.pulls.get({ - owner, - repo, - pull_number: PR_NUMBER, - }); - - if (!pr.labels.some(label => label.name === 'release')) { - console.log('PR does not have release label, skipping auto-merge'); - return; - } - - if (pr.state !== 'open') { - console.log(`PR is ${pr.state}, skipping auto-merge`); - return; - } - - if (pr.user?.login !== 'fern-api' && pr.user?.login !== 'fern-api[bot]') { - console.log(`PR was not opened by fern-api user (opened by: ${pr.user?.login}), skipping auto-merge`); - return; - } - - console.log(`PR #${PR_NUMBER} is open, has release label, and was opened by authorized user (${pr.user?.login}), waiting for checks...`); - - const startTime = Date.now(); - - while (Date.now() - startTime < MAX_WAIT_TIME) { - try { - const { data: checkRuns } = await octokit.rest.checks.listForRef({ - owner, - repo, - ref: HEAD_SHA, - }); - - console.log(`Found ${checkRuns.total_count} check runs`); - - const checks: CheckRun[] = checkRuns.check_runs.map(run => ({ - status: run.status, - conclusion: run.conclusion, - name: run.name, - })); - - const autoMergeChecks = checks.filter(check => isAutoMergeCheck(check.name)); - if (autoMergeChecks.length > 0) { - console.log(`Excluding ${autoMergeChecks.length} auto-merge checks:`, - autoMergeChecks.map(c => c.name).join(', ')); - } - - if (checkRuns.total_count === 0) { - console.log('No check runs found, waiting...'); - await sleep(POLL_INTERVAL); - continue; - } - - const pendingChecks = checks.filter(check => - check.status !== 'completed' && !isAutoMergeCheck(check.name) - ); - if (pendingChecks.length > 0) { - console.log(`Waiting for ${pendingChecks.length} checks to complete:`, - pendingChecks.map(c => c.name).join(', ')); - await sleep(POLL_INTERVAL); - continue; - } - - const failedChecks = checks.filter(check => - check.conclusion !== 'success' && - check.conclusion !== 'neutral' && - check.conclusion !== 'skipped' && - !isAutoMergeCheck(check.name) - ); - - if (failedChecks.length > 0) { - console.log('Some checks failed, cannot auto-merge:'); - failedChecks.forEach(check => { - console.log(` - ${check.name}: ${check.conclusion}`); - }); - return; - } - - console.log('All checks passed! Attempting to merge PR...'); - - try { - await octokit.rest.pulls.merge({ - owner, - repo, - pull_number: PR_NUMBER, - merge_method: 'squash', - commit_title: `${pr.title} (#${PR_NUMBER})`, - }); - - console.log(`Successfully auto-merged PR #${PR_NUMBER}`); - return; - } catch (mergeError: any) { - if (mergeError.status === 405) { - console.log('PR cannot be merged (may have conflicts or branch protection rules)'); - } else { - console.error('Error merging PR:', mergeError.message); - } - return; - } - - } catch (error: any) { - console.error('Error checking status:', error.message); - await sleep(POLL_INTERVAL); - } - } - - console.log('Timeout reached, stopping auto-merge process'); -}; - -const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); - -main().catch(console.error); diff --git a/ee/automation/src/create-release.ts b/ee/automation/src/create-release.ts deleted file mode 100644 index e87b5fcbc..000000000 --- a/ee/automation/src/create-release.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Octokit } from '@octokit/rest'; -import { getGithubToken } from './auth.js'; -import dotenv from 'dotenv'; -import { getVersion } from './utils.js'; - -dotenv.config(); - -const SDK_REPO = "vellum-client-node"; - -const main = async () => { - const version = getVersion(); - - // Create the release - const auth = await getGithubToken(); - const octokit = new Octokit({ - auth, - }); - - const sdkReleases = await octokit.rest.repos.listReleases({ - owner: "vellum-ai", - repo: SDK_REPO, - }); - if (sdkReleases.data.find((release) => release.name === version)) { - throw new Error(`Release '${version}' already exists in '${SDK_REPO}'`); - } - - const generatorReleases = await octokit.rest.repos.listReleases({ - owner: "vellum-ai", - repo: "vellum-client-generator", - }); - const targetedRelease = generatorReleases.data.find( - (release) => release.name === version - ); - if (!targetedRelease?.body) { - throw new Error( - `Release '${version}' does not exist in 'vellum-client-generator'` - ); - } - - await octokit.rest.repos.createRelease({ - owner: "vellum-ai", - repo: SDK_REPO, - tag_name: version, - make_latest: "true", - name: version, - body: targetedRelease.body, - }); - - console.log(`Successfully created release '${version}'`); -}; - -main(); diff --git a/ee/automation/src/upgrade-workflow-server.ts b/ee/automation/src/upgrade-workflow-server.ts deleted file mode 100644 index 45a49d0f3..000000000 --- a/ee/automation/src/upgrade-workflow-server.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Octokit } from "@octokit/rest"; -import { getGithubToken } from './auth.js'; -import { getVersion } from './utils.js'; - -/* - * This triggers the workflow server version release and lives here for convenience - * so it can take advantage of the existing github app auth token. - */ -const main = async () => { - const version = getVersion(); - console.log("Upgrading workflow server to version", version); - const octokit = new Octokit({ auth: await getGithubToken() }); - await octokit.actions.createWorkflowDispatch({ - owner: "vellum-ai", - repo: "vembda-service", - workflow_id: "version-python-workflow-server.yaml", - ref: "main", - inputs: { - version, - }, - }); - - console.log( - "Successfully triggered workflow server github workflow, version:", - version - ); - process.exit(0); -}; - -main(); diff --git a/ee/automation/src/utils.ts b/ee/automation/src/utils.ts deleted file mode 100644 index 568471542..000000000 --- a/ee/automation/src/utils.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { fileURLToPath } from 'url'; -import path from 'path'; -import fs from 'fs'; - -export function getVersion() { - // Read and parse manifest file from environment variable - const __filename = fileURLToPath(import.meta.url); - const __dirname = path.dirname(__filename); - - const manifestFile = "package.json"; - if (!manifestFile) { - throw new Error('FERN_MANIFEST_FILE environment variable is required'); - } - - const manifestPath = path.join(__dirname, '..', '..', '..', manifestFile); - const manifestContent = fs.readFileSync(manifestPath, 'utf8'); - - // Extract version using regex from environment variable - const versionRegexPattern = "\"version\":\\s*\"([^\"]+)\""; - if (!versionRegexPattern) { - throw new Error('FERN_VERSION_REGEX environment variable is required'); - } - - const versionRegex = new RegExp(versionRegexPattern); - const version = manifestContent.match(versionRegex)?.[1]; - - if (!version) { - throw new Error(`Could not find version in ${manifestFile} using pattern ${versionRegexPattern}`); - } - - // Sanitize version by removing 'v' prefix if present - const sanitizedVersion = version.replace(/^v\.?/, ''); - - console.log('Found Version:', sanitizedVersion); - return sanitizedVersion; -} diff --git a/ee/automation/tsconfig.json b/ee/automation/tsconfig.json deleted file mode 100644 index ed37b6749..000000000 --- a/ee/automation/tsconfig.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "outDir": "lib", - "module": "esnext", - "target": "esnext", - "lib": ["dom", "dom.iterable", "esnext"], - "jsx": "react-jsx", - "moduleResolution": "node", - "resolveJsonModule": true, - "noImplicitAny": true, - "noImplicitThis": true, - "skipLibCheck": true, - "noFallthroughCasesInSwitch": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "isolatedModules": true, - "baseUrl": "./src", - "paths": { - "src/*": ["*"] - }, - "declaration": true, - "noUncheckedIndexedAccess": true, - "noImplicitReturns": true, - "types": ["node"] - }, - "include": ["./src/**/*"], - "ts-node": { - "esm": true, - "experimentalSpecifierResolution": "node" - } -} diff --git a/package.json b/package.json index aa8f7cb5b..3bbdca63d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vellum-ai", - "version": "1.10.0", + "version": "1.10.1", "private": false, "repository": "https://github.com/vellum-ai/vellum-client-node", "license": "MIT", @@ -42,8 +42,5 @@ "os": false, "path": false }, - "packageManager": "yarn@1.22.22", - "resolutions": { - "strip-ansi": "^6.0.1" - } -} \ No newline at end of file + "packageManager": "yarn@1.22.22" +} diff --git a/reference.md b/reference.md index 539b26aeb..6160e81d8 100644 --- a/reference.md +++ b/reference.md @@ -78,7 +78,7 @@ await client.submitWorkflowExecutionActuals({ ## Integrations -
client.integrations.retrieveIntegrationToolDefinition(integrationName, integrationProvider, toolName) -> Vellum.ComponentsSchemasComposioToolDefinition +
client.integrations.retrieveIntegrationToolDefinition(integrationProvider, integrationName, toolName) -> Vellum.ComponentsSchemasComposioToolDefinition
@@ -91,7 +91,7 @@ await client.submitWorkflowExecutionActuals({
```typescript -await client.integrations.retrieveIntegrationToolDefinition("integration_name", "integration_provider", "tool_name"); +await client.integrations.retrieveIntegrationToolDefinition("integration_provider", "integration_name", "tool_name"); ```
@@ -107,7 +107,7 @@ await client.integrations.retrieveIntegrationToolDefinition("integration_name",
-**integrationName:** `string` — The integration name +**integrationProvider:** `string` — The integration provider name
@@ -115,7 +115,7 @@ await client.integrations.retrieveIntegrationToolDefinition("integration_name",
-**integrationProvider:** `string` — The integration provider name +**integrationName:** `string` — The integration name
@@ -142,7 +142,7 @@ await client.integrations.retrieveIntegrationToolDefinition("integration_name",
-
client.integrations.executeIntegrationTool(integrationName, integrationProvider, toolName, { ...params }) -> Vellum.ComponentsSchemasComposioExecuteToolResponse +
client.integrations.executeIntegrationTool(integrationProvider, integrationName, toolName, { ...params }) -> Vellum.ComponentsSchemasComposioExecuteToolResponse
@@ -155,7 +155,7 @@ await client.integrations.retrieveIntegrationToolDefinition("integration_name",
```typescript -await client.integrations.executeIntegrationTool("integration_name", "integration_provider", "tool_name", { +await client.integrations.executeIntegrationTool("integration_provider", "integration_name", "tool_name", { provider: "COMPOSIO", arguments: { arguments: { @@ -178,7 +178,7 @@ await client.integrations.executeIntegrationTool("integration_name", "integratio
-**integrationName:** `string` — The integration name +**integrationProvider:** `string` — The integration provider name
@@ -186,7 +186,7 @@ await client.integrations.executeIntegrationTool("integration_name", "integratio
-**integrationProvider:** `string` — The integration provider name +**integrationName:** `string` — The integration name
@@ -974,7 +974,7 @@ await client.deployments.retrieve("id");
-
client.deployments.deploymentHistoryItemRetrieve(historyIdOrReleaseTag, id) -> Vellum.DeploymentHistoryItem +
client.deployments.deploymentHistoryItemRetrieve(id, historyIdOrReleaseTag) -> Vellum.DeploymentHistoryItem
@@ -1003,7 +1003,7 @@ DEPRECATED: This endpoint is deprecated and will be removed in a future release.
```typescript -await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_tag", "id"); +await client.deployments.deploymentHistoryItemRetrieve("id", "history_id_or_release_tag"); ```
@@ -1019,7 +1019,7 @@ await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_ta
-**historyIdOrReleaseTag:** `string` — Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve. +**id:** `string` — Either the Prompt Deployment's ID or its unique name
@@ -1027,7 +1027,7 @@ await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_ta
-**id:** `string` — Either the Prompt Deployment's ID or its unique name +**historyIdOrReleaseTag:** `string` — Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve.
@@ -1838,7 +1838,7 @@ await client.documentIndexes.partialUpdate("id");
-
client.documentIndexes.addDocument(documentId, id) -> void +
client.documentIndexes.addDocument(id, documentId) -> void
@@ -1866,7 +1866,7 @@ Adds a previously uploaded Document to the specified Document Index.
```typescript -await client.documentIndexes.addDocument("document_id", "id"); +await client.documentIndexes.addDocument("id", "document_id"); ```
@@ -1882,7 +1882,7 @@ await client.documentIndexes.addDocument("document_id", "id");
-**documentId:** `string` — Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to add. +**id:** `string` — Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index to which you'd like to add the Document.
@@ -1890,7 +1890,7 @@ await client.documentIndexes.addDocument("document_id", "id");
-**id:** `string` — Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index to which you'd like to add the Document. +**documentId:** `string` — Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to add.
@@ -1909,7 +1909,7 @@ await client.documentIndexes.addDocument("document_id", "id");
-
client.documentIndexes.removeDocument(documentId, id) -> void +
client.documentIndexes.removeDocument(id, documentId) -> void
@@ -1937,7 +1937,7 @@ Removes a Document from a Document Index without deleting the Document itself.
```typescript -await client.documentIndexes.removeDocument("document_id", "id"); +await client.documentIndexes.removeDocument("id", "document_id"); ```
@@ -1953,7 +1953,7 @@ await client.documentIndexes.removeDocument("document_id", "id");
-**documentId:** `string` — Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove. +**id:** `string` — Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document.
@@ -1961,7 +1961,7 @@ await client.documentIndexes.removeDocument("document_id", "id");
-**id:** `string` — Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document. +**documentId:** `string` — Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove.
@@ -2516,7 +2516,7 @@ await client.integrationAuthConfigs.listIntegrationAuthConfigs(); ## IntegrationProviders -
client.integrationProviders.retrieveIntegrationProviderToolDefinition(integrationName, integrationProvider, toolName) -> Vellum.ComponentsSchemasComposioToolDefinition +
client.integrationProviders.retrieveIntegrationProviderToolDefinition(integrationProvider, integrationName, toolName) -> Vellum.ComponentsSchemasComposioToolDefinition
@@ -2545,8 +2545,8 @@ Retrieve a specific integration tool definition. ```typescript await client.integrationProviders.retrieveIntegrationProviderToolDefinition( - "integration_name", "integration_provider", + "integration_name", "tool_name", ); ``` @@ -2564,7 +2564,7 @@ await client.integrationProviders.retrieveIntegrationProviderToolDefinition(
-**integrationName:** `string` — The integration name +**integrationProvider:** `string` — The integration provider name
@@ -2572,7 +2572,7 @@ await client.integrationProviders.retrieveIntegrationProviderToolDefinition(
-**integrationProvider:** `string` — The integration provider name +**integrationName:** `string` — The integration name
@@ -2741,7 +2741,7 @@ await client.metricDefinitions.executeMetricDefinition("id", {
-
client.metricDefinitions.metricDefinitionHistoryItemRetrieve(historyIdOrReleaseTag, id) -> Vellum.MetricDefinitionHistoryItem +
client.metricDefinitions.metricDefinitionHistoryItemRetrieve(id, historyIdOrReleaseTag) -> Vellum.MetricDefinitionHistoryItem
@@ -2754,7 +2754,7 @@ await client.metricDefinitions.executeMetricDefinition("id", {
```typescript -await client.metricDefinitions.metricDefinitionHistoryItemRetrieve("history_id_or_release_tag", "id"); +await client.metricDefinitions.metricDefinitionHistoryItemRetrieve("id", "history_id_or_release_tag"); ```
@@ -2770,7 +2770,7 @@ await client.metricDefinitions.metricDefinitionHistoryItemRetrieve("history_id_o
-**historyIdOrReleaseTag:** `string` — Either the UUID of Metric Definition History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Metric Definition History Item you'd like to retrieve. +**id:** `string` — A UUID string identifying this metric definition.
@@ -2778,7 +2778,7 @@ await client.metricDefinitions.metricDefinitionHistoryItemRetrieve("history_id_o
-**id:** `string` — A UUID string identifying this metric definition. +**historyIdOrReleaseTag:** `string` — Either the UUID of Metric Definition History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Metric Definition History Item you'd like to retrieve.
@@ -4051,7 +4051,7 @@ await client.workflowDeployments.listWorkflowDeploymentEventExecutions("id");
-
client.workflowDeployments.workflowDeploymentEventExecution(executionId, id) -> Vellum.WorkflowEventExecutionRead +
client.workflowDeployments.workflowDeploymentEventExecution(id, executionId) -> Vellum.WorkflowEventExecutionRead
@@ -4064,7 +4064,7 @@ await client.workflowDeployments.listWorkflowDeploymentEventExecutions("id");
```typescript -await client.workflowDeployments.workflowDeploymentEventExecution("execution_id", "id"); +await client.workflowDeployments.workflowDeploymentEventExecution("id", "execution_id"); ```
@@ -4080,7 +4080,7 @@ await client.workflowDeployments.workflowDeploymentEventExecution("execution_id"
-**executionId:** `string` +**id:** `string`
@@ -4088,7 +4088,7 @@ await client.workflowDeployments.workflowDeploymentEventExecution("execution_id"
-**id:** `string` +**executionId:** `string`
@@ -4107,7 +4107,7 @@ await client.workflowDeployments.workflowDeploymentEventExecution("execution_id"
-
client.workflowDeployments.workflowDeploymentHistoryItemRetrieve(historyIdOrReleaseTag, id) -> Vellum.WorkflowDeploymentHistoryItem +
client.workflowDeployments.workflowDeploymentHistoryItemRetrieve(id, historyIdOrReleaseTag) -> Vellum.WorkflowDeploymentHistoryItem
@@ -4136,7 +4136,7 @@ DEPRECATED: This endpoint is deprecated and will be removed in a future release.
```typescript -await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_id_or_release_tag", "id"); +await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("id", "history_id_or_release_tag"); ```
@@ -4152,7 +4152,7 @@ await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_
-**historyIdOrReleaseTag:** `string` — Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve. +**id:** `string` — Either the Workflow Deployment's ID or its unique name
@@ -4160,7 +4160,7 @@ await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_
-**id:** `string` — Either the Workflow Deployment's ID or its unique name +**historyIdOrReleaseTag:** `string` — Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve.
@@ -4723,6 +4723,62 @@ await client.workflowSandboxes.listWorkflowSandboxExamples(); ## Workflows +
client.workflows.pull(id, { ...params }) -> stream.Readable +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.workflows.pull("id"); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` — The ID of the Workflow to pull from + +
+
+ +
+
+ +**request:** `Vellum.WorkflowsPullRequest` + +
+
+ +
+
+ +**requestOptions:** `Workflows.RequestOptions` + +
+
+
+
+ +
+
+
+
client.workflows.retrieveState(spanId) -> Vellum.WorkflowResolvedState
diff --git a/src/Client.ts b/src/Client.ts index a74ef3d83..049dd5a7d 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -216,11 +216,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -324,11 +324,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -432,11 +432,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -525,11 +525,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -649,11 +649,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -740,11 +740,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -870,11 +870,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -966,11 +966,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1082,11 +1082,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1185,11 +1185,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1284,11 +1284,11 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/adHoc/client/Client.ts b/src/api/resources/adHoc/client/Client.ts index 5c7de2009..e1f1500ec 100644 --- a/src/api/resources/adHoc/client/Client.ts +++ b/src/api/resources/adHoc/client/Client.ts @@ -101,11 +101,11 @@ export class AdHoc { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -189,11 +189,11 @@ export class AdHoc { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/containerImages/client/Client.ts b/src/api/resources/containerImages/client/Client.ts index eecaf3339..db9fb31b4 100644 --- a/src/api/resources/containerImages/client/Client.ts +++ b/src/api/resources/containerImages/client/Client.ts @@ -84,11 +84,11 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -172,11 +172,11 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -254,11 +254,11 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -345,11 +345,11 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/deployments/client/Client.ts b/src/api/resources/deployments/client/Client.ts index 48de7273b..7542fa496 100644 --- a/src/api/resources/deployments/client/Client.ts +++ b/src/api/resources/deployments/client/Client.ts @@ -90,11 +90,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -178,11 +178,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -235,26 +235,26 @@ export class Deployments { * DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the * `retrieve_prompt_deployment_release` xendpoint instead. * - * @param {string} historyIdOrReleaseTag - Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve. * @param {string} id - Either the Prompt Deployment's ID or its unique name + * @param {string} historyIdOrReleaseTag - Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve. * @param {Deployments.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_tag", "id") + * await client.deployments.deploymentHistoryItemRetrieve("id", "history_id_or_release_tag") */ public deploymentHistoryItemRetrieve( - historyIdOrReleaseTag: string, id: string, + historyIdOrReleaseTag: string, requestOptions?: Deployments.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( - this.__deploymentHistoryItemRetrieve(historyIdOrReleaseTag, id, requestOptions), + this.__deploymentHistoryItemRetrieve(id, historyIdOrReleaseTag, requestOptions), ); } private async __deploymentHistoryItemRetrieve( - historyIdOrReleaseTag: string, id: string, + historyIdOrReleaseTag: string, requestOptions?: Deployments.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -271,11 +271,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -383,11 +383,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -476,11 +476,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -573,11 +573,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -670,11 +670,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -783,11 +783,11 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/documentIndexes/client/Client.ts b/src/api/resources/documentIndexes/client/Client.ts index 5acb6acc5..94d54c61a 100644 --- a/src/api/resources/documentIndexes/client/Client.ts +++ b/src/api/resources/documentIndexes/client/Client.ts @@ -94,11 +94,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -191,11 +191,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -288,11 +288,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -381,11 +381,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -466,11 +466,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -548,11 +548,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -607,24 +607,24 @@ export class DocumentIndexes { /** * Adds a previously uploaded Document to the specified Document Index. * - * @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to add. * @param {string} id - Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index to which you'd like to add the Document. + * @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to add. * @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.documentIndexes.addDocument("document_id", "id") + * await client.documentIndexes.addDocument("id", "document_id") */ public addDocument( - documentId: string, id: string, + documentId: string, requestOptions?: DocumentIndexes.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__addDocument(documentId, id, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__addDocument(id, documentId, requestOptions)); } private async __addDocument( - documentId: string, id: string, + documentId: string, requestOptions?: DocumentIndexes.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -641,11 +641,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -691,24 +691,24 @@ export class DocumentIndexes { /** * Removes a Document from a Document Index without deleting the Document itself. * - * @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove. * @param {string} id - Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document. + * @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove. * @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.documentIndexes.removeDocument("document_id", "id") + * await client.documentIndexes.removeDocument("id", "document_id") */ public removeDocument( - documentId: string, id: string, + documentId: string, requestOptions?: DocumentIndexes.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__removeDocument(documentId, id, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__removeDocument(id, documentId, requestOptions)); } private async __removeDocument( - documentId: string, id: string, + documentId: string, requestOptions?: DocumentIndexes.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -725,11 +725,11 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts index ec0b90c60..328f3891f 100644 --- a/src/api/resources/documents/client/Client.ts +++ b/src/api/resources/documents/client/Client.ts @@ -94,11 +94,11 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -182,11 +182,11 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -266,11 +266,11 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -348,11 +348,11 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -466,11 +466,11 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts index eb300db70..930507469 100644 --- a/src/api/resources/environments/client/Client.ts +++ b/src/api/resources/environments/client/Client.ts @@ -67,11 +67,11 @@ export class Environments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index 3ce16c3d9..bfe30aa87 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -111,11 +111,11 @@ export class Events { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/folderEntities/client/Client.ts b/src/api/resources/folderEntities/client/Client.ts index 2a31609f5..c28a67da0 100644 --- a/src/api/resources/folderEntities/client/Client.ts +++ b/src/api/resources/folderEntities/client/Client.ts @@ -94,11 +94,11 @@ export class FolderEntities { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -194,11 +194,11 @@ export class FolderEntities { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/integrationAuthConfigs/client/Client.ts b/src/api/resources/integrationAuthConfigs/client/Client.ts index 439d61734..8259f1346 100644 --- a/src/api/resources/integrationAuthConfigs/client/Client.ts +++ b/src/api/resources/integrationAuthConfigs/client/Client.ts @@ -58,7 +58,7 @@ export class IntegrationAuthConfigs { ): Promise> { const { expand, integrationName, integrationProvider, limit, offset, ordering, search } = request; const _queryParams: Record = {}; - if (expand != null) { + if (expand !== undefined) { if (Array.isArray(expand)) { _queryParams["expand"] = expand.map((item) => item); } else { @@ -104,11 +104,11 @@ export class IntegrationAuthConfigs { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.ts b/src/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.ts index f9283f4f1..8a3ccc045 100644 --- a/src/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.ts +++ b/src/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.ts @@ -11,7 +11,7 @@ export interface ListIntegrationAuthConfigsRequest { * The response fields to expand for more information. * - 'integration_credentials' expands the list of integration credentials that the authenticated entity has access to for the auth config. */ - expand?: string | string[]; + expand?: (string | null) | (string | null)[]; integrationName?: string | null; integrationProvider?: string | null; /** diff --git a/src/api/resources/integrationProviders/client/Client.ts b/src/api/resources/integrationProviders/client/Client.ts index 90fc26385..a703ddd85 100644 --- a/src/api/resources/integrationProviders/client/Client.ts +++ b/src/api/resources/integrationProviders/client/Client.ts @@ -39,24 +39,24 @@ export class IntegrationProviders { /** * Retrieve a specific integration tool definition. * - * @param {string} integrationName - The integration name * @param {string} integrationProvider - The integration provider name + * @param {string} integrationName - The integration name * @param {string} toolName - The tool's unique name, as specified by the integration provider * @param {IntegrationProviders.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.integrationProviders.retrieveIntegrationProviderToolDefinition("integration_name", "integration_provider", "tool_name") + * await client.integrationProviders.retrieveIntegrationProviderToolDefinition("integration_provider", "integration_name", "tool_name") */ public retrieveIntegrationProviderToolDefinition( - integrationName: string, integrationProvider: string, + integrationName: string, toolName: string, requestOptions?: IntegrationProviders.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( this.__retrieveIntegrationProviderToolDefinition( - integrationName, integrationProvider, + integrationName, toolName, requestOptions, ), @@ -64,8 +64,8 @@ export class IntegrationProviders { } private async __retrieveIntegrationProviderToolDefinition( - integrationName: string, integrationProvider: string, + integrationName: string, toolName: string, requestOptions?: IntegrationProviders.RequestOptions, ): Promise> { @@ -83,11 +83,11 @@ export class IntegrationProviders { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -203,11 +203,11 @@ export class IntegrationProviders { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/integrations/client/Client.ts b/src/api/resources/integrations/client/Client.ts index 205ea9ded..1731f2325 100644 --- a/src/api/resources/integrations/client/Client.ts +++ b/src/api/resources/integrations/client/Client.ts @@ -37,30 +37,30 @@ export class Integrations { constructor(protected readonly _options: Integrations.Options) {} /** - * @param {string} integrationName - The integration name * @param {string} integrationProvider - The integration provider name + * @param {string} integrationName - The integration name * @param {string} toolName - The tool's unique name, as specified by the integration provider * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vellum.NotFoundError} * * @example - * await client.integrations.retrieveIntegrationToolDefinition("integration_name", "integration_provider", "tool_name") + * await client.integrations.retrieveIntegrationToolDefinition("integration_provider", "integration_name", "tool_name") */ public retrieveIntegrationToolDefinition( - integrationName: string, integrationProvider: string, + integrationName: string, toolName: string, requestOptions?: Integrations.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( - this.__retrieveIntegrationToolDefinition(integrationName, integrationProvider, toolName, requestOptions), + this.__retrieveIntegrationToolDefinition(integrationProvider, integrationName, toolName, requestOptions), ); } private async __retrieveIntegrationToolDefinition( - integrationName: string, integrationProvider: string, + integrationName: string, toolName: string, requestOptions?: Integrations.RequestOptions, ): Promise> { @@ -78,11 +78,11 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -139,8 +139,8 @@ export class Integrations { } /** - * @param {string} integrationName - The integration name * @param {string} integrationProvider - The integration provider name + * @param {string} integrationName - The integration name * @param {string} toolName - The tool's unique name, as specified by the integration provider * @param {Vellum.ComponentsSchemasComposioExecuteToolRequest} request * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration. @@ -150,7 +150,7 @@ export class Integrations { * @throws {@link Vellum.NotFoundError} * * @example - * await client.integrations.executeIntegrationTool("integration_name", "integration_provider", "tool_name", { + * await client.integrations.executeIntegrationTool("integration_provider", "integration_name", "tool_name", { * provider: "COMPOSIO", * arguments: { * "arguments": { @@ -160,20 +160,20 @@ export class Integrations { * }) */ public executeIntegrationTool( - integrationName: string, integrationProvider: string, + integrationName: string, toolName: string, request: Vellum.ComponentsSchemasComposioExecuteToolRequest, requestOptions?: Integrations.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( - this.__executeIntegrationTool(integrationName, integrationProvider, toolName, request, requestOptions), + this.__executeIntegrationTool(integrationProvider, integrationName, toolName, request, requestOptions), ); } private async __executeIntegrationTool( - integrationName: string, integrationProvider: string, + integrationName: string, toolName: string, request: Vellum.ComponentsSchemasComposioExecuteToolRequest, requestOptions?: Integrations.RequestOptions, @@ -192,11 +192,11 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -319,11 +319,11 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -407,11 +407,11 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/metricDefinitions/client/Client.ts b/src/api/resources/metricDefinitions/client/Client.ts index 3fe3981ac..096d27695 100644 --- a/src/api/resources/metricDefinitions/client/Client.ts +++ b/src/api/resources/metricDefinitions/client/Client.ts @@ -81,11 +81,11 @@ export class MetricDefinitions { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -138,26 +138,26 @@ export class MetricDefinitions { } /** - * @param {string} historyIdOrReleaseTag - Either the UUID of Metric Definition History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Metric Definition History Item you'd like to retrieve. * @param {string} id - A UUID string identifying this metric definition. + * @param {string} historyIdOrReleaseTag - Either the UUID of Metric Definition History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Metric Definition History Item you'd like to retrieve. * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.metricDefinitions.metricDefinitionHistoryItemRetrieve("history_id_or_release_tag", "id") + * await client.metricDefinitions.metricDefinitionHistoryItemRetrieve("id", "history_id_or_release_tag") */ public metricDefinitionHistoryItemRetrieve( - historyIdOrReleaseTag: string, id: string, + historyIdOrReleaseTag: string, requestOptions?: MetricDefinitions.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( - this.__metricDefinitionHistoryItemRetrieve(historyIdOrReleaseTag, id, requestOptions), + this.__metricDefinitionHistoryItemRetrieve(id, historyIdOrReleaseTag, requestOptions), ); } private async __metricDefinitionHistoryItemRetrieve( - historyIdOrReleaseTag: string, id: string, + historyIdOrReleaseTag: string, requestOptions?: MetricDefinitions.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -174,11 +174,11 @@ export class MetricDefinitions { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/mlModels/client/Client.ts b/src/api/resources/mlModels/client/Client.ts index e2bd861d5..db2cfee15 100644 --- a/src/api/resources/mlModels/client/Client.ts +++ b/src/api/resources/mlModels/client/Client.ts @@ -70,11 +70,11 @@ export class MlModels { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/organizations/client/Client.ts b/src/api/resources/organizations/client/Client.ts index deaa8abd7..0a2dd6ccd 100644 --- a/src/api/resources/organizations/client/Client.ts +++ b/src/api/resources/organizations/client/Client.ts @@ -67,11 +67,11 @@ export class Organizations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/prompts/client/Client.ts b/src/api/resources/prompts/client/Client.ts index b22d0e544..32476883e 100644 --- a/src/api/resources/prompts/client/Client.ts +++ b/src/api/resources/prompts/client/Client.ts @@ -82,11 +82,11 @@ export class Prompts { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json", @@ -202,11 +202,11 @@ export class Prompts { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sandboxes/client/Client.ts b/src/api/resources/sandboxes/client/Client.ts index 79298f4eb..b5e21f4c5 100644 --- a/src/api/resources/sandboxes/client/Client.ts +++ b/src/api/resources/sandboxes/client/Client.ts @@ -74,11 +74,11 @@ export class Sandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -181,11 +181,11 @@ export class Sandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -272,11 +272,11 @@ export class Sandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/testSuiteRuns/client/Client.ts b/src/api/resources/testSuiteRuns/client/Client.ts index 8c20b24ba..9d60626f6 100644 --- a/src/api/resources/testSuiteRuns/client/Client.ts +++ b/src/api/resources/testSuiteRuns/client/Client.ts @@ -77,11 +77,11 @@ export class TestSuiteRuns { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -165,11 +165,11 @@ export class TestSuiteRuns { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -241,7 +241,7 @@ export class TestSuiteRuns { ): Promise> { const { expand, limit, offset } = request; const _queryParams: Record = {}; - if (expand != null) { + if (expand !== undefined) { if (Array.isArray(expand)) { _queryParams["expand"] = expand.map((item) => item); } else { @@ -271,11 +271,11 @@ export class TestSuiteRuns { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/testSuiteRuns/client/requests/TestSuiteRunsListExecutionsRequest.ts b/src/api/resources/testSuiteRuns/client/requests/TestSuiteRunsListExecutionsRequest.ts index 7d85e8ded..f6ae6d7f3 100644 --- a/src/api/resources/testSuiteRuns/client/requests/TestSuiteRunsListExecutionsRequest.ts +++ b/src/api/resources/testSuiteRuns/client/requests/TestSuiteRunsListExecutionsRequest.ts @@ -13,7 +13,7 @@ export interface TestSuiteRunsListExecutionsRequest { * - 'metric_results.metric_definition' expands the metric definition for each metric result. * - 'metric_results.metric_definition.name' expands the metric definition name for each metric result. */ - expand?: string | string[]; + expand?: (string | null) | (string | null)[]; /** * Number of results to return per page. */ diff --git a/src/api/resources/testSuites/client/Client.ts b/src/api/resources/testSuites/client/Client.ts index af8073295..63d00f67d 100644 --- a/src/api/resources/testSuites/client/Client.ts +++ b/src/api/resources/testSuites/client/Client.ts @@ -84,11 +84,11 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -198,11 +198,11 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -284,11 +284,11 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -390,11 +390,11 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workflowDeployments/client/Client.ts b/src/api/resources/workflowDeployments/client/Client.ts index 902bf40d4..5a66151aa 100644 --- a/src/api/resources/workflowDeployments/client/Client.ts +++ b/src/api/resources/workflowDeployments/client/Client.ts @@ -90,11 +90,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -178,11 +178,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -286,11 +286,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -343,26 +343,26 @@ export class WorkflowDeployments { } /** - * @param {string} executionId * @param {string} id + * @param {string} executionId * @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.workflowDeployments.workflowDeploymentEventExecution("execution_id", "id") + * await client.workflowDeployments.workflowDeploymentEventExecution("id", "execution_id") */ public workflowDeploymentEventExecution( - executionId: string, id: string, + executionId: string, requestOptions?: WorkflowDeployments.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( - this.__workflowDeploymentEventExecution(executionId, id, requestOptions), + this.__workflowDeploymentEventExecution(id, executionId, requestOptions), ); } private async __workflowDeploymentEventExecution( - executionId: string, id: string, + executionId: string, requestOptions?: WorkflowDeployments.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -379,11 +379,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -438,26 +438,26 @@ export class WorkflowDeployments { * DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the * `retrieve_workflow_deployment_release` endpoint instead. * - * @param {string} historyIdOrReleaseTag - Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve. * @param {string} id - Either the Workflow Deployment's ID or its unique name + * @param {string} historyIdOrReleaseTag - Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve. * @param {WorkflowDeployments.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_id_or_release_tag", "id") + * await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("id", "history_id_or_release_tag") */ public workflowDeploymentHistoryItemRetrieve( - historyIdOrReleaseTag: string, id: string, + historyIdOrReleaseTag: string, requestOptions?: WorkflowDeployments.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise( - this.__workflowDeploymentHistoryItemRetrieve(historyIdOrReleaseTag, id, requestOptions), + this.__workflowDeploymentHistoryItemRetrieve(id, historyIdOrReleaseTag, requestOptions), ); } private async __workflowDeploymentHistoryItemRetrieve( - historyIdOrReleaseTag: string, id: string, + historyIdOrReleaseTag: string, requestOptions?: WorkflowDeployments.RequestOptions, ): Promise> { const _response = await core.fetcher({ @@ -474,11 +474,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -586,11 +586,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -679,11 +679,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -774,11 +774,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -883,11 +883,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -978,11 +978,11 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workflowExecutions/client/Client.ts b/src/api/resources/workflowExecutions/client/Client.ts index 6e5a91b0b..3000c3b34 100644 --- a/src/api/resources/workflowExecutions/client/Client.ts +++ b/src/api/resources/workflowExecutions/client/Client.ts @@ -86,11 +86,11 @@ export class WorkflowExecutions { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workflowSandboxes/client/Client.ts b/src/api/resources/workflowSandboxes/client/Client.ts index 16f957dc8..63a4b7f82 100644 --- a/src/api/resources/workflowSandboxes/client/Client.ts +++ b/src/api/resources/workflowSandboxes/client/Client.ts @@ -71,11 +71,11 @@ export class WorkflowSandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -181,11 +181,11 @@ export class WorkflowSandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workflows/client/Client.ts b/src/api/resources/workflows/client/Client.ts index fdd2ac74d..9910e2a73 100644 --- a/src/api/resources/workflows/client/Client.ts +++ b/src/api/resources/workflows/client/Client.ts @@ -100,11 +100,11 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -188,11 +188,11 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -315,11 +315,11 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -410,11 +410,11 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workflows/client/requests/WorkflowsPullRequest.ts b/src/api/resources/workflows/client/requests/WorkflowsPullRequest.ts index af07049bf..0e22d83b1 100644 --- a/src/api/resources/workflows/client/requests/WorkflowsPullRequest.ts +++ b/src/api/resources/workflows/client/requests/WorkflowsPullRequest.ts @@ -2,6 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ +/** + * @example + * {} + */ export interface WorkflowsPullRequest { excludeCode?: boolean | null; excludeDisplay?: boolean | null; diff --git a/src/api/resources/workspaceSecrets/client/Client.ts b/src/api/resources/workspaceSecrets/client/Client.ts index 9d1924347..65652e813 100644 --- a/src/api/resources/workspaceSecrets/client/Client.ts +++ b/src/api/resources/workspaceSecrets/client/Client.ts @@ -70,11 +70,11 @@ export class WorkspaceSecrets { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -160,11 +160,11 @@ export class WorkspaceSecrets { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/workspaces/client/Client.ts b/src/api/resources/workspaces/client/Client.ts index e97d35981..d770ac861 100644 --- a/src/api/resources/workspaces/client/Client.ts +++ b/src/api/resources/workspaces/client/Client.ts @@ -67,11 +67,11 @@ export class Workspaces { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : "2025-07-30", + : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", - "X-Fern-SDK-Version": "1.10.0", - "User-Agent": "vellum-ai/1.10.0", + "X-Fern-SDK-Version": "1.10.1", + "User-Agent": "vellum-ai/1.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/CodeExecutionNodeJsonResult.ts b/src/api/types/CodeExecutionNodeJsonResult.ts index 30001914b..3f1336f07 100644 --- a/src/api/types/CodeExecutionNodeJsonResult.ts +++ b/src/api/types/CodeExecutionNodeJsonResult.ts @@ -5,5 +5,5 @@ export interface CodeExecutionNodeJsonResult { id: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/ExecutionJsonVellumValue.ts b/src/api/types/ExecutionJsonVellumValue.ts index 5da42b219..d7032d140 100644 --- a/src/api/types/ExecutionJsonVellumValue.ts +++ b/src/api/types/ExecutionJsonVellumValue.ts @@ -10,5 +10,5 @@ export interface ExecutionJsonVellumValue { id: string; name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/ExternalInputDescriptor.ts b/src/api/types/ExternalInputDescriptor.ts index b40a5cce7..f56b8b9a5 100644 --- a/src/api/types/ExternalInputDescriptor.ts +++ b/src/api/types/ExternalInputDescriptor.ts @@ -7,6 +7,6 @@ import * as Vellum from "../index"; export interface ExternalInputDescriptor { types: Vellum.CodeResourceDefinition[]; inputsClass?: Vellum.CodeResourceDefinition | null; - instance?: unknown; + instance?: unknown | null; name: string; } diff --git a/src/api/types/JsonInput.ts b/src/api/types/JsonInput.ts index 350eac3b6..00586b188 100644 --- a/src/api/types/JsonInput.ts +++ b/src/api/types/JsonInput.ts @@ -9,5 +9,5 @@ export interface JsonInput { /** The variable's name */ name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/JsonInputRequest.ts b/src/api/types/JsonInputRequest.ts index 2ff4609b3..258e70d3c 100644 --- a/src/api/types/JsonInputRequest.ts +++ b/src/api/types/JsonInputRequest.ts @@ -9,5 +9,5 @@ export interface JsonInputRequest { /** The variable's name */ name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/JsonVellumValue.ts b/src/api/types/JsonVellumValue.ts index d875c0fca..63034854a 100644 --- a/src/api/types/JsonVellumValue.ts +++ b/src/api/types/JsonVellumValue.ts @@ -7,5 +7,5 @@ */ export interface JsonVellumValue { type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/JsonVellumValueRequest.ts b/src/api/types/JsonVellumValueRequest.ts index 9e8533edc..947c7f5ac 100644 --- a/src/api/types/JsonVellumValueRequest.ts +++ b/src/api/types/JsonVellumValueRequest.ts @@ -7,5 +7,5 @@ */ export interface JsonVellumValueRequest { type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/NamedScenarioInputJsonVariableValueRequest.ts b/src/api/types/NamedScenarioInputJsonVariableValueRequest.ts index 7822f3164..5d44ce110 100644 --- a/src/api/types/NamedScenarioInputJsonVariableValueRequest.ts +++ b/src/api/types/NamedScenarioInputJsonVariableValueRequest.ts @@ -7,6 +7,6 @@ */ export interface NamedScenarioInputJsonVariableValueRequest { type: "JSON"; - value?: unknown; + value?: unknown | null; name: string; } diff --git a/src/api/types/NamedTestCaseJsonVariableValue.ts b/src/api/types/NamedTestCaseJsonVariableValue.ts index 999cc51a8..b02da60ba 100644 --- a/src/api/types/NamedTestCaseJsonVariableValue.ts +++ b/src/api/types/NamedTestCaseJsonVariableValue.ts @@ -7,6 +7,6 @@ */ export interface NamedTestCaseJsonVariableValue { type: "JSON"; - value?: unknown; + value?: unknown | null; name: string; } diff --git a/src/api/types/NamedTestCaseJsonVariableValueRequest.ts b/src/api/types/NamedTestCaseJsonVariableValueRequest.ts index d4bf49129..3aac3a0aa 100644 --- a/src/api/types/NamedTestCaseJsonVariableValueRequest.ts +++ b/src/api/types/NamedTestCaseJsonVariableValueRequest.ts @@ -7,6 +7,6 @@ */ export interface NamedTestCaseJsonVariableValueRequest { type: "JSON"; - value?: unknown; + value?: unknown | null; name: string; } diff --git a/src/api/types/NodeInputCompiledJsonValue.ts b/src/api/types/NodeInputCompiledJsonValue.ts index 9c5543af7..2cc24fcb5 100644 --- a/src/api/types/NodeInputCompiledJsonValue.ts +++ b/src/api/types/NodeInputCompiledJsonValue.ts @@ -6,5 +6,5 @@ export interface NodeInputCompiledJsonValue { nodeInputId: string; key: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/NodeOutputCompiledJsonValue.ts b/src/api/types/NodeOutputCompiledJsonValue.ts index 202dc640b..980bc737f 100644 --- a/src/api/types/NodeOutputCompiledJsonValue.ts +++ b/src/api/types/NodeOutputCompiledJsonValue.ts @@ -9,7 +9,7 @@ import * as Vellum from "../index"; */ export interface NodeOutputCompiledJsonValue { type: "JSON"; - value?: unknown; + value?: unknown | null; nodeOutputId: string; state?: Vellum.WorkflowNodeResultEventState; } diff --git a/src/api/types/PromptRequestJsonInput.ts b/src/api/types/PromptRequestJsonInput.ts index 466e4c834..8cd02f03e 100644 --- a/src/api/types/PromptRequestJsonInput.ts +++ b/src/api/types/PromptRequestJsonInput.ts @@ -6,5 +6,5 @@ export interface PromptRequestJsonInput { /** The variable's name, as defined in the Prompt. */ key: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/ScenarioInputJsonVariableValue.ts b/src/api/types/ScenarioInputJsonVariableValue.ts index 9d692d717..67099c9af 100644 --- a/src/api/types/ScenarioInputJsonVariableValue.ts +++ b/src/api/types/ScenarioInputJsonVariableValue.ts @@ -7,6 +7,6 @@ */ export interface ScenarioInputJsonVariableValue { type: "JSON"; - value?: unknown; + value?: unknown | null; inputVariableId: string; } diff --git a/src/api/types/TemplatingNodeJsonResult.ts b/src/api/types/TemplatingNodeJsonResult.ts index 5e72e0fac..fd93be46a 100644 --- a/src/api/types/TemplatingNodeJsonResult.ts +++ b/src/api/types/TemplatingNodeJsonResult.ts @@ -5,5 +5,5 @@ export interface TemplatingNodeJsonResult { id: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/TerminalNodeJsonResult.ts b/src/api/types/TerminalNodeJsonResult.ts index a3c5f9e10..107992386 100644 --- a/src/api/types/TerminalNodeJsonResult.ts +++ b/src/api/types/TerminalNodeJsonResult.ts @@ -7,5 +7,5 @@ export interface TerminalNodeJsonResult { /** The unique name given to the terminal node that produced this output. */ name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/TestCaseJsonVariableValue.ts b/src/api/types/TestCaseJsonVariableValue.ts index dd85e7fef..4e63b817b 100644 --- a/src/api/types/TestCaseJsonVariableValue.ts +++ b/src/api/types/TestCaseJsonVariableValue.ts @@ -9,5 +9,5 @@ export interface TestCaseJsonVariableValue { variableId: string; name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/TestSuiteRunExecutionJsonOutput.ts b/src/api/types/TestSuiteRunExecutionJsonOutput.ts index 5cc5927a0..c1faaf8f2 100644 --- a/src/api/types/TestSuiteRunExecutionJsonOutput.ts +++ b/src/api/types/TestSuiteRunExecutionJsonOutput.ts @@ -8,6 +8,6 @@ export interface TestSuiteRunExecutionJsonOutput { name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; outputVariableId: string; } diff --git a/src/api/types/TestSuiteRunMetricJsonOutput.ts b/src/api/types/TestSuiteRunMetricJsonOutput.ts index b3381d4b6..87136a8a5 100644 --- a/src/api/types/TestSuiteRunMetricJsonOutput.ts +++ b/src/api/types/TestSuiteRunMetricJsonOutput.ts @@ -6,7 +6,7 @@ * Output for a test suite run metric that is of type NUMBER */ export interface TestSuiteRunMetricJsonOutput { - value?: unknown; + value?: unknown | null; type: "JSON"; name: string; } diff --git a/src/api/types/WorkflowOutputJson.ts b/src/api/types/WorkflowOutputJson.ts index 5ac121249..b02635038 100644 --- a/src/api/types/WorkflowOutputJson.ts +++ b/src/api/types/WorkflowOutputJson.ts @@ -10,5 +10,5 @@ export interface WorkflowOutputJson { /** The output's name, as defined in the workflow */ name: string; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/api/types/WorkflowResultEventOutputDataJson.ts b/src/api/types/WorkflowResultEventOutputDataJson.ts index 7dd31de70..01c0f740c 100644 --- a/src/api/types/WorkflowResultEventOutputDataJson.ts +++ b/src/api/types/WorkflowResultEventOutputDataJson.ts @@ -15,5 +15,5 @@ export interface WorkflowResultEventOutputDataJson { /** The newly output string value. Only relevant for string outputs with a state of STREAMING. */ delta?: string | null; type: "JSON"; - value?: unknown; + value?: unknown | null; } diff --git a/src/serialization/types/CodeExecutionNodeJsonResult.ts b/src/serialization/types/CodeExecutionNodeJsonResult.ts index 2a6464080..ea5351d72 100644 --- a/src/serialization/types/CodeExecutionNodeJsonResult.ts +++ b/src/serialization/types/CodeExecutionNodeJsonResult.ts @@ -12,13 +12,13 @@ export const CodeExecutionNodeJsonResult: core.serialization.ObjectSchema< > = core.serialization.object({ id: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace CodeExecutionNodeJsonResult { export interface Raw { id: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/ExecutionJsonVellumValue.ts b/src/serialization/types/ExecutionJsonVellumValue.ts index 579cdd7bc..be8253a16 100644 --- a/src/serialization/types/ExecutionJsonVellumValue.ts +++ b/src/serialization/types/ExecutionJsonVellumValue.ts @@ -13,7 +13,7 @@ export const ExecutionJsonVellumValue: core.serialization.ObjectSchema< id: core.serialization.string(), name: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace ExecutionJsonVellumValue { @@ -21,6 +21,6 @@ export declare namespace ExecutionJsonVellumValue { id: string; name: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/ExternalInputDescriptor.ts b/src/serialization/types/ExternalInputDescriptor.ts index 90814a941..bf3f584f0 100644 --- a/src/serialization/types/ExternalInputDescriptor.ts +++ b/src/serialization/types/ExternalInputDescriptor.ts @@ -13,7 +13,7 @@ export const ExternalInputDescriptor: core.serialization.ObjectSchema< > = core.serialization.object({ types: core.serialization.list(CodeResourceDefinition), inputsClass: core.serialization.property("inputs_class", CodeResourceDefinition.optionalNullable()), - instance: core.serialization.unknown().optional(), + instance: core.serialization.unknown().optionalNullable(), name: core.serialization.string(), }); @@ -21,7 +21,7 @@ export declare namespace ExternalInputDescriptor { export interface Raw { types: CodeResourceDefinition.Raw[]; inputs_class?: (CodeResourceDefinition.Raw | null) | null; - instance?: unknown | null; + instance?: (unknown | null) | null; name: string; } } diff --git a/src/serialization/types/JsonInput.ts b/src/serialization/types/JsonInput.ts index ce474ce3d..c81bde4b5 100644 --- a/src/serialization/types/JsonInput.ts +++ b/src/serialization/types/JsonInput.ts @@ -10,13 +10,13 @@ export const JsonInput: core.serialization.ObjectSchema = core.serialization.object({ name: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace JsonInputRequest { export interface Raw { name: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/JsonVellumValue.ts b/src/serialization/types/JsonVellumValue.ts index 960fbda49..5b1f41b01 100644 --- a/src/serialization/types/JsonVellumValue.ts +++ b/src/serialization/types/JsonVellumValue.ts @@ -9,12 +9,12 @@ import * as core from "../../core"; export const JsonVellumValue: core.serialization.ObjectSchema = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace JsonVellumValue { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/JsonVellumValueRequest.ts b/src/serialization/types/JsonVellumValueRequest.ts index 9d2f93b64..2ff6a26b4 100644 --- a/src/serialization/types/JsonVellumValueRequest.ts +++ b/src/serialization/types/JsonVellumValueRequest.ts @@ -11,12 +11,12 @@ export const JsonVellumValueRequest: core.serialization.ObjectSchema< Vellum.JsonVellumValueRequest > = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace JsonVellumValueRequest { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/NamedScenarioInputJsonVariableValueRequest.ts b/src/serialization/types/NamedScenarioInputJsonVariableValueRequest.ts index b9935bdfc..d360df197 100644 --- a/src/serialization/types/NamedScenarioInputJsonVariableValueRequest.ts +++ b/src/serialization/types/NamedScenarioInputJsonVariableValueRequest.ts @@ -11,14 +11,14 @@ export const NamedScenarioInputJsonVariableValueRequest: core.serialization.Obje Vellum.NamedScenarioInputJsonVariableValueRequest > = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), name: core.serialization.string(), }); export declare namespace NamedScenarioInputJsonVariableValueRequest { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; name: string; } } diff --git a/src/serialization/types/NamedTestCaseJsonVariableValue.ts b/src/serialization/types/NamedTestCaseJsonVariableValue.ts index 6a72db3ec..3a7966373 100644 --- a/src/serialization/types/NamedTestCaseJsonVariableValue.ts +++ b/src/serialization/types/NamedTestCaseJsonVariableValue.ts @@ -11,14 +11,14 @@ export const NamedTestCaseJsonVariableValue: core.serialization.ObjectSchema< Vellum.NamedTestCaseJsonVariableValue > = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), name: core.serialization.string(), }); export declare namespace NamedTestCaseJsonVariableValue { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; name: string; } } diff --git a/src/serialization/types/NamedTestCaseJsonVariableValueRequest.ts b/src/serialization/types/NamedTestCaseJsonVariableValueRequest.ts index 797b56d2a..f7a900eb1 100644 --- a/src/serialization/types/NamedTestCaseJsonVariableValueRequest.ts +++ b/src/serialization/types/NamedTestCaseJsonVariableValueRequest.ts @@ -11,14 +11,14 @@ export const NamedTestCaseJsonVariableValueRequest: core.serialization.ObjectSch Vellum.NamedTestCaseJsonVariableValueRequest > = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), name: core.serialization.string(), }); export declare namespace NamedTestCaseJsonVariableValueRequest { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; name: string; } } diff --git a/src/serialization/types/NodeInputCompiledJsonValue.ts b/src/serialization/types/NodeInputCompiledJsonValue.ts index 21f2f8c58..454e8abb5 100644 --- a/src/serialization/types/NodeInputCompiledJsonValue.ts +++ b/src/serialization/types/NodeInputCompiledJsonValue.ts @@ -13,7 +13,7 @@ export const NodeInputCompiledJsonValue: core.serialization.ObjectSchema< nodeInputId: core.serialization.property("node_input_id", core.serialization.string()), key: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace NodeInputCompiledJsonValue { @@ -21,6 +21,6 @@ export declare namespace NodeInputCompiledJsonValue { node_input_id: string; key: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/NodeOutputCompiledJsonValue.ts b/src/serialization/types/NodeOutputCompiledJsonValue.ts index fd0d0337d..234a0b439 100644 --- a/src/serialization/types/NodeOutputCompiledJsonValue.ts +++ b/src/serialization/types/NodeOutputCompiledJsonValue.ts @@ -12,7 +12,7 @@ export const NodeOutputCompiledJsonValue: core.serialization.ObjectSchema< Vellum.NodeOutputCompiledJsonValue > = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()), state: WorkflowNodeResultEventState.optional(), }); @@ -20,7 +20,7 @@ export const NodeOutputCompiledJsonValue: core.serialization.ObjectSchema< export declare namespace NodeOutputCompiledJsonValue { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; node_output_id: string; state?: WorkflowNodeResultEventState.Raw | null; } diff --git a/src/serialization/types/PromptRequestJsonInput.ts b/src/serialization/types/PromptRequestJsonInput.ts index 0dbf31ec1..3728ee527 100644 --- a/src/serialization/types/PromptRequestJsonInput.ts +++ b/src/serialization/types/PromptRequestJsonInput.ts @@ -12,13 +12,13 @@ export const PromptRequestJsonInput: core.serialization.ObjectSchema< > = core.serialization.object({ key: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace PromptRequestJsonInput { export interface Raw { key: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/ScenarioInputJsonVariableValue.ts b/src/serialization/types/ScenarioInputJsonVariableValue.ts index a8566f53c..18b31fbce 100644 --- a/src/serialization/types/ScenarioInputJsonVariableValue.ts +++ b/src/serialization/types/ScenarioInputJsonVariableValue.ts @@ -11,14 +11,14 @@ export const ScenarioInputJsonVariableValue: core.serialization.ObjectSchema< Vellum.ScenarioInputJsonVariableValue > = core.serialization.object({ type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()), }); export declare namespace ScenarioInputJsonVariableValue { export interface Raw { type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; input_variable_id: string; } } diff --git a/src/serialization/types/TemplatingNodeJsonResult.ts b/src/serialization/types/TemplatingNodeJsonResult.ts index 968f77cd7..632f1315d 100644 --- a/src/serialization/types/TemplatingNodeJsonResult.ts +++ b/src/serialization/types/TemplatingNodeJsonResult.ts @@ -12,13 +12,13 @@ export const TemplatingNodeJsonResult: core.serialization.ObjectSchema< > = core.serialization.object({ id: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace TemplatingNodeJsonResult { export interface Raw { id: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/TerminalNodeJsonResult.ts b/src/serialization/types/TerminalNodeJsonResult.ts index 946f55c33..d0b19dea0 100644 --- a/src/serialization/types/TerminalNodeJsonResult.ts +++ b/src/serialization/types/TerminalNodeJsonResult.ts @@ -13,7 +13,7 @@ export const TerminalNodeJsonResult: core.serialization.ObjectSchema< id: core.serialization.string().optionalNullable(), name: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace TerminalNodeJsonResult { @@ -21,6 +21,6 @@ export declare namespace TerminalNodeJsonResult { id?: (string | null) | null; name: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/TestCaseJsonVariableValue.ts b/src/serialization/types/TestCaseJsonVariableValue.ts index f14ada127..7293d70ef 100644 --- a/src/serialization/types/TestCaseJsonVariableValue.ts +++ b/src/serialization/types/TestCaseJsonVariableValue.ts @@ -13,7 +13,7 @@ export const TestCaseJsonVariableValue: core.serialization.ObjectSchema< variableId: core.serialization.property("variable_id", core.serialization.string()), name: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace TestCaseJsonVariableValue { @@ -21,6 +21,6 @@ export declare namespace TestCaseJsonVariableValue { variable_id: string; name: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/TestSuiteRunExecutionJsonOutput.ts b/src/serialization/types/TestSuiteRunExecutionJsonOutput.ts index 2af008c6d..c63cc1660 100644 --- a/src/serialization/types/TestSuiteRunExecutionJsonOutput.ts +++ b/src/serialization/types/TestSuiteRunExecutionJsonOutput.ts @@ -12,7 +12,7 @@ export const TestSuiteRunExecutionJsonOutput: core.serialization.ObjectSchema< > = core.serialization.object({ name: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), outputVariableId: core.serialization.property("output_variable_id", core.serialization.string()), }); @@ -20,7 +20,7 @@ export declare namespace TestSuiteRunExecutionJsonOutput { export interface Raw { name: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; output_variable_id: string; } } diff --git a/src/serialization/types/TestSuiteRunMetricJsonOutput.ts b/src/serialization/types/TestSuiteRunMetricJsonOutput.ts index 851809810..52414617f 100644 --- a/src/serialization/types/TestSuiteRunMetricJsonOutput.ts +++ b/src/serialization/types/TestSuiteRunMetricJsonOutput.ts @@ -10,14 +10,14 @@ export const TestSuiteRunMetricJsonOutput: core.serialization.ObjectSchema< serializers.TestSuiteRunMetricJsonOutput.Raw, Vellum.TestSuiteRunMetricJsonOutput > = core.serialization.object({ - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), type: core.serialization.stringLiteral("JSON"), name: core.serialization.string(), }); export declare namespace TestSuiteRunMetricJsonOutput { export interface Raw { - value?: unknown; + value?: (unknown | null) | null; type: "JSON"; name: string; } diff --git a/src/serialization/types/WorkflowOutputJson.ts b/src/serialization/types/WorkflowOutputJson.ts index aa1257cd1..c77fc7e5a 100644 --- a/src/serialization/types/WorkflowOutputJson.ts +++ b/src/serialization/types/WorkflowOutputJson.ts @@ -13,7 +13,7 @@ export const WorkflowOutputJson: core.serialization.ObjectSchema< id: core.serialization.string(), name: core.serialization.string(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace WorkflowOutputJson { @@ -21,6 +21,6 @@ export declare namespace WorkflowOutputJson { id: string; name: string; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/serialization/types/WorkflowResultEventOutputDataJson.ts b/src/serialization/types/WorkflowResultEventOutputDataJson.ts index a4ef673b8..2016a2efd 100644 --- a/src/serialization/types/WorkflowResultEventOutputDataJson.ts +++ b/src/serialization/types/WorkflowResultEventOutputDataJson.ts @@ -17,7 +17,7 @@ export const WorkflowResultEventOutputDataJson: core.serialization.ObjectSchema< nodeId: core.serialization.property("node_id", core.serialization.string()), delta: core.serialization.string().optionalNullable(), type: core.serialization.stringLiteral("JSON"), - value: core.serialization.unknown(), + value: core.serialization.unknown().optionalNullable(), }); export declare namespace WorkflowResultEventOutputDataJson { @@ -28,6 +28,6 @@ export declare namespace WorkflowResultEventOutputDataJson { node_id: string; delta?: (string | null) | null; type: "JSON"; - value?: unknown; + value?: (unknown | null) | null; } } diff --git a/src/version.ts b/src/version.ts index 68af0b5d1..65431a942 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "1.10.0"; +export const SDK_VERSION = "1.10.1"; diff --git a/yarn.lock b/yarn.lock index a916b1135..9799f31b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1023,7 +1023,7 @@ base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -baseline-browser-mapping@^2.8.19: +baseline-browser-mapping@^2.8.25: version "2.8.25" resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.25.tgz#947dc6f81778e0fa0424a2ab9ea09a3033e71109" integrity sha512-2NovHVesVF5TXefsGX1yzx1xgr7+m9JQenvz6FQY3qd+YXkKkYiv+vTCc7OriP9mcDZpTC5mAOYN4ocd29+erA== @@ -1044,14 +1044,14 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0, browserslist@^4.26.3: - version "4.27.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.27.0.tgz#755654744feae978fbb123718b2f139bc0fa6697" - integrity sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw== - dependencies: - baseline-browser-mapping "^2.8.19" - caniuse-lite "^1.0.30001751" - electron-to-chromium "^1.5.238" - node-releases "^2.0.26" + version "4.28.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.28.0.tgz#9cefece0a386a17a3cd3d22ebf67b9deca1b5929" + integrity sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ== + dependencies: + baseline-browser-mapping "^2.8.25" + caniuse-lite "^1.0.30001754" + electron-to-chromium "^1.5.249" + node-releases "^2.0.27" update-browserslist-db "^1.1.4" bs-logger@^0.2.6: @@ -1112,7 +1112,7 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001751: +caniuse-lite@^1.0.30001754: version "1.0.30001754" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001754.tgz#7758299d9a72cce4e6b038788a15b12b44002759" integrity sha512-x6OeBXueoAceOmotzx3PO4Zpt4rzpeIFsSr6AAePTZxSkXiYDUmpypEl7e2+8NCd9bD7bXjqyef8CJYPC1jfxg== @@ -1299,10 +1299,10 @@ dunder-proto@^1.0.1: es-errors "^1.3.0" gopd "^1.2.0" -electron-to-chromium@^1.5.238: - version "1.5.248" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.248.tgz#e69941494efbc69ebf2803517f4e85d016013d4b" - integrity sha512-zsur2yunphlyAO4gIubdJEXCK6KOVvtpiuDfCIqbM9FjcnMYiyn0ICa3hWfPr0nc41zcLWobgy1iL7VvoOyA2Q== +electron-to-chromium@^1.5.249: + version "1.5.249" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.249.tgz#e4fc3a3e60bb347361e4e876bb31903a9132a447" + integrity sha512-5vcfL3BBe++qZ5kuFhD/p8WOM1N9m3nwvJPULJx+4xf2usSlZFJ0qoNYO2fOX4hi3ocuDcmDobtA+5SFr4OmBg== emittery@^0.13.1: version "0.13.1" @@ -2388,7 +2388,7 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.26: +node-releases@^2.0.27: version "2.0.27" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.27.tgz#eedca519205cf20f650f61d56b070db111231e4e" integrity sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA== From 529896dca0b8f2af95ac9b6bc7249ed094749bf3 Mon Sep 17 00:00:00 2001 From: "vellum-automation[bot]" Date: Mon, 10 Nov 2025 23:34:05 +0000 Subject: [PATCH 2/2] Update SDK from cf5af16 --- .github/workflows/auto-merge-release.yml | 35 ++ .github/workflows/release.yml | 34 ++ ee/automation/.nvmrc | 1 + ee/automation/README.md | 11 + ee/automation/ci-workflow-server.yaml | 46 ++ ee/automation/package-lock.json | 517 ++++++++++++++++++ ee/automation/package.json | 18 + ee/automation/src/auth.ts | 33 ++ ee/automation/src/auto-merge.ts | 149 +++++ ee/automation/src/create-release.ts | 52 ++ ee/automation/src/upgrade-workflow-server.ts | 30 + ee/automation/src/utils.ts | 36 ++ ee/automation/tsconfig.json | 34 ++ package.json | 7 +- src/Client.ts | 22 +- src/api/resources/adHoc/client/Client.ts | 4 +- .../containerImages/client/Client.ts | 8 +- .../resources/deployments/client/Client.ts | 16 +- .../documentIndexes/client/Client.ts | 16 +- src/api/resources/documents/client/Client.ts | 10 +- .../resources/environments/client/Client.ts | 2 +- src/api/resources/events/client/Client.ts | 2 +- .../resources/folderEntities/client/Client.ts | 4 +- .../integrationAuthConfigs/client/Client.ts | 2 +- .../integrationProviders/client/Client.ts | 4 +- .../resources/integrations/client/Client.ts | 8 +- .../metricDefinitions/client/Client.ts | 4 +- src/api/resources/mlModels/client/Client.ts | 2 +- .../resources/organizations/client/Client.ts | 2 +- src/api/resources/prompts/client/Client.ts | 4 +- src/api/resources/sandboxes/client/Client.ts | 6 +- .../resources/testSuiteRuns/client/Client.ts | 6 +- src/api/resources/testSuites/client/Client.ts | 8 +- .../workflowDeployments/client/Client.ts | 20 +- .../workflowExecutions/client/Client.ts | 2 +- .../workflowSandboxes/client/Client.ts | 4 +- src/api/resources/workflows/client/Client.ts | 8 +- .../workspaceSecrets/client/Client.ts | 4 +- src/api/resources/workspaces/client/Client.ts | 2 +- 39 files changed, 1086 insertions(+), 87 deletions(-) create mode 100644 .github/workflows/auto-merge-release.yml create mode 100644 .github/workflows/release.yml create mode 100644 ee/automation/.nvmrc create mode 100644 ee/automation/README.md create mode 100644 ee/automation/ci-workflow-server.yaml create mode 100644 ee/automation/package-lock.json create mode 100644 ee/automation/package.json create mode 100644 ee/automation/src/auth.ts create mode 100644 ee/automation/src/auto-merge.ts create mode 100644 ee/automation/src/create-release.ts create mode 100644 ee/automation/src/upgrade-workflow-server.ts create mode 100644 ee/automation/src/utils.ts create mode 100644 ee/automation/tsconfig.json diff --git a/.github/workflows/auto-merge-release.yml b/.github/workflows/auto-merge-release.yml new file mode 100644 index 000000000..a5ed738bc --- /dev/null +++ b/.github/workflows/auto-merge-release.yml @@ -0,0 +1,35 @@ +# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository. +name: Auto-merge Release PRs + +on: + pull_request: + types: [labeled, synchronize] + branches: + - main + +jobs: + auto-merge: + runs-on: ubuntu-latest + if: contains(github.event.pull_request.labels.*.name, 'release') + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.18.0" + + - name: Install dependencies + run: npm install + working-directory: ee/automation + + - name: Wait for checks and auto-merge + env: + VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }} + VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }} + VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }} + PR_NUMBER: ${{ github.event.pull_request.number }} + HEAD_SHA: ${{ github.event.pull_request.head.sha }} + run: npm run auto-merge + working-directory: ee/automation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..5de4db201 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository. +name: Release + +on: + pull_request: + types: [closed] + branches: + - main + workflow_dispatch: + +jobs: + create-release: + runs-on: ubuntu-latest + if: (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')) || github.event_name == 'workflow_dispatch' + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.18.0" + + - name: Install dependencies + run: npm install + working-directory: ee/automation + + - name: Create release + env: + VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }} + VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }} + VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }} + run: npm run create-release + working-directory: ee/automation diff --git a/ee/automation/.nvmrc b/ee/automation/.nvmrc new file mode 100644 index 000000000..6aab9b43f --- /dev/null +++ b/ee/automation/.nvmrc @@ -0,0 +1 @@ +v18.18.0 diff --git a/ee/automation/README.md b/ee/automation/README.md new file mode 100644 index 000000000..87a9135d2 --- /dev/null +++ b/ee/automation/README.md @@ -0,0 +1,11 @@ +# Vellum SDK Automation + +This is a mini package hosting all of the automation scripts needed for managing Vellum SDKs from within each SDK repository. During the release process of this repository, this directory is copied into the `ee/automation` directory of each of the respective SDKs. + +## Scripts + +Here are all the scripts we support. + +### `npm run create-release` + +This script is used to create a release for a given SDK. It is triggered by a pull request in the SDK repository being merged into the `main` branch with the `release` label. The GitHub action for this trigger is defined in `release.yml` and copied into the SDK repository within the `.github/workflows` directory. diff --git a/ee/automation/ci-workflow-server.yaml b/ee/automation/ci-workflow-server.yaml new file mode 100644 index 000000000..9d7476afd --- /dev/null +++ b/ee/automation/ci-workflow-server.yaml @@ -0,0 +1,46 @@ +name: ci-workflow-server + +on: + push: + branches: + - main + tags: + - "*" + +jobs: + publish: + permissions: + contents: "read" + id-token: "write" + + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.18.0" + + - name: Install dependencies + run: npm install + working-directory: ee/automation + + - id: auth + uses: google-github-actions/auth@v2 + with: + token_format: "access_token" + create_credentials_file: true + workload_identity_provider: "projects/585775334980/locations/global/workloadIdentityPools/github-pool/providers/github-actions-provider" + service_account: "github-gcr-service-account@vocify-prod.iam.gserviceaccount.com" + access_token_lifetime: "1200s" + + - name: Bump Workflow Server + env: + VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }} + VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }} + VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }} + run: npm run upgrade-workflow-server + working-directory: ee/automation diff --git a/ee/automation/package-lock.json b/ee/automation/package-lock.json new file mode 100644 index 000000000..e8b96e984 --- /dev/null +++ b/ee/automation/package-lock.json @@ -0,0 +1,517 @@ +{ + "name": "vellum-automation", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "vellum-automation", + "version": "0.0.1", + "devDependencies": { + "@octokit/auth-app": "^7.1.4", + "@octokit/rest": "^21.1.0", + "@types/node": "^22.10.7", + "dotenv": "^16.4.7", + "ts-node": "^10.9.2", + "typescript": "^5.7.3" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@octokit/auth-app": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.4.tgz", + "integrity": "sha512-5F+3l/maq9JfWQ4bV28jT2G/K8eu9OJ317yzXPTGe4Kw+lKDhFaS4dQ3Ltmb6xImKxfCQdqDqMXODhc9YLipLw==", + "dev": true, + "dependencies": { + "@octokit/auth-oauth-app": "^8.1.2", + "@octokit/auth-oauth-user": "^5.1.2", + "@octokit/request": "^9.1.4", + "@octokit/request-error": "^6.1.6", + "@octokit/types": "^13.6.2", + "toad-cache": "^3.7.0", + "universal-github-app-jwt": "^2.2.0", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/auth-oauth-app": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.2.tgz", + "integrity": "sha512-3woNZgq5/S6RS+9ZTq+JdymxVr7E0s4EYxF20ugQvgX3pomdPUL5r/XdTY9wALoBM2eHVy4ettr5fKpatyTyHw==", + "dev": true, + "dependencies": { + "@octokit/auth-oauth-device": "^7.1.2", + "@octokit/auth-oauth-user": "^5.1.2", + "@octokit/request": "^9.1.4", + "@octokit/types": "^13.6.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/auth-oauth-device": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.2.tgz", + "integrity": "sha512-gTOIzDeV36OhVfxCl69FmvJix7tJIiU6dlxuzLVAzle7fYfO8UDyddr9B+o4CFQVaMBLMGZ9ak2CWMYcGeZnPw==", + "dev": true, + "dependencies": { + "@octokit/oauth-methods": "^5.1.3", + "@octokit/request": "^9.1.4", + "@octokit/types": "^13.6.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/auth-oauth-user": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.2.tgz", + "integrity": "sha512-PgVDDPJgZYb3qSEXK4moksA23tfn68zwSAsQKZ1uH6IV9IaNEYx35OXXI80STQaLYnmEE86AgU0tC1YkM4WjsA==", + "dev": true, + "dependencies": { + "@octokit/auth-oauth-device": "^7.1.2", + "@octokit/oauth-methods": "^5.1.2", + "@octokit/request": "^9.1.4", + "@octokit/types": "^13.6.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/auth-token": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz", + "integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==", + "dev": true, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/core": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz", + "integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==", + "dev": true, + "dependencies": { + "@octokit/auth-token": "^5.0.0", + "@octokit/graphql": "^8.1.2", + "@octokit/request": "^9.1.4", + "@octokit/request-error": "^6.1.6", + "@octokit/types": "^13.6.2", + "before-after-hook": "^3.0.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/endpoint": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.2.tgz", + "integrity": "sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==", + "dev": true, + "dependencies": { + "@octokit/types": "^13.6.2", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/graphql": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz", + "integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==", + "dev": true, + "dependencies": { + "@octokit/request": "^9.1.4", + "@octokit/types": "^13.6.2", + "universal-user-agent": "^7.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/oauth-authorization-url": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.1.1.tgz", + "integrity": "sha512-ooXV8GBSabSWyhLUowlMIVd9l1s2nsOGQdlP2SQ4LnkEsGXzeCvbSbCPdZThXhEFzleGPwbapT0Sb+YhXRyjCA==", + "dev": true, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/oauth-methods": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.3.tgz", + "integrity": "sha512-M+bDBi5H8FnH0xhCTg0m9hvcnppdDnxUqbZyOkxlLblKpLAR+eT2nbDPvJDp0eLrvJWA1I8OX0KHf/sBMQARRA==", + "dev": true, + "dependencies": { + "@octokit/oauth-authorization-url": "^7.0.0", + "@octokit/request": "^9.1.4", + "@octokit/request-error": "^6.1.6", + "@octokit/types": "^13.6.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "23.0.1", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz", + "integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==", + "dev": true + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "11.4.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.0.tgz", + "integrity": "sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==", + "dev": true, + "dependencies": { + "@octokit/types": "^13.7.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": ">=6" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz", + "integrity": "sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==", + "dev": true, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": ">=6" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "13.3.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz", + "integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==", + "dev": true, + "dependencies": { + "@octokit/types": "^13.7.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "@octokit/core": ">=6" + } + }, + "node_modules/@octokit/request": { + "version": "9.1.4", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.4.tgz", + "integrity": "sha512-tMbOwGm6wDII6vygP3wUVqFTw3Aoo0FnVQyhihh8vVq12uO3P+vQZeo2CKMpWtPSogpACD0yyZAlVlQnjW71DA==", + "dev": true, + "dependencies": { + "@octokit/endpoint": "^10.0.0", + "@octokit/request-error": "^6.0.1", + "@octokit/types": "^13.6.2", + "fast-content-type-parse": "^2.0.0", + "universal-user-agent": "^7.0.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/request-error": { + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz", + "integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==", + "dev": true, + "dependencies": { + "@octokit/types": "^13.6.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/rest": { + "version": "21.1.0", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-21.1.0.tgz", + "integrity": "sha512-93iLxcKDJboUpmnUyeJ6cRIi7z7cqTZT1K7kRK4LobGxwTwpsa+2tQQbRQNGy7IFDEAmrtkf4F4wBj3D5rVlJQ==", + "dev": true, + "dependencies": { + "@octokit/core": "^6.1.3", + "@octokit/plugin-paginate-rest": "^11.4.0", + "@octokit/plugin-request-log": "^5.3.1", + "@octokit/plugin-rest-endpoint-methods": "^13.3.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@octokit/types": { + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz", + "integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==", + "dev": true, + "dependencies": { + "@octokit/openapi-types": "^23.0.1" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "22.10.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.7.tgz", + "integrity": "sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==", + "dev": true, + "dependencies": { + "undici-types": "~6.20.0" + } + }, + "node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/before-after-hook": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz", + "integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==", + "dev": true + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dotenv": { + "version": "16.4.7", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", + "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/fast-content-type-parse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz", + "integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ] + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/toad-cache": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/toad-cache/-/toad-cache-3.7.0.tgz", + "integrity": "sha512-/m8M+2BJUpoJdgAHoG+baCwBT+tf2VraSfkBgl0Y00qIWt41DJ8R5B8nsEw0I58YwF5IZH6z24/2TobDKnqSWw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/typescript": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", + "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "dev": true + }, + "node_modules/universal-github-app-jwt": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/universal-github-app-jwt/-/universal-github-app-jwt-2.2.0.tgz", + "integrity": "sha512-G5o6f95b5BggDGuUfKDApKaCgNYy2x7OdHY0zSMF081O0EJobw+1130VONhrA7ezGSV2FNOGyM+KQpQZAr9bIQ==", + "dev": true + }, + "node_modules/universal-user-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", + "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", + "dev": true + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + } + } +} diff --git a/ee/automation/package.json b/ee/automation/package.json new file mode 100644 index 000000000..ab9cce980 --- /dev/null +++ b/ee/automation/package.json @@ -0,0 +1,18 @@ +{ + "name": "vellum-automation", + "version": "0.0.1", + "type": "module", + "scripts": { + "create-release": "ts-node-esm ./src/create-release.ts", + "upgrade-workflow-server": "ts-node-esm ./src/upgrade-workflow-server.ts", + "auto-merge": "ts-node-esm ./src/auto-merge.ts" + }, + "devDependencies": { + "@octokit/auth-app": "^7.1.4", + "@octokit/rest": "^21.1.0", + "@types/node": "^22.10.7", + "dotenv": "^16.4.7", + "ts-node": "^10.9.2", + "typescript": "^5.7.3" + } +} diff --git a/ee/automation/src/auth.ts b/ee/automation/src/auth.ts new file mode 100644 index 000000000..8b8a43c05 --- /dev/null +++ b/ee/automation/src/auth.ts @@ -0,0 +1,33 @@ +import { createAppAuth } from "@octokit/auth-app"; + +export const getGithubToken = async () => { + const appId = process.env.VELLUM_AUTOMATION_APP_ID; + const privateKey = process.env.VELLUM_AUTOMATION_PRIVATE_KEY; + const installationId = process.env.VELLUM_AUTOMATION_INSTALLATION_ID; + + if (!appId || !privateKey || !installationId) { + throw new Error( + "VELLUM_AUTOMATION_APP_ID, VELLUM_AUTOMATION_PRIVATE_KEY, and VELLUM_AUTOMATION_INSTALLATION_ID must be set" + ); + } + + if ( + !privateKey.startsWith("-----BEGIN RSA PRIVATE KEY-----") || + !privateKey.endsWith("-----END RSA PRIVATE KEY-----") + ) { + throw new Error( + `VELLUM_AUTOMATION_PRIVATE_KEY is an invalid. Please use the valid private key from \ +1password and store in your .env file. Also be sure to \`unset\` any VELLUM_AUTOMATION_* \ +env vars from your shell before running the script again.` + ); + } + + const auth = createAppAuth({ + appId, + privateKey, + installationId, + }); + + const { token } = await auth({ type: "installation" }); + return token; +}; diff --git a/ee/automation/src/auto-merge.ts b/ee/automation/src/auto-merge.ts new file mode 100644 index 000000000..8ba25fa0d --- /dev/null +++ b/ee/automation/src/auto-merge.ts @@ -0,0 +1,149 @@ +import { Octokit } from '@octokit/rest'; +import { getGithubToken } from './auth.js'; +import * as dotenv from 'dotenv'; + +dotenv.config(); + +const SDK_REPO = "vellum-client-node"; +const PR_NUMBER = parseInt(process.env.PR_NUMBER || '0'); +const HEAD_SHA = process.env.HEAD_SHA; + +const POLL_INTERVAL = 30000; // 30 seconds +const MAX_WAIT_TIME = 30 * 60 * 1000; // 30 minutes + +interface CheckRun { + status: string; + conclusion: string | null; + name: string; +} + +const isAutoMergeCheck = (checkName: string): boolean => { + return checkName.toLowerCase().includes('auto-merge'); +}; + +const main = async () => { + if (!SDK_REPO || !PR_NUMBER || !HEAD_SHA) { + throw new Error('Missing required environment variables: FERN_SDK_REPO, PR_NUMBER, HEAD_SHA'); + } + + console.log(`Starting auto-merge process for PR #${PR_NUMBER} in ${SDK_REPO}`); + console.log(`Head SHA: ${HEAD_SHA}`); + + const auth = await getGithubToken(); + const octokit = new Octokit({ auth }); + + const owner = "vellum-ai"; + const repo = SDK_REPO; + + const { data: pr } = await octokit.rest.pulls.get({ + owner, + repo, + pull_number: PR_NUMBER, + }); + + if (!pr.labels.some(label => label.name === 'release')) { + console.log('PR does not have release label, skipping auto-merge'); + return; + } + + if (pr.state !== 'open') { + console.log(`PR is ${pr.state}, skipping auto-merge`); + return; + } + + if (pr.user?.login !== 'fern-api' && pr.user?.login !== 'fern-api[bot]') { + console.log(`PR was not opened by fern-api user (opened by: ${pr.user?.login}), skipping auto-merge`); + return; + } + + console.log(`PR #${PR_NUMBER} is open, has release label, and was opened by authorized user (${pr.user?.login}), waiting for checks...`); + + const startTime = Date.now(); + + while (Date.now() - startTime < MAX_WAIT_TIME) { + try { + const { data: checkRuns } = await octokit.rest.checks.listForRef({ + owner, + repo, + ref: HEAD_SHA, + }); + + console.log(`Found ${checkRuns.total_count} check runs`); + + const checks: CheckRun[] = checkRuns.check_runs.map(run => ({ + status: run.status, + conclusion: run.conclusion, + name: run.name, + })); + + const autoMergeChecks = checks.filter(check => isAutoMergeCheck(check.name)); + if (autoMergeChecks.length > 0) { + console.log(`Excluding ${autoMergeChecks.length} auto-merge checks:`, + autoMergeChecks.map(c => c.name).join(', ')); + } + + if (checkRuns.total_count === 0) { + console.log('No check runs found, waiting...'); + await sleep(POLL_INTERVAL); + continue; + } + + const pendingChecks = checks.filter(check => + check.status !== 'completed' && !isAutoMergeCheck(check.name) + ); + if (pendingChecks.length > 0) { + console.log(`Waiting for ${pendingChecks.length} checks to complete:`, + pendingChecks.map(c => c.name).join(', ')); + await sleep(POLL_INTERVAL); + continue; + } + + const failedChecks = checks.filter(check => + check.conclusion !== 'success' && + check.conclusion !== 'neutral' && + check.conclusion !== 'skipped' && + !isAutoMergeCheck(check.name) + ); + + if (failedChecks.length > 0) { + console.log('Some checks failed, cannot auto-merge:'); + failedChecks.forEach(check => { + console.log(` - ${check.name}: ${check.conclusion}`); + }); + return; + } + + console.log('All checks passed! Attempting to merge PR...'); + + try { + await octokit.rest.pulls.merge({ + owner, + repo, + pull_number: PR_NUMBER, + merge_method: 'squash', + commit_title: `${pr.title} (#${PR_NUMBER})`, + }); + + console.log(`Successfully auto-merged PR #${PR_NUMBER}`); + return; + } catch (mergeError: any) { + if (mergeError.status === 405) { + console.log('PR cannot be merged (may have conflicts or branch protection rules)'); + } else { + console.error('Error merging PR:', mergeError.message); + } + return; + } + + } catch (error: any) { + console.error('Error checking status:', error.message); + await sleep(POLL_INTERVAL); + } + } + + console.log('Timeout reached, stopping auto-merge process'); +}; + +const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); + +main().catch(console.error); diff --git a/ee/automation/src/create-release.ts b/ee/automation/src/create-release.ts new file mode 100644 index 000000000..e87b5fcbc --- /dev/null +++ b/ee/automation/src/create-release.ts @@ -0,0 +1,52 @@ +import { Octokit } from '@octokit/rest'; +import { getGithubToken } from './auth.js'; +import dotenv from 'dotenv'; +import { getVersion } from './utils.js'; + +dotenv.config(); + +const SDK_REPO = "vellum-client-node"; + +const main = async () => { + const version = getVersion(); + + // Create the release + const auth = await getGithubToken(); + const octokit = new Octokit({ + auth, + }); + + const sdkReleases = await octokit.rest.repos.listReleases({ + owner: "vellum-ai", + repo: SDK_REPO, + }); + if (sdkReleases.data.find((release) => release.name === version)) { + throw new Error(`Release '${version}' already exists in '${SDK_REPO}'`); + } + + const generatorReleases = await octokit.rest.repos.listReleases({ + owner: "vellum-ai", + repo: "vellum-client-generator", + }); + const targetedRelease = generatorReleases.data.find( + (release) => release.name === version + ); + if (!targetedRelease?.body) { + throw new Error( + `Release '${version}' does not exist in 'vellum-client-generator'` + ); + } + + await octokit.rest.repos.createRelease({ + owner: "vellum-ai", + repo: SDK_REPO, + tag_name: version, + make_latest: "true", + name: version, + body: targetedRelease.body, + }); + + console.log(`Successfully created release '${version}'`); +}; + +main(); diff --git a/ee/automation/src/upgrade-workflow-server.ts b/ee/automation/src/upgrade-workflow-server.ts new file mode 100644 index 000000000..45a49d0f3 --- /dev/null +++ b/ee/automation/src/upgrade-workflow-server.ts @@ -0,0 +1,30 @@ +import { Octokit } from "@octokit/rest"; +import { getGithubToken } from './auth.js'; +import { getVersion } from './utils.js'; + +/* + * This triggers the workflow server version release and lives here for convenience + * so it can take advantage of the existing github app auth token. + */ +const main = async () => { + const version = getVersion(); + console.log("Upgrading workflow server to version", version); + const octokit = new Octokit({ auth: await getGithubToken() }); + await octokit.actions.createWorkflowDispatch({ + owner: "vellum-ai", + repo: "vembda-service", + workflow_id: "version-python-workflow-server.yaml", + ref: "main", + inputs: { + version, + }, + }); + + console.log( + "Successfully triggered workflow server github workflow, version:", + version + ); + process.exit(0); +}; + +main(); diff --git a/ee/automation/src/utils.ts b/ee/automation/src/utils.ts new file mode 100644 index 000000000..568471542 --- /dev/null +++ b/ee/automation/src/utils.ts @@ -0,0 +1,36 @@ +import { fileURLToPath } from 'url'; +import path from 'path'; +import fs from 'fs'; + +export function getVersion() { + // Read and parse manifest file from environment variable + const __filename = fileURLToPath(import.meta.url); + const __dirname = path.dirname(__filename); + + const manifestFile = "package.json"; + if (!manifestFile) { + throw new Error('FERN_MANIFEST_FILE environment variable is required'); + } + + const manifestPath = path.join(__dirname, '..', '..', '..', manifestFile); + const manifestContent = fs.readFileSync(manifestPath, 'utf8'); + + // Extract version using regex from environment variable + const versionRegexPattern = "\"version\":\\s*\"([^\"]+)\""; + if (!versionRegexPattern) { + throw new Error('FERN_VERSION_REGEX environment variable is required'); + } + + const versionRegex = new RegExp(versionRegexPattern); + const version = manifestContent.match(versionRegex)?.[1]; + + if (!version) { + throw new Error(`Could not find version in ${manifestFile} using pattern ${versionRegexPattern}`); + } + + // Sanitize version by removing 'v' prefix if present + const sanitizedVersion = version.replace(/^v\.?/, ''); + + console.log('Found Version:', sanitizedVersion); + return sanitizedVersion; +} diff --git a/ee/automation/tsconfig.json b/ee/automation/tsconfig.json new file mode 100644 index 000000000..ed37b6749 --- /dev/null +++ b/ee/automation/tsconfig.json @@ -0,0 +1,34 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "lib", + "module": "esnext", + "target": "esnext", + "lib": ["dom", "dom.iterable", "esnext"], + "jsx": "react-jsx", + "moduleResolution": "node", + "resolveJsonModule": true, + "noImplicitAny": true, + "noImplicitThis": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "isolatedModules": true, + "baseUrl": "./src", + "paths": { + "src/*": ["*"] + }, + "declaration": true, + "noUncheckedIndexedAccess": true, + "noImplicitReturns": true, + "types": ["node"] + }, + "include": ["./src/**/*"], + "ts-node": { + "esm": true, + "experimentalSpecifierResolution": "node" + } +} diff --git a/package.json b/package.json index 3bbdca63d..e8abeb249 100644 --- a/package.json +++ b/package.json @@ -42,5 +42,8 @@ "os": false, "path": false }, - "packageManager": "yarn@1.22.22" -} + "packageManager": "yarn@1.22.22", + "resolutions": { + "strip-ansi": "^6.0.1" + } +} \ No newline at end of file diff --git a/src/Client.ts b/src/Client.ts index 049dd5a7d..3c4cb6763 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -216,7 +216,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -324,7 +324,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -432,7 +432,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -525,7 +525,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -649,7 +649,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -740,7 +740,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -870,7 +870,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -966,7 +966,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -1082,7 +1082,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -1185,7 +1185,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -1284,7 +1284,7 @@ export class VellumClient { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/adHoc/client/Client.ts b/src/api/resources/adHoc/client/Client.ts index e1f1500ec..56358b202 100644 --- a/src/api/resources/adHoc/client/Client.ts +++ b/src/api/resources/adHoc/client/Client.ts @@ -101,7 +101,7 @@ export class AdHoc { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -189,7 +189,7 @@ export class AdHoc { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/containerImages/client/Client.ts b/src/api/resources/containerImages/client/Client.ts index db9fb31b4..fc5f70e26 100644 --- a/src/api/resources/containerImages/client/Client.ts +++ b/src/api/resources/containerImages/client/Client.ts @@ -84,7 +84,7 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -172,7 +172,7 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -254,7 +254,7 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -345,7 +345,7 @@ export class ContainerImages { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/deployments/client/Client.ts b/src/api/resources/deployments/client/Client.ts index 7542fa496..533d985a3 100644 --- a/src/api/resources/deployments/client/Client.ts +++ b/src/api/resources/deployments/client/Client.ts @@ -90,7 +90,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -178,7 +178,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -271,7 +271,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -383,7 +383,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -476,7 +476,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -573,7 +573,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -670,7 +670,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -783,7 +783,7 @@ export class Deployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/documentIndexes/client/Client.ts b/src/api/resources/documentIndexes/client/Client.ts index 94d54c61a..563376918 100644 --- a/src/api/resources/documentIndexes/client/Client.ts +++ b/src/api/resources/documentIndexes/client/Client.ts @@ -94,7 +94,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -191,7 +191,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -288,7 +288,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -381,7 +381,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -466,7 +466,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -548,7 +548,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -641,7 +641,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -725,7 +725,7 @@ export class DocumentIndexes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts index 328f3891f..32c997110 100644 --- a/src/api/resources/documents/client/Client.ts +++ b/src/api/resources/documents/client/Client.ts @@ -94,7 +94,7 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -182,7 +182,7 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -266,7 +266,7 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -348,7 +348,7 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -466,7 +466,7 @@ export class Documents { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts index 930507469..8b995c4bc 100644 --- a/src/api/resources/environments/client/Client.ts +++ b/src/api/resources/environments/client/Client.ts @@ -67,7 +67,7 @@ export class Environments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts index bfe30aa87..12267ea31 100644 --- a/src/api/resources/events/client/Client.ts +++ b/src/api/resources/events/client/Client.ts @@ -111,7 +111,7 @@ export class Events { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/folderEntities/client/Client.ts b/src/api/resources/folderEntities/client/Client.ts index c28a67da0..896e47169 100644 --- a/src/api/resources/folderEntities/client/Client.ts +++ b/src/api/resources/folderEntities/client/Client.ts @@ -94,7 +94,7 @@ export class FolderEntities { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -194,7 +194,7 @@ export class FolderEntities { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/integrationAuthConfigs/client/Client.ts b/src/api/resources/integrationAuthConfigs/client/Client.ts index 8259f1346..55456c3ba 100644 --- a/src/api/resources/integrationAuthConfigs/client/Client.ts +++ b/src/api/resources/integrationAuthConfigs/client/Client.ts @@ -104,7 +104,7 @@ export class IntegrationAuthConfigs { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/integrationProviders/client/Client.ts b/src/api/resources/integrationProviders/client/Client.ts index a703ddd85..b365e5458 100644 --- a/src/api/resources/integrationProviders/client/Client.ts +++ b/src/api/resources/integrationProviders/client/Client.ts @@ -83,7 +83,7 @@ export class IntegrationProviders { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -203,7 +203,7 @@ export class IntegrationProviders { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/integrations/client/Client.ts b/src/api/resources/integrations/client/Client.ts index 1731f2325..031223c44 100644 --- a/src/api/resources/integrations/client/Client.ts +++ b/src/api/resources/integrations/client/Client.ts @@ -78,7 +78,7 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -192,7 +192,7 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -319,7 +319,7 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -407,7 +407,7 @@ export class Integrations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/metricDefinitions/client/Client.ts b/src/api/resources/metricDefinitions/client/Client.ts index 096d27695..19764a19a 100644 --- a/src/api/resources/metricDefinitions/client/Client.ts +++ b/src/api/resources/metricDefinitions/client/Client.ts @@ -81,7 +81,7 @@ export class MetricDefinitions { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -174,7 +174,7 @@ export class MetricDefinitions { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/mlModels/client/Client.ts b/src/api/resources/mlModels/client/Client.ts index db2cfee15..0f82fcefa 100644 --- a/src/api/resources/mlModels/client/Client.ts +++ b/src/api/resources/mlModels/client/Client.ts @@ -70,7 +70,7 @@ export class MlModels { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/organizations/client/Client.ts b/src/api/resources/organizations/client/Client.ts index 0a2dd6ccd..93413fa30 100644 --- a/src/api/resources/organizations/client/Client.ts +++ b/src/api/resources/organizations/client/Client.ts @@ -67,7 +67,7 @@ export class Organizations { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/prompts/client/Client.ts b/src/api/resources/prompts/client/Client.ts index 32476883e..4f450bcaf 100644 --- a/src/api/resources/prompts/client/Client.ts +++ b/src/api/resources/prompts/client/Client.ts @@ -82,7 +82,7 @@ export class Prompts { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -202,7 +202,7 @@ export class Prompts { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/sandboxes/client/Client.ts b/src/api/resources/sandboxes/client/Client.ts index b5e21f4c5..d96028e1b 100644 --- a/src/api/resources/sandboxes/client/Client.ts +++ b/src/api/resources/sandboxes/client/Client.ts @@ -74,7 +74,7 @@ export class Sandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -181,7 +181,7 @@ export class Sandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -272,7 +272,7 @@ export class Sandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/testSuiteRuns/client/Client.ts b/src/api/resources/testSuiteRuns/client/Client.ts index 9d60626f6..e4dacbbe7 100644 --- a/src/api/resources/testSuiteRuns/client/Client.ts +++ b/src/api/resources/testSuiteRuns/client/Client.ts @@ -77,7 +77,7 @@ export class TestSuiteRuns { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -165,7 +165,7 @@ export class TestSuiteRuns { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -271,7 +271,7 @@ export class TestSuiteRuns { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/testSuites/client/Client.ts b/src/api/resources/testSuites/client/Client.ts index 63d00f67d..90e5facd0 100644 --- a/src/api/resources/testSuites/client/Client.ts +++ b/src/api/resources/testSuites/client/Client.ts @@ -84,7 +84,7 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -198,7 +198,7 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -284,7 +284,7 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -390,7 +390,7 @@ export class TestSuites { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/workflowDeployments/client/Client.ts b/src/api/resources/workflowDeployments/client/Client.ts index 5a66151aa..60ec8d25c 100644 --- a/src/api/resources/workflowDeployments/client/Client.ts +++ b/src/api/resources/workflowDeployments/client/Client.ts @@ -90,7 +90,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -178,7 +178,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -286,7 +286,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -379,7 +379,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -474,7 +474,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -586,7 +586,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -679,7 +679,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -774,7 +774,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -883,7 +883,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -978,7 +978,7 @@ export class WorkflowDeployments { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/workflowExecutions/client/Client.ts b/src/api/resources/workflowExecutions/client/Client.ts index 3000c3b34..cd529ccd1 100644 --- a/src/api/resources/workflowExecutions/client/Client.ts +++ b/src/api/resources/workflowExecutions/client/Client.ts @@ -86,7 +86,7 @@ export class WorkflowExecutions { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/workflowSandboxes/client/Client.ts b/src/api/resources/workflowSandboxes/client/Client.ts index 63a4b7f82..485f2b7e3 100644 --- a/src/api/resources/workflowSandboxes/client/Client.ts +++ b/src/api/resources/workflowSandboxes/client/Client.ts @@ -71,7 +71,7 @@ export class WorkflowSandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -181,7 +181,7 @@ export class WorkflowSandboxes { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/workflows/client/Client.ts b/src/api/resources/workflows/client/Client.ts index 9910e2a73..8c27c7849 100644 --- a/src/api/resources/workflows/client/Client.ts +++ b/src/api/resources/workflows/client/Client.ts @@ -100,7 +100,7 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -188,7 +188,7 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -315,7 +315,7 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -410,7 +410,7 @@ export class Workflows { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/workspaceSecrets/client/Client.ts b/src/api/resources/workspaceSecrets/client/Client.ts index 65652e813..e169da5cb 100644 --- a/src/api/resources/workspaceSecrets/client/Client.ts +++ b/src/api/resources/workspaceSecrets/client/Client.ts @@ -70,7 +70,7 @@ export class WorkspaceSecrets { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", @@ -160,7 +160,7 @@ export class WorkspaceSecrets { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1", diff --git a/src/api/resources/workspaces/client/Client.ts b/src/api/resources/workspaces/client/Client.ts index d770ac861..343a3922c 100644 --- a/src/api/resources/workspaces/client/Client.ts +++ b/src/api/resources/workspaces/client/Client.ts @@ -67,7 +67,7 @@ export class Workspaces { ? serializers.ApiVersionEnum.jsonOrThrow(await core.Supplier.get(this._options.apiVersion), { unrecognizedObjectKeys: "strip", }) - : undefined, + : "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.10.1",