Skip to content

Commit ed59235

Browse files
authored
Merge pull request #94 from DataMini/release-please--branches--main--changes--next
release: 3.11.0
2 parents 4383732 + bb863b5 commit ed59235

27 files changed

+282
-858
lines changed

.release-please-manifest.json

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

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 93
1+
configured_endpoints: 91
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-907ea99ae17ecc7e5589897d8c79f0d5ebe600307720ab0fc8baf80ef5099604.yml

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.11.0 (2024-12-30)
4+
5+
Full Changelog: [v3.10.0...v3.11.0](https://github.com/DataMini/asktable-python/compare/v3.10.0...v3.11.0)
6+
7+
### Features
8+
9+
* **api:** add answers/sqls ([#93](https://github.com/DataMini/asktable-python/issues/93)) ([3748b52](https://github.com/DataMini/asktable-python/commit/3748b526f902c65a59a6f8f15b57f960737fda79))
10+
311
## 3.10.0 (2024-12-30)
412

513
Full Changelog: [v3.9.0...v3.10.0](https://github.com/DataMini/asktable-python/compare/v3.9.0...v3.10.0)

api.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -259,46 +259,31 @@ Methods:
259259
- <code title="post /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">object</a></code>
260260
- <code title="get /auth/me">client.auth.<a href="./src/asktable/resources/auth.py">me</a>() -> <a href="./src/asktable/types/auth_me_response.py">object</a></code>
261261

262-
# SingleTurn
263-
264-
## Q2a
265-
266-
Types:
267-
268-
```python
269-
from asktable.types.single_turn import Q2aResponse
270-
```
271-
272-
Methods:
273-
274-
- <code title="post /single-turn/q2a">client.single_turn.q2a.<a href="./src/asktable/resources/single_turn/q2a.py">create</a>(\*\*<a href="src/asktable/types/single_turn/q2a_create_params.py">params</a>) -> <a href="./src/asktable/types/single_turn/q2a_response.py">Q2aResponse</a></code>
275-
- <code title="get /single-turn/q2a">client.single_turn.q2a.<a href="./src/asktable/resources/single_turn/q2a.py">list</a>(\*\*<a href="src/asktable/types/single_turn/q2a_list_params.py">params</a>) -> <a href="./src/asktable/types/single_turn/q2a_response.py">SyncPage[Q2aResponse]</a></code>
276-
277-
## Q2s
262+
# Answers
278263

279264
Types:
280265

281266
```python
282-
from asktable.types.single_turn import Q2sResponse
267+
from asktable.types import AnswerResponse
283268
```
284269

285270
Methods:
286271

287-
- <code title="post /single-turn/q2s">client.single_turn.q2s.<a href="./src/asktable/resources/single_turn/q2s.py">create</a>(\*\*<a href="src/asktable/types/single_turn/q2_create_params.py">params</a>) -> <a href="./src/asktable/types/single_turn/q2s_response.py">Q2sResponse</a></code>
288-
- <code title="get /single-turn/q2s">client.single_turn.q2s.<a href="./src/asktable/resources/single_turn/q2s.py">list</a>(\*\*<a href="src/asktable/types/single_turn/q2_list_params.py">params</a>) -> <a href="./src/asktable/types/single_turn/q2s_response.py">SyncPage[Q2sResponse]</a></code>
272+
- <code title="post /single-turn/q2a">client.answers.<a href="./src/asktable/resources/answers.py">create</a>(\*\*<a href="src/asktable/types/answer_create_params.py">params</a>) -> <a href="./src/asktable/types/answer_response.py">AnswerResponse</a></code>
273+
- <code title="get /single-turn/q2a">client.answers.<a href="./src/asktable/resources/answers.py">list</a>(\*\*<a href="src/asktable/types/answer_list_params.py">params</a>) -> <a href="./src/asktable/types/answer_response.py">SyncPage[AnswerResponse]</a></code>
289274

290-
## Q2w
275+
# Sqls
291276

292277
Types:
293278

294279
```python
295-
from asktable.types.single_turn import Q2wCreateResponse, Q2wListResponse
280+
from asktable.types import QueryResponse
296281
```
297282

298283
Methods:
299284

300-
- <code title="post /single-turn/q2w">client.single_turn.q2w.<a href="./src/asktable/resources/single_turn/q2w.py">create</a>(\*\*<a href="src/asktable/types/single_turn/q2w_create_params.py">params</a>) -> <a href="./src/asktable/types/single_turn/q2w_create_response.py">object</a></code>
301-
- <code title="get /single-turn/q2w">client.single_turn.q2w.<a href="./src/asktable/resources/single_turn/q2w.py">list</a>() -> <a href="./src/asktable/types/single_turn/q2w_list_response.py">object</a></code>
285+
- <code title="post /single-turn/q2s">client.sqls.<a href="./src/asktable/resources/sqls.py">create</a>(\*\*<a href="src/asktable/types/sql_create_params.py">params</a>) -> <a href="./src/asktable/types/query_response.py">QueryResponse</a></code>
286+
- <code title="get /single-turn/q2s">client.sqls.<a href="./src/asktable/resources/sqls.py">list</a>(\*\*<a href="src/asktable/types/sql_list_params.py">params</a>) -> <a href="./src/asktable/types/query_response.py">SyncPage[QueryResponse]</a></code>
302287

303288
# Caches
304289

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "asktable"
3-
version = "3.10.0"
3+
version = "3.11.0"
44
description = "The official Python library for the asktable API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/asktable/_client.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
from .resources import (
2828
auth,
2929
bots,
30+
sqls,
3031
roles,
3132
caches,
3233
scores,
34+
answers,
3335
project,
3436
policies,
3537
trainings,
@@ -49,7 +51,6 @@
4951
from .resources.chats import chats
5052
from .resources.extapis import extapis
5153
from .resources.datasources import datasources
52-
from .resources.single_turn import single_turn
5354

5455
__all__ = [
5556
"Timeout",
@@ -73,7 +74,8 @@ class Asktable(SyncAPIClient):
7374
bots: bots.BotsResource
7475
extapis: extapis.ExtapisResource
7576
auth: auth.AuthResource
76-
single_turn: single_turn.SingleTurnResource
77+
answers: answers.AnswersResource
78+
sqls: sqls.SqlsResource
7779
caches: caches.CachesResource
7880
integration: integration.IntegrationResource
7981
business_glossary: business_glossary.BusinessGlossaryResource
@@ -147,7 +149,8 @@ def __init__(
147149
self.bots = bots.BotsResource(self)
148150
self.extapis = extapis.ExtapisResource(self)
149151
self.auth = auth.AuthResource(self)
150-
self.single_turn = single_turn.SingleTurnResource(self)
152+
self.answers = answers.AnswersResource(self)
153+
self.sqls = sqls.SqlsResource(self)
151154
self.caches = caches.CachesResource(self)
152155
self.integration = integration.IntegrationResource(self)
153156
self.business_glossary = business_glossary.BusinessGlossaryResource(self)
@@ -273,7 +276,8 @@ class AsyncAsktable(AsyncAPIClient):
273276
bots: bots.AsyncBotsResource
274277
extapis: extapis.AsyncExtapisResource
275278
auth: auth.AsyncAuthResource
276-
single_turn: single_turn.AsyncSingleTurnResource
279+
answers: answers.AsyncAnswersResource
280+
sqls: sqls.AsyncSqlsResource
277281
caches: caches.AsyncCachesResource
278282
integration: integration.AsyncIntegrationResource
279283
business_glossary: business_glossary.AsyncBusinessGlossaryResource
@@ -347,7 +351,8 @@ def __init__(
347351
self.bots = bots.AsyncBotsResource(self)
348352
self.extapis = extapis.AsyncExtapisResource(self)
349353
self.auth = auth.AsyncAuthResource(self)
350-
self.single_turn = single_turn.AsyncSingleTurnResource(self)
354+
self.answers = answers.AsyncAnswersResource(self)
355+
self.sqls = sqls.AsyncSqlsResource(self)
351356
self.caches = caches.AsyncCachesResource(self)
352357
self.integration = integration.AsyncIntegrationResource(self)
353358
self.business_glossary = business_glossary.AsyncBusinessGlossaryResource(self)
@@ -474,7 +479,8 @@ def __init__(self, client: Asktable) -> None:
474479
self.bots = bots.BotsResourceWithRawResponse(client.bots)
475480
self.extapis = extapis.ExtapisResourceWithRawResponse(client.extapis)
476481
self.auth = auth.AuthResourceWithRawResponse(client.auth)
477-
self.single_turn = single_turn.SingleTurnResourceWithRawResponse(client.single_turn)
482+
self.answers = answers.AnswersResourceWithRawResponse(client.answers)
483+
self.sqls = sqls.SqlsResourceWithRawResponse(client.sqls)
478484
self.caches = caches.CachesResourceWithRawResponse(client.caches)
479485
self.integration = integration.IntegrationResourceWithRawResponse(client.integration)
480486
self.business_glossary = business_glossary.BusinessGlossaryResourceWithRawResponse(client.business_glossary)
@@ -495,7 +501,8 @@ def __init__(self, client: AsyncAsktable) -> None:
495501
self.bots = bots.AsyncBotsResourceWithRawResponse(client.bots)
496502
self.extapis = extapis.AsyncExtapisResourceWithRawResponse(client.extapis)
497503
self.auth = auth.AsyncAuthResourceWithRawResponse(client.auth)
498-
self.single_turn = single_turn.AsyncSingleTurnResourceWithRawResponse(client.single_turn)
504+
self.answers = answers.AsyncAnswersResourceWithRawResponse(client.answers)
505+
self.sqls = sqls.AsyncSqlsResourceWithRawResponse(client.sqls)
499506
self.caches = caches.AsyncCachesResourceWithRawResponse(client.caches)
500507
self.integration = integration.AsyncIntegrationResourceWithRawResponse(client.integration)
501508
self.business_glossary = business_glossary.AsyncBusinessGlossaryResourceWithRawResponse(
@@ -518,7 +525,8 @@ def __init__(self, client: Asktable) -> None:
518525
self.bots = bots.BotsResourceWithStreamingResponse(client.bots)
519526
self.extapis = extapis.ExtapisResourceWithStreamingResponse(client.extapis)
520527
self.auth = auth.AuthResourceWithStreamingResponse(client.auth)
521-
self.single_turn = single_turn.SingleTurnResourceWithStreamingResponse(client.single_turn)
528+
self.answers = answers.AnswersResourceWithStreamingResponse(client.answers)
529+
self.sqls = sqls.SqlsResourceWithStreamingResponse(client.sqls)
522530
self.caches = caches.CachesResourceWithStreamingResponse(client.caches)
523531
self.integration = integration.IntegrationResourceWithStreamingResponse(client.integration)
524532
self.business_glossary = business_glossary.BusinessGlossaryResourceWithStreamingResponse(
@@ -541,7 +549,8 @@ def __init__(self, client: AsyncAsktable) -> None:
541549
self.bots = bots.AsyncBotsResourceWithStreamingResponse(client.bots)
542550
self.extapis = extapis.AsyncExtapisResourceWithStreamingResponse(client.extapis)
543551
self.auth = auth.AsyncAuthResourceWithStreamingResponse(client.auth)
544-
self.single_turn = single_turn.AsyncSingleTurnResourceWithStreamingResponse(client.single_turn)
552+
self.answers = answers.AsyncAnswersResourceWithStreamingResponse(client.answers)
553+
self.sqls = sqls.AsyncSqlsResourceWithStreamingResponse(client.sqls)
545554
self.caches = caches.AsyncCachesResourceWithStreamingResponse(client.caches)
546555
self.integration = integration.AsyncIntegrationResourceWithStreamingResponse(client.integration)
547556
self.business_glossary = business_glossary.AsyncBusinessGlossaryResourceWithStreamingResponse(

src/asktable/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "asktable"
4-
__version__ = "3.10.0" # x-release-please-version
4+
__version__ = "3.11.0" # x-release-please-version

src/asktable/resources/__init__.py

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
BotsResourceWithStreamingResponse,
2525
AsyncBotsResourceWithStreamingResponse,
2626
)
27+
from .sqls import (
28+
SqlsResource,
29+
AsyncSqlsResource,
30+
SqlsResourceWithRawResponse,
31+
AsyncSqlsResourceWithRawResponse,
32+
SqlsResourceWithStreamingResponse,
33+
AsyncSqlsResourceWithStreamingResponse,
34+
)
2735
from .chats import (
2836
ChatsResource,
2937
AsyncChatsResource,
@@ -56,6 +64,14 @@
5664
ScoresResourceWithStreamingResponse,
5765
AsyncScoresResourceWithStreamingResponse,
5866
)
67+
from .answers import (
68+
AnswersResource,
69+
AsyncAnswersResource,
70+
AnswersResourceWithRawResponse,
71+
AsyncAnswersResourceWithRawResponse,
72+
AnswersResourceWithStreamingResponse,
73+
AsyncAnswersResourceWithStreamingResponse,
74+
)
5975
from .extapis import (
6076
ExtapisResource,
6177
AsyncExtapisResource,
@@ -112,14 +128,6 @@
112128
PreferencesResourceWithStreamingResponse,
113129
AsyncPreferencesResourceWithStreamingResponse,
114130
)
115-
from .single_turn import (
116-
SingleTurnResource,
117-
AsyncSingleTurnResource,
118-
SingleTurnResourceWithRawResponse,
119-
AsyncSingleTurnResourceWithRawResponse,
120-
SingleTurnResourceWithStreamingResponse,
121-
AsyncSingleTurnResourceWithStreamingResponse,
122-
)
123131
from .securetunnels import (
124132
SecuretunnelsResource,
125133
AsyncSecuretunnelsResource,
@@ -192,12 +200,18 @@
192200
"AsyncAuthResourceWithRawResponse",
193201
"AuthResourceWithStreamingResponse",
194202
"AsyncAuthResourceWithStreamingResponse",
195-
"SingleTurnResource",
196-
"AsyncSingleTurnResource",
197-
"SingleTurnResourceWithRawResponse",
198-
"AsyncSingleTurnResourceWithRawResponse",
199-
"SingleTurnResourceWithStreamingResponse",
200-
"AsyncSingleTurnResourceWithStreamingResponse",
203+
"AnswersResource",
204+
"AsyncAnswersResource",
205+
"AnswersResourceWithRawResponse",
206+
"AsyncAnswersResourceWithRawResponse",
207+
"AnswersResourceWithStreamingResponse",
208+
"AsyncAnswersResourceWithStreamingResponse",
209+
"SqlsResource",
210+
"AsyncSqlsResource",
211+
"SqlsResourceWithRawResponse",
212+
"AsyncSqlsResourceWithRawResponse",
213+
"SqlsResourceWithStreamingResponse",
214+
"AsyncSqlsResourceWithStreamingResponse",
201215
"CachesResource",
202216
"AsyncCachesResource",
203217
"CachesResourceWithRawResponse",

0 commit comments

Comments
 (0)