Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c9feb17
chore: go live (#1)
stainless-app[bot] Apr 2, 2025
10296a9
feat(api): update via SDK Studio (#2)
stainless-app[bot] Apr 2, 2025
41a134f
codegen metadata
stainless-app[bot] Apr 2, 2025
caa5a30
refactor: split up completion target into multiple lines (#3)
stainless-app[bot] Apr 4, 2025
6ee9d9f
codegen metadata
stainless-app[bot] Apr 8, 2025
0380cc7
feat(api): update via SDK Studio (#4)
stainless-app[bot] Apr 8, 2025
2680134
fix: don't overwrite headers (#5)
stainless-app[bot] Apr 8, 2025
efc8a25
codegen metadata
stainless-app[bot] Apr 8, 2025
fbfb92c
codegen metadata
stainless-app[bot] Apr 8, 2025
05e2a9f
codegen metadata
stainless-app[bot] Apr 8, 2025
3c449d1
codegen metadata
stainless-app[bot] Apr 8, 2025
4bb6e9f
codegen metadata
stainless-app[bot] Apr 8, 2025
676ed23
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
947c01a
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
f598f10
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
15bda00
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
bc90b96
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
0aeaa78
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
611beb0
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
dfc8fa2
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
1cc704d
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
514327b
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
69fd666
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
c654f3d
feat(api): manual updates
stainless-app[bot] Apr 18, 2025
79ceae1
feat(api): manual updates
stainless-app[bot] Apr 21, 2025
7a35228
feat: add typescript
stainless-app[bot] Apr 21, 2025
9943696
feat: change list endpoint
stainless-app[bot] Apr 21, 2025
b87d671
feat(api): remove discriminator thing
stainless-app[bot] Apr 21, 2025
e70ad16
feat(api): fix enum name conflict maybe
stainless-app[bot] Apr 21, 2025
540a1a0
feat(api): parent build id
stainless-app[bot] Apr 21, 2025
fe39102
feat(api): use correct hashes
stainless-app[bot] Apr 21, 2025
c694b82
feat(api): manual updates
stainless-app[bot] Apr 22, 2025
24361de
feat(api): configs
stainless-app[bot] Apr 24, 2025
b1ae8e7
feat: use urfave/cli library
stainless-app[bot] Apr 28, 2025
aeaafee
feat(api): manual updates
stainless-app[bot] Apr 28, 2025
b7e9c79
feat(api): rename api key
stainless-app[bot] Apr 28, 2025
d7fa9ae
feat(api): manual updates
stainless-app[bot] Apr 30, 2025
640c152
feat(api): manual updates
stainless-app[bot] Apr 30, 2025
af7fad0
chore: configure releases
stainless-app[bot] Apr 30, 2025
5b48010
release: 0.1.0-alpha.1
stainless-app[bot] Apr 30, 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
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}

steps:
- uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Run lints
run: ./scripts/lint
31 changes: 31 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Publish Release
permissions:
contents: write

concurrency:
group: publish

on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6.1.0
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'stainless-api/stainless-api-cli' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4

- name: Check release environment
run: |
bash ./bin/check-release-environment
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.prism.log
dist/
stainless-v0-cli
stainless-api-cli
57 changes: 57 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
project_name: stainless-api-cli
version: 2

builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
binary: '{{ .ProjectName }}'
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"

- id: linux
goos: [linux]
goarch: ['386', arm, amd64, arm64]
env:
- CGO_ENABLED=0
binary: '{{ .ProjectName }}'
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"

- id: windows
goos: [windows]
goarch: ['386', amd64, arm64]
binary: '{{ .ProjectName }}'
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"

archives:
- id: linux-archive
ids: [linux]
name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
wrap_in_directory: true
formats: [tar.gz]
- id: macos-archive
ids: [macos]
name_template: '{{ .ProjectName }}_{{ .Version }}_macos_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
wrap_in_directory: true
formats: [zip]
- id: windows-archive
ids: [windows]
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
wrap_in_directory: false
formats: [zip]

snapshot:
version_template: "{{ .Tag }}-next"

nfpms:
- license: Apache-2.0
maintainer:
bindir: /usr
formats:
- deb
- rpm
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0-alpha.1"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-76dbc699edc35f7b97378d746e3e72be3e849c60373fdb27054c61f4d1df3490.yml
openapi_spec_hash: 1645053eb0d0cb91d4c799680e860293
config_hash: f7864ea9299ef30788a1f8a76b695360
configured_endpoints: 14
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-5005d23980f589ea52eb1678ed620336b7c1172e3b1493a5c819c6b00f22203e.yml
openapi_spec_hash: 2a29f55c69490ab4d0ee5eb32727ab46
config_hash: 66be21d9e622533a4b22a18501a02005
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Changelog

## 0.1.0-alpha.1 (2025-04-30)

Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/stainless-api/stainless-api-cli/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)

### Features

* add typescript ([7a35228](https://github.com/stainless-api/stainless-api-cli/commit/7a3522871cb71d0511e8066d8c7052731d0fe56a))
* **api:** configs ([24361de](https://github.com/stainless-api/stainless-api-cli/commit/24361de65a1e8f72b1f7fda391e158f6737c7691))
* **api:** fix enum name conflict maybe ([e70ad16](https://github.com/stainless-api/stainless-api-cli/commit/e70ad1613201ddcbc500c372f904fd5dd6b33670))
* **api:** manual updates ([640c152](https://github.com/stainless-api/stainless-api-cli/commit/640c152a0fa8a2de1d8f90e6fe7588a73f8dd06b))
* **api:** manual updates ([d7fa9ae](https://github.com/stainless-api/stainless-api-cli/commit/d7fa9ae3231e881206843cd2044c1657f48c3455))
* **api:** manual updates ([aeaafee](https://github.com/stainless-api/stainless-api-cli/commit/aeaafee818795dbb22170c3eb778aa6a88ec3815))
* **api:** manual updates ([c694b82](https://github.com/stainless-api/stainless-api-cli/commit/c694b821b6720263e512c35d9e6c2fe71cb504f5))
* **api:** manual updates ([79ceae1](https://github.com/stainless-api/stainless-api-cli/commit/79ceae11587809ff66d89987cb43767890976727))
* **api:** manual updates ([c654f3d](https://github.com/stainless-api/stainless-api-cli/commit/c654f3dd0ebc143f724d7456920115e7eeff3543))
* **api:** manual updates ([69fd666](https://github.com/stainless-api/stainless-api-cli/commit/69fd666912c10edf82d9fac0b9a34e8a8201c0fd))
* **api:** manual updates ([514327b](https://github.com/stainless-api/stainless-api-cli/commit/514327b63421852a37eb64177e57987f64580620))
* **api:** manual updates ([1cc704d](https://github.com/stainless-api/stainless-api-cli/commit/1cc704d81c9bde5de6d4a0049d58868701919ec6))
* **api:** manual updates ([dfc8fa2](https://github.com/stainless-api/stainless-api-cli/commit/dfc8fa2e632544cf63d50ec02143ffe20cf30773))
* **api:** manual updates ([611beb0](https://github.com/stainless-api/stainless-api-cli/commit/611beb0f2fcff7fc46609864b0b51a102a825aad))
* **api:** manual updates ([0aeaa78](https://github.com/stainless-api/stainless-api-cli/commit/0aeaa78a2e8f59e8466cd0df451ee551245b4ef4))
* **api:** manual updates ([bc90b96](https://github.com/stainless-api/stainless-api-cli/commit/bc90b965b2df3c688bad5cef93cda86aaf228edf))
* **api:** manual updates ([15bda00](https://github.com/stainless-api/stainless-api-cli/commit/15bda00e341f32b2fa2a3ac059c311c014a17863))
* **api:** manual updates ([f598f10](https://github.com/stainless-api/stainless-api-cli/commit/f598f10545abbedca7db1a8e59c19a21f3393c44))
* **api:** manual updates ([947c01a](https://github.com/stainless-api/stainless-api-cli/commit/947c01ac614c6a0694cad2980150e9aaa6b8b76d))
* **api:** manual updates ([676ed23](https://github.com/stainless-api/stainless-api-cli/commit/676ed23f267362057b36797fed487db9beea3e26))
* **api:** parent build id ([540a1a0](https://github.com/stainless-api/stainless-api-cli/commit/540a1a06aef7294860f53326accc85379695b092))
* **api:** remove discriminator thing ([b87d671](https://github.com/stainless-api/stainless-api-cli/commit/b87d671eb9cb433d2e25e1e642bd65101f5c5012))
* **api:** rename api key ([b7e9c79](https://github.com/stainless-api/stainless-api-cli/commit/b7e9c790166bea892b438d58fe1c09a3fc9158ac))
* **api:** update via SDK Studio ([57b41f3](https://github.com/stainless-api/stainless-api-cli/commit/57b41f3587fb39b81719ec363c9c8a559c45eb70))
* **api:** update via SDK Studio ([8e817cc](https://github.com/stainless-api/stainless-api-cli/commit/8e817cc694231314fcd5f959497eeaade9819df5))
* **api:** update via SDK Studio ([8e4f061](https://github.com/stainless-api/stainless-api-cli/commit/8e4f061fa25a4d1847fc0025bc9dfb28fdc12f8a))
* **api:** update via SDK Studio ([#2](https://github.com/stainless-api/stainless-api-cli/issues/2)) ([10296a9](https://github.com/stainless-api/stainless-api-cli/commit/10296a982896077aa6923a67e697ba984177ef79))
* **api:** update via SDK Studio ([#4](https://github.com/stainless-api/stainless-api-cli/issues/4)) ([0380cc7](https://github.com/stainless-api/stainless-api-cli/commit/0380cc735be7df8284ab846dc1e78ab7d56f7942))
* **api:** use correct hashes ([fe39102](https://github.com/stainless-api/stainless-api-cli/commit/fe391029e2b2cfd7f56fbdeb7c6e3fe4b5efa86c))
* change list endpoint ([9943696](https://github.com/stainless-api/stainless-api-cli/commit/99436969643e83cf65d2cb9d06bf696225d0bc01))
* use urfave/cli library ([b1ae8e7](https://github.com/stainless-api/stainless-api-cli/commit/b1ae8e7ede73da7327e4b6764503e9152175923e))


### Bug Fixes

* don't overwrite headers ([#5](https://github.com/stainless-api/stainless-api-cli/issues/5)) ([2680134](https://github.com/stainless-api/stainless-api-cli/commit/2680134b981409ec9bdb5acaed2cf57c7cfb61be))


### Chores

* configure releases ([af7fad0](https://github.com/stainless-api/stainless-api-cli/commit/af7fad0fe84224aac40b03196412c3e285c57769))
* go live ([#1](https://github.com/stainless-api/stainless-api-cli/issues/1)) ([c9feb17](https://github.com/stainless-api/stainless-api-cli/commit/c9feb179487869081f1632c06f437220e74c5d5d))
* **internal:** codegen related update ([ec4f098](https://github.com/stainless-api/stainless-api-cli/commit/ec4f098eb4bb7a177acf30900dabc3b38ce08ca4))
* **internal:** codegen related update ([5d4d480](https://github.com/stainless-api/stainless-api-cli/commit/5d4d480936c1921673e32f21e92bcfaa63944913))


### Refactors

* split up completion target into multiple lines ([#3](https://github.com/stainless-api/stainless-api-cli/issues/3)) ([caa5a30](https://github.com/stainless-api/stainless-api-cli/commit/caa5a300c058762fababf68a5082c43c53f65b32))
4 changes: 0 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ before making any information public.
If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by Stainless V0 please follow the respective company's security reporting guidelines.

### Stainless V0 Terms and Policies

Please contact dev-feedback@stainless-v0.com for any questions or concerns regarding security of our services.

---

Thank you for helping us keep the SDKs and systems they interact with secure.
17 changes: 17 additions & 0 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

errors=()

lenErrors=${#errors[@]}

if [[ lenErrors -gt 0 ]]; then
echo -e "Found the following errors in the release environment:\n"

for error in "${errors[@]}"; do
echo -e "- $error\n"
done

exit 1
fi

echo "The environment is ready to push releases!"
Loading
Loading