Skip to content

Commit c102319

Browse files
feat(api): api update
1 parent 0a592c5 commit c102319

23 files changed

Lines changed: 420 additions & 789 deletions

‎.stats.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 42
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini/asktable-5402f8d745bd9c1bf7341174edb713568b456f0c573fac847bae94fafcc87945.yml
3-
openapi_spec_hash: 31facbabd8f7e3fd71be4e5d1ef2cf7b
1+
configured_endpoints: 40
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini/asktable-d0a8385767046a6db5ab647f8fe9dd357d78b4250ade18c9f4d8249ea5b2c39f.yml
3+
openapi_spec_hash: 1e63dd59d62586f0ca8dd76f6da7353a
44
config_hash: acdf4142177ed1932c2d82372693f811

‎api.md‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,6 @@ Methods:
126126
- <code title="post /v1/auth/tokens">client.auth.<a href="./src/asktable/resources/auth.py">create_token</a>(\*\*<a href="src/asktable/types/auth_create_token_params.py">params</a>) -> <a href="./src/asktable/types/auth_create_token_response.py">AuthCreateTokenResponse</a></code>
127127
- <code title="get /v1/auth/me">client.auth.<a href="./src/asktable/resources/auth.py">me</a>() -> <a href="./src/asktable/types/auth_me_response.py">AuthMeResponse</a></code>
128128

129-
# Integration
130-
131-
Methods:
132-
133-
- <code title="post /v1/integration/excel_csv_ask">client.integration.<a href="./src/asktable/resources/integration.py">excel_csv_ask</a>(\*\*<a href="src/asktable/types/integration_excel_csv_ask_params.py">params</a>) -> object</code>
134-
135129
# Project
136130

137131
Types:
@@ -146,12 +140,6 @@ Methods:
146140
- <code title="patch /v1/project">client.project.<a href="./src/asktable/resources/project.py">update</a>(\*\*<a href="src/asktable/types/project_update_params.py">params</a>) -> <a href="./src/asktable/types/sys/project.py">Project</a></code>
147141
- <code title="get /v1/project/model-groups">client.project.<a href="./src/asktable/resources/project.py">list_model_groups</a>() -> <a href="./src/asktable/types/project_list_model_groups_response.py">ProjectListModelGroupsResponse</a></code>
148142

149-
# Scores
150-
151-
Methods:
152-
153-
- <code title="post /v1/score">client.scores.<a href="./src/asktable/resources/scores.py">create</a>(\*\*<a href="src/asktable/types/score_create_params.py">params</a>) -> object</code>
154-
155143
# Files
156144

157145
Methods:

‎src/asktable/_client.py‎

Lines changed: 1 addition & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@
3535
)
3636

3737
if TYPE_CHECKING:
38-
from .resources import sys, auth, user, files, polish, scores, project, dataframes, datasources, integration
38+
from .resources import sys, auth, user, files, polish, project, dataframes, datasources
3939
from .resources.auth import AuthResource, AsyncAuthResource
4040
from .resources.files import FilesResource, AsyncFilesResource
4141
from .resources.polish import PolishResource, AsyncPolishResource
42-
from .resources.scores import ScoresResource, AsyncScoresResource
4342
from .resources.project import ProjectResource, AsyncProjectResource
4443
from .resources.sys.sys import SysResource, AsyncSysResource
4544
from .resources.user.user import UserResource, AsyncUserResource
4645
from .resources.dataframes import DataframesResource, AsyncDataframesResource
47-
from .resources.integration import IntegrationResource, AsyncIntegrationResource
4846
from .resources.datasources.datasources import DatasourcesResource, AsyncDatasourcesResource
4947

