payi 0.1.0a110__py3-none-any.whl → 0.1.0a137__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. payi/__init__.py +3 -1
  2. payi/_base_client.py +12 -12
  3. payi/_client.py +8 -8
  4. payi/_compat.py +48 -48
  5. payi/_models.py +87 -59
  6. payi/_qs.py +7 -7
  7. payi/_streaming.py +4 -6
  8. payi/_types.py +53 -12
  9. payi/_utils/__init__.py +9 -2
  10. payi/_utils/_compat.py +45 -0
  11. payi/_utils/_datetime_parse.py +136 -0
  12. payi/_utils/_sync.py +3 -31
  13. payi/_utils/_transform.py +13 -3
  14. payi/_utils/_typing.py +6 -1
  15. payi/_utils/_utils.py +5 -6
  16. payi/_version.py +1 -1
  17. payi/lib/AnthropicInstrumentor.py +83 -57
  18. payi/lib/BedrockInstrumentor.py +292 -57
  19. payi/lib/GoogleGenAiInstrumentor.py +18 -31
  20. payi/lib/OpenAIInstrumentor.py +56 -72
  21. payi/lib/ProviderRequest.py +216 -0
  22. payi/lib/StreamWrappers.py +379 -0
  23. payi/lib/VertexInstrumentor.py +18 -37
  24. payi/lib/VertexRequest.py +16 -2
  25. payi/lib/data/cohere_embed_english_v3.json +30706 -0
  26. payi/lib/helpers.py +53 -1
  27. payi/lib/instrument.py +404 -668
  28. payi/resources/categories/__init__.py +0 -14
  29. payi/resources/categories/categories.py +25 -53
  30. payi/resources/categories/resources.py +27 -23
  31. payi/resources/ingest.py +126 -132
  32. payi/resources/limits/__init__.py +14 -14
  33. payi/resources/limits/limits.py +58 -58
  34. payi/resources/limits/properties.py +171 -0
  35. payi/resources/requests/request_id/properties.py +8 -8
  36. payi/resources/requests/request_id/result.py +3 -3
  37. payi/resources/requests/response_id/properties.py +8 -8
  38. payi/resources/requests/response_id/result.py +3 -3
  39. payi/resources/use_cases/definitions/definitions.py +27 -27
  40. payi/resources/use_cases/definitions/kpis.py +23 -23
  41. payi/resources/use_cases/definitions/limit_config.py +14 -14
  42. payi/resources/use_cases/definitions/version.py +3 -3
  43. payi/resources/use_cases/kpis.py +15 -15
  44. payi/resources/use_cases/properties.py +6 -6
  45. payi/resources/use_cases/use_cases.py +7 -7
  46. payi/types/__init__.py +2 -0
  47. payi/types/bulk_ingest_response.py +3 -20
  48. payi/types/categories/__init__.py +0 -1
  49. payi/types/categories/resource_list_params.py +5 -1
  50. payi/types/category_list_resources_params.py +5 -1
  51. payi/types/category_resource_response.py +31 -1
  52. payi/types/ingest_event_param.py +7 -6
  53. payi/types/ingest_units_params.py +5 -4
  54. payi/types/limit_create_params.py +3 -3
  55. payi/types/limit_list_response.py +1 -3
  56. payi/types/limit_response.py +1 -3
  57. payi/types/limits/__init__.py +2 -9
  58. payi/types/limits/{tag_remove_params.py → property_update_params.py} +4 -5
  59. payi/types/limits/{tag_delete_response.py → property_update_response.py} +3 -3
  60. payi/types/requests/request_id/property_update_params.py +2 -2
  61. payi/types/requests/response_id/property_update_params.py +2 -2
  62. payi/types/shared/__init__.py +2 -0
  63. payi/types/shared/api_error.py +18 -0
  64. payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +3 -3
  65. payi/types/shared/properties_request.py +11 -0
  66. payi/types/shared/xproxy_result.py +2 -0
  67. payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +3 -3
  68. payi/types/use_cases/definitions/limit_config_create_params.py +3 -3
  69. payi/types/use_cases/property_update_params.py +2 -2
  70. {payi-0.1.0a110.dist-info → payi-0.1.0a137.dist-info}/METADATA +6 -6
  71. {payi-0.1.0a110.dist-info → payi-0.1.0a137.dist-info}/RECORD +73 -75
  72. payi/resources/categories/fixed_cost_resources.py +0 -196
  73. payi/resources/limits/tags.py +0 -507
  74. payi/types/categories/fixed_cost_resource_create_params.py +0 -21
  75. payi/types/limits/limit_tags.py +0 -16
  76. payi/types/limits/tag_create_params.py +0 -13
  77. payi/types/limits/tag_create_response.py +0 -10
  78. payi/types/limits/tag_list_response.py +0 -10
  79. payi/types/limits/tag_remove_response.py +0 -10
  80. payi/types/limits/tag_update_params.py +0 -13
  81. payi/types/limits/tag_update_response.py +0 -10
  82. {payi-0.1.0a110.dist-info → payi-0.1.0a137.dist-info}/WHEEL +0 -0
  83. {payi-0.1.0a110.dist-info → payi-0.1.0a137.dist-info}/licenses/LICENSE +0 -0
