Skip to content

Commit 8a8b693

Browse files
chore(api): update composite API spec
1 parent 10aa452 commit 8a8b693

31 files changed

Lines changed: 1334 additions & 791 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2276
1+
configured_endpoints: 2277
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 871426c229b3c4a1d675f71512f933cb
3+
openapi_spec_hash: 6195c88a622982f684a53b4864623309
44
config_hash: 0148d517bb02129e9e259f11db3933eb

src/cloudflare/resources/realtime_kit/api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from cloudflare.types.realtime_kit import AppGetResponse, AppPostResponse
1010

1111
Methods:
1212

13-
- <code title="get /accounts/{account_id}/realtime/kit/apps">client.realtime_kit.apps.<a href="./src/cloudflare/resources/realtime_kit/apps.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/realtime_kit/app_get_response.py">AppGetResponse</a></code>
13+
- <code title="get /accounts/{account_id}/realtime/kit/apps">client.realtime_kit.apps.<a href="./src/cloudflare/resources/realtime_kit/apps.py">get</a>(\*, account_id, \*\*<a href="src/cloudflare/types/realtime_kit/app_get_params.py">params</a>) -> <a href="./src/cloudflare/types/realtime_kit/app_get_response.py">AppGetResponse</a></code>
1414
- <code title="post /accounts/{account_id}/realtime/kit/apps">client.realtime_kit.apps.<a href="./src/cloudflare/resources/realtime_kit/apps.py">post</a>(\*, account_id, \*\*<a href="src/cloudflare/types/realtime_kit/app_post_params.py">params</a>) -> <a href="./src/cloudflare/types/realtime_kit/app_post_response.py">AppPostResponse</a></code>
1515

1616
## Meetings
@@ -175,6 +175,7 @@ from cloudflare.types.realtime_kit import (
175175
LivestreamGetActiveLivestreamsForLivestreamIDResponse,
176176
LivestreamGetAllLivestreamsResponse,
177177
LivestreamGetLivestreamAnalyticsCompleteResponse,
178+
LivestreamGetLivestreamAnalyticsDaywiseResponse,
178179
LivestreamGetLivestreamSessionDetailsForSessionIDResponse,
179180
LivestreamGetLivestreamSessionForLivestreamIDResponse,
180181
LivestreamGetMeetingActiveLivestreamsResponse,
@@ -190,6 +191,7 @@ Methods:
190191
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/livestreams/{livestream_id}/active-livestream-session">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_active_livestreams_for_livestream_id</a>(livestream_id, \*, account_id, app_id) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_active_livestreams_for_livestream_id_response.py">LivestreamGetActiveLivestreamsForLivestreamIDResponse</a></code>
191192
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/livestreams">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_all_livestreams</a>(app_id, \*, account_id, \*\*<a href="src/cloudflare/types/realtime_kit/livestream_get_all_livestreams_params.py">params</a>) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_all_livestreams_response.py">LivestreamGetAllLivestreamsResponse</a></code>
192193
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/analytics/livestreams/overall">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_livestream_analytics_complete</a>(app_id, \*, account_id, \*\*<a href="src/cloudflare/types/realtime_kit/livestream_get_livestream_analytics_complete_params.py">params</a>) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_livestream_analytics_complete_response.py">LivestreamGetLivestreamAnalyticsCompleteResponse</a></code>
194+
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/analytics/livestreams/daywise">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_livestream_analytics_daywise</a>(app_id, \*, account_id, \*\*<a href="src/cloudflare/types/realtime_kit/livestream_get_livestream_analytics_daywise_params.py">params</a>) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_livestream_analytics_daywise_response.py">LivestreamGetLivestreamAnalyticsDaywiseResponse</a></code>
193195
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/livestreams/sessions/{livestream-session-id}">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_livestream_session_details_for_session_id</a>(livestream_session_id, \*, account_id, app_id) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_livestream_session_details_for_session_id_response.py">LivestreamGetLivestreamSessionDetailsForSessionIDResponse</a></code>
194196
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/livestreams/{livestream_id}">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_livestream_session_for_livestream_id</a>(livestream_id, \*, account_id, app_id, \*\*<a href="src/cloudflare/types/realtime_kit/livestream_get_livestream_session_for_livestream_id_params.py">params</a>) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_livestream_session_for_livestream_id_response.py">LivestreamGetLivestreamSessionForLivestreamIDResponse</a></code>
195197
- <code title="get /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-livestream">client.realtime_kit.livestreams.<a href="./src/cloudflare/resources/realtime_kit/livestreams.py">get_meeting_active_livestreams</a>(meeting_id, \*, account_id, app_id) -> <a href="./src/cloudflare/types/realtime_kit/livestream_get_meeting_active_livestreams_response.py">LivestreamGetMeetingActiveLivestreamsResponse</a></code>

src/cloudflare/resources/realtime_kit/apps.py

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
from __future__ import annotations
44

5+
from typing_extensions import Literal
6+
57
import httpx
68

7-
from ..._types import Body, Query, Headers, NotGiven, not_given
9+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
810
from ..._utils import path_template, maybe_transform, async_maybe_transform
911
from ..._compat import cached_property
1012
from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -15,7 +17,7 @@
1517
async_to_streamed_response_wrapper,
1618
)
1719
from ..._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
1921
from ...types.realtime_kit.app_get_response import AppGetResponse
2022
from ...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

Comments
 (0)