22
33from __future__ import annotations
44
5+ from typing_extensions import Literal
6+
57import httpx
68
7- from ..._types import Body , Query , Headers , NotGiven , not_given
9+ from ..._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
810from ..._utils import path_template , maybe_transform , async_maybe_transform
911from ..._compat import cached_property
1012from ..._resource import SyncAPIResource , AsyncAPIResource
1517 async_to_streamed_response_wrapper ,
1618)
1719from ..._base_client import make_request_options
18- from ...types .realtime_kit import app_post_params
20+ from ...types .realtime_kit import app_get_params , app_post_params
1921from ...types .realtime_kit .app_get_response import AppGetResponse
2022from ...types .realtime_kit .app_post_response import AppPostResponse
2123
@@ -46,6 +48,10 @@ def get(
4648 self ,
4749 * ,
4850 account_id : str ,
51+ page_no : int | Omit = omit ,
52+ per_page : int | Omit = omit ,
53+ search : str | Omit = omit ,
54+ sort_order : Literal ["ASC" , "DESC" ] | Omit = omit ,
4955 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5056 # The extra values given here take precedence over values defined on the client or passed to this method.
5157 extra_headers : Headers | None = None ,
@@ -59,6 +65,14 @@ def get(
5965 Args:
6066 account_id: The account identifier tag.
6167
68+ page_no: The page number from which you want your page search results to be displayed.
69+
70+ per_page: Number of results per page.
71+
72+ search: Search string that matches apps by name.
73+
74+ sort_order: Sort order for apps by creation time.
75+
6276 extra_headers: Send extra headers
6377
6478 extra_query: Add additional query parameters to the request
@@ -72,7 +86,19 @@ def get(
7286 return self ._get (
7387 path_template ("/accounts/{account_id}/realtime/kit/apps" , account_id = account_id ),
7488 options = make_request_options (
75- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
89+ extra_headers = extra_headers ,
90+ extra_query = extra_query ,
91+ extra_body = extra_body ,
92+ timeout = timeout ,
93+ query = maybe_transform (
94+ {
95+ "page_no" : page_no ,
96+ "per_page" : per_page ,
97+ "search" : search ,
98+ "sort_order" : sort_order ,
99+ },
100+ app_get_params .AppGetParams ,
101+ ),
76102 ),
77103 cast_to = AppGetResponse ,
78104 )
@@ -93,6 +119,8 @@ def post(
93119 Create new app for your account
94120
95121 Args:
122+ account_id: The account identifier tag.
123+
96124 extra_headers: Send extra headers
97125
98126 extra_query: Add additional query parameters to the request
@@ -137,6 +165,10 @@ async def get(
137165 self ,
138166 * ,
139167 account_id : str ,
168+ page_no : int | Omit = omit ,
169+ per_page : int | Omit = omit ,
170+ search : str | Omit = omit ,
171+ sort_order : Literal ["ASC" , "DESC" ] | Omit = omit ,
140172 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
141173 # The extra values given here take precedence over values defined on the client or passed to this method.
142174 extra_headers : Headers | None = None ,
@@ -150,6 +182,14 @@ async def get(
150182 Args:
151183 account_id: The account identifier tag.
152184
185+ page_no: The page number from which you want your page search results to be displayed.
186+
187+ per_page: Number of results per page.
188+
189+ search: Search string that matches apps by name.
190+
191+ sort_order: Sort order for apps by creation time.
192+
153193 extra_headers: Send extra headers
154194
155195 extra_query: Add additional query parameters to the request
@@ -163,7 +203,19 @@ async def get(
163203 return await self ._get (
164204 path_template ("/accounts/{account_id}/realtime/kit/apps" , account_id = account_id ),
165205 options = make_request_options (
166- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
206+ extra_headers = extra_headers ,
207+ extra_query = extra_query ,
208+ extra_body = extra_body ,
209+ timeout = timeout ,
210+ query = await async_maybe_transform (
211+ {
212+ "page_no" : page_no ,
213+ "per_page" : per_page ,
214+ "search" : search ,
215+ "sort_order" : sort_order ,
216+ },
217+ app_get_params .AppGetParams ,
218+ ),
167219 ),
168220 cast_to = AppGetResponse ,
169221 )
@@ -184,6 +236,8 @@ async def post(
184236 Create new app for your account
185237
186238 Args:
239+ account_id: The account identifier tag.
240+
187241 extra_headers: Send extra headers
188242
189243 extra_query: Add additional query parameters to the request
0 commit comments