|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import Union, Iterable |
| 5 | +from typing import Dict, Union, Iterable |
6 | 6 | from typing_extensions import Literal
|
7 | 7 |
|
8 | 8 | import httpx
|
@@ -108,7 +108,7 @@ def create(
|
108 | 108 | proxies: Union[bool, Iterable[session_create_params.ProxiesUnionMember1]] | NotGiven = NOT_GIVEN,
|
109 | 109 | region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
|
110 | 110 | api_timeout: int | NotGiven = NOT_GIVEN,
|
111 |
| - user_metadata: object | NotGiven = NOT_GIVEN, |
| 111 | + user_metadata: Dict[str, object] | NotGiven = NOT_GIVEN, |
112 | 112 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
113 | 113 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
114 | 114 | extra_headers: Headers | None = None,
|
@@ -138,7 +138,8 @@ def create(
|
138 | 138 | api_timeout: Duration in seconds after which the session will automatically end. Defaults to
|
139 | 139 | the Project's `defaultTimeout`.
|
140 | 140 |
|
141 |
| - user_metadata: Arbitrary user metadata to attach to the session. |
| 141 | + user_metadata: Arbitrary user metadata to attach to the session. To learn more about user |
| 142 | + metadata, see [User Metadata](/features/sessions#user-metadata). |
142 | 143 |
|
143 | 144 | extra_headers: Send extra headers
|
144 | 145 |
|
@@ -263,10 +264,15 @@ def list(
|
263 | 264 | extra_body: Body | None = None,
|
264 | 265 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
265 | 266 | ) -> SessionListResponse:
|
266 |
| - """ |
267 |
| - List Sessions |
| 267 | + """List Sessions |
268 | 268 |
|
269 | 269 | Args:
|
| 270 | + q: Query sessions by user metadata. |
| 271 | +
|
| 272 | + See |
| 273 | + [Querying Sessions by User Metadata](/features/sessions#querying-sessions-by-user-metadata) |
| 274 | + for the schema of this query. |
| 275 | +
|
270 | 276 | extra_headers: Send extra headers
|
271 | 277 |
|
272 | 278 | extra_query: Add additional query parameters to the request
|
@@ -373,7 +379,7 @@ async def create(
|
373 | 379 | proxies: Union[bool, Iterable[session_create_params.ProxiesUnionMember1]] | NotGiven = NOT_GIVEN,
|
374 | 380 | region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
|
375 | 381 | api_timeout: int | NotGiven = NOT_GIVEN,
|
376 |
| - user_metadata: object | NotGiven = NOT_GIVEN, |
| 382 | + user_metadata: Dict[str, object] | NotGiven = NOT_GIVEN, |
377 | 383 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
378 | 384 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
379 | 385 | extra_headers: Headers | None = None,
|
@@ -403,7 +409,8 @@ async def create(
|
403 | 409 | api_timeout: Duration in seconds after which the session will automatically end. Defaults to
|
404 | 410 | the Project's `defaultTimeout`.
|
405 | 411 |
|
406 |
| - user_metadata: Arbitrary user metadata to attach to the session. |
| 412 | + user_metadata: Arbitrary user metadata to attach to the session. To learn more about user |
| 413 | + metadata, see [User Metadata](/features/sessions#user-metadata). |
407 | 414 |
|
408 | 415 | extra_headers: Send extra headers
|
409 | 416 |
|
@@ -528,10 +535,15 @@ async def list(
|
528 | 535 | extra_body: Body | None = None,
|
529 | 536 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
530 | 537 | ) -> SessionListResponse:
|
531 |
| - """ |
532 |
| - List Sessions |
| 538 | + """List Sessions |
533 | 539 |
|
534 | 540 | Args:
|
| 541 | + q: Query sessions by user metadata. |
| 542 | +
|
| 543 | + See |
| 544 | + [Querying Sessions by User Metadata](/features/sessions#querying-sessions-by-user-metadata) |
| 545 | + for the schema of this query. |
| 546 | +
|
535 | 547 | extra_headers: Send extra headers
|
536 | 548 |
|
537 | 549 | extra_query: Add additional query parameters to the request
|
|
0 commit comments