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
@@ -1,507 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import List
6
-
7
- import httpx
8
-
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
- from ..._utils import maybe_transform, async_maybe_transform
11
- from ..._compat import cached_property
12
- from ..._resource import SyncAPIResource, AsyncAPIResource
13
- from ..._response import (
14
- to_raw_response_wrapper,
15
- to_streamed_response_wrapper,
16
- async_to_raw_response_wrapper,
17
- async_to_streamed_response_wrapper,
18
- )
19
- from ..._base_client import make_request_options
20
- from ...types.limits import tag_create_params, tag_remove_params, tag_update_params
21
- from ...types.limits.tag_list_response import TagListResponse
22
- from ...types.limits.tag_create_response import TagCreateResponse
23
- from ...types.limits.tag_delete_response import TagDeleteResponse
24
- from ...types.limits.tag_remove_response import TagRemoveResponse
25
- from ...types.limits.tag_update_response import TagUpdateResponse
26
-
27
- __all__ = ["TagsResource", "AsyncTagsResource"]
28
-
29
-
30
- class TagsResource(SyncAPIResource):
31
- @cached_property
32
- def with_raw_response(self) -> TagsResourceWithRawResponse:
33
- """
34
- This property can be used as a prefix for any HTTP method call to return
35
- the raw response object instead of the parsed content.
36
-
37
- For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
38
- """
39
- return TagsResourceWithRawResponse(self)
40
-
41
- @cached_property
42
- def with_streaming_response(self) -> TagsResourceWithStreamingResponse:
43
- """
44
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
45
-
46
- For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
47
- """
48
- return TagsResourceWithStreamingResponse(self)
49
-
50
- def create(
51
- self,
52
- limit_id: str,
53
- *,
54
- limit_tags: List[str],
55
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
56
- # The extra values given here take precedence over values defined on the client or passed to this method.
57
- extra_headers: Headers | None = None,
58
- extra_query: Query | None = None,
59
- extra_body: Body | None = None,
60
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61
- ) -> TagCreateResponse:
62
- """
63
- Add Limit Tags
64
-
65
- Args:
66
- limit_tags: List of limit tags
67
-
68
- extra_headers: Send extra headers
69
-
70
- extra_query: Add additional query parameters to the request
71
-
72
- extra_body: Add additional JSON properties to the request
73
-
74
- timeout: Override the client-level default timeout for this request, in seconds
75
- """
76
- if not limit_id:
77
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
78
- return self._post(
79
- f"/api/v1/limits/{limit_id}/tags",
80
- body=maybe_transform({"limit_tags": limit_tags}, tag_create_params.TagCreateParams),
81
- options=make_request_options(
82
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
83
- ),
84
- cast_to=TagCreateResponse,
85
- )
86
-
87
- def update(
88
- self,
89
- limit_id: str,
90
- *,
91
- limit_tags: List[str],
92
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
93
- # The extra values given here take precedence over values defined on the client or passed to this method.
94
- extra_headers: Headers | None = None,
95
- extra_query: Query | None = None,
96
- extra_body: Body | None = None,
97
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
98
- ) -> TagUpdateResponse:
99
- """
100
- Update the Limit Tags
101
-
102
- Args:
103
- limit_tags: List of limit tags
104
-
105
- extra_headers: Send extra headers
106
-
107
- extra_query: Add additional query parameters to the request
108
-
109
- extra_body: Add additional JSON properties to the request
110
-
111
- timeout: Override the client-level default timeout for this request, in seconds
112
- """
113
- if not limit_id:
114
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
115
- return self._put(
116
- f"/api/v1/limits/{limit_id}/tags",
117
- body=maybe_transform({"limit_tags": limit_tags}, tag_update_params.TagUpdateParams),
118
- options=make_request_options(
119
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
120
- ),
121
- cast_to=TagUpdateResponse,
122
- )
123
-
124
- def list(
125
- self,
126
- limit_id: str,
127
- *,
128
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
129
- # The extra values given here take precedence over values defined on the client or passed to this method.
130
- extra_headers: Headers | None = None,
131
- extra_query: Query | None = None,
132
- extra_body: Body | None = None,
133
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
134
- ) -> TagListResponse:
135
- """
136
- Get Limit Tags
137
-
138
- Args:
139
- extra_headers: Send extra headers
140
-
141
- extra_query: Add additional query parameters to the request
142
-
143
- extra_body: Add additional JSON properties to the request
144
-
145
- timeout: Override the client-level default timeout for this request, in seconds
146
- """
147
- if not limit_id:
148
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
149
- return self._get(
150
- f"/api/v1/limits/{limit_id}/tags",
151
- options=make_request_options(
152
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
153
- ),
154
- cast_to=TagListResponse,
155
- )
156
-
157
- def delete(
158
- self,
159
- limit_id: str,
160
- *,
161
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
162
- # The extra values given here take precedence over values defined on the client or passed to this method.
163
- extra_headers: Headers | None = None,
164
- extra_query: Query | None = None,
165
- extra_body: Body | None = None,
166
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
167
- ) -> TagDeleteResponse:
168
- """
169
- Delete all Tags from Limit
170
-
171
- Args:
172
- extra_headers: Send extra headers
173
-
174
- extra_query: Add additional query parameters to the request
175
-
176
- extra_body: Add additional JSON properties to the request
177
-
178
- timeout: Override the client-level default timeout for this request, in seconds
179
- """
180
- if not limit_id:
181
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
182
- return self._delete(
183
- f"/api/v1/limits/{limit_id}/tags",
184
- options=make_request_options(
185
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
186
- ),
187
- cast_to=TagDeleteResponse,
188
- )
189
-
190
- def remove(
191
- self,
192
- limit_id: str,
193
- *,
194
- limit_tags: List[str],
195
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
196
- # The extra values given here take precedence over values defined on the client or passed to this method.
197
- extra_headers: Headers | None = None,
198
- extra_query: Query | None = None,
199
- extra_body: Body | None = None,
200
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
201
- ) -> TagRemoveResponse:
202
- """
203
- Remove Tags from Limit
204
-
205
- Args:
206
- limit_tags: List of limit tags
207
-
208
- extra_headers: Send extra headers
209
-
210
- extra_query: Add additional query parameters to the request
211
-
212
- extra_body: Add additional JSON properties to the request
213
-
214
- timeout: Override the client-level default timeout for this request, in seconds
215
- """
216
- if not limit_id:
217
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
218
- return self._patch(
219
- f"/api/v1/limits/{limit_id}/tags/remove",
220
- body=maybe_transform({"limit_tags": limit_tags}, tag_remove_params.TagRemoveParams),
221
- options=make_request_options(
222
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
223
- ),
224
- cast_to=TagRemoveResponse,
225
- )
226
-
227
-
228
- class AsyncTagsResource(AsyncAPIResource):
229
- @cached_property
230
- def with_raw_response(self) -> AsyncTagsResourceWithRawResponse:
231
- """
232
- This property can be used as a prefix for any HTTP method call to return
233
- the raw response object instead of the parsed content.
234
-
235
- For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
236
- """
237
- return AsyncTagsResourceWithRawResponse(self)
238
-
239
- @cached_property
240
- def with_streaming_response(self) -> AsyncTagsResourceWithStreamingResponse:
241
- """
242
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
243
-
244
- For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
245
- """
246
- return AsyncTagsResourceWithStreamingResponse(self)
247
-
248
- async def create(
249
- self,
250
- limit_id: str,
251
- *,
252
- limit_tags: List[str],
253
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254
- # The extra values given here take precedence over values defined on the client or passed to this method.
255
- extra_headers: Headers | None = None,
256
- extra_query: Query | None = None,
257
- extra_body: Body | None = None,
258
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
259
- ) -> TagCreateResponse:
260
- """
261
- Add Limit Tags
262
-
263
- Args:
264
- limit_tags: List of limit tags
265
-
266
- extra_headers: Send extra headers
267
-
268
- extra_query: Add additional query parameters to the request
269
-
270
- extra_body: Add additional JSON properties to the request
271
-
272
- timeout: Override the client-level default timeout for this request, in seconds
273
- """
274
- if not limit_id:
275
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
276
- return await self._post(
277
- f"/api/v1/limits/{limit_id}/tags",
278
- body=await async_maybe_transform({"limit_tags": limit_tags}, tag_create_params.TagCreateParams),
279
- options=make_request_options(
280
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
281
- ),
282
- cast_to=TagCreateResponse,
283
- )
284
-
285
- async def update(
286
- self,
287
- limit_id: str,
288
- *,
289
- limit_tags: List[str],
290
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
291
- # The extra values given here take precedence over values defined on the client or passed to this method.
292
- extra_headers: Headers | None = None,
293
- extra_query: Query | None = None,
294
- extra_body: Body | None = None,
295
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
296
- ) -> TagUpdateResponse:
297
- """
298
- Update the Limit Tags
299
-
300
- Args:
301
- limit_tags: List of limit tags
302
-
303
- extra_headers: Send extra headers
304
-
305
- extra_query: Add additional query parameters to the request
306
-
307
- extra_body: Add additional JSON properties to the request
308
-
309
- timeout: Override the client-level default timeout for this request, in seconds
310
- """
311
- if not limit_id:
312
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
313
- return await self._put(
314
- f"/api/v1/limits/{limit_id}/tags",
315
- body=await async_maybe_transform({"limit_tags": limit_tags}, tag_update_params.TagUpdateParams),
316
- options=make_request_options(
317
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
318
- ),
319
- cast_to=TagUpdateResponse,
320
- )
321
-
322
- async def list(
323
- self,
324
- limit_id: str,
325
- *,
326
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
327
- # The extra values given here take precedence over values defined on the client or passed to this method.
328
- extra_headers: Headers | None = None,
329
- extra_query: Query | None = None,
330
- extra_body: Body | None = None,
331
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
332
- ) -> TagListResponse:
333
- """
334
- Get Limit Tags
335
-
336
- Args:
337
- extra_headers: Send extra headers
338
-
339
- extra_query: Add additional query parameters to the request
340
-
341
- extra_body: Add additional JSON properties to the request
342
-
343
- timeout: Override the client-level default timeout for this request, in seconds
344
- """
345
- if not limit_id:
346
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
347
- return await self._get(
348
- f"/api/v1/limits/{limit_id}/tags",
349
- options=make_request_options(
350
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
351
- ),
352
- cast_to=TagListResponse,
353
- )
354
-
355
- async def delete(
356
- self,
357
- limit_id: str,
358
- *,
359
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
360
- # The extra values given here take precedence over values defined on the client or passed to this method.
361
- extra_headers: Headers | None = None,
362
- extra_query: Query | None = None,
363
- extra_body: Body | None = None,
364
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
365
- ) -> TagDeleteResponse:
366
- """
367
- Delete all Tags from Limit
368
-
369
- Args:
370
- extra_headers: Send extra headers
371
-
372
- extra_query: Add additional query parameters to the request
373
-
374
- extra_body: Add additional JSON properties to the request
375
-
376
- timeout: Override the client-level default timeout for this request, in seconds
377
- """
378
- if not limit_id:
379
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
380
- return await self._delete(
381
- f"/api/v1/limits/{limit_id}/tags",
382
- options=make_request_options(
383
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
384
- ),
385
- cast_to=TagDeleteResponse,
386
- )
387
-
388
- async def remove(
389
- self,
390
- limit_id: str,
391
- *,
392
- limit_tags: List[str],
393
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
394
- # The extra values given here take precedence over values defined on the client or passed to this method.
395
- extra_headers: Headers | None = None,
396
- extra_query: Query | None = None,
397
- extra_body: Body | None = None,
398
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
399
- ) -> TagRemoveResponse:
400
- """
401
- Remove Tags from Limit
402
-
403
- Args:
404
- limit_tags: List of limit tags
405
-
406
- extra_headers: Send extra headers
407
-
408
- extra_query: Add additional query parameters to the request
409
-
410
- extra_body: Add additional JSON properties to the request
411
-
412
- timeout: Override the client-level default timeout for this request, in seconds
413
- """
414
- if not limit_id:
415
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
416
- return await self._patch(
417
- f"/api/v1/limits/{limit_id}/tags/remove",
418
- body=await async_maybe_transform({"limit_tags": limit_tags}, tag_remove_params.TagRemoveParams),
419
- options=make_request_options(
420
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
421
- ),
422
- cast_to=TagRemoveResponse,
423
- )
424
-
425
-
426
- class TagsResourceWithRawResponse:
427
- def __init__(self, tags: TagsResource) -> None:
428
- self._tags = tags
429
-
430
- self.create = to_raw_response_wrapper(
431
- tags.create,
432
- )
433
- self.update = to_raw_response_wrapper(
434
- tags.update,
435
- )
436
- self.list = to_raw_response_wrapper(
437
- tags.list,
438
- )
439
- self.delete = to_raw_response_wrapper(
440
- tags.delete,
441
- )
442
- self.remove = to_raw_response_wrapper(
443
- tags.remove,
444
- )
445
-
446
-
447
- class AsyncTagsResourceWithRawResponse:
448
- def __init__(self, tags: AsyncTagsResource) -> None:
449
- self._tags = tags
450
-
451
- self.create = async_to_raw_response_wrapper(
452
- tags.create,
453
- )
454
- self.update = async_to_raw_response_wrapper(
455
- tags.update,
456
- )
457
- self.list = async_to_raw_response_wrapper(
458
- tags.list,
459
- )
460
- self.delete = async_to_raw_response_wrapper(
461
- tags.delete,
462
- )
463
- self.remove = async_to_raw_response_wrapper(
464
- tags.remove,
465
- )
466
-
467
-
468
- class TagsResourceWithStreamingResponse:
469
- def __init__(self, tags: TagsResource) -> None:
470
- self._tags = tags
471
-
472
- self.create = to_streamed_response_wrapper(
473
- tags.create,
474
- )
475
- self.update = to_streamed_response_wrapper(
476
- tags.update,
477
- )
478
- self.list = to_streamed_response_wrapper(
479
- tags.list,
480
- )
481
- self.delete = to_streamed_response_wrapper(
482
- tags.delete,
483
- )
484
- self.remove = to_streamed_response_wrapper(
485
- tags.remove,
486
- )
487
-
488
-
489
- class AsyncTagsResourceWithStreamingResponse:
490
- def __init__(self, tags: AsyncTagsResource) -> None:
491
- self._tags = tags
492
-
493
- self.create = async_to_streamed_response_wrapper(
494
- tags.create,
495
- )
496
- self.update = async_to_streamed_response_wrapper(
497
- tags.update,
498
- )
499
- self.list = async_to_streamed_response_wrapper(
500
- tags.list,
501
- )
502
- self.delete = async_to_streamed_response_wrapper(
503
- tags.delete,
504
- )
505
- self.remove = async_to_streamed_response_wrapper(
506
- tags.remove,
507
- )
@@ -1,21 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import List, Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["FixedCostResourceCreateParams"]
12
-
13
-
14
- class FixedCostResourceCreateParams(TypedDict, total=False):
15
- category: Required[str]
16
-
17
- units: Required[List[str]]
18
-
19
- cost_per_hour: float
20
-
21
- start_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
@@ -1,16 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
- from datetime import datetime
5
-
6
- from ..._models import BaseModel
7
-
8
- __all__ = ["LimitTags"]
9
-
10
-
11
- class LimitTags(BaseModel):
12
- created_on: Optional[datetime] = None
13
-
14
- tag_id: Optional[int] = None
15
-
16
- tag_name: Optional[str] = None
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import List
6
- from typing_extensions import Required, TypedDict
7
-
8
- __all__ = ["TagCreateParams"]
9
-
10
-
11
- class TagCreateParams(TypedDict, total=False):
12
- limit_tags: Required[List[str]]
13
- """List of limit tags"""
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
- from typing_extensions import TypeAlias
5
-
6
- from .limit_tags import LimitTags
7
-
8
- __all__ = ["TagCreateResponse"]
9
-
10
- TagCreateResponse: TypeAlias = List[LimitTags]
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
- from typing_extensions import TypeAlias
5
-
6
- from .limit_tags import LimitTags
7
-
8
- __all__ = ["TagListResponse"]
9
-
10
- TagListResponse: TypeAlias = List[LimitTags]
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
- from typing_extensions import TypeAlias
5
-
6
- from .limit_tags import LimitTags
7
-
8
- __all__ = ["TagRemoveResponse"]
9
-
10
- TagRemoveResponse: TypeAlias = List[LimitTags]
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import List
6
- from typing_extensions import Required, TypedDict
7
-
8
- __all__ = ["TagUpdateParams"]
9
-
10
-
11
- class TagUpdateParams(TypedDict, total=False):
12
- limit_tags: Required[List[str]]
13
- """List of limit tags"""
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
- from typing_extensions import TypeAlias
5
-
6
- from .limit_tags import LimitTags
7
-
8
- __all__ = ["TagUpdateResponse"]
9
-
10
- TagUpdateResponse: TypeAlias = List[LimitTags]