payi 0.1.0a24__py3-none-any.whl → 0.1.0a26__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/_base_client.py +63 -48
- payi/_client.py +8 -0
- payi/_compat.py +2 -0
- payi/_utils/_utils.py +4 -3
- payi/_version.py +1 -1
- payi/resources/__init__.py +14 -0
- payi/resources/budgets/budgets.py +22 -0
- payi/resources/budgets/tags.py +22 -0
- payi/resources/categories/categories.py +22 -0
- payi/resources/categories/resources.py +26 -0
- payi/resources/csat.py +188 -0
- payi/resources/experiences/experiences.py +22 -0
- payi/resources/experiences/types.py +22 -0
- payi/resources/ingest.py +27 -2
- payi/types/__init__.py +2 -0
- payi/types/bulk_ingest_response.py +7 -0
- payi/types/categories/resource_create_params.py +2 -0
- payi/types/category_resource_response.py +2 -0
- payi/types/csat.py +11 -0
- payi/types/csat_create_params.py +14 -0
- payi/types/evaluations/__init__.py +6 -0
- payi/types/evaluations/experience_create_params.py +14 -0
- payi/types/evaluations/request_create_params.py +14 -0
- payi/types/experiences/experience_type.py +0 -2
- payi/types/ingest_event_param.py +2 -0
- payi/types/ingest_units_params.py +3 -1
- payi/types/shared/__init__.py +2 -0
- {payi-0.1.0a24.dist-info → payi-0.1.0a26.dist-info}/METADATA +12 -1
- {payi-0.1.0a24.dist-info → payi-0.1.0a26.dist-info}/RECORD +31 -24
- {payi-0.1.0a24.dist-info → payi-0.1.0a26.dist-info}/WHEEL +0 -0
- {payi-0.1.0a24.dist-info → payi-0.1.0a26.dist-info}/licenses/LICENSE +0 -0
payi/resources/csat.py
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
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 Optional
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from ..types import csat_create_params
|
|
10
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from .._utils import (
|
|
12
|
+
maybe_transform,
|
|
13
|
+
async_maybe_transform,
|
|
14
|
+
)
|
|
15
|
+
from .._compat import cached_property
|
|
16
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
17
|
+
from .._response import (
|
|
18
|
+
to_raw_response_wrapper,
|
|
19
|
+
to_streamed_response_wrapper,
|
|
20
|
+
async_to_raw_response_wrapper,
|
|
21
|
+
async_to_streamed_response_wrapper,
|
|
22
|
+
)
|
|
23
|
+
from ..types.csat import Csat
|
|
24
|
+
from .._base_client import make_request_options
|
|
25
|
+
|
|
26
|
+
__all__ = ["CsatResource", "AsyncCsatResource"]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CsatResource(SyncAPIResource):
|
|
30
|
+
@cached_property
|
|
31
|
+
def with_raw_response(self) -> CsatResourceWithRawResponse:
|
|
32
|
+
"""
|
|
33
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
34
|
+
the raw response object instead of the parsed content.
|
|
35
|
+
|
|
36
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
37
|
+
"""
|
|
38
|
+
return CsatResourceWithRawResponse(self)
|
|
39
|
+
|
|
40
|
+
@cached_property
|
|
41
|
+
def with_streaming_response(self) -> CsatResourceWithStreamingResponse:
|
|
42
|
+
"""
|
|
43
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
44
|
+
|
|
45
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
46
|
+
"""
|
|
47
|
+
return CsatResourceWithStreamingResponse(self)
|
|
48
|
+
|
|
49
|
+
def create(
|
|
50
|
+
self,
|
|
51
|
+
experience_id: str,
|
|
52
|
+
*,
|
|
53
|
+
csat_rating: int,
|
|
54
|
+
user_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
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
|
+
) -> Csat:
|
|
62
|
+
"""
|
|
63
|
+
Created a CSAT rating for an Experience
|
|
64
|
+
|
|
65
|
+
Args:
|
|
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 experience_id:
|
|
75
|
+
raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
|
|
76
|
+
return self._post(
|
|
77
|
+
f"/api/v1/csat/experiences/{experience_id}",
|
|
78
|
+
body=maybe_transform(
|
|
79
|
+
{
|
|
80
|
+
"csat_rating": csat_rating,
|
|
81
|
+
"user_id": user_id,
|
|
82
|
+
},
|
|
83
|
+
csat_create_params.CsatCreateParams,
|
|
84
|
+
),
|
|
85
|
+
options=make_request_options(
|
|
86
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
87
|
+
),
|
|
88
|
+
cast_to=Csat,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class AsyncCsatResource(AsyncAPIResource):
|
|
93
|
+
@cached_property
|
|
94
|
+
def with_raw_response(self) -> AsyncCsatResourceWithRawResponse:
|
|
95
|
+
"""
|
|
96
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
97
|
+
the raw response object instead of the parsed content.
|
|
98
|
+
|
|
99
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
100
|
+
"""
|
|
101
|
+
return AsyncCsatResourceWithRawResponse(self)
|
|
102
|
+
|
|
103
|
+
@cached_property
|
|
104
|
+
def with_streaming_response(self) -> AsyncCsatResourceWithStreamingResponse:
|
|
105
|
+
"""
|
|
106
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
107
|
+
|
|
108
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
109
|
+
"""
|
|
110
|
+
return AsyncCsatResourceWithStreamingResponse(self)
|
|
111
|
+
|
|
112
|
+
async def create(
|
|
113
|
+
self,
|
|
114
|
+
experience_id: str,
|
|
115
|
+
*,
|
|
116
|
+
csat_rating: int,
|
|
117
|
+
user_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
118
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
119
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
120
|
+
extra_headers: Headers | None = None,
|
|
121
|
+
extra_query: Query | None = None,
|
|
122
|
+
extra_body: Body | None = None,
|
|
123
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
124
|
+
) -> Csat:
|
|
125
|
+
"""
|
|
126
|
+
Created a CSAT rating for an Experience
|
|
127
|
+
|
|
128
|
+
Args:
|
|
129
|
+
extra_headers: Send extra headers
|
|
130
|
+
|
|
131
|
+
extra_query: Add additional query parameters to the request
|
|
132
|
+
|
|
133
|
+
extra_body: Add additional JSON properties to the request
|
|
134
|
+
|
|
135
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
136
|
+
"""
|
|
137
|
+
if not experience_id:
|
|
138
|
+
raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
|
|
139
|
+
return await self._post(
|
|
140
|
+
f"/api/v1/csat/experiences/{experience_id}",
|
|
141
|
+
body=await async_maybe_transform(
|
|
142
|
+
{
|
|
143
|
+
"csat_rating": csat_rating,
|
|
144
|
+
"user_id": user_id,
|
|
145
|
+
},
|
|
146
|
+
csat_create_params.CsatCreateParams,
|
|
147
|
+
),
|
|
148
|
+
options=make_request_options(
|
|
149
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
150
|
+
),
|
|
151
|
+
cast_to=Csat,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
class CsatResourceWithRawResponse:
|
|
156
|
+
def __init__(self, csat: CsatResource) -> None:
|
|
157
|
+
self._csat = csat
|
|
158
|
+
|
|
159
|
+
self.create = to_raw_response_wrapper(
|
|
160
|
+
csat.create,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
class AsyncCsatResourceWithRawResponse:
|
|
165
|
+
def __init__(self, csat: AsyncCsatResource) -> None:
|
|
166
|
+
self._csat = csat
|
|
167
|
+
|
|
168
|
+
self.create = async_to_raw_response_wrapper(
|
|
169
|
+
csat.create,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class CsatResourceWithStreamingResponse:
|
|
174
|
+
def __init__(self, csat: CsatResource) -> None:
|
|
175
|
+
self._csat = csat
|
|
176
|
+
|
|
177
|
+
self.create = to_streamed_response_wrapper(
|
|
178
|
+
csat.create,
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class AsyncCsatResourceWithStreamingResponse:
|
|
183
|
+
def __init__(self, csat: AsyncCsatResource) -> None:
|
|
184
|
+
self._csat = csat
|
|
185
|
+
|
|
186
|
+
self.create = async_to_streamed_response_wrapper(
|
|
187
|
+
csat.create,
|
|
188
|
+
)
|
|
@@ -34,10 +34,21 @@ class ExperiencesResource(SyncAPIResource):
|
|
|
34
34
|
|
|
35
35
|
@cached_property
|
|
36
36
|
def with_raw_response(self) -> ExperiencesResourceWithRawResponse:
|
|
37
|
+
"""
|
|
38
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
39
|
+
the raw response object instead of the parsed content.
|
|
40
|
+
|
|
41
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
42
|
+
"""
|
|
37
43
|
return ExperiencesResourceWithRawResponse(self)
|
|
38
44
|
|
|
39
45
|
@cached_property
|
|
40
46
|
def with_streaming_response(self) -> ExperiencesResourceWithStreamingResponse:
|
|
47
|
+
"""
|
|
48
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
49
|
+
|
|
50
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
51
|
+
"""
|
|
41
52
|
return ExperiencesResourceWithStreamingResponse(self)
|
|
42
53
|
|
|
43
54
|
def create(
|
|
@@ -147,10 +158,21 @@ class AsyncExperiencesResource(AsyncAPIResource):
|
|
|
147
158
|
|
|
148
159
|
@cached_property
|
|
149
160
|
def with_raw_response(self) -> AsyncExperiencesResourceWithRawResponse:
|
|
161
|
+
"""
|
|
162
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
163
|
+
the raw response object instead of the parsed content.
|
|
164
|
+
|
|
165
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
166
|
+
"""
|
|
150
167
|
return AsyncExperiencesResourceWithRawResponse(self)
|
|
151
168
|
|
|
152
169
|
@cached_property
|
|
153
170
|
def with_streaming_response(self) -> AsyncExperiencesResourceWithStreamingResponse:
|
|
171
|
+
"""
|
|
172
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
173
|
+
|
|
174
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
175
|
+
"""
|
|
154
176
|
return AsyncExperiencesResourceWithStreamingResponse(self)
|
|
155
177
|
|
|
156
178
|
async def create(
|
|
@@ -28,10 +28,21 @@ __all__ = ["TypesResource", "AsyncTypesResource"]
|
|
|
28
28
|
class TypesResource(SyncAPIResource):
|
|
29
29
|
@cached_property
|
|
30
30
|
def with_raw_response(self) -> TypesResourceWithRawResponse:
|
|
31
|
+
"""
|
|
32
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
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
|
+
"""
|
|
31
37
|
return TypesResourceWithRawResponse(self)
|
|
32
38
|
|
|
33
39
|
@cached_property
|
|
34
40
|
def with_streaming_response(self) -> TypesResourceWithStreamingResponse:
|
|
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
|
+
"""
|
|
35
46
|
return TypesResourceWithStreamingResponse(self)
|
|
36
47
|
|
|
37
48
|
def create(
|
|
@@ -215,10 +226,21 @@ class TypesResource(SyncAPIResource):
|
|
|
215
226
|
class AsyncTypesResource(AsyncAPIResource):
|
|
216
227
|
@cached_property
|
|
217
228
|
def with_raw_response(self) -> AsyncTypesResourceWithRawResponse:
|
|
229
|
+
"""
|
|
230
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
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
|
+
"""
|
|
218
235
|
return AsyncTypesResourceWithRawResponse(self)
|
|
219
236
|
|
|
220
237
|
@cached_property
|
|
221
238
|
def with_streaming_response(self) -> AsyncTypesResourceWithStreamingResponse:
|
|
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
|
+
"""
|
|
222
244
|
return AsyncTypesResourceWithStreamingResponse(self)
|
|
223
245
|
|
|
224
246
|
async def create(
|
payi/resources/ingest.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union, Iterable
|
|
5
|
+
from typing import Union, Iterable, Optional
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -33,10 +33,21 @@ __all__ = ["IngestResource", "AsyncIngestResource"]
|
|
|
33
33
|
class IngestResource(SyncAPIResource):
|
|
34
34
|
@cached_property
|
|
35
35
|
def with_raw_response(self) -> IngestResourceWithRawResponse:
|
|
36
|
+
"""
|
|
37
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
38
|
+
the raw response object instead of the parsed content.
|
|
39
|
+
|
|
40
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
41
|
+
"""
|
|
36
42
|
return IngestResourceWithRawResponse(self)
|
|
37
43
|
|
|
38
44
|
@cached_property
|
|
39
45
|
def with_streaming_response(self) -> IngestResourceWithStreamingResponse:
|
|
46
|
+
"""
|
|
47
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
48
|
+
|
|
49
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
50
|
+
"""
|
|
40
51
|
return IngestResourceWithStreamingResponse(self)
|
|
41
52
|
|
|
42
53
|
def bulk(
|
|
@@ -82,6 +93,7 @@ class IngestResource(SyncAPIResource):
|
|
|
82
93
|
output: int,
|
|
83
94
|
resource: str,
|
|
84
95
|
event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
96
|
+
provisioned_resource_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
85
97
|
budget_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
86
98
|
request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
87
99
|
experience_id: Union[str, None] | NotGiven = NOT_GIVEN,
|
|
@@ -170,6 +182,7 @@ class IngestResource(SyncAPIResource):
|
|
|
170
182
|
"output": output,
|
|
171
183
|
"resource": resource,
|
|
172
184
|
"event_timestamp": event_timestamp,
|
|
185
|
+
"provisioned_resource_name": provisioned_resource_name,
|
|
173
186
|
},
|
|
174
187
|
ingest_units_params.IngestUnitsParams,
|
|
175
188
|
),
|
|
@@ -183,10 +196,21 @@ class IngestResource(SyncAPIResource):
|
|
|
183
196
|
class AsyncIngestResource(AsyncAPIResource):
|
|
184
197
|
@cached_property
|
|
185
198
|
def with_raw_response(self) -> AsyncIngestResourceWithRawResponse:
|
|
199
|
+
"""
|
|
200
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
201
|
+
the raw response object instead of the parsed content.
|
|
202
|
+
|
|
203
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
204
|
+
"""
|
|
186
205
|
return AsyncIngestResourceWithRawResponse(self)
|
|
187
206
|
|
|
188
207
|
@cached_property
|
|
189
208
|
def with_streaming_response(self) -> AsyncIngestResourceWithStreamingResponse:
|
|
209
|
+
"""
|
|
210
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
211
|
+
|
|
212
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
213
|
+
"""
|
|
190
214
|
return AsyncIngestResourceWithStreamingResponse(self)
|
|
191
215
|
|
|
192
216
|
async def bulk(
|
|
@@ -231,12 +255,12 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
231
255
|
output: int,
|
|
232
256
|
resource: str,
|
|
233
257
|
event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
258
|
+
provisioned_resource_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
234
259
|
budget_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
235
260
|
request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
236
261
|
experience_id: Union[str, None] | NotGiven = NOT_GIVEN,
|
|
237
262
|
user_id: Union[str, None] | NotGiven = NOT_GIVEN,
|
|
238
263
|
|
|
239
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
240
264
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
241
265
|
extra_headers: Headers | None = None,
|
|
242
266
|
extra_query: Query | None = None,
|
|
@@ -320,6 +344,7 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
320
344
|
"output": output,
|
|
321
345
|
"resource": resource,
|
|
322
346
|
"event_timestamp": event_timestamp,
|
|
347
|
+
"provisioned_resource_name": provisioned_resource_name,
|
|
323
348
|
},
|
|
324
349
|
ingest_units_params.IngestUnitsParams,
|
|
325
350
|
),
|
payi/types/__init__.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from .csat import Csat as Csat
|
|
5
6
|
from .cost_data import CostData as CostData
|
|
6
7
|
from .cost_details import CostDetails as CostDetails
|
|
7
8
|
from .requests_data import RequestsData as RequestsData
|
|
@@ -12,6 +13,7 @@ from .default_response import DefaultResponse as DefaultResponse
|
|
|
12
13
|
from .category_response import CategoryResponse as CategoryResponse
|
|
13
14
|
from .paged_budget_list import PagedBudgetList as PagedBudgetList
|
|
14
15
|
from .budget_list_params import BudgetListParams as BudgetListParams
|
|
16
|
+
from .csat_create_params import CsatCreateParams as CsatCreateParams
|
|
15
17
|
from .ingest_bulk_params import IngestBulkParams as IngestBulkParams
|
|
16
18
|
from .ingest_event_param import IngestEventParam as IngestEventParam
|
|
17
19
|
from .experience_instance import ExperienceInstance as ExperienceInstance
|
|
@@ -28,6 +28,13 @@ class Error(BaseModel):
|
|
|
28
28
|
item_index: Optional[int] = None
|
|
29
29
|
|
|
30
30
|
xproxy_result: Optional[ErrorXproxyResult] = None
|
|
31
|
+
"""
|
|
32
|
+
Represents an generic error that occurred as a result of processing a request.
|
|
33
|
+
APIM returns an (not customizable) error response body of { "statusCode",
|
|
34
|
+
"message" } and this class matches this schema. Derived classes may add
|
|
35
|
+
additional required fields if these classes are specified as produced as a
|
|
36
|
+
return type specific endpoints.
|
|
37
|
+
"""
|
|
31
38
|
|
|
32
39
|
|
|
33
40
|
class BulkIngestResponse(BaseModel):
|
payi/types/csat.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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 Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["CsatCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CsatCreateParams(TypedDict, total=False):
|
|
12
|
+
csat_rating: Required[int]
|
|
13
|
+
|
|
14
|
+
user_id: Optional[str]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .request_create_params import RequestCreateParams as RequestCreateParams
|
|
6
|
+
from .experience_create_params import ExperienceCreateParams as ExperienceCreateParams
|
|
@@ -0,0 +1,14 @@
|
|
|
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 Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["ExperienceCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ExperienceCreateParams(TypedDict, total=False):
|
|
12
|
+
evaluation: Required[int]
|
|
13
|
+
|
|
14
|
+
user_id: Optional[str]
|
|
@@ -0,0 +1,14 @@
|
|
|
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 Optional
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["RequestCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RequestCreateParams(TypedDict, total=False):
|
|
12
|
+
evaluation: Required[int]
|
|
13
|
+
|
|
14
|
+
user_id: Optional[str]
|
payi/types/ingest_event_param.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Union
|
|
5
|
+
from typing import Union, Optional
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
from typing_extensions import Required, Annotated, TypedDict
|
|
8
8
|
|
|
@@ -22,6 +22,8 @@ class IngestUnitsParams(TypedDict, total=False):
|
|
|
22
22
|
|
|
23
23
|
event_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
24
24
|
|
|
25
|
+
provisioned_resource_name: Optional[str]
|
|
26
|
+
|
|
25
27
|
budget_ids: Annotated[Union[list[str], None], PropertyInfo(alias="xProxy-Budget-IDs")]
|
|
26
28
|
|
|
27
29
|
request_tags: Annotated[Union[list[str], None], PropertyInfo(alias="xProxy-Request-Tags")]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: payi
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a26
|
|
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
|
|
@@ -356,6 +356,17 @@ We take backwards-compatibility seriously and work hard to ensure you can rely o
|
|
|
356
356
|
|
|
357
357
|
We are keen for your feedback; please open an [issue](https://www.github.com/Pay-i/pay-i-python/issues) with questions, bugs, or suggestions.
|
|
358
358
|
|
|
359
|
+
### Determining the installed version
|
|
360
|
+
|
|
361
|
+
If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.
|
|
362
|
+
|
|
363
|
+
You can determine the version that is being used at runtime with:
|
|
364
|
+
|
|
365
|
+
```py
|
|
366
|
+
import payi
|
|
367
|
+
print(payi.__version__)
|
|
368
|
+
```
|
|
369
|
+
|
|
359
370
|
## Requirements
|
|
360
371
|
|
|
361
372
|
Python 3.7 or higher.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
payi/__init__.py,sha256=LWpfR6WSMPTnmmx3ToqqZ0A8CNduLcuxY1SSOqhPxuk,2381
|
|
2
|
-
payi/_base_client.py,sha256=
|
|
3
|
-
payi/_client.py,sha256=
|
|
4
|
-
payi/_compat.py,sha256=
|
|
2
|
+
payi/_base_client.py,sha256=wUQ3zciD8bdvcOTIT8D21x6o-PdvK2BE6HRulFTEFBc,67547
|
|
3
|
+
payi/_client.py,sha256=NNSdDsX33voOxyzTUQq-5QXfL0lTkSn4w2yQv9kEg5E,17108
|
|
4
|
+
payi/_compat.py,sha256=9CWnEaYK0kot7aSNW-m2W9xZb5giIdvKN9sWxvBbbSA,6488
|
|
5
5
|
payi/_constants.py,sha256=JE8kyZa2Q4NK_i4fO--8siEYTzeHnT0fYbOFDgDP4uk,464
|
|
6
6
|
payi/_exceptions.py,sha256=ItygKNrNXIVY0H6LsGVZvFuAHB3Vtm_VZXmWzCnpHy0,3216
|
|
7
7
|
payi/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
|
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
|
11
11
|
payi/_response.py,sha256=SByCajzglbiy7lSG4F5enqb7R6jVQe1OQ9TBsaxWzE8,28508
|
|
12
12
|
payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
|
|
13
13
|
payi/_types.py,sha256=mb6zn5qmTK5j0QMh0fevdShT091HBL4w0YCUfQ3u5VY,6101
|
|
14
|
-
payi/_version.py,sha256=
|
|
14
|
+
payi/_version.py,sha256=e88cijGKnHhWqAgbleOrpZSnEKV7DQtJbCBJsfjdsaw,165
|
|
15
15
|
payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
payi/_utils/__init__.py,sha256=Uzq1-FIih_VUjzdNVWXks0sdC39KBKLMrZoz-_JOjJ4,1988
|
|
17
17
|
payi/_utils/_logs.py,sha256=fmnf5D9TOgkgZKfgYmSa3PiUc3SZgkchn6CzJUeo0SQ,768
|
|
@@ -21,41 +21,44 @@ payi/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
|
|
21
21
|
payi/_utils/_sync.py,sha256=9ex9pfOyd8xAF1LxpFx4IkqL8k0vk8srE2Ee-OTMQ0A,2840
|
|
22
22
|
payi/_utils/_transform.py,sha256=NCz3q9_O-vuj60xVe-qzhEQ8uJWlZWJTsM-GwHDccf8,12958
|
|
23
23
|
payi/_utils/_typing.py,sha256=tFbktdpdHCQliwzGsWysgn0P5H0JRdagkZdb_LegGkY,3838
|
|
24
|
-
payi/_utils/_utils.py,sha256=
|
|
24
|
+
payi/_utils/_utils.py,sha256=tYrr7IX-5NMwsVKbNggbzOM84uNw7XnAe06e2Ln8Or0,11472
|
|
25
25
|
payi/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
26
26
|
payi/lib/helpers.py,sha256=JpI9vy--oJP5kUlcWK0yfyRUbIRMXkvLeUQC4g8rLNY,1472
|
|
27
|
-
payi/resources/__init__.py,sha256=
|
|
28
|
-
payi/resources/
|
|
27
|
+
payi/resources/__init__.py,sha256=insqhwlut9HYgtNEnCNDNcjAM1awPO5iMeB_bHLyMB0,2456
|
|
28
|
+
payi/resources/csat.py,sha256=56Sn2JM3xbc33J7xiC0Q0aLd5KuZK0ty_jxN-ZNPz7M,6526
|
|
29
|
+
payi/resources/ingest.py,sha256=pJ8CKZ_LnT8Zph2EZYszB5Va9O7R5L2eGqVAE8wl-SQ,15510
|
|
29
30
|
payi/resources/budgets/__init__.py,sha256=w1UhOdDXtUH4A91ME5Tw2nr9bRvPJyJY1YWiVVy7jj0,989
|
|
30
|
-
payi/resources/budgets/budgets.py,sha256=
|
|
31
|
-
payi/resources/budgets/tags.py,sha256=
|
|
31
|
+
payi/resources/budgets/budgets.py,sha256=IvNbTUYCfoY0R54Z5sb_Xb08wj_C-J0n9X-GA_ngrTM,27506
|
|
32
|
+
payi/resources/budgets/tags.py,sha256=akVs7lGBb7O697lv-_nXT_xlh6dgQuaj6pWqTenO86s,18827
|
|
32
33
|
payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
|
|
33
|
-
payi/resources/categories/categories.py,sha256=
|
|
34
|
-
payi/resources/categories/resources.py,sha256=
|
|
34
|
+
payi/resources/categories/categories.py,sha256=dGsAX313gZlLy5pSRo5_TexD1rPeWU666yHNwiUEFBA,16082
|
|
35
|
+
payi/resources/categories/resources.py,sha256=3ZdumQsn8BLw-qdt69SvmSBhScnRqEaou9HtVZyp2LI,18924
|
|
35
36
|
payi/resources/experiences/__init__.py,sha256=gguTTCoGlAWDyrDJh1CtZwIVsyBbzERX63vRtFtjxjI,1054
|
|
36
|
-
payi/resources/experiences/experiences.py,sha256=
|
|
37
|
-
payi/resources/experiences/types.py,sha256=
|
|
38
|
-
payi/types/__init__.py,sha256=
|
|
37
|
+
payi/resources/experiences/experiences.py,sha256=fdWaZox-WRCGwo8CJLsQFYVE8bf-yn7lFDO_dtwpyFQ,13264
|
|
38
|
+
payi/resources/experiences/types.py,sha256=QuNX3B7mtUNuxREn9tOGNRRI0dEfiDX2fvLp6mIL7dQ,18679
|
|
39
|
+
payi/types/__init__.py,sha256=VVY8spKplnRHqco9B5Zv8PEHPIVtZE6te9_u8yLTcOo,1903
|
|
39
40
|
payi/types/budget_create_params.py,sha256=3PziVJT3_ll-6yv3i5EF8ERm19jFJAKbv9v-CvRW5ik,653
|
|
40
41
|
payi/types/budget_history_response.py,sha256=4SnisCLr1HImVecgonZK7HIm9WTmYl0YMaTbMP70qZY,934
|
|
41
42
|
payi/types/budget_list_params.py,sha256=KaJ0H4tfp6mpCyanpysVJBTAMa5aA2Kv73uO_EsBsKE,367
|
|
42
43
|
payi/types/budget_response.py,sha256=ZAZOvA5KLirARR92IuLkjGNWTLBUVJp5RwGI9Ow2Au0,827
|
|
43
44
|
payi/types/budget_update_params.py,sha256=foD5cPa1p2M2cpVUqlwkXwSEQlQcBLaigUQMUGkvcic,334
|
|
44
|
-
payi/types/bulk_ingest_response.py,sha256=
|
|
45
|
+
payi/types/bulk_ingest_response.py,sha256=78J3vlL7muZx9Z20H--UkvM8P19g0cDL9SZoHy7XM68,1330
|
|
45
46
|
payi/types/category_delete_resource_response.py,sha256=PLz4wZA1XMpS9SUYB_j4hEw5EoZ0VVE9Ll-MQ26SAfc,339
|
|
46
47
|
payi/types/category_delete_response.py,sha256=exq8rNDGoq2-YN528V8osdcmuptJ-k63rmCvPMm6hLA,323
|
|
47
48
|
payi/types/category_list_resources_response.py,sha256=n0DxY7N3Iftwfl0lUEx5v55V0kxbOX0EgjXlEfJtYRQ,337
|
|
48
49
|
payi/types/category_list_response.py,sha256=5i7BhQ7kVlx8_r2MLJqAJwIELGitKE0uR63kIloLATI,294
|
|
49
|
-
payi/types/category_resource_response.py,sha256=
|
|
50
|
+
payi/types/category_resource_response.py,sha256=XosDA-fXMkfSdocpMBDwV9ynCEH9nTFIg4tq_CRV2v0,566
|
|
50
51
|
payi/types/category_response.py,sha256=43i8bii20Sb-z9R5M1Ia6RGfRZmdQqsWPlv4Bl1XQf0,293
|
|
51
52
|
payi/types/cost_data.py,sha256=jZtju_3WWNXh4wCu77XnyvxZkvewcvXBS_V0z07BizA,284
|
|
52
53
|
payi/types/cost_details.py,sha256=3ldvnYILAG6Sz9wGWMs1SZvIfdGEbn5i4-CauWEXMPA,265
|
|
54
|
+
payi/types/csat.py,sha256=9cm1wZPfW4oV4hG5Nm4SkG_5aO0pwGJsRkD0wkHH22Y,186
|
|
55
|
+
payi/types/csat_create_params.py,sha256=YK2M8yuqkZ7p-Z5S_6nSOeALX0Ox6QI8xiA2AzZ9vJI,342
|
|
53
56
|
payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
|
|
54
57
|
payi/types/experience_instance.py,sha256=qcG55W-ok341voIoGFIYGCcqfb2w7MLAS033xgT0ags,238
|
|
55
58
|
payi/types/ingest_bulk_params.py,sha256=aIsugHkiAe_DnGQ8JVpDUDYr1YNzR5cUY9mMPqusIP0,381
|
|
56
|
-
payi/types/ingest_event_param.py,sha256=
|
|
59
|
+
payi/types/ingest_event_param.py,sha256=4R1yebYub5fPXt9vi0nvoztU4Cir5nC1qu28oJW8FkE,758
|
|
57
60
|
payi/types/ingest_response.py,sha256=o43RH25dS4S54OCr3vkipZvLeAmI-hru6LuL789iEnM,1071
|
|
58
|
-
payi/types/ingest_units_params.py,sha256=
|
|
61
|
+
payi/types/ingest_units_params.py,sha256=TIiT4dtuaaUS1hatkzarNazmlnW3LVBymwrPsCM11Uk,976
|
|
59
62
|
payi/types/paged_budget_list.py,sha256=FqKlbAifEWY3sZqiJSny-XtS-XIfmj14AufNffNVmqM,1385
|
|
60
63
|
payi/types/requests_data.py,sha256=U5_RwUjPHtg9-6FZhxgj6-EdnG4x5U6yzGlNwjDp0Vc,291
|
|
61
64
|
payi/types/total_cost_data.py,sha256=JPawx-cyoMtQF7CeVTlH2kHUBdFGORqACn0hTVye0K0,303
|
|
@@ -70,15 +73,19 @@ payi/types/budgets/tag_remove_response.py,sha256=v7ysGVZ-54dKurvMA-3ySKco4LgTz3M
|
|
|
70
73
|
payi/types/budgets/tag_update_params.py,sha256=bWWeDqfySt7CZ6HDsZzENREOWGWGWFgnAtyleNMwUsE,314
|
|
71
74
|
payi/types/budgets/tag_update_response.py,sha256=0L-0k2pGw9GndpwArjKhHwOOJgOTOTY4mM7ukUM3Pwc,270
|
|
72
75
|
payi/types/categories/__init__.py,sha256=HQScxfK3F_J9HYbphrhG6bYb7S6vtrwafLViar5pHcM,285
|
|
73
|
-
payi/types/categories/resource_create_params.py,sha256=
|
|
76
|
+
payi/types/categories/resource_create_params.py,sha256=HHuLQm6Lcc9-R58EP8ShuxI1-hlTpDqAh26gD47PY9E,613
|
|
74
77
|
payi/types/categories/resource_list_response.py,sha256=ODMelDlXvYcwxBsJwTX8miofywUY_JB0OvsFVCKJunU,320
|
|
78
|
+
payi/types/evaluations/__init__.py,sha256=crWSnR2SwRTTp1nadR_i_dfpGCv4dTPuBh_sMoss0tQ,288
|
|
79
|
+
payi/types/evaluations/experience_create_params.py,sha256=3leYJN4FHKJbTeym_uPlvX0vSqD8G8Lr8iPV8BwM5gw,353
|
|
80
|
+
payi/types/evaluations/request_create_params.py,sha256=OPV7ff1fGgi6FbUzndN4j5omqFcCUaRzblHLxDsoQaI,347
|
|
75
81
|
payi/types/experiences/__init__.py,sha256=8gAwTPOFwf87LFLyCwmDek2cIb2DHJYyI4Ymqoz6X1o,455
|
|
76
|
-
payi/types/experiences/experience_type.py,sha256=
|
|
82
|
+
payi/types/experiences/experience_type.py,sha256=xD1XORvyYbIw9u2QUZHh4Sy4AYP0rqkL1sXJIz1NU5k,244
|
|
77
83
|
payi/types/experiences/type_create_params.py,sha256=8dNpffodzeD5vm3s6UJrZVOG7YsiTkXo7viDnoEoCZY,311
|
|
78
84
|
payi/types/experiences/type_list_params.py,sha256=VDZjHmK2tNAW_YLewcIzM-OG13iI2v-xCykokxkcgbs,286
|
|
79
85
|
payi/types/experiences/type_list_response.py,sha256=DgkPLw40oUqBETLePVMVenstMsGG12rZRU9w6kgQN28,280
|
|
80
86
|
payi/types/experiences/type_update_params.py,sha256=SOHb1GQiHktLB6YtEzdPllDDowS3FCfQqVWSmf0pD8Q,286
|
|
81
|
-
payi
|
|
82
|
-
payi-0.1.
|
|
83
|
-
payi-0.1.
|
|
84
|
-
payi-0.1.
|
|
87
|
+
payi/types/shared/__init__.py,sha256=3y7YS-bs2g4eULmnsGcuBLsTZX1fg_05Ab5PdL1vEns,87
|
|
88
|
+
payi-0.1.0a26.dist-info/METADATA,sha256=h7S6m1mBJS3Jm1O0Ldasucg07pQFsuxWknxNl4qjdBc,12324
|
|
89
|
+
payi-0.1.0a26.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
90
|
+
payi-0.1.0a26.dist-info/licenses/LICENSE,sha256=8vX1pjh3esb6D5DvXAf6NxiBcVyon8aHWNJCxmmHXeY,11334
|
|
91
|
+
payi-0.1.0a26.dist-info/RECORD,,
|
|
File without changes
|