@@ -16,14 +16,6 @@ from .categories import (
16
16
  CategoriesResourceWithStreamingResponse,
17
17
  AsyncCategoriesResourceWithStreamingResponse,
18
18
  )
19
- from .fixed_cost_resources import (
20
- FixedCostResourcesResource,
21
- AsyncFixedCostResourcesResource,
22
- FixedCostResourcesResourceWithRawResponse,
23
- AsyncFixedCostResourcesResourceWithRawResponse,
24
- FixedCostResourcesResourceWithStreamingResponse,
25
- AsyncFixedCostResourcesResourceWithStreamingResponse,
26
- )
27
19
 
28
20
  __all__ = [
29
21
  "ResourcesResource",
@@ -32,12 +24,6 @@ __all__ = [
32
24
  "AsyncResourcesResourceWithRawResponse",
33
25
  "ResourcesResourceWithStreamingResponse",
34
26
  "AsyncResourcesResourceWithStreamingResponse",
35
- "FixedCostResourcesResource",
36
- "AsyncFixedCostResourcesResource",
37
- "FixedCostResourcesResourceWithRawResponse",
38
- "AsyncFixedCostResourcesResourceWithRawResponse",
39
- "FixedCostResourcesResourceWithStreamingResponse",
40
- "AsyncFixedCostResourcesResourceWithStreamingResponse",
41
27
  "CategoriesResource",
42
28
  "AsyncCategoriesResource",
43
29
  "CategoriesResourceWithRawResponse",
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ...types import category_list_params, category_list_resources_params
8
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from ..._utils import maybe_transform
10
10
  from ..._compat import cached_property
11
11
  from .resources import (
@@ -25,14 +25,6 @@ from ..._response import (
25
25
  )
26
26
  from ...pagination import SyncCursorPage, AsyncCursorPage
27
27
  from ..._base_client import AsyncPaginator, make_request_options
28
- from .fixed_cost_resources import (
29
- FixedCostResourcesResource,
30
- AsyncFixedCostResourcesResource,
31
- FixedCostResourcesResourceWithRawResponse,
32
- AsyncFixedCostResourcesResourceWithRawResponse,
33
- FixedCostResourcesResourceWithStreamingResponse,
34
- AsyncFixedCostResourcesResourceWithStreamingResponse,
35
- )
36
28
  from ...types.category_response import CategoryResponse
37
29
  from ...types.category_delete_response import CategoryDeleteResponse
38
30
  from ...types.category_resource_response import CategoryResourceResponse
@@ -46,10 +38,6 @@ class CategoriesResource(SyncAPIResource):
46
38
  def resources(self) -> ResourcesResource:
47
39
  return ResourcesResource(self._client)
48
40
 
49
- @cached_property
50
- def fixed_cost_resources(self) -> FixedCostResourcesResource:
51
- return FixedCostResourcesResource(self._client)
52
-
53
41
  @cached_property
54
42
  def with_raw_response(self) -> CategoriesResourceWithRawResponse:
55
43
  """
@@ -72,15 +60,15 @@ class CategoriesResource(SyncAPIResource):
72
60
  def list(
73
61
  self,
74
62
  *,
75
- cursor: str | NotGiven = NOT_GIVEN,
76
- limit: int | NotGiven = NOT_GIVEN,
77
- sort_ascending: bool | NotGiven = NOT_GIVEN,
63
+ cursor: str | Omit = omit,
64
+ limit: int | Omit = omit,
65
+ sort_ascending: bool | Omit = omit,
78
66
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
79
67
  # The extra values given here take precedence over values defined on the client or passed to this method.
80
68
  extra_headers: Headers | None = None,
81
69
  extra_query: Query | None = None,
82
70
  extra_body: Body | None = None,
83
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
71
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
84
72
  ) -> SyncCursorPage[CategoryResponse]:
85
73
  """
86
74
  Get all Categories
@@ -123,7 +111,7 @@ class CategoriesResource(SyncAPIResource):
123
111
  extra_headers: Headers | None = None,
124
112
  extra_query: Query | None = None,
125
113
  extra_body: Body | None = None,
126
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
114
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
127
115
  ) -> CategoryDeleteResponse:
128
116
  """
129
117
  Delete a Category and all of its Resources
@@ -157,7 +145,7 @@ class CategoriesResource(SyncAPIResource):
157
145
  extra_headers: Headers | None = None,
158
146
  extra_query: Query | None = None,
159
147
  extra_body: Body | None = None,
160
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
148
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
161
149
  ) -> CategoryDeleteResourceResponse:
162
150
  """
163
151
  Delete all versions of Resource from a Category
@@ -187,15 +175,16 @@ class CategoriesResource(SyncAPIResource):
187
175
  self,
188
176
  category: str,
189
177
  *,
190
- cursor: str | NotGiven = NOT_GIVEN,
191
- limit: int | NotGiven = NOT_GIVEN,
192
- sort_ascending: bool | NotGiven = NOT_GIVEN,
178
+ active: bool | Omit = omit,
179
+ cursor: str | Omit = omit,
180
+ limit: int | Omit = omit,
181
+ sort_ascending: bool | Omit = omit,
193
182
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
194
183
  # The extra values given here take precedence over values defined on the client or passed to this method.
195
184
  extra_headers: Headers | None = None,
196
185
  extra_query: Query | None = None,
197
186
  extra_body: Body | None = None,
198
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
187
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
199
188
  ) -> SyncCursorPage[CategoryResourceResponse]:
200
189
  """
201
190
  Get all Resources for a Category
@@ -221,6 +210,7 @@ class CategoriesResource(SyncAPIResource):
221
210
  timeout=timeout,
222
211
  query=maybe_transform(
223
212
  {
213
+ "active": active,
224
214
  "cursor": cursor,
225
215
  "limit": limit,
226
216
  "sort_ascending": sort_ascending,
@@ -237,10 +227,6 @@ class AsyncCategoriesResource(AsyncAPIResource):
237
227
  def resources(self) -> AsyncResourcesResource:
238
228
  return AsyncResourcesResource(self._client)
239
229
 
240
- @cached_property
241
- def fixed_cost_resources(self) -> AsyncFixedCostResourcesResource:
242
- return AsyncFixedCostResourcesResource(self._client)
243
-
244
230
  @cached_property
245
231
  def with_raw_response(self) -> AsyncCategoriesResourceWithRawResponse:
246
232
  """
@@ -263,15 +249,15 @@ class AsyncCategoriesResource(AsyncAPIResource):
263
249
  def list(
264
250
  self,
265
251
  *,
266
- cursor: str | NotGiven = NOT_GIVEN,
267
- limit: int | NotGiven = NOT_GIVEN,
268
- sort_ascending: bool | NotGiven = NOT_GIVEN,
252
+ cursor: str | Omit = omit,
253
+ limit: int | Omit = omit,
254
+ sort_ascending: bool | Omit = omit,
269
255
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
270
256
  # The extra values given here take precedence over values defined on the client or passed to this method.
271
257
  extra_headers: Headers | None = None,
272
258
  extra_query: Query | None = None,
273
259
  extra_body: Body | None = None,
274
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
260
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
275
261
  ) -> AsyncPaginator[CategoryResponse, AsyncCursorPage[CategoryResponse]]:
276
262
  """
277
263
  Get all Categories
@@ -314,7 +300,7 @@ class AsyncCategoriesResource(AsyncAPIResource):
314
300
  extra_headers: Headers | None = None,
315
301
  extra_query: Query | None = None,
316
302
  extra_body: Body | None = None,
317
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
303
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
318
304
  ) -> CategoryDeleteResponse:
319
305
  """
320
306
  Delete a Category and all of its Resources
@@ -348,7 +334,7 @@ class AsyncCategoriesResource(AsyncAPIResource):
348
334
  extra_headers: Headers | None = None,
349
335
  extra_query: Query | None = None,
350
336
  extra_body: Body | None = None,
351
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
337
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
352
338
  ) -> CategoryDeleteResourceResponse:
