Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
5e52131
feat(api): api update (#50)
Nov 6, 2024
c8a8e0e
feat(api): api update (#52)
stainless-app[bot] Oct 22, 2024
b3c1bb2
feat(api): api update (#53)
stainless-app[bot] Oct 23, 2024
9a85a86
feat(api): api update (#54)
stainless-app[bot] Oct 23, 2024
1aff44c
chore: rebuild project due to codegen change (#55)
stainless-app[bot] Oct 25, 2024
e16106b
chore: rebuild project due to codegen change (#56)
stainless-app[bot] Oct 25, 2024
3a5fc1c
chore: rebuild project due to codegen change (#57)
stainless-app[bot] Oct 25, 2024
a98c90c
chore(api): manual updates (#58)
stainless-app[bot] Oct 28, 2024
fe5e454
chore: rebuild project due to codegen change (#59)
stainless-app[bot] Oct 28, 2024
619fdf9
chore: rebuild project due to codegen change (#60)
stainless-app[bot] Oct 30, 2024
34224b4
chore: rebuild project due to codegen change (#61)
stainless-app[bot] Oct 30, 2024
8d3804c
chore: rebuild project due to codegen change (#62)
stainless-app[bot] Oct 30, 2024
e941f87
chore: rebuild project due to codegen change (#63)
stainless-app[bot] Oct 30, 2024
5b393df
chore: rebuild project due to codegen change (#64)
stainless-app[bot] Nov 1, 2024
c86f18b
chore: rebuild project due to codegen change (#65)
stainless-app[bot] Nov 1, 2024
ffdfb6b
chore: rebuild project due to codegen change (#66)
stainless-app[bot] Nov 1, 2024
ba8f527
chore: rebuild project due to codegen change (#67)
stainless-app[bot] Nov 4, 2024
d852b92
chore: rebuild project due to codegen change (#68)
stainless-app[bot] Nov 5, 2024
7a303e4
chore: rebuild project due to codegen change (#69)
stainless-app[bot] Nov 5, 2024
f7b50d0
chore: rebuild project due to codegen change (#71)
Nov 7, 2024
d08c8b7
chore: rebuild project due to codegen change (#73)
stainless-app[bot] Nov 7, 2024
2ac019c
chore: rebuild project due to codegen change (#74)
stainless-app[bot] Nov 12, 2024
8f7b570
feat(api): manual updates (#75)
Nov 20, 2024
8732e08
feat(api): manual updates (#77)
Nov 20, 2024
0e42094
codegen metadata
stainless-bot Nov 15, 2024
f067007
chore: rebuild project due to codegen change (#78)
stainless-app[bot] Nov 19, 2024
5b6c4e5
feat(api): manual updates (#79)
stainless-app[bot] Nov 19, 2024
ecaf2ae
feat(api): manual updates (#80)
stainless-app[bot] Nov 19, 2024
72e13e2
feat(api): manual updates (#81)
stainless-app[bot] Nov 19, 2024
b54f251
feat(api): manual updates (#82)
stainless-app[bot] Nov 20, 2024
456fe14
feat(api): manual updates (#83)
stainless-app[bot] Nov 20, 2024
7849b85
feat(api): manual updates (#84)
stainless-app[bot] Nov 20, 2024
95066db
chore(deps): bump jackson to 2.18.1 (#86)
stainless-app[bot] Nov 21, 2024
58407f3
chore(internal): codegen related update (#87)
stainless-app[bot] Nov 21, 2024
e2385b2
chore(internal): codegen related update (#88)
stainless-app[bot] Nov 23, 2024
7a1838c
chore(internal): codegen related update (#89)
Dec 2, 2024
29bee4e
feat(api): manual updates (#91)
stainless-app[bot] Feb 11, 2025
5195a03
chore: minor change to tests (#93)
stainless-app[bot] Feb 8, 2025
15a955a
docs: add more phantom reachability docs (#94)
stainless-app[bot] Feb 13, 2025
40ba4ff
chore(internal): codegen related update (#95)
stainless-app[bot] Mar 4, 2025
4ca424c
chore(internal): refactor `ErrorHandlingTest` (#96)
stainless-app[bot] Mar 4, 2025
e92c8c8
feat(client): allow configuring timeouts granularly (#97)
stainless-app[bot] Mar 5, 2025
402d7d4
feat(client): support raw response access (#98)
stainless-app[bot] Mar 5, 2025
b6cd77a
chore(client)!: refactor multipart formdata impl (#99)
stainless-app[bot] Mar 5, 2025
4c488b8
docs: add raw response readme documentation (#100)
stainless-app[bot] Mar 5, 2025
fac37c4
docs: note required fields in `builder` javadoc (#101)
stainless-app[bot] Mar 5, 2025
d68c4ee
feat(client): accept `InputStream` and `Path` for file params (#102)
stainless-app[bot] Mar 7, 2025
2576b86
feat(client): detect binary incompatible jackson versions (#103)
stainless-app[bot] Mar 7, 2025
af10dfa
feat: generate and publish docs (#104)
stainless-app[bot] Mar 8, 2025
3a73e2e
chore(internal): add `.kotlin` to `.gitignore` (#105)
stainless-app[bot] Mar 8, 2025
a2ece91
chore(internal): reenable warnings as errors (#106)
stainless-app[bot] Mar 8, 2025
9517ac1
chore(internal): update variable names in tests (#107)
stainless-app[bot] Mar 8, 2025
6c4a081
docs: revise readme docs about nested params (#108)
stainless-app[bot] Mar 11, 2025
11b3017
docs: document `JsonValue` construction in readme (#109)
stainless-app[bot] Mar 11, 2025
114138e
chore(internal): codegen related update (#110)
stainless-app[bot] Mar 11, 2025
3632207
chore(internal): codegen related update (#111)
stainless-app[bot] Mar 12, 2025
9a6b149
chore(internal): codegen related update (#112)
stainless-app[bot] Mar 12, 2025
29c3842
chore(internal): codegen related update (#113)
stainless-app[bot] Mar 12, 2025
9d96723
chore(internal): codegen related update (#114)
stainless-app[bot] Mar 12, 2025
e471285
chore(internal): codegen related update (#115)
stainless-app[bot] Mar 13, 2025
461eeda
chore(internal): remove extra empty newlines (#116)
stainless-app[bot] Mar 14, 2025
b68f811
feat(api): manual updates (#117)
stainless-app[bot] Mar 14, 2025
a820adb
feat(api): manual updates (#118)
stainless-app[bot] Mar 14, 2025
4ef778b
feat(api): manual updates (#120)
stainless-app[bot] Mar 14, 2025
093acc4
feat(api): manual updates (#121)
stainless-app[bot] Mar 14, 2025
a47e6a6
docs: deduplicate and refine comments (#122)
stainless-app[bot] Mar 15, 2025
ed8cb24
chore(internal): make test classes internal (#123)
stainless-app[bot] Mar 17, 2025
3a85ba6
chore(internal): add generated comment (#124)
stainless-app[bot] Mar 18, 2025
54c75b9
docs: add `build` method comments (#125)
stainless-app[bot] Mar 18, 2025
9fcd889
chore(internal): refactor query param serialization impl and tests (#…
stainless-app[bot] Mar 18, 2025
37a409a
chore(internal): add tests for `_headers()` (#127)
stainless-app[bot] Mar 19, 2025
21aff2b
chore(internal): reformat some tests (#128)
stainless-app[bot] Mar 19, 2025
0437e08
fix(client): support kotlin 1.8 runtime (#129)
stainless-app[bot] Mar 19, 2025
0f12e8a
chore(internal): refactor enum query param serialization (#130)
stainless-app[bot] Mar 19, 2025
73bca42
chore(internal): add missing release please block (#131)
stainless-app[bot] Mar 20, 2025
d06a530
chore(client)!: refactor exception structure and methods (#132)
stainless-app[bot] Mar 20, 2025
1c4b313
docs: refine comments on multipart params (#133)
stainless-app[bot] Mar 21, 2025
942c135
chore(internal): codegen related update (#134)
stainless-app[bot] Mar 22, 2025
cedf2ce
docs: update readme exception docs (#135)
stainless-app[bot] Mar 22, 2025
d802340
docs: minor readme tweak (#136)
stainless-app[bot] Mar 22, 2025
8fe19ac
feat(client): support a lower jackson version (#137)
stainless-app[bot] Mar 26, 2025
b0b0082
codegen metadata
stainless-app[bot] Mar 27, 2025
0092e84
chore(internal): delete unused methods and annotations (#138)
stainless-app[bot] Mar 27, 2025
824e27f
chore(internal): swap from `Builder().from(...)` to `toBuilder()` (#139)
stainless-app[bot] Mar 28, 2025
820c859
codegen metadata
stainless-app[bot] Mar 29, 2025
4819d56
fix(client): don't call `validate()` during deserialization if we don…
stainless-app[bot] Mar 29, 2025
346b726
fix(client): limit json deserialization coercion (#141)
stainless-app[bot] Apr 1, 2025
a82733e
fix: pluralize `list` response variables (#142)
stainless-app[bot] Apr 2, 2025
1e676fb
feat(client): make union deserialization more robust (#143)
stainless-app[bot] Apr 2, 2025
fd2e2f3
codegen metadata
stainless-app[bot] Apr 2, 2025
e1abefb
feat(client): make datetime deserialization more lenient (#144)
stainless-app[bot] Apr 2, 2025
9f61f5b
feat(client): expose request body setter and getter (#145)
stainless-app[bot] Apr 3, 2025
e31b6eb
chore(internal): codegen related update (#146)
stainless-app[bot] Apr 4, 2025
be273d1
perf(client): cached parsed type in `HttpResponseFor` (#147)
stainless-app[bot] Apr 4, 2025
a53cd38
docs: add comments to `JsonField` classes (#148)
stainless-app[bot] Apr 4, 2025
d1d2b4e
docs: swap examples used in readme (#149)
stainless-app[bot] Apr 5, 2025
a051a62
feat(client): support setting base URL via env var
stainless-app[bot] Apr 10, 2025
ebd3cbe
chore(internal): expand CI branch coverage
stainless-app[bot] Apr 10, 2025
1ecc879
fix(client): bump to better jackson version
stainless-app[bot] Apr 10, 2025
71968b4
refactor(client): deduplicate page response classes
stainless-app[bot] Apr 10, 2025
2113261
refactor(client): migrate pages to builder pattern
stainless-app[bot] Apr 10, 2025
34931ed
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 10, 2025
8d54da2
docs: update documentation links to be more uniform
stainless-app[bot] Apr 15, 2025
586f861
docs(client): update jackson compat error message
stainless-app[bot] Apr 16, 2025
0855121
docs: explain jackson compat in readme
stainless-app[bot] Apr 16, 2025
af659ea
chore(internal): codegen related update
stainless-app[bot] Apr 17, 2025
d19552a
docs: explain http client customization
stainless-app[bot] Apr 17, 2025
a4be02a
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 23, 2025
a9f3ce0
chore(internal): codegen related update
stainless-app[bot] Apr 24, 2025
c32ff0c
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 24, 2025
7908cfe
chore(internal): java 17 -> 21 on ci
stainless-app[bot] Apr 24, 2025
e419cef
chore(internal): update java toolchain
stainless-app[bot] May 2, 2025
0ea5d66
chore(internal): remove flaky `-Xbackend-threads=0` option
stainless-app[bot] May 7, 2025
c543351
feat(client): allow providing some params positionally
stainless-app[bot] May 9, 2025
12a94f0
feat(client)!: extract auto pagination to shared classes
stainless-app[bot] May 9, 2025
149705f
chore(docs): grammar improvements
stainless-app[bot] May 22, 2025
1839ec8
feat(client): implement per-endpoint base URL support
stainless-app[bot] Jun 12, 2025
0599455
feat(client): add a `withOptions` method
stainless-app[bot] Jun 13, 2025
9883bd7
chore(ci): enable for pull requests
stainless-app[bot] Jun 17, 2025
267ec75
fix(client): bump max requests per host to max requests (5 -> 64)
stainless-app[bot] Jun 24, 2025
c4b98ad
fix(ci): release-doctor — report correct token name
stainless-app[bot] Jun 27, 2025
6fe433e
chore(ci): only run for pushes and fork pull requests
stainless-app[bot] Jun 28, 2025
f34eb56
fix(client): don't close client on `withOptions` usage when original …
stainless-app[bot] Jun 30, 2025
151c8eb
refactor(internal): minor `ClientOptionsTest` change
stainless-app[bot] Jul 1, 2025
53f3fde
chore(ci): ensure docs generation always succeeds
stainless-app[bot] Jul 9, 2025
ae504a3
chore(ci): bump `actions/setup-java` to v4
stainless-app[bot] Jul 16, 2025
b685ffd
chore(internal): allow running specific example from cli
stainless-app[bot] Jul 17, 2025
9c943ae
fix(client): ensure error handling always occurs
stainless-app[bot] Jul 18, 2025
6a172fb
chore(internal): refactor delegating from client to options
stainless-app[bot] Jul 19, 2025
789d35f
feat(client): add https config options
stainless-app[bot] Jul 19, 2025
4604608
feat(client): allow configuring env via system properties
stainless-app[bot] Jul 22, 2025
430e2f3
feat(client): add `{QueryParams,Headers}#put(String, JsonValue)` methods
stainless-app[bot] Jul 22, 2025
32b005b
docs: fix missing readme comment
stainless-app[bot] Jul 24, 2025
ff29dfc
fix(client): accidental mutability of some classes
stainless-app[bot] Jul 24, 2025
8199199
chore(internal): remove unnecessary `[...]` in `@see`
stainless-app[bot] Jul 25, 2025
869771b
docs: more code comments
stainless-app[bot] Jul 25, 2025
42635ab
feat(client): ensure compat with proguard
stainless-app[bot] Jul 29, 2025
a2c54ff
feat: add retryable exception
stainless-app[bot] Jul 30, 2025
3eeb5d5
fix(client): r8 support
stainless-app[bot] Aug 1, 2025
d9e31bd
chore(internal): reduce proguard ci logging
stainless-app[bot] Aug 1, 2025
cdb84ce
chore(internal): bump ci test timeout
stainless-app[bot] Aug 1, 2025
1bfeedd
chore(internal): add lock helper
stainless-app[bot] Aug 5, 2025
5177a6e
chore(example): fix run example comment
stainless-app[bot] Aug 6, 2025
735ab96
chore: increase max gradle JVM heap to 8GB
stainless-app[bot] Aug 8, 2025
08cdbb1
chore: update @stainless-api/prism-cli to v5.15.0
stainless-app[bot] Aug 9, 2025
0804ff2
chore(internal): update comment in script
stainless-app[bot] Aug 9, 2025
c842666
chore(internal): codegen related update
stainless-app[bot] Aug 13, 2025
d7375bb
chore(internal): dynamically determine included projects
stainless-app[bot] Aug 13, 2025
a06c26e
chore(internal): support passing arguments to test script
stainless-app[bot] Aug 13, 2025
b8e05ea
perf(internal): make formatting faster
stainless-app[bot] Aug 13, 2025
aa79cc8
chore(ci): add build job
stainless-app[bot] Aug 14, 2025
96dc010
chore(client): refactor closing / shutdown
stainless-app[bot] Aug 20, 2025
08b97d9
chore(internal): support running ktfmt directly
stainless-app[bot] Aug 20, 2025
ad903a2
chore: remove memory upper bound from publishing step
stainless-app[bot] Aug 21, 2025
140ff0c
chore(ci): reduce log noise
stainless-app[bot] Aug 22, 2025
772887c
fix: update singularization rules
stainless-app[bot] Aug 22, 2025
a2c6996
fix: fix casing issue
stainless-app[bot] Aug 23, 2025
e72ceec
fix(ci): use java-version 21 for publish step
stainless-app[bot] Sep 3, 2025
3971ee0
codegen metadata
stainless-app[bot] Sep 9, 2025
c901eb6
fix(client): incorrect `getPackageVersion` impl
stainless-app[bot] Sep 16, 2025
dfcb76f
feat(client): expose sleeper option
stainless-app[bot] Sep 20, 2025
0ffe055
fix(client): deserialization of empty objects
stainless-app[bot] Sep 26, 2025
992e97d
fix(client): multi-value header serialization
stainless-app[bot] Nov 14, 2025
9fbdb0d
docs: remove `$` for better copy-pasteabality
stainless-app[bot] Dec 3, 2025
4a6a1bb
release: 0.4.0
stainless-app[bot] Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
59 changes: 43 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,71 @@
name: CI
on:
push:
branches:
- main
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches:
- main
- next
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 15
name: lint
runs-on: ubuntu-latest

runs-on: ${{ github.repository == 'stainless-sdks/braintrust-sdk-kotlin' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
8
17
21
cache: gradle

- name: Set up Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v4

- name: Run lints
run: ./scripts/lint

build:
timeout-minutes: 15
name: build
runs-on: ${{ github.repository == 'stainless-sdks/braintrust-sdk-kotlin' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
8
21
cache: gradle

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build SDK
run: ./scripts/build

test:
timeout-minutes: 15
name: test
runs-on: ubuntu-latest

runs-on: ${{ github.repository == 'stainless-sdks/braintrust-sdk-kotlin' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

Expand All @@ -47,12 +75,11 @@ jobs:
distribution: temurin
java-version: |
8
17
21
cache: gradle

- name: Set up Gradle
uses: gradle/gradle-build-action@v2

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

12 changes: 7 additions & 5 deletions .github/workflows/publish-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,25 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
8
17
21
cache: gradle

- name: Set up Gradle
uses: gradle/gradle-build-action@v2

- name: Publish to Sonatype
run: |
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD"
run: |-
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
env:
SONATYPE_USERNAME: ${{ secrets.BRAINTRUST_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.BRAINTRUST_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
GPG_SIGNING_KEY_ID: ${{ secrets.BRAINTRUST_SONATYPE_GPG_SIGNING_KEY_ID || secrets.GPG_SIGNING_KEY_ID }}
GPG_SIGNING_KEY: ${{ secrets.BRAINTRUST_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.BRAINTRUST_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
1 change: 0 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ jobs:
env:
SONATYPE_USERNAME: ${{ secrets.BRAINTRUST_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.BRAINTRUST_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
GPG_SIGNING_KEY_ID: ${{ secrets.BRAINTRUST_SONATYPE_GPG_SIGNING_KEY_ID || secrets.GPG_SIGNING_KEY_ID }}
GPG_SIGNING_KEY: ${{ secrets.BRAINTRUST_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.BRAINTRUST_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.prism.log
.gradle
.idea
build
.kotlin
build/
codegen.log
kls_database.db
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.0"
".": "0.4.0"
}
6 changes: 4 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 104
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-9d216c8243fe39ba2ffe3bffaab0dba53f1c04b7216d22f9072f6611233de0c7.yml
configured_endpoints: 110
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-f0d64ce0e0efde75f9c171f7f3c3d4a72f00a77abb3bc5a7d65b7be1e715689b.yml
openapi_spec_hash: a027e48cc6aea2fab3cbdd38f4081119
config_hash: dca6e2cafd0764aa5fa3e78987e8b07c
Loading
Loading