payi 0.1.0a25__tar.gz → 0.1.0a26__tar.gz

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 (140) hide show
  1. payi-0.1.0a26/.release-please-manifest.json +3 -0
  2. {payi-0.1.0a25 → payi-0.1.0a26}/CHANGELOG.md +13 -0
  3. {payi-0.1.0a25 → payi-0.1.0a26}/PKG-INFO +1 -1
  4. {payi-0.1.0a25 → payi-0.1.0a26}/api.md +6 -8
  5. {payi-0.1.0a25 → payi-0.1.0a26}/pyproject.toml +1 -1
  6. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_base_client.py +4 -1
  7. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_client.py +8 -8
  8. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_version.py +1 -1
  9. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/__init__.py +14 -14
  10. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/categories/resources.py +4 -0
  11. payi-0.1.0a25/src/payi/resources/evaluations/experiences.py → payi-0.1.0a26/src/payi/resources/csat.py +49 -49
  12. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/ingest.py +5 -2
  13. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/__init__.py +2 -1
  14. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/bulk_ingest_response.py +7 -0
  15. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/categories/resource_create_params.py +2 -0
  16. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/category_resource_response.py +2 -0
  17. payi-0.1.0a25/src/payi/types/shared/evaluation_response.py → payi-0.1.0a26/src/payi/types/csat.py +3 -3
  18. payi-0.1.0a26/src/payi/types/csat_create_params.py +14 -0
  19. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/ingest_event_param.py +2 -0
  20. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/ingest_units_params.py +3 -1
  21. payi-0.1.0a26/src/payi/types/shared/__init__.py +2 -0
  22. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/categories/test_resources.py +2 -0
  23. payi-0.1.0a25/tests/api_resources/evaluations/test_experiences.py → payi-0.1.0a26/tests/api_resources/test_csat.py +35 -35
  24. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/test_ingest.py +2 -0
  25. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_client.py +100 -0
  26. payi-0.1.0a25/.release-please-manifest.json +0 -3
  27. payi-0.1.0a25/src/payi/resources/evaluations/__init__.py +0 -47
  28. payi-0.1.0a25/src/payi/resources/evaluations/evaluations.py +0 -134
  29. payi-0.1.0a25/src/payi/resources/evaluations/requests.py +0 -200
  30. payi-0.1.0a25/src/payi/types/shared/__init__.py +0 -3
  31. payi-0.1.0a25/tests/api_resources/evaluations/test_requests.py +0 -124
  32. {payi-0.1.0a25 → payi-0.1.0a26}/.gitignore +0 -0
  33. {payi-0.1.0a25 → payi-0.1.0a26}/CONTRIBUTING.md +0 -0
  34. {payi-0.1.0a25 → payi-0.1.0a26}/LICENSE +0 -0
  35. {payi-0.1.0a25 → payi-0.1.0a26}/README.md +0 -0
  36. {payi-0.1.0a25 → payi-0.1.0a26}/SECURITY.md +0 -0
  37. {payi-0.1.0a25 → payi-0.1.0a26}/bin/check-release-environment +0 -0
  38. {payi-0.1.0a25 → payi-0.1.0a26}/bin/publish-pypi +0 -0
  39. {payi-0.1.0a25 → payi-0.1.0a26}/examples/.keep +0 -0
  40. {payi-0.1.0a25 → payi-0.1.0a26}/mypy.ini +0 -0
  41. {payi-0.1.0a25 → payi-0.1.0a26}/noxfile.py +0 -0
  42. {payi-0.1.0a25 → payi-0.1.0a26}/release-please-config.json +0 -0
  43. {payi-0.1.0a25 → payi-0.1.0a26}/requirements-dev.lock +0 -0
  44. {payi-0.1.0a25 → payi-0.1.0a26}/requirements.lock +0 -0
  45. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/__init__.py +0 -0
  46. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_compat.py +0 -0
  47. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_constants.py +0 -0
  48. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_exceptions.py +0 -0
  49. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_files.py +0 -0
  50. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_models.py +0 -0
  51. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_qs.py +0 -0
  52. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_resource.py +0 -0
  53. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_response.py +0 -0
  54. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_streaming.py +0 -0
  55. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_types.py +0 -0
  56. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/__init__.py +0 -0
  57. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_logs.py +0 -0
  58. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_proxy.py +0 -0
  59. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_reflection.py +0 -0
  60. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_streams.py +0 -0
  61. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_sync.py +0 -0
  62. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_transform.py +0 -0
  63. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_typing.py +0 -0
  64. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/_utils/_utils.py +0 -0
  65. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/lib/.keep +0 -0
  66. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/lib/helpers.py +0 -0
  67. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/py.typed +0 -0
  68. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/budgets/__init__.py +0 -0
  69. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/budgets/budgets.py +0 -0
  70. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/budgets/tags.py +0 -0
  71. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/categories/__init__.py +0 -0
  72. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/categories/categories.py +0 -0
  73. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/experiences/__init__.py +0 -0
  74. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/experiences/experiences.py +0 -0
  75. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/resources/experiences/types.py +0 -0
  76. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budget_create_params.py +0 -0
  77. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budget_history_response.py +0 -0
  78. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budget_list_params.py +0 -0
  79. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budget_response.py +0 -0
  80. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budget_update_params.py +0 -0
  81. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/__init__.py +0 -0
  82. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/budget_tags.py +0 -0
  83. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_create_params.py +0 -0
  84. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_create_response.py +0 -0
  85. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_delete_response.py +0 -0
  86. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_list_response.py +0 -0
  87. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_remove_params.py +0 -0
  88. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_remove_response.py +0 -0
  89. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_update_params.py +0 -0
  90. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/budgets/tag_update_response.py +0 -0
  91. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/categories/__init__.py +0 -0
  92. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/categories/resource_list_response.py +0 -0
  93. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/category_delete_resource_response.py +0 -0
  94. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/category_delete_response.py +0 -0
  95. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/category_list_resources_response.py +0 -0
  96. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/category_list_response.py +0 -0
  97. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/category_response.py +0 -0
  98. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/cost_data.py +0 -0
  99. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/cost_details.py +0 -0
  100. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/default_response.py +0 -0
  101. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/evaluations/__init__.py +0 -0
  102. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/evaluations/experience_create_params.py +0 -0
  103. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/evaluations/request_create_params.py +0 -0
  104. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experience_instance.py +0 -0
  105. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experiences/__init__.py +0 -0
  106. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experiences/experience_type.py +0 -0
  107. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experiences/type_create_params.py +0 -0
  108. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experiences/type_list_params.py +0 -0
  109. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experiences/type_list_response.py +0 -0
  110. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/experiences/type_update_params.py +0 -0
  111. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/ingest_bulk_params.py +0 -0
  112. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/ingest_response.py +0 -0
  113. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/paged_budget_list.py +0 -0
  114. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/requests_data.py +0 -0
  115. {payi-0.1.0a25 → payi-0.1.0a26}/src/payi/types/total_cost_data.py +0 -0
  116. {payi-0.1.0a25 → payi-0.1.0a26}/tests/__init__.py +0 -0
  117. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/__init__.py +0 -0
  118. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/budgets/__init__.py +0 -0
  119. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/budgets/test_tags.py +0 -0
  120. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/categories/__init__.py +0 -0
  121. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/evaluations/__init__.py +0 -0
  122. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/experiences/__init__.py +0 -0
  123. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/experiences/test_types.py +0 -0
  124. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/test_budgets.py +0 -0
  125. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/test_categories.py +0 -0
  126. {payi-0.1.0a25 → payi-0.1.0a26}/tests/api_resources/test_experiences.py +0 -0
  127. {payi-0.1.0a25 → payi-0.1.0a26}/tests/conftest.py +0 -0
  128. {payi-0.1.0a25 → payi-0.1.0a26}/tests/sample_file.txt +0 -0
  129. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_deepcopy.py +0 -0
  130. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_extract_files.py +0 -0
  131. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_files.py +0 -0
  132. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_models.py +0 -0
  133. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_qs.py +0 -0
  134. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_required_args.py +0 -0
  135. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_response.py +0 -0
  136. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_streaming.py +0 -0
  137. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_transform.py +0 -0
  138. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_utils/test_proxy.py +0 -0
  139. {payi-0.1.0a25 → payi-0.1.0a26}/tests/test_utils/test_typing.py +0 -0
  140. {payi-0.1.0a25 → payi-0.1.0a26}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.26"