353
339
  """
354
340
  Delete all versions of Resource from a Category
@@ -378,15 +364,16 @@ class AsyncCategoriesResource(AsyncAPIResource):
378
364
  self,
379
365
  category: str,
380
366
  *,
381
- cursor: str | NotGiven = NOT_GIVEN,
382
- limit: int | NotGiven = NOT_GIVEN,
383
- sort_ascending: bool | NotGiven = NOT_GIVEN,
367
+ active: bool | Omit = omit,
368
+ cursor: str | Omit = omit,
369
+ limit: int | Omit = omit,
370
+ sort_ascending: bool | Omit = omit,
384
371
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
385
372
  # The extra values given here take precedence over values defined on the client or passed to this method.
386
373
  extra_headers: Headers | None = None,
387
374
  extra_query: Query | None = None,
388
375
  extra_body: Body | None = None,
389
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
376
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
390
377
  ) -> AsyncPaginator[CategoryResourceResponse, AsyncCursorPage[CategoryResourceResponse]]:
391
378
  """
392
379
  Get all Resources for a Category
@@ -412,6 +399,7 @@ class AsyncCategoriesResource(AsyncAPIResource):
412
399
  timeout=timeout,
413
400
  query=maybe_transform(
414
401
  {
402
+ "active": active,
415
403
  "cursor": cursor,
416
404
  "limit": limit,
417
405
  "sort_ascending": sort_ascending,
@@ -444,10 +432,6 @@ class CategoriesResourceWithRawResponse:
444
432
  def resources(self) -> ResourcesResourceWithRawResponse:
445
433
  return ResourcesResourceWithRawResponse(self._categories.resources)
446
434
 
447
- @cached_property
448
- def fixed_cost_resources(self) -> FixedCostResourcesResourceWithRawResponse:
449
- return FixedCostResourcesResourceWithRawResponse(self._categories.fixed_cost_resources)
450
-
451
435
 
452
436
  class AsyncCategoriesResourceWithRawResponse:
453
437
  def __init__(self, categories: AsyncCategoriesResource) -> None:
@@ -470,10 +454,6 @@ class AsyncCategoriesResourceWithRawResponse:
470
454
  def resources(self) -> AsyncResourcesResourceWithRawResponse:
471
455
  return AsyncResourcesResourceWithRawResponse(self._categories.resources)
472
456
 
473
- @cached_property
474
- def fixed_cost_resources(self) -> AsyncFixedCostResourcesResourceWithRawResponse:
475
- return AsyncFixedCostResourcesResourceWithRawResponse(self._categories.fixed_cost_resources)
476
-
477
457
 
478
458
  class CategoriesResourceWithStreamingResponse:
479
459
  def __init__(self, categories: CategoriesResource) -> None:
@@ -496,10 +476,6 @@ class CategoriesResourceWithStreamingResponse:
496
476
  def resources(self) -> ResourcesResourceWithStreamingResponse:
497
477
  return ResourcesResourceWithStreamingResponse(self._categories.resources)
498
478
 
499
- @cached_property
500
- def fixed_cost_resources(self) -> FixedCostResourcesResourceWithStreamingResponse:
501
- return FixedCostResourcesResourceWithStreamingResponse(self._categories.fixed_cost_resources)
502
-
503
479
 
504
480
  class AsyncCategoriesResourceWithStreamingResponse:
505
481
  def __init__(self, categories: AsyncCategoriesResource) -> None:
@@ -521,7 +497,3 @@ class AsyncCategoriesResourceWithStreamingResponse:
521
497
  @cached_property
522
498
  def resources(self) -> AsyncResourcesResourceWithStreamingResponse:
523
499
  return AsyncResourcesResourceWithStreamingResponse(self._categories.resources)
524
-
525
- @cached_property
526
- def fixed_cost_resources(self) -> AsyncFixedCostResourcesResourceWithStreamingResponse:
527
- return AsyncFixedCostResourcesResourceWithStreamingResponse(self._categories.fixed_cost_resources)
@@ -7,7 +7,7 @@ from datetime import datetime
7
7
 
8
8
  import httpx
9
9
 
10
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from ..._utils import maybe_transform, async_maybe_transform
12
12
  from ..._compat import cached_property
13
13
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -51,16 +51,16 @@ class ResourcesResource(SyncAPIResource):
51
51
  *,
52
52
  category: str,
53
53
  units: Dict[str, resource_create_params.Units],
54
- max_input_units: Optional[int] | NotGiven = NOT_GIVEN,
55
- max_output_units: Optional[int] | NotGiven = NOT_GIVEN,
56
- max_total_units: Optional[int] | NotGiven = NOT_GIVEN,
57
- start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
54
+ max_input_units: Optional[int] | Omit = omit,
55
+ max_output_units: Optional[int] | Omit = omit,
56
+ max_total_units: Optional[int] | Omit = omit,
57
+ start_timestamp: Union[str, datetime, None] | Omit = omit,
58
58
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
59
59
  # The extra values given here take precedence over values defined on the client or passed to this method.
60
60
  extra_headers: Headers | None = None,
61
61
  extra_query: Query | None = None,
62
62
  extra_body: Body | None = None,
63
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
63
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
64
64
  ) -> CategoryResourceResponse:
65
65
  """
66
66
  Create a Resource
@@ -107,7 +107,7 @@ class ResourcesResource(SyncAPIResource):
107
107
  extra_headers: Headers | None = None,
108
108
  extra_query: Query | None = None,
109
109
  extra_body: Body | None = None,
110
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
110
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
111
111
  ) -> CategoryResourceResponse:
112
112
  """
113
113
  Get a Resource version details
@@ -140,15 +140,16 @@ class ResourcesResource(SyncAPIResource):
140
140
  resource: str,
141
141
  *,
142
142
  category: str,
143
- cursor: str | NotGiven = NOT_GIVEN,
144
- limit: int | NotGiven = NOT_GIVEN,
145
- sort_ascending: bool | NotGiven = NOT_GIVEN,
143
+ active: bool | Omit = omit,
144
+ cursor: str | Omit = omit,
145
+ limit: int | Omit = omit,
146
+ sort_ascending: bool | Omit = omit,
146
147
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
147
148
  # The extra values given here take precedence over values defined on the client or passed to this method.
148
149
  extra_headers: Headers | None = None,
149
150
  extra_query: Query | None = None,
150
151
  extra_body: Body | None = None,
151
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
152
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
152
153
  ) -> SyncCursorPage[CategoryResourceResponse]:
