payi 0.1.0a19__tar.gz → 0.1.0a20__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 (125) hide show
  1. payi-0.1.0a20/.release-please-manifest.json +3 -0
  2. {payi-0.1.0a19 → payi-0.1.0a20}/CHANGELOG.md +8 -0
  3. {payi-0.1.0a19 → payi-0.1.0a20}/PKG-INFO +1 -1
  4. {payi-0.1.0a19 → payi-0.1.0a20}/api.md +2 -2
  5. {payi-0.1.0a19 → payi-0.1.0a20}/pyproject.toml +1 -1
  6. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_version.py +1 -1
  7. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/lib/helpers.py +7 -1
  8. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/budgets/budgets.py +2 -2
  9. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/budgets/tags.py +10 -10
  10. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/experiences/experiences.py +16 -24
  11. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/ingest.py +12 -12
  12. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/experience_instance.py +1 -1
  13. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/ingest_event_param.py +1 -1
  14. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/ingest_units_params.py +1 -1
  15. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/test_experiences.py +16 -24
  16. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/test_ingest.py +2 -2
  17. payi-0.1.0a19/.release-please-manifest.json +0 -3
  18. {payi-0.1.0a19 → payi-0.1.0a20}/.gitignore +0 -0
  19. {payi-0.1.0a19 → payi-0.1.0a20}/CONTRIBUTING.md +0 -0
  20. {payi-0.1.0a19 → payi-0.1.0a20}/LICENSE +0 -0
  21. {payi-0.1.0a19 → payi-0.1.0a20}/README.md +0 -0
  22. {payi-0.1.0a19 → payi-0.1.0a20}/SECURITY.md +0 -0
  23. {payi-0.1.0a19 → payi-0.1.0a20}/bin/check-release-environment +0 -0
  24. {payi-0.1.0a19 → payi-0.1.0a20}/bin/publish-pypi +0 -0
  25. {payi-0.1.0a19 → payi-0.1.0a20}/examples/.keep +0 -0
  26. {payi-0.1.0a19 → payi-0.1.0a20}/mypy.ini +0 -0
  27. {payi-0.1.0a19 → payi-0.1.0a20}/noxfile.py +0 -0
  28. {payi-0.1.0a19 → payi-0.1.0a20}/release-please-config.json +0 -0
  29. {payi-0.1.0a19 → payi-0.1.0a20}/requirements-dev.lock +0 -0
  30. {payi-0.1.0a19 → payi-0.1.0a20}/requirements.lock +0 -0
  31. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/__init__.py +0 -0
  32. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_base_client.py +0 -0
  33. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_client.py +0 -0
  34. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_compat.py +0 -0
  35. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_constants.py +0 -0
  36. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_exceptions.py +0 -0
  37. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_files.py +0 -0
  38. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_models.py +0 -0
  39. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_qs.py +0 -0
  40. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_resource.py +0 -0
  41. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_response.py +0 -0
  42. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_streaming.py +0 -0
  43. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_types.py +0 -0
  44. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/__init__.py +0 -0
  45. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_logs.py +0 -0
  46. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_proxy.py +0 -0
  47. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_reflection.py +0 -0
  48. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_streams.py +0 -0
  49. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_sync.py +0 -0
  50. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_transform.py +0 -0
  51. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_typing.py +0 -0
  52. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/_utils/_utils.py +0 -0
  53. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/lib/.keep +0 -0
  54. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/py.typed +0 -0
  55. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/__init__.py +0 -0
  56. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/budgets/__init__.py +0 -0
  57. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/categories/__init__.py +0 -0
  58. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/categories/categories.py +0 -0
  59. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/categories/resources.py +0 -0
  60. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/experiences/__init__.py +0 -0
  61. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/resources/experiences/types.py +0 -0
  62. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/__init__.py +0 -0
  63. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budget_create_params.py +0 -0
  64. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budget_history_response.py +0 -0
  65. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budget_list_params.py +0 -0
  66. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budget_response.py +0 -0
  67. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budget_update_params.py +0 -0
  68. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/__init__.py +0 -0
  69. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/budget_tags.py +0 -0
  70. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_create_params.py +0 -0
  71. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_create_response.py +0 -0
  72. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_delete_response.py +0 -0
  73. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_list_response.py +0 -0
  74. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_remove_params.py +0 -0
  75. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_remove_response.py +0 -0
  76. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_update_params.py +0 -0
  77. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/budgets/tag_update_response.py +0 -0
  78. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/bulk_ingest_response.py +0 -0
  79. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/categories/__init__.py +0 -0
  80. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/categories/resource_create_params.py +0 -0
  81. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/categories/resource_list_response.py +0 -0
  82. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/category_delete_resource_response.py +0 -0
  83. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/category_delete_response.py +0 -0
  84. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/category_list_resources_response.py +0 -0
  85. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/category_list_response.py +0 -0
  86. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/category_resource_response.py +0 -0
  87. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/category_response.py +0 -0
  88. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/cost_data.py +0 -0
  89. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/cost_details.py +0 -0
  90. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/default_response.py +0 -0
  91. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/experiences/__init__.py +0 -0
  92. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/experiences/experience_type.py +0 -0
  93. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/experiences/type_create_params.py +0 -0
  94. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/experiences/type_list_response.py +0 -0
  95. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/experiences/type_update_params.py +0 -0
  96. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/ingest_bulk_params.py +0 -0
  97. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/ingest_response.py +0 -0
  98. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/paged_budget_list.py +0 -0
  99. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/requests_data.py +0 -0
  100. {payi-0.1.0a19 → payi-0.1.0a20}/src/payi/types/total_cost_data.py +0 -0
  101. {payi-0.1.0a19 → payi-0.1.0a20}/tests/__init__.py +0 -0
  102. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/__init__.py +0 -0
  103. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/budgets/__init__.py +0 -0
  104. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/budgets/test_tags.py +0 -0
  105. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/categories/__init__.py +0 -0
  106. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/categories/test_resources.py +0 -0
  107. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/experiences/__init__.py +0 -0
  108. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/experiences/test_types.py +0 -0
  109. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/test_budgets.py +0 -0
  110. {payi-0.1.0a19 → payi-0.1.0a20}/tests/api_resources/test_categories.py +0 -0
  111. {payi-0.1.0a19 → payi-0.1.0a20}/tests/conftest.py +0 -0
  112. {payi-0.1.0a19 → payi-0.1.0a20}/tests/sample_file.txt +0 -0
  113. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_client.py +0 -0
  114. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_deepcopy.py +0 -0
  115. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_extract_files.py +0 -0
  116. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_files.py +0 -0
  117. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_models.py +0 -0
  118. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_qs.py +0 -0
  119. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_required_args.py +0 -0
  120. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_response.py +0 -0
  121. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_streaming.py +0 -0
  122. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_transform.py +0 -0
  123. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_utils/test_proxy.py +0 -0
  124. {payi-0.1.0a19 → payi-0.1.0a20}/tests/test_utils/test_typing.py +0 -0
  125. {payi-0.1.0a19 → payi-0.1.0a20}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.20"
