66from ... import errors
77from ...client import AuthenticatedClient , Client
88from ...models .error import Error
9- from ...models .moq_token import MoqToken
10- from ...models .moq_token_config import MoqTokenConfig
9+ from ...models .moq_access import MoqAccess
10+ from ...models .moq_access_config import MoqAccessConfig
1111from ...types import UNSET , Response , Unset
1212
1313
1414def _get_kwargs (
1515 * ,
16- body : MoqTokenConfig | Unset = UNSET ,
16+ body : MoqAccessConfig | Unset = UNSET ,
1717) -> dict [str , Any ]:
1818 headers : dict [str , Any ] = {}
1919
2020 _kwargs : dict [str , Any ] = {
2121 "method" : "post" ,
22- "url" : "/moq/token " ,
22+ "url" : "/moq/access " ,
2323 }
2424
2525 if not isinstance (body , Unset ):
@@ -33,9 +33,9 @@ def _get_kwargs(
3333
3434def _parse_response (
3535 * , client : AuthenticatedClient | Client , response : httpx .Response
36- ) -> Error | MoqToken | None :
36+ ) -> Error | MoqAccess | None :
3737 if response .status_code == 200 :
38- response_200 = MoqToken .from_dict (response .json ())
38+ response_200 = MoqAccess .from_dict (response .json ())
3939
4040 return response_200
4141
@@ -62,7 +62,7 @@ def _parse_response(
6262
6363def _build_response (
6464 * , client : AuthenticatedClient | Client , response : httpx .Response
65- ) -> Response [Error | MoqToken ]:
65+ ) -> Response [Error | MoqAccess ]:
6666 return Response (
6767 status_code = HTTPStatus (response .status_code ),
6868 content = response .content ,
@@ -74,21 +74,21 @@ def _build_response(
7474def sync_detailed (
7575 * ,
7676 client : AuthenticatedClient ,
77- body : MoqTokenConfig | Unset = UNSET ,
78- ) -> Response [Error | MoqToken ]:
79- """Create a MoQ token
77+ body : MoqAccessConfig | Unset = UNSET ,
78+ ) -> Response [Error | MoqAccess ]:
79+ """Create MoQ access
8080
8181 Issue a short-lived JWT for a Media over QUIC client.
8282
8383 Args:
84- body (MoqTokenConfig | Unset): MoQ token configuration
84+ body (MoqAccessConfig | Unset): MoQ access configuration
8585
8686 Raises:
8787 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
8888 httpx.TimeoutException: If the request takes longer than Client.timeout.
8989
9090 Returns:
91- Response[Error | MoqToken ]
91+ Response[Error | MoqAccess ]
9292 """
9393
9494 kwargs = _get_kwargs (
@@ -105,21 +105,21 @@ def sync_detailed(
105105def sync (
106106 * ,
107107 client : AuthenticatedClient ,
108- body : MoqTokenConfig | Unset = UNSET ,
109- ) -> Error | MoqToken | None :
110- """Create a MoQ token
108+ body : MoqAccessConfig | Unset = UNSET ,
109+ ) -> Error | MoqAccess | None :
110+ """Create MoQ access
111111
112112 Issue a short-lived JWT for a Media over QUIC client.
113113
114114 Args:
115- body (MoqTokenConfig | Unset): MoQ token configuration
115+ body (MoqAccessConfig | Unset): MoQ access configuration
116116
117117 Raises:
118118 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
119119 httpx.TimeoutException: If the request takes longer than Client.timeout.
120120
121121 Returns:
122- Error | MoqToken
122+ Error | MoqAccess
123123 """
124124
125125 return sync_detailed (
@@ -131,21 +131,21 @@ def sync(
131131async def asyncio_detailed (
132132 * ,
133133 client : AuthenticatedClient ,
134- body : MoqTokenConfig | Unset = UNSET ,
135- ) -> Response [Error | MoqToken ]:
136- """Create a MoQ token
134+ body : MoqAccessConfig | Unset = UNSET ,
135+ ) -> Response [Error | MoqAccess ]:
136+ """Create MoQ access
137137
138138 Issue a short-lived JWT for a Media over QUIC client.
139139
140140 Args:
141- body (MoqTokenConfig | Unset): MoQ token configuration
141+ body (MoqAccessConfig | Unset): MoQ access configuration
142142
143143 Raises:
144144 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
145145 httpx.TimeoutException: If the request takes longer than Client.timeout.
146146
147147 Returns:
148- Response[Error | MoqToken ]
148+ Response[Error | MoqAccess ]
149149 """
150150
151151 kwargs = _get_kwargs (
@@ -160,21 +160,21 @@ async def asyncio_detailed(
160160async def asyncio (
161161 * ,
162162 client : AuthenticatedClient ,
163- body : MoqTokenConfig | Unset = UNSET ,
164- ) -> Error | MoqToken | None :
165- """Create a MoQ token
163+ body : MoqAccessConfig | Unset = UNSET ,
164+ ) -> Error | MoqAccess | None :
165+ """Create MoQ access
166166
167167 Issue a short-lived JWT for a Media over QUIC client.
168168
169169 Args:
170- body (MoqTokenConfig | Unset): MoQ token configuration
170+ body (MoqAccessConfig | Unset): MoQ access configuration
171171
172172 Raises:
173173 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
174174 httpx.TimeoutException: If the request takes longer than Client.timeout.
175175
176176 Returns:
177- Error | MoqToken
177+ Error | MoqAccess
178178 """
179179
180180 return (
0 commit comments