Skip to content

Promote alpha version to beta #705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 105 commits into
base: alpha
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
b054245
chore(internal): update examples
stainless-bot Jan 7, 2025
4775c06
docs(readme): fix misplaced .
stainless-bot Jan 8, 2025
d6e83f7
chore: use more explicit type re-exports
stainless-bot Jan 8, 2025
ce58162
feat(client): improve debug logs
stainless-bot Jan 8, 2025
ecf84dd
chore(internal): fix eslint rules
RobertCraigie Feb 24, 2025
6aa53d1
fix: send correct Accept header for certain endpoints
stainless-bot Jan 10, 2025
ab38e8a
chore(client): clean up file helpers
stainless-bot Jan 14, 2025
6485bc7
chore(types): add `| undefined` to client options properties
stainless-bot Jan 15, 2025
b55025f
chore(client): improve node-fetch file upload errors
stainless-bot Jan 20, 2025
ab17fbc
chore(client)!: document proxy use + clean up old code
stainless-bot Jan 20, 2025
2063781
fix: correctly send default header values
stainless-bot Jan 21, 2025
4a4f9a1
chore(internal): minor restructuring
stainless-bot Jan 21, 2025
caedce7
feat(client): support results endpoint
stainless-bot Jan 21, 2025
718442e
feat(api): add citations
stainless-bot Jan 23, 2025
b077319
chore(docs): updates
stainless-bot Jan 24, 2025
9c5e457
chore(types): remove type-level dependency on some platform specifics
stainless-bot Jan 27, 2025
9953466
chore(internal): reorder model constants
stainless-bot Jan 27, 2025
b8251fd
chore(internal): add explicit export `type` modifier
stainless-bot Jan 29, 2025
25a7fdb
chore(client): handle expo fetch abort errors
stainless-bot Jan 30, 2025
fe71a7e
chore(api): update openapi spec url
stainless-bot Jan 30, 2025
bacfc30
chore(client): detect node and deno timeout errors
stainless-bot Jan 30, 2025
e1d9513
chore(internal): remove unused `isRequestOptions()` function
stainless-bot Feb 4, 2025
78f7b2c
feat(client): send `X-Stainless-Timeout` header
stainless-bot Feb 4, 2025
943af34
fix(client)!: uri encode path parameters
stainless-bot Feb 5, 2025
845cd5d
feat(pagination): avoid fetching when has_more: false
stainless-bot Feb 6, 2025
3b6caa7
fix: correctly decode multi-byte characters over multiple chunks
stainless-bot Feb 10, 2025
1141664
chore(internal): migrate to eslint v9
stainless-bot Feb 13, 2025
1aa0f00
fix(client): fix export map for index exports, accept BunFile
stainless-bot Feb 13, 2025
2ab37e5
chore(internal): add missing return type annotation
stainless-bot Feb 14, 2025
fa9213b
chore(internal): fix tests not always being type checked
stainless-bot Feb 17, 2025
0e53ab2
chore(internal): fix tests
RobertCraigie Feb 24, 2025
e047225
fix: optimize sse chunk reading off-by-one error
stainless-bot Feb 18, 2025
b4da340
feat(client): improve logging
stainless-bot Feb 21, 2025
28d3e35
chore(internal): fix devcontainers setup
stainless-bot Feb 21, 2025
569e55e
chore(internal): remove unnecessary todo
stainless-bot Feb 21, 2025
521d6cd
fix(streaming): handle more AbortError cases
RobertCraigie Feb 26, 2025
75f4afe
feat(api): add claude-3.7 + support for thinking
stainless-ci-bot Feb 24, 2025
b10d942
feat: add migration guide
stainless-ci-bot Feb 24, 2025
2260eaf
fix(tests): stop using node:stream
stainless-ci-bot Feb 25, 2025
102fc22
fix(tests): migrate last ReadableStreamFrom
stainless-em Feb 25, 2025
32f5659
feat(api): add URL source blocks for images and PDFs
stainless-ci-bot Feb 27, 2025
a3dabfd
docs: update URLs from stainlessapi.com to stainless.com
stainless-ci-bot Feb 27, 2025
58d6b52
feat(api): add support for disabling tool calls
stainless-ci-bot Feb 28, 2025
b9509a1
docs: add thinking examples
RobertCraigie Feb 26, 2025
b4cea5a
chore(client): only accept standard types for file uploads
stainless-ci-bot Mar 3, 2025
fa6378e
chore: bump version to 0.40.0-beta.0
RobertCraigie Mar 3, 2025
4cebdf1
chore: remove InputJsonDelta properly
RobertCraigie Mar 3, 2025
456e7d5
feat(api): add claude-3.7 + support for thinking
RobertCraigie Feb 24, 2025
4c217aa
chore(internal): fix tests failing on node v18
RobertCraigie Mar 3, 2025
9e617f1
fix(client): fix TypeError with undefined File
stainless-ci-bot Mar 3, 2025
6c44d9c
fix(internal): clean up undefined File test
stainless-ci-bot Mar 3, 2025
e7ec787
fix(tests): manually reset node:buffer File
stainless-ci-bot Mar 3, 2025
ad2e92b
chore(types): improved go to definition on fetchOptions
stainless-ci-bot Mar 4, 2025
e999123
chore(docs): improve docs for withResponse/asResponse
stainless-ci-bot Mar 4, 2025
fc020ee
feat: add SKIP_BREW env var to ./scripts/bootstrap
stainless-ci-bot Mar 8, 2025
9d3411a
feat(client): accept RFC6838 JSON content types
stainless-ci-bot Mar 10, 2025
64a8e40
fix(exports): ensure resource imports don't require /index
stainless-ci-bot Mar 13, 2025
3786fd0
fix(internal): add mts file + crypto shim types
stainless-ci-bot Mar 14, 2025
af7911d
chore(internal): minor client file refactoring
stainless-ci-bot Mar 18, 2025
8c3685c
fix: remove duplicate exports
RobertCraigie Mar 14, 2025
9d87254
chore: remove redundant index exports
RobertCraigie Mar 19, 2025
c8fb3ea
chore(docs): fix typo
stainless-ci-bot Mar 20, 2025
635dc4f
chore: add hash of OpenAPI spec/config inputs to .stats.yml
stainless-ci-bot Mar 26, 2025
48e7585
fix(client): deduplicate stop reason type
stainless-ci-bot Mar 26, 2025
cbd31b4
chore(client): more accurate streaming errors
stainless-ci-bot Mar 26, 2025
3233254
chore(client): move misc public files to new `core/` directory, depre…
stainless-ci-bot Mar 26, 2025
be3406a
chore(internal): update config
stainless-ci-bot Mar 27, 2025
7db3acd
chore(internal): remove CI condition
stainless-app[bot] Mar 27, 2025
c95a850
feat(api): extract ContentBlockDelta events into their own schemas
stainless-app[bot] Apr 1, 2025
4eb2fea
feat(api): manual updates
stainless-app[bot] Apr 2, 2025
1fa560a
fix(client): send `X-Stainless-Timeout` in seconds
stainless-app[bot] Apr 2, 2025
18c5b40
chore(internal): add aliases for Record and Array
stainless-app[bot] Apr 2, 2025
38f264c
chore(client): make jsonl methods consistent with other streaming met…
stainless-app[bot] Apr 3, 2025
59bac50
fix(api): improve type resolution when importing as a package
stainless-app[bot] Apr 3, 2025
0b78711
feat(api): manual updates
stainless-app[bot] Apr 3, 2025
a115b94
chore(docs): improve migration doc
stainless-app[bot] Apr 3, 2025
7dc3e19
chore(internal): improve index signature formatting
stainless-app[bot] Apr 4, 2025
4c4d763
fix(mcp): remove unused tools.ts
stainless-app[bot] Apr 4, 2025
3961628
fix(client): send all configured auth headers
stainless-app[bot] Apr 7, 2025
3124e2b
feat(api): manual updates
stainless-app[bot] Apr 8, 2025
66cf6d4
chore(tests): improve enum examples
stainless-app[bot] Apr 8, 2025
bbda5d3
chore(internal): upload builds and expand CI branch coverage
stainless-app[bot] Apr 9, 2025
80d5daa
feat(api): manual updates
stainless-app[bot] Apr 9, 2025
c6780dd
chore(internal): improve node 18 shims
stainless-app[bot] Apr 9, 2025
464431d
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 9, 2025
1071b34
fix(internal): fix file uploads in node 18 jest
stainless-app[bot] Apr 10, 2025
595678f
chore(client): minor internal fixes
stainless-app[bot] Apr 14, 2025
975795a
chore(perf): faster base64 decoding
stainless-app[bot] Apr 22, 2025
385f900
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 22, 2025
7176150
chore(ci): run on more branches and use depot runners
stainless-app[bot] Apr 23, 2025
1f05880
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 23, 2025
b3dee57
chore(internal): refactor utils
stainless-app[bot] Apr 28, 2025
6f8fce9
docs(readme): fix typo
stainless-app[bot] Apr 30, 2025
9ce30ba
chore(internal): fix format script
stainless-app[bot] May 2, 2025
74187db
chore(internal): share typescript helpers
stainless-app[bot] May 2, 2025
caab783
feat(client): add withOptions helper
stainless-app[bot] May 6, 2025
ffbb2da
chore(client): drop support for EOL node versions
stainless-app[bot] May 6, 2025
a6ae129
chore(internal): codegen related update
stainless-app[bot] May 7, 2025
b36623f
feat(api): adds web search capabilities to the Claude API
stainless-app[bot] May 7, 2025
7bd4594
chore(internal): formatting fixes
RobertCraigie May 7, 2025
a718745
Update README - tool use is no longer beta
nsmccandlish May 6, 2025
9f611d6
chore(bedrock): bump @aws-sdk/credential-providers
RobertCraigie Apr 25, 2025
ff925db
chore(bedrock): bump @aws-sdk dependencies
RobertCraigie Apr 28, 2025
cb620bb
fix(bedrock,vertex): update to new SDK version
stainless-em Mar 20, 2025
c2709b2
fix(messages): updates for server tools
RobertCraigie May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .devcontainer/Dockerfile

