payi 0.1.0a36__py3-none-any.whl → 0.1.0a38__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.
- payi/_version.py +1 -1
- payi/lib/instrument.py +41 -33
- payi/resources/experiences/experiences.py +8 -8
- payi/resources/experiences/types/__init__.py +33 -0
- payi/resources/experiences/types/limit_config.py +275 -0
- payi/resources/experiences/{types.py → types/types.py} +47 -11
- payi/resources/ingest.py +5 -6
- payi/resources/limits/limits.py +4 -8
- payi/resources/requests/__init__.py +14 -0
- payi/resources/requests/requests.py +32 -0
- payi/resources/requests/result.py +169 -0
- payi/types/__init__.py +4 -1
- payi/types/cost_data.py +5 -2
- payi/types/experience_instance_response.py +2 -4
- payi/types/experiences/experience_type.py +15 -2
- payi/types/experiences/type_create_params.py +15 -3
- payi/types/experiences/type_update_params.py +2 -2
- payi/types/experiences/types/__init__.py +5 -0
- payi/types/experiences/types/limit_config_create_params.py +18 -0
- payi/types/ingest_event_param.py +4 -15
- payi/types/ingest_response.py +7 -2
- payi/types/ingest_units_params.py +4 -15
- payi/types/limit_create_params.py +1 -3
- payi/types/limit_response.py +0 -2
- payi/types/paged_limit_list.py +0 -2
- payi/types/pay_i_common_models_api_router_header_info_param.py +14 -0
- payi/types/requests/__init__.py +1 -0
- payi/types/requests/request_result.py +48 -0
- payi/types/shared/__init__.py +3 -1
- payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +10 -0
- {payi-0.1.0a36.dist-info → payi-0.1.0a38.dist-info}/METADATA +1 -1
- {payi-0.1.0a36.dist-info → payi-0.1.0a38.dist-info}/RECORD +34 -26
- {payi-0.1.0a36.dist-info → payi-0.1.0a38.dist-info}/WHEEL +0 -0
- {payi-0.1.0a36.dist-info → payi-0.1.0a38.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
from ..cost_details import CostDetails
|
|
8
|
+
from ..shared.pay_i_common_models_budget_management_cost_details_base import (
|
|
9
|
+
PayICommonModelsBudgetManagementCostDetailsBase,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = ["RequestResult", "XproxyResult", "XproxyResultCost", "XproxyResultLimits"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class XproxyResultCost(BaseModel):
|
|
16
|
+
currency: Optional[Literal["usd"]] = None
|
|
17
|
+
|
|
18
|
+
input: Optional[PayICommonModelsBudgetManagementCostDetailsBase] = None
|
|
19
|
+
|
|
20
|
+
output: Optional[PayICommonModelsBudgetManagementCostDetailsBase] = None
|
|
21
|
+
|
|
22
|
+
total: Optional[CostDetails] = None
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class XproxyResultLimits(BaseModel):
|
|
26
|
+
state: Optional[Literal["ok", "blocked", "blocked_external", "exceeded", "overrun", "failed"]] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class XproxyResult(BaseModel):
|
|
30
|
+
blocked_limit_ids: Optional[List[str]] = None
|
|
31
|
+
|
|
32
|
+
cost: Optional[XproxyResultCost] = None
|
|
33
|
+
|
|
34
|
+
experience_id: Optional[str] = None
|
|
35
|
+
|
|
36
|
+
limits: Optional[Dict[str, XproxyResultLimits]] = None
|
|
37
|
+
|
|
38
|
+
request_id: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
request_tags: Optional[List[str]] = None
|
|
41
|
+
|
|
42
|
+
resource_id: Optional[str] = None
|
|
43
|
+
|
|
44
|
+
user_id: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class RequestResult(BaseModel):
|
|
48
|
+
xproxy_result: XproxyResult
|
payi/types/shared/__init__.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from .
|
|
3
|
+
from .pay_i_common_models_budget_management_cost_details_base import (
|
|
4
|
+
PayICommonModelsBudgetManagementCostDetailsBase as PayICommonModelsBudgetManagementCostDetailsBase,
|
|
5
|
+
)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from ..._models import BaseModel
|
|
5
|
+
|
|
6
|
+
__all__ = ["PayICommonModelsBudgetManagementCostDetailsBase"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PayICommonModelsBudgetManagementCostDetailsBase(BaseModel):
|
|
10
|
+
base: float
|
|
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
|
11
11
|
payi/_response.py,sha256=CfrNS_3wbL8o9dRyRVfZQ5E1GUlA4CUIUEK8olmfGqE,28777
|
|
12
12
|
payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
|
|
13
13
|
payi/_types.py,sha256=2mbMK86K3W1aMTW7sOGQ-VND6-A2IuXKm8p4sYFztBU,6141
|
|
14
|
-
payi/_version.py,sha256=
|
|
14
|
+
payi/_version.py,sha256=uhFgvjXGv4Bcm_dtpDLj6GUOkYi8xP6Mz9Ctz2H_Lqc,165
|
|
15
15
|
payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
payi/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
payi/_utils/_logs.py,sha256=fmnf5D9TOgkgZKfgYmSa3PiUc3SZgkchn6CzJUeo0SQ,768
|
|
@@ -28,25 +28,28 @@ payi/lib/Instruments.py,sha256=cyL2jxjpRluP9rN8Vn1nmVXq2NNLdZuFIsHMQWWqat4,115
|
|
|
28
28
|
payi/lib/OpenAIInstrumentor.py,sha256=eABTqxFLP109fOto33rBbXLh0FdQPh0a9VoMG4d6zGo,2575
|
|
29
29
|
payi/lib/Stopwatch.py,sha256=vFyGVRvkppamP7W0IuZyypKLMIaqjhB7fcRG0dNyfnQ,757
|
|
30
30
|
payi/lib/helpers.py,sha256=ZgkY8UE2YRc7ok2Pmxg_T9UMqKI8D8542JY3CP8RZCM,1597
|
|
31
|
-
payi/lib/instrument.py,sha256=
|
|
31
|
+
payi/lib/instrument.py,sha256=Ds49BFxqWnUMezL1tRr1IPBbb8rejDrjyi6t4YO9rCU,19549
|
|
32
32
|
payi/resources/__init__.py,sha256=isHGXSl9kOrZDduKrX3UenTwrdTpuKJVBjw6NYSBV20,3592
|
|
33
33
|
payi/resources/billing_models.py,sha256=5w3RfGXtGlyq5vbTw6hQrx1UlzRBtlq8ArcFlf5e3TY,20152
|
|
34
|
-
payi/resources/ingest.py,sha256=
|
|
34
|
+
payi/resources/ingest.py,sha256=JPtO7foPsftAgG92kSgU29_yOJSYuvIQtQB8WpRZuoQ,18567
|
|
35
35
|
payi/resources/price_modifiers.py,sha256=t-k2F_zf2FhoxiqDHAPBPvhSgTjewlJqh50y58FNMuw,13475
|
|
36
36
|
payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
|
|
37
37
|
payi/resources/categories/categories.py,sha256=FohmajDcadMXzhG3Z1HKGkbSImO7rhzQ0olZXHz8z48,16074
|
|
38
38
|
payi/resources/categories/resources.py,sha256=6NriQERc9qsMjsdK3pKVCHClf33T2RFiMF4dp7QI3r4,18704
|
|
39
39
|
payi/resources/experiences/__init__.py,sha256=Qiyv7Tv6UC-wWpb7XVTyHvBRE0IZTnEpykFpP27xKe0,1556
|
|
40
|
-
payi/resources/experiences/experiences.py,sha256=
|
|
40
|
+
payi/resources/experiences/experiences.py,sha256=m_-C_gF-dX8aBL0OYLTsT6-NSyXTaDFWoxv8l6tPOZI,14580
|
|
41
41
|
payi/resources/experiences/properties.py,sha256=CzuxZ0Guf57oFvm8hwjAp6EaALxC8QM84xu_JKHk-Ww,6568
|
|
42
|
-
payi/resources/experiences/types.py,sha256=
|
|
42
|
+
payi/resources/experiences/types/__init__.py,sha256=42loJPPtbwZ4qrqa1gKEg2CG5PLxCNKfOF113sIOJZc,1055
|
|
43
|
+
payi/resources/experiences/types/limit_config.py,sha256=DFMLM3aAuPv2oQQaDfNe871tOWBBY05QOpbf2Xytfo4,10617
|
|
44
|
+
payi/resources/experiences/types/types.py,sha256=OaunwbUrkRvBp6RMOTP1ORp9ZRKknNoMItINefvx7lA,20902
|
|
43
45
|
payi/resources/limits/__init__.py,sha256=URXh9vglDH-dqbVGk-XcrDa8H5Bg2pgFuVQQecgEtaA,976
|
|
44
|
-
payi/resources/limits/limits.py,sha256=
|
|
46
|
+
payi/resources/limits/limits.py,sha256=2eYXyAWn3J3sBB-kn2lVU8XWqGtt5JleqySeLsuTXLY,25632
|
|
45
47
|
payi/resources/limits/tags.py,sha256=s_3sIUOLZ-z67ZKRGzcFia6kBxI6POXTneP8hzNZ78o,18725
|
|
46
|
-
payi/resources/requests/__init__.py,sha256=
|
|
48
|
+
payi/resources/requests/__init__.py,sha256=k7ipgDb5QXAv7WYhgQq0-6Zn9INJikMzRGexufceHeI,1530
|
|
47
49
|
payi/resources/requests/properties.py,sha256=ZsUeTMKQB4PNXn-jeoRwG-fqwpXzkRQyrFB8GmaNiQg,6466
|
|
48
|
-
payi/resources/requests/requests.py,sha256=
|
|
49
|
-
payi/
|
|
50
|
+
payi/resources/requests/requests.py,sha256=uxfdUe_mNmG5kzHTa4YcS5m2wwIc5h__YSx54LfiLWQ,4840
|
|
51
|
+
payi/resources/requests/result.py,sha256=dEIwYEi_p36t_hErr_V1E2hmBLLgopcLnIReAWT8ygk,6161
|
|
52
|
+
payi/types/__init__.py,sha256=WZhGgB9kGD48NljvFFu3TeLhA_PKqDdMUsnxvSKxhc4,2854
|
|
50
53
|
payi/types/billing_model.py,sha256=zwpKldc0WvS3iGKtDb9KvfxCd3lkv8F4TwFy3ciGMXg,639
|
|
51
54
|
payi/types/billing_model_create_params.py,sha256=iVvmCcw0VxXGI_0YolknD3gmDH2lXVydU1dg2IY4dC4,547
|
|
52
55
|
payi/types/billing_model_list_response.py,sha256=hOFjJPQAKiWEArZeZwd8e1lDi5e41zbN6NvV_1rzJeM,290
|
|
@@ -58,21 +61,22 @@ payi/types/category_list_resources_response.py,sha256=n0DxY7N3Iftwfl0lUEx5v55V0k
|
|
|
58
61
|
payi/types/category_list_response.py,sha256=5i7BhQ7kVlx8_r2MLJqAJwIELGitKE0uR63kIloLATI,294
|
|
59
62
|
payi/types/category_resource_response.py,sha256=dZTQCJVaPdFCObHe2zUg6kKaHDtsgVzrO7FeyozHOs0,679
|
|
60
63
|
payi/types/category_response.py,sha256=43i8bii20Sb-z9R5M1Ia6RGfRZmdQqsWPlv4Bl1XQf0,293
|
|
61
|
-
payi/types/cost_data.py,sha256=
|
|
64
|
+
payi/types/cost_data.py,sha256=1i842P25SBy2sB3OWGj9LO_mMKtzmyUPBrqY_mSw01o,488
|
|
62
65
|
payi/types/cost_details.py,sha256=w9p79opEG3kcsjkRRP7niaMcUswdfB4Y7HCkVTcQ1zQ,307
|
|
63
66
|
payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
|
|
64
|
-
payi/types/experience_instance_response.py,sha256=
|
|
67
|
+
payi/types/experience_instance_response.py,sha256=N07MH6hjs1ISHLVpR2FG-u4awsZ_GGi97UNMXAWV1yA,296
|
|
65
68
|
payi/types/ingest_bulk_params.py,sha256=d76YwiXaNeltLS3w86ZxLzTKGa7ymGLJDSelaMQGf8Y,382
|
|
66
|
-
payi/types/ingest_event_param.py,sha256=
|
|
67
|
-
payi/types/ingest_response.py,sha256=
|
|
68
|
-
payi/types/ingest_units_params.py,sha256=
|
|
69
|
-
payi/types/limit_create_params.py,sha256=
|
|
69
|
+
payi/types/ingest_event_param.py,sha256=wA9YuiQceNL3veHO_rVuKZg9o-EB1WLoz0aaF6Wcm-k,1498
|
|
70
|
+
payi/types/ingest_response.py,sha256=KZfsgUhC942QkkjDFMqjJwCRoO2vkXv-Sx3X_xjijfg,1449
|
|
71
|
+
payi/types/ingest_units_params.py,sha256=0s_j6268ZmeXDw9lQ_HKLldA_EvNyPcOxM6kFxLwxkA,1749
|
|
72
|
+
payi/types/limit_create_params.py,sha256=Av8oMCxlKH7VB2MtYN5-25rAjqDDTPHjsXIQ2xubmck,549
|
|
70
73
|
payi/types/limit_history_response.py,sha256=sCx2qKBiHU9X2KrYWV8NZiarYMGurof5GF4QobR2-EU,787
|
|
71
74
|
payi/types/limit_list_params.py,sha256=iWM67oL53y2IZ7D3Gyy8mdYv-B7vF-rbmRFn7SBUnJk,364
|
|
72
75
|
payi/types/limit_reset_params.py,sha256=vgqImSM89pRYY0Z2RNrJuQ6WeDX72ZPg3GWpL9EVEKs,476
|
|
73
|
-
payi/types/limit_response.py,sha256=
|
|
76
|
+
payi/types/limit_response.py,sha256=OmoFlpz_6s9YhDM_3RxXjmYaaYJG0VCWu-lqqyfMa-k,722
|
|
74
77
|
payi/types/limit_update_params.py,sha256=crY4w75FWcEXbzysq1rPfD37qR5PTy_dwVRY4C_-T1w,331
|
|
75
|
-
payi/types/paged_limit_list.py,sha256=
|
|
78
|
+
payi/types/paged_limit_list.py,sha256=76bEcU1u64Zi9X6DoSpfbuJtE8zbWt5dL_0rnN6Nnt0,1284
|
|
79
|
+
payi/types/pay_i_common_models_api_router_header_info_param.py,sha256=91djoPLmoaMWTQOXv9-Ox24dWIrM2hudrRQTCqZpX4c,381
|
|
76
80
|
payi/types/price_modifier.py,sha256=Sw_5tzCGnpjQzR5aZ70_ATpfBRQA_0ue2NRM3yMcvj0,531
|
|
77
81
|
payi/types/price_modifier_create_params.py,sha256=RpcYr2JYFu-pxzY4Dx1ESMp9-FBHfKt03Iw-3tlZvXQ,404
|
|
78
82
|
payi/types/price_modifier_retrieve_response.py,sha256=oFXWr38-O7KHItQlSsr7K8-Arpjq0yKexSUnbWqu62Q,303
|
|
@@ -83,13 +87,15 @@ payi/types/categories/__init__.py,sha256=HQScxfK3F_J9HYbphrhG6bYb7S6vtrwafLViar5
|
|
|
83
87
|
payi/types/categories/resource_create_params.py,sha256=jEXNx_FvWA9D5170Gwf_YUcuAOaDq0RIGaGgPSEsheA,725
|
|
84
88
|
payi/types/categories/resource_list_response.py,sha256=ODMelDlXvYcwxBsJwTX8miofywUY_JB0OvsFVCKJunU,320
|
|
85
89
|
payi/types/experiences/__init__.py,sha256=-3_HQPYDVAP6g9e289iSBPU8kmEUt4WPNEbV1n4v5Ow,610
|
|
86
|
-
payi/types/experiences/experience_type.py,sha256=
|
|
90
|
+
payi/types/experiences/experience_type.py,sha256=QO3UZFuFZc4opk2iDf37aXJ0dk5Ut6dnkcuxYLOZeEE,612
|
|
87
91
|
payi/types/experiences/properties_response.py,sha256=HpFNtxl_OjoMCs24xPVZLKe3FwCVcNkcRs0LsQKLrHM,259
|
|
88
92
|
payi/types/experiences/property_create_params.py,sha256=6v1L_4pj5N5k386cbtjSAWr2QJw---WUJ5lyshRnMwc,328
|
|
89
|
-
payi/types/experiences/type_create_params.py,sha256=
|
|
93
|
+
payi/types/experiences/type_create_params.py,sha256=kYm-kuPhe9NVTGs0g0bKzSerVi1ERndicZVZwxLs8ok,619
|
|
90
94
|
payi/types/experiences/type_list_params.py,sha256=VDZjHmK2tNAW_YLewcIzM-OG13iI2v-xCykokxkcgbs,286
|
|
91
95
|
payi/types/experiences/type_list_response.py,sha256=DgkPLw40oUqBETLePVMVenstMsGG12rZRU9w6kgQN28,280
|
|
92
|
-
payi/types/experiences/type_update_params.py,sha256=
|
|
96
|
+
payi/types/experiences/type_update_params.py,sha256=PaR3fuObhIuKsiEo8BQyIoO1NU0PCrUvvNg006IlXnM,341
|
|
97
|
+
payi/types/experiences/types/__init__.py,sha256=Uo_hbPae_AJi8UitkztBOl80AMRv7m-wH1eJlFC3Qnc,214
|
|
98
|
+
payi/types/experiences/types/limit_config_create_params.py,sha256=pzQza_16N3z8cFNEKr6gPbFvuGFrwNuGxAYb--Kbo2M,449
|
|
93
99
|
payi/types/limits/__init__.py,sha256=yohSla0l53OaxH9WdwaU1crY1FvzM3H6IRg20LUr-MU,722
|
|
94
100
|
payi/types/limits/limit_tags.py,sha256=O9I9IC7IkFBYRbiUWb4XXmIuXoHUlRLjW_4fbEF50Aw,346
|
|
95
101
|
payi/types/limits/tag_create_params.py,sha256=MPN1rXRJKCV_mZX8ZwrZD4yHpME7jI_SwAusz7ruvaE,313
|
|
@@ -100,11 +106,13 @@ payi/types/limits/tag_remove_params.py,sha256=wqRc8Y9ZYqOcnIuuFVQfbPRtX0ycp-z5fl
|
|
|
100
106
|
payi/types/limits/tag_remove_response.py,sha256=R-e-um-W1aqq8sEmTtnPMCDLGVRUmm5pVAvLCkgDVHI,267
|
|
101
107
|
payi/types/limits/tag_update_params.py,sha256=8-gP8OEY7xpBPLfS2uU71ew2WkWZ-WpVOy9fRA07omY,313
|
|
102
108
|
payi/types/limits/tag_update_response.py,sha256=xLa4aU4eVhNmIaQTsCyEDjx1vatBACFiJCwZOWLfrig,267
|
|
103
|
-
payi/types/requests/__init__.py,sha256=
|
|
109
|
+
payi/types/requests/__init__.py,sha256=prKzWdptHTDvIbGlQbWR9D4Gu_wDwXCG-cIMEAgKdkQ,263
|
|
104
110
|
payi/types/requests/property_create_params.py,sha256=6v1L_4pj5N5k386cbtjSAWr2QJw---WUJ5lyshRnMwc,328
|
|
105
|
-
payi/types/
|
|
111
|
+
payi/types/requests/request_result.py,sha256=phYQiqhwNaR9igP-Fhs34Y-__dlT7L4wq-rgFLmJTUo,1336
|
|
112
|
+
payi/types/shared/__init__.py,sha256=-xz5dxK5LBjLnsi2LpLq5btaGDFp-mSjJ0y2qKy0Yus,264
|
|
106
113
|
payi/types/shared/evaluation_response.py,sha256=ejEToMA57PUu1SldEtJ5z9r4fAO3U0tvdjbsyIoVX1s,214
|
|
107
|
-
payi
|
|
108
|
-
payi-0.1.
|
|
109
|
-
payi-0.1.
|
|
110
|
-
payi-0.1.
|
|
114
|
+
payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py,sha256=XmIzJXy4zAi-mfrDvEXiYjO3qF1EvugGUl-Gijj4TA4,268
|
|
115
|
+
payi-0.1.0a38.dist-info/METADATA,sha256=5g142UgydrzpGRqyttKbGlDCw-CUXaxsAfKnhw1r7I8,12594
|
|
116
|
+
payi-0.1.0a38.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
117
|
+
payi-0.1.0a38.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
|
|
118
|
+
payi-0.1.0a38.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|