payi 0.1.0a34__py3-none-any.whl → 0.1.0a35__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 +6 -0
- payi/_models.py +5 -1
- payi/_version.py +1 -1
- payi/lib/helpers.py +4 -1
- payi/resources/experiences/__init__.py +0 -14
- payi/resources/experiences/experiences.py +0 -32
- payi/resources/experiences/properties.py +2 -2
- payi/resources/ingest.py +14 -16
- payi/resources/requests/properties.py +2 -2
- payi/types/experiences/__init__.py +0 -2
- payi/types/ingest_event_param.py +18 -8
- payi/types/ingest_units_params.py +18 -8
- payi/types/limit_history_response.py +1 -1
- {payi-0.1.0a34.dist-info → payi-0.1.0a35.dist-info}/METADATA +4 -5
- {payi-0.1.0a34.dist-info → payi-0.1.0a35.dist-info}/RECORD +17 -20
- payi/resources/experiences/csat.py +0 -188
- payi/types/experiences/csat_create_params.py +0 -14
- payi/types/experiences/csat_response.py +0 -10
- {payi-0.1.0a34.dist-info → payi-0.1.0a35.dist-info}/WHEEL +0 -0
- {payi-0.1.0a34.dist-info → payi-0.1.0a35.dist-info}/licenses/LICENSE +0 -0
payi/_base_client.py
CHANGED
|
@@ -767,6 +767,9 @@ else:
|
|
|
767
767
|
|
|
768
768
|
class SyncHttpxClientWrapper(DefaultHttpxClient):
|
|
769
769
|
def __del__(self) -> None:
|
|
770
|
+
if self.is_closed:
|
|
771
|
+
return
|
|
772
|
+
|
|
770
773
|
try:
|
|
771
774
|
self.close()
|
|
772
775
|
except Exception:
|
|
@@ -1334,6 +1337,9 @@ else:
|
|
|
1334
1337
|
|
|
1335
1338
|
class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
|
|
1336
1339
|
def __del__(self) -> None:
|
|
1340
|
+
if self.is_closed:
|
|
1341
|
+
return
|
|
1342
|
+
|
|
1337
1343
|
try:
|
|
1338
1344
|
# TODO(someday): support non asyncio runtimes here
|
|
1339
1345
|
asyncio.get_running_loop().create_task(self.aclose())
|
payi/_models.py
CHANGED
|
@@ -488,7 +488,11 @@ def construct_type(*, value: object, type_: object) -> object:
|
|
|
488
488
|
_, items_type = get_args(type_) # Dict[_, items_type]
|
|
489
489
|
return {key: construct_type(value=item, type_=items_type) for key, item in value.items()}
|
|
490
490
|
|
|
491
|
-
if
|
|
491
|
+
if (
|
|
492
|
+
not is_literal_type(type_)
|
|
493
|
+
and inspect.isclass(origin)
|
|
494
|
+
and (issubclass(origin, BaseModel) or issubclass(origin, GenericModel))
|
|
495
|
+
):
|
|
492
496
|
if is_list(value):
|
|
493
497
|
return [cast(Any, type_).construct(**entry) if is_mapping(entry) else entry for entry in value]
|
|
494
498
|
|
payi/_version.py
CHANGED
payi/lib/helpers.py
CHANGED
|
@@ -3,7 +3,7 @@ from typing import Dict, List, Union
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
def create_limit_header_from_ids(limit_ids: List[str]) -> Dict[str, str]:
|
|
6
|
-
if not isinstance(
|
|
6
|
+
if not isinstance(limit_ids, list): # type: ignore
|
|
7
7
|
raise TypeError("limit_ids must be a list")
|
|
8
8
|
|
|
9
9
|
valid_ids = [id.strip() for id in limit_ids if isinstance(id, str) and id.strip()] # type: ignore
|
|
@@ -23,6 +23,7 @@ def create_headers(
|
|
|
23
23
|
request_tags: Union[List[str], None] = None,
|
|
24
24
|
user_id: Union[str, None] = None,
|
|
25
25
|
experience_id: Union[str, None] = None,
|
|
26
|
+
experience_name: Union[str, None] = None,
|
|
26
27
|
) -> Dict[str, str]:
|
|
27
28
|
headers: Dict[str, str] = {}
|
|
28
29
|
|
|
@@ -34,5 +35,7 @@ def create_headers(
|
|
|
34
35
|
headers.update({"xProxy-User-ID": user_id})
|
|
35
36
|
if experience_id:
|
|
36
37
|
headers.update({"xProxy-Experience-Id": experience_id})
|
|
38
|
+
if experience_name:
|
|
39
|
+
headers.update({"xProxy-Experience-Name": experience_name})
|
|
37
40
|
|
|
38
41
|
return headers
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from .csat import (
|
|
4
|
-
CsatResource,
|
|
5
|
-
AsyncCsatResource,
|
|
6
|
-
CsatResourceWithRawResponse,
|
|
7
|
-
AsyncCsatResourceWithRawResponse,
|
|
8
|
-
CsatResourceWithStreamingResponse,
|
|
9
|
-
AsyncCsatResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
3
|
from .types import (
|
|
12
4
|
TypesResource,
|
|
13
5
|
AsyncTypesResource,
|
|
@@ -40,12 +32,6 @@ __all__ = [
|
|
|
40
32
|
"AsyncTypesResourceWithRawResponse",
|
|
41
33
|
"TypesResourceWithStreamingResponse",
|
|
42
34
|
"AsyncTypesResourceWithStreamingResponse",
|
|
43
|
-
"CsatResource",
|
|
44
|
-
"AsyncCsatResource",
|
|
45
|
-
"CsatResourceWithRawResponse",
|
|
46
|
-
"AsyncCsatResourceWithRawResponse",
|
|
47
|
-
"CsatResourceWithStreamingResponse",
|
|
48
|
-
"AsyncCsatResourceWithStreamingResponse",
|
|
49
35
|
"PropertiesResource",
|
|
50
36
|
"AsyncPropertiesResource",
|
|
51
37
|
"PropertiesResourceWithRawResponse",
|
|
@@ -4,14 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from .csat import (
|
|
8
|
-
CsatResource,
|
|
9
|
-
AsyncCsatResource,
|
|
10
|
-
CsatResourceWithRawResponse,
|
|
11
|
-
AsyncCsatResourceWithRawResponse,
|
|
12
|
-
CsatResourceWithStreamingResponse,
|
|
13
|
-
AsyncCsatResourceWithStreamingResponse,
|
|
14
|
-
)
|
|
15
7
|
from .types import (
|
|
16
8
|
TypesResource,
|
|
17
9
|
AsyncTypesResource,
|
|
@@ -48,10 +40,6 @@ class ExperiencesResource(SyncAPIResource):
|
|
|
48
40
|
def types(self) -> TypesResource:
|
|
49
41
|
return TypesResource(self._client)
|
|
50
42
|
|
|
51
|
-
@cached_property
|
|
52
|
-
def csat(self) -> CsatResource:
|
|
53
|
-
return CsatResource(self._client)
|
|
54
|
-
|
|
55
43
|
@cached_property
|
|
56
44
|
def properties(self) -> PropertiesResource:
|
|
57
45
|
return PropertiesResource(self._client)
|
|
@@ -180,10 +168,6 @@ class AsyncExperiencesResource(AsyncAPIResource):
|
|
|
180
168
|
def types(self) -> AsyncTypesResource:
|
|
181
169
|
return AsyncTypesResource(self._client)
|
|
182
170
|
|
|
183
|
-
@cached_property
|
|
184
|
-
def csat(self) -> AsyncCsatResource:
|
|
185
|
-
return AsyncCsatResource(self._client)
|
|
186
|
-
|
|
187
171
|
@cached_property
|
|
188
172
|
def properties(self) -> AsyncPropertiesResource:
|
|
189
173
|
return AsyncPropertiesResource(self._client)
|
|
@@ -325,10 +309,6 @@ class ExperiencesResourceWithRawResponse:
|
|
|
325
309
|
def types(self) -> TypesResourceWithRawResponse:
|
|
326
310
|
return TypesResourceWithRawResponse(self._experiences.types)
|
|
327
311
|
|
|
328
|
-
@cached_property
|
|
329
|
-
def csat(self) -> CsatResourceWithRawResponse:
|
|
330
|
-
return CsatResourceWithRawResponse(self._experiences.csat)
|
|
331
|
-
|
|
332
312
|
@cached_property
|
|
333
313
|
def properties(self) -> PropertiesResourceWithRawResponse:
|
|
334
314
|
return PropertiesResourceWithRawResponse(self._experiences.properties)
|
|
@@ -352,10 +332,6 @@ class AsyncExperiencesResourceWithRawResponse:
|
|
|
352
332
|
def types(self) -> AsyncTypesResourceWithRawResponse:
|
|
353
333
|
return AsyncTypesResourceWithRawResponse(self._experiences.types)
|
|
354
334
|
|
|
355
|
-
@cached_property
|
|
356
|
-
def csat(self) -> AsyncCsatResourceWithRawResponse:
|
|
357
|
-
return AsyncCsatResourceWithRawResponse(self._experiences.csat)
|
|
358
|
-
|
|
359
335
|
@cached_property
|
|
360
336
|
def properties(self) -> AsyncPropertiesResourceWithRawResponse:
|
|
361
337
|
return AsyncPropertiesResourceWithRawResponse(self._experiences.properties)
|
|
@@ -379,10 +355,6 @@ class ExperiencesResourceWithStreamingResponse:
|
|
|
379
355
|
def types(self) -> TypesResourceWithStreamingResponse:
|
|
380
356
|
return TypesResourceWithStreamingResponse(self._experiences.types)
|
|
381
357
|
|
|
382
|
-
@cached_property
|
|
383
|
-
def csat(self) -> CsatResourceWithStreamingResponse:
|
|
384
|
-
return CsatResourceWithStreamingResponse(self._experiences.csat)
|
|
385
|
-
|
|
386
358
|
@cached_property
|
|
387
359
|
def properties(self) -> PropertiesResourceWithStreamingResponse:
|
|
388
360
|
return PropertiesResourceWithStreamingResponse(self._experiences.properties)
|
|
@@ -406,10 +378,6 @@ class AsyncExperiencesResourceWithStreamingResponse:
|
|
|
406
378
|
def types(self) -> AsyncTypesResourceWithStreamingResponse:
|
|
407
379
|
return AsyncTypesResourceWithStreamingResponse(self._experiences.types)
|
|
408
380
|
|
|
409
|
-
@cached_property
|
|
410
|
-
def csat(self) -> AsyncCsatResourceWithStreamingResponse:
|
|
411
|
-
return AsyncCsatResourceWithStreamingResponse(self._experiences.csat)
|
|
412
|
-
|
|
413
381
|
@cached_property
|
|
414
382
|
def properties(self) -> AsyncPropertiesResourceWithStreamingResponse:
|
|
415
383
|
return AsyncPropertiesResourceWithStreamingResponse(self._experiences.properties)
|
|
@@ -59,7 +59,7 @@ class PropertiesResource(SyncAPIResource):
|
|
|
59
59
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
60
60
|
) -> ExperienceInstanceResponse:
|
|
61
61
|
"""
|
|
62
|
-
Update
|
|
62
|
+
Update Experience properties
|
|
63
63
|
|
|
64
64
|
Args:
|
|
65
65
|
extra_headers: Send extra headers
|
|
@@ -115,7 +115,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
|
|
|
115
115
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
116
116
|
) -> ExperienceInstanceResponse:
|
|
117
117
|
"""
|
|
118
|
-
Update
|
|
118
|
+
Update Experience properties
|
|
119
119
|
|
|
120
120
|
Args:
|
|
121
121
|
extra_headers: Send extra headers
|
payi/resources/ingest.py
CHANGED
|
@@ -96,12 +96,12 @@ class IngestResource(SyncAPIResource):
|
|
|
96
96
|
experience_properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
97
97
|
http_status_code: Optional[int] | NotGiven = NOT_GIVEN,
|
|
98
98
|
properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
provider_request_headers: Optional[Iterable[ingest_units_params.ProviderRequestHeader]] | NotGiven = NOT_GIVEN,
|
|
100
|
+
provider_request_json: Optional[str] | NotGiven = NOT_GIVEN,
|
|
101
|
+
provider_response_headers: Optional[Iterable[ingest_units_params.ProviderResponseHeader]]
|
|
102
|
+
| NotGiven = NOT_GIVEN,
|
|
103
|
+
provider_response_json: Union[str, List[str], None] | NotGiven = NOT_GIVEN,
|
|
103
104
|
provider_uri: Optional[str] | NotGiven = NOT_GIVEN,
|
|
104
|
-
provisioned_resource_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
105
105
|
time_to_first_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
|
|
106
106
|
limit_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
107
107
|
request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
@@ -201,12 +201,11 @@ class IngestResource(SyncAPIResource):
|
|
|
201
201
|
"experience_properties": experience_properties,
|
|
202
202
|
"http_status_code": http_status_code,
|
|
203
203
|
"properties": properties,
|
|
204
|
-
"provider_prompt": provider_prompt,
|
|
205
204
|
"provider_request_headers": provider_request_headers,
|
|
206
|
-
"
|
|
205
|
+
"provider_request_json": provider_request_json,
|
|
207
206
|
"provider_response_headers": provider_response_headers,
|
|
207
|
+
"provider_response_json": provider_response_json,
|
|
208
208
|
"provider_uri": provider_uri,
|
|
209
|
-
"provisioned_resource_name": provisioned_resource_name,
|
|
210
209
|
"time_to_first_token_ms": time_to_first_token_ms,
|
|
211
210
|
},
|
|
212
211
|
ingest_units_params.IngestUnitsParams,
|
|
@@ -283,12 +282,12 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
283
282
|
experience_properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
284
283
|
http_status_code: Optional[int] | NotGiven = NOT_GIVEN,
|
|
285
284
|
properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
285
|
+
provider_request_headers: Optional[Iterable[ingest_units_params.ProviderRequestHeader]] | NotGiven = NOT_GIVEN,
|
|
286
|
+
provider_request_json: Optional[str] | NotGiven = NOT_GIVEN,
|
|
287
|
+
provider_response_headers: Optional[Iterable[ingest_units_params.ProviderResponseHeader]]
|
|
288
|
+
| NotGiven = NOT_GIVEN,
|
|
289
|
+
provider_response_json: Union[str, List[str], None] | NotGiven = NOT_GIVEN,
|
|
290
290
|
provider_uri: Optional[str] | NotGiven = NOT_GIVEN,
|
|
291
|
-
provisioned_resource_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
292
291
|
time_to_first_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
|
|
293
292
|
limit_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
294
293
|
request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
|
|
@@ -387,12 +386,11 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
387
386
|
"experience_properties": experience_properties,
|
|
388
387
|
"http_status_code": http_status_code,
|
|
389
388
|
"properties": properties,
|
|
390
|
-
"provider_prompt": provider_prompt,
|
|
391
389
|
"provider_request_headers": provider_request_headers,
|
|
392
|
-
"
|
|
390
|
+
"provider_request_json": provider_request_json,
|
|
393
391
|
"provider_response_headers": provider_response_headers,
|
|
392
|
+
"provider_response_json": provider_response_json,
|
|
394
393
|
"provider_uri": provider_uri,
|
|
395
|
-
"provisioned_resource_name": provisioned_resource_name,
|
|
396
394
|
"time_to_first_token_ms": time_to_first_token_ms,
|
|
397
395
|
},
|
|
398
396
|
ingest_units_params.IngestUnitsParams,
|
|
@@ -59,7 +59,7 @@ class PropertiesResource(SyncAPIResource):
|
|
|
59
59
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
60
60
|
) -> PropertiesResponse:
|
|
61
61
|
"""
|
|
62
|
-
|
|
62
|
+
Update Request properties
|
|
63
63
|
|
|
64
64
|
Args:
|
|
65
65
|
extra_headers: Send extra headers
|
|
@@ -115,7 +115,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
|
|
|
115
115
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
116
116
|
) -> PropertiesResponse:
|
|
117
117
|
"""
|
|
118
|
-
|
|
118
|
+
Update Request properties
|
|
119
119
|
|
|
120
120
|
Args:
|
|
121
121
|
extra_headers: Send extra headers
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from .csat_response import CsatResponse as CsatResponse
|
|
6
5
|
from .experience_type import ExperienceType as ExperienceType
|
|
7
6
|
from .type_list_params import TypeListParams as TypeListParams
|
|
8
|
-
from .csat_create_params import CsatCreateParams as CsatCreateParams
|
|
9
7
|
from .type_create_params import TypeCreateParams as TypeCreateParams
|
|
10
8
|
from .type_list_response import TypeListResponse as TypeListResponse
|
|
11
9
|
from .type_update_params import TypeUpdateParams as TypeUpdateParams
|
payi/types/ingest_event_param.py
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict, List, Union, Optional
|
|
5
|
+
from typing import Dict, List, Union, Iterable, Optional
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
from typing_extensions import Required, Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
from .._utils import PropertyInfo
|
|
10
10
|
|
|
11
|
-
__all__ = ["IngestEventParam", "Units"]
|
|
11
|
+
__all__ = ["IngestEventParam", "Units", "ProviderRequestHeader", "ProviderResponseHeader"]
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class Units(TypedDict, total=False):
|
|
@@ -17,6 +17,18 @@ class Units(TypedDict, total=False):
|
|
|
17
17
|
output: int
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
class ProviderRequestHeader(TypedDict, total=False):
|
|
21
|
+
name: Required[str]
|
|
22
|
+
|
|
23
|
+
value: Optional[str]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ProviderResponseHeader(TypedDict, total=False):
|
|
27
|
+
name: Required[str]
|
|
28
|
+
|
|
29
|
+
value: Optional[str]
|
|
30
|
+
|
|
31
|
+
|
|
20
32
|
class IngestEventParam(TypedDict, total=False):
|
|
21
33
|
category: Required[str]
|
|
22
34
|
|
|
@@ -42,18 +54,16 @@ class IngestEventParam(TypedDict, total=False):
|
|
|
42
54
|
|
|
43
55
|
properties: Optional[Dict[str, str]]
|
|
44
56
|
|
|
45
|
-
|
|
57
|
+
provider_request_headers: Optional[Iterable[ProviderRequestHeader]]
|
|
46
58
|
|
|
47
|
-
|
|
59
|
+
provider_request_json: Optional[str]
|
|
48
60
|
|
|
49
|
-
|
|
61
|
+
provider_response_headers: Optional[Iterable[ProviderResponseHeader]]
|
|
50
62
|
|
|
51
|
-
|
|
63
|
+
provider_response_json: Union[str, List[str], None]
|
|
52
64
|
|
|
53
65
|
provider_uri: Optional[str]
|
|
54
66
|
|
|
55
|
-
provisioned_resource_name: Optional[str]
|
|
56
|
-
|
|
57
67
|
request_tags: Optional[List[str]]
|
|
58
68
|
|
|
59
69
|
time_to_first_token_ms: Optional[int]
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict, List, Union, Optional
|
|
5
|
+
from typing import Dict, List, Union, Iterable, Optional
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
from typing_extensions import Required, Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
from .._utils import PropertyInfo
|
|
10
10
|
|
|
11
|
-
__all__ = ["IngestUnitsParams", "Units"]
|
|
11
|
+
__all__ = ["IngestUnitsParams", "Units", "ProviderRequestHeader", "ProviderResponseHeader"]
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class IngestUnitsParams(TypedDict, total=False):
|
|
@@ -28,18 +28,16 @@ class IngestUnitsParams(TypedDict, total=False):
|
|
|
28
28
|
|
|
29
29
|
properties: Optional[Dict[str, str]]
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
provider_request_headers: Optional[Iterable[ProviderRequestHeader]]
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
provider_request_json: Optional[str]
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
provider_response_headers: Optional[Iterable[ProviderResponseHeader]]
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
provider_response_json: Union[str, List[str], None]
|
|
38
38
|
|
|
39
39
|
provider_uri: Optional[str]
|
|
40
40
|
|
|
41
|
-
provisioned_resource_name: Optional[str]
|
|
42
|
-
|
|
43
41
|
time_to_first_token_ms: Optional[int]
|
|
44
42
|
|
|
45
43
|
limit_ids: Annotated[Union[list[str], None], PropertyInfo(alias="xProxy-Limit-IDs")]
|
|
@@ -56,3 +54,15 @@ class Units(TypedDict, total=False):
|
|
|
56
54
|
input: int
|
|
57
55
|
|
|
58
56
|
output: int
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class ProviderRequestHeader(TypedDict, total=False):
|
|
60
|
+
name: Required[str]
|
|
61
|
+
|
|
62
|
+
value: Optional[str]
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class ProviderResponseHeader(TypedDict, total=False):
|
|
66
|
+
name: Required[str]
|
|
67
|
+
|
|
68
|
+
value: Optional[str]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: payi
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a35
|
|
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
|
|
@@ -142,7 +142,7 @@ except payi.APIStatusError as e:
|
|
|
142
142
|
print(e.response)
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
Error codes are as
|
|
145
|
+
Error codes are as follows:
|
|
146
146
|
|
|
147
147
|
| Status Code | Error Type |
|
|
148
148
|
| ----------- | -------------------------- |
|
|
@@ -285,8 +285,7 @@ If you need to access undocumented endpoints, params, or response properties, th
|
|
|
285
285
|
#### Undocumented endpoints
|
|
286
286
|
|
|
287
287
|
To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
|
|
288
|
-
http verbs. Options on the client will be respected (such as retries)
|
|
289
|
-
request.
|
|
288
|
+
http verbs. Options on the client will be respected (such as retries) when making this request.
|
|
290
289
|
|
|
291
290
|
```py
|
|
292
291
|
import httpx
|
|
@@ -358,7 +357,7 @@ with Payi() as client:
|
|
|
358
357
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
|
359
358
|
|
|
360
359
|
1. Changes that only affect static types, without breaking runtime behavior.
|
|
361
|
-
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_
|
|
360
|
+
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
|
|
362
361
|
3. Changes that we do not expect to impact the vast majority of users in practice.
|
|
363
362
|
|
|
364
363
|
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
payi/__init__.py,sha256=_eeZx9fx2Wp81adXh7qrpkmXCso7TiRSvIlLkQ0sQhY,2399
|
|
2
|
-
payi/_base_client.py,sha256=
|
|
2
|
+
payi/_base_client.py,sha256=CiHJoJuzSweHB7oidXWIlWdU0vrLCpPc9hMlj_S-anE,68128
|
|
3
3
|
payi/_client.py,sha256=aUtMEmV02nTs3_pYYAR-OchCkofUHeXhhRs43tyDHLE,18760
|
|
4
4
|
payi/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
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
|
|
8
|
-
payi/_models.py,sha256=
|
|
8
|
+
payi/_models.py,sha256=qpmTQHj3NFzkBiSiz0W8MO18UcOOqQPMBucMuBFUx7I,28649
|
|
9
9
|
payi/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
|
|
11
11
|
payi/_response.py,sha256=FnusjH7NI-PDlV8Tzwho9X71ua7kSfJbtio3WET4hQQ,28653
|
|
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=7BRKBIBlxWS4YKib97L3MxdnJsZS6EHQHD0PE-jXm3Q,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
|
|
@@ -23,24 +23,23 @@ payi/_utils/_transform.py,sha256=Dkkyr7OveGmOolepcvXmVJWE3kqim4b0nM0h7yWbgeY,134
|
|
|
23
23
|
payi/_utils/_typing.py,sha256=nTJz0jcrQbEgxwy4TtAkNxuU0QHHlmc6mQtA6vIR8tg,4501
|
|
24
24
|
payi/_utils/_utils.py,sha256=8UmbPOy_AAr2uUjjFui-VZSrVBHRj6bfNEKRp5YZP2A,12004
|
|
25
25
|
payi/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
26
|
-
payi/lib/helpers.py,sha256=
|
|
26
|
+
payi/lib/helpers.py,sha256=LTxHX_VqOsAzsDjX6sQTKUCMF8QfnUJxeNrTC7dwbng,1601
|
|
27
27
|
payi/resources/__init__.py,sha256=isHGXSl9kOrZDduKrX3UenTwrdTpuKJVBjw6NYSBV20,3592
|
|
28
28
|
payi/resources/billing_models.py,sha256=6gNDCHOujPkDdwuvm924IYTDiCMmhsPGQb2XgAg0vak,20160
|
|
29
|
-
payi/resources/ingest.py,sha256=
|
|
29
|
+
payi/resources/ingest.py,sha256=5mRUF5r82vkbYH82o5yGCA5AxOepVkwwTKsXK8xC548,18723
|
|
30
30
|
payi/resources/price_modifiers.py,sha256=m9IX__C7_oPcZzGNpHJ2BsjMkGQ29JZrxLM1nFa8dL4,13483
|
|
31
31
|
payi/resources/categories/__init__.py,sha256=w5gMiPdBSzJA_qfoVtFBElaoe8wGf_O63R7R1Spr6Gk,1093
|
|
32
32
|
payi/resources/categories/categories.py,sha256=dGsAX313gZlLy5pSRo5_TexD1rPeWU666yHNwiUEFBA,16082
|
|
33
33
|
payi/resources/categories/resources.py,sha256=I38bjAvpsLg4LRwJEvnKX3yyr_ErTxkkv12y19sYd7E,18712
|
|
34
|
-
payi/resources/experiences/__init__.py,sha256=
|
|
35
|
-
payi/resources/experiences/
|
|
36
|
-
payi/resources/experiences/
|
|
37
|
-
payi/resources/experiences/properties.py,sha256=duso5QRsbakhyCNtjYwaBUaGxSmN0ET4Di27Ojeyqvs,6582
|
|
34
|
+
payi/resources/experiences/__init__.py,sha256=Qiyv7Tv6UC-wWpb7XVTyHvBRE0IZTnEpykFpP27xKe0,1556
|
|
35
|
+
payi/resources/experiences/experiences.py,sha256=qt1K4SOHUZaQmFwHq_SHKX_O7-M8sh2RRlt1gDIqQ4M,14582
|
|
36
|
+
payi/resources/experiences/properties.py,sha256=eRL3YzxDWFslH7znnwknIw3HiOKcW8F2xEmAMqJXUAA,6576
|
|
38
37
|
payi/resources/experiences/types.py,sha256=hz5dtgmVD2eEOUU7Y29yA_UGefl77-oT4sAHFVkp-qk,19380
|
|
39
38
|
payi/resources/limits/__init__.py,sha256=URXh9vglDH-dqbVGk-XcrDa8H5Bg2pgFuVQQecgEtaA,976
|
|
40
39
|
payi/resources/limits/limits.py,sha256=wuk78wR2Jk4iqd0wKzteV5c4CwGEyMbu8isUU5iFIa8,25832
|
|
41
40
|
payi/resources/limits/tags.py,sha256=z8-ABZWbvL9M_LOPdL-1shhy8QkNFqwY8GKmNETWA7M,18733
|
|
42
41
|
payi/resources/requests/__init__.py,sha256=sWDD18RLuwPB2yzxA29HiwhFdmjZAxzy1qK_4abAZ9E,1080
|
|
43
|
-
payi/resources/requests/properties.py,sha256=
|
|
42
|
+
payi/resources/requests/properties.py,sha256=jmyivu-_eAWGKhJayTmuzDtePankNfZAoekToX97_c4,6474
|
|
44
43
|
payi/resources/requests/requests.py,sha256=tglPpryoEMbcz7nr1brk72Mi7-julmtmu3PfEhDYwoc,3771
|
|
45
44
|
payi/types/__init__.py,sha256=8qVzwUIYOJjsf9Ugl7no3vWuDYTOZx7qL7XU7TwuSkM,2640
|
|
46
45
|
payi/types/billing_model.py,sha256=zwpKldc0WvS3iGKtDb9KvfxCd3lkv8F4TwFy3ciGMXg,639
|
|
@@ -59,11 +58,11 @@ payi/types/cost_details.py,sha256=w9p79opEG3kcsjkRRP7niaMcUswdfB4Y7HCkVTcQ1zQ,30
|
|
|
59
58
|
payi/types/default_response.py,sha256=o617LpRsCIZHCZxAc5nVI2JQ3HPGZo4gCDvSDkxkIJ8,270
|
|
60
59
|
payi/types/experience_instance_response.py,sha256=YVWjFpCMAFXsXbU5tgMKrvXHC2F5MsTWdltzRiCUIQA,309
|
|
61
60
|
payi/types/ingest_bulk_params.py,sha256=aIsugHkiAe_DnGQ8JVpDUDYr1YNzR5cUY9mMPqusIP0,381
|
|
62
|
-
payi/types/ingest_event_param.py,sha256=
|
|
61
|
+
payi/types/ingest_event_param.py,sha256=0bmn4SJuEFyPDomjCJg4rqvW3Q1j_3GWQUV2ppjnSuc,1620
|
|
63
62
|
payi/types/ingest_response.py,sha256=14VWaX91XuVZth1JBHY1djw8nF-0o6EK4N_WPq_p-Wc,1193
|
|
64
|
-
payi/types/ingest_units_params.py,sha256=
|
|
63
|
+
payi/types/ingest_units_params.py,sha256=xnKEoxy62uvWmugAU6ho9s3KwaKBe-G4aZPMlH3Jw-I,1870
|
|
65
64
|
payi/types/limit_create_params.py,sha256=SbNoXHwy24kTTOxDhtcewtKxEkmXtTLYh4CTGysojys,578
|
|
66
|
-
payi/types/limit_history_response.py,sha256=
|
|
65
|
+
payi/types/limit_history_response.py,sha256=sCx2qKBiHU9X2KrYWV8NZiarYMGurof5GF4QobR2-EU,787
|
|
67
66
|
payi/types/limit_list_params.py,sha256=iWM67oL53y2IZ7D3Gyy8mdYv-B7vF-rbmRFn7SBUnJk,364
|
|
68
67
|
payi/types/limit_reset_params.py,sha256=vgqImSM89pRYY0Z2RNrJuQ6WeDX72ZPg3GWpL9EVEKs,476
|
|
69
68
|
payi/types/limit_response.py,sha256=wYNsbsm5oMtF7W1sTbxlZ5VE0XaS_UbP6y7ZXGKfwqk,752
|
|
@@ -78,9 +77,7 @@ payi/types/total_cost_data.py,sha256=FGh5XO5DwAIqkdmW9umyrJ7uD7U0w6CLDimzhP34Dmc
|
|
|
78
77
|
payi/types/categories/__init__.py,sha256=HQScxfK3F_J9HYbphrhG6bYb7S6vtrwafLViar5pHcM,285
|
|
79
78
|
payi/types/categories/resource_create_params.py,sha256=jEXNx_FvWA9D5170Gwf_YUcuAOaDq0RIGaGgPSEsheA,725
|
|
80
79
|
payi/types/categories/resource_list_response.py,sha256=ODMelDlXvYcwxBsJwTX8miofywUY_JB0OvsFVCKJunU,320
|
|
81
|
-
payi/types/experiences/__init__.py,sha256
|
|
82
|
-
payi/types/experiences/csat_create_params.py,sha256=YK2M8yuqkZ7p-Z5S_6nSOeALX0Ox6QI8xiA2AzZ9vJI,342
|
|
83
|
-
payi/types/experiences/csat_response.py,sha256=tRJepzTgOPoeOEtm6leCCcbzwl8QJtL57mWlBk9ni3k,202
|
|
80
|
+
payi/types/experiences/__init__.py,sha256=-3_HQPYDVAP6g9e289iSBPU8kmEUt4WPNEbV1n4v5Ow,610
|
|
84
81
|
payi/types/experiences/experience_type.py,sha256=1L08GHoLAfdBwE691RidkHIukpyqqO2_toL5CcWxE4k,315
|
|
85
82
|
payi/types/experiences/properties_response.py,sha256=HpFNtxl_OjoMCs24xPVZLKe3FwCVcNkcRs0LsQKLrHM,259
|
|
86
83
|
payi/types/experiences/property_create_params.py,sha256=6v1L_4pj5N5k386cbtjSAWr2QJw---WUJ5lyshRnMwc,328
|
|
@@ -102,7 +99,7 @@ payi/types/requests/__init__.py,sha256=K4qfrWMIIg1-UNB0Vu5UdGEmf6TWoF-i3gPc_LT78
|
|
|
102
99
|
payi/types/requests/property_create_params.py,sha256=6v1L_4pj5N5k386cbtjSAWr2QJw---WUJ5lyshRnMwc,328
|
|
103
100
|
payi/types/shared/__init__.py,sha256=zgBdtU5-a1ee8l5ABWyzuELwWRTKOCCcOx7gbCgdE4A,161
|
|
104
101
|
payi/types/shared/evaluation_response.py,sha256=V1HnUI1NeXdwZKJmlN_jhOC2nJPFTw1jjISWuqlIi0E,215
|
|
105
|
-
payi-0.1.
|
|
106
|
-
payi-0.1.
|
|
107
|
-
payi-0.1.
|
|
108
|
-
payi-0.1.
|
|
102
|
+
payi-0.1.0a35.dist-info/METADATA,sha256=Su5p29SlYpuL9XmgCb5NrlA1eX51godBmOdRCWi4_JQ,12565
|
|
103
|
+
payi-0.1.0a35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
104
|
+
payi-0.1.0a35.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
|
|
105
|
+
payi-0.1.0a35.dist-info/RECORD,,
|
|
@@ -1,188 +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 Optional
|
|
6
|
-
|
|
7
|
-
import httpx
|
|
8
|
-
|
|
9
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
10
|
-
from ..._utils import (
|
|
11
|
-
maybe_transform,
|
|
12
|
-
async_maybe_transform,
|
|
13
|
-
)
|
|
14
|
-
from ..._compat import cached_property
|
|
15
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
16
|
-
from ..._response import (
|
|
17
|
-
to_raw_response_wrapper,
|
|
18
|
-
to_streamed_response_wrapper,
|
|
19
|
-
async_to_raw_response_wrapper,
|
|
20
|
-
async_to_streamed_response_wrapper,
|
|
21
|
-
)
|
|
22
|
-
from ..._base_client import make_request_options
|
|
23
|
-
from ...types.experiences import csat_create_params
|
|
24
|
-
from ...types.experiences.csat_response import CsatResponse
|
|
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
|
-
) -> CsatResponse:
|
|
62
|
-
"""
|
|
63
|
-
Update an Experience properties
|
|
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/experiences/instances/{experience_id}/csat",
|
|
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=CsatResponse,
|
|
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
|
-
) -> CsatResponse:
|
|
125
|
-
"""
|
|
126
|
-
Update an Experience properties
|
|
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/experiences/instances/{experience_id}/csat",
|
|
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=CsatResponse,
|
|
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
|
-
)
|
|
@@ -1,14 +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 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]
|
|
File without changes
|
|
File without changes
|