5048
__all__ = [
@@ -143,27 +141,13 @@ def auth(self) -> AuthResource:
143141

144142
return AuthResource(self)
145143

146-
@cached_property
147-
def integration(self) -> IntegrationResource:
148-
"""与第三方平台集成"""
149-
from .resources.integration import IntegrationResource
150-
151-
return IntegrationResource(self)
152-
153144
@cached_property
154145
def project(self) -> ProjectResource:
155146
"""我的项目"""
156147
from .resources.project import ProjectResource
157148

158149
return ProjectResource(self)
159150

160-
@cached_property
161-
def scores(self) -> ScoresResource:
162-
"""评分"""
163-
from .resources.scores import ScoresResource
164-
165-
return ScoresResource(self)
166-
167151
@cached_property
168152
def files(self) -> FilesResource:
169153
"""数据源管理"""
@@ -387,27 +371,13 @@ def auth(self) -> AsyncAuthResource:
387371

388372
return AsyncAuthResource(self)
389373

390-
@cached_property
391-
def integration(self) -> AsyncIntegrationResource:
392-
"""与第三方平台集成"""
393-
from .resources.integration import AsyncIntegrationResource
394-
395-
return AsyncIntegrationResource(self)
396-
397374
@cached_property
398375
def project(self) -> AsyncProjectResource:
399376
"""我的项目"""
400377
from .resources.project import AsyncProjectResource
401378

402379
return AsyncProjectResource(self)
403380

404-
@cached_property
405-
def scores(self) -> AsyncScoresResource:
406-
"""评分"""
407-
from .resources.scores import AsyncScoresResource
408-
409-
return AsyncScoresResource(self)
410-
411381
@cached_property
412382
def files(self) -> AsyncFilesResource:
413383
"""数据源管理"""
@@ -573,27 +543,13 @@ def auth(self) -> auth.AuthResourceWithRawResponse:
573543

574544
return AuthResourceWithRawResponse(self._client.auth)
575545

576-
@cached_property
577-
def integration(self) -> integration.IntegrationResourceWithRawResponse:
578-
"""与第三方平台集成"""
579-
from .resources.integration import IntegrationResourceWithRawResponse
580-
581-
return IntegrationResourceWithRawResponse(self._client.integration)
582-
583546
@cached_property
584547
def project(self) -> project.ProjectResourceWithRawResponse:
585548
"""我的项目"""
586549
from .resources.project import ProjectResourceWithRawResponse
587550

588551
return ProjectResourceWithRawResponse(self._client.project)
589552

590-
@cached_property
591-
def scores(self) -> scores.ScoresResourceWithRawResponse:
592-
"""评分"""
593-
from .resources.scores import ScoresResourceWithRawResponse
594-
595-
return ScoresResourceWithRawResponse(self._client.scores)
596-
597553
@cached_property
598554
def files(self) -> files.FilesResourceWithRawResponse:
599555
"""数据源管理"""
@@ -647,27 +603,13 @@ def auth(self) -> auth.AsyncAuthResourceWithRawResponse:
647603

648604
return AsyncAuthResourceWithRawResponse(self._client.auth)
649605

650-
@cached_property
651-
def integration(self) -> integration.AsyncIntegrationResourceWithRawResponse:
652-
"""与第三方平台集成"""
653-
from .resources.integration import AsyncIntegrationResourceWithRawResponse
654-
655-
return AsyncIntegrationResourceWithRawResponse(self._client.integration)
656-
657606
@cached_property
658607
def project(self) -> project.AsyncProjectResourceWithRawResponse:
659608
"""我的项目"""
660609
from .resources.project import AsyncProjectResourceWithRawResponse
661610

662611
return AsyncProjectResourceWithRawResponse(self._client.project)
663612

664-
@cached_property
665-
def scores(self) -> scores.AsyncScoresResourceWithRawResponse:
666-
"""评分"""
667-
from .resources.scores import AsyncScoresResourceWithRawResponse
668-
669-
return AsyncScoresResourceWithRawResponse(self._client.scores)
670-
671613
@cached_property
672614
def files(self) -> files.AsyncFilesResourceWithRawResponse:
673615
"""数据源管理"""
@@ -721,27 +663,13 @@ def auth(self) -> auth.AuthResourceWithStreamingResponse:
721663

722664
return AuthResourceWithStreamingResponse(self._client.auth)
723665

724-
@cached_property
725-
def integration(self) -> integration.IntegrationResourceWithStreamingResponse:
726-
"""与第三方平台集成"""
727-
from .resources.integration import IntegrationResourceWithStreamingResponse
728-
729-
return IntegrationResourceWithStreamingResponse(self._client.integration)
730-
731666
@cached_property
732667
def project(self) -> project.ProjectResourceWithStreamingResponse:
733668
"""我的项目"""
734669
from .resources.project import ProjectResourceWithStreamingResponse
735670

736671
return ProjectResourceWithStreamingResponse(self._client.project)
737672

738-
@cached_property
739-
def scores(self) -> scores.ScoresResourceWithStreamingResponse:
740-
"""评分"""
741-
from .resources.scores import ScoresResourceWithStreamingResponse
742-
743-
return ScoresResourceWithStreamingResponse(self._client.scores)
744-
745673
@cached_property
746674
def files(self) -> files.FilesResourceWithStreamingResponse:
747675
"""数据源管理"""
@@ -795,27 +723,13 @@ def auth(self) -> auth.AsyncAuthResourceWithStreamingResponse:
795723

796724
return AsyncAuthResourceWithStreamingResponse(self._client.auth)
797725

798-
@cached_property
799-
def integration(self) -> integration.AsyncIntegrationResourceWithStreamingResponse:
800-
"""与第三方平台集成"""
801-
from .resources.integration import AsyncIntegrationResourceWithStreamingResponse
802-
803-
return AsyncIntegrationResourceWithStreamingResponse(self._client.integration)
804-
805726
@cached_property
806727
def project(self) -> project.AsyncProjectResourceWithStreamingResponse:
807728
"""我的项目"""
808729
from .resources.project import AsyncProjectResourceWithStreamingResponse
809730

810731
return AsyncProjectResourceWithStreamingResponse(self._client.project)
811732

812-
@cached_property
813-
def scores(self) -> scores.AsyncScoresResourceWithStreamingResponse:
814-
"""评分"""
815-
from .resources.scores import AsyncScoresResourceWithStreamingResponse
816-
817-
return AsyncScoresResourceWithStreamingResponse(self._client.scores)
818-
819733
@cached_property
820734
def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
821735
"""数据源管理"""

‎src/asktable/resources/__init__.py‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@
4040
PolishResourceWithStreamingResponse,
4141
AsyncPolishResourceWithStreamingResponse,
4242
)
43-
from .scores import (
44-
ScoresResource,
45-
AsyncScoresResource,
46-
ScoresResourceWithRawResponse,
47-
AsyncScoresResourceWithRawResponse,
48-
ScoresResourceWithStreamingResponse,
49-
AsyncScoresResourceWithStreamingResponse,
50-
)
5143
from .project import (
5244
ProjectResource,
5345
AsyncProjectResource,
@@ -72,14 +64,6 @@
7264
DatasourcesResourceWithStreamingResponse,
7365
AsyncDatasourcesResourceWithStreamingResponse,
7466
)
75-
from .integration import (
76-
IntegrationResource,
77-
AsyncIntegrationResource,
78-
IntegrationResourceWithRawResponse,
79-
AsyncIntegrationResourceWithRawResponse,
80-
IntegrationResourceWithStreamingResponse,
81-
AsyncIntegrationResourceWithStreamingResponse,
82-
)
8367

