22
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import List , Optional
66from typing_extensions import Literal
77
88import httpx
@@ -60,6 +60,7 @@ def create(
6060 * ,
6161 question : str ,
6262 answer : Optional [str ] | NotGiven = NOT_GIVEN ,
63+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
6364 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6465 # The extra values given here take precedence over values defined on the client or passed to this method.
6566 extra_headers : Headers | None = None ,
@@ -89,6 +90,7 @@ def create(
8990 {
9091 "question" : question ,
9192 "answer" : answer ,
93+ "draft_answer" : draft_answer ,
9294 },
9395 entry_create_params .EntryCreateParams ,
9496 ),
@@ -140,6 +142,7 @@ def update(
140142 * ,
141143 project_id : str ,
142144 answer : Optional [str ] | NotGiven = NOT_GIVEN ,
145+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
143146 frequency_count : Optional [int ] | NotGiven = NOT_GIVEN ,
144147 question : Optional [str ] | NotGiven = NOT_GIVEN ,
145148 # 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(
170173 body = maybe_transform (
171174 {
172175 "answer" : answer ,
176+ "draft_answer" : draft_answer ,
173177 "frequency_count" : frequency_count ,
174178 "question" : question ,
175179 },
@@ -190,6 +194,7 @@ def list(
190194 offset : int | NotGiven = NOT_GIVEN ,
191195 order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
192196 sort : Literal ["created_at" , "answered_at" ] | NotGiven = NOT_GIVEN ,
197+ states : List [Literal ["unanswered" , "draft" , "published" , "published_with_draft" ]] | NotGiven = NOT_GIVEN ,
193198 unanswered_only : bool | NotGiven = NOT_GIVEN ,
194199 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
195200 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -227,6 +232,7 @@ def list(
227232 "offset" : offset ,
228233 "order" : order ,
229234 "sort" : sort ,
235+ "states" : states ,
230236 "unanswered_only" : unanswered_only ,
231237 },
232238 entry_list_params .EntryListParams ,
@@ -379,6 +385,7 @@ async def create(
379385 * ,
380386 question : str ,
381387 answer : Optional [str ] | NotGiven = NOT_GIVEN ,
388+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
382389 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
383390 # The extra values given here take precedence over values defined on the client or passed to this method.
384391 extra_headers : Headers | None = None ,
@@ -408,6 +415,7 @@ async def create(
408415 {
409416 "question" : question ,
410417 "answer" : answer ,
418+ "draft_answer" : draft_answer ,
411419 },
412420 entry_create_params .EntryCreateParams ,
413421 ),
@@ -459,6 +467,7 @@ async def update(
459467 * ,
460468 project_id : str ,
461469 answer : Optional [str ] | NotGiven = NOT_GIVEN ,
470+ draft_answer : Optional [str ] | NotGiven = NOT_GIVEN ,
462471 frequency_count : Optional [int ] | NotGiven = NOT_GIVEN ,
463472 question : Optional [str ] | NotGiven = NOT_GIVEN ,
464473 # 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(
489498 body = await async_maybe_transform (
490499 {
491500 "answer" : answer ,
501+ "draft_answer" : draft_answer ,
492502 "frequency_count" : frequency_count ,
493503 "question" : question ,
494504 },
@@ -509,6 +519,7 @@ def list(
509519 offset : int | NotGiven = NOT_GIVEN ,
510520 order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
511521 sort : Literal ["created_at" , "answered_at" ] | NotGiven = NOT_GIVEN ,
522+ states : List [Literal ["unanswered" , "draft" , "published" , "published_with_draft" ]] | NotGiven = NOT_GIVEN ,
512523 unanswered_only : bool | NotGiven = NOT_GIVEN ,
513524 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
514525 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -546,6 +557,7 @@ def list(
546557 "offset" : offset ,
547558 "order" : order ,
548559 "sort" : sort ,
560+ "states" : states ,
549561 "unanswered_only" : unanswered_only ,
550562 },
551563 entry_list_params .EntryListParams ,
0 commit comments