153
154
  """
154
155
  Get a list of versions of a Resource
@@ -176,6 +177,7 @@ class ResourcesResource(SyncAPIResource):
176
177
  timeout=timeout,
177
178
  query=maybe_transform(
178
179
  {
180
+ "active": active,
179
181
  "cursor": cursor,
180
182
  "limit": limit,
181
183
  "sort_ascending": sort_ascending,
@@ -197,7 +199,7 @@ class ResourcesResource(SyncAPIResource):
197
199
  extra_headers: Headers | None = None,
198
200
  extra_query: Query | None = None,
199
201
  extra_body: Body | None = None,
200
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
202
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
201
203
  ) -> CategoryResourceResponse:
202
204
  """
203
205
  Delete a version of the Resource
@@ -252,16 +254,16 @@ class AsyncResourcesResource(AsyncAPIResource):
252
254
  *,
253
255
  category: str,
254
256
  units: Dict[str, resource_create_params.Units],
255
- max_input_units: Optional[int] | NotGiven = NOT_GIVEN,
256
- max_output_units: Optional[int] | NotGiven = NOT_GIVEN,
257
- max_total_units: Optional[int] | NotGiven = NOT_GIVEN,
258
- start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
257
+ max_input_units: Optional[int] | Omit = omit,
258
+ max_output_units: Optional[int] | Omit = omit,
259
+ max_total_units: Optional[int] | Omit = omit,
260
+ start_timestamp: Union[str, datetime, None] | Omit = omit,
259
261
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
260
262
  # The extra values given here take precedence over values defined on the client or passed to this method.
261
263
  extra_headers: Headers | None = None,
262
264
  extra_query: Query | None = None,
263
265
  extra_body: Body | None = None,
264
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
266
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
265
267
  ) -> CategoryResourceResponse:
266
268
  """
267
269
  Create a Resource
@@ -308,7 +310,7 @@ class AsyncResourcesResource(AsyncAPIResource):
308
310
  extra_headers: Headers | None = None,
309
311
  extra_query: Query | None = None,
310
312
  extra_body: Body | None = None,
311
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
313
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
312
314
  ) -> CategoryResourceResponse:
313
315
  """
314
316
  Get a Resource version details
@@ -341,15 +343,16 @@ class AsyncResourcesResource(AsyncAPIResource):
341
343
  resource: str,
342
344
  *,
343
345
  category: str,
344
- cursor: str | NotGiven = NOT_GIVEN,
345
- limit: int | NotGiven = NOT_GIVEN,
346
- sort_ascending: bool | NotGiven = NOT_GIVEN,
346
+ active: bool | Omit = omit,
347
+ cursor: str | Omit = omit,
348
+ limit: int | Omit = omit,
349
+ sort_ascending: bool | Omit = omit,
347
350
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
348
351
  # The extra values given here take precedence over values defined on the client or passed to this method.
349
352
  extra_headers: Headers | None = None,
350
353
  extra_query: Query | None = None,
351
354
  extra_body: Body | None = None,
352
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
355
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
353
356
  ) -> AsyncPaginator[CategoryResourceResponse, AsyncCursorPage[CategoryResourceResponse]]:
354
357
  """
355
358
  Get a list of versions of a Resource
@@ -377,6 +380,7 @@ class AsyncResourcesResource(AsyncAPIResource):
377
380
  timeout=timeout,
378
381
  query=maybe_transform(
379
382
  {
383
+ "active": active,
380
384
  "cursor": cursor,
381
385
  "limit": limit,
382
386
  "sort_ascending": sort_ascending,
@@ -398,7 +402,7 @@ class AsyncResourcesResource(AsyncAPIResource):
398
402
  extra_headers: Headers | None = None,
399
403
  extra_query: Query | None = None,
400
404
  extra_body: Body | None = None,
401
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
405
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
402
406
  ) -> CategoryResourceResponse:
403
407
  """
404
408
  Delete a version of the Resource