8468
__all__ = [
8569
"SysResource",
@@ -100,24 +84,12 @@
10084
"AsyncAuthResourceWithRawResponse",
10185
"AuthResourceWithStreamingResponse",
10286
"AsyncAuthResourceWithStreamingResponse",
103-
"IntegrationResource",
104-
"AsyncIntegrationResource",
105-
"IntegrationResourceWithRawResponse",
106-
"AsyncIntegrationResourceWithRawResponse",
107-
"IntegrationResourceWithStreamingResponse",
108-
"AsyncIntegrationResourceWithStreamingResponse",
10987
"ProjectResource",
11088
"AsyncProjectResource",
11189
"ProjectResourceWithRawResponse",
11290
"AsyncProjectResourceWithRawResponse",
11391
"ProjectResourceWithStreamingResponse",
11492
"AsyncProjectResourceWithStreamingResponse",
115-
"ScoresResource",
116-
"AsyncScoresResource",
117-
"ScoresResourceWithRawResponse",
118-
"AsyncScoresResourceWithRawResponse",
119-
"ScoresResourceWithStreamingResponse",
120-
"AsyncScoresResourceWithStreamingResponse",
12193
"FilesResource",
12294
"AsyncFilesResource",
12395
"FilesResourceWithRawResponse",

0 commit comments

Comments
 (0)