3
+ }
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.26 (2024-10-01)
4
+
5
+ Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.25...v0.1.0-alpha.26)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([#121](https://github.com/Pay-i/pay-i-python/issues/121)) ([2705291](https://github.com/Pay-i/pay-i-python/commit/27052910f37169c45456fc2a752a8525eb858d4e))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** codegen related update ([#119](https://github.com/Pay-i/pay-i-python/issues/119)) ([1e7361a](https://github.com/Pay-i/pay-i-python/commit/1e7361a69e9751e834bb32a450624324aa27c646))
15
+
3
16
  ## 0.1.0-alpha.25 (2024-09-25)
4
17
 
5
18
  Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.24...v0.1.0-alpha.25)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a25
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
@@ -133,16 +133,14 @@ Methods:
133
133
  - <code title="get /api/v1/experiences/types">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">list</a>(\*\*<a href="src/payi/types/experiences/type_list_params.py">params</a>) -> <a href="./src/payi/types/experiences/type_list_response.py">TypeListResponse</a></code>
134
134
  - <code title="delete /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">delete</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
135
135
 
136
- # Evaluations
136
+ # Csat
137
137
 
138
- ## Experiences
139
-
140
- Methods:
141
-
142
- - <code title="post /api/v1/evaluations/experiences/{experience_id}">client.evaluations.experiences.<a href="./src/payi/resources/evaluations/experiences.py">create</a>(experience_id, \*\*<a href="src/payi/types/evaluations/experience_create_params.py">params</a>) -> <a href="./src/payi/types/shared/evaluation_response.py">EvaluationResponse</a></code>
138
+ Types:
143
139
 
144
- ## Requests
140
+ ```python
141
+ from payi.types import Csat
142
+ ```
145
143
 
146
144
  Methods:
147
145
 
148
- - <code title="post /api/v1/evaluations/requests/{request_id}">client.evaluations.requests.<a href="./src/payi/resources/evaluations/requests.py">create</a>(request_id, \*\*<a href="src/payi/types/evaluations/request_create_params.py">params</a>) -> <a href="./src/payi/types/shared/evaluation_response.py">EvaluationResponse</a></code>
146
+ - <code title="post /api/v1/csat/experiences/{experience_id}">client.csat.<a href="./src/payi/resources/csat.py">create</a>(experience_id, \*\*<a href="src/payi/types/csat_create_params.py">params</a>) -> <a href="./src/payi/types/csat.py">Csat</a></code>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.25"
3
+ version = "0.1.0-alpha.26"
4
4
  description = "The official Python library for the payi API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -412,7 +412,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
412
412
  if idempotency_header and options.method.lower() != "get" and idempotency_header not in headers:
413
413
  headers[idempotency_header] = options.idempotency_key or self._idempotency_key()
414
414
 
415
- headers.setdefault("x-stainless-retry-count", str(retries_taken))
415
+ # Don't set the retry count header if it was already set or removed by the caller. We check
416
+ # `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case.
417
+ if "x-stainless-retry-count" not in (header.lower() for header in custom_headers):
418
+ headers["x-stainless-retry-count"] = str(retries_taken)
416
419
 
417
420
  return headers
418
421
 
@@ -50,7 +50,7 @@ class Payi(SyncAPIClient):
50
50
  ingest: resources.IngestResource
51
51
  categories: resources.CategoriesResource
52
52
  experiences: resources.ExperiencesResource
53
- evaluations: resources.EvaluationsResource
53
+ csat: resources.CsatResource
54
54
  with_raw_response: PayiWithRawResponse
55
55
  with_streaming_response: PayiWithStreamedResponse
56
56
 
@@ -112,7 +112,7 @@ class Payi(SyncAPIClient):
112
112
  self.ingest = resources.IngestResource(self)
113
113
  self.categories = resources.CategoriesResource(self)
114
114
  self.experiences = resources.ExperiencesResource(self)
115
- self.evaluations = resources.EvaluationsResource(self)
115
+ self.csat = resources.CsatResource(self)
116
116
  self.with_raw_response = PayiWithRawResponse(self)
117
117
  self.with_streaming_response = PayiWithStreamedResponse(self)
118
118
 
@@ -226,7 +226,7 @@ class AsyncPayi(AsyncAPIClient):
226
226
  ingest: resources.AsyncIngestResource
227
227
  categories: resources.AsyncCategoriesResource
228
228
  experiences: resources.AsyncExperiencesResource
229
- evaluations: resources.AsyncEvaluationsResource
229
+ csat: resources.AsyncCsatResource
230
230
  with_raw_response: AsyncPayiWithRawResponse
231
231
  with_streaming_response: AsyncPayiWithStreamedResponse
232
232
 
@@ -288,7 +288,7 @@ class AsyncPayi(AsyncAPIClient):
288
288
  self.ingest = resources.AsyncIngestResource(self)
289
289
  self.categories = resources.AsyncCategoriesResource(self)
290
290
  self.experiences = resources.AsyncExperiencesResource(self)
291
- self.evaluations = resources.AsyncEvaluationsResource(self)
291
+ self.csat = resources.AsyncCsatResource(self)
292
292
  self.with_raw_response = AsyncPayiWithRawResponse(self)
293
293
  self.with_streaming_response = AsyncPayiWithStreamedResponse(self)
294
294
 
@@ -403,7 +403,7 @@ class PayiWithRawResponse:
403
403
  self.ingest = resources.IngestResourceWithRawResponse(client.ingest)
404
404
  self.categories = resources.CategoriesResourceWithRawResponse(client.categories)
405
405
  self.experiences = resources.ExperiencesResourceWithRawResponse(client.experiences)
406
- self.evaluations = resources.EvaluationsResourceWithRawResponse(client.evaluations)
406
+ self.csat = resources.CsatResourceWithRawResponse(client.csat)
407
407
 
408
408
 
409
409
  class AsyncPayiWithRawResponse:
@@ -412,7 +412,7 @@ class AsyncPayiWithRawResponse:
412
412
  self.ingest = resources.AsyncIngestResourceWithRawResponse(client.ingest)
413
413
  self.categories = resources.AsyncCategoriesResourceWithRawResponse(client.categories)
414
414
  self.experiences = resources.AsyncExperiencesResourceWithRawResponse(client.experiences)
415
- self.evaluations = resources.AsyncEvaluationsResourceWithRawResponse(client.evaluations)
415
+ self.csat = resources.AsyncCsatResourceWithRawResponse(client.csat)
416
416
 
417
417
 
418
418
  class PayiWithStreamedResponse:
@@ -421,7 +421,7 @@ class PayiWithStreamedResponse:
421
421
  self.ingest = resources.IngestResourceWithStreamingResponse(client.ingest)
422
422
  self.categories = resources.CategoriesResourceWithStreamingResponse(client.categories)
423
423
  self.experiences = resources.ExperiencesResourceWithStreamingResponse(client.experiences)
424
- self.evaluations = resources.EvaluationsResourceWithStreamingResponse(client.evaluations)
424
+ self.csat = resources.CsatResourceWithStreamingResponse(client.csat)
425
425
 
426
426
 
427
427
  class AsyncPayiWithStreamedResponse:
@@ -430,7 +430,7 @@ class AsyncPayiWithStreamedResponse:
430
430
  self.ingest = resources.AsyncIngestResourceWithStreamingResponse(client.ingest)
431
431
  self.categories = resources.AsyncCategoriesResourceWithStreamingResponse(client.categories)
432
432
  self.experiences = resources.AsyncExperiencesResourceWithStreamingResponse(client.experiences)
433
- self.evaluations = resources.AsyncEvaluationsResourceWithStreamingResponse(client.evaluations)
433
+ self.csat = resources.AsyncCsatResourceWithStreamingResponse(client.csat)
434
434
 
435
435
 
436
436
  Client = Payi
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "payi"
4
- __version__ = "0.1.0-alpha.25" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.26" # x-release-please-version
@@ -1,5 +1,13 @@
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
+ )
3
11
  from .ingest import (
4
12
  IngestResource,
5
13
  AsyncIngestResource,
@@ -24,14 +32,6 @@ from .categories import (
24
32
  CategoriesResourceWithStreamingResponse,
25
33
  AsyncCategoriesResourceWithStreamingResponse,
26
34
  )
27
- from .evaluations import (
28
- EvaluationsResource,
29
- AsyncEvaluationsResource,
30
- EvaluationsResourceWithRawResponse,
31
- AsyncEvaluationsResourceWithRawResponse,
32
- EvaluationsResourceWithStreamingResponse,
33
- AsyncEvaluationsResourceWithStreamingResponse,
34
- )
35
35
  from .experiences import (
36
36
  ExperiencesResource,
37
37
  AsyncExperiencesResource,
@@ -66,10 +66,10 @@ __all__ = [
66
66
  "AsyncExperiencesResourceWithRawResponse",
67
67
  "ExperiencesResourceWithStreamingResponse",
68
68
  "AsyncExperiencesResourceWithStreamingResponse",
69
- "EvaluationsResource",
70
- "AsyncEvaluationsResource",
71
- "EvaluationsResourceWithRawResponse",
72
- "AsyncEvaluationsResourceWithRawResponse",
73
- "EvaluationsResourceWithStreamingResponse",
74
- "AsyncEvaluationsResourceWithStreamingResponse",
69
+ "CsatResource",
70
+ "AsyncCsatResource",
71
+ "CsatResourceWithRawResponse",
72
+ "AsyncCsatResourceWithRawResponse",
73
+ "CsatResourceWithStreamingResponse",
74
+ "AsyncCsatResourceWithStreamingResponse",
75
75
  ]
@@ -56,6 +56,7 @@ class ResourcesResource(SyncAPIResource):
56
56
  input_price: float | NotGiven = NOT_GIVEN,
57
57
  max_input_units: int | NotGiven = NOT_GIVEN,
58
58
  max_output_units: int | NotGiven = NOT_GIVEN,
59
+ max_total_units: int | NotGiven = NOT_GIVEN,
59
60
  output_price: float | NotGiven = NOT_GIVEN,
60
61
  start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
61
62
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -88,6 +89,7 @@ class ResourcesResource(SyncAPIResource):
88
89
  "input_price": input_price,
89
90
  "max_input_units": max_input_units,
90
91
  "max_output_units": max_output_units,
92
+ "max_total_units": max_total_units,
91
93
  "output_price": output_price,
92
94
  "start_timestamp": start_timestamp,
93
95
  },
@@ -242,6 +244,7 @@ class AsyncResourcesResource(AsyncAPIResource):
242
244
  input_price: float | NotGiven = NOT_GIVEN,
243
245
  max_input_units: int | NotGiven = NOT_GIVEN,
244
246
  max_output_units: int | NotGiven = NOT_GIVEN,
247
+ max_total_units: int | NotGiven = NOT_GIVEN,
245
248
  output_price: float | NotGiven = NOT_GIVEN,
246
249
  start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
247
250
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -274,6 +277,7 @@ class AsyncResourcesResource(AsyncAPIResource):
274
277
  "input_price": input_price,
275
278
  "max_input_units": max_input_units,
276
279
  "max_output_units": max_output_units,
280
+ "max_total_units": max_total_units,
277
281
  "output_price": output_price,
278
282
  "start_timestamp": start_timestamp,
279
283
  },