3
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.20 (2024-08-09)
4
+
5
+ Full Changelog: [v0.1.0-alpha.19...v0.1.0-alpha.20](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.19...v0.1.0-alpha.20)
6
+
7
+ ### Features
8
+
9
+ * **api:** update via SDK Studio ([#94](https://github.com/Pay-i/pay-i-python/issues/94)) ([d3cd372](https://github.com/Pay-i/pay-i-python/commit/d3cd3729991f4d0a8882f28f7ad42ebff73866eb))
10
+
3
11
  ## 0.1.0-alpha.19 (2024-08-09)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.18...v0.1.0-alpha.19](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.18...v0.1.0-alpha.19)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a19
3
+ Version: 0.1.0a20
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
@@ -108,8 +108,8 @@ from payi.types import ExperienceInstance
108
108
  Methods:
109
109
 
110
110
  - <code title="post /api/v1/experiences/instances/{experience_type_id}">client.experiences.<a href="./src/payi/resources/experiences/experiences.py">create</a>(experience_type_id) -> <a href="./src/payi/types/experience_instance.py">ExperienceInstance</a></code>
111
- - <code title="get /api/v1/experiences/instances/{experience_instance_id}">client.experiences.<a href="./src/payi/resources/experiences/experiences.py">retrieve</a>(experience_instance_id) -> <a href="./src/payi/types/experience_instance.py">ExperienceInstance</a></code>
112
- - <code title="delete /api/v1/experiences/instances/{experience_instance_id}">client.experiences.<a href="./src/payi/resources/experiences/experiences.py">delete</a>(experience_instance_id) -> <a href="./src/payi/types/experience_instance.py">ExperienceInstance</a></code>
111
+ - <code title="get /api/v1/experiences/instances/{experience_id}">client.experiences.<a href="./src/payi/resources/experiences/experiences.py">retrieve</a>(experience_id) -> <a href="./src/payi/types/experience_instance.py">ExperienceInstance</a></code>
112
+ - <code title="delete /api/v1/experiences/instances/{experience_id}">client.experiences.<a href="./src/payi/resources/experiences/experiences.py">delete</a>(experience_id) -> <a href="./src/payi/types/experience_instance.py">ExperienceInstance</a></code>
113
113
 
114
114
  ## Types
115
115
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.19"
3
+ version = "0.1.0-alpha.20"
4
4
  description = "The official Python library for the payi API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -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.19" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.20" # x-release-please-version
@@ -20,7 +20,9 @@ def create_request_header_from_tags(request_tags: List[str]) -> Dict[str, str]:
20
20
 
21
21
  def create_headers(
22
22
  budget_ids: Union[List[str], None] = None,
23
- request_tags: Union[List[str], None] = None
23
+ request_tags: Union[List[str], None] = None,
24
+ user_id: Union[str, None] = None,
25
+ experience_id: Union[str, None] = None,
24
26
  ) -> Dict[str, str]:
25
27
  headers: Dict[str, str] = {}
26
28
 
@@ -28,5 +30,9 @@ def create_headers(
28
30
  headers.update(create_budget_header_from_ids(budget_ids))
29
31
  if request_tags:
30
32
  headers.update(create_request_header_from_tags(request_tags))
33
+ if user_id:
34
+ headers.update({"xProxy-User-ID": user_id})
35
+ if experience_id:
36
+ headers.update({"xProxy-Experience-Id": experience_id})
31
37
 
32
38
  return headers
@@ -119,7 +119,7 @@ class BudgetsResource(SyncAPIResource):
119
119
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
120
120
  ) -> BudgetResponse:
121
121
  """
122
- Get a Budget's details
122
+ Get Budget details
123
123
 
124
124
  Args:
125
125
  budget_id (str): The ID of the budget.
@@ -368,7 +368,7 @@ class AsyncBudgetsResource(AsyncAPIResource):
368
368
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
369
369
  ) -> BudgetResponse:
370
370
  """
371
- Get a Budget's details
371
+ Get Budget details
372
372
 
373
373
  Args:
374
374
  extra_headers: Send extra headers
@@ -52,7 +52,7 @@ class TagsResource(SyncAPIResource):
52
52
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53
53
  ) -> TagCreateResponse:
54
54
  """
55
- Add Tags to a Budget
55
+ Add Budget Tags
56
56
 
57
57
  Args:
58
58
  extra_headers: Send extra headers
@@ -87,7 +87,7 @@ class TagsResource(SyncAPIResource):
87
87
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
88
88
  ) -> TagUpdateResponse:
89
89
  """
90
- Update the Budget's Tags
90
+ Update the Budget Tags
91
91
 
92
92
  Args:
93
93
  extra_headers: Send extra headers
@@ -121,7 +121,7 @@ class TagsResource(SyncAPIResource):
121
121
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
122
122
  ) -> TagListResponse:
123
123
  """
124
- Get a Budget's Tags
124
+ Get Budget Tags
125
125
 
126
126
  Args:
127
127
  extra_headers: Send extra headers
@@ -154,7 +154,7 @@ class TagsResource(SyncAPIResource):
154
154
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
155
155
  ) -> TagDeleteResponse:
156
156
  """
157
- Delete the Budget's Tags
157
+ Delete all Tags from Budget
158
158
 
159
159
  Args:
160
160
  extra_headers: Send extra headers
@@ -188,7 +188,7 @@ class TagsResource(SyncAPIResource):
188
188
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
189
189
  ) -> TagRemoveResponse:
190
190
  """
191
- Remove Tags from the Budget
191
+ Remove Tags from Budget
192
192
 
193
193
  Args:
194
194
  extra_headers: Send extra headers
@@ -233,7 +233,7 @@ class AsyncTagsResource(AsyncAPIResource):
233
233
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
234
234
  ) -> TagCreateResponse:
235
235
  """
236
- Add Tags to a Budget
236
+ Add Budget Tags
237
237
 
238
238
  Args:
239
239
  extra_headers: Send extra headers
@@ -268,7 +268,7 @@ class AsyncTagsResource(AsyncAPIResource):
268
268
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
269
269
  ) -> TagUpdateResponse:
270
270
  """
271
- Update the Budget's Tags
271
+ Update the Budget Tags
272
272
 
273
273
  Args:
274
274
  extra_headers: Send extra headers
@@ -302,7 +302,7 @@ class AsyncTagsResource(AsyncAPIResource):
302
302
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
303
303
  ) -> TagListResponse:
304
304
  """
305
- Get a Budget's Tags
305
+ Get Budget Tags
306
306
 
307
307
  Args:
308
308
  extra_headers: Send extra headers
@@ -335,7 +335,7 @@ class AsyncTagsResource(AsyncAPIResource):
335
335
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
336
336
  ) -> TagDeleteResponse:
337
337
  """
338
- Delete the Budget's Tags
338
+ Delete all Tags from Budget
339
339
 
340
340
  Args:
341
341
  extra_headers: Send extra headers
@@ -369,7 +369,7 @@ class AsyncTagsResource(AsyncAPIResource):
369
369
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
370
370
  ) -> TagRemoveResponse:
371
371
  """
372
- Remove Tags from the Budget
372
+ Remove Tags from Budget
373
373
 
374
374
  Args:
375
375
  extra_headers: Send extra headers
@@ -77,7 +77,7 @@ class ExperiencesResource(SyncAPIResource):
77
77
 
78
78
  def retrieve(
79
79
  self,
80
- experience_instance_id: str,
80
+ experience_id: str,
81
81
  *,
82
82
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
83
83
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -98,12 +98,10 @@ class ExperiencesResource(SyncAPIResource):
98
98
 
99
99
  timeout: Override the client-level default timeout for this request, in seconds
100
100
  """
101
- if not experience_instance_id:
102
- raise ValueError(
103
- f"Expected a non-empty value for `experience_instance_id` but received {experience_instance_id!r}"
104
- )
101
+ if not experience_id:
102
+ raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
105
103
  return self._get(
106
- f"/api/v1/experiences/instances/{experience_instance_id}",
104
+ f"/api/v1/experiences/instances/{experience_id}",
107
105
  options=make_request_options(
108
106
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
109
107
  ),
@@ -112,7 +110,7 @@ class ExperiencesResource(SyncAPIResource):
112
110
 
113
111
  def delete(
114
112
  self,
115
- experience_instance_id: str,
113
+ experience_id: str,
116
114
  *,
117
115
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
118
116
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -135,12 +133,10 @@ class ExperiencesResource(SyncAPIResource):
135
133
 
136
134
  timeout: Override the client-level default timeout for this request, in seconds
137
135
  """
138
- if not experience_instance_id:
139
- raise ValueError(
140
- f"Expected a non-empty value for `experience_instance_id` but received {experience_instance_id!r}"
141
- )
136
+ if not experience_id:
137
+ raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
142
138
  return self._delete(
143
- f"/api/v1/experiences/instances/{experience_instance_id}",
139
+ f"/api/v1/experiences/instances/{experience_id}",
144
140
  options=make_request_options(
145
141
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
146
142
  ),
@@ -198,7 +194,7 @@ class AsyncExperiencesResource(AsyncAPIResource):
198
194
 
199
195
  async def retrieve(
200
196
  self,
201
- experience_instance_id: str,
197
+ experience_id: str,
202
198
  *,
203
199
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
204
200
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -219,12 +215,10 @@ class AsyncExperiencesResource(AsyncAPIResource):
219
215
 
220
216
  timeout: Override the client-level default timeout for this request, in seconds
221
217
  """
222
- if not experience_instance_id:
223
- raise ValueError(
224
- f"Expected a non-empty value for `experience_instance_id` but received {experience_instance_id!r}"
225
- )
218
+ if not experience_id:
219
+ raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
226
220
  return await self._get(
227
- f"/api/v1/experiences/instances/{experience_instance_id}",
221
+ f"/api/v1/experiences/instances/{experience_id}",
228
222
  options=make_request_options(
229
223
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
230
224
  ),
@@ -233,7 +227,7 @@ class AsyncExperiencesResource(AsyncAPIResource):
233
227
 
234
228
  async def delete(
235
229
  self,
236
- experience_instance_id: str,
230
+ experience_id: str,
237
231
  *,
238
232
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239
233
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -256,12 +250,10 @@ class AsyncExperiencesResource(AsyncAPIResource):
256
250
 
257
251
  timeout: Override the client-level default timeout for this request, in seconds
258
252
  """
259
- if not experience_instance_id:
260
- raise ValueError(
261
- f"Expected a non-empty value for `experience_instance_id` but received {experience_instance_id!r}"
262
- )
253
+ if not experience_id:
254
+ raise ValueError(f"Expected a non-empty value for `experience_id` but received {experience_id!r}")
263
255
  return await self._delete(
264
- f"/api/v1/experiences/instances/{experience_instance_id}",
256
+ f"/api/v1/experiences/instances/{experience_id}",
265
257
  options=make_request_options(
266
258
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
267
259
  ),
@@ -84,7 +84,7 @@ class IngestResource(SyncAPIResource):
84
84
  event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
85
85
  budget_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
86
86
  request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
87
- experience_instance_id: Union[str, None] | NotGiven = NOT_GIVEN,
87
+ experience_id: Union[str, None] | NotGiven = NOT_GIVEN,
88
88
  user_id: Union[str, None] | NotGiven = NOT_GIVEN,
89
89
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
90
90
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -94,7 +94,7 @@ class IngestResource(SyncAPIResource):
94
94
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
95
95
  ) -> IngestResponse:
96
96
  """
97
- Ingest a request
97
+ Ingest an Event
98
98
 
99
99
  Args:
100
100
  category (str): The name of the category
@@ -111,7 +111,7 @@ class IngestResource(SyncAPIResource):
111
111
 
112
112
  request_tags (list[str], optional): The request tags to associate with the request. Defaults to None.
113
113
 
114
- experience_instance_id (str, optional): The experience instance id
114
+ experience_id (str, optional): The experience instance id
115
115
 
116
116
  user_id (str, optional): The user id
117
117
 
@@ -144,8 +144,8 @@ class IngestResource(SyncAPIResource):
144
144
  valid_tags = [tag.strip() for tag in request_tags if tag.strip()]
145
145
  valid_tags_str = ",".join(valid_tags) if valid_tags else NOT_GIVEN
146
146
 
147
- if experience_instance_id is None or isinstance(experience_instance_id, NotGiven):
148
- experience_instance_id = NOT_GIVEN
147
+ if experience_id is None or isinstance(experience_id, NotGiven):
148
+ experience_id = NOT_GIVEN
149
149
 
150
150
  if user_id is None or isinstance(user_id, NotGiven):
151
151
  user_id = NOT_GIVEN
@@ -155,7 +155,7 @@ class IngestResource(SyncAPIResource):
155
155
  {
156
156
  "xProxy-Budget-IDs": valid_ids_str,
157
157
  "xProxy-Request-Tags": valid_tags_str,
158
- "xProxy-Experience-InstanceId": experience_instance_id,
158
+ "xProxy-Experience-Id": experience_id,
159
159
  "xProxy-User-ID": user_id,
160
160
  }
161
161
  ),
@@ -233,7 +233,7 @@ class AsyncIngestResource(AsyncAPIResource):
233
233
  event_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
234
234
  budget_ids: Union[list[str], None] | NotGiven = NOT_GIVEN,
235
235
  request_tags: Union[list[str], None] | NotGiven = NOT_GIVEN,
236
- experience_instance_id: Union[str, None] | NotGiven = NOT_GIVEN,
236
+ experience_id: Union[str, None] | NotGiven = NOT_GIVEN,
237
237
  user_id: Union[str, None] | NotGiven = NOT_GIVEN,
238
238
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239
239
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -243,7 +243,7 @@ class AsyncIngestResource(AsyncAPIResource):
243
243
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
244
244
  ) -> IngestResponse:
245
245
  """
246
- Ingest a request
246
+ Ingest an Event
247
247
 
248
248
  Args:
249
249
  category (str): The name of the category
@@ -260,7 +260,7 @@ class AsyncIngestResource(AsyncAPIResource):
260
260
 
261
261
  request_tags (list[str], optional): The request tags to associate with the request. Defaults to None.
262
262
 
263
- experience_instance_id (str, optional): The experience instance id
263
+ experience_id (str, optional): The experience instance id
264
264
 
265
265
  user_id (str, optional): The user id
266
266
 
@@ -293,8 +293,8 @@ class AsyncIngestResource(AsyncAPIResource):
293
293
  valid_tags = [tag.strip() for tag in request_tags if tag.strip()]
294
294
  valid_tags_str = ",".join(valid_tags) if valid_tags else NOT_GIVEN
295
295
 
296
- if experience_instance_id is None or isinstance(experience_instance_id, NotGiven):
297
- experience_instance_id = NOT_GIVEN
296
+ if experience_id is None or isinstance(experience_id, NotGiven):
297
+ experience_id = NOT_GIVEN
298
298
 
299
299
  if user_id is None or isinstance(user_id, NotGiven):
300
300
  user_id = NOT_GIVEN
@@ -304,7 +304,7 @@ class AsyncIngestResource(AsyncAPIResource):
304
304
  {
305
305
  "xProxy-Budget-IDs": valid_ids_str,
306
306
  "xProxy-Request-Tags": valid_tags_str,
307
- "xProxy-Experience-InstanceId": experience_instance_id,
307
+ "xProxy-Experience-Id": experience_id,
308
308
  "xProxy-User-ID": user_id,
309
309
  }
310
310
  ),
@@ -8,6 +8,6 @@ __all__ = ["ExperienceInstance"]
8
8
 
9
9
 
10
10
  class ExperienceInstance(BaseModel):
11
- experience_instance_id: str
11
+ experience_id: str
12
12
 
13
13
  request_id: str
@@ -24,7 +24,7 @@ class IngestEventParam(TypedDict, total=False):
24
24
 
25
25
  event_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
26
26
 
27
- experience_instance_id: Optional[str]
27
+ experience_id: Optional[str]
28
28
 
29
29
  request_tags: Optional[List[str]]
30
30
 
@@ -26,6 +26,6 @@ class IngestUnitsParams(TypedDict, total=False):
26
26
 
27
27
  request_tags: Annotated[Union[list[str], None], PropertyInfo(alias="xProxy-Request-Tags")]
28
28
 
29
- experience_instance_id: Annotated[Union[str, None], PropertyInfo(alias="xProxy-Experience-InstanceId")]
29
+ experience_id: Annotated[Union[str, None], PropertyInfo(alias="xProxy-Experience-Id")]
30
30
 
31
31
  user_id: Annotated[Union[str, None], PropertyInfo(alias="xProxy-User-ID")]
@@ -58,14 +58,14 @@ class TestExperiences:
58
58
  @parametrize
59
59
  def test_method_retrieve(self, client: Payi) -> None:
60
60
  experience = client.experiences.retrieve(
61
- "experience_instance_id",
61
+ "experience_id",
62
62
  )
63
63
  assert_matches_type(ExperienceInstance, experience, path=["response"])
64
64
 
65
65
  @parametrize
66
66
  def test_raw_response_retrieve(self, client: Payi) -> None:
67
67
  response = client.experiences.with_raw_response.retrieve(
68
- "experience_instance_id",
68
+ "experience_id",
69
69
  )
70
70
 
71
71
  assert response.is_closed is True
@@ -76,7 +76,7 @@ class TestExperiences:
76
76
  @parametrize
77
77
  def test_streaming_response_retrieve(self, client: Payi) -> None:
78
78
  with client.experiences.with_streaming_response.retrieve(
79
- "experience_instance_id",
79
+ "experience_id",
80
80
  ) as response:
81
81
  assert not response.is_closed
82
82
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -88,9 +88,7 @@ class TestExperiences:
88
88
 
89
89
  @parametrize
90
90
  def test_path_params_retrieve(self, client: Payi) -> None:
91
- with pytest.raises(
92
- ValueError, match=r"Expected a non-empty value for `experience_instance_id` but received ''"
93
- ):
91
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `experience_id` but received ''"):
94
92
  client.experiences.with_raw_response.retrieve(
95
93
  "",
96
94
  )
@@ -98,14 +96,14 @@ class TestExperiences:
98
96
  @parametrize
99
97
  def test_method_delete(self, client: Payi) -> None:
100
98
  experience = client.experiences.delete(
101
- "experience_instance_id",
99
+ "experience_id",
102
100
  )
103
101
  assert_matches_type(ExperienceInstance, experience, path=["response"])
104
102
 
105
103
  @parametrize
106
104
  def test_raw_response_delete(self, client: Payi) -> None:
107
105
  response = client.experiences.with_raw_response.delete(
108
- "experience_instance_id",
106
+ "experience_id",
109
107
  )
110
108
 
111
109
  assert response.is_closed is True
@@ -116,7 +114,7 @@ class TestExperiences:
116
114
  @parametrize
117
115
  def test_streaming_response_delete(self, client: Payi) -> None:
118
116
  with client.experiences.with_streaming_response.delete(
119
- "experience_instance_id",
117
+ "experience_id",
120
118
  ) as response:
121
119
  assert not response.is_closed
122
120
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -128,9 +126,7 @@ class TestExperiences:
128
126
 
129
127
  @parametrize
130
128
  def test_path_params_delete(self, client: Payi) -> None:
131
- with pytest.raises(
132
- ValueError, match=r"Expected a non-empty value for `experience_instance_id` but received ''"
133
- ):
129
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `experience_id` but received ''"):
134
130
  client.experiences.with_raw_response.delete(
135
131
  "",
136
132
  )
@@ -180,14 +176,14 @@ class TestAsyncExperiences:
180
176
  @parametrize
181
177
  async def test_method_retrieve(self, async_client: AsyncPayi) -> None:
182
178
  experience = await async_client.experiences.retrieve(
183
- "experience_instance_id",
179
+ "experience_id",
184
180
  )
185
181
  assert_matches_type(ExperienceInstance, experience, path=["response"])
186
182
 
187
183
  @parametrize
188
184
  async def test_raw_response_retrieve(self, async_client: AsyncPayi) -> None:
189
185
  response = await async_client.experiences.with_raw_response.retrieve(
190
- "experience_instance_id",
186
+ "experience_id",
191
187
  )
192
188
 
193
189
  assert response.is_closed is True
@@ -198,7 +194,7 @@ class TestAsyncExperiences:
198
194
  @parametrize
199
195
  async def test_streaming_response_retrieve(self, async_client: AsyncPayi) -> None:
200
196
  async with async_client.experiences.with_streaming_response.retrieve(
201
- "experience_instance_id",
197
+ "experience_id",
202
198
  ) as response:
203
199
  assert not response.is_closed
204
200
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -210,9 +206,7 @@ class TestAsyncExperiences:
210
206
 
211
207
  @parametrize
212
208
  async def test_path_params_retrieve(self, async_client: AsyncPayi) -> None:
213
- with pytest.raises(
214
- ValueError, match=r"Expected a non-empty value for `experience_instance_id` but received ''"
215
- ):
209
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `experience_id` but received ''"):
216
210
  await async_client.experiences.with_raw_response.retrieve(
217
211
  "",
218
212
  )
@@ -220,14 +214,14 @@ class TestAsyncExperiences:
220
214
  @parametrize
221
215
  async def test_method_delete(self, async_client: AsyncPayi) -> None:
222
216
  experience = await async_client.experiences.delete(
223
- "experience_instance_id",
217
+ "experience_id",
224
218
  )
225
219
  assert_matches_type(ExperienceInstance, experience, path=["response"])
226
220
 
227
221
  @parametrize
228
222
  async def test_raw_response_delete(self, async_client: AsyncPayi) -> None:
229
223
  response = await async_client.experiences.with_raw_response.delete(
230
- "experience_instance_id",
224
+ "experience_id",
231
225
  )
232
226
 
233
227
  assert response.is_closed is True
@@ -238,7 +232,7 @@ class TestAsyncExperiences:
238
232
  @parametrize
239
233
  async def test_streaming_response_delete(self, async_client: AsyncPayi) -> None:
240
234
  async with async_client.experiences.with_streaming_response.delete(
241
- "experience_instance_id",
235
+ "experience_id",
242
236
  ) as response:
243
237
  assert not response.is_closed
244
238
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -250,9 +244,7 @@ class TestAsyncExperiences:
250
244
 
251
245
  @parametrize
252
246
  async def test_path_params_delete(self, async_client: AsyncPayi) -> None:
253
- with pytest.raises(
254
- ValueError, match=r"Expected a non-empty value for `experience_instance_id` but received ''"
255
- ):
247
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `experience_id` but received ''"):
256
248
  await async_client.experiences.with_raw_response.delete(
257
249
  "",
258
250
  )
@@ -126,7 +126,7 @@ class TestIngest:
126
126
  event_timestamp=parse_datetime("2019-12-27T18:11:19.117Z"),
127
127
  budget_ids=["budgetId1", "budgetId_2"],
128
128
  request_tags=["requestTag1", "request_tag_2"],
129
- experience_instance_id="experience_instance_id",
129
+ experience_id="experience_id",
130
130
  user_id="UserName123",
131
131
  )
132
132
  assert_matches_type(IngestResponse, ingest, path=["response"])
@@ -273,7 +273,7 @@ class TestAsyncIngest:
273
273
  event_timestamp=parse_datetime("2019-12-27T18:11:19.117Z"),
274
274
  budget_ids=["budgetId1", "budgetId_2"],
275
275
  request_tags=["requestTag1", "request_tag_2"],
276
- experience_instance_id="experience_instance_id",
276
+ experience_id="experience_id",
277
277
  user_id="UserName123",
278
278
  )
279
279
  assert_matches_type(IngestResponse, ingest, path=["response"])
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0-alpha.19"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes