2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Optional
5
+ from typing import List , Optional
6
6
from typing_extensions import Literal
7
7
8
8
import httpx
@@ -60,6 +60,7 @@ def create(
60
60
* ,
61
61
question : str ,
62
62
answer : Optional [str ] | NotGiven = NOT_GIVEN ,
63
+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
63
64
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
64
65
# The extra values given here take precedence over values defined on the client or passed to this method.
65
66
extra_headers : Headers | None = None ,
@@ -89,6 +90,7 @@ def create(
89
90
{
90
91
"question" : question ,
91
92
"answer" : answer ,
93
+ "draft_answer" : draft_answer ,
92
94
},
93
95
entry_create_params .EntryCreateParams ,
94
96
),
@@ -140,6 +142,7 @@ def update(
140
142
* ,
141
143
project_id : str ,
142
144
answer : Optional [str ] | NotGiven = NOT_GIVEN ,
145
+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
143
146
frequency_count : Optional [int ] | NotGiven = NOT_GIVEN ,
144
147
question : Optional [str ] | NotGiven = NOT_GIVEN ,
145
148
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -170,6 +173,7 @@ def update(
170
173
body = maybe_transform (
171
174
{
172
175
"answer" : answer ,
176
+ "draft_answer" : draft_answer ,
173
177
"frequency_count" : frequency_count ,
174
178
"question" : question ,
175
179
},
@@ -190,6 +194,7 @@ def list(
190
194
offset : int | NotGiven = NOT_GIVEN ,
191
195
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
192
196
sort : Literal ["created_at" , "answered_at" ] | NotGiven = NOT_GIVEN ,
197
+ states : List [Literal ["unanswered" , "draft" , "published" , "published_with_draft" ]] | NotGiven = NOT_GIVEN ,
193
198
unanswered_only : bool | NotGiven = NOT_GIVEN ,
194
199
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
195
200
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -227,6 +232,7 @@ def list(
227
232
"offset" : offset ,
228
233
"order" : order ,
229
234
"sort" : sort ,
235
+ "states" : states ,
230
236
"unanswered_only" : unanswered_only ,
231
237
},
232
238
entry_list_params .EntryListParams ,
@@ -379,6 +385,7 @@ async def create(
379
385
* ,
380
386
question : str ,
381
387
answer : Optional [str ] | NotGiven = NOT_GIVEN ,
388
+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
382
389
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
383
390
# The extra values given here take precedence over values defined on the client or passed to this method.
384
391
extra_headers : Headers | None = None ,
@@ -408,6 +415,7 @@ async def create(
408
415
{
409
416
"question" : question ,
410
417
"answer" : answer ,
418
+ "draft_answer" : draft_answer ,
411
419
},
412
420
entry_create_params .EntryCreateParams ,
413
421
),
@@ -459,6 +467,7 @@ async def update(
459
467
* ,
460
468
project_id : str ,
461
469
answer : Optional [str ] | NotGiven = NOT_GIVEN ,
470
+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
462
471
frequency_count : Optional [int ] | NotGiven = NOT_GIVEN ,
463
472
question : Optional [str ] | NotGiven = NOT_GIVEN ,
464
473
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -489,6 +498,7 @@ async def update(
489
498
body = await async_maybe_transform (
490
499
{
491
500
"answer" : answer ,
501
+ "draft_answer" : draft_answer ,
492
502
"frequency_count" : frequency_count ,
493
503
"question" : question ,
494
504
},
@@ -509,6 +519,7 @@ def list(
509
519
offset : int | NotGiven = NOT_GIVEN ,
510
520
order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
511
521
sort : Literal ["created_at" , "answered_at" ] | NotGiven = NOT_GIVEN ,
522
+ states : List [Literal ["unanswered" , "draft" , "published" , "published_with_draft" ]] | NotGiven = NOT_GIVEN ,
512
523
unanswered_only : bool | NotGiven = NOT_GIVEN ,
513
524
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
514
525
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -546,6 +557,7 @@ def list(
546
557
"offset" : offset ,
547
558
"order" : order ,
548
559
"sort" : sort ,
560
+ "states" : states ,
549
561
"unanswered_only" : unanswered_only ,
550
562
},
551
563
entry_list_params .EntryListParams ,
0 commit comments