Skip to content

Commit 268e767

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#31)
1 parent daef4df commit 268e767

File tree

13 files changed

+4
-969
lines changed

13 files changed

+4
-969
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 74
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-2501e64cd24ad589fc833556bbecd5f54321add8f57b18c6af3503a75be0101f.yml
1+
configured_endpoints: 70
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-eacc19681b584d12739c5775cf012c0a50792f7cf1e12d80d28d2ac0786a896f.yml

api.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -342,18 +342,3 @@ from asktable.types.sys.projects import TokenCreateResponse
342342
Methods:
343343

344344
- <code title="post /sys/projects/{project_id}/tokens">client.sys.projects.tokens.<a href="./src/asktable/resources/sys/projects/tokens.py">create</a>(project_id, \*\*<a href="src/asktable/types/sys/projects/token_create_params.py">params</a>) -> <a href="./src/asktable/types/sys/projects/token_create_response.py">object</a></code>
345-
346-
# KB
347-
348-
Types:
349-
350-
```python
351-
from asktable.types import Document, PageDocument, KBCreateResponse, KBDeleteResponse
352-
```
353-
354-
Methods:
355-
356-
- <code title="post /kb">client.kb.<a href="./src/asktable/resources/kb.py">create</a>(\*\*<a href="src/asktable/types/kb_create_params.py">params</a>) -> <a href="./src/asktable/types/kb_create_response.py">KBCreateResponse</a></code>
357-
- <code title="get /kb/{doc_id}">client.kb.<a href="./src/asktable/resources/kb.py">retrieve</a>(doc_id) -> <a href="./src/asktable/types/document.py">Document</a></code>
358-
- <code title="get /kb">client.kb.<a href="./src/asktable/resources/kb.py">list</a>(\*\*<a href="src/asktable/types/kb_list_params.py">params</a>) -> <a href="./src/asktable/types/page_document.py">PageDocument</a></code>
359-
- <code title="delete /kb/{doc_id}">client.kb.<a href="./src/asktable/resources/kb.py">delete</a>(doc_id) -> <a href="./src/asktable/types/kb_delete_response.py">object</a></code>

src/asktable/_client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Asktable(SyncAPIClient):
5858
caches: resources.CachesResource
5959
integration: resources.IntegrationResource
6060
sys: resources.SysResource
61-
kb: resources.KBResource
6261
with_raw_response: AsktableWithRawResponse
6362
with_streaming_response: AsktableWithStreamedResponse
6463

@@ -128,7 +127,6 @@ def __init__(
128127
self.caches = resources.CachesResource(self)
129128
self.integration = resources.IntegrationResource(self)
130129
self.sys = resources.SysResource(self)
131-
self.kb = resources.KBResource(self)
132130
self.with_raw_response = AsktableWithRawResponse(self)
133131
self.with_streaming_response = AsktableWithStreamedResponse(self)
134132

@@ -250,7 +248,6 @@ class AsyncAsktable(AsyncAPIClient):
250248
caches: resources.AsyncCachesResource
251249
integration: resources.AsyncIntegrationResource
252250
sys: resources.AsyncSysResource
253-
kb: resources.AsyncKBResource
254251
with_raw_response: AsyncAsktableWithRawResponse
255252
with_streaming_response: AsyncAsktableWithStreamedResponse
256253

@@ -320,7 +317,6 @@ def __init__(
320317
self.caches = resources.AsyncCachesResource(self)
321318
self.integration = resources.AsyncIntegrationResource(self)
322319
self.sys = resources.AsyncSysResource(self)
323-
self.kb = resources.AsyncKBResource(self)
324320
self.with_raw_response = AsyncAsktableWithRawResponse(self)
325321
self.with_streaming_response = AsyncAsktableWithStreamedResponse(self)
326322

@@ -443,7 +439,6 @@ def __init__(self, client: Asktable) -> None:
443439
self.caches = resources.CachesResourceWithRawResponse(client.caches)
444440
self.integration = resources.IntegrationResourceWithRawResponse(client.integration)
445441
self.sys = resources.SysResourceWithRawResponse(client.sys)
446-
self.kb = resources.KBResourceWithRawResponse(client.kb)
447442

448443

449444
class AsyncAsktableWithRawResponse:
@@ -460,7 +455,6 @@ def __init__(self, client: AsyncAsktable) -> None:
460455
self.caches = resources.AsyncCachesResourceWithRawResponse(client.caches)
461456
self.integration = resources.AsyncIntegrationResourceWithRawResponse(client.integration)
462457
self.sys = resources.AsyncSysResourceWithRawResponse(client.sys)
463-
self.kb = resources.AsyncKBResourceWithRawResponse(client.kb)
464458

465459

466460
class AsktableWithStreamedResponse:
@@ -477,7 +471,6 @@ def __init__(self, client: Asktable) -> None:
477471
self.caches = resources.CachesResourceWithStreamingResponse(client.caches)
478472
self.integration = resources.IntegrationResourceWithStreamingResponse(client.integration)
479473
self.sys = resources.SysResourceWithStreamingResponse(client.sys)
480-
self.kb = resources.KBResourceWithStreamingResponse(client.kb)
481474

482475

483476
class AsyncAsktableWithStreamedResponse:
@@ -494,7 +487,6 @@ def __init__(self, client: AsyncAsktable) -> None:
494487
self.caches = resources.AsyncCachesResourceWithStreamingResponse(client.caches)
495488
self.integration = resources.AsyncIntegrationResourceWithStreamingResponse(client.integration)
496489
self.sys = resources.AsyncSysResourceWithStreamingResponse(client.sys)
497-
self.kb = resources.AsyncKBResourceWithStreamingResponse(client.kb)
498490

499491

500492
Client = Asktable

src/asktable/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .kb import (
4-
KBResource,
5-
AsyncKBResource,
6-
KBResourceWithRawResponse,
7-
AsyncKBResourceWithRawResponse,
8-
KBResourceWithStreamingResponse,
9-
AsyncKBResourceWithStreamingResponse,
10-
)
113
from .sys import (
124
SysResource,
135
AsyncSysResource,
@@ -178,10 +170,4 @@
178170
"AsyncSysResourceWithRawResponse",
179171
"SysResourceWithStreamingResponse",
180172
"AsyncSysResourceWithStreamingResponse",
181-
"KBResource",
182-
"AsyncKBResource",
183-
"KBResourceWithRawResponse",
184-
"AsyncKBResourceWithRawResponse",
185-
"KBResourceWithStreamingResponse",
186-
"AsyncKBResourceWithStreamingResponse",
187173
]

0 commit comments

Comments
 (0)