Skip to content

Commit 02f42dd

Browse files
authored
Merge pull request #1 from cryptechdev/release-please--branches--main--changes--next
2 parents 658ca27 + 8c4148d commit 02f42dd

149 files changed

Lines changed: 3106 additions & 1893 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'
@@ -17,7 +19,7 @@ jobs:
1719
timeout-minutes: 10
1820
name: lint
1921
runs-on: ${{ github.repository == 'stainless-sdks/neptune-api-v2-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
22+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2123
steps:
2224
- uses: actions/checkout@v6
2325

@@ -33,7 +35,7 @@ jobs:
3335
run: ./scripts/lint
3436

3537
build:
36-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
38+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
3739
timeout-minutes: 10
3840
name: build
3941
permissions:
@@ -55,14 +57,18 @@ jobs:
5557
run: uv build
5658

5759
- name: Get GitHub OIDC Token
58-
if: github.repository == 'stainless-sdks/neptune-api-v2-python'
60+
if: |-
61+
github.repository == 'stainless-sdks/neptune-api-v2-python' &&
62+
!startsWith(github.ref, 'refs/heads/stl/')
5963
id: github-oidc
6064
uses: actions/github-script@v8
6165
with:
6266
script: core.setOutput('github_token', await core.getIDToken());
6367

6468
- name: Upload tarball
65-
if: github.repository == 'stainless-sdks/neptune-api-v2-python'
69+
if: |-
70+
github.repository == 'stainless-sdks/neptune-api-v2-python' &&
71+
!startsWith(github.ref, 'refs/heads/stl/')
6672
env:
6773
URL: https://pkg.stainless.com/s
6874
AUTH: ${{ steps.github-oidc.outputs.github_token }}

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow is triggered when a GitHub release is created.
22
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
3-
# You can run this workflow by navigating to https://www.github.com/cryptechdev/stainless-api-v2-python/actions/workflows/publish-pypi.yml
3+
# You can run this workflow by navigating to https://www.github.com/cryptechdev/neptune-api-v2-python/actions/workflows/publish-pypi.yml
44
name: Publish PyPI
55
on:
66
workflow_dispatch:

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release_doctor:
1010
name: release doctor
1111
runs-on: ubuntu-latest
12-
if: github.repository == 'cryptechdev/stainless-api-v2-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
12+
if: github.repository == 'cryptechdev/neptune-api-v2-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
1515
- uses: actions/checkout@v6

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.prism.log
2+
.stdy.log
23
_dev
34

45
__pycache__

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.0.1"
2+
".": "0.1.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-9048b9a34641ce9f489cc9813115c2cbe53ba4e19fec4d4be8ad50cc4c6dc955.yml
3-
openapi_spec_hash: 90a2e162ca6a44232297cba2c5017476
4-
config_hash: da42ffa688c006ab6ebd3493c9dfb0c6
1+
configured_endpoints: 48
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-5768d4f43166406f5b74235f2dd9e91082bd67a7b182ca05d5df55604ebedd7e.yml
3+
openapi_spec_hash: 2c5da98fd945fbfc68611634b7aa7042
4+
config_hash: fa0efc29593602eac57523d55bc83fa6

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Changelog
2+
3+
## 0.1.0 (2026-03-30)
4+
5+
Full Changelog: [v0.0.1...v0.1.0](https://github.com/cryptechdev/neptune-api-v2-python/compare/v0.0.1...v0.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([b6c29db](https://github.com/cryptechdev/neptune-api-v2-python/commit/b6c29dbc5c8474713d3b45ad71d9e6ad36f269d5))
10+
* **api:** fix missing unlocks endpoint ([fabb464](https://github.com/cryptechdev/neptune-api-v2-python/commit/fabb464d4759502d7f49abdad35c2d06e227f414))
11+
* **api:** fix npm package name yaml ([9ce497f](https://github.com/cryptechdev/neptune-api-v2-python/commit/9ce497f5da04a604c0fa6f1ff0ee229372a27bfb))
12+
* **api:** manual updates ([b7c41b2](https://github.com/cryptechdev/neptune-api-v2-python/commit/b7c41b2c316bc714f82b75233307cb53040366c9))
13+
* **api:** manual updates ([f9cfab2](https://github.com/cryptechdev/neptune-api-v2-python/commit/f9cfab2a146e924b7d3f07f253be4de3ba9e4a2a))
14+
* **api:** manual updates ([6f72f25](https://github.com/cryptechdev/neptune-api-v2-python/commit/6f72f25e1ad1f5209d896e95ec091df0175e7381))
15+
* **api:** manual updates ([ad3aa1d](https://github.com/cryptechdev/neptune-api-v2-python/commit/ad3aa1d9eb34446c929eef61fc8c1c7f02c47d27))
16+
* **api:** manual updates ([1637771](https://github.com/cryptechdev/neptune-api-v2-python/commit/163777148c4c49df2a6a1bc43f674527c87543b8))
17+
* **api:** manual updates ([88800d5](https://github.com/cryptechdev/neptune-api-v2-python/commit/88800d595d34fca5b632ee8905c691e8ece062d5))
18+
* **api:** manual updates ([734507c](https://github.com/cryptechdev/neptune-api-v2-python/commit/734507cb06dfce17a1577895c23ee9498a6b2cc2))
19+
* **api:** manual updates ([078f551](https://github.com/cryptechdev/neptune-api-v2-python/commit/078f551028b777b9f32caa954d16f98b0a188385))
20+
* **api:** manual updates ([c020beb](https://github.com/cryptechdev/neptune-api-v2-python/commit/c020bebc90b10afcb8e3fb4c4bb92db31d79a3a6))
21+
* **api:** manual updates ([e86feeb](https://github.com/cryptechdev/neptune-api-v2-python/commit/e86feeb3249f10c94bff4c20870d66b5d87c797f))
22+
* **api:** manual updates ([3208888](https://github.com/cryptechdev/neptune-api-v2-python/commit/32088880c9c616e927016134b5ffaa8fc25bbcc4))
23+
* **api:** manual updates ([e19ffc5](https://github.com/cryptechdev/neptune-api-v2-python/commit/e19ffc53385463539ba1ef1a2550c269053f301d))
24+
* **api:** manual updates ([665f696](https://github.com/cryptechdev/neptune-api-v2-python/commit/665f696256c564619c93dffcb53afd7359c95e30))
25+
* **api:** update openapi spec ([67890ec](https://github.com/cryptechdev/neptune-api-v2-python/commit/67890ec54db761e15180cb2553a757e57d4f9007))
26+
* **internal:** implement indices array format for query and form serialization ([03d9eb0](https://github.com/cryptechdev/neptune-api-v2-python/commit/03d9eb0b52e51bef70134c34432e4899b2094632))
27+
28+
29+
### Bug Fixes
30+
31+
* **deps:** bump minimum typing-extensions version ([c53e89a](https://github.com/cryptechdev/neptune-api-v2-python/commit/c53e89a6e5ba4e1b20012c7a141bc1858de26148))
32+
* **pydantic:** do not pass `by_alias` unless set ([fc8fe1a](https://github.com/cryptechdev/neptune-api-v2-python/commit/fc8fe1ae1177429d60d06dc7f0ba836b90964ff1))
33+
* sanitize endpoint path params ([44c0c8b](https://github.com/cryptechdev/neptune-api-v2-python/commit/44c0c8b8e3f5eeed5b54674c5a7ae43b8a176976))
34+
35+
36+
### Chores
37+
38+
* **ci:** bump uv version ([2eb8bd0](https://github.com/cryptechdev/neptune-api-v2-python/commit/2eb8bd02d7bb0cfbd130a4c1fcadf80422954c64))
39+
* **ci:** skip lint on metadata-only changes ([05a360f](https://github.com/cryptechdev/neptune-api-v2-python/commit/05a360fc519e9a75b6befeba4929e75f50bbd40b))
40+
* **ci:** skip uploading artifacts on stainless-internal branches ([18daf63](https://github.com/cryptechdev/neptune-api-v2-python/commit/18daf632e1cce3dcd2a6ff59252f39523a731e86))
41+
* configure new SDK language ([46f828a](https://github.com/cryptechdev/neptune-api-v2-python/commit/46f828ac3c0610a7e01eaa8577f8e822c629f3ec))
42+
* configure new SDK language ([e5f08fa](https://github.com/cryptechdev/neptune-api-v2-python/commit/e5f08fa74eec724defb1621f896a5182522a540b))
43+
* **internal:** add request options to SSE classes ([580d4ce](https://github.com/cryptechdev/neptune-api-v2-python/commit/580d4ce4f69a5cd75421af1465b5ebd209c34699))
44+
* **internal:** make `test_proxy_environment_variables` more resilient ([29b6d23](https://github.com/cryptechdev/neptune-api-v2-python/commit/29b6d2306832ef6eec67c77cbe1147b785d0ce17))
45+
* **internal:** make `test_proxy_environment_variables` more resilient to env ([75f44ea](https://github.com/cryptechdev/neptune-api-v2-python/commit/75f44eac55564fa4af69a3bf7bb00e4ede77ff29))
46+
* **internal:** refactor authentication internals ([3261db6](https://github.com/cryptechdev/neptune-api-v2-python/commit/3261db685ebc85d286eef92d04fb416f2bed5b6c))
47+
* **internal:** tweak CI branches ([73115dc](https://github.com/cryptechdev/neptune-api-v2-python/commit/73115dce28adf13fd26721e8d012ca37a5a15c5e))
48+
* **internal:** update gitignore ([234d18a](https://github.com/cryptechdev/neptune-api-v2-python/commit/234d18a2f8796f655ae9b581a183d8692679cf32))
49+
* update SDK settings ([a258db0](https://github.com/cryptechdev/neptune-api-v2-python/commit/a258db0798d0887900eec2e89153fde27f024349))
50+
* update SDK settings ([658ca27](https://github.com/cryptechdev/neptune-api-v2-python/commit/658ca278b9e97285664bee1bea5664a36dd3afea))

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6262
To install via git:
6363

6464
```sh
65-
$ pip install git+ssh://git@github.com/cryptechdev/stainless-api-v2-python.git
65+
$ pip install git+ssh://git@github.com/cryptechdev/neptune-api-v2-python.git
6666
```
6767

6868
Alternatively, you can build from source and install the wheel file:
@@ -113,7 +113,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
113113

114114
### Publish with a GitHub workflow
115115

116-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/cryptechdev/stainless-api-v2-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
116+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/cryptechdev/neptune-api-v2-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
117117

118118
### Publish manually
119119

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The full API of this library can be found in [api.md](api.md).
1717

1818
```sh
1919
# install from the production repo
20-
pip install git+ssh://git@github.com/cryptechdev/stainless-api-v2-python.git
20+
pip install git+ssh://git@github.com/cryptechdev/neptune-api-v2-python.git
2121
```
2222

2323
> [!NOTE]
@@ -65,7 +65,7 @@ You can enable this by installing `aiohttp`:
6565

6666
```sh
6767
# install from the production repo
68-
pip install 'neptune_api_v2[aiohttp] @ git+ssh://git@github.com/cryptechdev/stainless-api-v2-python.git'
68+
pip install 'neptune_api_v2[aiohttp] @ git+ssh://git@github.com/cryptechdev/neptune-api-v2-python.git'
6969
```
7070

7171
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
@@ -226,9 +226,9 @@ status = response.parse() # get the object that `status.check_health()` would h
226226
print(status.status)
227227
```
228228

229-
These methods return an [`APIResponse`](https://github.com/cryptechdev/stainless-api-v2-python/tree/main/src/neptune_api_v2/_response.py) object.
229+
These methods return an [`APIResponse`](https://github.com/cryptechdev/neptune-api-v2-python/tree/main/src/neptune_api_v2/_response.py) object.
230230

231-
The async client returns an [`AsyncAPIResponse`](https://github.com/cryptechdev/stainless-api-v2-python/tree/main/src/neptune_api_v2/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
231+
The async client returns an [`AsyncAPIResponse`](https://github.com/cryptechdev/neptune-api-v2-python/tree/main/src/neptune_api_v2/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
232232

233233
#### `.with_streaming_response`
234234

@@ -332,7 +332,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
332332

333333
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
334334

335-
We are keen for your feedback; please open an [issue](https://www.github.com/cryptechdev/stainless-api-v2-python/issues) with questions, bugs, or suggestions.
335+
We are keen for your feedback; please open an [issue](https://www.github.com/cryptechdev/neptune-api-v2-python/issues) with questions, bugs, or suggestions.
336336

337337
### Determining the installed version
338338

api.md

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,20 @@
33
Types:
44

55
```python
6-
from neptune_api_v2.types import ErrorData, Interval, IntervalUnit
6+
from neptune_api_v2.types import (
7+
ErrorData,
8+
ErrorDataVariants,
9+
ErrorKind,
10+
ErrorResponseVariants,
11+
ErrorScope,
12+
FieldValidationError,
13+
Interval,
14+
IntervalUnit,
15+
ListErrorResponse,
16+
ObjErrorResponse,
17+
ValidationErrorData,
18+
ValidationFieldSource,
19+
)
720
```
821

922
# Status
@@ -27,6 +40,9 @@ from neptune_api_v2.types import (
2740
AssetClassification,
2841
AssetInfo,
2942
AssetMetadata,
43+
AssetPrice,
44+
AssetPriceHistory,
45+
AssetRateHistory,
3046
AssetSpec,
3147
AssetListResponse,
3248
AssetGetPriceHistoryResponse,
@@ -46,8 +62,8 @@ Types:
4662

4763
```python
4864
from neptune_api_v2.types import (
49-
AssetRateHistory,
5065
GlobalMarketConfig,
66+
MarketRate,
5167
MergedMarket,
5268
MarketGetMergedResponse,
5369
MarketGetMergedByAssetResponse,
@@ -70,8 +86,8 @@ Types:
7086
```python
7187
from neptune_api_v2.types.markets import (
7288
LendMarket,
89+
LendMarketData,
7390
LendMarketState,
74-
MarketRate,
7591
LendListResponse,
7692
LendGetByAssetResponse,
7793
LendGetRateHistoryResponse,
@@ -109,6 +125,7 @@ Types:
109125
from neptune_api_v2.types.markets.borrow import (
110126
BorrowCollateralConfig,
111127
BorrowCollateralMarket,
128+
BorrowCollateralMarketData,
112129
BorrowCollateralState,
113130
CollateralListResponse,
114131
CollateralGetByAssetResponse,
@@ -128,6 +145,7 @@ Types:
128145
from neptune_api_v2.types.markets.borrow import (
129146
BorrowDebtConfig,
130147
BorrowDebtMarket,
148+
BorrowDebtMarketData,
131149
BorrowDebtState,
132150
DebtListResponse,
133151
DebtGetByAssetResponse,
@@ -145,6 +163,9 @@ Types:
145163

146164
```python
147165
from neptune_api_v2.types import (
166+
NeptParams,
167+
NeptState,
168+
NeptUnlockDistributionGroup,
148169
StakingPoolFull,
149170
StakingPoolParams,
150171
StakingPoolState,
@@ -165,7 +186,13 @@ Methods:
165186
Types:
166187

167188
```python
168-
from neptune_api_v2.types import EventAction, UserGetTxHistoryResponse, UserGetUserResponse
189+
from neptune_api_v2.types import (
190+
EventAction,
191+
User,
192+
UserTx,
193+
UserGetTxHistoryResponse,
194+
UserGetUserResponse,
195+
)
169196
```
170197

171198
Methods:
@@ -199,7 +226,7 @@ Types:
199226

200227
```python
201228
from neptune_api_v2.types.user.market import (
202-
UserDebtAssetPool,
229+
UserLendMarket,
203230
LendListResponse,
204231
LendGetByAssetResponse,
205232
)
@@ -217,6 +244,7 @@ Types:
217244
```python
218245
from neptune_api_v2.types.user.market import (
219246
UserBorrowMarket,
247+
UserBorrowMarketPools,
220248
BorrowGetCollateralAccountsByAssetResponse,
221249
BorrowGetCollateralTotalsResponse,
222250
BorrowGetDebtAccountsByAssetResponse,
@@ -241,7 +269,10 @@ Types:
241269
from neptune_api_v2.types.user.market.borrow import (
242270
UserAccountHealth,
243271
UserBorrowMarketAccount,
272+
UserCollateralAccountPool,
244273
UserCollateralAssetPool,
274+
UserDebtAccountPool,
275+
UserDebtAssetPool,
245276
SubaccountGetSubaccountResponse,
246277
SubaccountGetSubaccountCollateralsResponse,
247278
SubaccountGetSubaccountDebtsResponse,
@@ -262,8 +293,11 @@ Types:
262293

263294
```python
264295
from neptune_api_v2.types.user import (
265-
UserNeptUnlockAmounts,
266-
UserNeptUnlockOverview,
296+
UserUnlockAmounts,
297+
UserUnlockOverview,
298+
UserUnlockSchedule,
299+
UserUnlockScheduleLinear,
300+
UserUnlockScheduleLumpSum,
267301
NeptGetUnlocksResponse,
268302
)
269303
```
@@ -279,7 +313,9 @@ Types:
279313
```python
280314
from neptune_api_v2.types.user.nept import (
281315
UserStake,
316+
UserStakeBondingEntry,
282317
UserStakePool,
318+
UserStakeUnbonding,
283319
UserStakeUnbondingEntry,
284320
StakingGetOverviewResponse,
285321
StakingGetStakingPoolResponse,
@@ -302,7 +338,9 @@ Types:
302338
```python
303339
from neptune_api_v2.types.user import (
304340
UserWalletPortfolio,
341+
WalletAsset,
305342
WalletAssetKnown,
343+
WalletAssetUnknown,
306344
WalletBalance,
307345
WalletGetBalanceByAssetResponse,
308346
WalletGetBalancesResponse,
@@ -344,6 +382,18 @@ Methods:
344382
- <code title="get /api/v1/analytics/market/history/loans-originated">client.analytics.market.history.<a href="./src/neptune_api_v2/resources/analytics/market/history.py">get_loans_originated</a>(\*\*<a href="src/neptune_api_v2/types/analytics/market/history_get_loans_originated_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/analytics/market/history_get_loans_originated_response.py">HistoryGetLoansOriginatedResponse</a></code>
345383
- <code title="get /api/v1/analytics/market/history/loans-originated/by-asset">client.analytics.market.history.<a href="./src/neptune_api_v2/resources/analytics/market/history.py">get_loans_originated_by_asset</a>(\*\*<a href="src/neptune_api_v2/types/analytics/market/history_get_loans_originated_by_asset_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/analytics/market/history_get_loans_originated_by_asset_response.py">HistoryGetLoansOriginatedByAssetResponse</a></code>
346384

385+
## Nept
386+
387+
Types:
388+
389+
```python
390+
from neptune_api_v2.types.analytics import NeptUnlocksDistributionResponse
391+
```
392+
393+
Methods:
394+
395+
- <code title="get /api/v1/analytics/nept/unlocks-distribution">client.analytics.nept.<a href="./src/neptune_api_v2/resources/analytics/nept.py">unlocks_distribution</a>(\*\*<a href="src/neptune_api_v2/types/analytics/nept_unlocks_distribution_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/analytics/nept_unlocks_distribution_response.py">NeptUnlocksDistributionResponse</a></code>
396+
347397
# Integrations
348398

349399
## Bantr

0 commit comments

Comments
 (0)