payi 0.1.0a130__py3-none-any.whl → 0.1.0a131__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.

Potentially problematic release.


This version of payi might be problematic. Click here for more details.

Files changed (32) hide show
  1. payi/_version.py +1 -1
  2. payi/resources/categories/categories.py +4 -0
  3. payi/resources/limits/__init__.py +14 -14
  4. payi/resources/limits/limits.py +26 -26
  5. payi/resources/limits/properties.py +171 -0
  6. payi/resources/requests/request_id/properties.py +2 -2
  7. payi/resources/requests/response_id/properties.py +2 -2
  8. payi/resources/use_cases/definitions/limit_config.py +6 -6
  9. payi/types/category_list_resources_params.py +5 -1
  10. payi/types/category_resource_response.py +1 -3
  11. payi/types/limit_create_params.py +3 -5
  12. payi/types/limit_list_response.py +1 -3
  13. payi/types/limit_response.py +1 -3
  14. payi/types/limits/__init__.py +2 -9
  15. payi/types/limits/property_update_params.py +12 -0
  16. payi/types/limits/{tag_remove_response.py → property_update_response.py} +3 -3
  17. payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +3 -3
  18. payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +3 -5
  19. payi/types/use_cases/definitions/limit_config_create_params.py +3 -5
  20. {payi-0.1.0a130.dist-info → payi-0.1.0a131.dist-info}/METADATA +1 -1
  21. {payi-0.1.0a130.dist-info → payi-0.1.0a131.dist-info}/RECORD +23 -30
  22. payi/resources/limits/tags.py +0 -505
  23. payi/types/limits/limit_tags.py +0 -16
  24. payi/types/limits/tag_create_params.py +0 -14
  25. payi/types/limits/tag_create_response.py +0 -10
  26. payi/types/limits/tag_delete_response.py +0 -10
  27. payi/types/limits/tag_list_response.py +0 -10
  28. payi/types/limits/tag_remove_params.py +0 -14
  29. payi/types/limits/tag_update_params.py +0 -14
  30. payi/types/limits/tag_update_response.py +0 -10
  31. {payi-0.1.0a130.dist-info → payi-0.1.0a131.dist-info}/WHEEL +0 -0
  32. {payi-0.1.0a130.dist-info → payi-0.1.0a131.dist-info}/licenses/LICENSE +0 -0
@@ -2,19 +2,17 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
5
+ from typing import Dict, Optional
6
6
  from typing_extensions import Literal, Required, TypedDict
7
7
 
8
- from ...._types import SequenceNotStr
9
-
10
8
  __all__ = ["LimitConfigCreateParams"]
11
9
 
12
10
 
13
11
  class LimitConfigCreateParams(TypedDict, total=False):
14
12
  max: Required[float]
15
13
 
16
- limit_tags: Optional[SequenceNotStr[str]]
17
-
18
14
  limit_type: Literal["block", "allow"]
19
15
 
16
+ properties: Optional[Dict[str, Optional[str]]]
17
+
20
18
  threshold: Optional[float]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a130
3
+ Version: 0.1.0a131
4
4
  Summary: The official Python library for the payi API
5
5
  Project-URL: Homepage, https://github.com/Pay-i/pay-i-python
6
6
  Project-URL: Repository, https://github.com/Pay-i/pay-i-python
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
11
11
  payi/_response.py,sha256=rh9oJAvCKcPwQFm4iqH_iVrmK8bNx--YP_A2a4kN1OU,28776
12
12
  payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
13
13
  payi/_types.py,sha256=d6xrZDG6rG6opphTN7UVYdEOis3977LrQQgpNtklXZE,7234
14
- payi/_version.py,sha256=oOZxt-ZmbbOeNqBfijXj6bdvp-JejoP19SGNozfo0vM,166
14
+ payi/_version.py,sha256=gHwBI1J0s3MyJNIie3TzlYJMyjw5vqHIzmKBO3sbwa8,166
15
15
  payi/pagination.py,sha256=k2356QGPOUSjRF2vHpwLBdF6P-2vnQzFfRIJQAHGQ7A,1258
16
16
  payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  payi/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
@@ -41,19 +41,19 @@ payi/lib/data/cohere_embed_english_v3.json,sha256=YEWwjml3_i16cdsOx_7UKe6xpVFnxT
41
41
  payi/resources/__init__.py,sha256=B2bn1ZfCf6TbHlzZvy5TpFPtALnFcBRPYVKQH3S5qfQ,2457
42
42
  payi/resources/ingest.py,sha256=x09Tu4jj4zVYpjXv-JTA_LJGW25B8VuRnHd-ooRpQHE,21952
43
43
  payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
44
- payi/resources/categories/categories.py,sha256=aMSXiMWaYX4oLg1BcRGgktFbZWIkCXiFwu-u5V1Mdj4,19102
44
+ payi/resources/categories/categories.py,sha256=XqEQfCqeWKKsaiXY1AuSNOFcR9TVp9T33j8lznnA_SI,19258
45
45
  payi/resources/categories/resources.py,sha256=n3rAfpG7o3ripz-YC8fvQ_MXzoVERX8xEplLkHVN6V8,20021
46
- payi/resources/limits/__init__.py,sha256=URXh9vglDH-dqbVGk-XcrDa8H5Bg2pgFuVQQecgEtaA,976
47
- payi/resources/limits/limits.py,sha256=FxvtOKjFIrmyPLGukjhXoQ-chHWjXLed4i3WHYGPMIU,25040
48
- payi/resources/limits/tags.py,sha256=M3V9IVUliD9G48dvnv8MPMDKdI2_bpW6blKSFDtlAEQ,19015
46
+ payi/resources/limits/__init__.py,sha256=P_uFMbQ6AT1F_FI10EqrZl3n4IgSz-l3QjV4kZQqaOg,1054
47
+ payi/resources/limits/limits.py,sha256=C9wtYxl2te-QPIo1_bAFKcdVk3vSGhNDX0UgnnF9aZQ,25214
48
+ payi/resources/limits/properties.py,sha256=kmUuMZggOdM_vAN5t7kw2cWFm33hT_gJBx4LKZtvKd4,6475
49
49
  payi/resources/requests/__init__.py,sha256=L86SkNRyb9oySva7oQu6rMwBRUnctb4grtDSRN3T9_g,1571
50
50
  payi/resources/requests/requests.py,sha256=Mkyy-Iv7dZ-uKLMBm4eZdwHwm4ZKdF6O7W9QY53YcTo,4972
51
51
  payi/resources/requests/request_id/__init__.py,sha256=DMatPoq_k3AF_qutMg7_HjGfup6Z90YQarTiKuUQhZc,1544
52
- payi/resources/requests/request_id/properties.py,sha256=huUnbg4N9uF4zl6a6ay_c36fDT_02txpVIGQXJPVN54,6495
52
+ payi/resources/requests/request_id/properties.py,sha256=WzhT9a-luyKWX-CPCeI66tMBMdx-nNSNpVBoHgUXlqs,6499
53
53
  payi/resources/requests/request_id/request_id.py,sha256=TiZq8OvUPm8RHgOhnkt4VpUjYczi-7z4-ZT7im3nhj8,4902
54
54
  payi/resources/requests/request_id/result.py,sha256=uKJGqBmUrfKgNDCV6NJ5K14yMBuTNAaPqYpGTbzrvJ4,5838
55
55
  payi/resources/requests/response_id/__init__.py,sha256=Cg0v31KBriuwMO0r_4DguinMbOw80ALAYlFaMET4fdY,1557
56
- payi/resources/requests/response_id/properties.py,sha256=m8uNNCWtp2cDYxzvsBu5tNv4GabDnPJ3sVxNKbuMhYo,6994
56
+ payi/resources/requests/response_id/properties.py,sha256=Arvtvor6HjibP7SNn-fkDaLGvH0Wn5yJcoID3Cr8yVo,6998
57
57
  payi/resources/requests/response_id/response_id.py,sha256=PR2bLNJdMlgt3qjLBtnpyXrydZVd8dFUvRLC3W5WcJk,4942
58
58
  payi/resources/requests/response_id/result.py,sha256=lEg3ufP4xAZ6wm0bXgcOMlcu8kA08F7koEtcqYQ7lFU,6336
59
59
  payi/resources/use_cases/__init__.py,sha256=ckXPaVoPQmGESfgQF_ySP_eGskI6T4bJjPKoEGyo2gI,2020
@@ -63,15 +63,15 @@ payi/resources/use_cases/use_cases.py,sha256=VKOfN53jMqYgfabFaboOGwSXE1FDIuwHlD9
63
63
  payi/resources/use_cases/definitions/__init__.py,sha256=pImtiVUbgsm6PkMJ0NPkrhQj8kEi36db-LF5rJukmMY,2020
64
64
  payi/resources/use_cases/definitions/definitions.py,sha256=QgpsAQdf4LsJjB4sLNG9rxLD1z0ThmBoQcgJHUE6Ggw,24410
65
65
  payi/resources/use_cases/definitions/kpis.py,sha256=Dytw3XOsmmxjp1UO6To4aiumbXBuPptENkDEDX4SGhM,22490
66
- payi/resources/use_cases/definitions/limit_config.py,sha256=OTOQmTbb7YaAeDg5YOtde-aCYzbdYZgqu0GCpbk4fZA,10571
66
+ payi/resources/use_cases/definitions/limit_config.py,sha256=OeKezVkfkmROvaHvvdbO-czb4Y2YS-0z9hi7nZO8oqU,10571
67
67
  payi/resources/use_cases/definitions/version.py,sha256=fb4n_UJrCT_8SRlBbN9j0ymkkeOCvDS2I08KQXmWGfg,6013
68
68
  payi/types/__init__.py,sha256=ec6dizDu-5dCRqVmMCo5gCtVRRXfQKkF6OSDWe8J_Ds,2529
69
69
  payi/types/bulk_ingest_response.py,sha256=g-5AYEgEiVMRnZFR2pQt1azN8oW2Ca1V7F_iKJZazdQ,609
70
70
  payi/types/category_delete_resource_response.py,sha256=PLz4wZA1XMpS9SUYB_j4hEw5EoZ0VVE9Ll-MQ26SAfc,339
71
71
  payi/types/category_delete_response.py,sha256=exq8rNDGoq2-YN528V8osdcmuptJ-k63rmCvPMm6hLA,323
72
72
  payi/types/category_list_params.py,sha256=hHe6LRxl8CGykRj4F4-eW_z5d5PxP3YzY0m7qtiM5jY,307
73
- payi/types/category_list_resources_params.py,sha256=Od65gihJCHdJWti1jdjUMp5l0vOvZb1PR50v9IQ4Mkk,325
74
- payi/types/category_resource_response.py,sha256=te8e05MirXmcXmCwsT7DgP71yiKgGSDzNZWTDyQ3x9Y,1528
73
+ payi/types/category_list_resources_params.py,sha256=e4tifpq4eAkFJotSjqCJgMsx5lJ4F-_9ASD2L_cNUlY,430
74
+ payi/types/category_resource_response.py,sha256=0zbiwxZMglaGo-KoK0yyad_kTV0zn79iZIEQnaijEqc,1454
75
75
  payi/types/category_response.py,sha256=dlvHaKJlcGm936aduRIMxJXHapPGo4Rfs9ObIYkP4Yc,206
76
76
  payi/types/cost_data.py,sha256=KXGLnqOKxS0q8yT9eRhdQHyGMSAcuukCHWcWZC1A6Fk,487
77
77
  payi/types/cost_details.py,sha256=3ldvnYILAG6Sz9wGWMs1SZvIfdGEbn5i4-CauWEXMPA,265
@@ -80,12 +80,12 @@ payi/types/ingest_bulk_params.py,sha256=A-IRb39d2tmVzEQqrvhlF_3si-9ufHBKYLlvdXup
80
80
  payi/types/ingest_event_param.py,sha256=FV9fAfba3961CEVE4gN1zt4w2jecvl79qSDK5-FQ22s,2005
81
81
  payi/types/ingest_response.py,sha256=JwcZ6OL793uXTuDmZAzkzhGcdtDsSXfSy_ERjzc7MZY,378
82
82
  payi/types/ingest_units_params.py,sha256=IGiInZBrw7zY_K652lvZys73aIQnRu14FBDZ6ihq3bQ,2586
83
- payi/types/limit_create_params.py,sha256=q6kIEcRLde0b5-tsoeaLcBNPyIAwXoVsUZnDXjEoZio,538
83
+ payi/types/limit_create_params.py,sha256=kBNQdG_YjK1Yj7oP6uNI8FO4pH6jOlqkXcr3q19H7TU,512
84
84
  payi/types/limit_history_response.py,sha256=vJnVVa5BROfYHRPvpfymcOabjDhcJtFowQF-L-apNgw,770
85
85
  payi/types/limit_list_params.py,sha256=OYlK0anDA5G71FfwrMDzhEX4S5AlASLRiR0tmyD9tTU,322
86
- payi/types/limit_list_response.py,sha256=8UMtHrO38HqOkn8qAC9R90N902VVRZrZYp0C7fPEX1g,622
86
+ payi/types/limit_list_response.py,sha256=pL7MmVifDtTh61VtD83oJue7Ntqbf7neI86MKpdipnI,572
87
87
  payi/types/limit_reset_params.py,sha256=vgqImSM89pRYY0Z2RNrJuQ6WeDX72ZPg3GWpL9EVEKs,476
88
- payi/types/limit_response.py,sha256=OmoFlpz_6s9YhDM_3RxXjmYaaYJG0VCWu-lqqyfMa-k,722
88
+ payi/types/limit_response.py,sha256=tYrT3PrqozNxzBtfEQXwko2drr1znSXfc4KBqlNfUwA,672
89
89
  payi/types/limit_update_params.py,sha256=crY4w75FWcEXbzysq1rPfD37qR5PTy_dwVRY4C_-T1w,331
90
90
  payi/types/pay_i_common_models_api_router_header_info_param.py,sha256=91djoPLmoaMWTQOXv9-Ox24dWIrM2hudrRQTCqZpX4c,381
91
91
  payi/types/request_result.py,sha256=mD0akFmhrAqCFZwo-ampDuBH7cK5Y6GOmQm7vT-WIwE,261
@@ -95,16 +95,9 @@ payi/types/use_case_instance_response.py,sha256=khdcmoU1L8djNVYLu4rSmWkaceZmGwkE
95
95
  payi/types/categories/__init__.py,sha256=hlu-e4w8iudVia3FayAnlNefJ3kNHFeGvpN0-_DUDrU,279
96
96
  payi/types/categories/resource_create_params.py,sha256=HVzUWhvmUhVu9h70DmUrBPUcO-g2VUIc5cg0sxbG3fs,745
97
97
  payi/types/categories/resource_list_params.py,sha256=Odl3nWHPyJuOhzSseypyOGZhw1T1fgnW1Fk4oyn9qkg,452
98
- payi/types/limits/__init__.py,sha256=yohSla0l53OaxH9WdwaU1crY1FvzM3H6IRg20LUr-MU,722
99
- payi/types/limits/limit_tags.py,sha256=O9I9IC7IkFBYRbiUWb4XXmIuXoHUlRLjW_4fbEF50Aw,346
100
- payi/types/limits/tag_create_params.py,sha256=USZzGNg3hHO8itcio9nCoE3BzF5DEeE6iuq6xh6Krqc,366
101
- payi/types/limits/tag_create_response.py,sha256=ZBU5vjGQQnsz5twkAs102TwXaZgRv9Z1nmvPHVYDTAY,267
102
- payi/types/limits/tag_delete_response.py,sha256=CzkcQxggdAjakAPC1JqjK2L6h6YGxwnWU3bKRjkAfeM,267
103
- payi/types/limits/tag_list_response.py,sha256=64Au13HA8Woch4gAgMb-XEd7Q9InJy9xdo9xPZyGxY4,263
104
- payi/types/limits/tag_remove_params.py,sha256=rj4nF8a9SNJnKVeMxaSnW3XtjwVTzR-Fmgekh5IdjnM,366
105
- payi/types/limits/tag_remove_response.py,sha256=R-e-um-W1aqq8sEmTtnPMCDLGVRUmm5pVAvLCkgDVHI,267
106
- payi/types/limits/tag_update_params.py,sha256=xSmnOllFClguwTQ7FzHmuJiR4y339MlgpPwWi2Y_NgU,366
107
- payi/types/limits/tag_update_response.py,sha256=xLa4aU4eVhNmIaQTsCyEDjx1vatBACFiJCwZOWLfrig,267
98
+ payi/types/limits/__init__.py,sha256=Y0iMWCSSKyF45RTCx73nnXGJTJpM18mfBxiRgomagXw,291
99
+ payi/types/limits/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
100
+ payi/types/limits/property_update_response.py,sha256=OBijI2R3DwujMoGtwCeph45xqFpk_iYqmP-QceSA76Q,290
108
101
  payi/types/requests/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
109
102
  payi/types/requests/request_id/__init__.py,sha256=mWsqHCigEDLIrgH0MlIc2KV3j1npHcb-QyGy4Tvu5p0,204
110
103
  payi/types/requests/request_id/property_update_params.py,sha256=nWa3NRZS_3xDCFHehyX9OhQ7noDRvuD_J-SYvRacUus,348
@@ -115,14 +108,14 @@ payi/types/shared/api_error.py,sha256=LLPNrPR5HhTPg4Yvi9DGl5QV0pfn7SV8eDrDdBvWUY
115
108
  payi/types/shared/evaluation_response.py,sha256=ejEToMA57PUu1SldEtJ5z9r4fAO3U0tvdjbsyIoVX1s,214
116
109
  payi/types/shared/ingest_units.py,sha256=lehu0ICBECr-v0tF-HB-rRh0LoKGZh2D_Z2pVxD9cqA,274
117
110
  payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py,sha256=o8Szm4uiTnyZuW7D4rM5rzAAj6iAeSOA5gVMlMYfpmc,267
118
- payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py,sha256=FDFCOvxG7Dep7oELqQATc_YWrRZ-Uh9WOpL2ZKPDQ6Q,482
111
+ payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py,sha256=H0hxdEYrsGp9QwFutGmPIH3j9GRf_c305yMkTpokEIg,497
119
112
  payi/types/shared/properties_request.py,sha256=EeKHCy20XThmzLozH55_WId7jFvsn8enzSjyI1sJTZw,267
120
113
  payi/types/shared/properties_response.py,sha256=HpFNtxl_OjoMCs24xPVZLKe3FwCVcNkcRs0LsQKLrHM,259
121
114
  payi/types/shared/xproxy_error.py,sha256=I8dsEHZF_0dM-1YvZ6_mysRJuNlWJrQIHacs9yRaZCM,274
122
115
  payi/types/shared/xproxy_result.py,sha256=gVIHPAgcmwOYJizXHCru8LJ1yxixPv3sL9T_3-86yI4,1428
123
116
  payi/types/shared_params/__init__.py,sha256=dRGuNTZWLagRlbQfl5tKc0JMEYNRVXUad5oyl7IFeIU,317
124
117
  payi/types/shared_params/ingest_units.py,sha256=ueGIq14EQRGIDQlIHCCParrDxh1TZ_Hjfx2GP3_19yA,267
125
- payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py,sha256=LRDd9ORvHlVpe2a_5iDPl_7-WMxeYci11tCCpZ8NgOU,539
118
+ payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py,sha256=ej5bUZc9GgaMHNYphOFWJN32BkG5YrcCtIb6T2EjqoQ,512
126
119
  payi/types/use_cases/__init__.py,sha256=etITqrdbGF_cdY2CSF0xq1Be9LFdUeQtZXNg_uJEfeM,723
127
120
  payi/types/use_cases/definition_create_params.py,sha256=8Z48UFbJq0nohT0rG64-3Js9nadWNDMoeVUTXn4PLp4,597
128
121
  payi/types/use_cases/definition_list_params.py,sha256=8lVZQPafxHSAULib1RcjRJh82POL9zKKHMHn2r_l31I,335
@@ -141,8 +134,8 @@ payi/types/use_cases/definitions/kpi_list_response.py,sha256=VHhwSjzyO1wsLhceL7E
141
134
  payi/types/use_cases/definitions/kpi_retrieve_response.py,sha256=uQXliSvS3k-yDYwEcv6otPycNKHXLwvpkKM0W2nsXys,463
142
135
  payi/types/use_cases/definitions/kpi_update_params.py,sha256=jbawdWAdMnsTWVH0qfQGb8W7_TXe3lq4zjSRu44d8p8,373
143
136
  payi/types/use_cases/definitions/kpi_update_response.py,sha256=zLyEoT0S8d7XHsnXZYT8tM7yDw0Aze0Mk-_Z6QeMtc8,459
144
- payi/types/use_cases/definitions/limit_config_create_params.py,sha256=sodtLT84tBmuO_0d-h0CZWCh4vWojJMtUbMjBmEN3IE,492
145
- payi-0.1.0a130.dist-info/METADATA,sha256=kfclTJm2U3QORdJo66yZEg9PLdca_xtLrIBlZyQFfCg,16324
146
- payi-0.1.0a130.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
147
- payi-0.1.0a130.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
148
- payi-0.1.0a130.dist-info/RECORD,,
137
+ payi/types/use_cases/definitions/limit_config_create_params.py,sha256=Y6RR7IYiTZHYJ4y6m2TmlAe4ArtbjEl7fIrAhnCvuPI,464
138
+ payi-0.1.0a131.dist-info/METADATA,sha256=ulfs0b57VWAzdENKtCsFhvpb4Y7KfBxm6nQVLfPlc54,16324
139
+ payi-0.1.0a131.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
140
+ payi-0.1.0a131.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
141
+ payi-0.1.0a131.dist-info/RECORD,,
@@ -1,505 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from ..._types import Body, Query, Headers, NotGiven, SequenceNotStr, not_given
8
- from ..._utils import maybe_transform, async_maybe_transform
9
- from ..._compat import cached_property
10
- from ..._resource import SyncAPIResource, AsyncAPIResource
11
- from ..._response import (
12
- to_raw_response_wrapper,
13
- to_streamed_response_wrapper,
14
- async_to_raw_response_wrapper,
15
- async_to_streamed_response_wrapper,
16
- )
17
- from ..._base_client import make_request_options
18
- from ...types.limits import tag_create_params, tag_remove_params, tag_update_params
19
- from ...types.limits.tag_list_response import TagListResponse
20
- from ...types.limits.tag_create_response import TagCreateResponse
21
- from ...types.limits.tag_delete_response import TagDeleteResponse
22
- from ...types.limits.tag_remove_response import TagRemoveResponse
23
- from ...types.limits.tag_update_response import TagUpdateResponse
24
-
25
- __all__ = ["TagsResource", "AsyncTagsResource"]
26
-
27
-
28
- class TagsResource(SyncAPIResource):
29
- @cached_property
30
- def with_raw_response(self) -> TagsResourceWithRawResponse:
31
- """
32
- This property can be used as a prefix for any HTTP method call to return
33
- the raw response object instead of the parsed content.
34
-
35
- For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
36
- """
37
- return TagsResourceWithRawResponse(self)
38
-
39
- @cached_property
40
- def with_streaming_response(self) -> TagsResourceWithStreamingResponse:
41
- """
42
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
43
-
44
- For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
45
- """
46
- return TagsResourceWithStreamingResponse(self)
47
-
48
- def create(
49
- self,
50
- limit_id: str,
51
- *,
52
- limit_tags: SequenceNotStr[str],
53
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
- # The extra values given here take precedence over values defined on the client or passed to this method.
55
- extra_headers: Headers | None = None,
56
- extra_query: Query | None = None,
57
- extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
- ) -> TagCreateResponse:
60
- """
61
- Add Limit Tags
62
-
63
- Args:
64
- limit_tags: List of limit tags
65
-
66
- extra_headers: Send extra headers
67
-
68
- extra_query: Add additional query parameters to the request
69
-
70
- extra_body: Add additional JSON properties to the request
71
-
72
- timeout: Override the client-level default timeout for this request, in seconds
73
- """
74
- if not limit_id:
75
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
76
- return self._post(
77
- f"/api/v1/limits/{limit_id}/tags",
78
- body=maybe_transform({"limit_tags": limit_tags}, tag_create_params.TagCreateParams),
79
- options=make_request_options(
80
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
81
- ),
82
- cast_to=TagCreateResponse,
83
- )
84
-
85
- def update(
86
- self,
87
- limit_id: str,
88
- *,
89
- limit_tags: SequenceNotStr[str],
90
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
91
- # The extra values given here take precedence over values defined on the client or passed to this method.
92
- extra_headers: Headers | None = None,
93
- extra_query: Query | None = None,
94
- extra_body: Body | None = None,
95
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
96
- ) -> TagUpdateResponse:
97
- """
98
- Update the Limit Tags
99
-
100
- Args:
101
- limit_tags: List of limit tags
102
-
103
- extra_headers: Send extra headers
104
-
105
- extra_query: Add additional query parameters to the request
106
-
107
- extra_body: Add additional JSON properties to the request
108
-
109
- timeout: Override the client-level default timeout for this request, in seconds
110
- """
111
- if not limit_id:
112
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
113
- return self._put(
114
- f"/api/v1/limits/{limit_id}/tags",
115
- body=maybe_transform({"limit_tags": limit_tags}, tag_update_params.TagUpdateParams),
116
- options=make_request_options(
117
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
118
- ),
119
- cast_to=TagUpdateResponse,
120
- )
121
-
122
- def list(
123
- self,
124
- limit_id: str,
125
- *,
126
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
127
- # The extra values given here take precedence over values defined on the client or passed to this method.
128
- extra_headers: Headers | None = None,
129
- extra_query: Query | None = None,
130
- extra_body: Body | None = None,
131
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
132
- ) -> TagListResponse:
133
- """
134
- Get Limit Tags
135
-
136
- Args:
137
- extra_headers: Send extra headers
138
-
139
- extra_query: Add additional query parameters to the request
140
-
141
- extra_body: Add additional JSON properties to the request
142
-
143
- timeout: Override the client-level default timeout for this request, in seconds
144
- """
145
- if not limit_id:
146
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
147
- return self._get(
148
- f"/api/v1/limits/{limit_id}/tags",
149
- options=make_request_options(
150
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
151
- ),
152
- cast_to=TagListResponse,
153
- )
154
-
155
- def delete(
156
- self,
157
- limit_id: str,
158
- *,
159
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
160
- # The extra values given here take precedence over values defined on the client or passed to this method.
161
- extra_headers: Headers | None = None,
162
- extra_query: Query | None = None,
163
- extra_body: Body | None = None,
164
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
165
- ) -> TagDeleteResponse:
166
- """
167
- Delete all Tags from Limit
168
-
169
- Args:
170
- extra_headers: Send extra headers
171
-
172
- extra_query: Add additional query parameters to the request
173
-
174
- extra_body: Add additional JSON properties to the request
175
-
176
- timeout: Override the client-level default timeout for this request, in seconds
177
- """
178
- if not limit_id:
179
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
180
- return self._delete(
181
- f"/api/v1/limits/{limit_id}/tags",
182
- options=make_request_options(
183
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
184
- ),
185
- cast_to=TagDeleteResponse,
186
- )
187
-
188
- def remove(
189
- self,
190
- limit_id: str,
191
- *,
192
- limit_tags: SequenceNotStr[str],
193
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
194
- # The extra values given here take precedence over values defined on the client or passed to this method.
195
- extra_headers: Headers | None = None,
196
- extra_query: Query | None = None,
197
- extra_body: Body | None = None,
198
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
199
- ) -> TagRemoveResponse:
200
- """
201
- Remove Tags from Limit
202
-
203
- Args:
204
- limit_tags: List of limit tags
205
-
206
- extra_headers: Send extra headers
207
-
208
- extra_query: Add additional query parameters to the request
209
-
210
- extra_body: Add additional JSON properties to the request
211
-
212
- timeout: Override the client-level default timeout for this request, in seconds
213
- """
214
- if not limit_id:
215
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
216
- return self._patch(
217
- f"/api/v1/limits/{limit_id}/tags/remove",
218
- body=maybe_transform({"limit_tags": limit_tags}, tag_remove_params.TagRemoveParams),
219
- options=make_request_options(
220
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
221
- ),
222
- cast_to=TagRemoveResponse,
223
- )
224
-
225
-
226
- class AsyncTagsResource(AsyncAPIResource):
227
- @cached_property
228
- def with_raw_response(self) -> AsyncTagsResourceWithRawResponse:
229
- """
230
- This property can be used as a prefix for any HTTP method call to return
231
- the raw response object instead of the parsed content.
232
-
233
- For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
234
- """
235
- return AsyncTagsResourceWithRawResponse(self)
236
-
237
- @cached_property
238
- def with_streaming_response(self) -> AsyncTagsResourceWithStreamingResponse:
239
- """
240
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
241
-
242
- For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
243
- """
244
- return AsyncTagsResourceWithStreamingResponse(self)
245
-
246
- async def create(
247
- self,
248
- limit_id: str,
249
- *,
250
- limit_tags: SequenceNotStr[str],
251
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
252
- # The extra values given here take precedence over values defined on the client or passed to this method.
253
- extra_headers: Headers | None = None,
254
- extra_query: Query | None = None,
255
- extra_body: Body | None = None,
256
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
257
- ) -> TagCreateResponse:
258
- """
259
- Add Limit Tags
260
-
261
- Args:
262
- limit_tags: List of limit tags
263
-
264
- extra_headers: Send extra headers
265
-
266
- extra_query: Add additional query parameters to the request
267
-
268
- extra_body: Add additional JSON properties to the request
269
-
270
- timeout: Override the client-level default timeout for this request, in seconds
271
- """
272
- if not limit_id:
273
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
274
- return await self._post(
275
- f"/api/v1/limits/{limit_id}/tags",
276
- body=await async_maybe_transform({"limit_tags": limit_tags}, tag_create_params.TagCreateParams),
277
- options=make_request_options(
278
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
279
- ),
280
- cast_to=TagCreateResponse,
281
- )
282
-
283
- async def update(
284
- self,
285
- limit_id: str,
286
- *,
287
- limit_tags: SequenceNotStr[str],
288
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
289
- # The extra values given here take precedence over values defined on the client or passed to this method.
290
- extra_headers: Headers | None = None,
291
- extra_query: Query | None = None,
292
- extra_body: Body | None = None,
293
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
294
- ) -> TagUpdateResponse:
295
- """
296
- Update the Limit Tags
297
-
298
- Args:
299
- limit_tags: List of limit tags
300
-
301
- extra_headers: Send extra headers
302
-
303
- extra_query: Add additional query parameters to the request
304
-
305
- extra_body: Add additional JSON properties to the request
306
-
307
- timeout: Override the client-level default timeout for this request, in seconds
308
- """
309
- if not limit_id:
310
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
311
- return await self._put(
312
- f"/api/v1/limits/{limit_id}/tags",
313
- body=await async_maybe_transform({"limit_tags": limit_tags}, tag_update_params.TagUpdateParams),
314
- options=make_request_options(
315
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
316
- ),
317
- cast_to=TagUpdateResponse,
318
- )
319
-
320
- async def list(
321
- self,
322
- limit_id: str,
323
- *,
324
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
325
- # The extra values given here take precedence over values defined on the client or passed to this method.
326
- extra_headers: Headers | None = None,
327
- extra_query: Query | None = None,
328
- extra_body: Body | None = None,
329
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
330
- ) -> TagListResponse:
331
- """
332
- Get Limit Tags
333
-
334
- Args:
335
- extra_headers: Send extra headers
336
-
337
- extra_query: Add additional query parameters to the request
338
-
339
- extra_body: Add additional JSON properties to the request
340
-
341
- timeout: Override the client-level default timeout for this request, in seconds
342
- """
343
- if not limit_id:
344
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
345
- return await self._get(
346
- f"/api/v1/limits/{limit_id}/tags",
347
- options=make_request_options(
348
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
349
- ),
350
- cast_to=TagListResponse,
351
- )
352
-
353
- async def delete(
354
- self,
355
- limit_id: str,
356
- *,
357
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
358
- # The extra values given here take precedence over values defined on the client or passed to this method.
359
- extra_headers: Headers | None = None,
360
- extra_query: Query | None = None,
361
- extra_body: Body | None = None,
362
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
363
- ) -> TagDeleteResponse:
364
- """
365
- Delete all Tags from Limit
366
-
367
- Args:
368
- extra_headers: Send extra headers
369
-
370
- extra_query: Add additional query parameters to the request
371
-
372
- extra_body: Add additional JSON properties to the request
373
-
374
- timeout: Override the client-level default timeout for this request, in seconds
375
- """
376
- if not limit_id:
377
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
378
- return await self._delete(
379
- f"/api/v1/limits/{limit_id}/tags",
380
- options=make_request_options(
381
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
382
- ),
383
- cast_to=TagDeleteResponse,
384
- )
385
-
386
- async def remove(
387
- self,
388
- limit_id: str,
389
- *,
390
- limit_tags: SequenceNotStr[str],
391
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
392
- # The extra values given here take precedence over values defined on the client or passed to this method.
393
- extra_headers: Headers | None = None,
394
- extra_query: Query | None = None,
395
- extra_body: Body | None = None,
396
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
397
- ) -> TagRemoveResponse:
398
- """
399
- Remove Tags from Limit
400
-
401
- Args:
402
- limit_tags: List of limit tags
403
-
404
- extra_headers: Send extra headers
405
-
406
- extra_query: Add additional query parameters to the request
407
-
408
- extra_body: Add additional JSON properties to the request
409
-
410
- timeout: Override the client-level default timeout for this request, in seconds
411
- """
412
- if not limit_id:
413
- raise ValueError(f"Expected a non-empty value for `limit_id` but received {limit_id!r}")
414
- return await self._patch(
415
- f"/api/v1/limits/{limit_id}/tags/remove",
416
- body=await async_maybe_transform({"limit_tags": limit_tags}, tag_remove_params.TagRemoveParams),
417
- options=make_request_options(
418
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
419
- ),
420
- cast_to=TagRemoveResponse,
421
- )
422
-
423
-
424
- class TagsResourceWithRawResponse:
425
- def __init__(self, tags: TagsResource) -> None:
426
- self._tags = tags
427
-
428
- self.create = to_raw_response_wrapper(
429
- tags.create,
430
- )
431
- self.update = to_raw_response_wrapper(
432
- tags.update,
433
- )
434
- self.list = to_raw_response_wrapper(
435
- tags.list,
436
- )
437
- self.delete = to_raw_response_wrapper(
438
- tags.delete,
439
- )
440
- self.remove = to_raw_response_wrapper(
441
- tags.remove,
442
- )
443
-
444
-
445
- class AsyncTagsResourceWithRawResponse:
446
- def __init__(self, tags: AsyncTagsResource) -> None:
447
- self._tags = tags
448
-
449
- self.create = async_to_raw_response_wrapper(
450
- tags.create,
451
- )
452
- self.update = async_to_raw_response_wrapper(
453
- tags.update,
454
- )
455
- self.list = async_to_raw_response_wrapper(
456
- tags.list,
457
- )
458
- self.delete = async_to_raw_response_wrapper(
459
- tags.delete,
460
- )
461
- self.remove = async_to_raw_response_wrapper(
462
- tags.remove,
463
- )
464
-
465
-
466
- class TagsResourceWithStreamingResponse:
467
- def __init__(self, tags: TagsResource) -> None:
468
- self._tags = tags
469
-
470
- self.create = to_streamed_response_wrapper(
471
- tags.create,
472
- )
473
- self.update = to_streamed_response_wrapper(
474
- tags.update,
475
- )
476
- self.list = to_streamed_response_wrapper(
477
- tags.list,
478
- )
479
- self.delete = to_streamed_response_wrapper(
480
- tags.delete,
481
- )
482
- self.remove = to_streamed_response_wrapper(
483
- tags.remove,
484
- )
485
-
486
-
487
- class AsyncTagsResourceWithStreamingResponse:
488
- def __init__(self, tags: AsyncTagsResource) -> None:
489
- self._tags = tags
490
-
491
- self.create = async_to_streamed_response_wrapper(
492
- tags.create,
493
- )
494
- self.update = async_to_streamed_response_wrapper(
495
- tags.update,
496
- )
497
- self.list = async_to_streamed_response_wrapper(
498
- tags.list,
499
- )
500
- self.delete = async_to_streamed_response_wrapper(
501
- tags.delete,
502
- )
503
- self.remove = async_to_streamed_response_wrapper(
504
- tags.remove,
505
- )
@@ -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