This file was deleted.

25 changes: 10 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile"
"name": "Development",
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"postCreateCommand": "yarn install",
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode"]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

53 changes: 33 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,81 @@
name: CI
on:
push:
branches:
- main
- alpha
pull_request:
branches:
- main
- next
- alpha
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest
if: github.repository == 'anthropics/anthropic-sdk-typescript'

runs-on: ${{ github.repository == 'stainless-sdks/anthropic-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Check types
run: ./scripts/lint

build:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
timeout-minutes: 5
name: build
runs-on: ubuntu-latest
if: github.repository == 'anthropics/anthropic-sdk-typescript'

runs-on: ${{ github.repository == 'stainless-sdks/anthropic-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Check build
run: ./scripts/build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/anthropic-typescript'
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/anthropic-typescript'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh
test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest
if: github.repository == 'anthropics/anthropic-sdk-typescript'

runs-on: ${{ github.repository == 'stainless-sdks/anthropic-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
1 change: 0 additions & 1 deletion .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ jobs:
env:
DATA: ${{ toJSON(steps.release.outputs) }}
NPM_TOKEN: ${{ secrets.ANTHROPIC_NPM_TOKEN || secrets.NPM_TOKEN }}

1 change: 0 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ jobs:
env:
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
NPM_TOKEN: ${{ secrets.ANTHROPIC_NPM_TOKEN || secrets.NPM_TOKEN }}

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ CHANGELOG.md

# don't format tsc output, will break source maps
/dist
/packages/*/dist
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
".": "0.34.0-alpha.0",
".": "0.40.0-beta.0",
"packages/vertex-sdk": "0.6.1",
"packages/bedrock-sdk": "0.12.0"
}
4 changes: 3 additions & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fd67aea6883f1ee9e46f31a42d3940f0acb1749e787055bd9b9f278b20fa53ec.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-7015ea2d98991d6c2e7931c521e36448778fe868cc1b8a21173898d67b14b819.yml
openapi_spec_hash: 2007ff815a3f39af8cebe1976d50f17d
config_hash: 4d0dcf47d77eae22d34624d2ac0f0b46
Loading