@@ -6,51 +6,51 @@ from typing import Optional
6
6
 
7
7
  import httpx
8
8
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
- from ..._utils import (
9
+ from ..types import csat_create_params
10
+ from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
11
+ from .._utils import (
11
12
  maybe_transform,
12
13
  async_maybe_transform,
13
14
  )
14
- from ..._compat import cached_property
15
- from ..._resource import SyncAPIResource, AsyncAPIResource
16
- from ..._response import (
15
+ from .._compat import cached_property
16
+ from .._resource import SyncAPIResource, AsyncAPIResource
17
+ from .._response import (
17
18
  to_raw_response_wrapper,
18
19
  to_streamed_response_wrapper,
19
20
  async_to_raw_response_wrapper,
20
21
  async_to_streamed_response_wrapper,
21
22
  )
22
- from ..._base_client import make_request_options
23
- from ...types.evaluations import experience_create_params
24
- from ...types.shared.evaluation_response import EvaluationResponse
23
+ from ..types.csat import Csat
24
+ from .._base_client import make_request_options
25
25
 
26
- __all__ = ["ExperiencesResource", "AsyncExperiencesResource"]
26
+ __all__ = ["CsatResource", "AsyncCsatResource"]
27
27
 
28
28
 
29
- class ExperiencesResource(SyncAPIResource):
29
+ class CsatResource(SyncAPIResource):
30
30
  @cached_property
31
- def with_raw_response(self) -> ExperiencesResourceWithRawResponse:
31
+ def with_raw_response(self) -> CsatResourceWithRawResponse:
32
32
  """
33
33
  This property can be used as a prefix for any HTTP method call to return the
34
34
  the raw response object instead of the parsed content.
35
35
 
36
36
  For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
37
37
  """
38
- return ExperiencesResourceWithRawResponse(self)
38
+ return CsatResourceWithRawResponse(self)
39
39
 
40
40
  @cached_property
41
- def with_streaming_response(self) -> ExperiencesResourceWithStreamingResponse:
41
+ def with_streaming_response(self) -> CsatResourceWithStreamingResponse:
42
42
  """
43
43
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44
44
 
45
45
  For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
46
46
  """
47
- return ExperiencesResourceWithStreamingResponse(self)
47
+ return CsatResourceWithStreamingResponse(self)
48
48
 
49
49
  def create(
50
50
  self,
51
51
  experience_id: str,
52
52
  *,
53
- evaluation: int,
53
+ csat_rating: int,
54
54
  user_id: Optional[str] | NotGiven = NOT_GIVEN,
55
55
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
56
56
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -58,9 +58,9 @@ class ExperiencesResource(SyncAPIResource):
58
58
  extra_query: Query | None = None,
59
59
  extra_body: Body | None = None,
60
60
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61
- ) -> EvaluationResponse:
61
+ ) -> Csat:
62
62
  """
63
- Create an Evaluation for an Experience
63
+ Created a CSAT rating for an Experience
64
64
 
65
65
  Args:
66
66
  extra_headers: Send extra headers
@@ -74,46 +74,46 @@ class ExperiencesResource(SyncAPIResource):
74
74
  if not experience_id:
75
75
  raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
76
76
  return self._post(
77
- f"/api/v1/evaluations/experiences/{experience_id}",
77
+ f"/api/v1/csat/experiences/{experience_id}",
78
78
  body=maybe_transform(
79
79
  {
80
- "evaluation": evaluation,
80
+ "csat_rating": csat_rating,
81
81
  "user_id": user_id,
82
82
  },
83
- experience_create_params.ExperienceCreateParams,
83
+ csat_create_params.CsatCreateParams,
84
84
  ),
85
85
  options=make_request_options(
86
86
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
87
87
  ),
88
- cast_to=EvaluationResponse,
88
+ cast_to=Csat,
89
89
  )
90
90
 
91
91
 
92
- class AsyncExperiencesResource(AsyncAPIResource):
92
+ class AsyncCsatResource(AsyncAPIResource):
93
93
  @cached_property
94
- def with_raw_response(self) -> AsyncExperiencesResourceWithRawResponse:
94
+ def with_raw_response(self) -> AsyncCsatResourceWithRawResponse:
95
95
  """
96
96
  This property can be used as a prefix for any HTTP method call to return the
97
97
  the raw response object instead of the parsed content.
98
98
 
99
99
  For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
100
100
  """
101
- return AsyncExperiencesResourceWithRawResponse(self)
101
+ return AsyncCsatResourceWithRawResponse(self)
102
102
 
103
103
  @cached_property
104
- def with_streaming_response(self) -> AsyncExperiencesResourceWithStreamingResponse:
104
+ def with_streaming_response(self) -> AsyncCsatResourceWithStreamingResponse:
105
105
  """
106
106
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
107
107
 
108
108
  For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
109
109
  """
110
- return AsyncExperiencesResourceWithStreamingResponse(self)
110
+ return AsyncCsatResourceWithStreamingResponse(self)
111
111
 
112
112
  async def create(
113
113
  self,
114
114
  experience_id: str,
115
115
  *,
116
- evaluation: int,
116
+ csat_rating: int,
117
117
  user_id: Optional[str] | NotGiven = NOT_GIVEN,
118
118
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
119
119
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -121,9 +121,9 @@ class AsyncExperiencesResource(AsyncAPIResource):
121
121
  extra_query: Query | None = None,
122
122
  extra_body: Body | None = None,
123
123
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
124
- ) -> EvaluationResponse:
124
+ ) -> Csat:
125
125
  """
126
- Create an Evaluation for an Experience
126
+ Created a CSAT rating for an Experience
127
127
 
128
128
  Args:
129
129
  extra_headers: Send extra headers
@@ -137,52 +137,52 @@ class AsyncExperiencesResource(AsyncAPIResource):
137
137
  if not experience_id:
138
138
  raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
139
139
  return await self._post(
140
- f"/api/v1/evaluations/experiences/{experience_id}",
140
+ f"/api/v1/csat/experiences/{experience_id}",
141
141
  body=await async_maybe_transform(
142
142
  {
143
- "evaluation": evaluation,
143
+ "csat_rating": csat_rating,
144
144
  "user_id": user_id,
145
145
  },
146
- experience_create_params.ExperienceCreateParams,
146
+ csat_create_params.CsatCreateParams,
147
147
  ),
148
148
  options=make_request_options(
149
149
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
150
150
  ),
151
- cast_to=EvaluationResponse,
151
+ cast_to=Csat,
152
152
  )
153
153
 
154
154
 
155
- class ExperiencesResourceWithRawResponse:
156
- def __init__(self, experiences: ExperiencesResource) -> None:
157
- self._experiences = experiences
155
+ class CsatResourceWithRawResponse:
156
+ def __init__(self, csat: CsatResource) -> None:
157
+ self._csat = csat
158
158
 
159
159
  self.create = to_raw_response_wrapper(
160
- experiences.create,
160
+ csat.create,
161
161
  )
162
162
 
163
163
 
164
- class AsyncExperiencesResourceWithRawResponse:
165
- def __init__(self, experiences: AsyncExperiencesResource) -> None:
166
- self._experiences = experiences
164
+ class AsyncCsatResourceWithRawResponse:
165
+ def __init__(self, csat: AsyncCsatResource) -> None:
166
+ self._csat = csat
167
167
 
168
168
  self.create = async_to_raw_response_wrapper(
169
- experiences.create,
169
+ csat.create,
170
170
  )
171
171
 
172
172
 
173
- class ExperiencesResourceWithStreamingResponse:
174
- def __init__(self, experiences: ExperiencesResource) -> None:
175
- self._experiences = experiences
173
+ class CsatResourceWithStreamingResponse:
174
+ def __init__(self, csat: CsatResource) -> None:
175
+ self._csat = csat
176
176
 
177
177
  self.create = to_streamed_response_wrapper(
178
- experiences.create,
178
+ csat.create,
179
179
  )
180
180
 
181
181
 
182
- class AsyncExperiencesResourceWithStreamingResponse:
183
- def __init__(self, experiences: AsyncExperiencesResource) -> None:
184
- self._experiences = experiences
182
+ class AsyncCsatResourceWithStreamingResponse:
183
+ def __init__(self, csat: AsyncCsatResource) -> None:
184
+ self._csat = csat
185
185
 
186
186
  self.create = async_to_streamed_response_wrapper(
187
- experiences.create,
187
+ csat.create,
188
188
  )
@@ -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
@@ -93,6 +93,7 @@ class IngestResource(SyncAPIResource):
93
93
  output: int,
94
94
  resource: str,
95
95
  event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
96
+ provisioned_resource_name: Optional[str] | NotGiven = NOT_GIVEN,
96
97
  budget_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
97
98
  request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
98
99
  experience_id: Union[str, None] | NotGiven = NOT_GIVEN,
@@ -181,6 +182,7 @@ class IngestResource(SyncAPIResource):
181
182
  "output": output,
182
183
  "resource": resource,
183
184
  "event_timestamp": event_timestamp,
185
+ "provisioned_resource_name": provisioned_resource_name,
184
186
  },
185
187
  ingest_units_params.IngestUnitsParams,
186
188
  ),
@@ -253,12 +255,12 @@ class AsyncIngestResource(AsyncAPIResource):
253
255
  output: int,
254
256
  resource: str,
255
257
  event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
258
+ provisioned_resource_name: Optional[str] | NotGiven = NOT_GIVEN,
256
259
  budget_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
257
260
  request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
258
261
  experience_id: Union[str, None] | NotGiven = NOT_GIVEN,
259
262
  user_id: Union[str, None] | NotGiven = NOT_GIVEN,
260
263
 
261
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
262
264
  # The extra values given here take precedence over values defined on the client or passed to this method.
263
265
  extra_headers: Headers | None = None,
264
266
  extra_query: Query | None = None,
@@ -342,6 +344,7 @@ class AsyncIngestResource(AsyncAPIResource):
342
344
  "output": output,
343
345
  "resource": resource,
344
346
  "event_timestamp": event_timestamp,
347
+ "provisioned_resource_name": provisioned_resource_name,
345
348
  },
346
349
  ingest_units_params.IngestUnitsParams,
347
350
  ),
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from .shared import EvaluationResponse as EvaluationResponse
5
+ from .csat import Csat as Csat
6
6
  from .cost_data import CostData as CostData
7
7
  from .cost_details import CostDetails as CostDetails
8
8
  from .requests_data import RequestsData as RequestsData
@@ -13,6 +13,7 @@ from .default_response import DefaultResponse as DefaultResponse
13
13
  from .category_response import CategoryResponse as CategoryResponse
14
14
  from .paged_budget_list import PagedBudgetList as PagedBudgetList
15
15
  from .budget_list_params import BudgetListParams as BudgetListParams
16
+ from .csat_create_params import CsatCreateParams as CsatCreateParams
16
17
  from .ingest_bulk_params import IngestBulkParams as IngestBulkParams
17
18
  from .ingest_event_param import IngestEventParam as IngestEventParam
18
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):
@@ -20,6 +20,8 @@ class ResourceCreateParams(TypedDict, total=False):
20
20
 
21
21
  max_output_units: int
22
22
 
23
+ max_total_units: int
24
+
23
25
  output_price: float
24
26
 
25
27
  start_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
@@ -23,4 +23,6 @@ class CategoryResourceResponse(BaseModel):
23
23
 
24
24
  max_output_units: Optional[int] = None
25
25
 
26
+ max_total_units: Optional[int] = None
27
+
26
28
  output_price: Optional[float] = None
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- from ..._models import BaseModel
5
+ from .._models import BaseModel
6
6
 
7
- __all__ = ["EvaluationResponse"]
7
+ __all__ = ["Csat"]
8
8
 
9
9
 
10
- class EvaluationResponse(BaseModel):
10
+ class Csat(BaseModel):
11
11
  request_id: 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__ = ["CsatCreateParams"]
9
+
10
+
11
+ class CsatCreateParams(TypedDict, total=False):
12
+ csat_rating: Required[int]
13
+
14
+ user_id: Optional[str]
@@ -26,6 +26,8 @@ class IngestEventParam(TypedDict, total=False):
26
26
 
27
27
  experience_id: Optional[str]
28
28
 
29
+ provisioned_resource_name: Optional[str]
30
+
29
31
  request_tags: Optional[List[str]]
30
32
 
31
33
  user_id: Optional[str]
@@ -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")]
@@ -0,0 +1,2 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
@@ -35,6 +35,7 @@ class TestResources:
35
35
  input_price=0,
36
36
  max_input_units=0,
37
37
  max_output_units=0,
38
+ max_total_units=0,
38
39
  output_price=0,
39
40
  start_timestamp=parse_datetime("2019-12-27T18:11:19.117Z"),
40
41
  )
@@ -268,6 +269,7 @@ class TestAsyncResources:
268
269
  input_price=0,
269
270
  max_input_units=0,
270
271
  max_output_units=0,
272
+ max_total_units=0,
271
273
  output_price=0,
272
274
  start_timestamp=parse_datetime("2019-12-27T18:11:19.117Z"),
273
275
  )