Skip to content

Commit bf139f9

Browse files
feat(api): api update
1 parent 4cf6d32 commit bf139f9

12 files changed

Lines changed: 4 additions & 593 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 50
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-cd88dd75403e620991c3659cd7e9278f9c8c439f3857c25db8634dfc7e77a9b9.yml
3-
openapi_spec_hash: 35a0cbd0262458d633e38fc5ba442118
1+
configured_endpoints: 49
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-cd6572e5c8f35a293af2a1dae3e41c63da19dad8d2ab456a7322a09614de3ae9.yml
3+
openapi_spec_hash: 68dd5648c3ee92f07f52c5d4ebf2f8fc
44
config_hash: a79df81e5bba11abab18a84163248141

api.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -389,20 +389,6 @@ Methods:
389389

390390
- <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>
391391

392-
# Integrations
393-
394-
## Bantr
395-
396-
Types:
397-
398-
```python
399-
from neptune_api_v2.types.integrations import BantrGetTransactionsResponse
400-
```
401-
402-
Methods:
403-
404-
- <code title="get /api/v1/integrations/bantr/transactions">client.integrations.bantr.<a href="./src/neptune_api_v2/resources/integrations/bantr.py">get_transactions</a>(\*\*<a href="src/neptune_api_v2/types/integrations/bantr_get_transactions_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/integrations/bantr_get_transactions_response.py">BantrGetTransactionsResponse</a></code>
405-
406392
# Swap
407393

408394
## Routes

src/neptune_api_v2/_client.py

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@
3131
)
3232

3333
if TYPE_CHECKING:
34-
from .resources import nept, swap, user, assets, status, markets, analytics, integrations
34+
from .resources import nept, swap, user, assets, status, markets, analytics
3535
from .resources.nept import NeptResource, AsyncNeptResource
3636
from .resources.assets import AssetsResource, AsyncAssetsResource
3737
from .resources.status import StatusResource, AsyncStatusResource
3838
from .resources.swap.swap import SwapResource, AsyncSwapResource
3939
from .resources.user.user import UserResource, AsyncUserResource
4040
from .resources.markets.markets import MarketsResource, AsyncMarketsResource
4141
from .resources.analytics.analytics import AnalyticsResource, AsyncAnalyticsResource
42-
from .resources.integrations.integrations import IntegrationsResource, AsyncIntegrationsResource
4342

4443
__all__ = [
4544
"Timeout",
@@ -131,12 +130,6 @@ def analytics(self) -> AnalyticsResource:
131130

132131
return AnalyticsResource(self)
133132

134-
@cached_property
135-
def integrations(self) -> IntegrationsResource:
136-
from .resources.integrations import IntegrationsResource
137-
138-
return IntegrationsResource(self)
139-
140133
@cached_property
141134
def swap(self) -> SwapResource:
142135
from .resources.swap import SwapResource
@@ -326,12 +319,6 @@ def analytics(self) -> AsyncAnalyticsResource:
326319

327320
return AsyncAnalyticsResource(self)
328321

329-
@cached_property
330-
def integrations(self) -> AsyncIntegrationsResource:
331-
from .resources.integrations import AsyncIntegrationsResource
332-
333-
return AsyncIntegrationsResource(self)
334-
335322
@cached_property
336323
def swap(self) -> AsyncSwapResource:
337324
from .resources.swap import AsyncSwapResource
@@ -485,12 +472,6 @@ def analytics(self) -> analytics.AnalyticsResourceWithRawResponse:
485472

486473
return AnalyticsResourceWithRawResponse(self._client.analytics)
487474

488-
@cached_property
489-
def integrations(self) -> integrations.IntegrationsResourceWithRawResponse:
490-
from .resources.integrations import IntegrationsResourceWithRawResponse
491-
492-
return IntegrationsResourceWithRawResponse(self._client.integrations)
493-
494475
@cached_property
495476
def swap(self) -> swap.SwapResourceWithRawResponse:
496477
from .resources.swap import SwapResourceWithRawResponse
@@ -540,12 +521,6 @@ def analytics(self) -> analytics.AsyncAnalyticsResourceWithRawResponse:
540521

541522
return AsyncAnalyticsResourceWithRawResponse(self._client.analytics)
542523

543-
@cached_property
544-
def integrations(self) -> integrations.AsyncIntegrationsResourceWithRawResponse:
545-
from .resources.integrations import AsyncIntegrationsResourceWithRawResponse
546-
547-
return AsyncIntegrationsResourceWithRawResponse(self._client.integrations)
548-
549524
@cached_property
550525
def swap(self) -> swap.AsyncSwapResourceWithRawResponse:
551526
from .resources.swap import AsyncSwapResourceWithRawResponse
@@ -595,12 +570,6 @@ def analytics(self) -> analytics.AnalyticsResourceWithStreamingResponse:
595570

596571
return AnalyticsResourceWithStreamingResponse(self._client.analytics)
597572

598-
@cached_property
599-
def integrations(self) -> integrations.IntegrationsResourceWithStreamingResponse:
600-
from .resources.integrations import IntegrationsResourceWithStreamingResponse
601-
602-
return IntegrationsResourceWithStreamingResponse(self._client.integrations)
603-
604573
@cached_property
605574
def swap(self) -> swap.SwapResourceWithStreamingResponse:
606575
from .resources.swap import SwapResourceWithStreamingResponse
@@ -650,12 +619,6 @@ def analytics(self) -> analytics.AsyncAnalyticsResourceWithStreamingResponse:
650619

651620
return AsyncAnalyticsResourceWithStreamingResponse(self._client.analytics)
652621

653-
@cached_property
654-
def integrations(self) -> integrations.AsyncIntegrationsResourceWithStreamingResponse:
655-
from .resources.integrations import AsyncIntegrationsResourceWithStreamingResponse
656-
657-
return AsyncIntegrationsResourceWithStreamingResponse(self._client.integrations)
658-
659622
@cached_property
660623
def swap(self) -> swap.AsyncSwapResourceWithStreamingResponse:
661624
from .resources.swap import AsyncSwapResourceWithStreamingResponse

src/neptune_api_v2/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@
5656
AnalyticsResourceWithStreamingResponse,
5757
AsyncAnalyticsResourceWithStreamingResponse,
5858
)
59-
from .integrations import (
60-
IntegrationsResource,
61-
AsyncIntegrationsResource,
62-
IntegrationsResourceWithRawResponse,
63-
AsyncIntegrationsResourceWithRawResponse,
64-
IntegrationsResourceWithStreamingResponse,
65-
AsyncIntegrationsResourceWithStreamingResponse,
66-
)
6759

6860
__all__ = [
6961
"StatusResource",
@@ -102,12 +94,6 @@
10294
"AsyncAnalyticsResourceWithRawResponse",
10395
"AnalyticsResourceWithStreamingResponse",
10496
"AsyncAnalyticsResourceWithStreamingResponse",
105-
"IntegrationsResource",
106-
"AsyncIntegrationsResource",
107-
"IntegrationsResourceWithRawResponse",
108-
"AsyncIntegrationsResourceWithRawResponse",
109-
"IntegrationsResourceWithStreamingResponse",
110-
"AsyncIntegrationsResourceWithStreamingResponse",
11197
"SwapResource",
11298
"AsyncSwapResource",
11399
"SwapResourceWithRawResponse",

src/neptune_api_v2/resources/integrations/__init__.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/neptune_api_v2/resources/integrations/bantr.py

Lines changed: 0 additions & 201 deletions
This file was deleted.

0 commit comments

Comments
 (0)